var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,o++)r[o]=s[i];return r};System.register(["./p-641f968d.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.g;n=e.a;r=e.f}],execute:function(){e({c:i,e:s,g:a,h:ve,i:ne,l:te,n:se,o:re,y:ge});var o=e("a",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function i(e,t,n){return n={path:t,exports:{},require:function(e,t){return u()}},e(n,n.exports),n.exports}function a(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:true,get:function(){return e[n]}})}));return t}function u(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}function c(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)}}function f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}var l=e("s",function(){function e(e){var t=this,n=this;this._status="Initial",this.onChange=function(e,t){n.options.onChange&&n.options.onChange(e,t)},this.onConnect=function(e){try{return t.status="Connected",t.options.onChange&&t.options.onChange(e,e),Promise.resolve(new Promise((function(e){t.resolvePromise=e})))}catch(e){return Promise.reject(e)}},this.onDisconnect=function(){n.status="Connecting",n.start()},this.options=e}var t=e.prototype;return t.start=function(){var e=this,t=0;this.status="Connecting";var n=function(){return e.status},r=h(this.options.attempts)||10,o=function(){if("Connected"!==n()){var o=new CustomEvent(e.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:e.onConnect,onChange:e.onChange,onDisconnect:e.onDisconnect}});h(e.options.element).dispatchEvent(o),"Connected"!==n()?++t>=r&&(e._interval&&clearInterval(e._interval),e.status="Timeout"):"Connected"===n()&&e._interval&&clearInterval(e._interval)}};return(h(this.options.pollingMs)||100)>0&&r>1&&(this._interval=setInterval(o,h(this.options.pollingMs)||100)),o(),this},t.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},f(e,[{key:"status",set:function(e){this._status=e,this.options.onStatus&&this.options.onStatus(e)},get:function(){return this._status}}]),e}()),d=e("d",function(){function e(e){var t=this;this.__listeners=[],this.connectListener=function(e){try{e.stopPropagation(),t.__listeners=[].concat(t.__listeners,[e.detail]);var n=function(n,r){try{var o=Promise.resolve(e.detail.onConnect(t.__current)).then((function(){}))}catch(e){return r(!0,e)}return o&&o.then?o.then(r.bind(null,!1),r.bind(null,!0)):r(!1,o)}(0,(function(n,r){var o,s;if(t.__listeners=(s=(o=t.__listeners).indexOf(e.detail),o.slice(0,s).concat(o.slice(s+1,o.length))),n)throw r;return r}));return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(e){return Promise.reject(e)}},this.options=e,this.__current=h(e.initialState)}var t=e.prototype;return t.start=function(){return h(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},t.stop=function(){return h(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map((function(e){e.onDisconnect()})),this.__listeners=[],this},f(e,[{key:"context",set:function(e){var t=this.__current;this.__current=e,this.__listeners.forEach((function(n){return n.onChange(e,t)}))},get:function(){return h(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),e}());function h(e){return"function"==typeof typeof e?e():e}
/**
       * @license
       * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
       * This code may only be used under the BSD style license found at
       * http://polymer.github.io/LICENSE.txt
       * The complete set of authors may be found at
       * http://polymer.github.io/AUTHORS.txt
       * The complete set of contributors may be found at
       * http://polymer.github.io/CONTRIBUTORS.txt
       * Code distributed by Google as part of the polymer project is also
       * subject to an additional IP rights grant found at
       * http://polymer.github.io/PATENTS.txt
       */var p="{{lit-"+String(Math.random()).slice(2)+"}}";
/**
       * @license
       * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
       * This code may only be used under the BSD style license found at
       * http://polymer.github.io/LICENSE.txt
       * The complete set of authors may be found at
       * http://polymer.github.io/AUTHORS.txt
       * The complete set of contributors may be found at
       * http://polymer.github.io/CONTRIBUTORS.txt
       * Code distributed by Google as part of the polymer project is also
       * subject to an additional IP rights grant found at
       * http://polymer.github.io/PATENTS.txt
       */var C=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(e){return e}});
