@worldresources/wri-design-systems 2.144.0 → 2.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2315,7 +2315,49 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2315
2315
  transparent
2316
2316
  );
2317
2317
  }
2318
- `,$l=({children:e,header:t,footer:n})=>B(r,{css:wl,children:B(S.Root,{multiple:!0,children:H(S.Item,{value:"extendable-card-item",children:[H(S.ItemTrigger,{css:Cl,alignItems:"center",children:[B(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),B(S.ItemIndicator,{children:B(Oe,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(S.ItemContent,{children:[e,n]})]})})});function kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var El,Ol={exports:{}},Rl={},Ll={exports:{}},Pl={exports:{}},Tl={};var _l,Ml,Dl,Nl,Vl,jl,Il,Al,zl,Hl,Bl,Fl,Zl,Wl={};
2318
+ `,$l=({children:e,header:t,footer:n})=>B(r,{css:wl,children:B(S.Root,{multiple:!0,children:H(S.Item,{value:"extendable-card-item",children:[H(S.ItemTrigger,{css:Cl,alignItems:"center",children:[B(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),B(S.ItemIndicator,{children:B(Oe,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(S.ItemContent,{children:[e,n]})]})})}),kl=oe`
2319
+ border: 1px solid ${ge("neutral",300)};
2320
+ border-radius: 8px;
2321
+ `,Sl=oe`
2322
+ padding: 16px;
2323
+ cursor: pointer;
2324
+ border-bottom: 1px solid ${ge("neutral",300)};
2325
+ &:focus-visible {
2326
+ outline-color: ${ge("primary",700)};
2327
+ }
2328
+ &:hover {
2329
+ box-shadow: 0px 2px 4px -2px #0000001a;
2330
+ box-shadow: 0px 4px 6px -1px #0000001a;
2331
+ background-color: color-mix(
2332
+ in srgb,
2333
+ ${ge("primary",500)} 20%,
2334
+ transparent
2335
+ );
2336
+ }
2337
+ `,El=oe`
2338
+ .item-content-open > * {
2339
+ max-height: auto;
2340
+
2341
+ transition:
2342
+ max-height 0.2s ease,
2343
+ padding-bottom 0.2s ease,
2344
+ padding-top 0.2s ease;
2345
+ }
2346
+
2347
+ .item-content-closed > * {
2348
+ max-height: 0;
2349
+ overflow: hidden;
2350
+ padding-bottom: 0 !important;
2351
+ padding-top: 0 !important;
2352
+ border: 0px !important;
2353
+ transition:
2354
+ max-height 0.2s ease,
2355
+ padding-bottom 0.2s ease,
2356
+ padding-top 0.2s ease;
2357
+ }
2358
+ `,Ol=oe`
2359
+ border-top: 1px solid ${ge("neutral",300)};
2360
+ `,Rl=({children:e,header:t,footer:n,expanded:i=!0,collapsible:o=!0,actions:a})=>{const l="analysis-widget-item",[s,c]=G(i),d=`analysis-widget-header-${l}`;return B(r,{as:"section","aria-labelledby":d,css:kl,children:B(S.Root,{multiple:!0,value:o?void 0:[l],defaultValue:i?[l]:[],children:H(S.Item,{css:El,value:l,children:[B(S.ItemTrigger,{id:d,role:"button","aria-expanded":s,tabIndex:0,css:Sl,pointerEvents:o?"auto":"none",onClick:o?()=>{c(!s)}:void 0,children:H(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",children:[t,a&&a.map((e=>B(Xn,{variant:"info-grey",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},icon:e?.icon},e.label))),o&&B(S.ItemIndicator,{height:"16px",display:"flex",children:B(Oe,{"aria-label":"Toggle section",color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]})}),H("div",{className:s?"item-content-open":"item-content-closed","aria-hidden":!s,children:[e,n&&B(r,{css:Ol,children:n})]})]})})})};function Ll(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Tl,_l={exports:{}},Ml={},Dl={exports:{}},Nl={exports:{}},Vl={};var jl,Il,Al,zl,Hl,Bl,Fl,Zl,Wl,ql,Gl,Ul,Xl,Yl={};
2319
2361
  /** @license React v16.13.1
2320
2362
  * react-is.development.js
2321
2363
  *
@@ -2323,7 +2365,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2323
2365
  *
2324
2366
  * This source code is licensed under the MIT license found in the
2325
2367
  * LICENSE file in the root directory of this source tree.
2326
- */function ql(){return Ml||(Ml=1,"production"===process.env.NODE_ENV?Pl.exports=function(){if(El)return Tl;El=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return Tl.AsyncMode=s,Tl.ConcurrentMode=c,Tl.ContextConsumer=l,Tl.ContextProvider=a,Tl.Element=t,Tl.ForwardRef=d,Tl.Fragment=r,Tl.Lazy=f,Tl.Memo=h,Tl.Portal=n,Tl.Profiler=o,Tl.StrictMode=i,Tl.Suspense=u,Tl.isAsyncMode=function(e){return y(e)||b(e)===s},Tl.isConcurrentMode=y,Tl.isContextConsumer=function(e){return b(e)===l},Tl.isContextProvider=function(e){return b(e)===a},Tl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Tl.isForwardRef=function(e){return b(e)===d},Tl.isFragment=function(e){return b(e)===r},Tl.isLazy=function(e){return b(e)===f},Tl.isMemo=function(e){return b(e)===h},Tl.isPortal=function(e){return b(e)===n},Tl.isProfiler=function(e){return b(e)===o},Tl.isStrictMode=function(e){return b(e)===i},Tl.isSuspense=function(e){return b(e)===u},Tl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Tl.typeOf=b,Tl}():Pl.exports=(_l||(_l=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,w=c,C=l,$=a,k=t,S=d,E=r,O=f,R=h,L=n,P=o,T=i,_=u,M=!1;function D(e){return b(e)===c}Wl.AsyncMode=y,Wl.ConcurrentMode=w,Wl.ContextConsumer=C,Wl.ContextProvider=$,Wl.Element=k,Wl.ForwardRef=S,Wl.Fragment=E,Wl.Lazy=O,Wl.Memo=R,Wl.Portal=L,Wl.Profiler=P,Wl.StrictMode=T,Wl.Suspense=_,Wl.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||b(e)===s},Wl.isConcurrentMode=D,Wl.isContextConsumer=function(e){return b(e)===l},Wl.isContextProvider=function(e){return b(e)===a},Wl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wl.isForwardRef=function(e){return b(e)===d},Wl.isFragment=function(e){return b(e)===r},Wl.isLazy=function(e){return b(e)===f},Wl.isMemo=function(e){return b(e)===h},Wl.isPortal=function(e){return b(e)===n},Wl.isProfiler=function(e){return b(e)===o},Wl.isStrictMode=function(e){return b(e)===i},Wl.isSuspense=function(e){return b(e)===u},Wl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Wl.typeOf=b}()),Wl)),Pl.exports}function Gl(){if(Nl)return Dl;Nl=1;return Dl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ul(){return jl?Vl:(jl=1,Vl=Function.call.bind(Object.prototype.hasOwnProperty))}function Xl(){if(Hl)return zl;Hl=1;var e=ql(),t=pe,n=Gl(),r=Ul(),i=function(){if(Al)return Il;Al=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Gl(),n={},r=Ul();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Il=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),zl=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},zl}function Yl(){if(Zl)return Ll.exports;if(Zl=1,"production"!==process.env.NODE_ENV){var e=ql();Ll.exports=Xl()(e.isElement,!0)}else Ll.exports=function(){if(Fl)return Bl;Fl=1;var e=Gl();function t(){}function n(){}return n.resetWarningCache=t,Bl=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return Ll.exports}function Kl(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Kl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Jl(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Kl(e))&&(r&&(r+=" "),r+=t);return r}var Ql,es=Sl(Object.freeze({__proto__:null,clsx:Jl,default:Jl})),ts={},ns={};function rs(){if(Ql)return ns;return Ql=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},ns.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},ns.int=function(e){return parseInt(e,10)},ns.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},ns.isNum=function(e){return"number"==typeof e&&!isNaN(e)},ns}var is,os,as={};function ls(){if(os)return ts;os=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.addClassName=a,ts.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},ts.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},ts.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},ts.createSVGTransform=function(e,t){return o(e,t,"")},ts.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},ts.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},ts.getTranslation=o,ts.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},ts.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},ts.matchesSelector=i,ts.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},ts.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},ts.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},ts.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},ts.removeClassName=l,ts.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},ts.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=rs(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(is)return as;is=1,Object.defineProperty(as,"__esModule",{value:!0}),as.browserPrefixToKey=n,as.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},as.default=void 0,as.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return as.default=t(),as}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return ts}var ss,cs={};function ds(){if(ss)return cs;ss=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},cs.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},cs.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},cs.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},cs.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},cs.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},cs.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=rs(),t=ls();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return cs}var us,ps,hs,fs,gs={},vs={};function ms(){if(us)return vs;return us=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=function(){},vs}function xs(){if(ps)return gs;ps=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(W),t=l(Yl()),n=l(de),r=ls(),i=ds(),o=rs(),a=l(ms());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return gs.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),gs}function bs(){return hs||(hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(W),n=d(Yl()),r=d(de),i=d(es),o=ls(),a=ds(),l=rs(),s=d(xs()),c=d(ms());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,a.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,a.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,a.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,w={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(w,f):m=(0,o.createCSSTransform)(w,f);const C=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Rl)),Rl}var ys=function(){if(fs)return Ol.exports;fs=1;const{default:e,DraggableCore:t}=bs();return Ol.exports=e,Ol.exports.default=e,Ol.exports.DraggableCore=t,Ol.exports}(),ws=kl(ys);const Cs=e=>oe`
2368
+ */function Kl(){return Il||(Il=1,"production"===process.env.NODE_ENV?Nl.exports=function(){if(Tl)return Vl;Tl=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return Vl.AsyncMode=s,Vl.ConcurrentMode=c,Vl.ContextConsumer=l,Vl.ContextProvider=a,Vl.Element=t,Vl.ForwardRef=d,Vl.Fragment=r,Vl.Lazy=f,Vl.Memo=h,Vl.Portal=n,Vl.Profiler=o,Vl.StrictMode=i,Vl.Suspense=u,Vl.isAsyncMode=function(e){return y(e)||b(e)===s},Vl.isConcurrentMode=y,Vl.isContextConsumer=function(e){return b(e)===l},Vl.isContextProvider=function(e){return b(e)===a},Vl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vl.isForwardRef=function(e){return b(e)===d},Vl.isFragment=function(e){return b(e)===r},Vl.isLazy=function(e){return b(e)===f},Vl.isMemo=function(e){return b(e)===h},Vl.isPortal=function(e){return b(e)===n},Vl.isProfiler=function(e){return b(e)===o},Vl.isStrictMode=function(e){return b(e)===i},Vl.isSuspense=function(e){return b(e)===u},Vl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Vl.typeOf=b,Vl}():Nl.exports=(jl||(jl=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,w=c,C=l,$=a,k=t,S=d,E=r,O=f,R=h,L=n,P=o,T=i,_=u,M=!1;function D(e){return b(e)===c}Yl.AsyncMode=y,Yl.ConcurrentMode=w,Yl.ContextConsumer=C,Yl.ContextProvider=$,Yl.Element=k,Yl.ForwardRef=S,Yl.Fragment=E,Yl.Lazy=O,Yl.Memo=R,Yl.Portal=L,Yl.Profiler=P,Yl.StrictMode=T,Yl.Suspense=_,Yl.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||b(e)===s},Yl.isConcurrentMode=D,Yl.isContextConsumer=function(e){return b(e)===l},Yl.isContextProvider=function(e){return b(e)===a},Yl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Yl.isForwardRef=function(e){return b(e)===d},Yl.isFragment=function(e){return b(e)===r},Yl.isLazy=function(e){return b(e)===f},Yl.isMemo=function(e){return b(e)===h},Yl.isPortal=function(e){return b(e)===n},Yl.isProfiler=function(e){return b(e)===o},Yl.isStrictMode=function(e){return b(e)===i},Yl.isSuspense=function(e){return b(e)===u},Yl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Yl.typeOf=b}()),Yl)),Nl.exports}function Jl(){if(zl)return Al;zl=1;return Al="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ql(){return Bl?Hl:(Bl=1,Hl=Function.call.bind(Object.prototype.hasOwnProperty))}function es(){if(ql)return Wl;ql=1;var e=Kl(),t=pe,n=Jl(),r=Ql(),i=function(){if(Zl)return Fl;Zl=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Jl(),n={},r=Ql();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Fl=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Wl=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},Wl}function ts(){if(Xl)return Dl.exports;if(Xl=1,"production"!==process.env.NODE_ENV){var e=Kl();Dl.exports=es()(e.isElement,!0)}else Dl.exports=function(){if(Ul)return Gl;Ul=1;var e=Jl();function t(){}function n(){}return n.resetWarningCache=t,Gl=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return Dl.exports}function ns(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ns(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function rs(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ns(e))&&(r&&(r+=" "),r+=t);return r}var is,os=Pl(Object.freeze({__proto__:null,clsx:rs,default:rs})),as={},ls={};function ss(){if(is)return ls;return is=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},ls.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},ls.int=function(e){return parseInt(e,10)},ls.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},ls.isNum=function(e){return"number"==typeof e&&!isNaN(e)},ls}var cs,ds,us={};function ps(){if(ds)return as;ds=1,Object.defineProperty(as,"__esModule",{value:!0}),as.addClassName=a,as.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},as.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},as.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},as.createSVGTransform=function(e,t){return o(e,t,"")},as.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},as.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},as.getTranslation=o,as.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},as.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},as.matchesSelector=i,as.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},as.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},as.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},as.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},as.removeClassName=l,as.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},as.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=ss(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(cs)return us;cs=1,Object.defineProperty(us,"__esModule",{value:!0}),us.browserPrefixToKey=n,us.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},us.default=void 0,us.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return us.default=t(),us}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return as}var hs,fs={};function gs(){if(hs)return fs;hs=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},fs.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},fs.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},fs.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},fs.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},fs.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},fs.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=ss(),t=ps();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return fs}var vs,ms,xs,bs,ys={},ws={};function Cs(){if(vs)return ws;return vs=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=function(){},ws}function $s(){if(ms)return ys;ms=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(W),t=l(ts()),n=l(de),r=ps(),i=gs(),o=ss(),a=l(Cs());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ys.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ys}function ks(){return xs||(xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(W),n=d(ts()),r=d(de),i=d(os),o=ps(),a=gs(),l=ss(),s=d($s()),c=d(Cs());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,a.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,a.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,a.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,w={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(w,f):m=(0,o.createCSSTransform)(w,f);const C=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Ml)),Ml}var Ss=function(){if(bs)return _l.exports;bs=1;const{default:e,DraggableCore:t}=ks();return _l.exports=e,_l.exports.default=e,_l.exports.DraggableCore=t,_l.exports}(),Es=Ll(Ss);const Os=e=>oe`
2327
2369
  width: 240px;
2328
2370
  ${"medium"===e&&"width: 320px;"}
2329
2371
  ${"large"===e&&"width: 440px;"}
@@ -2334,7 +2376,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2334
2376
  border-radius: 4px;
2335
2377
  box-shadow: 0px 4px 6px -4px #0000001a;
2336
2378
  box-shadow: 0px 10px 15px -3px #0000001a;
2337
- `,$s=oe`
2379
+ `,Rs=oe`
2338
2380
  height: 100%;
2339
2381
  min-height: 40px;
2340
2382
  display: flex;
@@ -2342,27 +2384,27 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2342
2384
  justify-content: space-between;
2343
2385
  padding: 8px;
2344
2386
  border-bottom: 1px solid ${ge("neutral",300)};
2345
- `,ks=oe`
2387
+ `,Ls=oe`
2346
2388
  top: 10px;
2347
- `,Ss=oe`
2389
+ `,Ps=oe`
2348
2390
  padding: 12px;
2349
- `,Es=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:s})=>a?B(M.Root,{open:a,onOpenChange:s,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:H(l,{children:[i?null:B(M.Backdrop,{}),B(ws,{disabled:!i,children:B(M.Positioner,{children:H(M.Content,{css:Cs(r),children:[H(M.Header,{css:$s,children:[e,o?null:B(M.CloseTrigger,{css:ks,asChild:!0,children:B(at,{})})]}),B(M.Body,{css:Ss,children:t}),n?B(M.Footer,{padding:"12px",children:n}):null]})})})]})}):null,Os=e=>oe`
2391
+ `,Ts=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:s})=>a?B(M.Root,{open:a,onOpenChange:s,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:H(l,{children:[i?null:B(M.Backdrop,{}),B(Es,{disabled:!i,children:B(M.Positioner,{children:H(M.Content,{css:Os(r),children:[H(M.Header,{css:Rs,children:[e,o?null:B(M.CloseTrigger,{css:Ls,asChild:!0,children:B(at,{})})]}),B(M.Body,{css:Ps,children:t}),n?B(M.Footer,{padding:"12px",children:n}):null]})})})]})}):null,_s=e=>oe`
2350
2392
  height: 100%;
2351
2393
  width: ${e||"320px"};
2352
2394
  background-color: ${ge("neutral",100)};
2353
2395
  box-shadow: 0px 1px 2px -1px #0000001a;
2354
2396
  box-shadow: 0px 1px 3px 0px #0000001a;
2355
2397
  position: relative;
2356
- `,Rs=oe`
2398
+ `,Ms=oe`
2357
2399
  border-right: 1px solid ${ge("neutral",300)};
2358
- `,Ls=oe`
2400
+ `,Ds=oe`
2359
2401
  border: 1px solid ${ge("neutral",300)};
2360
2402
  border-radius: 4px;
2361
- `,Ps=oe`
2403
+ `,Ns=oe`
2362
2404
  min-height: 48px;
2363
2405
  width: 100%;
2364
2406
  border-bottom: 1px solid ${ge("neutral",300)};
2365
- `,Ts=(e,t)=>oe`
2407
+ `,Vs=(e,t)=>oe`
2366
2408
  height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
2367
2409
  width: 100%;
2368
2410
  overflow-y: auto;
@@ -2370,7 +2412,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2370
2412
  &:focus-visible {
2371
2413
  outline-color: ${ge("primary",700)};
2372
2414
  }
2373
- `,_s=oe`
2415
+ `,js=oe`
2374
2416
  min-height: 64px;
2375
2417
  width: 100%;
2376
2418
  display: flex;
@@ -2380,7 +2422,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2380
2422
  bottom: 0;
2381
2423
  left: 0;
2382
2424
  border-top: 1px solid ${ge("neutral",300)};