/**
       * @license
       * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
       * This code may only be used under the BSD style license found at
       * http://polymer.github.io/LICENSE.txt
       * The complete set of authors may be found at
       * http://polymer.github.io/AUTHORS.txt
       * The complete set of contributors may be found at
       * http://polymer.github.io/CONTRIBUTORS.txt
       * Code distributed by Google as part of the polymer project is also
       * subject to an additional IP rights grant found at
       * http://polymer.github.io/PATENTS.txt
       */(function(){try{var e={get capture(){return false}};window.addEventListener("test",e,e);window.removeEventListener("test",e,e)}catch(e){}})();
/**
       * @license
       * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
       * This code may only be used under the BSD style license found at
       * http://polymer.github.io/LICENSE.txt
       * The complete set of authors may be found at
       * http://polymer.github.io/AUTHORS.txt
       * The complete set of contributors may be found at
       * http://polymer.github.io/CONTRIBUTORS.txt
       * Code distributed by Google as part of the polymer project is also
       * subject to an additional IP rights grant found at
       * http://polymer.github.io/PATENTS.txt
       */if(typeof window!=="undefined"){(window["litHtmlVersions"]||(window["litHtmlVersions"]=[])).push("1.4.1")}var v;var g=0;function m(e){v=e}function y(){v=null;g=0}function F(){return g++}var b=Symbol("haunted.hook");var w=Symbol("haunted.effects");var _=Symbol("haunted.layoutEffects");var x="haunted.context";var k=function(){function e(e,t){this.update=e;this.host=t;this[b]=new Map;this[w]=[];this[_]=[]}e.prototype.run=function(e){m(this);var t=e();y();return t};e.prototype._runEffects=function(e){var t=this[e];m(this);for(var n=0,r=t;n<r.length;n++){var o=r[n];o.call(this)}y()};e.prototype.runEffects=function(){this._runEffects(w)};e.prototype.runLayoutEffects=function(){this._runEffects(_)};e.prototype.teardown=function(){var e=this[b];e.forEach((function(e){if(typeof e.teardown==="function"){e.teardown()}}))};return e}();var E=Promise.resolve().then.bind(Promise.resolve());var A=function(){function e(e,t){this.id=e;this.state=t}return e}();function j(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}var r=F();var o=v[b];var s=o.get(r);if(!s){s=new(e.bind.apply(e,__spreadArrays([void 0,r,v],t)));o.set(r,s)}return s.update.apply(s,t)}function O(e){return j.bind(null,e)}function P(e){return O(function(t){__extends(n,t);function n(n,r,o,s){var i=t.call(this,n,r)||this;e(r,i);return i}n.prototype.update=function(e,t){this.callback=e;this.values=t};n.prototype.call=function(){if(!this.values||this.hasChanged()){this.run()}this.lastValues=this.values};n.prototype.run=function(){this.teardown();this._teardown=this.callback.call(this.state)};n.prototype.teardown=function(){if(typeof this._teardown==="function"){this._teardown()}};n.prototype.hasChanged=function(){var e=this;return!this.lastValues||this.values.some((function(t,n){return e.lastValues[n]!==t}))};return n}(A))}function S(e,t){e[w].push(t)}var M=e("f",P(S));var I=O(function(e){__extends(t,e);function t(t,n,r){var o=e.call(this,t,n)||this;o._updater=o._updater.bind(o);o._ranEffect=false;o._unsubscribe=null;S(n,o);return o}t.prototype.update=function(e){if(this.state.virtual){throw new Error("can't be used with virtual components")}if(this.Context!==e){this._subscribe(e);this.Context=e}return this.value};t.prototype.call=function(){if(!this._ranEffect){this._ranEffect=true;if(this._unsubscribe)this._unsubscribe();this._subscribe(this.Context);this.state.update()}};t.prototype._updater=function(e){this.value=e;this.state.update()};t.prototype._subscribe=function(e){var t={Context:e,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent(x,{detail:t,bubbles:true,cancelable:true,composed:true}));var n=t.unsubscribe,r=n===void 0?null:n,o=t.value;this.value=r?o:e.defaultValue;this._unsubscribe=r};t.prototype.teardown=function(){if(this._unsubscribe){this._unsubscribe()}};return t}(A));var L=e("u",O(function(e){__extends(t,e);function t(t,n,r,o){var s=e.call(this,t,n)||this;s.value=r();s.values=o;return s}t.prototype.update=function(e,t){if(this.hasChanged(t)){this.values=t;this.value=e()}return this.value};t.prototype.hasChanged=function(e){var t=this;if(e===void 0){e=[]}return e.some((function(e,n){return t.values[n]!==e}))};return t}(A)));function N(e,t){e[_].push(t)}var z=P(N);var D=e("k",O(function(e){__extends(t,e);function t(t,n,r){var o=e.call(this,t,n)||this;o.updater=o.updater.bind(o);if(typeof r==="function"){r=r()}o.makeArgs(r);return o}t.prototype.update=function(){return this.args};t.prototype.updater=function(e){if(typeof e==="function"){var t=e;var n=this.args[0];e=t(n)}this.makeArgs(e);this.state.update()};t.prototype.makeArgs=function(e){this.args=Object.freeze([e,this.updater])};return t}(A)));var $=e("j",O(function(e){__extends(t,e);function t(t,n,r,o,s){var i=e.call(this,t,n)||this;i.dispatch=i.dispatch.bind(i);i.currentState=s!==undefined?s(o):o;return i}t.prototype.update=function(e){this.reducer=e;return[this.currentState,this.dispatch]};t.prototype.dispatch=function(e){this.currentState=this.reducer(this.currentState,e);this.state.update()};return t}(A)));var T=e("m",(function(e){return L((function(){return{current:e}}),[])}));var J=1e3;var R=J*60;var V=R*60;var U=V*24;var Z=U*7;var q=U*365.25;var H=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return B(e)}else if(n==="number"&&isFinite(e)){return t.long?W(e):G(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function B(e){e=String(e);if(e.length>100){return}var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t){return}var n=parseFloat(t[1]);var r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*q;case"weeks":case"week":case"w":return n*Z;case"days":case"day":case"d":return n*U;case"hours":case"hour":case"hrs":case"hr":case"h":return n*V;case"minutes":case"minute":case"mins":case"min":case"m":return n*R;case"seconds":case"second":case"secs":case"sec":case"s":return n*J;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}function G(e){var t=Math.abs(e);if(t>=U){return Math.round(e/U)+"d"}if(t>=V){return Math.round(e/V)+"h"}if(t>=R){return Math.round(e/R)+"m"}if(t>=J){return Math.round(e/J)+"s"}return e+"ms"}function W(e){var t=Math.abs(e);if(t>=U){return Q(e,t,U,"day")}if(t>=V){return Q(e,t,V,"hour")}if(t>=R){return Q(e,t,R,"minute")}if(t>=J){return Q(e,t,J,"second")}return e+" ms"}function Q(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}function K(e){n.debug=n;n.default=n;n.coerce=u;n.disable=s;n.enable=o;n.enabled=i;n.humanize=H;n.destroy=c;Object.keys(e).forEach((function(t){n[t]=e[t]}));n.names=[];n.skips=[];n.formatters={};function t(e){var t=0;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){var t;var o=null;var s;var i;function a(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(!a.enabled){return}var o=a;var s=Number(new Date);var i=s-(t||s);o.diff=i;o.prev=t;o.curr=s;t=s;e[0]=n.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}var u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(t,r){if(t==="%%"){return"%"}u++;var s=n.formatters[r];if(typeof s==="function"){var i=e[u];t=s.call(o,i);e.splice(u,1);u--}return t}));n.formatArgs.call(o,e);var c=o.log||n.log;c.apply(o,e)}a.namespace=e;a.useColors=n.useColors();a.color=n.selectColor(e);a.extend=r;a.destroy=n.destroy;Object.defineProperty(a,"enabled",{enumerable:true,configurable:false,get:function(){if(o!==null){return o}if(s!==n.namespaces){s=n.namespaces;i=n.enabled(e)}return i},set:function(e){o=e}});if(typeof n.init==="function"){n.init(a)}return a}function r(e,t){var r=n(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function o(e){n.save(e);n.namespaces=e;n.names=[];n.skips=[];var t;var r=(typeof e==="string"?e:"").split(/[\s,]+/);var o=r.length;for(t=0;t<o;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){n.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{n.names.push(new RegExp("^"+e+"$"))}}}function s(){var e=__spreadArrays(n.names.map(a),n.skips.map(a).map((function(e){return"-"+e}))).join(",");n.enable("");return e}function i(e){if(e[e.length-1]==="*"){return true}var t;var r;for(t=0,r=n.skips.length;t<r;t++){if(n.skips[t].test(e)){return false}}for(t=0,r=n.names.length;t<r;t++){if(n.names[t].test(e)){return true}}return false}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function u(e){if(e instanceof Error){return e.stack||e.message}return e}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}n.enable(n.load());return n}var X=K;var Y=e("b",i((function(e,t){t.formatArgs=r;t.save=o;t.load=s;t.useColors=n;t.storage=i();t.destroy=function(){var e=false;return function(){if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}}();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0;var o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){if(e==="%%"){return}r++;if(e==="%c"){o=r}}));t.splice(o,0,n)}t.log=console.debug||console.log||function(){};function o(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function i(){try{return localStorage}catch(e){}}e.exports=X(t);var a=e.exports.formatters;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})));function ee(){return n()}function te(){var e=ee();return t(e)}function ne(e,t){void 0===t&&(t={});var n=te();return ve(n,e,t)}function re(e,t){var n=te();return ge(n,e,t)}var oe=Y("stencil-hook");function se(e){var n,o=t(e),s=(n=!1,new k((function(){oe("Queue update on element",o),n||(n=!0,Promise.resolve().then((function(){oe("Forced update on element",o),n=!1,r(o)})))}),o)),i=e.disconnectedCallback;if(!i)throw new Error("Stencil hooks requires `disconnectedCallback` to be defined (even if it's empty). This is because of how the Stencil compiler works internally");e.disconnectedCallback=function(){s.teardown(),ie(i)};var a=e.connectedCallback;e.connectedCallback=function(){s.update(),ie(a)};var u=e.render.bind(e);e.render=function(){var e=s.run(u);return s.runEffects(),e}}function ie(e){"function"==typeof e&&e()}function ae(){return(ae=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}).apply(this,arguments)}var ue=1e3,ce=60*ue,fe=60*ce,le=24*fe,de=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*le;case"hours":case"hour":case"hrs":case"hr":case"h":return n*fe;case"minutes":case"minute":case"mins":case"min":case"m":return n*ce;case"seconds":case"second":case"secs":case"sec":case"s":return n*ue;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=le?he(e,t,le,"day"):t>=fe?he(e,t,fe,"hour"):t>=ce?he(e,t,ce,"minute"):t>=ue?he(e,t,ue,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=le?Math.round(e/le)+"d":t>=fe?Math.round(e/fe)+"h":t>=ce?Math.round(e/ce)+"m":t>=ue?Math.round(e/ue)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function he(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var pe,Ce=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=function(e){function t(e){var r,o=null;function s(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!s.enabled)return;var o=s,i=Number(new Date);o.diff=i-(r||i),o.prev=r,o.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";a++;var s=t.formatters[r];return"function"==typeof s&&(n=s.call(o,e[a]),e.splice(a,1),a--),n})),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===o?t.enabled(e):o},set:function(e){o=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=__spreadArrays(t.names.map(r),t.skips.map(r).map((function(e){return"-"+e}))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=de,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){var n=0;for(var r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);var n=e.exports.formatters;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(pe={exports:{}},pe.exports),pe.exports)("useDomContext");function ve(e,t,n){void 0===n&&(n={});var r=T(void 0),o=D(void 0),s=o[0],i=o[1],a=L((function(){var o;try{(o=new l(ae({contextName:t,element:e,onChange:function(e){r&&(r.current=e),i(e)}},n))).start()}catch(e){Ce("Listener failed to start",e)}return Ce("Listener initialized",o),{listener:o}}),[t,r]).listener;return M((function(){return Ce("Listener starting (or restarting)",a),a.start(),function(){Ce("Listener stopping (or restopping)",a),a.stop()}}),[a,e.isConnected]),s||(null==r?void 0:r.current)}function ge(e,t,n){var r=L((function(){var r=new d({contextName:t,element:e,initialState:n});return r.start(),Ce("Provider initialized",r),r}),[t,e]);M((function(){return Ce("Provider starting (or restarting)",r),r.start(),function(){Ce("Provider stopping (or re-stopping)",r),r.stop()}}),[r,e.isConnected]);var o=$((function(e,t){var n;return Ce("New context value",t),n="function"==typeof t?t(r.context):t,r.context=n,r.context}),r.context);return[o[0],o[1],r]}}}}));