2383
- `,Ms=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=G(void 0),[l,s]=G(void 0),c=K(null),d=K(null);U((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return H("div",{css:[Os(i),"fixed"===r?Rs:Ls],children:[e?B("div",{css:Ps,ref:c,children:e}):null,B("div",{css:Ts(o,l),children:t}),n?B("div",{css:_s,ref:d,children:n}):null]})};var Ds,Ns;!function(){if(Ns)return Ds;Ns=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}Ds=e}();var Vs=js()?Y:U;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function js(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Is=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=K(null),a=K(null),l=(t=G(Object.create(null))[1],ee((function(){t(Object.create(null))}),[]));return Vs((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?ue(n,a.current):te("span",{ref:o})};"production"!==process.env.NODE_ENV&&(Is.displayName="Portal");
2425
+ `,Is=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=G(void 0),[l,s]=G(void 0),c=K(null),d=K(null);U((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return H("div",{css:[_s(i),"fixed"===r?Ms:Ds],children:[e?B("div",{css:Ns,ref:c,children:e}):null,B("div",{css:Vs(o,l),children:t}),n?B("div",{css:js,ref:d,children:n}):null]})};var As,zs;!function(){if(zs)return As;zs=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}As=e}();var Hs=Bs()?Y:U;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function Bs(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Fs=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=K(null),a=K(null),l=(t=G(Object.create(null))[1],ee((function(){t(Object.create(null))}),[]));return Hs((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?ue(n,a.current):te("span",{ref:o})};"production"!==process.env.NODE_ENV&&(Fs.displayName="Portal");
2384
2426
  /*! *****************************************************************************
2385
2427
  Copyright (c) Microsoft Corporation.
2386
2428
 
@@ -2394,16 +2436,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2394
2436
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2395
2437
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2396
2438
  PERFORMANCE OF THIS SOFTWARE.
2397
- ***************************************************************************** */var As,zs,Hs=function(){return Hs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Hs.apply(this,arguments)};function Bs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Fs(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zs(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ws(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(As||(As={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(zs||(zs={}));var qs=As.Start,Gs=As.Stop,Us=As.Raise,Xs=As.Send,Ys=As.Cancel,Ks=As.NullEvent,Js=As.Assign;As.After,As.DoneState;var Qs=As.Log,ec=As.Init,tc=As.Invoke;As.ErrorExecution;var nc,rc=As.ErrorPlatform,ic=As.ErrorCustom,oc=As.Update,ac=As.Choose,lc=As.Pure,sc={},cc="xstate.guard",dc="production"===process.env.NODE_ENV;function uc(e,t,n){void 0===n&&(n=".");var r=fc(e,n),i=fc(t,n);return Pc(i)?!!Pc(r)&&i===r:Pc(r)?r in i:Object.keys(r).every((function(e){return e in i&&uc(r[e],i[e])}))}function pc(e){try{return Pc(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function hc(e,t){try{return Rc(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function fc(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:Rc(e)?gc(e):"string"!=typeof e?e:gc(hc(e,t));var n}function gc(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function vc(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function mc(e,t,n){var r,i,o={};try{for(var a=Fs(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var xc=function(e){return function(t){var n,r,i=t;try{for(var o=Fs(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function bc(e){return e?Pc(e)?[[e]]:yc(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?bc(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function yc(e){var t;return(t=[]).concat.apply(t,Ws([],Zs(e),!1))}function wc(e){return Rc(e)?e:[e]}function Cc(e){return void 0===e?[]:wc(e)}function $c(e,t,n){var r,i;if(Lc(e))return e(t,n.data);var o={};try{for(var a=Fs(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];Lc(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function kc(e){return e instanceof Promise||!(null===e||!Lc(e)&&"object"!=typeof e||!Lc(e.then))}function Sc(e,t){return vc(e.states,(function(e,n){if(e){var r=(Pc(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:Sc(e,r)}}}))}function Ec(e,t,n,r){dc||Oc(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(Lc(a))s=a(e,t.data,l);else try{for(var c=Fs(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=Lc(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var Oc=function(){};function Rc(e){return Array.isArray(e)}function Lc(e){return"function"==typeof e}function Pc(e){return"string"==typeof e}function Tc(e,t){if(e)return Pc(e)?{type:cc,name:e,predicate:t?t[e]:void 0}:Lc(e)?{type:cc,name:e.name,predicate:e}:e}dc||(Oc=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var _c=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Mc(e){return!!e&&"__xstatenode"in e}function Dc(e,t){return Pc(e)||"number"==typeof e?Hs({type:e},t):e}function Nc(e,t){if(!Pc(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=Dc(e);return Hs({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Vc(e,t){return wc(t).map((function(t){return void 0===t||"string"==typeof t||Mc(t)?{target:t,event:e}:Hs(Hs({},t),{event:e})}))}function jc(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===cc)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function Ic(e){return"string"==typeof e?{type:e}:e}function Ac(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function zc(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Hc(e){return(e.type===Us||e.type===Xs&&e.to===zs.Internal)&&"number"!=typeof e.delay}(nc={})[_c]=function(){return this},nc[Symbol.observable]=function(){return this};var Bc=Nc({type:ec});function Fc(e,t){return t&&t[e]||void 0}function Zc(e,t){var n;if(Pc(e)||"number"==typeof e)n=Lc(r=Fc(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(Lc(e))n={type:e.name||e.toString(),exec:e};else{var r;if(Lc(r=Fc(e.type,t)))n=Hs(Hs({},e),{exec:r});else if(r){var i=r.type||e.type;n=Hs(Hs(Hs({},r),e),{type:i})}else n=e}return n}var Wc=function(e,t){return e?(Rc(e)?e:[e]).map((function(e){return Zc(e,t)})):[]};function qc(e){var t=Zc(e);return Hs(Hs({id:Pc(e)?e:t.id},t),{type:t.type})}function Gc(e,t){var n="".concat(As.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Uc(e,t){var n="".concat(As.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Xc(e,t){var n="".concat(As.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Yc(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=Fs(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==Js?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?Ec(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case Us:var p=function(e,t,n,r){var i,o={_event:n},a=Nc(Lc(e.event)?e.event(t,n.data,o):e.event);if(Pc(e.delay)){var l=r&&r[e.delay];i=Lc(l)?l(t,n.data,o):l}else i=Lc(e.delay)?e.delay(t,n.data,o):e.delay;return Hs(Hs({},e),{type:Us,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case Xs:var h=function(e,t,n,r){var i,o={_event:n},a=Nc(Lc(e.event)?e.event(t,n.data,o):e.event);if(Pc(e.delay)){var l=r&&r[e.delay];i=Lc(l)?l(t,n.data,o):l}else i=Lc(e.delay)?e.delay(t,n.data,o):e.delay;var s=Lc(e.to)?e.to(t,n.data,o):e.to;return Hs(Hs({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!dc){var f=l.delay;Oc(!Pc(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==zs.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case Qs:var g=function(e,t,n){return Hs(Hs({},e),{value:Pc(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case ac:if(!(b=null===(u=l.conds.find((function(n){var i=Tc(n.cond,e.options.guards);return!i||jc(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=Zs(Yc(e,t,s,r,[{type:i,actions:Wc(Cc(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case lc:var b;if(!(b=l.get(s,r.data)))return[];var y=Zs(Yc(e,t,s,r,[{type:i,actions:Wc(Cc(b),e.options.actions)}],o,a),2),w=y[0],C=y[1];return s=C,null==c||c.push(s),w;case Gs:g=function(e,t,n){var r=Lc(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:As.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case Js:s=Ec(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=Zc(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=Hs(Hs({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ws([c[S]],Zs(t),!1))}});$=E}return $}}var p=yc(i.map((function(e){var t,n,i=[];try{for(var a=Fs(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var Kc=function(e,t){return t(e)};function Jc(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[_c]=function(){return this},t}function Qc(e,t,n){var r=Jc(t);if(r.deferred=!0,Mc(e)){var i=r.state=Kc(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var ed=function(e){return"atomic"===e.type||"final"===e.type};function td(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function nd(e){return td(e).filter((function(e){return"history"!==e.type}))}function rd(e){var t=[e];return ed(e)?t:t.concat(yc(nd(e).map(rd)))}function id(e,t){var n,r,i,o,a,l,s,c,d=ad(new Set(e)),u=new Set(t);try{for(var p=Fs(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=ad(u);try{for(var v=Fs(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,Fs(nd($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=Fs(u),C=w.next();!C.done;C=w.next()){var $;for(f=($=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}return u}function od(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(ed(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=od(e,t)})),i}function ad(e){var t,n,r=new Map;try{for(var i=Fs(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function ld(e,t){return od(e,ad(id([e],t)))}function sd(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function cd(e,t){return"compound"===t.type?nd(t).some((function(t){return"final"===t.type&&sd(e,t)})):"parallel"===t.type&&nd(t).every((function(t){return cd(e,t)}))}function dd(e){return new Set(yc(e.map((function(e){return e.tags}))))}function ud(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(Pc(e)||Pc(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return ud(e[n],t[n])}))}var pd=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=sc,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||sc,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return Ws([],Zs(new Set(yc(Ws([],Zs(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Bc,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Bc;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),Pc(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ws([],Zs(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Bs(e,["configuration","transitions","tags","machine"]);return Hs(Hs({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return uc(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;dc&&Oc(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),hd={deferEvents:!1},fd=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Hs(Hs({},hd),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),gd=new Map,vd=0,md=function(){return"x:".concat(vd++)},xd=function(e,t){return gd.set(e,t),e},bd=function(e){return gd.get(e)},yd=function(e){gd.delete(e)};function wd(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(dc||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function Cd(e){if(wd()){var t=function(){var e=wd();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function $d(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return Hs(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[_c]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=Ac(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var kd,Sd={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(kd||(kd={}));var Ed=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=kd.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(Rc(e))return r.batch(e),r.state;var n=Nc(Dc(e,t));if(r.status===kd.Stopped)return dc||Oc(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==kd.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===zs.Parent||r.parent.id===t),a=o?r.parent:Pc(t)?t===zs.Internal?r:r.children.get(t)||bd(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==kd.Stopped||r.parent!==a||r.state.done){var l=Hs(Hs({},e),{name:e.name===ic?"".concat(Xc(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));dc||Oc(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||Fc(e.type,i),a=Lc(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Us:var l=e;r.defer(l);break;case Xs:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Bc):r.send(s._event);break;case Ys:r.cancel(e.sendId);break;case qs:if(r.status!==kd.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===As.Invoke){var d=Ic(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;dc||Oc(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(dc||Oc(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?$c(h,t,n):void 0;if("string"==typeof u)return;var v=Lc(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;Mc(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Gs:r.stopChild(e.activity.id);break;case Qs:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:dc||Oc(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=Hs(Hs({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new fd({deferEvents:this.options.deferEvents}),this.sessionId=md()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Kc(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return dc||Oc(this.status!==kd.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=Fs(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Bc||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=Fs(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Fs(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=Fs(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?$c(x.doneData,e.context,t):void 0;this._doneEvent=Uc(this.id,b);try{for(var y=Fs(this.doneListeners),w=y.next();!w.done;w=y.next()){(0,w.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),yd(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===kd.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=Ac(e,t,n);this.listeners.add(i.next),this.status!==kd.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===kd.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===kd.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===kd.Running)return this;this.machine._init(),xd(this.sessionId,this),this.initialized=!0,this.status=kd.Running;var n=void 0===e?this.initialState:Kc(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(pd.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Bc)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){Lc(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=Fs(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=Fs(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=Fs(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=Fs(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=kd.Stopped,this._initialState=void 0;try{for(var b=Fs(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var w=y.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new fd({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=Nc({type:"xstate.stop"}),r=Kc(e,(function(){var t=yc(Ws([],Zs(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Wc(t.onExit,e.machine.options.actions)}))),r=Zs(Yc(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new pd({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!Hc(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),yd(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===kd.NotStarted&&this.options.deferEvents)dc||Oc(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==kd.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=t.state,a=!1,l=[],s=function(e){var r=Nc(e);t.forward(r),o=Kc(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,Ws([],Zs(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return Hs(Hs({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=Fs(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,Nc(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=Nc(e);if(0===r.name.indexOf(rc)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(rc)})))throw r.data.data;return Kc(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=Fs(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),Lc(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==kd.Running)return Qc(e,t);if(kc(e))return this.spawnPromise(Promise.resolve(e),t);if(Lc(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&Lc(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Mc(e))return this.spawnMachine(e,Hs(Hs({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,Hs(Hs({},this.options),{parent:this,id:n.id||t.id})),o=Hs(Hs({},Sd),n);o.sync&&i.onTransition((function(e){r.send(oc,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(Nc(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=$d(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(Nc(Uc(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=Xc(t,e);try{i.send(Nc(n,{origin:t}))}catch(r){!function(e,t,n){if(!dc){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=Ac(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[_c]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(Nc(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(Xc(t,e))}if(kc(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Ac(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,Lc(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[_c]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(Nc(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(Nc(Xc(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(Nc(Uc(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[_c]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else dc||Oc(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[_c]=function(){return this},n))},e.prototype.attachDev=function(){var e=wd();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(Hs(Hs({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Hs({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Cd(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[_c]=function(){return this},e.prototype.getSnapshot=function(){return this.status===kd.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=Od,e}();function Od(e,t){return new Ed(e,t)}function Rd(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Ld(e){return Hs(Hs({type:tc},e),{toJSON:function(){e.onDone,e.onError;var t=Bs(e,["onDone","onError"]);return Hs(Hs({},t),{type:tc,src:Rd(e.src)})}})}var Pd="",Td="*",_d={},Md=function(e){return"#"===e[0]},Dd=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||Ws([this.machine.key],Zs(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,dc||Oc(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?vc(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Hs(((r={})[i.id]=i,r),i.idMap)),i})):_d;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=Fs(td(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===Pd})):Pd in this.config.on),this.strict=!!this.config.strict,this.onEntry=Cc(this.config.entry||this.config.onEntry).map((function(e){return Zc(e)})),this.onExit=Cc(this.config.exit||this.config.onExit).map((function(e){return Zc(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Cc(this.config.invoke).map((function(e,t){var n,r;if(Mc(e)){var i=zc(a.id,t);return a.machine.options.services=Hs(((n={})[i]=e,n),a.machine.options.services),Ld({src:i,id:i})}if(Pc(e.src)){i=e.id||zc(a.id,t);return Ld(Hs(Hs({},e),{id:i,src:e.src}))}if(Mc(e.src)||Lc(e.src)){i=e.id||zc(a.id,t);return a.machine.options.services=Hs(((r={})[i]=e.src,r),a.machine.options.services),Ld(Hs(Hs({id:i},e),{src:i}))}var o=e.src;return Ld(Hs(Hs({id:zc(a.id,t)},e),{src:o}))})),this.activities=Cc(this.config.activities).concat(this.invoke).map((function(e){return qc(e)})),this.transition=this.transition.bind(this),this.tags=Cc(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||rd(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:Hs(Hs({},i),t.actions),activities:Hs(Hs({},o),t.activities),guards:Hs(Hs({},a),t.guards),services:Hs(Hs({},l),t.services),delays:Hs(Hs({},s),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Lc(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:vc(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===Pd,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===Td}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(As.After,"(").concat(e,")").concat(n)}(Lc(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:Xs,event:Lc(e)?e:Dc(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:Lc(e)?e.name:pc(e)}}(r,{delay:t})),e.onExit.push({type:Ys,sendId:r}),r},r=Rc(t)?t.map((function(e,t){var r=n(e.delay,t);return Hs(Hs({},e),{event:r})})):yc(Object.keys(t).map((function(e,r){var i=t[e],o=Pc(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return Cc(o).map((function(e){return Hs(Hs({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return Hs(Hs({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof pd?e.value:fc(e,this.delimiter);if(Pc(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,Ws([],Zs(yc(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=pc(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof pd?e:pd.create(e),n=Array.from(id([],this.getStateNodes(t.value)));return new pd(Hs(Hs({},t),{value:this.resolve(t.value),configuration:n,done:cd(n,this),tags:dd(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=Fs(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=yc(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=yc(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:yc(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:yc(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return Pc(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,Nc(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=Fs(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(Pc(h)&&Md(h)?e.matches(fc(this.getStateNodeById(h).path,this.delimiter)):uc(fc(h,this.delimiter),xc(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||jc(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,Ws([],Zs(u.actions),!1)),i=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=yc(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:yc(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var l,s,c,d,u=this,p=o?id([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=Fs(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!sd(p,x=g.value)||sd(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=Fs(p),m=v.next();!m.done;m=v.next()){var x;sd(e,x=m.value)&&!sd(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),w=yc(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(Gc(e.id,e.doneData),Gc(o.id,e.doneData?$c(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&nd(a).every((function(e){return cd(n.configuration,e)}))&&t.push(Gc(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=qc(e);return{type:As.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Wc(a?Ws(Ws([],Zs(t),!1),Zs(n),!1):Ws(Ws([],Zs(n),!1),Zs(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:Us,event:"function"==typeof e?e:Dc(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:Wc(Ws(Ws([],Zs(e.onExit),!1),Zs(e.activities.map((function(e){return function(e){var t=Lc(e)?e:qc(e);return{type:As.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Wc(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Wc(yc(Ws([],Zs(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!Hc(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=Nc(t);if(e instanceof pd)i=void 0===n?e:this.resolveState(pd.from(e,n));else{var l=Pc(e)?this.resolve(gc(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(pd.from(l,s))}if(!dc&&a.name===Td)throw new Error("An event cannot have the wildcard type ('".concat(Td,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=id([],this.getStateNodes(i.value)),u=c.configuration.length?id(d,c.configuration):d;return c.configuration=Ws([],Zs(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,Ws([],Zs(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Bc);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=cd(p,this),f=u?ld(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?Hs({},t.activities):{};try{for(var x=Fs(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var w=(l=void 0,Fs(y.actions)),C=w.next();!C.done;C=w.next()){var $=C.value;$.type===qs?m[$.activity.id||$.activity.type]=$:$.type===Gs&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=Zs(Yc(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],R=E[1],L=Zs(function(e,t){var n,r,i=Zs([[],[]],2),o=i[0],a=i[1];try{for(var l=Fs(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,Hc),2),P=L[0],T=L[1],_=O.filter((function(e){var t;return e.type===qs&&(null===(t=e.activity)||void 0===t?void 0:t.type)===tc})),M=_.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=Ic(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?$c(e.data,n,r):void 0,s=a?Qc(a,e.id,l):Jc(e.id);return s.meta=e,s}(t.activity,c.machine,R,i),e}),t?Hs({},t.children):{}),D=new pd({value:f||t.value,context:R,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:Sc(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:M,done:h,tags:dd(p),machine:this}),N=n!==R;D.changed=i.name===oc||N;var V=D.history;V&&delete V.history;var j=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||j&&i.name!==Pd))return D;var I=D;if(!h)for(j&&(I=this.resolveRaisedTransition(I,{type:Ks},i,r));P.length;){var A=P.shift();I=this.resolveRaisedTransition(I,A._event,i,r)}var z=I.changed||(V?!!I.actions.length||N||typeof V.value!=typeof I.value||!ud(I.value,V.value):void 0);return I.changed=z,I.history=V,I},e.prototype.getStateNode=function(e){if(Md(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=Md(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&Md(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=hc(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||_d;switch(this.type){case"parallel":return vc(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):_d}));case"compound":if(Pc(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?vc(e,(function(e,t){return e?n.getStateNode(t).resolve(e):_d})):this.initialStateValue||{};default:return e||_d}},e.prototype.getResolvedPath=function(e){if(Md(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return hc(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=mc(this.states,(function(e){return e.initialStateValue||_d}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=ed(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=Pc(t.target)&&Md(t.target)?gc(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return ed(this)?[this]:"compound"!==this.type||this.initial?yc(bc(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(dc||Oc(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=Zs(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:mc(this.states,(function(t,n){if(!e)return t.historyValue();var r=Pc(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?yc(bc(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=Fs(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return Pc(a)?[n.getStateNode(a)]:yc(bc(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=yc(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=Fs(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,Fs(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!Pc(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return Cc(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return Pc(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=Hs(Hs({},e),{actions:Wc(Cc(e.actions)),cond:Tc(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return Hs(Hs({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=Td,a=i[o],l=void 0===a?[]:a,s=Bs(i,["*"]);n=yc(Object.keys(s).map((function(e){dc||e!==Pd||Oc(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=Vc(e,s[e]);return dc||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(Pc(e.target)||Mc(e.target))})),i=t===Pd?"the transient event":"event '".concat(t,"'");Oc(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(Vc(Td,l)))}else n=[];var c=this.config.always?Vc("",this.config.always):[],d=this.config.onDone?Vc(String(Gc(this.id)),this.config.onDone):[];dc||Oc(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=yc(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ws([],Zs(Vc(String(Uc(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ws([],Zs(Vc(String(Xc(e.id)),e.onError)),!1)),t}))),p=this.after,h=yc(Ws(Ws(Ws(Ws([],Zs(d),!1),Zs(u),!1),Zs(n),!1),Zs(c),!1).map((function(e){return Cc(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Fs(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var Nd,Vd=function(e){return{type:Js,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(Nd||(Nd={}));var jd="undefined"!=typeof document?Y:function(){};function Id(e){var t=Z.useRef();return t.current||(t.current={v:e()}),t.current.v}var Ad=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},zd=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var Hd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Bd=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Fd(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Zd(e){var t=K([]),n=K([]);jd((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=Hd(function(e,t){var n,r,i=Ad([[],[]],2),o=i[0],a=i[1];try{for(var l=zd(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===Nd.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Bd([],Hd(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Bd([],Hd(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),jd((function(){for(;n.current.length;){var e=Hd(n.current.shift(),2);Fd(e[0],e[1])}})),U((function(){for(;t.current.length;){var e=Hd(t.current.shift(),2);Fd(e[0],e[1])}}))}var Wd=function(){return Wd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Wd.apply(this,arguments)},qd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Gd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var Ud=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Xd(e,t){void 0===t&&(t={});var n=ee((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=Id((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Gd(G(r),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=qd(t,["context","guards","actions","activities","services","delays","state"]),h=Id((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return Od(r.withConfig(e,(function(){return Wd(Wd({},r.context),o)})),Wd({deferEvents:!0},p))}));return jd((function(){var e;return n&&(e=h.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),jd((function(){return h.start(u?pd.create(u):void 0),function(){h.stop()}}),[]),jd((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),Zd(h),h}(e,t,n),i=Ud(G((function(){var e=r.machine.initialState;return t.state?pd.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yd.apply(null,arguments)}function Kd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const Jd={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(Jd.str(e)||Jd.num(e))return e===t;if(Jd.obj(e)&&Jd.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Jd.und(n)||e===t}};function Qd(e,t){return Jd.und(e)||Jd.nul(e)?t:e}function eu(e){return Jd.und(e)?[]:Jd.arr(e)?e:[e]}function tu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Jd.fun(e)?e(...n):e}function nu(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Kd(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Jd.und(t))return Yd({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Jd.und(t[r])?Yd({},n,{[r]:e[r]}):n),{});return Yd({to:t},n)}class ru{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class iu extends ru{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof ru&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof ru&&e.removeChild(this)))}}class ou extends ru{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof ru&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof ru&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof ru)&&(t[n]=r instanceof ru?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let au,lu;let su,cu=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let du,uu=()=>Date.now();class pu extends ou{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Yd({},e,{style:du(e.style)}):e,this.update=t,this.attach()}}let hu=!1;const fu=new Set,gu=()=>{if(!hu)return!1;let e=uu();for(let t of fu){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof ru,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(fu.delete(t),t.stop(!0))}return fu.size?cu(gu):hu=!1,hu};function vu(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return vu({range:e,output:t,extrapolate:n});if(su&&"string"==typeof e.output[0])return su(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class mu extends iu{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof iu&&!(e instanceof mu)?e.getPayload():Array.isArray(e)?e:[e],this.calc=vu(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=vu(e,t,n)}interpolate(e,t,n){return new mu(this,e,t,n)}}const xu=(e,t,n)=>e&&new mu(e,t,n);function bu(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>bu(e,t)))}class yu extends ru{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&bu(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new mu(this,e,t,n)}}class wu extends iu{constructor(e){super(),this.payload=e.map((e=>new yu(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new mu(this,e,t)}}let Cu=0,$u=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Cu++}update(e){if(!e)return this;const t=nu(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Kd(t,["delay","to"]);if(Jd.arr(i)||Jd.fun(i))this.queue.push(Yd({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=Yd({to:{[n]:i},delay:tu(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=Yd({},e[a.delay],a,{to:Yd({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;Jd.obj(n)&&(this.merged=Yd({},n,this.merged)),Jd.obj(i)&&(this.merged=Yd({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=Kd(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=Jd.arr(a.to)||Jd.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else Jd.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,fu.has(t)||fu.add(t),hu||(hu=!0,cu(gu));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,fu.has(t)&&fu.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Kd(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(Jd.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Yd({},r,nu(r.to[t]));Jd.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(Jd.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=Yd({},r,nu(n));if(Jd.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=Yd({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=Yd({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=Jd.num(i),s=Jd.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!lu[i],c=Jd.arr(i),p=!a&&!c&&!s;let f=Jd.und(r[n])?i:r[n],g=a||c||s?i:1,v=tu(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=eu(h?g.getPayload():g),w=i;p&&(w=su({range:[0,1],output:[i,i]})(1));let C=b&&b.getValue();const $=!Jd.und(x)&&o.animatedValues.some((e=>!e.done)),k=!Jd.equ(w,C),S=!Jd.equ(w,o.previous),E=!Jd.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new yu(f);else if(c)x=b=o.parent||new wu(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new yu(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=eu(h?g.getPayload():g),m=eu(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=uu(),e.done=!1,e.animatedStyles.clear()})),tu(u,n)&&x.setValue(p?g:i,!1),Yd({},e,{[n]:Yd({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:w,config:v,fromValues:eu(x.getValue()),immediate:tu(u,n),initialVelocity:Qd(v.velocity,0),clamp:Qd(v.clamp,!1),precision:Qd(v.precision,.01),tension:Qd(v.tension,170),friction:Qd(v.friction,26),mass:Qd(v.mass,1),duration:v.duration,easing:Qd(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[w,w]})),x.done=!0,this.hasChanged=!0,Yd({},e,{[n]:Yd({},e[n],{previous:w})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const ku=e=>{const t=Jd.fun(e),n=((e,t)=>{const n=K(!1),r=K(),i=Jd.fun(t),o=Q((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new $u,a=i?tu(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,ne(l,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const s=Q((()=>e=>r.current.map(((t,n)=>{t.update(i?tu(e,n,t):e[n]),l||t.start()}))),[e]);U((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),U((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class Su extends ou{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof ru||(e=au.transform(e)),this.payload=e}}const Eu={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ou="[-+]?\\d*\\.?\\d+",Ru=Ou+"%";function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Pu=new RegExp("rgb"+Lu(Ou,Ou,Ou)),Tu=new RegExp("rgba"+Lu(Ou,Ou,Ou,Ou)),_u=new RegExp("hsl"+Lu(Ou,Ru,Ru)),Mu=new RegExp("hsla"+Lu(Ou,Ru,Ru,Ou)),Du=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Nu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vu=/^#([0-9a-fA-F]{6})$/,ju=/^#([0-9a-fA-F]{8})$/;function Iu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Au(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Iu(i,r,e+1/3),a=Iu(i,r,e),l=Iu(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function zu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Hu(e){return(parseFloat(e)%360+360)%360/360}function Bu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Fu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Zu(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Vu.exec(e))?parseInt(t[1]+"ff",16)>>>0:Eu.hasOwnProperty(e)?Eu[e]:(t=Pu.exec(e))?(zu(t[1])<<24|zu(t[2])<<16|zu(t[3])<<8|255)>>>0:(t=Tu.exec(e))?(zu(t[1])<<24|zu(t[2])<<16|zu(t[3])<<8|Bu(t[4]))>>>0:(t=Du.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ju.exec(e))?parseInt(t[1],16)>>>0:(t=Nu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_u.exec(e))?(255|Au(Hu(t[1]),Fu(t[2]),Fu(t[3])))>>>0:(t=Mu.exec(e))?(Au(Hu(t[1]),Fu(t[2]),Fu(t[3]))|Bu(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Wu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Gu=new RegExp(`(${Object.keys(Eu).join("|")})`,"g");let Uu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Xu=["Webkit","Ms","Moz","O"];function Yu(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Uu.hasOwnProperty(e)&&Uu[e]?(""+t).trim():t+"px"}Uu=Object.keys(Uu).reduce(((e,t)=>(Xu.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Uu);const Ku={};var Ju;du=e=>new Su(e),Ju=e=>{const t=e.output.map((e=>e.replace(qu,Zu))).map((e=>e.replace(Gu,Zu))),n=t[0].match(Wu).map((()=>[]));t.forEach((e=>{e.match(Wu).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Wu).map(((t,r)=>vu(Yd({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Wu,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},su=Ju,lu=Eu,function(e,t){au={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Kd(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Yu(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:Ku[t]||(Ku[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var Qu;const ep=(Qu=e=>q(((t,n)=>{const r=function(){const e=G(!1)[1];return ee((()=>e((e=>!e))),[])}(),i=K(!0),o=K(null),a=K(null),l=ee((e=>{const t=o.current;o.current=new pu(e,(()=>{let e=!1;a.current&&(e=au.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);U((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),ne(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Kd(s,["scrollTop","scrollLeft"]),d=(u=e,!Jd.fun(u)||u.prototype instanceof W.Component?e=>a.current=function(e,t){return t&&(Jd.fun(t)?t(e):Jd.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return W.createElement(e,Yd({},c,{ref:d}))})),e=>(Jd.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Qu(n),e}),Qu))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function tp(e,t){return e.map((function(e,n){return e+t[n]}))}function np(e,t){return e.map((function(e,n){return e-t[n]}))}function rp(e){return Math.hypot.apply(Math,e)}function ip(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function op(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function ap(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-op(t-e,n-t,r)+t:e>n?+op(e-n,n-t,r)+n:e}function lp(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function sp(){return sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(this,arguments)}function cp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function dp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function up(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pp(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return up(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?up(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function hp(){}function fp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?hp:1===t.length?t[0]:function(){for(var e,n,r=pp(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function gp(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function vp(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function mp(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=mp(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var xp=sp({},{threshold:function(e){return void 0===e&&(e=0),gp(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return gp(.15);case!1:return gp(0);default:return gp(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:gp(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return xp.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),bp="undefined"!=typeof window&&window.document&&window.document.createElement,yp={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=bp?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},wp=sp({},xp,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=gp(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),gp(e)},swipeDistance:function(e){return void 0===e&&(e=60),gp(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Cp(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),mp(e,yp)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),mp(e,wp)}(o),a}function $p(e){return sp({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:hp,canceled:!1,memo:void 0,args:void 0},e)}function kp(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:$p({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:$p({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:$p({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:$p({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:$p({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Sp=new Map,Ep=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=sp({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?Op(h[0],o[0]):d[0],g=!1===d[1]?Op(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return sp({},v,{_movement:h,delta:[0,0]});var m,x,b,y,w=v._intentional,C=h;(!1!==w[0]&&!1===d[0]&&(x=vp(n,this.state),m=vp(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==w[1]&&!1===d[1])&&(x=null!=(b=x)?b:vp(n,this.state),m=null!=(y=m)?y:vp(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==w[0]?h[0]-w[0]:s[0],!1!==w[1]?h[1]-w[1]:s[1]],k=tp($,u),S=c?i:[0,0];return $=Rp(l,tp($,s),S),sp({},v,{intentional:!1!==w[0]||!1!==w[1],_initial:s,_movement:C,movement:$,values:e,offset:Rp(l,k,S),delta:np($,p)})},t.clean=function(){this.clearTimeout()},lp(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function Op(e,t){return Math.abs(e)>=t&&ip(e)*t}function Rp(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[ap(r,s,c,o),ap(i,u,p,a)]}function Lp(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function Pp(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,sp({},t,{event:n})].concat(i))}}var Tp=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=pp(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];Dp(e,c[0],Pp(c[1],sp({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=Mp(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;Vp(i,_p(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,fp.apply(void 0,d)])}Np(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=fp.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Mp(t.config),n=t.config.eventOptions;e&&Vp(e,_p(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){Vp(n,i[o],r)}e.windowListeners={}}(t)},this.state=kp(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function _p(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Mp(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Dp(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Np(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=pp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function Vp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=pp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function jp(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(Sp.get("drag"));e.wheel&&t.add(Sp.get("wheel"));e.scroll&&t.add(Sp.get("scroll"));e.move&&t.add(Sp.get("move"));e.pinch&&t.add(Sp.get("pinch"));e.hover&&t.add(Sp.get("hover"));return t}(e),i=W.useMemo((function(){return new Tp(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,W.useEffect(i.effect,[]),i.config.domTarget?Ip:i.bind}function Ip(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function Ap(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function zp(e){var t="buttons"in e?e.buttons:0,n=Ap(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function Hp(e){var t=Ap(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Bp=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(Vp(r.window,i[t],r.eventOptions),Np(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(dp(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=zp(e);if(n.down){t.updateSharedState(n);var r=Hp(e),i=t.getKinematics(r,e),o=Lp(dp(t),e),a=t.state._isTap,l=rp(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(sp({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=sp({},Lp(dp(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=ip(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=ip(o))),t.updateGestureState(sp({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(dp(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Vp(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}cp(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Hp(e);this.updateSharedState(zp(e)),this.updateGestureState(sp({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return sp({},kp()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),Lp(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Dp(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Dp(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}cp(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return np(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=rp(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:rp(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Ep));function Fp(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Fp(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Fp(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||Fp(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function Zp(e,t){try{return Fp(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function Wp(e,t){void 0===t&&(t={}),Sp.set("drag",Bp);var n=K();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(Cp,Zp)),jp({drag:e},n.current(t))}
2439
+ ***************************************************************************** */var Zs,Ws,qs=function(){return qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qs.apply(this,arguments)};function Gs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Us(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xs(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ys(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(Zs||(Zs={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Ws||(Ws={}));var Ks=Zs.Start,Js=Zs.Stop,Qs=Zs.Raise,ec=Zs.Send,tc=Zs.Cancel,nc=Zs.NullEvent,rc=Zs.Assign;Zs.After,Zs.DoneState;var ic=Zs.Log,oc=Zs.Init,ac=Zs.Invoke;Zs.ErrorExecution;var lc,sc=Zs.ErrorPlatform,cc=Zs.ErrorCustom,dc=Zs.Update,uc=Zs.Choose,pc=Zs.Pure,hc={},fc="xstate.guard",gc="production"===process.env.NODE_ENV;function vc(e,t,n){void 0===n&&(n=".");var r=bc(e,n),i=bc(t,n);return Nc(i)?!!Nc(r)&&i===r:Nc(r)?r in i:Object.keys(r).every((function(e){return e in i&&vc(r[e],i[e])}))}function mc(e){try{return Nc(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function xc(e,t){try{return Mc(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function bc(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:Mc(e)?yc(e):"string"!=typeof e?e:yc(xc(e,t));var n}function yc(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function wc(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function Cc(e,t,n){var r,i,o={};try{for(var a=Us(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var $c=function(e){return function(t){var n,r,i=t;try{for(var o=Us(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function kc(e){return e?Nc(e)?[[e]]:Sc(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?kc(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Sc(e){var t;return(t=[]).concat.apply(t,Ys([],Xs(e),!1))}function Ec(e){return Mc(e)?e:[e]}function Oc(e){return void 0===e?[]:Ec(e)}function Rc(e,t,n){var r,i;if(Dc(e))return e(t,n.data);var o={};try{for(var a=Us(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];Dc(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function Lc(e){return e instanceof Promise||!(null===e||!Dc(e)&&"object"!=typeof e||!Dc(e.then))}function Pc(e,t){return wc(e.states,(function(e,n){if(e){var r=(Nc(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:Pc(e,r)}}}))}function Tc(e,t,n,r){gc||_c(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(Dc(a))s=a(e,t.data,l);else try{for(var c=Us(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=Dc(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var _c=function(){};function Mc(e){return Array.isArray(e)}function Dc(e){return"function"==typeof e}function Nc(e){return"string"==typeof e}function Vc(e,t){if(e)return Nc(e)?{type:fc,name:e,predicate:t?t[e]:void 0}:Dc(e)?{type:fc,name:e.name,predicate:e}:e}gc||(_c=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var jc=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Ic(e){return!!e&&"__xstatenode"in e}function Ac(e,t){return Nc(e)||"number"==typeof e?qs({type:e},t):e}function zc(e,t){if(!Nc(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=Ac(e);return qs({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Hc(e,t){return Ec(t).map((function(t){return void 0===t||"string"==typeof t||Ic(t)?{target:t,event:e}:qs(qs({},t),{event:e})}))}function Bc(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===fc)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function Fc(e){return"string"==typeof e?{type:e}:e}function Zc(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function Wc(e,t){return"".concat(e,":invocation[").concat(t,"]")}function qc(e){return(e.type===Qs||e.type===ec&&e.to===Ws.Internal)&&"number"!=typeof e.delay}(lc={})[jc]=function(){return this},lc[Symbol.observable]=function(){return this};var Gc=zc({type:oc});function Uc(e,t){return t&&t[e]||void 0}function Xc(e,t){var n;if(Nc(e)||"number"==typeof e)n=Dc(r=Uc(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(Dc(e))n={type:e.name||e.toString(),exec:e};else{var r;if(Dc(r=Uc(e.type,t)))n=qs(qs({},e),{exec:r});else if(r){var i=r.type||e.type;n=qs(qs(qs({},r),e),{type:i})}else n=e}return n}var Yc=function(e,t){return e?(Mc(e)?e:[e]).map((function(e){return Xc(e,t)})):[]};function Kc(e){var t=Xc(e);return qs(qs({id:Nc(e)?e:t.id},t),{type:t.type})}function Jc(e,t){var n="".concat(Zs.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Qc(e,t){var n="".concat(Zs.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function ed(e,t){var n="".concat(Zs.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function td(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=Us(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==rc?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?Tc(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case Qs:var p=function(e,t,n,r){var i,o={_event:n},a=zc(Dc(e.event)?e.event(t,n.data,o):e.event);if(Nc(e.delay)){var l=r&&r[e.delay];i=Dc(l)?l(t,n.data,o):l}else i=Dc(e.delay)?e.delay(t,n.data,o):e.delay;return qs(qs({},e),{type:Qs,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case ec:var h=function(e,t,n,r){var i,o={_event:n},a=zc(Dc(e.event)?e.event(t,n.data,o):e.event);if(Nc(e.delay)){var l=r&&r[e.delay];i=Dc(l)?l(t,n.data,o):l}else i=Dc(e.delay)?e.delay(t,n.data,o):e.delay;var s=Dc(e.to)?e.to(t,n.data,o):e.to;return qs(qs({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!gc){var f=l.delay;_c(!Nc(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==Ws.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case ic:var g=function(e,t,n){return qs(qs({},e),{value:Nc(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case uc:if(!(b=null===(u=l.conds.find((function(n){var i=Vc(n.cond,e.options.guards);return!i||Bc(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=Xs(td(e,t,s,r,[{type:i,actions:Yc(Oc(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case pc:var b;if(!(b=l.get(s,r.data)))return[];var y=Xs(td(e,t,s,r,[{type:i,actions:Yc(Oc(b),e.options.actions)}],o,a),2),w=y[0],C=y[1];return s=C,null==c||c.push(s),w;case Js:g=function(e,t,n){var r=Dc(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:Zs.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case rc:s=Tc(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=Xc(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=qs(qs({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ys([c[S]],Xs(t),!1))}});$=E}return $}}var p=Sc(i.map((function(e){var t,n,i=[];try{for(var a=Us(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var nd=function(e,t){return t(e)};function rd(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[jc]=function(){return this},t}function id(e,t,n){var r=rd(t);if(r.deferred=!0,Ic(e)){var i=r.state=nd(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var od=function(e){return"atomic"===e.type||"final"===e.type};function ad(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function ld(e){return ad(e).filter((function(e){return"history"!==e.type}))}function sd(e){var t=[e];return od(e)?t:t.concat(Sc(ld(e).map(sd)))}function cd(e,t){var n,r,i,o,a,l,s,c,d=ud(new Set(e)),u=new Set(t);try{for(var p=Us(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=ud(u);try{for(var v=Us(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,Us(ld($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=Us(u),C=w.next();!C.done;C=w.next()){var $;for(f=($=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}return u}function dd(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(od(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=dd(e,t)})),i}function ud(e){var t,n,r=new Map;try{for(var i=Us(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function pd(e,t){return dd(e,ud(cd([e],t)))}function hd(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function fd(e,t){return"compound"===t.type?ld(t).some((function(t){return"final"===t.type&&hd(e,t)})):"parallel"===t.type&&ld(t).every((function(t){return fd(e,t)}))}function gd(e){return new Set(Sc(e.map((function(e){return e.tags}))))}function vd(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(Nc(e)||Nc(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return vd(e[n],t[n])}))}var md=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=hc,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||hc,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return Ys([],Xs(new Set(Sc(Ys([],Xs(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Gc,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Gc;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),Nc(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ys([],Xs(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Gs(e,["configuration","transitions","tags","machine"]);return qs(qs({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return vc(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;gc&&_c(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),xd={deferEvents:!1},bd=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=qs(qs({},xd),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),yd=new Map,wd=0,Cd=function(){return"x:".concat(wd++)},$d=function(e,t){return yd.set(e,t),e},kd=function(e){return yd.get(e)},Sd=function(e){yd.delete(e)};function Ed(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(gc||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function Od(e){if(Ed()){var t=function(){var e=Ed();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function Rd(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return qs(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[jc]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=Zc(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var Ld,Pd={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Ld||(Ld={}));var Td=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Ld.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(Mc(e))return r.batch(e),r.state;var n=zc(Ac(e,t));if(r.status===Ld.Stopped)return gc||_c(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==Ld.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===Ws.Parent||r.parent.id===t),a=o?r.parent:Nc(t)?t===Ws.Internal?r:r.children.get(t)||kd(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==Ld.Stopped||r.parent!==a||r.state.done){var l=qs(qs({},e),{name:e.name===cc?"".concat(ed(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));gc||_c(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||Uc(e.type,i),a=Dc(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Qs:var l=e;r.defer(l);break;case ec:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Gc):r.send(s._event);break;case tc:r.cancel(e.sendId);break;case Ks:if(r.status!==Ld.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===Zs.Invoke){var d=Fc(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;gc||_c(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(gc||_c(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?Rc(h,t,n):void 0;if("string"==typeof u)return;var v=Dc(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;Ic(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Js:r.stopChild(e.activity.id);break;case ic:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:gc||_c(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=qs(qs({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new bd({deferEvents:this.options.deferEvents}),this.sessionId=Cd()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:nd(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return gc||_c(this.status!==Ld.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=Us(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Gc||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=Us(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Us(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=Us(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?Rc(x.doneData,e.context,t):void 0;this._doneEvent=Qc(this.id,b);try{for(var y=Us(this.doneListeners),w=y.next();!w.done;w=y.next()){(0,w.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),Sd(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Ld.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=Zc(e,t,n);this.listeners.add(i.next),this.status!==Ld.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===Ld.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===Ld.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===Ld.Running)return this;this.machine._init(),$d(this.sessionId,this),this.initialized=!0,this.status=Ld.Running;var n=void 0===e?this.initialState:nd(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(md.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Gc)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){Dc(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=Us(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=Us(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=Us(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=Us(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Ld.Stopped,this._initialState=void 0;try{for(var b=Us(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var w=y.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new bd({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=zc({type:"xstate.stop"}),r=nd(e,(function(){var t=Sc(Ys([],Xs(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Yc(t.onExit,e.machine.options.actions)}))),r=Xs(td(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new md({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!qc(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),Sd(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===Ld.NotStarted&&this.options.deferEvents)gc||_c(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==Ld.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=t.state,a=!1,l=[],s=function(e){var r=zc(e);t.forward(r),o=nd(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,Ys([],Xs(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return qs(qs({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=Us(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,zc(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=zc(e);if(0===r.name.indexOf(sc)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(sc)})))throw r.data.data;return nd(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=Us(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),Dc(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==Ld.Running)return id(e,t);if(Lc(e))return this.spawnPromise(Promise.resolve(e),t);if(Dc(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&Dc(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Ic(e))return this.spawnMachine(e,qs(qs({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,qs(qs({},this.options),{parent:this,id:n.id||t.id})),o=qs(qs({},Pd),n);o.sync&&i.onTransition((function(e){r.send(dc,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(zc(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=Rd(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(zc(Qc(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=ed(t,e);try{i.send(zc(n,{origin:t}))}catch(r){!function(e,t,n){if(!gc){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=Zc(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[jc]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(zc(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(ed(t,e))}if(Lc(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Zc(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,Dc(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[jc]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(zc(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(zc(ed(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(zc(Qc(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[jc]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else gc||_c(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[jc]=function(){return this},n))},e.prototype.attachDev=function(){var e=Ed();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(qs(qs({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:qs({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Od(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[jc]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Ld.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=_d,e}();function _d(e,t){return new Td(e,t)}function Md(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Dd(e){return qs(qs({type:ac},e),{toJSON:function(){e.onDone,e.onError;var t=Gs(e,["onDone","onError"]);return qs(qs({},t),{type:ac,src:Md(e.src)})}})}var Nd="",Vd="*",jd={},Id=function(e){return"#"===e[0]},Ad=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||Ys([this.machine.key],Xs(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,gc||_c(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?wc(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,qs(((r={})[i.id]=i,r),i.idMap)),i})):jd;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=Us(ad(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===Nd})):Nd in this.config.on),this.strict=!!this.config.strict,this.onEntry=Oc(this.config.entry||this.config.onEntry).map((function(e){return Xc(e)})),this.onExit=Oc(this.config.exit||this.config.onExit).map((function(e){return Xc(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Oc(this.config.invoke).map((function(e,t){var n,r;if(Ic(e)){var i=Wc(a.id,t);return a.machine.options.services=qs(((n={})[i]=e,n),a.machine.options.services),Dd({src:i,id:i})}if(Nc(e.src)){i=e.id||Wc(a.id,t);return Dd(qs(qs({},e),{id:i,src:e.src}))}if(Ic(e.src)||Dc(e.src)){i=e.id||Wc(a.id,t);return a.machine.options.services=qs(((r={})[i]=e.src,r),a.machine.options.services),Dd(qs(qs({id:i},e),{src:i}))}var o=e.src;return Dd(qs(qs({id:Wc(a.id,t)},e),{src:o}))})),this.activities=Oc(this.config.activities).concat(this.invoke).map((function(e){return Kc(e)})),this.transition=this.transition.bind(this),this.tags=Oc(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||sd(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:qs(qs({},i),t.actions),activities:qs(qs({},o),t.activities),guards:qs(qs({},a),t.guards),services:qs(qs({},l),t.services),delays:qs(qs({},s),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Dc(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:wc(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===Nd,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===Vd}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(Zs.After,"(").concat(e,")").concat(n)}(Dc(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:ec,event:Dc(e)?e:Ac(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:Dc(e)?e.name:mc(e)}}(r,{delay:t})),e.onExit.push({type:tc,sendId:r}),r},r=Mc(t)?t.map((function(e,t){var r=n(e.delay,t);return qs(qs({},e),{event:r})})):Sc(Object.keys(t).map((function(e,r){var i=t[e],o=Nc(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return Oc(o).map((function(e){return qs(qs({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return qs(qs({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof md?e.value:bc(e,this.delimiter);if(Nc(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,Ys([],Xs(Sc(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=mc(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof md?e:md.create(e),n=Array.from(cd([],this.getStateNodes(t.value)));return new md(qs(qs({},t),{value:this.resolve(t.value),configuration:n,done:fd(n,this),tags:gd(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=Us(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=Sc(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=Sc(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:Sc(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Sc(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return Nc(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,zc(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=Us(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(Nc(h)&&Id(h)?e.matches(bc(this.getStateNodeById(h).path,this.delimiter)):vc(bc(h,this.delimiter),$c(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||Bc(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,Ys([],Xs(u.actions),!1)),i=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=Sc(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:Sc(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var l,s,c,d,u=this,p=o?cd([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=Us(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!hd(p,x=g.value)||hd(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=Us(p),m=v.next();!m.done;m=v.next()){var x;hd(e,x=m.value)&&!hd(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),w=Sc(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(Jc(e.id,e.doneData),Jc(o.id,e.doneData?Rc(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&ld(a).every((function(e){return fd(n.configuration,e)}))&&t.push(Jc(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Kc(e);return{type:Zs.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Yc(a?Ys(Ys([],Xs(t),!1),Xs(n),!1):Ys(Ys([],Xs(n),!1),Xs(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:Qs,event:"function"==typeof e?e:Ac(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:Yc(Ys(Ys([],Xs(e.onExit),!1),Xs(e.activities.map((function(e){return function(e){var t=Dc(e)?e:Kc(e);return{type:Zs.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Yc(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Yc(Sc(Ys([],Xs(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!qc(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=zc(t);if(e instanceof md)i=void 0===n?e:this.resolveState(md.from(e,n));else{var l=Nc(e)?this.resolve(yc(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(md.from(l,s))}if(!gc&&a.name===Vd)throw new Error("An event cannot have the wildcard type ('".concat(Vd,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=cd([],this.getStateNodes(i.value)),u=c.configuration.length?cd(d,c.configuration):d;return c.configuration=Ys([],Xs(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,Ys([],Xs(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Gc);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=fd(p,this),f=u?pd(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?qs({},t.activities):{};try{for(var x=Us(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var w=(l=void 0,Us(y.actions)),C=w.next();!C.done;C=w.next()){var $=C.value;$.type===Ks?m[$.activity.id||$.activity.type]=$:$.type===Js&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=Xs(td(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],R=E[1],L=Xs(function(e,t){var n,r,i=Xs([[],[]],2),o=i[0],a=i[1];try{for(var l=Us(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,qc),2),P=L[0],T=L[1],_=O.filter((function(e){var t;return e.type===Ks&&(null===(t=e.activity)||void 0===t?void 0:t.type)===ac})),M=_.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=Fc(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?Rc(e.data,n,r):void 0,s=a?id(a,e.id,l):rd(e.id);return s.meta=e,s}(t.activity,c.machine,R,i),e}),t?qs({},t.children):{}),D=new md({value:f||t.value,context:R,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:Pc(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:M,done:h,tags:gd(p),machine:this}),N=n!==R;D.changed=i.name===dc||N;var V=D.history;V&&delete V.history;var j=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||j&&i.name!==Nd))return D;var I=D;if(!h)for(j&&(I=this.resolveRaisedTransition(I,{type:nc},i,r));P.length;){var A=P.shift();I=this.resolveRaisedTransition(I,A._event,i,r)}var z=I.changed||(V?!!I.actions.length||N||typeof V.value!=typeof I.value||!vd(I.value,V.value):void 0);return I.changed=z,I.history=V,I},e.prototype.getStateNode=function(e){if(Id(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=Id(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&Id(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=xc(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||jd;switch(this.type){case"parallel":return wc(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):jd}));case"compound":if(Nc(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?wc(e,(function(e,t){return e?n.getStateNode(t).resolve(e):jd})):this.initialStateValue||{};default:return e||jd}},e.prototype.getResolvedPath=function(e){if(Id(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return xc(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=Cc(this.states,(function(e){return e.initialStateValue||jd}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=od(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=Nc(t.target)&&Id(t.target)?yc(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return od(this)?[this]:"compound"!==this.type||this.initial?Sc(kc(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(gc||_c(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=Xs(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:Cc(this.states,(function(t,n){if(!e)return t.historyValue();var r=Nc(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?Sc(kc(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=Us(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return Nc(a)?[n.getStateNode(a)]:Sc(kc(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=Sc(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=Us(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,Us(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!Nc(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return Oc(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return Nc(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=qs(qs({},e),{actions:Yc(Oc(e.actions)),cond:Vc(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return qs(qs({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=Vd,a=i[o],l=void 0===a?[]:a,s=Gs(i,["*"]);n=Sc(Object.keys(s).map((function(e){gc||e!==Nd||_c(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=Hc(e,s[e]);return gc||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(Nc(e.target)||Ic(e.target))})),i=t===Nd?"the transient event":"event '".concat(t,"'");_c(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(Hc(Vd,l)))}else n=[];var c=this.config.always?Hc("",this.config.always):[],d=this.config.onDone?Hc(String(Jc(this.id)),this.config.onDone):[];gc||_c(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Sc(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ys([],Xs(Hc(String(Qc(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ys([],Xs(Hc(String(ed(e.id)),e.onError)),!1)),t}))),p=this.after,h=Sc(Ys(Ys(Ys(Ys([],Xs(d),!1),Xs(u),!1),Xs(n),!1),Xs(c),!1).map((function(e){return Oc(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Us(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var zd,Hd=function(e){return{type:rc,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(zd||(zd={}));var Bd="undefined"!=typeof document?Y:function(){};function Fd(e){var t=Z.useRef();return t.current||(t.current={v:e()}),t.current.v}var Zd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Wd=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var qd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Gd=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Ud(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Xd(e){var t=K([]),n=K([]);Bd((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=qd(function(e,t){var n,r,i=Zd([[],[]],2),o=i[0],a=i[1];try{for(var l=Wd(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===zd.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Gd([],qd(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Gd([],qd(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),Bd((function(){for(;n.current.length;){var e=qd(n.current.shift(),2);Ud(e[0],e[1])}})),U((function(){for(;t.current.length;){var e=qd(t.current.shift(),2);Ud(e[0],e[1])}}))}var Yd=function(){return Yd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yd.apply(this,arguments)},Kd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Jd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var Qd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function eu(e,t){void 0===t&&(t={});var n=ee((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=Fd((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Jd(G(r),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=Kd(t,["context","guards","actions","activities","services","delays","state"]),h=Fd((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return _d(r.withConfig(e,(function(){return Yd(Yd({},r.context),o)})),Yd({deferEvents:!0},p))}));return Bd((function(){var e;return n&&(e=h.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),Bd((function(){return h.start(u?md.create(u):void 0),function(){h.stop()}}),[]),Bd((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),Xd(h),h}(e,t,n),i=Qd(G((function(){var e=r.machine.initialState;return t.state?md.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(null,arguments)}function nu(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const ru={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(ru.str(e)||ru.num(e))return e===t;if(ru.obj(e)&&ru.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!ru.und(n)||e===t}};function iu(e,t){return ru.und(e)||ru.nul(e)?t:e}function ou(e){return ru.und(e)?[]:ru.arr(e)?e:[e]}function au(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ru.fun(e)?e(...n):e}function lu(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,nu(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(ru.und(t))return tu({to:t},e);const n=Object.keys(e).reduce(((n,r)=>ru.und(t[r])?tu({},n,{[r]:e[r]}):n),{});return tu({to:t},n)}class su{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class cu extends su{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof su&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof su&&e.removeChild(this)))}}class du extends su{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof su&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof su&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof su)&&(t[n]=r instanceof su?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let uu,pu;let hu,fu=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let gu,vu=()=>Date.now();class mu extends du{constructor(e,t){super(),this.update=void 0,this.payload=e.style?tu({},e,{style:gu(e.style)}):e,this.update=t,this.attach()}}let xu=!1;const bu=new Set,yu=()=>{if(!xu)return!1;let e=vu();for(let t of bu){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof su,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(bu.delete(t),t.stop(!0))}return bu.size?fu(yu):xu=!1,xu};function wu(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return wu({range:e,output:t,extrapolate:n});if(hu&&"string"==typeof e.output[0])return hu(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class Cu extends cu{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof cu&&!(e instanceof Cu)?e.getPayload():Array.isArray(e)?e:[e],this.calc=wu(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=wu(e,t,n)}interpolate(e,t,n){return new Cu(this,e,t,n)}}const $u=(e,t,n)=>e&&new Cu(e,t,n);function ku(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>ku(e,t)))}class Su extends su{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&ku(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new Cu(this,e,t,n)}}class Eu extends cu{constructor(e){super(),this.payload=e.map((e=>new Su(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new Cu(this,e,t)}}let Ou=0,Ru=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Ou++}update(e){if(!e)return this;const t=lu(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=nu(t,["delay","to"]);if(ru.arr(i)||ru.fun(i))this.queue.push(tu({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=tu({to:{[n]:i},delay:au(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=tu({},e[a.delay],a,{to:tu({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;ru.obj(n)&&(this.merged=tu({},n,this.merged)),ru.obj(i)&&(this.merged=tu({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=nu(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=ru.arr(a.to)||ru.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else ru.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,bu.has(t)||bu.add(t),xu||(xu=!0,fu(yu));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,bu.has(t)&&bu.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=nu(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(ru.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=tu({},r,lu(r.to[t]));ru.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(ru.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=tu({},r,lu(n));if(ru.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=tu({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=tu({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=ru.num(i),s=ru.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!pu[i],c=ru.arr(i),p=!a&&!c&&!s;let f=ru.und(r[n])?i:r[n],g=a||c||s?i:1,v=au(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=ou(h?g.getPayload():g),w=i;p&&(w=hu({range:[0,1],output:[i,i]})(1));let C=b&&b.getValue();const $=!ru.und(x)&&o.animatedValues.some((e=>!e.done)),k=!ru.equ(w,C),S=!ru.equ(w,o.previous),E=!ru.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new Su(f);else if(c)x=b=o.parent||new Eu(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new Su(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=ou(h?g.getPayload():g),m=ou(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=vu(),e.done=!1,e.animatedStyles.clear()})),au(u,n)&&x.setValue(p?g:i,!1),tu({},e,{[n]:tu({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:w,config:v,fromValues:ou(x.getValue()),immediate:au(u,n),initialVelocity:iu(v.velocity,0),clamp:iu(v.clamp,!1),precision:iu(v.precision,.01),tension:iu(v.tension,170),friction:iu(v.friction,26),mass:iu(v.mass,1),duration:v.duration,easing:iu(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[w,w]})),x.done=!0,this.hasChanged=!0,tu({},e,{[n]:tu({},e[n],{previous:w})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const Lu=e=>{const t=ru.fun(e),n=((e,t)=>{const n=K(!1),r=K(),i=ru.fun(t),o=Q((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new Ru,a=i?au(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,ne(l,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const s=Q((()=>e=>r.current.map(((t,n)=>{t.update(i?au(e,n,t):e[n]),l||t.start()}))),[e]);U((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),U((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class Pu extends du{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof su||(e=uu.transform(e)),this.payload=e}}const Tu={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},_u="[-+]?\\d*\\.?\\d+",Mu=_u+"%";function Du(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Nu=new RegExp("rgb"+Du(_u,_u,_u)),Vu=new RegExp("rgba"+Du(_u,_u,_u,_u)),ju=new RegExp("hsl"+Du(_u,Mu,Mu)),Iu=new RegExp("hsla"+Du(_u,Mu,Mu,_u)),Au=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hu=/^#([0-9a-fA-F]{6})$/,Bu=/^#([0-9a-fA-F]{8})$/;function Fu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zu(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Fu(i,r,e+1/3),a=Fu(i,r,e),l=Fu(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Wu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function qu(e){return(parseFloat(e)%360+360)%360/360}function Gu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Uu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Xu(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Hu.exec(e))?parseInt(t[1]+"ff",16)>>>0:Tu.hasOwnProperty(e)?Tu[e]:(t=Nu.exec(e))?(Wu(t[1])<<24|Wu(t[2])<<16|Wu(t[3])<<8|255)>>>0:(t=Vu.exec(e))?(Wu(t[1])<<24|Wu(t[2])<<16|Wu(t[3])<<8|Gu(t[4]))>>>0:(t=Au.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Bu.exec(e))?parseInt(t[1],16)>>>0:(t=zu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ju.exec(e))?(255|Zu(qu(t[1]),Uu(t[2]),Uu(t[3])))>>>0:(t=Iu.exec(e))?(Zu(qu(t[1]),Uu(t[2]),Uu(t[3]))|Gu(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Yu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ku=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ju=new RegExp(`(${Object.keys(Tu).join("|")})`,"g");let Qu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const ep=["Webkit","Ms","Moz","O"];function tp(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qu.hasOwnProperty(e)&&Qu[e]?(""+t).trim():t+"px"}Qu=Object.keys(Qu).reduce(((e,t)=>(ep.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Qu);const np={};var rp;gu=e=>new Pu(e),rp=e=>{const t=e.output.map((e=>e.replace(Ku,Xu))).map((e=>e.replace(Ju,Xu))),n=t[0].match(Yu).map((()=>[]));t.forEach((e=>{e.match(Yu).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Yu).map(((t,r)=>wu(tu({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Yu,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},hu=rp,pu=Tu,function(e,t){uu={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=nu(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=tp(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:np[t]||(np[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var ip;const op=(ip=e=>q(((t,n)=>{const r=function(){const e=G(!1)[1];return ee((()=>e((e=>!e))),[])}(),i=K(!0),o=K(null),a=K(null),l=ee((e=>{const t=o.current;o.current=new mu(e,(()=>{let e=!1;a.current&&(e=uu.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);U((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),ne(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=nu(s,["scrollTop","scrollLeft"]),d=(u=e,!ru.fun(u)||u.prototype instanceof W.Component?e=>a.current=function(e,t){return t&&(ru.fun(t)?t(e):ru.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return W.createElement(e,tu({},c,{ref:d}))})),e=>(ru.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=ip(n),e}),ip))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function ap(e,t){return e.map((function(e,n){return e+t[n]}))}function lp(e,t){return e.map((function(e,n){return e-t[n]}))}function sp(e){return Math.hypot.apply(Math,e)}function cp(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function dp(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function up(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-dp(t-e,n-t,r)+t:e>n?+dp(e-n,n-t,r)+n:e}function pp(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function hp(){return hp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hp.apply(this,arguments)}function fp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function gp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mp(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vp(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function xp(){}function bp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?xp:1===t.length?t[0]:function(){for(var e,n,r=mp(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function yp(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function wp(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function Cp(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=Cp(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var $p=hp({},{threshold:function(e){return void 0===e&&(e=0),yp(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return yp(.15);case!1:return yp(0);default:return yp(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:yp(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return $p.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),kp="undefined"!=typeof window&&window.document&&window.document.createElement,Sp={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=kp?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},Ep=hp({},$p,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=yp(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),yp(e)},swipeDistance:function(e){return void 0===e&&(e=60),yp(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Op(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),Cp(e,Sp)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),Cp(e,Ep)}(o),a}function Rp(e){return hp({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:xp,canceled:!1,memo:void 0,args:void 0},e)}function Lp(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:Rp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:Rp({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:Rp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:Rp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:Rp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Pp=new Map,Tp=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=hp({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?_p(h[0],o[0]):d[0],g=!1===d[1]?_p(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return hp({},v,{_movement:h,delta:[0,0]});var m,x,b,y,w=v._intentional,C=h;(!1!==w[0]&&!1===d[0]&&(x=wp(n,this.state),m=wp(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==w[1]&&!1===d[1])&&(x=null!=(b=x)?b:wp(n,this.state),m=null!=(y=m)?y:wp(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==w[0]?h[0]-w[0]:s[0],!1!==w[1]?h[1]-w[1]:s[1]],k=ap($,u),S=c?i:[0,0];return $=Mp(l,ap($,s),S),hp({},v,{intentional:!1!==w[0]||!1!==w[1],_initial:s,_movement:C,movement:$,values:e,offset:Mp(l,k,S),delta:lp($,p)})},t.clean=function(){this.clearTimeout()},pp(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function _p(e,t){return Math.abs(e)>=t&&cp(e)*t}function Mp(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[up(r,s,c,o),up(i,u,p,a)]}function Dp(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function Np(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,hp({},t,{event:n})].concat(i))}}var Vp=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=mp(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];Ap(e,c[0],Np(c[1],hp({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=Ip(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;Hp(i,jp(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,bp.apply(void 0,d)])}zp(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=bp.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Ip(t.config),n=t.config.eventOptions;e&&Hp(e,jp(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){Hp(n,i[o],r)}e.windowListeners={}}(t)},this.state=Lp(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function jp(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Ip(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Ap(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function zp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=mp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function Hp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=mp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function Bp(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(Pp.get("drag"));e.wheel&&t.add(Pp.get("wheel"));e.scroll&&t.add(Pp.get("scroll"));e.move&&t.add(Pp.get("move"));e.pinch&&t.add(Pp.get("pinch"));e.hover&&t.add(Pp.get("hover"));return t}(e),i=W.useMemo((function(){return new Vp(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,W.useEffect(i.effect,[]),i.config.domTarget?Fp:i.bind}function Fp(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function Zp(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Wp(e){var t="buttons"in e?e.buttons:0,n=Zp(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function qp(e){var t=Zp(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Gp=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(Hp(r.window,i[t],r.eventOptions),zp(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(gp(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=Wp(e);if(n.down){t.updateSharedState(n);var r=qp(e),i=t.getKinematics(r,e),o=Dp(gp(t),e),a=t.state._isTap,l=sp(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(hp({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=hp({},Dp(gp(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=cp(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=cp(o))),t.updateGestureState(hp({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(gp(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Hp(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}fp(t,e);var n=t.prototype;return n.startDrag=function(e){var t=qp(e);this.updateSharedState(Wp(e)),this.updateGestureState(hp({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return hp({},Lp()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),Dp(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Ap(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Ap(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}fp(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return lp(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=sp(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:sp(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Tp));function Up(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Up(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Up(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||Up(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function Xp(e,t){try{return Up(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function Yp(e,t){void 0===t&&(t={}),Pp.set("drag",Gp);var n=K();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(Op,Xp)),Bp({drag:e},n.current(t))}
2398
2440
  /*!
2399
2441
  * tabbable 5.3.3
2400
2442
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2401
- */var qp=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Gp=qp.join(","),Up="undefined"==typeof Element,Xp=Up?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yp=!Up&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Kp=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Gp));return t&&Xp.call(e,Gp)&&r.unshift(e),r=r.filter(n)},Jp=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{Xp.call(a,Gp)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},Qp=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},eh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},th=function(e){return"INPUT"===e.tagName},nh=function(e){return function(e){return th(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Yp(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},rh=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ih=function(e,t){return!(t.disabled||function(e){return th(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Xp.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Xp.call(i,"details:not([open]) *"))return!0;var o=Yp(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return rh(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=Yp(e);if(s&&!s.shadowRoot&&!0===r(s))return rh(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Xp.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},oh=function(e,t){return!(nh(t)||Qp(t)<0||!ih(e,t))},ah=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},lh=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=Qp(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(eh).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},sh=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Jp([e],t.includeContainer,{filter:oh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ah}):Kp(e,t.includeContainer,oh.bind(null,t)),lh(n)},ch=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Xp.call(e,Gp)&&oh(t,e)},dh=qp.concat("iframe").join(","),uh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Xp.call(e,dh)&&ih(t,e)};
2443
+ */var Kp=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Jp=Kp.join(","),Qp="undefined"==typeof Element,eh=Qp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,th=!Qp&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},nh=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Jp));return t&&eh.call(e,Jp)&&r.unshift(e),r=r.filter(n)},rh=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{eh.call(a,Jp)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},ih=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},oh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ah=function(e){return"INPUT"===e.tagName},lh=function(e){return function(e){return ah(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||th(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},sh=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ch=function(e,t){return!(t.disabled||function(e){return ah(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=eh.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eh.call(i,"details:not([open]) *"))return!0;var o=th(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return sh(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=th(e);if(s&&!s.shadowRoot&&!0===r(s))return sh(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!eh.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},dh=function(e,t){return!(lh(t)||ih(t)<0||!ch(e,t))},uh=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ph=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=ih(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(oh).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},hh=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rh([e],t.includeContainer,{filter:dh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:uh}):nh(e,t.includeContainer,dh.bind(null,t)),ph(n)},fh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==eh.call(e,Jp)&&dh(t,e)},gh=Kp.concat("iframe").join(","),vh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==eh.call(e,gh)&&ch(t,e)};
2402
2444
  /*!
2403
2445
  * focus-trap 6.9.4
2404
2446
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2405
2447
  */
2406
- function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gh,vh=(gh=[],{activateTrap:function(e){if(gh.length>0){var t=gh[gh.length-1];t!==e&&t.pause()}var n=gh.indexOf(e);-1===n||gh.splice(n,1),gh.push(e)},deactivateTrap:function(e){var t=gh.indexOf(e);-1!==t&&gh.splice(t,1),gh.length>0&&gh[gh.length-1].unpause()}}),mh=function(e){return setTimeout(e,0)},xh=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},bh=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},yh=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},wh=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=hh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=sh(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?Jp([t],n.includeContainer,{filter:ih.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Kp(t,n.includeContainer,ih.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return ch(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return ch(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=yh(e);l(t)>=0||(bh(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!uh(t,i.tabbableOptions)}):bh(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=yh(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==bh(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=yh(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=xh(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||uh(t,i.tabbableOptions)&&!ch(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=xh(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||uh(t,i.tabbableOptions)&&!ch(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=yh(e);l(t)>=0||bh(i.clickOutsideDeactivates,e)||bh(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return vh.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?mh((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=hh({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,vh.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){mh((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Ch=!1;if("undefined"!=typeof window){var $h={get passive(){Ch=!0}};window.addEventListener("testPassive",null,$h),window.removeEventListener("testPassive",null,$h)}var kh,Sh="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Eh=[],Oh=!1,Rh=-1,Lh=void 0,Ph=void 0,Th=function(e){return Eh.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},_h=function(e){var t=e||window.event;return!!Th(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Mh=function(e,t){if(e){if(!Eh.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Eh=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Eh),[n]),Sh?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Rh=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Rh;!Th(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?_h(e):e.stopPropagation())}(t,e)},Oh||(document.addEventListener("touchmove",_h,Ch?{passive:!1}:void 0),Oh=!0)):function(e){if(void 0===Ph){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Ph=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Lh&&(Lh=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Dh=function(e){e?(Eh=Eh.filter((function(t){return t.targetElement!==e})),Sh?(e.ontouchstart=null,e.ontouchmove=null,Oh&&0===Eh.length&&(document.removeEventListener("touchmove",_h,Ch?{passive:!1}:void 0),Oh=!1)):Eh.length||(void 0!==Ph&&(document.body.style.paddingRight=Ph,Ph=void 0),void 0!==Lh&&(document.body.style.overflow=Lh,Lh=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Nh=[],Vh="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(kh||(kh={}));var jh,Ih=function(e){return Object.freeze(e)},Ah=function(e,t){this.inlineSize=e,this.blockSize=t,Ih(this)},zh=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ih(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Hh=function(e){return e instanceof SVGElement&&"getBBox"in e},Bh=function(e){if(Hh(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Fh=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Zh="undefined"!=typeof window?window:{},Wh=new WeakMap,qh=/auto|scroll/,Gh=/^tb|vertical/,Uh=/msie|trident/i.test(Zh.navigator&&Zh.navigator.userAgent),Xh=function(e){return parseFloat(e||"0")},Yh=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Ah((n?t:e)||0,(n?e:t)||0)},Kh=Ih({devicePixelContentBoxSize:Yh(),borderBoxSize:Yh(),contentBoxSize:Yh(),contentRect:new zh(0,0,0,0)}),Jh=function(e,t){if(void 0===t&&(t=!1),Wh.has(e)&&!t)return Wh.get(e);if(Bh(e))return Wh.set(e,Kh),Kh;var n=getComputedStyle(e),r=Hh(e)&&e.ownerSVGElement&&e.getBBox(),i=!Uh&&"border-box"===n.boxSizing,o=Gh.test(n.writingMode||""),a=!r&&qh.test(n.overflowY||""),l=!r&&qh.test(n.overflowX||""),s=r?0:Xh(n.paddingTop),c=r?0:Xh(n.paddingRight),d=r?0:Xh(n.paddingBottom),u=r?0:Xh(n.paddingLeft),p=r?0:Xh(n.borderTopWidth),h=r?0:Xh(n.borderRightWidth),f=r?0:Xh(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Xh(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,w=i?g+m:0,C=i?v+x:0,$=r?r.width:Xh(n.width)-w-y,k=r?r.height:Xh(n.height)-C-b,S=$+g+y+m,E=k+v+b+x,O=Ih({devicePixelContentBoxSize:Yh(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Yh(S,E,o),contentBoxSize:Yh($,k,o),contentRect:new zh(u,s,$,k)});return Wh.set(e,O),O},Qh=function(e,t,n){var r=Jh(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case kh.DEVICE_PIXEL_CONTENT_BOX:return a;case kh.BORDER_BOX:return i;default:return o}},ef=function(e){var t=Jh(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Ih([t.borderBoxSize]),this.contentBoxSize=Ih([t.contentBoxSize]),this.devicePixelContentBoxSize=Ih([t.devicePixelContentBoxSize])},tf=function(e){if(Bh(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},nf=function(){var e=1/0,t=[];Nh.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new ef(t.target),i=tf(t.target);r.push(n),t.lastReportedSize=Qh(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},rf=function(e){Nh.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(tf(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},of=function(){var e=0;for(rf(e);Nh.some((function(e){return e.activeTargets.length>0}));)e=nf(),rf(e);return Nh.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Vh}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Vh),window.dispatchEvent(e)}(),e>0},af=[],lf=function(e){if(!jh){var t=0,n=document.createTextNode("");new MutationObserver((function(){return af.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),jh=function(){n.textContent="".concat(t?t--:t++)}}af.push(e),jh()},sf=0,cf={attributes:!0,characterData:!0,childList:!0,subtree:!0},df=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],uf=function(e){return void 0===e&&(e=0),Date.now()+e},pf=!1,hf=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!pf){pf=!0;var n,r=uf(e);n=function(){var n=!1;try{n=of()}finally{if(pf=!1,e=r-uf(),!sf)return;n?t.run(1e3):e>0?t.run(e):t.start()}},lf((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,cf)};document.body?t():Zh.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),df.forEach((function(t){return Zh.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),df.forEach((function(t){return Zh.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),ff=function(e){!sf&&e>0&&hf.start(),!(sf+=e)&&hf.stop()},gf=function(){function e(e,t){this.target=e,this.observedBox=t||kh.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Qh(this.target,this.observedBox,!0);return function(e){return!Hh(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),vf=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},mf=new WeakMap,xf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},bf=function(){function e(){}return e.connect=function(e,t){var n=new vf(e,t);mf.set(e,n)},e.observe=function(e,t,n){var r=mf.get(e),i=0===r.observationTargets.length;xf(r.observationTargets,t)<0&&(i&&Nh.push(r),r.observationTargets.push(new gf(t,n&&n.box)),ff(1),hf.schedule())},e.unobserve=function(e,t){var n=mf.get(e),r=xf(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&Nh.splice(Nh.indexOf(n),1),n.observationTargets.splice(r,1),ff(-1))},e.disconnect=function(e){var t=this,n=mf.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),yf=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");bf.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Fh(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");bf.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Fh(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");bf.unobserve(this,e)},e.prototype.disconnect=function(){bf.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function wf(){return wf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wf.apply(this,arguments)}function Cf(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var $f="undefined"!=typeof window?Y:U;function kf(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function Sf(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Ef={box:"border-box"};function Of(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];re(n+": "+a);var s=ee((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return $f((function(){if(e.current&&r){var t=new yf(s);return t.observe(e.current,Ef),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function Rf(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var Lf={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Pf={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Tf=function(e,t,n){return void 0===n&&(n=e.context),new Dd(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:wf({},Lf,Pf)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:wf({},Lf,Pf)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:wf({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[Vd({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Rf()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),_f=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Mf=["velocity"],Df=["onRest","config"],Nf={tension:170,friction:26},Vf=Nf.tension,jf=Nf.friction,If=W.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?zf:h,g=e.snapPoints,v=void 0===g?Hf:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,w=e.style,C=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,R=void 0!==O&&O,L=Cf(e,_f),P=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=ee((function(e){return o((function(t){var n;return wf({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return wf({},t,((n={})[e]=!0,n))}))}}),[]);return U((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=P.ready,_=P.registerReady,M=K(!1),D=K(C),N=K($),V=K(k);U((function(){D.current=C,N.current=$,V.current=k}),[$,C,k]);var j,I,A=ku((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),z=A[0],H=A[1],B=K(null),F=K(null),Z=K(null),q=K(null),X=K(null),Y=K(null),J=K(0),te=K(),ie=K(!1),oe=(j=Q((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=K(null==j?void 0:j.matches),re(I.current?"reduce":"no-preference"),U((function(){var e=function(e){I.current=e.matches};return null==j||j.addListener(e),function(){return null==j?void 0:j.removeListener(e)}}),[j]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=K({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,Mh(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,Dh(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=K({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=K({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return re(i?"Enabled":"Disabled"),U((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=wh(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:Y,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=Q((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=Q((function(){return t("maxHeight")}),[t]),i=G((function(){return Sf(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=K(0);return re(e?"controlled":"auto"),U((function(){l&&r()}),[l,r]),$f((function(){if(e)return a(Sf(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=Of(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=Of(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=Of(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;re("minHeight: "+f);var g=p>0;return U((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(Sf).reduce((function(e,n){return e.add(kf(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return re("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=Sf("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:Z,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:q,heightRef:J,lastSnapRef:c,ready:T,registerReady:_,resizeSourceRef:te}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=K(pe),ge=K(de),ve=K(ue),me=K(he),xe=K(0);$f((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=ee((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Cf(n,Mf),a=Cf(e,Df);return new Promise((function(e){return H(wf({},a,{config:wf({velocity:i},o,{mass:1,tension:Vf,friction:Math.max(jf,jf+(jf-jf*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Xd(Tf,{devTools:!1,actions:{onOpenCancel:ee((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:ee((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:ee((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:ee((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:te.current})}),[]),onOpenEnd:ee((function(){return null==V.current?void 0:V.current({type:"OPEN"})}),[]),onSnapEnd:ee((function(e,t){return null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:ee((function(){return null==V.current?void 0:V.current({type:"RESIZE",source:te.current})}),[])},context:{initialState:s},services:{onSnapStart:ee((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:ee((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:ee((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:ee((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:te.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:ee((function(e,t){try{return Promise.resolve(null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:ee((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:ee((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:ee((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"RESIZE",source:te.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:ee((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:ee((function(e,t){try{return M.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:ee((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),M.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:ee((function(){try{return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:ee((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:ee((function(e,t){try{var n=me.current(e.y);return J.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:ee((function(){try{var e=me.current(J.current);return J.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==te.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:ee((function(e,t){try{return be({minSnap:J.current,immediate:!0}),J.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),we=ye[0],Ce=ye[1];U((function(){T&&Ce(l?"OPEN":"CLOSE")}),[l,Ce,T]),$f((function(){(pe||ue||de)&&Ce("RESIZE")}),[pe,ue,de,Ce]),U((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),ne(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;Ce("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return J.current}}}),[Ce]),U((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return R&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[R,F]);var $e=Wp((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?z.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!M.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var w=c?u||ge.current!==ve.current?ap(x,u?0:ge.current,ve.current,.55):x<ge.current?ap(x,ge.current,2*ve.current,.55):ap(x,ge.current/2,ve.current,.55):y;return R&&a?(w>=ve.current&&(w=ve.current),f===ve.current&&F.current.scrollTop>0&&(w=ve.current),ie.current=w<ve.current):ie.current=!1,d&&Ce("DRAG"),p?(Ce("SNAP",{payload:{y:w,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=xu([n.y,n.maxHeight],(function(e,t){return Math.round(kf(t-e,0,16))+"px"})),i=xu([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return kf(e,t,n)+"px"})),o=xu([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=xu([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=xu([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return kf((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=xu([n.y,n.minSnap],(function(e,t){return t?kf(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:z});return W.createElement(ep.div,wf({},L,{"data-rsbs-root":!0,"data-rsbs-state":Af.find(we.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:wf({},ke,w,{opacity:z.ready})}),r,x&&W.createElement("div",wf({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),W.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&W.createElement("div",wf({key:"header","data-rsbs-header":!0,ref:q},$e()),a),W.createElement("div",wf({key:"scroll","data-rsbs-scroll":!0,ref:F},R?$e({isContentDragging:!0}):{}),W.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),o&&W.createElement("div",wf({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),Af=["closed","opening","open","closing","dragging","snapping","resizing"];function zf(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Hf(e){return e.minHeight}var Bf=["onSpringStart","onSpringEnd","skipInitialTransition"],Ff=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Cf(e,Bf),a=G(!1),l=a[0],s=a[1],c=K(),d=K(null),u=K(i&&o.open?"OPEN":"CLOSED");$f((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=ee((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=ee((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?W.createElement(Is,{"data-rsbs-portal":!0},W.createElement(If,wf({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const Zf=(e,t)=>oe`
2448
+ function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(n),!0).forEach((function(t){bh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yh,wh=(yh=[],{activateTrap:function(e){if(yh.length>0){var t=yh[yh.length-1];t!==e&&t.pause()}var n=yh.indexOf(e);-1===n||yh.splice(n,1),yh.push(e)},deactivateTrap:function(e){var t=yh.indexOf(e);-1!==t&&yh.splice(t,1),yh.length>0&&yh[yh.length-1].unpause()}}),Ch=function(e){return setTimeout(e,0)},$h=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},kh=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},Sh=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Eh=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=xh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=hh(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?rh([t],n.includeContainer,{filter:ch.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):nh(t,n.includeContainer,ch.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return fh(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return fh(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Sh(e);l(t)>=0||(kh(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!vh(t,i.tabbableOptions)}):kh(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Sh(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==kh(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Sh(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=$h(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||vh(t,i.tabbableOptions)&&!fh(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=$h(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||vh(t,i.tabbableOptions)&&!fh(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Sh(e);l(t)>=0||kh(i.clickOutsideDeactivates,e)||kh(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return wh.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Ch((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=xh({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,wh.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){Ch((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Oh=!1;if("undefined"!=typeof window){var Rh={get passive(){Oh=!0}};window.addEventListener("testPassive",null,Rh),window.removeEventListener("testPassive",null,Rh)}var Lh,Ph="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Th=[],_h=!1,Mh=-1,Dh=void 0,Nh=void 0,Vh=function(e){return Th.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},jh=function(e){var t=e||window.event;return!!Vh(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Ih=function(e,t){if(e){if(!Th.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Th=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Th),[n]),Ph?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Mh=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Mh;!Vh(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?jh(e):e.stopPropagation())}(t,e)},_h||(document.addEventListener("touchmove",jh,Oh?{passive:!1}:void 0),_h=!0)):function(e){if(void 0===Nh){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Nh=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Dh&&(Dh=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Ah=function(e){e?(Th=Th.filter((function(t){return t.targetElement!==e})),Ph?(e.ontouchstart=null,e.ontouchmove=null,_h&&0===Th.length&&(document.removeEventListener("touchmove",jh,Oh?{passive:!1}:void 0),_h=!1)):Th.length||(void 0!==Nh&&(document.body.style.paddingRight=Nh,Nh=void 0),void 0!==Dh&&(document.body.style.overflow=Dh,Dh=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},zh=[],Hh="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Lh||(Lh={}));var Bh,Fh=function(e){return Object.freeze(e)},Zh=function(e,t){this.inlineSize=e,this.blockSize=t,Fh(this)},Wh=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Fh(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),qh=function(e){return e instanceof SVGElement&&"getBBox"in e},Gh=function(e){if(qh(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Uh=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Xh="undefined"!=typeof window?window:{},Yh=new WeakMap,Kh=/auto|scroll/,Jh=/^tb|vertical/,Qh=/msie|trident/i.test(Xh.navigator&&Xh.navigator.userAgent),ef=function(e){return parseFloat(e||"0")},tf=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Zh((n?t:e)||0,(n?e:t)||0)},nf=Fh({devicePixelContentBoxSize:tf(),borderBoxSize:tf(),contentBoxSize:tf(),contentRect:new Wh(0,0,0,0)}),rf=function(e,t){if(void 0===t&&(t=!1),Yh.has(e)&&!t)return Yh.get(e);if(Gh(e))return Yh.set(e,nf),nf;var n=getComputedStyle(e),r=qh(e)&&e.ownerSVGElement&&e.getBBox(),i=!Qh&&"border-box"===n.boxSizing,o=Jh.test(n.writingMode||""),a=!r&&Kh.test(n.overflowY||""),l=!r&&Kh.test(n.overflowX||""),s=r?0:ef(n.paddingTop),c=r?0:ef(n.paddingRight),d=r?0:ef(n.paddingBottom),u=r?0:ef(n.paddingLeft),p=r?0:ef(n.borderTopWidth),h=r?0:ef(n.borderRightWidth),f=r?0:ef(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:ef(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,w=i?g+m:0,C=i?v+x:0,$=r?r.width:ef(n.width)-w-y,k=r?r.height:ef(n.height)-C-b,S=$+g+y+m,E=k+v+b+x,O=Fh({devicePixelContentBoxSize:tf(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:tf(S,E,o),contentBoxSize:tf($,k,o),contentRect:new Wh(u,s,$,k)});return Yh.set(e,O),O},of=function(e,t,n){var r=rf(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Lh.DEVICE_PIXEL_CONTENT_BOX:return a;case Lh.BORDER_BOX:return i;default:return o}},af=function(e){var t=rf(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Fh([t.borderBoxSize]),this.contentBoxSize=Fh([t.contentBoxSize]),this.devicePixelContentBoxSize=Fh([t.devicePixelContentBoxSize])},lf=function(e){if(Gh(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},sf=function(){var e=1/0,t=[];zh.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new af(t.target),i=lf(t.target);r.push(n),t.lastReportedSize=of(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},cf=function(e){zh.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(lf(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},df=function(){var e=0;for(cf(e);zh.some((function(e){return e.activeTargets.length>0}));)e=sf(),cf(e);return zh.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Hh}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Hh),window.dispatchEvent(e)}(),e>0},uf=[],pf=function(e){if(!Bh){var t=0,n=document.createTextNode("");new MutationObserver((function(){return uf.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Bh=function(){n.textContent="".concat(t?t--:t++)}}uf.push(e),Bh()},hf=0,ff={attributes:!0,characterData:!0,childList:!0,subtree:!0},gf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],vf=function(e){return void 0===e&&(e=0),Date.now()+e},mf=!1,xf=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!mf){mf=!0;var n,r=vf(e);n=function(){var n=!1;try{n=df()}finally{if(mf=!1,e=r-vf(),!hf)return;n?t.run(1e3):e>0?t.run(e):t.start()}},pf((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ff)};document.body?t():Xh.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),gf.forEach((function(t){return Xh.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),gf.forEach((function(t){return Xh.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),bf=function(e){!hf&&e>0&&xf.start(),!(hf+=e)&&xf.stop()},yf=function(){function e(e,t){this.target=e,this.observedBox=t||Lh.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=of(this.target,this.observedBox,!0);return function(e){return!qh(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),wf=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Cf=new WeakMap,$f=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},kf=function(){function e(){}return e.connect=function(e,t){var n=new wf(e,t);Cf.set(e,n)},e.observe=function(e,t,n){var r=Cf.get(e),i=0===r.observationTargets.length;$f(r.observationTargets,t)<0&&(i&&zh.push(r),r.observationTargets.push(new yf(t,n&&n.box)),bf(1),xf.schedule())},e.unobserve=function(e,t){var n=Cf.get(e),r=$f(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&zh.splice(zh.indexOf(n),1),n.observationTargets.splice(r,1),bf(-1))},e.disconnect=function(e){var t=this,n=Cf.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Sf=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");kf.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Uh(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");kf.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Uh(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");kf.unobserve(this,e)},e.prototype.disconnect=function(){kf.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Ef(){return Ef=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ef.apply(this,arguments)}function Of(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Rf="undefined"!=typeof window?Y:U;function Lf(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function Pf(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Tf={box:"border-box"};function _f(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];re(n+": "+a);var s=ee((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Rf((function(){if(e.current&&r){var t=new Sf(s);return t.observe(e.current,Tf),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function Mf(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var Df={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Nf={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Vf=function(e,t,n){return void 0===n&&(n=e.context),new Ad(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Ef({},Df,Nf)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Ef({},Df,Nf)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Ef({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[Hd({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Mf()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),jf=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],If=["velocity"],Af=["onRest","config"],zf={tension:170,friction:26},Hf=zf.tension,Bf=zf.friction,Ff=W.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?Wf:h,g=e.snapPoints,v=void 0===g?qf:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,w=e.style,C=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,R=void 0!==O&&O,L=Of(e,jf),P=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=ee((function(e){return o((function(t){var n;return Ef({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Ef({},t,((n={})[e]=!0,n))}))}}),[]);return U((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=P.ready,_=P.registerReady,M=K(!1),D=K(C),N=K($),V=K(k);U((function(){D.current=C,N.current=$,V.current=k}),[$,C,k]);var j,I,A=Lu((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),z=A[0],H=A[1],B=K(null),F=K(null),Z=K(null),q=K(null),X=K(null),Y=K(null),J=K(0),te=K(),ie=K(!1),oe=(j=Q((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=K(null==j?void 0:j.matches),re(I.current?"reduce":"no-preference"),U((function(){var e=function(e){I.current=e.matches};return null==j||j.addListener(e),function(){return null==j?void 0:j.removeListener(e)}}),[j]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=K({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,Ih(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,Ah(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=K({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=K({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return re(i?"Enabled":"Disabled"),U((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Eh(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:Y,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=Q((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=Q((function(){return t("maxHeight")}),[t]),i=G((function(){return Pf(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=K(0);return re(e?"controlled":"auto"),U((function(){l&&r()}),[l,r]),Rf((function(){if(e)return a(Pf(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=_f(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=_f(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=_f(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;re("minHeight: "+f);var g=p>0;return U((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(Pf).reduce((function(e,n){return e.add(Lf(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return re("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=Pf("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:Z,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:q,heightRef:J,lastSnapRef:c,ready:T,registerReady:_,resizeSourceRef:te}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=K(pe),ge=K(de),ve=K(ue),me=K(he),xe=K(0);Rf((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=ee((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Of(n,If),a=Of(e,Af);return new Promise((function(e){return H(Ef({},a,{config:Ef({velocity:i},o,{mass:1,tension:Hf,friction:Math.max(Bf,Bf+(Bf-Bf*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=eu(Vf,{devTools:!1,actions:{onOpenCancel:ee((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:ee((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:ee((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:ee((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:te.current})}),[]),onOpenEnd:ee((function(){return null==V.current?void 0:V.current({type:"OPEN"})}),[]),onSnapEnd:ee((function(e,t){return null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:ee((function(){return null==V.current?void 0:V.current({type:"RESIZE",source:te.current})}),[])},context:{initialState:s},services:{onSnapStart:ee((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:ee((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:ee((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:ee((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:te.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:ee((function(e,t){try{return Promise.resolve(null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:ee((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:ee((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:ee((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"RESIZE",source:te.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:ee((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:ee((function(e,t){try{return M.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:ee((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),M.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:ee((function(){try{return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:ee((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:ee((function(e,t){try{var n=me.current(e.y);return J.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:ee((function(){try{var e=me.current(J.current);return J.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==te.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:ee((function(e,t){try{return be({minSnap:J.current,immediate:!0}),J.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),we=ye[0],Ce=ye[1];U((function(){T&&Ce(l?"OPEN":"CLOSE")}),[l,Ce,T]),Rf((function(){(pe||ue||de)&&Ce("RESIZE")}),[pe,ue,de,Ce]),U((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),ne(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;Ce("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return J.current}}}),[Ce]),U((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return R&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[R,F]);var $e=Yp((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?z.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!M.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var w=c?u||ge.current!==ve.current?up(x,u?0:ge.current,ve.current,.55):x<ge.current?up(x,ge.current,2*ve.current,.55):up(x,ge.current/2,ve.current,.55):y;return R&&a?(w>=ve.current&&(w=ve.current),f===ve.current&&F.current.scrollTop>0&&(w=ve.current),ie.current=w<ve.current):ie.current=!1,d&&Ce("DRAG"),p?(Ce("SNAP",{payload:{y:w,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=$u([n.y,n.maxHeight],(function(e,t){return Math.round(Lf(t-e,0,16))+"px"})),i=$u([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Lf(e,t,n)+"px"})),o=$u([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=$u([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=$u([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Lf((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=$u([n.y,n.minSnap],(function(e,t){return t?Lf(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:z});return W.createElement(op.div,Ef({},L,{"data-rsbs-root":!0,"data-rsbs-state":Zf.find(we.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Ef({},ke,w,{opacity:z.ready})}),r,x&&W.createElement("div",Ef({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),W.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&W.createElement("div",Ef({key:"header","data-rsbs-header":!0,ref:q},$e()),a),W.createElement("div",Ef({key:"scroll","data-rsbs-scroll":!0,ref:F},R?$e({isContentDragging:!0}):{}),W.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),o&&W.createElement("div",Ef({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),Zf=["closed","opening","open","closing","dragging","snapping","resizing"];function Wf(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function qf(e){return e.minHeight}var Gf=["onSpringStart","onSpringEnd","skipInitialTransition"],Uf=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Of(e,Gf),a=G(!1),l=a[0],s=a[1],c=K(),d=K(null),u=K(i&&o.open?"OPEN":"CLOSED");Rf((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=ee((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=ee((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?W.createElement(Fs,{"data-rsbs-portal":!0},W.createElement(Ff,Ef({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const Xf=(e,t)=>oe`
2407
2449
  [data-rsbs-overlay] {
2408
2450
  border-top-left-radius: 16px;
2409
2451
  border-top-right-radius: 16px;
@@ -2432,7 +2474,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2432
2474
  padding: 0px;
2433
2475
  min-height: 64px;
2434
2476
  }
2435
- `;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const Wf=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>B(Ff,{css:Zf(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),qf=oe`
2477
+ `;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const Yf=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>B(Uf,{css:Xf(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),Kf=oe`
2436
2478
  a,
2437
2479
  p {
2438
2480
  font-size: 16px;
@@ -2464,19 +2506,19 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2464
2506
  a:hover {
2465
2507
  text-decoration: underline;
2466
2508
  }
2467
- `,Gf=oe`
2509
+ `,Jf=oe`
2468
2510
  svg {
2469
2511
  height: 12px;
2470
2512
  width: 12px;
2471
2513
  color: ${ge("neutral",600)};
2472
2514
  }
2473
- `,Uf=oe`
2515
+ `,Qf=oe`
2474
2516
  cursor: pointer;
2475
2517
  color: ${ge("neutral",600)};
2476
2518
  display: flex;
2477
2519
  justify-content: center;
2478
2520
  align-items: center;
2479
- `,Xf=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);U((()=>{o(e.length>n)}),[e.length]);const a=r;return B(D.Root,{children:B(D.List,{gap:"16px",children:i?H(F,{children:[B(D.Item,{css:qf,children:H(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),B(D.Separator,{css:Gf,children:t||B(Oe,{rotate:"270"})}),B("li",{className:"chakra-breadcrumb__item",children:B("button",{css:Uf,type:"button",onClick:()=>o(!1),children:"..."})}),B(D.Separator,{css:Gf,children:t||B(Oe,{rotate:"270"})}),B(D.Item,{css:qf,children:H("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?H(ie,{children:[B(D.Item,{css:qf,children:r<e.length-1?H(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):H("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?B(D.Separator,{css:Gf,children:t||B(Oe,{rotate:"270"})}):null]},n.label):null))})})},Yf=(e,t)=>oe`
2521
+ `,eg=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);U((()=>{o(e.length>n)}),[e.length]);const a=r;return B(D.Root,{children:B(D.List,{gap:"16px",children:i?H(F,{children:[B(D.Item,{css:Kf,children:H(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),B(D.Separator,{css:Jf,children:t||B(Oe,{rotate:"270"})}),B("li",{className:"chakra-breadcrumb__item",children:B("button",{css:Qf,type:"button",onClick:()=>o(!1),children:"..."})}),B(D.Separator,{css:Jf,children:t||B(Oe,{rotate:"270"})}),B(D.Item,{css:Kf,children:H("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?H(ie,{children:[B(D.Item,{css:Kf,children:r<e.length-1?H(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):H("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?B(D.Separator,{css:Jf,children:t||B(Oe,{rotate:"270"})}):null]},n.label):null))})})},tg=(e,t)=>oe`
2480
2522
  min-height: 56px;
2481
2523
  width: 100vw;
2482
2524
  position: ${e?"sticky":"absolute"};
@@ -2486,7 +2528,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2486
2528
  background-color: ${ge("neutral",t?200:100)};
2487
2529
  border-top: 1px solid ${ge("neutral",400)};
2488
2530
  z-index: 101;
2489
- `,Kf=e=>oe`
2531
+ `,ng=e=>oe`
2490
2532
  height: 100%;
2491
2533
  width: 100%;
2492
2534
  max-width: ${e?`${e}px`:"100%"};
@@ -2501,7 +2543,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2501
2543
  flex-direction: column;
2502
2544
  align-items: flex-start;
2503
2545
  }
2504
- `,Jf=oe`
2546
+ `,rg=oe`
2505
2547
  display: flex;
2506
2548
  align-items: center;
2507
2549
  flex-wrap: wrap;
@@ -2514,7 +2556,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2514
2556
  color: ${ge("neutral",700)};
2515
2557
  text-decoration: underline;
2516
2558
  }
2517
- `,Qf=oe`
2559
+ `,ig=oe`
2518
2560
  width: 240px;
2519
2561
  font-size: 14px;
2520
2562
  line-height: 20px;
@@ -2525,13 +2567,13 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2525
2567
  @media screen and (max-width: 768px) {
2526
2568
  text-align: left;
2527
2569
  }
2528
- `,eg=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return B("footer",{css:Yf(n,r),children:H("div",{css:Kf(i),children:[B("div",{children:B(Ie,{height:"32px",width:"91px"})}),B("div",{css:Jf,children:e}),B("div",{children:H("p",{css:Qf,children:[t," ",o]})})]})})},tg=oe`
2570
+ `,og=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return B("footer",{css:tg(n,r),children:H("div",{css:ng(i),children:[B("div",{children:B(Ie,{height:"32px",width:"91px"})}),B("div",{css:rg,children:e}),B("div",{children:H("p",{css:ig,children:[t," ",o]})})]})})},ag=oe`
2529
2571
  width: 100%;
2530
2572
  display: flex;
2531
2573
  align-items: center;
2532
2574
  height: 56px;
2533
2575
  background-color: ${ge("neutral",200)};
2534
- `,ng=oe`
2576
+ `,lg=oe`
2535
2577
  height: 56px;
2536
2578
  width: 99%;
2537
2579
  background-color: ${ge("neutral",200)};
@@ -2625,9 +2667,9 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2625
2667
  opacity: 1;
2626
2668
  }
2627
2669
  }
2628
- `,rg=oe`
2670
+ `,sg=oe`
2629
2671
  position: relative;
2630
- `,ig=oe`
2672
+ `,cg=oe`
2631
2673
  position: absolute;
2632
2674
  top: -5px;
2633
2675
  right: -5px;
@@ -2642,7 +2684,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2642
2684
  display: flex;
2643
2685
  justify-content: center;
2644
2686
  align-items: center;
2645
- `,og=(e,t)=>e.findIndex((e=>e.value===t)),ag=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:i="manual"})=>{const[o,a]=G(og(t,e)||0);return B("div",{css:tg,children:B(N.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return a(og(t,r=e)),void(n&&n(r));var r},activationMode:i,children:B(N.List,{alignItems:"center",border:"none",children:t.map((e=>{const{label:t,icon:n,bagdeCount:i,"aria-label":o,...a}=e;return H(N.Trigger,{css:ng,"aria-label":o||t,...a,children:[H("div",{css:rg,children:[n,i?B("div",{css:ig,className:"ds-badge-count",children:i}):null]}),r?null:B("p",{children:t})]},t)}))})})})},lg=(e,t)=>oe`
2687
+ `,dg=(e,t)=>e.findIndex((e=>e.value===t)),ug=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:i="manual"})=>{const[o,a]=G(dg(t,e)||0);return B("div",{css:ag,children:B(N.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return a(dg(t,r=e)),void(n&&n(r));var r},activationMode:i,children:B(N.List,{alignItems:"center",border:"none",children:t.map((e=>{const{label:t,icon:n,bagdeCount:i,"aria-label":o,...a}=e;return H(N.Trigger,{css:lg,"aria-label":o||t,...a,children:[H("div",{css:sg,children:[n,i?B("div",{css:cg,className:"ds-badge-count",children:i}):null]}),r?null:B("p",{children:t})]},t)}))})})})},pg=(e,t)=>oe`
2646
2688
  height: ${e?"96px":"48px"};
2647
2689
  width: 100%;
2648
2690
  background-color: ${ge("neutral",100)};
@@ -2651,7 +2693,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2651
2693
  left: 0;
2652
2694
  z-index: 102;
2653
2695
  border-bottom: 1px solid ${ge("neutral",400)};
2654
- `,sg=oe`
2696
+ `,hg=oe`
2655
2697
  height: 48px;
2656
2698
  width: 100%;
2657
2699
  background-color: ${ge("neutral",100)};
@@ -2661,7 +2703,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2661
2703
  justify-content: flex-start;
2662
2704
  gap: 0px;
2663
2705
  padding: 8px 16px;
2664
- `,cg=(e,t)=>oe`
2706
+ `,fg=(e,t)=>oe`
2665
2707
  height: 48px;
2666
2708
  width: 100%;
2667
2709
  max-width: ${t?`${t}px`:"100%"};
@@ -2671,7 +2713,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2671
2713
  justify-content: space-between;
2672
2714
  margin: 0 auto;
2673
2715
  padding: 8px 16px;
2674
- `,dg=oe`
2716
+ `,gg=oe`
2675
2717
  outline: none;
2676
2718
  a {
2677
2719
  &:focus-visible {
@@ -2682,12 +2724,12 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2682
2724
  outline-width: 2px;
2683
2725
  }
2684
2726
  }
2685
- `,ug=e=>oe`
2727
+ `,vg=e=>oe`
2686
2728
  display: ${e?"none":"flex"};
2687
2729
  align-items: center;
2688
2730
  justify-content: flex-start;
2689
2731
  gap: 0px;
2690
- `,pg=e=>oe`
2732
+ `,mg=e=>oe`
2691
2733
  font-size: 16px;
2692
2734
  line-height: 24px;
2693
2735
  font-weight: 400;
@@ -2712,12 +2754,12 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2712
2754
  font-weight: 700;
2713
2755
  color: ${ge("accessible","controls-on-neutral-lights")};
2714
2756
  `:""}
2715
- `,hg=oe`
2757
+ `,xg=oe`
2716
2758
  height: 48px;
2717
2759
  display: flex;
2718
2760
  align-items: center;
2719
2761
  justify-content: flex-end;
2720
- `,fg=e=>oe`
2762
+ `,bg=e=>oe`
2721
2763
  height: 100%;
2722
2764
  font-size: 16px;
2723
2765
  line-height: 24px;
@@ -2736,7 +2778,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2736
2778
  }
2737
2779
  }
2738
2780
  `:""}
2739
- `,gg=e=>oe`
2781
+ `,yg=e=>oe`
2740
2782
  height: 100%;
2741
2783
  display: flex;
2742
2784
  align-items: center;
@@ -2744,7 +2786,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2744
2786
  gap: 20px;
2745
2787
  padding-left: 16px;
2746
2788
  border-left: 1px solid ${ge("neutral",e?700:300)};
2747
- `,vg=oe`
2789
+ `,wg=oe`
2748
2790
  background-color: none;
2749
2791
  border: none;
2750
2792
  cursor: pointer;
@@ -2769,7 +2811,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2769
2811
  outline-width: 2px;
2770
2812
  background-color: ${ge("neutral",200)};
2771
2813
  }
2772
- `,mg=e=>oe`
2814
+ `,Cg=e=>oe`
2773
2815
  position: absolute;
2774
2816
  top: 48px;
2775
2817
  right: 0;
@@ -2782,10 +2824,10 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2782
2824
  justify-content: flex-start;
2783
2825
  gap: 16px;
2784
2826
  transition: width 0.5s ease-in-out;
2785
- `,xg=oe`
2827
+ `,$g=oe`
2786
2828
  height: 100%;
2787
2829
  width: 100%;
2788
- `,bg=oe`
2830
+ `,kg=oe`
2789
2831
  background-color: ${ge("neutral",200)};
2790
2832
  border-bottom: 1px solid ${ge("neutral",300)};
2791
2833
 
@@ -2805,13 +2847,13 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2805
2847
  margin-left: -12px;
2806
2848
  }
2807
2849
  }
2808
- `,yg=oe`
2850
+ `,Sg=oe`
2809
2851
  background-color: ${ge("neutral",100)};
2810
- `,wg=oe`
2852
+ `,Eg=oe`
2811
2853
  min-height: 100vh;
2812
2854
  width: 100%;
2813
2855
  overflow-y: scroll;
2814
- `;oe``;const Cg=e=>oe`
2856
+ `;oe``;const Og=e=>oe`
2815
2857
  display: inline-block;
2816
2858
  width: 100%;
2817
2859
  padding: 12px 16px;
@@ -2840,7 +2882,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2840
2882
  outline-width: 2px;
2841
2883
  background-color: ${ge("neutral",200)};
2842
2884
  }
2843
- `,$g=oe`
2885
+ `,Rg=oe`
2844
2886
  width: 100%;
2845
2887
  padding: 12px 16px;
2846
2888
  display: flex;
@@ -2864,7 +2906,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2864
2906
  outline-width: 2px;
2865
2907
  background-color: ${ge("neutral",200)};
2866
2908
  }
2867
- `,kg=e=>oe`
2909
+ `,Lg=e=>oe`
2868
2910
  position: absolute;
2869
2911
  top: 0px;
2870
2912
  right: 0;
@@ -2876,7 +2918,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2876
2918
  align-items: flex-start;
2877
2919
  justify-content: flex-start;
2878
2920
  transition: width 0.5s ease-in-out;
2879
- `,Sg=oe`
2921
+ `,Pg=oe`
2880
2922
  height: 48px;
2881
2923
  width: 100%;
2882
2924
  display: flex;
@@ -2887,7 +2929,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2887
2929
  position: relative;
2888
2930
  top: 0;
2889
2931
  left: 0;
2890
- `,Eg=oe`
2932
+ `,Tg=oe`
2891
2933
  position: absolute;
2892
2934
  bottom: 0;
2893
2935
  left: 0;
@@ -2902,13 +2944,13 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2902
2944
  button {
2903
2945
  width: calc(48% - 24px);
2904
2946
  }
2905
- `,Og=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=K(null),p=K([]),h=r;return H(F,{children:[B("div",{css:mg(i),children:i&&H("div",{css:xg,children:[H("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?B("div",{css:bg,children:t?.map((e=>B("div",{className:"ds-utility-item",children:e})))}):null,e?B("div",{css:yg,children:e.map(((e,t)=>e.link?B(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:Cg(a===e.link),children:e.label},e.label):H("button",{css:$g,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?B(Oe,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?B("div",{css:Eg,children:n.map((e=>B(we,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),B("div",{css:kg(!!l?.items),children:l?.items?H(F,{children:[H("div",{css:Sg,children:[H("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:vg,ref:u,children:[B(Oe,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),H("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:vg,children:["Close",B(Pe,{height:"16px",width:"16px"})]})]}),B("div",{css:wg,children:l?.items?.map((e=>B(h,{to:e.link,href:e.link,css:Cg(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},Rg=1023,Lg=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=K(null),d=K(null),u=K(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=Rg),[x,b]=G(!1),y=t,w=ee((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=Rg||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>Rg&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=Rg||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return U((()=>(w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)})),[w]),H("nav",{css:lg(p&&!v,l),children:[H("div",{css:cg(p&&!v,a),children:[H("div",{css:(C=p&&!v,oe`
2947
+ `,_g=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=K(null),p=K([]),h=r;return H(F,{children:[B("div",{css:Cg(i),children:i&&H("div",{css:$g,children:[H("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?B("div",{css:kg,children:t?.map((e=>B("div",{className:"ds-utility-item",children:e})))}):null,e?B("div",{css:Sg,children:e.map(((e,t)=>e.link?B(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:Og(a===e.link),children:e.label},e.label):H("button",{css:Rg,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?B(Oe,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?B("div",{css:Tg,children:n.map((e=>B(we,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),B("div",{css:Lg(!!l?.items),children:l?.items?H(F,{children:[H("div",{css:Pg,children:[H("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:wg,ref:u,children:[B(Oe,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),H("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:wg,children:["Close",B(Pe,{height:"16px",width:"16px"})]})]}),B("div",{css:Eg,children:l?.items?.map((e=>B(h,{to:e.link,href:e.link,css:Og(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},Mg=1023,Dg=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=K(null),d=K(null),u=K(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=Mg),[x,b]=G(!1),y=t,w=ee((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=Mg||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>Mg&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=Mg||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return U((()=>(w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)})),[w]),H("nav",{css:pg(p&&!v,l),children:[H("div",{css:fg(p&&!v,a),children:[H("div",{css:(C=p&&!v,oe`
2906
2948
  display: flex;
2907
2949
  align-items: center;
2908
2950
  justify-content: flex-start;
2909
2951
  gap: 12px;
2910
2952
  color: ${ge("neutral",C?100:900)};
2911
- `),ref:c,children:[e?B("div",{ref:u,css:dg,children:e}):null,B("div",{css:ug(p),children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:pg(n===e.link),children:e.label},e.label):B(ft,{label:e.label,items:e.items||[]},e.label)))})]}),B("div",{css:hg,ref:d,children:v?H("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:vg,children:[x?"Close":"Menu",B(x?Pe:tt,{height:"16px",width:"16px"})]}):H(F,{children:[B("div",{css:hg,children:i?.map(((e,t)=>B("div",{css:fg(p),children:e},t)))}),o?B("div",{css:gg(p),children:o.map((e=>B(we,{...e},e.label)))}):null]})})]}),p&&!v?B("div",{css:sg,children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:pg(n===e.link),children:e.label},e.label):B(ft,{label:e.label,items:e.items||[]},e.label)))}):null,v?B(Og,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var C},Pg=oe`
2953
+ `),ref:c,children:[e?B("div",{ref:u,css:gg,children:e}):null,B("div",{css:vg(p),children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:mg(n===e.link),children:e.label},e.label):B(ft,{label:e.label,items:e.items||[]},e.label)))})]}),B("div",{css:xg,ref:d,children:v?H("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:wg,children:[x?"Close":"Menu",B(x?Pe:tt,{height:"16px",width:"16px"})]}):H(F,{children:[B("div",{css:xg,children:i?.map(((e,t)=>B("div",{css:bg(p),children:e},t)))}),o?B("div",{css:yg(p),children:o.map((e=>B(we,{...e},e.label)))}):null]})})]}),p&&!v?B("div",{css:hg,children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:mg(n===e.link),children:e.label},e.label):B(ft,{label:e.label,items:e.items||[]},e.label)))}):null,v?B(_g,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var C},Ng=oe`
2912
2954
  width: 64px;
2913
2955
  height: 100%;
2914
2956
  z-index: 100;
@@ -2917,7 +2959,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2917
2959
  display: flex;
2918
2960
  flex-direction: column;
2919
2961
  justify-content: space-between;
2920
- `,Tg=oe`
2962
+ `,Vg=oe`
2921
2963
  width: 64px;
2922
2964
  height: 64px;
2923
2965
  background-color: ${ge("neutral",200)};
@@ -3007,7 +3049,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3007
3049
  }
3008
3050
  }
3009
3051
  }
3010
- `,_g=oe`
3052
+ `,jg=oe`
3011
3053
  display: flex;
3012
3054
  justify-content: center;
3013
3055
  align-items: center;
@@ -3020,7 +3062,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3020
3062
  fill: ${ge("neutral",600)};
3021
3063
  }
3022
3064
  }
3023
- `,Mg=oe`
3065
+ `,Ig=oe`
3024
3066
  width: 64px;
3025
3067
  height: 64px;
3026
3068
  background-color: ${ge("neutral",200)};
@@ -3058,7 +3100,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3058
3100
  text-align: center;
3059
3101
  color: ${ge("neutral",600)};
3060
3102
  }
3061
- `,Dg=oe`
3103
+ `,Ag=oe`
3062
3104
  width: 320px;
3063
3105
  height: 100%;
3064
3106
  z-index: 100;
@@ -3066,14 +3108,14 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3066
3108
  background-color: ${ge("neutral",100)};
3067
3109
  overflow-y: auto;
3068
3110
  overflow-x: hidden;
3069
- `,Ng=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return H("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[H("div",{css:Pg,children:[B(N.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:B(N.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>B(N.Trigger,{css:Tg,"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?B("div",{css:_g,children:e.icon}):null,B("p",{children:e.label})]})},e.label)))})}),i?B(V.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:H(V.Trigger,{css:Mg,children:[B("div",{css:_g,children:B(a?$e:Ce,{})}),H("div",{className:"ds-tab-label",children:[B("p",{children:a?"Show":"Hide"}),B("p",{children:"Sidebar"})]})]})}):null]}),i?B(V.Root,{defaultOpen:!0,open:!a,children:B(V.Content,{height:"100%",children:B("div",{css:Dg,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},Vg=e=>oe`
3111
+ `,zg=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return H("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[H("div",{css:Ng,children:[B(N.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:B(N.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>B(N.Trigger,{css:Vg,"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?B("div",{css:jg,children:e.icon}):null,B("p",{children:e.label})]})},e.label)))})}),i?B(V.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:H(V.Trigger,{css:Ig,children:[B("div",{css:jg,children:B(a?$e:Ce,{})}),H("div",{className:"ds-tab-label",children:[B("p",{children:a?"Show":"Hide"}),B("p",{children:"Sidebar"})]})]})}):null]}),i?B(V.Root,{defaultOpen:!0,open:!a,children:B(V.Content,{height:"100%",children:B("div",{css:Ag,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},Hg=e=>oe`
3070
3112
  width: 100%;
3071
3113
  display: flex;
3072
3114
  align-items: center;
3073
3115
  height: 40px;
3074
3116
 
3075
3117
  ${"view"===e&&`\n border: 1px solid ${ge("neutral",400)};\n background-color: ${ge("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
3076
- `,jg=oe`
3118
+ `,Bg=oe`
3077
3119
  width: 99%;
3078
3120
  height: 40px;
3079
3121
  padding: 8px 16px;
@@ -3089,7 +3131,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3089
3131
  &:focus-visible {
3090
3132
  box-shadow: none;
3091
3133
  }
3092
- `,Ig=oe`
3134
+ `,Fg=oe`
3093
3135
  background-color: ${ge("neutral",200)};
3094
3136
  color: ${ge("neutral",700)};
3095
3137
 
@@ -3146,11 +3188,11 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3146
3188
  opacity: 1;
3147
3189
  }
3148
3190
  }
3149
- `,Ag=oe`
3191
+ `,Zg=oe`
3150
3192
  width: 4px;
3151
3193
  height: 24px;
3152
3194
  background-color: ${ge("neutral",400)};
3153
- `,zg=oe`
3195
+ `,Wg=oe`
3154
3196
  height: 32px;
3155
3197
  border-radius: 2px;
3156
3198
  background-color: ${ge("neutral",200)};
@@ -3223,16 +3265,16 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3223
3265
  opacity: 1;
3224
3266
  }
3225
3267
  }
3226
- `,Hg=(e,t)=>e.findIndex((e=>e.value===t)),Bg=e=>1===e?"none":2===e?"left":"right",Fg=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i,activationMode:o="manual"})=>{const[a,l]=G(Hg(n,t)||0),s="view"===e;return B("div",{css:Vg(e),children:B(N.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return l(Hg(n,t=e)),void(i&&i(t));var t},activationMode:o,children:B(N.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>H(ie,{children:[s&&1===t&&"left"===Bg(a)?B("div",{css:Ag}):null,B(N.Trigger,{css:[jg,s?zg:Ig],"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),s&&1===t&&"right"===Bg(a)?B("div",{css:Ag}):null]},e.label)))})})})},Zg=oe`
3268
+ `,qg=(e,t)=>e.findIndex((e=>e.value===t)),Gg=e=>1===e?"none":2===e?"left":"right",Ug=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i,activationMode:o="manual"})=>{const[a,l]=G(qg(n,t)||0),s="view"===e;return B("div",{css:Hg(e),children:B(N.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return l(qg(n,t=e)),void(i&&i(t));var t},activationMode:o,children:B(N.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>H(ie,{children:[s&&1===t&&"left"===Gg(a)?B("div",{css:Zg}):null,B(N.Trigger,{css:[Bg,s?Wg:Fg],"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),s&&1===t&&"right"===Gg(a)?B("div",{css:Zg}):null]},e.label)))})})})},Xg=oe`
3227
3269
  display: flex;
3228
3270
  justify-content: flex-start;
3229
3271
  align-items: center;
3230
3272
  gap: 8px;
3231
- `,Wg=e=>oe`
3273
+ `,Yg=e=>oe`
3232
3274
  width: ${e||"16px"};
3233
3275
  position: relative;
3234
3276
  display: flex;
3235
- `,qg=oe`
3277
+ `,Kg=oe`
3236
3278
  height: 4px;
3237
3279
  width: 4px;
3238
3280
  background-color: ${ge("error",500)};
@@ -3240,7 +3282,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3240
3282
  position: absolute;
3241
3283
  top: 0px;
3242
3284
  right: 0px;
3243
- `,Gg=oe`
3285
+ `,Jg=oe`
3244
3286
  height: 10px;
3245
3287
  background-color: ${ge("error",500)};
3246
3288
  padding: 0 3px 1px 3px;
@@ -3251,11 +3293,11 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3251
3293
  position: absolute;
3252
3294
  top: -2px;
3253
3295
  left: 9px;
3254
- `,Ug=oe`
3296
+ `,Qg=oe`
3255
3297
  font-size: 9px;
3256
3298
  font-weight: 700;
3257
3299
  color: ${ge("error",100)};
3258
- `,Xg=oe`
3300
+ `,ev=oe`
3259
3301
  height: 16px;
3260
3302
  min-width: 16px;
3261
3303
  background-color: ${ge("error",500)};
@@ -3264,11 +3306,11 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3264
3306
  justify-content: center;
3265
3307
  align-items: center;
3266
3308
  padding: 0px 4px 1px 4px;
3267
- `,Yg=oe`
3309
+ `,tv=oe`
3268
3310
  font-size: 16px;
3269
3311
  font-weight: 700;
3270
3312
  color: ${ge("error",100)};
3271
- `,Kg=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);U((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),H("div",r?{css:Zg,role:"status","aria-live":"polite",children:[H("div",{css:Wg(),children:[B(Ae,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:B("div",{css:qg,"aria-hidden":!0})]}),n?B("p",{children:n}):null,o.length>0?B("div",{css:Xg,children:B("p",{css:Yg,"aria-label":`${t} unread message`,children:o})}):null]}:{css:Zg,role:"status","aria-live":"polite",children:[n?B("p",{children:n}):null,H("div",{css:Wg(a),children:[o.length>0?B("div",{css:Gg,children:B("p",{css:Ug,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?B("div",{css:qg,"aria-hidden":!0}):null,B(Ae,{color:"currentColor",height:"16px",width:"16px"})]})]})},Jg=(e,t)=>oe`
3313
+ `,nv=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);U((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),H("div",r?{css:Xg,role:"status","aria-live":"polite",children:[H("div",{css:Yg(),children:[B(Ae,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:B("div",{css:Kg,"aria-hidden":!0})]}),n?B("p",{children:n}):null,o.length>0?B("div",{css:ev,children:B("p",{css:tv,"aria-label":`${t} unread message`,children:o})}):null]}:{css:Xg,role:"status","aria-live":"polite",children:[n?B("p",{children:n}):null,H("div",{css:Yg(a),children:[o.length>0?B("div",{css:Jg,children:B("p",{css:Qg,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?B("div",{css:Kg,"aria-hidden":!0}):null,B(Ae,{color:"currentColor",height:"16px",width:"16px"})]})]})},rv=(e,t)=>oe`
3272
3314
  width: 100%;
3273
3315
  min-width: ${"small"===e?"234px":"320px"};
3274
3316
  border-radius: 4px;
@@ -3283,7 +3325,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3283
3325
  button {
3284
3326
  margin-left: ${t?0:"24px"};
3285
3327
  }
3286
- `,Qg=oe`
3328
+ `,iv=oe`
3287
3329
  display: flex;
3288
3330
  align-items: flex-start;
3289
3331
  gap: 8px;
@@ -3291,28 +3333,28 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3291
3333
  svg {
3292
3334
  margin-top: 6px;
3293
3335
  }
3294
- `,ev=e=>oe`
3336
+ `,ov=e=>oe`
3295
3337
  color: ${ge("neutral",800)};
3296
3338
  font-size: ${"small"===e?"14px":"18px"};
3297
3339
  line-height: ${"small"===e?"20px":"28px"};
3298
3340
  font-weight: 400;
3299
3341
  text-align: left;
3300
- `,tv=e=>oe`
3342
+ `,av=e=>oe`
3301
3343
  color: ${ge("neutral",700)};
3302
3344
  font-size: ${"small"===e?"12px":"16px"};
3303
3345
  line-height: ${"small"===e?"16px":"24px"};
3304
3346
  font-weight: 400;
3305
3347
  margin-left: 24px;
3306
3348
  text-align: left;
3307
- `,nv=oe`
3349
+ `,lv=oe`
3308
3350
  background-color: ${ge("neutral",100)};
3309
3351
  border: 1px solid ${ge("neutral",300)};
3310
3352
  color: ${ge("neutral",700)};
3311
- `,rv=oe`
3353
+ `,sv=oe`
3312
3354
  background-color: ${ge("neutral",200)};
3313
3355
  border: 1px solid ${ge("neutral",300)};
3314
3356
  color: ${ge("neutral",700)};
3315
- `,iv=oe`
3357
+ `,cv=oe`
3316
3358
  background-color: ${ge("success",100)};
3317
3359
  border: 1px solid ${ge("success",300)};
3318
3360
  color: ${ge("success",500)};
@@ -3320,7 +3362,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3320
3362
  p {
3321
3363
  color: ${ge("success",900)};
3322
3364
  }
3323
- `,ov=oe`
3365
+ `,dv=oe`
3324
3366
  background-color: ${ge("warning",100)};
3325
3367
  border: 1px solid ${ge("warning",300)};
3326
3368
  color: ${ge("warning",500)};
@@ -3328,7 +3370,7 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3328
3370
  p {
3329
3371
  color: ${ge("warning",900)};
3330
3372
  }
3331
- `,av=oe`
3373
+ `,uv=oe`
3332
3374
  background-color: ${ge("error",100)};
3333
3375
  border: 1px solid ${ge("error",300)};
3334
3376
  color: ${ge("error",500)};
@@ -3336,32 +3378,32 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3336
3378
  p {
3337
3379
  color: ${ge("error",900)};
3338
3380
  }
3339
- `,lv=({label:e,caption:t,variant:n,size:r="large",icon:i=B(Ee,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=nv;return"info-grey"===n?s=rv:"success"===n?s=iv:"warning"===n?s=ov:"error"===n&&(s=av),H("div",{css:[Jg(r,l),s],"aria-roledescription":"Note",children:[H("div",{children:[H("div",{css:Qg,children:[i,B("p",{css:ev(r),children:e})]}),B("p",{css:tv(r),children:t})]}),a?B(we,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},sv=oe`
3381
+ `,pv=({label:e,caption:t,variant:n,size:r="large",icon:i=B(Ee,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=lv;return"info-grey"===n?s=sv:"success"===n?s=cv:"warning"===n?s=dv:"error"===n&&(s=uv),H("div",{css:[rv(r,l),s],"aria-roledescription":"Note",children:[H("div",{children:[H("div",{css:iv,children:[i,B("p",{css:ov(r),children:e})]}),B("p",{css:av(r),children:t})]}),a?B(we,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},hv=oe`
3340
3382
  height: 8px;
3341
3383
  width: 100%;
3342
3384
  background-color: ${ge("neutral",300)};
3343
3385
  display: flex;
3344
3386
  align-items: center;
3345
3387
  justify-content: flex-start;
3346
- `,cv=e=>oe`
3388
+ `,fv=e=>oe`
3347
3389
  height: 100%;
3348
3390
  width: ${e}%;
3349
3391
  background-color: ${ge("primary",500)};
3350
3392
  transition: width 0.5s ease-in-out;
3351
- `,dv=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),B("div",{css:sv,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:B("div",{css:cv(t)})})},uv=oe`
3393
+ `,gv=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),B("div",{css:hv,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:B("div",{css:fv(t)})})},vv=oe`
3352
3394
  width: 100%;
3353
3395
  display: flex;
3354
3396
  align-items: center;
3355
3397
  justify-content: space-between;
3356
3398
  position: relative;
3357
- `,pv=oe`
3399
+ `,mv=oe`
3358
3400
  height: 60px;
3359
3401
  width: 80px;
3360
3402
  display: flex;
3361
3403
  flex-direction: column;
3362
3404
  align-items: center;
3363
3405
  justify-content: space-between;
3364
- `,hv=(e,t)=>oe`
3406
+ `,xv=(e,t)=>oe`
3365
3407
  height: 32px;
3366
3408
  width: 32px;
3367
3409
  display: flex;
@@ -3397,12 +3439,12 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3397
3439
  }
3398
3440
 
3399
3441
  ${t?`\n background-color: ${ge("neutral",300)};\n \n &:hover {\n background-color: ${ge("neutral",300)};\n box-shadow: none;\n }\n `:""}
3400
- `,fv=e=>oe`
3442
+ `,bv=e=>oe`
3401
3443
  color: ${ge("neutral",e?800:600)};
3402
3444
  font-size: 14px;
3403
3445
  line-height: 20px;
3404
3446
  font-weight: 400;
3405
- `,gv=oe`
3447
+ `,yv=oe`
3406
3448
  height: 1px;
3407
3449
  width: 100%;
3408
3450
  padding: 0 30px;
@@ -3410,11 +3452,11 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3410
3452
  top: 16px;
3411
3453
  left: 0;
3412
3454
  z-index: -1;
3413
- `,vv=oe`
3455
+ `,wv=oe`
3414
3456
  height: 1px;
3415
3457
  width: 100%;
3416
3458
  background-color: ${ge("neutral",400)};
3417
- `,mv=({steps:e,currentStep:t})=>H("div",{css:uv,children:[e.map(((e,n)=>H("div",{css:pv,children:[B("button",{css:hv(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?B(ke,{height:"16px",width:"16px"}):n+1}),e.label?B("p",{css:fv(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),B("div",{css:gv,children:B("div",{css:vv})})]}),xv=oe`
3459
+ `,Cv=({steps:e,currentStep:t})=>H("div",{css:vv,children:[e.map(((e,n)=>H("div",{css:mv,children:[B("button",{css:xv(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?B(ke,{height:"16px",width:"16px"}):n+1}),e.label?B("p",{css:bv(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),B("div",{css:yv,children:B("div",{css:wv})})]}),$v=oe`
3418
3460
  justify-content: space-between;
3419
3461
  align-items: center;
3420
3462
  gap: 8px;
@@ -3457,18 +3499,18 @@ function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3457
3499
  color: ${ge("error",900)};
3458
3500
  }
3459
3501
  }
3460
- `,bv=oe`
3502
+ `,kv=oe`
3461
3503
  font-size: 18px;
3462
3504
  line-height: 28px;
3463
3505
  font-weight: 400;
3464
3506
  color: ${ge("neutral",800)};
3465
- `,yv=oe`
3507
+ `,Sv=oe`
3466
3508
  font-size: 16px;
3467
3509
  line-height: 24px;
3468
3510
  font-weight: 400;
3469
3511
  color: ${ge("neutral",700)};
3470
- `,wv=oe`
3512
+ `,Ev=oe`
3471
3513
  padding: 6px;
3472
- `,Cv=oe`
3514
+ `,Ov=oe`
3473
3515
  padding: 6px;
3474
- `,$v={pauseOnPageIdle:!0,offsets:"24px"},kv={"top-start":j({placement:"top-start",...$v}),"top-end":j({placement:"top-end",...$v}),"bottom-start":j({placement:"bottom-start",...$v}),"bottom-end":j({placement:"bottom-end",...$v})},Sv=e=>{kv[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Ev=()=>Object.keys(kv).map((e=>B(l,{children:B(I,{toaster:kv[e],insetInline:{mdDown:"4"},children:t=>H(A.Root,{css:xv,width:{md:"sm"},children:[H(z,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:B(Ee,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?B(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:B(Ne,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:B(Ve,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:B(je,{color:"var(--chakra-colors-error-500)"}):null,H(z,{gap:"1",flex:"1",maxWidth:"100%",children:[B(A.Title,{css:bv,"aria-label":`${t.title}`,children:t.title}),t.description?B(A.Title,{css:yv,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?H(z,{flexDirection:"row",children:[t.action?B(we,{css:wv,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),kv[e].dismiss()}}):null,t.meta?.closable?B(we,{css:Cv,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:B(Pe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>kv[e].dismiss()}):null]}):null]})})},e)));export{Kg as Badge,Vr as BaseMap,Xf as Breadcrumb,we as Button,Lt as Checkbox,hn as CheckboxList,Vt as CheckboxOptionCard,at as CloseButton,$l as ExtendableCard,eg as Footer,ot as IconButton,Ir as IconMarker,Ar as IconMarkers,lv as InlineMessage,Qn as InputWithUnits,Ya as ItemCount,pa as LayerGroup,ha as LayerGroupContainer,ua as LayerItem,xa as LayerParameters,Pa as LegendItem,ol as List,xt as MapControlsToolbar,ta as MapPopUp,ft as Menu,ag as MobileTabBar,Es as Modal,kt as MultiActionButton,Lg as Navbar,Ng as NavigationRail,Ft as OptionCard,dl as Pagination,Ms as Panel,lr as Password,dv as ProgressBar,Aa as QualitativeAttribute,Gt as Radio,Ut as RadioGroup,gr as RadioList,nt as SSOButtons,qa as ScaleBar,Jn as Select,Wf as Sheet,rn as Slider,br as SliderInput,mv as StepProgressIndicator,an as Switch,Fg as TabBar,xl as Table,yl as TableCell,bl as TableRow,Xn as Tag,En as TextInput,Or as Textarea,Ev as Toast,mt as Toolbar,Ot as Tooltip,fe as designSystemStyles,ge as getThemedColor,Sv as showToast};
3516
+ `,Rv={pauseOnPageIdle:!0,offsets:"24px"},Lv={"top-start":j({placement:"top-start",...Rv}),"top-end":j({placement:"top-end",...Rv}),"bottom-start":j({placement:"bottom-start",...Rv}),"bottom-end":j({placement:"bottom-end",...Rv})},Pv=e=>{Lv[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Tv=()=>Object.keys(Lv).map((e=>B(l,{children:B(I,{toaster:Lv[e],insetInline:{mdDown:"4"},children:t=>H(A.Root,{css:$v,width:{md:"sm"},children:[H(z,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:B(Ee,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?B(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:B(Ne,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:B(Ve,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:B(je,{color:"var(--chakra-colors-error-500)"}):null,H(z,{gap:"1",flex:"1",maxWidth:"100%",children:[B(A.Title,{css:kv,"aria-label":`${t.title}`,children:t.title}),t.description?B(A.Title,{css:Sv,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?H(z,{flexDirection:"row",children:[t.action?B(we,{css:Ev,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),Lv[e].dismiss()}}):null,t.meta?.closable?B(we,{css:Ov,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:B(Pe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>Lv[e].dismiss()}):null]}):null]})})},e)));export{Rl as AnalysisWidget,nv as Badge,Vr as BaseMap,eg as Breadcrumb,we as Button,Lt as Checkbox,hn as CheckboxList,Vt as CheckboxOptionCard,at as CloseButton,$l as ExtendableCard,og as Footer,ot as IconButton,Ir as IconMarker,Ar as IconMarkers,pv as InlineMessage,Qn as InputWithUnits,Ya as ItemCount,pa as LayerGroup,ha as LayerGroupContainer,ua as LayerItem,xa as LayerParameters,Pa as LegendItem,ol as List,xt as MapControlsToolbar,ta as MapPopUp,ft as Menu,ug as MobileTabBar,Ts as Modal,kt as MultiActionButton,Dg as Navbar,zg as NavigationRail,Ft as OptionCard,dl as Pagination,Is as Panel,lr as Password,gv as ProgressBar,Aa as QualitativeAttribute,Gt as Radio,Ut as RadioGroup,gr as RadioList,nt as SSOButtons,qa as ScaleBar,Jn as Select,Yf as Sheet,rn as Slider,br as SliderInput,Cv as StepProgressIndicator,an as Switch,Ug as TabBar,xl as Table,yl as TableCell,bl as TableRow,Xn as Tag,En as TextInput,Or as Textarea,Tv as Toast,mt as Toolbar,Ot as Tooltip,fe as designSystemStyles,ge as getThemedColor,Pv as showToast};