@tanstack/react-router-devtools 0.0.1-beta.49 → 0.0.1-beta.56
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/build/cjs/devtools.js +16 -109
- package/build/cjs/devtools.js.map +1 -1
- package/build/cjs/utils.js +1 -32
- package/build/cjs/utils.js.map +1 -1
- package/build/esm/index.js +17 -140
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +218 -10116
- package/build/umd/index.development.js +101 -4506
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +15 -5
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -5
- package/src/devtools.tsx +28 -34
- package/src/utils.ts +1 -11
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
!function(t
|
|
11
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("use-sync-external-store/shim/with-selector")):"function"==typeof define&&define.amd?define(["exports","react","use-sync-external-store/shim/with-selector"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRouterDevtools={},e.React,e.withSelector)}(this,(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=a(t),l=r(t);function i(){return i=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},i.apply(this,arguments)}
|
|
12
12
|
/**
|
|
13
|
-
* router
|
|
13
|
+
* router
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) TanStack
|
|
16
16
|
*
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @license MIT
|
|
21
21
|
*/
|
|
22
|
-
function
|
|
22
|
+
function d(e){return e[e.length-1]}
|
|
23
23
|
/**
|
|
24
|
-
* react-
|
|
24
|
+
* react-store
|
|
25
25
|
*
|
|
26
26
|
* Copyright (c) TanStack
|
|
27
27
|
*
|
|
@@ -30,5 +30,15 @@ function ot(t){return t[t.length-1]}
|
|
|
30
30
|
*
|
|
31
31
|
* @license MIT
|
|
32
32
|
*/
|
|
33
|
-
function it(t,e=(t=>t),r){return n.useSyncExternalStoreWithSelector(t.subscribe,(()=>t.state),(()=>t.state),e,r?ut:void 0)}function ut(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}nt.setUseProxies.bind(nt),nt.applyPatches.bind(nt),nt.createDraft.bind(nt),nt.finishDraft.bind(nt),rt(!1);const at=i.createContext(null);function ct(){const t=i.useContext(at);return function(t,e){if(t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch{}}}(!t,"useRouter must be used inside a <Router> component!"),t.router}function lt(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ft(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function st(t){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(t)}function yt(t){ft(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===st(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var pt={};function dt(){return pt}function bt(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function ht(t,e){ft(2,arguments);var n=yt(t),r=yt(e),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function mt(t){ft(1,arguments);var e=1,n=yt(t),r=n.getUTCDay(),o=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function vt(t){ft(1,arguments);var e=yt(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=mt(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var u=mt(i);return e.getTime()>=o.getTime()?n+1:e.getTime()>=u.getTime()?n:n-1}function gt(t){ft(1,arguments);var e=vt(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=mt(n);return r}var wt=6048e5;function Ot(t){ft(1,arguments);var e=yt(t),n=mt(e).getTime()-gt(e).getTime();return Math.round(n/wt)+1}function Pt(t,e){var n,r,o,i,u,a,c,l;ft(1,arguments);var f=dt(),s=lt(null!==(n=null!==(r=null!==(o=null!==(i=null==e?void 0:e.weekStartsOn)&&void 0!==i?i:null==e||null===(u=e.locale)||void 0===u||null===(a=u.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=yt(t),p=y.getUTCDay(),d=(p<s?7:0)+p-s;return y.setUTCDate(y.getUTCDate()-d),y.setUTCHours(0,0,0,0),y}function jt(t,e){var n,r,o,i,u,a,c,l;ft(1,arguments);var f=yt(t),s=f.getUTCFullYear(),y=dt(),p=lt(null!==(n=null!==(r=null!==(o=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(u=e.locale)||void 0===u||null===(a=u.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:y.firstWeekContainsDate)&&void 0!==r?r:null===(c=y.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(s+1,0,p),d.setUTCHours(0,0,0,0);var b=Pt(d,e),h=new Date(0);h.setUTCFullYear(s,0,p),h.setUTCHours(0,0,0,0);var m=Pt(h,e);return f.getTime()>=b.getTime()?s+1:f.getTime()>=m.getTime()?s:s-1}function St(t,e){var n,r,o,i,u,a,c,l;ft(1,arguments);var f=dt(),s=lt(null!==(n=null!==(r=null!==(o=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(u=e.locale)||void 0===u||null===(a=u.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),y=jt(t,e),p=new Date(0);p.setUTCFullYear(y,0,s),p.setUTCHours(0,0,0,0);var d=Pt(p,e);return d}var kt=6048e5;function xt(t,e){ft(1,arguments);var n=yt(t),r=Pt(n,e).getTime()-St(n,e).getTime();return Math.round(r/kt)+1}var Et={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Tt(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var _t={date:Tt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Tt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ct(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=t.formattingValues[i]||t.formattingValues[o]}else{var u=t.defaultWidth,a=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[a]||t.values[u]}return r[t.argumentCallback?t.argumentCallback(e):e]}}var Dt={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ct({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ct({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ct({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ct({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ct({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Mt(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;var u,a=i[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(c)?Bt(c,(function(t){return t.test(a)})):At(c,(function(t){return t.test(a)}));u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=e.slice(a.length);return{value:u,rest:f}}}function At(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Bt(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var Ut,It={ordinalNumber:(Ut={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Ut.matchPattern);if(!n)return null;var r=n[0],o=t.match(Ut.parsePattern);if(!o)return null;var i=Ut.valueCallback?Ut.valueCallback(o[0]):o[0];i=e.valueCallback?e.valueCallback(i):i;var u=t.slice(r.length);return{value:i,rest:u}}),era:Mt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Mt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Mt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Mt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Mt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Ht={code:"en-US",formatDistance:function(t,e,n){var r,o=Et[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:_t,formatRelative:function(t,e,n,r){return Rt[t]},localize:Dt,match:It,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Wt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Yt(t){return Wt({},t)}var Ft=6e4,qt=1440,Lt=43200,Nt=525600;function zt(t){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(t)}function Qt(t,e){return Qt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Qt(t,e)}function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gt(t);if(e){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xt(this,n)}}function Xt(t,e){return!e||"object"!==zt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gt(t){return Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gt(t)}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vt(t,e,n){return e&&Kt(t.prototype,e),n&&Kt(t,n),t}var Zt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qt(t,e)}(n,t);var e=$t(n);function n(t,r,o,i,u){var a;return Jt(this,n),(a=e.call(this)).value=t,a.validateValue=r,a.setValue=o,a.priority=i,u&&(a.subPriority=u),a}return Vt(n,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),n}(function(){function t(){var e,n,r;Jt(this,t),r=0,(n="subPriority")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}return Vt(t,[{key:"validate",value:function(t,e){return!0}}]),t}());function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ee=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,n=[{key:"run",value:function(t,e,n,r){var o=this.parse(t,e,n,r);return o?{setter:new Zt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,e,n){return!0}}],n&&te(e.prototype,n),r&&te(e,r),t}();function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ie(t,e){return ie=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ie(t,e)}function ue(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=le(t);if(e){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ae(this,n)}}function ae(t,e){return!e||"object"!==ne(e)&&"function"!=typeof e?ce(t):e}function ce(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function le(t){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},le(t)}function fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ie(t,e)}(i,t);var e,n,r,o=ue(i);function i(){var t;re(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fe(ce(t=o.call.apply(o,[this].concat(n))),"priority",140),fe(ce(t),"incompatibleTokens",["R","u","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}],n&&oe(e.prototype,n),r&&oe(e,r),i}(ee),ye=/^(1[0-2]|0?\d)/,pe=/^(3[0-1]|[0-2]?\d)/,de=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,be=/^(5[0-3]|[0-4]?\d)/,he=/^(2[0-3]|[0-1]?\d)/,me=/^(2[0-4]|[0-1]?\d)/,ve=/^(1[0-1]|0?\d)/,ge=/^(1[0-2]|0?\d)/,we=/^[0-5]?\d/,Oe=/^[0-5]?\d/,Pe=/^\d/,je=/^\d{1,2}/,Se=/^\d{1,3}/,ke=/^\d{1,4}/,xe=/^-?\d+/,Ee=/^-?\d/,Te=/^-?\d{1,2}/,_e=/^-?\d{1,3}/,Re=/^-?\d{1,4}/,Ce=/^([+-])(\d{2})(\d{2})?|Z/,De=/^([+-])(\d{2})(\d{2})|Z/,Me=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ae=/^([+-])(\d{2}):(\d{2})|Z/,Be=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ue(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Ie(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function He(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function We(t){return Ie(xe,t)}function Ye(t,e){switch(t){case 1:return Ie(Pe,e);case 2:return Ie(je,e);case 3:return Ie(Se,e);case 4:return Ie(ke,e);default:return Ie(new RegExp("^\\d{1,"+t+"}"),e)}}function Fe(t,e){switch(t){case 1:return Ie(Ee,e);case 2:return Ie(Te,e);case 3:return Ie(_e,e);case 4:return Ie(Re,e);default:return Ie(new RegExp("^-?\\d{1,"+t+"}"),e)}}function qe(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Le(t,e){var n,r=e>0,o=r?e:1-e;if(o<=50)n=t||100;else{var i=o+50;n=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return r?n:1-n}function Ne(t){return t%400==0||t%4==0&&t%100!=0}function ze(t){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(t)}function Qe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xe(t,e){return Xe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Xe(t,e)}function Ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ve(t);if(e){var o=Ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Je(this,n)}}function Je(t,e){return!e||"object"!==ze(e)&&"function"!=typeof e?Ke(t):e}function Ke(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ve(t){return Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ve(t)}function Ze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xe(t,e)}(i,t);var e,n,r,o=Ge(i);function i(){var t;Qe(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ze(Ke(t=o.call.apply(o,[this].concat(n))),"priority",130),Ze(Ke(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Ue(Ye(4,t),r);case"yo":return Ue(n.ordinalNumber(t,{unit:"year"}),r);default:return Ue(Ye(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var o=Le(n.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}],n&&$e(e.prototype,n),r&&$e(e,r),i}(ee);function en(t){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(t)}function nn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function on(t,e){return on=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},on(t,e)}function un(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ln(t);if(e){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return an(this,n)}}function an(t,e){return!e||"object"!==en(e)&&"function"!=typeof e?cn(t):e}function cn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ln(t)}function fn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&on(t,e)}(i,t);var e,n,r,o=un(i);function i(){var t;nn(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fn(cn(t=o.call.apply(o,[this].concat(n))),"priority",130),fn(cn(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Ue(Ye(4,t),r);case"Yo":return Ue(n.ordinalNumber(t,{unit:"year"}),r);default:return Ue(Ye(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,r){var o=jt(t,r);if(n.isTwoDigitYear){var i=Le(n.year,o);return t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Pt(t,r)}var u="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(u,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Pt(t,r)}}],n&&rn(e.prototype,n),r&&rn(e,r),i}(ee);function yn(t){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(t)}function pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bn(t,e){return bn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},bn(t,e)}function hn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gn(t);if(e){var o=gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mn(this,n)}}function mn(t,e){return!e||"object"!==yn(e)&&"function"!=typeof e?vn(t):e}function vn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gn(t)}function wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var On=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bn(t,e)}(i,t);var e,n,r,o=hn(i);function i(){var t;pn(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return wn(vn(t=o.call.apply(o,[this].concat(n))),"priority",130),wn(vn(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return e=i,(n=[{key:"parse",value:function(t,e){return Fe("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),mt(r)}}])&&dn(e.prototype,n),r&&dn(e,r),i}(ee);function Pn(t){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(t)}function jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kn(t,e){return kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},kn(t,e)}function xn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_n(t);if(e){var o=_n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return En(this,n)}}function En(t,e){return!e||"object"!==Pn(e)&&"function"!=typeof e?Tn(t):e}function Tn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_n(t)}function Rn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kn(t,e)}(i,t);var e,n,r,o=xn(i);function i(){var t;jn(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Rn(Tn(t=o.call.apply(o,[this].concat(n))),"priority",130),Rn(Tn(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return e=i,(n=[{key:"parse",value:function(t,e){return Fe("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}])&&Sn(e.prototype,n),r&&Sn(e,r),i}(ee);function Dn(t){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(t)}function Mn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function An(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bn(t,e){return Bn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Bn(t,e)}function Un(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wn(t);if(e){var o=Wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return In(this,n)}}function In(t,e){return!e||"object"!==Dn(e)&&"function"!=typeof e?Hn(t):e}function Hn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wn(t){return Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Wn(t)}function Yn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bn(t,e)}(i,t);var e,n,r,o=Un(i);function i(){var t;Mn(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Yn(Hn(t=o.call.apply(o,[this].concat(n))),"priority",120),Yn(Hn(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return Ye(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}],n&&An(e.prototype,n),r&&An(e,r),i}(ee);function qn(t){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(t)}function Ln(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zn(t,e){return zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},zn(t,e)}function Qn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gn(t);if(e){var o=Gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(t,e){return!e||"object"!==qn(e)&&"function"!=typeof e?Xn(t):e}function Xn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gn(t){return Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gn(t)}function Jn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zn(t,e)}(i,t);var e,n,r,o=Qn(i);function i(){var t;Ln(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Jn(Xn(t=o.call.apply(o,[this].concat(n))),"priority",120),Jn(Xn(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return Ye(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}],n&&Nn(e.prototype,n),r&&Nn(e,r),i}(ee);function Vn(t){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(t)}function Zn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function er(t,e){return er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},er(t,e)}function nr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ir(t);if(e){var o=ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rr(this,n)}}function rr(t,e){return!e||"object"!==Vn(e)&&"function"!=typeof e?or(t):e}function or(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ir(t){return ir=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ir(t)}function ur(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ar=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&er(t,e)}(i,t);var e,n,r,o=nr(i);function i(){var t;Zn(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ur(or(t=o.call.apply(o,[this].concat(n))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ur(or(t),"priority",110),t}return e=i,n=[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"M":return Ue(Ie(ye,t),r);case"MM":return Ue(Ye(2,t),r);case"Mo":return Ue(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}],n&&tr(e.prototype,n),r&&tr(e,r),i}(ee);function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sr(t,e){return sr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},sr(t,e)}function yr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=br(t);if(e){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pr(this,n)}}function pr(t,e){return!e||"object"!==cr(e)&&"function"!=typeof e?dr(t):e}function dr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function br(t){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},br(t)}function hr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sr(t,e)}(i,t);var e,n,r,o=yr(i);function i(){var t;lr(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return hr(dr(t=o.call.apply(o,[this].concat(n))),"priority",110),hr(dr(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"L":return Ue(Ie(ye,t),r);case"LL":return Ue(Ye(2,t),r);case"Lo":return Ue(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}],n&&fr(e.prototype,n),r&&fr(e,r),i}(ee);function vr(t){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(t)}function gr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Or(t,e){return Or=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Or(t,e)}function Pr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=kr(t);if(e){var o=kr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jr(this,n)}}function jr(t,e){return!e||"object"!==vr(e)&&"function"!=typeof e?Sr(t):e}function Sr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kr(t){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},kr(t)}function xr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Er=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Or(t,e)}(i,t);var e,n,r,o=Pr(i);function i(){var t;gr(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xr(Sr(t=o.call.apply(o,[this].concat(n))),"priority",100),xr(Sr(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"w":return Ie(be,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,r){return Pt(function(t,e,n){ft(2,arguments);var r=yt(t),o=lt(e),i=xt(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,n,r),r)}}],n&&wr(e.prototype,n),r&&wr(e,r),i}(ee);function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function _r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cr(t,e){return Cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Cr(t,e)}function Dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Br(t);if(e){var o=Br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mr(this,n)}}function Mr(t,e){return!e||"object"!==Tr(e)&&"function"!=typeof e?Ar(t):e}function Ar(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Br(t){return Br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Br(t)}function Ur(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ir=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cr(t,e)}(i,t);var e,n,r,o=Dr(i);function i(){var t;_r(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ur(Ar(t=o.call.apply(o,[this].concat(n))),"priority",100),Ur(Ar(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"I":return Ie(be,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return mt(function(t,e){ft(2,arguments);var n=yt(t),r=lt(e),o=Ot(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,n))}}],n&&Rr(e.prototype,n),r&&Rr(e,r),i}(ee);function Hr(t){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(t)}function Wr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fr(t,e){return Fr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Fr(t,e)}function qr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zr(t);if(e){var o=zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lr(this,n)}}function Lr(t,e){return!e||"object"!==Hr(e)&&"function"!=typeof e?Nr(t):e}function Nr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zr(t){return zr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zr(t)}function Qr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $r=[31,28,31,30,31,30,31,31,30,31,30,31],Xr=[31,29,31,30,31,30,31,31,30,31,30,31],Gr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fr(t,e)}(i,t);var e,n,r,o=qr(i);function i(){var t;Wr(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Qr(Nr(t=o.call.apply(o,[this].concat(n))),"priority",90),Qr(Nr(t),"subPriority",1),Qr(Nr(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"d":return Ie(pe,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){var n=Ne(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=Xr[r]:e>=1&&e<=$r[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}],n&&Yr(e.prototype,n),r&&Yr(e,r),i}(ee);function Jr(t){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(t)}function Kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zr(t,e){return Zr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Zr(t,e)}function to(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ro(t);if(e){var o=ro(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(t,e){return!e||"object"!==Jr(e)&&"function"!=typeof e?no(t):e}function no(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ro(t){return ro=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ro(t)}function oo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var io=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zr(t,e)}(i,t);var e,n,r,o=to(i);function i(){var t;Kr(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return oo(no(t=o.call.apply(o,[this].concat(n))),"priority",90),oo(no(t),"subpriority",1),oo(no(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return Ie(de,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return Ne(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}],n&&Vr(e.prototype,n),r&&Vr(e,r),i}(ee);function uo(t,e,n){var r,o,i,u,a,c,l,f;ft(2,arguments);var s=dt(),y=lt(null!==(r=null!==(o=null!==(i=null!==(u=null==n?void 0:n.weekStartsOn)&&void 0!==u?u:null==n||null===(a=n.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:s.weekStartsOn)&&void 0!==o?o:null===(l=s.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=yt(t),d=lt(e),b=p.getUTCDay(),h=d%7,m=(h+7)%7,v=(m<y?7:0)+d-b;return p.setUTCDate(p.getUTCDate()+v),p}function ao(t){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(t)}function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fo(t,e){return fo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},fo(t,e)}function so(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bo(t);if(e){var o=bo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}function yo(t,e){return!e||"object"!==ao(e)&&"function"!=typeof e?po(t):e}function po(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bo(t){return bo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bo(t)}function ho(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fo(t,e)}(i,t);var e,n,r,o=so(i);function i(){var t;co(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ho(po(t=o.call.apply(o,[this].concat(n))),"priority",90),ho(po(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=uo(t,n,r)).setUTCHours(0,0,0,0),t}}],n&&lo(e.prototype,n),r&&lo(e,r),i}(ee);function vo(t){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(t)}function go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oo(t,e){return Oo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Oo(t,e)}function Po(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ko(t);if(e){var o=ko(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jo(this,n)}}function jo(t,e){return!e||"object"!==vo(e)&&"function"!=typeof e?So(t):e}function So(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ko(t){return ko=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ko(t)}function xo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Eo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oo(t,e)}(i,t);var e,n,r,o=Po(i);function i(){var t;go(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xo(So(t=o.call.apply(o,[this].concat(n))),"priority",90),xo(So(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Ue(Ye(e.length,t),o);case"eo":return Ue(n.ordinalNumber(t,{unit:"day"}),o);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=uo(t,n,r)).setUTCHours(0,0,0,0),t}}],n&&wo(e.prototype,n),r&&wo(e,r),i}(ee);function To(t){return To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(t)}function _o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ro(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Co(t,e){return Co=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Co(t,e)}function Do(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Bo(t);if(e){var o=Bo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(t,e){return!e||"object"!==To(e)&&"function"!=typeof e?Ao(t):e}function Ao(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bo(t){return Bo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bo(t)}function Uo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Io=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Co(t,e)}(i,t);var e,n,r,o=Do(i);function i(){var t;_o(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Uo(Ao(t=o.call.apply(o,[this].concat(n))),"priority",90),Uo(Ao(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Ue(Ye(e.length,t),o);case"co":return Ue(n.ordinalNumber(t,{unit:"day"}),o);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=uo(t,n,r)).setUTCHours(0,0,0,0),t}}],n&&Ro(e.prototype,n),r&&Ro(e,r),i}(ee);function Ho(t){return Ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(t)}function Wo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fo(t,e){return Fo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Fo(t,e)}function qo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zo(t);if(e){var o=zo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lo(this,n)}}function Lo(t,e){return!e||"object"!==Ho(e)&&"function"!=typeof e?No(t):e}function No(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zo(t){return zo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zo(t)}function Qo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $o=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fo(t,e)}(i,t);var e,n,r,o=qo(i);function i(){var t;Wo(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Qo(No(t=o.call.apply(o,[this].concat(n))),"priority",90),Qo(No(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Ye(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Ue(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return Ue(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ue(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return Ue(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return t=function(t,e){ft(2,arguments);var n=lt(e);n%7==0&&(n-=7);var r=1,o=yt(t),i=o.getUTCDay(),u=((n%7+7)%7<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}(t,n),t.setUTCHours(0,0,0,0),t}}],n&&Yo(e.prototype,n),r&&Yo(e,r),i}(ee);function Xo(t){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(t)}function Go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ko(t,e){return Ko=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ko(t,e)}function Vo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ei(t);if(e){var o=ei(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zo(this,n)}}function Zo(t,e){return!e||"object"!==Xo(e)&&"function"!=typeof e?ti(t):e}function ti(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ei(t){return ei=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ei(t)}function ni(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ri=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ko(t,e)}(i,t);var e,n,r,o=Vo(i);function i(){var t;Go(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ni(ti(t=o.call.apply(o,[this].concat(n))),"priority",80),ni(ti(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(qe(n),0,0,0),t}}],n&&Jo(e.prototype,n),r&&Jo(e,r),i}(ee);function oi(t){return oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(t)}function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ai(t,e){return ai=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ai(t,e)}function ci(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=si(t);if(e){var o=si(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return li(this,n)}}function li(t,e){return!e||"object"!==oi(e)&&"function"!=typeof e?fi(t):e}function fi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function si(t){return si=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},si(t)}function yi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ai(t,e)}(i,t);var e,n,r,o=ci(i);function i(){var t;ii(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yi(fi(t=o.call.apply(o,[this].concat(n))),"priority",80),yi(fi(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(qe(n),0,0,0),t}}],n&&ui(e.prototype,n),r&&ui(e,r),i}(ee);function di(t){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(t)}function bi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mi(t,e){return mi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},mi(t,e)}function vi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Oi(t);if(e){var o=Oi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gi(this,n)}}function gi(t,e){return!e||"object"!==di(e)&&"function"!=typeof e?wi(t):e}function wi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oi(t){return Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Oi(t)}function Pi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ji=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mi(t,e)}(i,t);var e,n,r,o=vi(i);function i(){var t;bi(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Pi(wi(t=o.call.apply(o,[this].concat(n))),"priority",80),Pi(wi(t),"incompatibleTokens",["a","b","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(qe(n),0,0,0),t}}],n&&hi(e.prototype,n),r&&hi(e,r),i}(ee);function Si(t){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(t)}function ki(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ei(t,e){return Ei=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ei(t,e)}function Ti(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ci(t);if(e){var o=Ci(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _i(this,n)}}function _i(t,e){return!e||"object"!==Si(e)&&"function"!=typeof e?Ri(t):e}function Ri(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ci(t){return Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ci(t)}function Di(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ei(t,e)}(i,t);var e,n,r,o=Ti(i);function i(){var t;ki(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Di(Ri(t=o.call.apply(o,[this].concat(n))),"priority",70),Di(Ri(t),"incompatibleTokens",["H","K","k","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"h":return Ie(ge,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return r&&n<12?t.setUTCHours(n+12,0,0,0):r||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}],n&&xi(e.prototype,n),r&&xi(e,r),i}(ee);function Ai(t){return Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(t)}function Bi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ii(t,e){return Ii=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ii(t,e)}function Hi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fi(t);if(e){var o=Fi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wi(this,n)}}function Wi(t,e){return!e||"object"!==Ai(e)&&"function"!=typeof e?Yi(t):e}function Yi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fi(t){return Fi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Fi(t)}function qi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Li=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ii(t,e)}(i,t);var e,n,r,o=Hi(i);function i(){var t;Bi(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qi(Yi(t=o.call.apply(o,[this].concat(n))),"priority",70),qi(Yi(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"H":return Ie(he,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}],n&&Ui(e.prototype,n),r&&Ui(e,r),i}(ee);function Ni(t){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(t)}function zi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $i(t,e){return $i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},$i(t,e)}function Xi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ki(t);if(e){var o=Ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gi(this,n)}}function Gi(t,e){return!e||"object"!==Ni(e)&&"function"!=typeof e?Ji(t):e}function Ji(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ki(t){return Ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ki(t)}function Vi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$i(t,e)}(i,t);var e,n,r,o=Xi(i);function i(){var t;zi(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vi(Ji(t=o.call.apply(o,[this].concat(n))),"priority",70),Vi(Ji(t),"incompatibleTokens",["h","H","k","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"K":return Ie(ve,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}],n&&Qi(e.prototype,n),r&&Qi(e,r),i}(ee);function tu(t){return tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tu(t)}function eu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ru(t,e){return ru=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ru(t,e)}function ou(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=au(t);if(e){var o=au(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iu(this,n)}}function iu(t,e){return!e||"object"!==tu(e)&&"function"!=typeof e?uu(t):e}function uu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function au(t){return au=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},au(t)}function cu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ru(t,e)}(i,t);var e,n,r,o=ou(i);function i(){var t;eu(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cu(uu(t=o.call.apply(o,[this].concat(n))),"priority",70),cu(uu(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"k":return Ie(me,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){var r=n<=24?n%24:n;return t.setUTCHours(r,0,0,0),t}}],n&&nu(e.prototype,n),r&&nu(e,r),i}(ee);function fu(t){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(t)}function su(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pu(t,e){return pu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},pu(t,e)}function du(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mu(t);if(e){var o=mu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bu(this,n)}}function bu(t,e){return!e||"object"!==fu(e)&&"function"!=typeof e?hu(t):e}function hu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mu(t){return mu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},mu(t)}function vu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pu(t,e)}(i,t);var e,n,r,o=du(i);function i(){var t;su(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return vu(hu(t=o.call.apply(o,[this].concat(n))),"priority",60),vu(hu(t),"incompatibleTokens",["t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"m":return Ie(we,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}],n&&yu(e.prototype,n),r&&yu(e,r),i}(ee);function wu(t){return wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(t)}function Ou(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ju(t,e){return ju=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ju(t,e)}function Su(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Eu(t);if(e){var o=Eu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ku(this,n)}}function ku(t,e){return!e||"object"!==wu(e)&&"function"!=typeof e?xu(t):e}function xu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Eu(t){return Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Eu(t)}function Tu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}(i,t);var e,n,r,o=Su(i);function i(){var t;Ou(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Tu(xu(t=o.call.apply(o,[this].concat(n))),"priority",50),Tu(xu(t),"incompatibleTokens",["t","T"]),t}return e=i,n=[{key:"parse",value:function(t,e,n){switch(e){case"s":return Ie(Oe,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Ye(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}],n&&Pu(e.prototype,n),r&&Pu(e,r),i}(ee);function Ru(t){return Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(t)}function Cu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Du(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mu(t,e){return Mu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Mu(t,e)}function Au(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Iu(t);if(e){var o=Iu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bu(this,n)}}function Bu(t,e){return!e||"object"!==Ru(e)&&"function"!=typeof e?Uu(t):e}function Uu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iu(t){return Iu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Iu(t)}function Hu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mu(t,e)}(i,t);var e,n,r,o=Au(i);function i(){var t;Cu(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Hu(Uu(t=o.call.apply(o,[this].concat(n))),"priority",30),Hu(Uu(t),"incompatibleTokens",["t","T"]),t}return e=i,(n=[{key:"parse",value:function(t,e){return Ue(Ye(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}])&&Du(e.prototype,n),r&&Du(e,r),i}(ee);function Yu(t){return Yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(t)}function Fu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lu(t,e){return Lu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Lu(t,e)}function Nu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$u(t);if(e){var o=$u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zu(this,n)}}function zu(t,e){return!e||"object"!==Yu(e)&&"function"!=typeof e?Qu(t):e}function Qu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $u(t){return $u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$u(t)}function Xu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lu(t,e)}(i,t);var e,n,r,o=Nu(i);function i(){var t;Fu(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Xu(Qu(t=o.call.apply(o,[this].concat(n))),"priority",10),Xu(Qu(t),"incompatibleTokens",["t","T","x"]),t}return e=i,(n=[{key:"parse",value:function(t,e){switch(e){case"X":return He(Ce,t);case"XX":return He(De,t);case"XXXX":return He(Me,t);case"XXXXX":return He(Be,t);default:return He(Ae,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}])&&qu(e.prototype,n),r&&qu(e,r),i}(ee);function Ju(t){return Ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(t)}function Ku(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zu(t,e){return Zu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Zu(t,e)}function ta(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ra(t);if(e){var o=ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ea(this,n)}}function ea(t,e){return!e||"object"!==Ju(e)&&"function"!=typeof e?na(t):e}function na(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ra(t){return ra=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ra(t)}function oa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ia=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zu(t,e)}(i,t);var e,n,r,o=ta(i);function i(){var t;Ku(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return oa(na(t=o.call.apply(o,[this].concat(n))),"priority",10),oa(na(t),"incompatibleTokens",["t","T","X"]),t}return e=i,(n=[{key:"parse",value:function(t,e){switch(e){case"x":return He(Ce,t);case"xx":return He(De,t);case"xxxx":return He(Me,t);case"xxxxx":return He(Be,t);default:return He(Ae,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}])&&Vu(e.prototype,n),r&&Vu(e,r),i}(ee);function ua(t){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(t)}function aa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function la(t,e){return la=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},la(t,e)}function fa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pa(t);if(e){var o=pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sa(this,n)}}function sa(t,e){return!e||"object"!==ua(e)&&"function"!=typeof e?ya(t):e}function ya(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pa(t){return pa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pa(t)}function da(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ba=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&la(t,e)}(i,t);var e,n,r,o=fa(i);function i(){var t;aa(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return da(ya(t=o.call.apply(o,[this].concat(n))),"priority",40),da(ya(t),"incompatibleTokens","*"),t}return e=i,(n=[{key:"parse",value:function(t){return We(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}])&&ca(e.prototype,n),r&&ca(e,r),i}(ee);function ha(t){return ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ha(t)}function ma(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function va(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ga(t,e){return ga=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ga(t,e)}function wa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ja(t);if(e){var o=ja(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oa(this,n)}}function Oa(t,e){return!e||"object"!==ha(e)&&"function"!=typeof e?Pa(t):e}function Pa(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ja(t){return ja=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ja(t)}function Sa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ka=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ga(t,e)}(i,t);var e,n,r,o=wa(i);function i(){var t;ma(this,i);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Sa(Pa(t=o.call.apply(o,[this].concat(n))),"priority",20),Sa(Pa(t),"incompatibleTokens","*"),t}return e=i,(n=[{key:"parse",value:function(t){return We(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}])&&va(e.prototype,n),r&&va(e,r),i}(ee);new se,new tn,new sn,new On,new Cn,new Fn,new Kn,new ar,new mr,new Er,new Ir,new Gr,new io,new mo,new Eo,new Io,new $o,new ri,new pi,new ji,new Mi,new Li,new Zi,new lu,new gu,new _u,new Wu,new Gu,new ia,new ba,new ka;function xa(t,e){const[n,r]=u.default.useState();u.default.useEffect((()=>{const n=(t=>{try{const e=localStorage.getItem(t);return"string"==typeof e?JSON.parse(e):void 0}catch{return}})(t);r(null==n?"function"==typeof e?e():e:n)}),[e,t]);return[n,u.default.useCallback((e=>{r((n=>{let r=e;"function"==typeof e&&(r=e(n));try{localStorage.setItem(t,JSON.stringify(r))}catch{}return r}))}),[t])]}const Ea={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Ta=u.default.createContext(Ea);function _a({theme:t,...e}){return u.default.createElement(Ta.Provider,a({value:t},e))}const Ra="undefined"==typeof window;function Ca(t,e){return t.store.state.isFetching?e.active:"error"===t.store.state.status?e.danger:"success"===t.store.state.status?e.success:e.gray}function Da(t,e,n={}){return u.default.forwardRef((({style:r,...o},i)=>{const a=u.default.useContext(Ta),c=Object.entries(n).reduce(((t,[e,n])=>function(t){const[e,n]=u.default.useState((()=>{if("undefined"!=typeof window)return window.matchMedia&&window.matchMedia(t).matches}));return u.default.useEffect((()=>{if("undefined"!=typeof window){if(!window.matchMedia)return;const e=window.matchMedia(t),r=({matches:t})=>n(t);return e.addListener(r),()=>{e.removeListener(r)}}}),[e,t,n]),e}(e)?{...t,..."function"==typeof n?n(o,a):n}:t),{});return u.default.createElement(t,{...o,style:{..."function"==typeof e?e(o,a):e,...r,...c},ref:i})}))}function Ma(){const t=u.default.useRef(!1),e=u.default.useCallback((()=>t.current),[]);return u.default[Ra?"useEffect":"useLayoutEffect"]((()=>(t.current=!0,()=>{t.current=!1})),[]),e}function Aa(t){const e=Ma(),[n,r]=u.default.useState(t);return[n,u.default.useCallback((t=>{var n;n=()=>{e()&&r(t)},Promise.resolve().then(n).catch((t=>setTimeout((()=>{throw t}))))}),[e])]}const Ba=Da("div",((t,e)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:e.background,color:e.foreground})),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),Ua=Da("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(t,e)=>({borderTop:`2px solid ${e.gray}`})}),Ia=Da("button",((t,e)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:e.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:t.disabled?".5":void 0,cursor:"pointer"}))),Ha=Da("code",{fontSize:".9em"}),Wa=Da("div",{fontFamily:"Menlo, monospace",fontSize:".7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Ya=Da("span",{color:"white"}),Fa=Da("button",{cursor:"pointer",color:"white"}),qa=Da("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),La=Da("span",((t,e)=>({color:e.danger}))),Na=Da("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),za=Da("span",{color:"grey",fontSize:".7em"}),Qa=({expanded:t,style:e={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${e.transform||""}`,...e}},"▶");const $a=({handleEntry:t,label:e,value:n,subEntries:r=[],subEntryPages:o=[],type:u,expanded:a=!1,toggleExpanded:c,pageSize:l,renderer:f})=>{const[s,y]=i.useState([]),[p,d]=i.useState(void 0);return i.createElement(Wa,null,o.length?i.createElement(i.Fragment,null,i.createElement(qa,{onClick:()=>c()},i.createElement(Qa,{expanded:a})," ",e," ",i.createElement(za,null,"iterable"===String(u).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),a?1===o.length?i.createElement(Na,null,r.map(((e,n)=>t(e)))):i.createElement(Na,null,o.map(((e,n)=>i.createElement("div",{key:n},i.createElement(Wa,null,i.createElement(Fa,{onClick:()=>y((t=>t.includes(n)?t.filter((t=>t!==n)):[...t,n]))},i.createElement(Qa,{expanded:a})," [",n*l," ..."," ",n*l+l-1,"]"),s.includes(n)?i.createElement(Na,null,e.map((e=>t(e)))):null))))):null):"function"===u?i.createElement(i.Fragment,null,i.createElement(Xa,{renderer:f,label:i.createElement("button",{onClick:()=>{d(n())},style:{appearance:"none",border:"0",background:"transparent"}},i.createElement(Ya,null,e)," 🔄"," "),value:p,defaultExpanded:{}})):i.createElement(i.Fragment,null,i.createElement(Ya,null,e,":")," ",i.createElement(La,null,(t=>{const e=Object.getOwnPropertyNames(Object(t)),n="bigint"==typeof t?`${t.toString()}n`:t;return JSON.stringify(n,e)})(n))))};function Xa({value:t,defaultExpanded:e,renderer:n=$a,pageSize:r=100,...o}){const[u,c]=i.useState(Boolean(e)),l=i.useCallback((()=>c((t=>!t))),[]);let f=typeof t,s=[];const y=t=>{const n=!0===e?{[t.label]:!0}:e?.[t.label];return{...t,defaultExpanded:n}};Array.isArray(t)?(f="array",s=t.map(((t,e)=>y({label:e.toString(),value:t})))):null!==t&&"object"==typeof t&&function(t){return Symbol.iterator in t}(t)&&"function"==typeof t[Symbol.iterator]?(f="Iterable",s=Array.from(t,((t,e)=>y({label:e.toString(),value:t})))):"object"==typeof t&&null!==t&&(f="object",s=Object.entries(t).map((([t,e])=>y({label:t,value:e}))));const p=function(t,e){if(e<1)return[];let n=0;const r=[];for(;n<t.length;)r.push(t.slice(n,n+e)),n+=e;return r}(s,r);return n({handleEntry:e=>i.createElement(Xa,a({key:e.label,value:t,renderer:n},o,e)),type:f,subEntries:s,subEntryPages:p,value:t,expanded:u,toggleExpanded:l,pageSize:r,...o})}const Ga="undefined"==typeof window;function Ja(t){return u.default.createElement("div",a({},t,{style:{...t.style??{},display:"flex",alignItems:"center",flexDirection:"column",fontSize:"0.8rem",fontWeight:"bolder",lineHeight:"1"}}),u.default.createElement("div",{style:{letterSpacing:"-0.05rem"}},"TANSTACK"),u.default.createElement("div",{style:{backgroundImage:"linear-gradient(to right, var(--tw-gradient-stops))","--tw-gradient-from":"#84cc16","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)","--tw-gradient-to":"#10b981",WebkitBackgroundClip:"text",color:"transparent",letterSpacing:"0.1rem",marginRight:"-0.2rem"}},"ROUTER"))}const Ka=u.default.forwardRef((function(t,e){const{isOpen:n=!0,setIsOpen:r,handleDragStart:o,router:i,...c}=t,l=u.default.useContext(at),f=i??l?.router;!function(t,e){if(!t)throw new Error("Invariant failed")}(f),function(t,e){it(ct().store,t,e)}();const[s,y]=xa("tanstackRouterDevtoolsActiveRouteId",""),[p,d]=xa("tanstackRouterDevtoolsActiveMatchId","");u.default.useEffect((()=>{d("")}),[s]);const b=Object.values(f.store.state.matchCache)?.find((t=>t.match.id===p))?.match??f.store.state.currentMatches?.find((t=>t.route.id===s)),h=function(t,e=[t=>t]){return t.map(((t,e)=>[t,e])).sort((([t,n],[r,o])=>{for(const n of e){const e=n(t),o=n(r);if(void 0===e){if(void 0===o)continue;return 1}if(e!==o)return e>o?1:-1}return n-o})).map((([t])=>t))}(Object.keys(f.store.state.matchCache).filter((t=>f.store.state.matchCache[t].gc>Date.now())).map((t=>f.store.state.matchCache[t])),[t=>t.match.store.state.isFetching?-1:1,t=>-t.match.store.state.updatedAt]);return u.default.createElement(_a,{theme:Ea},u.default.createElement(Ba,a({ref:e,className:"TanStackRouterDevtoolsPanel"},c),u.default.createElement("style",{dangerouslySetInnerHTML:{__html:`\n\n .TanStackRouterDevtoolsPanel * {\n scrollbar-color: ${Ea.backgroundAlt} ${Ea.gray};\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar, .TanStackRouterDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-track, .TanStackRouterDevtoolsPanel scrollbar-track {\n background: ${Ea.backgroundAlt};\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-thumb, .TanStackRouterDevtoolsPanel scrollbar-thumb {\n background: ${Ea.gray};\n border-radius: .5em;\n border: 3px solid ${Ea.backgroundAlt};\n }\n\n .TanStackRouterDevtoolsPanel table {\n width: 100%;\n }\n\n .TanStackRouterDevtoolsPanel table tr {\n border-bottom: 2px dotted rgba(255, 255, 255, .2);\n }\n\n .TanStackRouterDevtoolsPanel table tr:last-child {\n border-bottom: none\n }\n\n .TanStackRouterDevtoolsPanel table td {\n padding: .25rem .5rem;\n border-right: 2px dotted rgba(255, 255, 255, .05);\n }\n\n .TanStackRouterDevtoolsPanel table td:last-child {\n border-right: none\n }\n\n `}}),u.default.createElement("div",{style:{position:"absolute",left:0,top:0,width:"100%",height:"4px",marginBottom:"-4px",cursor:"row-resize",zIndex:1e5},onMouseDown:o}),u.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Ea.grayAlt}`,display:"flex",flexDirection:"column"}},u.default.createElement("div",{style:{display:"flex",justifyContent:"start",gap:"1rem",padding:"1rem",alignItems:"center",background:Ea.backgroundAlt}},u.default.createElement(Ja,{"aria-hidden":!0}),u.default.createElement("div",{style:{fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},u.default.createElement("span",{style:{fontWeight:100}},"Devtools"))),u.default.createElement("div",{style:{overflowY:"auto",flex:"1"}},u.default.createElement("div",{style:{padding:".5em"}},u.default.createElement(Xa,{label:"Router",value:f,defaultExpanded:{}})))),u.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Ea.grayAlt}`,display:"flex",flexDirection:"column"}},u.default.createElement("div",{style:{padding:".5em",background:Ea.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Active Matches"),f.store.state.currentMatches.map(((t,e)=>u.default.createElement("div",{key:t.route.id||e,role:"button","aria-label":`Open match details for ${t.route.id}`,onClick:()=>y(s===t.route.id?"":t.route.id),style:{display:"flex",borderBottom:`solid 1px ${Ea.grayAlt}`,cursor:"pointer",alignItems:"center",background:t===b?"rgba(255,255,255,.1)":void 0}},u.default.createElement("div",{style:{flex:"0 0 auto",width:"1.3rem",height:"1.3rem",marginLeft:".25rem",background:Ca(t,Ea),alignItems:"center",justifyContent:"center",fontWeight:"bold",borderRadius:".25rem",transition:"all .2s ease-out"}}),u.default.createElement(Ha,{style:{padding:".5em"}},`${t.id}`)))),f.store.state.pendingMatches?.length?u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{style:{marginTop:"2rem",padding:".5em",background:Ea.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Pending Matches"),f.store.state.pendingMatches?.map(((t,e)=>u.default.createElement("div",{key:t.route.id||e,role:"button","aria-label":`Open match details for ${t.route.id}`,onClick:()=>y(s===t.route.id?"":t.route.id),style:{display:"flex",borderBottom:`solid 1px ${Ea.grayAlt}`,cursor:"pointer",background:t===b?"rgba(255,255,255,.1)":void 0}},u.default.createElement("div",{style:{flex:"0 0 auto",width:"1.3rem",height:"1.3rem",marginLeft:".25rem",background:Ca(t,Ea),alignItems:"center",justifyContent:"center",fontWeight:"bold",borderRadius:".25rem",transition:"all .2s ease-out"}}),u.default.createElement(Ha,{style:{padding:".5em"}},`${t.id}`))))):null,h.length?u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{style:{marginTop:"2rem",padding:".5em",background:Ea.backgroundAlt,position:"sticky",top:0,bottom:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"space-between"}},u.default.createElement("div",null,"Match Cache"),u.default.createElement(Ia,{onClick:()=>{f.store.setState((t=>t.matchCache={}))}},"Clear")),h.map(((t,e)=>{const{match:n,gc:r}=t;return u.default.createElement("div",{key:n.id||e,role:"button","aria-label":`Open match details for ${n.id}`,onClick:()=>d(p===n.id?"":n.id),style:{display:"flex",borderBottom:`solid 1px ${Ea.grayAlt}`,cursor:"pointer",background:n===b?"rgba(255,255,255,.1)":void 0}},u.default.createElement("div",{style:{display:"flex",flexDirection:"column",padding:".5rem",gap:".3rem"}},u.default.createElement("div",{style:{display:"flex",alignItems:"center",gap:".5rem"}},u.default.createElement("div",{style:{flex:"0 0 auto",width:"1.3rem",height:"1.3rem",background:Ca(n,Ea),alignItems:"center",justifyContent:"center",fontWeight:"bold",borderRadius:".25rem",transition:"all .2s ease-out"}}),u.default.createElement(Ha,null,`${n.id}`)),u.default.createElement("span",{style:{fontSize:".7rem",opacity:".5",lineHeight:1}},"Expires"," ",function(t,e,n){var r,o,i;ft(2,arguments);var u=dt(),a=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:u.locale)&&void 0!==r?r:Ht;if(!a.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var c=ht(t,e);if(isNaN(c))throw new RangeError("Invalid time value");var l,f,s=Wt(Yt(n),{addSuffix:Boolean(null==n?void 0:n.addSuffix),comparison:c});c>0?(l=yt(e),f=yt(t)):(l=yt(t),f=yt(e));var y,p=String(null!==(i=null==n?void 0:n.roundingMethod)&&void 0!==i?i:"round");if("floor"===p)y=Math.floor;else if("ceil"===p)y=Math.ceil;else{if("round"!==p)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");y=Math.round}var d,b=f.getTime()-l.getTime(),h=b/Ft,m=bt(f)-bt(l),v=(b-m)/Ft,g=null==n?void 0:n.unit;if("second"===(d=g?String(g):h<1?"second":h<60?"minute":h<qt?"hour":v<Lt?"day":v<Nt?"month":"year")){var w=y(b/1e3);return a.formatDistance("xSeconds",w,s)}if("minute"===d){var O=y(h);return a.formatDistance("xMinutes",O,s)}if("hour"===d){var P=y(h/60);return a.formatDistance("xHours",P,s)}if("day"===d){var j=y(v/qt);return a.formatDistance("xDays",j,s)}if("month"===d){var S=y(v/Lt);return 12===S&&"month"!==g?a.formatDistance("xYears",1,s):a.formatDistance("xMonths",S,s)}if("year"===d){var k=y(v/Nt);return a.formatDistance("xYears",k,s)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(new Date(r),new Date,{addSuffix:!0}))))}))):null),b?u.default.createElement(Ua,null,u.default.createElement("div",{style:{padding:".5em",background:Ea.backgroundAlt,position:"sticky",top:0,bottom:0,zIndex:1}},"Match Details"),u.default.createElement("div",null,u.default.createElement("table",null,u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",{style:{opacity:".5"}},"ID"),u.default.createElement("td",null,u.default.createElement(Ha,{style:{lineHeight:"1.8em"}},JSON.stringify(b.id,null,2)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{opacity:".5"}},"Status"),u.default.createElement("td",null,b.store.state.status)),u.default.createElement("tr",null,u.default.createElement("td",{style:{opacity:".5"}},"Invalid"),u.default.createElement("td",null,b.getIsInvalid().toString())),u.default.createElement("tr",null,u.default.createElement("td",{style:{opacity:".5"}},"Last Updated"),u.default.createElement("td",null,b.store.state.updatedAt?new Date(b.store.state.updatedAt).toLocaleTimeString():"N/A"))))),u.default.createElement("div",{style:{background:Ea.backgroundAlt,padding:".5em",position:"sticky",top:0,bottom:0,zIndex:1}},"Actions"),u.default.createElement("div",{style:{padding:"0.5em"}},u.default.createElement(Ia,{type:"button",onClick:()=>{b.invalidate()},style:{background:Ea.warning,color:Ea.inputTextColor}},"Invalidate")," ",u.default.createElement(Ia,{type:"button",onClick:()=>b.load(),style:{background:Ea.gray}},"Reload")),u.default.createElement("div",{style:{background:Ea.backgroundAlt,padding:".5em",position:"sticky",top:0,bottom:0,zIndex:1}},"Explorer"),u.default.createElement("div",{style:{padding:".5em"}},u.default.createElement(Xa,{label:"Match",value:b,defaultExpanded:{}}))):null,u.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Ea.grayAlt}`,display:"flex",flexDirection:"column"}},u.default.createElement("div",{style:{padding:".5em",background:Ea.backgroundAlt,position:"sticky",top:0,bottom:0,zIndex:1}},"All Loader Data"),u.default.createElement("div",{style:{padding:".5em"}},Object.keys(ot(f.store.state.currentMatches)?.store.state.loaderData||{}).length?u.default.createElement(Xa,{value:ot(f.store.state.currentMatches)?.store.state.loaderData||{},defaultExpanded:Object.keys(ot(f.store.state.currentMatches)?.store.state.loaderData||{}).reduce(((t,e)=>(t[e]={},t)),{})}):u.default.createElement("em",{style:{opacity:.5}},"{ }")),u.default.createElement("div",{style:{padding:".5em",background:Ea.backgroundAlt,position:"sticky",top:0,bottom:0,zIndex:1}},"Search Params"),u.default.createElement("div",{style:{padding:".5em"}},Object.keys(ot(f.store.state.currentMatches)?.store.state.search||{}).length?u.default.createElement(Xa,{value:ot(f.store.state.currentMatches)?.store.state.search||{},defaultExpanded:Object.keys(ot(f.store.state.currentMatches)?.store.state.search||{}).reduce(((t,e)=>(t[e]={},t)),{})}):u.default.createElement("em",{style:{opacity:.5}},"{ }")))))}));t.TanStackRouterDevtools=function({initialIsOpen:t,panelProps:e={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:i="footer",router:c}){const l=u.default.useRef(null),f=u.default.useRef(null),[s,y]=xa("tanstackRouterDevtoolsOpen",t),[p,d]=xa("tanstackRouterDevtoolsHeight",null),[b,h]=Aa(!1),[m,v]=Aa(!1),g=Ma();u.default.useEffect((()=>{h(s??!1)}),[s,b,h]),u.default.useEffect((()=>{const t=f.current;if(t){const e=()=>{t&&b&&(t.style.visibility="visible")},n=()=>{t&&!b&&(t.style.visibility="hidden")};return t.addEventListener("transitionstart",e),t.addEventListener("transitionend",n),()=>{t.removeEventListener("transitionstart",e),t.removeEventListener("transitionend",n)}}}),[b]),u.default[Ga?"useEffect":"useLayoutEffect"]((()=>{if(b){const t=l.current?.parentElement?.style.paddingBottom,e=()=>{const t=f.current?.getBoundingClientRect().height;l.current?.parentElement&&(l.current.parentElement.style.paddingBottom=`${t}px`)};if(e(),"undefined"!=typeof window)return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),l.current?.parentElement&&"string"==typeof t&&(l.current.parentElement.style.paddingBottom=t)}}}),[b]);const{style:w={},...O}=e,{style:P={},onClick:j,...S}=n,{style:k={},onClick:x,...E}=r;return g()?u.default.createElement(i,{ref:l,className:"TanStackRouterDevtools"},u.default.createElement(_a,{theme:Ea},u.default.createElement(Ka,a({ref:f},O,{router:c,style:{position:"fixed",bottom:"0",right:"0",zIndex:99999,width:"100%",height:p??500,maxHeight:"90%",boxShadow:"0 0 20px rgba(0,0,0,.3)",borderTop:`1px solid ${Ea.gray}`,transformOrigin:"top",visibility:s?"visible":"hidden",...w,...m?{transition:"none"}:{transition:"all .2s ease"},...b?{opacity:1,pointerEvents:"all",transform:"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:"translateY(15px) scale(1.02)"}},isOpen:b,setIsOpen:y,handleDragStart:t=>((t,e)=>{if(0!==e.button)return;v(!0);const n=t?.getBoundingClientRect().height??0,r=e.pageY,o=t=>{const e=r-t.pageY,o=n+e;d(o),y(!(o<70))},i=()=>{v(!1),document.removeEventListener("mousemove",o),document.removeEventListener("mouseUp",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)})(f.current,t)})),b?u.default.createElement(Ia,a({type:"button","aria-label":"Close TanStack Router Devtools"},S,{onClick:t=>{y(!1),j&&j(t)},style:{position:"fixed",zIndex:99999,margin:".5em",bottom:0,..."top-right"===o?{right:"0"}:"top-left"===o?{left:"0"}:"bottom-right"===o?{right:"0"}:{left:"0"},...P}}),"Close"):null),b?null:u.default.createElement("button",a({type:"button"},E,{"aria-label":"Open TanStack Router Devtools",onClick:t=>{y(!0),x&&x(t)},style:{appearance:"none",background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...k}}),u.default.createElement(Ja,{"aria-hidden":!0}))):null},t.TanStackRouterDevtoolsPanel=Ka,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
33
|
+
function s(e,t=(e=>e),r){return n.useSyncExternalStoreWithSelector(e.subscribe,(()=>e.state),(()=>e.state),t,r?u:void 0)}function u(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}
|
|
34
|
+
/**
|
|
35
|
+
* react-router
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) TanStack
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
41
|
+
*
|
|
42
|
+
* @license MIT
|
|
43
|
+
*/const c=o.createContext(null);function f(){const e=o.useContext(c);return function(e,t){if(e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch{}}}(!e,"useRouter must be used inside a <Router> component!"),e.router}function m(e,t){const[n,r]=l.default.useState();l.default.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,l.default.useCallback((t=>{r((n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r}))}),[e])]}const p={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},g=l.default.createContext(p);function b({theme:e,...t}){return l.default.createElement(g.Provider,i({value:e},t))}const y="undefined"==typeof window;function h(e,t){return"pending"===e.store.state.status?t.active:"error"===e.store.state.status?t.danger:"success"===e.store.state.status?t.success:t.gray}function E(e,t,n={}){return l.default.forwardRef((({style:r,...a},o)=>{const i=l.default.useContext(g),d=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=l.default.useState((()=>{if("undefined"!=typeof window)return window.matchMedia&&window.matchMedia(e).matches}));return l.default.useEffect((()=>{if("undefined"!=typeof window){if(!window.matchMedia)return;const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,i):n}:e),{});return l.default.createElement(e,{...a,style:{..."function"==typeof t?t(a,i):t,...r,...d},ref:o})}))}function v(){const e=l.default.useRef(!1),t=l.default.useCallback((()=>e.current),[]);return l.default[y?"useEffect":"useLayoutEffect"]((()=>(e.current=!0,()=>{e.current=!1})),[]),t}function x(e){const t=v(),[n,r]=l.default.useState(e);return[n,l.default.useCallback((e=>{var n;n=()=>{t()&&r(e)},Promise.resolve().then(n).catch((e=>setTimeout((()=>{throw e}))))}),[t])]}const k=E("div",((e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground})),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),w=E("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})}),S=E("button",((e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}))),R=E("code",{fontSize:".9em"}),O=E("div",{fontFamily:"Menlo, monospace",fontSize:".7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),D=E("span",{color:"white"}),j=E("button",{cursor:"pointer",color:"white"}),C=E("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),T=E("span",((e,t)=>({color:t.danger}))),A=E("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),P=E("span",{color:"grey",fontSize:".7em"}),I=({expanded:e,style:t={}})=>o.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${e?90:0}deg) ${t.transform||""}`,...t}},"▶");const z=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:a=[],type:l,expanded:i=!1,toggleExpanded:d,pageSize:s,renderer:u})=>{const[c,f]=o.useState([]),[m,p]=o.useState(void 0);return o.createElement(O,null,a.length?o.createElement(o.Fragment,null,o.createElement(C,{onClick:()=>d()},o.createElement(I,{expanded:i})," ",t," ",o.createElement(P,null,"iterable"===String(l).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?1===a.length?o.createElement(A,null,r.map(((t,n)=>e(t)))):o.createElement(A,null,a.map(((t,n)=>o.createElement("div",{key:n},o.createElement(O,null,o.createElement(j,{onClick:()=>f((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},o.createElement(I,{expanded:i})," [",n*s," ..."," ",n*s+s-1,"]"),c.includes(n)?o.createElement(A,null,t.map((t=>e(t)))):null))))):null):"function"===l?o.createElement(o.Fragment,null,o.createElement(M,{renderer:u,label:o.createElement("button",{onClick:()=>{p(n())},style:{appearance:"none",border:"0",background:"transparent"}},o.createElement(D,null,t)," 🔄"," "),value:m,defaultExpanded:{}})):o.createElement(o.Fragment,null,o.createElement(D,null,t,":")," ",o.createElement(T,null,(e=>{const t=Object.getOwnPropertyNames(Object(e)),n="bigint"==typeof e?`${e.toString()}n`:e;return JSON.stringify(n,t)})(n))))};function M({value:e,defaultExpanded:t,renderer:n=z,pageSize:r=100,...a}){const[l,d]=o.useState(Boolean(t)),s=o.useCallback((()=>d((e=>!e))),[]);let u=typeof e,c=[];const f=e=>{const n=!0===t?{[e.label]:!0}:t?.[e.label];return{...e,defaultExpanded:n}};var m;Array.isArray(e)?(u="array",c=e.map(((e,t)=>f({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(m=e,Symbol.iterator in m)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",c=Array.from(e,((e,t)=>f({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(u="object",c=Object.entries(e).map((([e,t])=>f({label:e,value:t}))));const p=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(c,r);return n({handleEntry:t=>o.createElement(M,i({key:t.label,value:e,renderer:n},a,t)),type:u,subEntries:c,subEntryPages:p,value:e,expanded:l,toggleExpanded:s,pageSize:r,...a})}const L="undefined"==typeof window;function $(e){return l.default.createElement("div",i({},e,{style:{...e.style??{},display:"flex",alignItems:"center",flexDirection:"column",fontSize:"0.8rem",fontWeight:"bolder",lineHeight:"1"}}),l.default.createElement("div",{style:{letterSpacing:"-0.05rem"}},"TANSTACK"),l.default.createElement("div",{style:{backgroundImage:"linear-gradient(to right, var(--tw-gradient-stops))","--tw-gradient-from":"#84cc16","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)","--tw-gradient-to":"#10b981",WebkitBackgroundClip:"text",color:"transparent",letterSpacing:"0.1rem",marginRight:"-0.2rem"}},"ROUTER"))}const B=l.default.forwardRef((function(e,t){const{isOpen:n=!0,setIsOpen:r,handleDragStart:a,router:o,...u}=e,g=l.default.useContext(c),y=o??g?.router;!function(e,t){if(!e)throw new Error("Invariant failed")}(y),function(e,t){s(f().store,e,t)}();const[E,v]=m("tanstackRouterDevtoolsActiveRouteId",""),[x,O]=m("tanstackRouterDevtoolsActiveMatchId","");l.default.useEffect((()=>{O("")}),[E]);const D=l.default.useMemo((()=>[...Object.values(y.store.state.currentMatches),...Object.values(y.store.state.pendingMatches??[])]),[y.store.state.currentMatches,y.store.state.pendingMatches]),j=D?.find((e=>e.id===x))||D?.find((e=>e.route.id===E));return l.default.createElement(b,{theme:p},l.default.createElement(k,i({ref:t,className:"TanStackRouterDevtoolsPanel"},u),l.default.createElement("style",{dangerouslySetInnerHTML:{__html:`\n\n .TanStackRouterDevtoolsPanel * {\n scrollbar-color: ${p.backgroundAlt} ${p.gray};\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar, .TanStackRouterDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-track, .TanStackRouterDevtoolsPanel scrollbar-track {\n background: ${p.backgroundAlt};\n }\n\n .TanStackRouterDevtoolsPanel *::-webkit-scrollbar-thumb, .TanStackRouterDevtoolsPanel scrollbar-thumb {\n background: ${p.gray};\n border-radius: .5em;\n border: 3px solid ${p.backgroundAlt};\n }\n\n .TanStackRouterDevtoolsPanel table {\n width: 100%;\n }\n\n .TanStackRouterDevtoolsPanel table tr {\n border-bottom: 2px dotted rgba(255, 255, 255, .2);\n }\n\n .TanStackRouterDevtoolsPanel table tr:last-child {\n border-bottom: none\n }\n\n .TanStackRouterDevtoolsPanel table td {\n padding: .25rem .5rem;\n border-right: 2px dotted rgba(255, 255, 255, .05);\n }\n\n .TanStackRouterDevtoolsPanel table td:last-child {\n border-right: none\n }\n\n `}}),l.default.createElement("div",{style:{position:"absolute",left:0,top:0,width:"100%",height:"4px",marginBottom:"-4px",cursor:"row-resize",zIndex:1e5},onMouseDown:a}),l.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${p.grayAlt}`,display:"flex",flexDirection:"column"}},l.default.createElement("div",{style:{display:"flex",justifyContent:"start",gap:"1rem",padding:"1rem",alignItems:"center",background:p.backgroundAlt}},l.default.createElement($,{"aria-hidden":!0}),l.default.createElement("div",{style:{fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},l.default.createElement("span",{style:{fontWeight:100}},"Devtools"))),l.default.createElement("div",{style:{overflowY:"auto",flex:"1"}},l.default.createElement("div",{style:{padding:".5em"}},l.default.createElement(M,{label:"Router",value:y,defaultExpanded:{}})))),l.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${p.grayAlt}`,display:"flex",flexDirection:"column"}},l.default.createElement("div",{style:{padding:".5em",background:p.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Active Matches"),y.store.state.currentMatches.map(((e,t)=>l.default.createElement("div",{key:e.route.id||t,role:"button","aria-label":`Open match details for ${e.route.id}`,onClick:()=>v(E===e.route.id?"":e.route.id),style:{display:"flex",borderBottom:`solid 1px ${p.grayAlt}`,cursor:"pointer",alignItems:"center",background:e===j?"rgba(255,255,255,.1)":void 0}},l.default.createElement("div",{style:{flex:"0 0 auto",width:"1.3rem",height:"1.3rem",marginLeft:".25rem",background:h(e,p),alignItems:"center",justifyContent:"center",fontWeight:"bold",borderRadius:".25rem",transition:"all .2s ease-out"}}),l.default.createElement(R,{style:{padding:".5em"}},`${e.id}`)))),y.store.state.pendingMatches?.length?l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{style:{marginTop:"2rem",padding:".5em",background:p.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Pending Matches"),y.store.state.pendingMatches?.map(((e,t)=>l.default.createElement("div",{key:e.route.id||t,role:"button","aria-label":`Open match details for ${e.route.id}`,onClick:()=>v(E===e.route.id?"":e.route.id),style:{display:"flex",borderBottom:`solid 1px ${p.grayAlt}`,cursor:"pointer",background:e===j?"rgba(255,255,255,.1)":void 0}},l.default.createElement("div",{style:{flex:"0 0 auto",width:"1.3rem",height:"1.3rem",marginLeft:".25rem",background:h(e,p),alignItems:"center",justifyContent:"center",fontWeight:"bold",borderRadius:".25rem",transition:"all .2s ease-out"}}),l.default.createElement(R,{style:{padding:".5em"}},`${e.id}`))))):null),j?l.default.createElement(w,null,l.default.createElement("div",{style:{padding:".5em",background:p.backgroundAlt,position:"sticky",top:0,bottom:0,zIndex:1}},"Match Details"),l.default.createElement("div",null,l.default.createElement("table",null,l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:{opacity:".5"}},"ID"),l.default.createElement("td",null,l.default.createElement(R,{style:{lineHeight:"1.8em"}},JSON.stringify(j.id,null,2)))),l.default.createElement("tr",null,l.default.createElement("td",{style:{opacity:".5"}},"Status"),l.default.createElement("td",null,j.store.state.status)),l.default.createElement("tr",null,l.default.createElement("td",{style:{opacity:".5"}},"Last Updated"),l.default.createElement("td",null,j.store.state.updatedAt?new Date(j.store.state.updatedAt).toLocaleTimeString():"N/A"))))),l.default.createElement("div",{style:{background:p.backgroundAlt,padding:".5em",position:"sticky",top:0,bottom:0,zIndex:1}},"Actions"),l.default.createElement("div",{style:{padding:"0.5em"}},l.default.createElement(S,{type:"button",onClick:()=>j.load(),style:{background:p.gray}},"Reload")),l.default.createElement("div",{style:{background:p.backgroundAlt,padding:".5em",position:"sticky",top:0,bottom:0,zIndex:1}},"Explorer"),l.default.createElement("div",{style:{padding:".5em"}},l.default.createElement(M,{label:"Match",value:j,defaultExpanded:{}}))):null,l.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${p.grayAlt}`,display:"flex",flexDirection:"column"}},l.default.createElement("div",{style:{padding:".5em",background:p.backgroundAlt,position:"sticky",top:0,bottom:0,zIndex:1}},"Search Params"),l.default.createElement("div",{style:{padding:".5em"}},Object.keys(d(y.store.state.currentMatches)?.store.state.search||{}).length?l.default.createElement(M,{value:d(y.store.state.currentMatches)?.store.state.search||{},defaultExpanded:Object.keys(d(y.store.state.currentMatches)?.store.state.search||{}).reduce(((e,t)=>(e[t]={},e)),{})}):l.default.createElement("em",{style:{opacity:.5}},"{ }")))))}));e.TanStackRouterDevtools=function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:a="bottom-left",containerElement:o="footer",router:d}){const s=l.default.useRef(null),u=l.default.useRef(null),[c,f]=m("tanstackRouterDevtoolsOpen",e),[g,y]=m("tanstackRouterDevtoolsHeight",null),[h,E]=x(!1),[k,w]=x(!1),R=v();l.default.useEffect((()=>{E(c??!1)}),[c,h,E]),l.default.useEffect((()=>{const e=u.current;if(e){const t=()=>{e&&h&&(e.style.visibility="visible")},n=()=>{e&&!h&&(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[h]),l.default[L?"useEffect":"useLayoutEffect"]((()=>{if(h){const e=s.current?.parentElement?.style.paddingBottom,t=()=>{const e=u.current?.getBoundingClientRect().height;s.current?.parentElement&&(s.current.parentElement.style.paddingBottom=`${e}px`)};if(t(),"undefined"!=typeof window)return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),s.current?.parentElement&&"string"==typeof e&&(s.current.parentElement.style.paddingBottom=e)}}}),[h]);const{style:O={},...D}=t,{style:j={},onClick:C,...T}=n,{style:A={},onClick:P,...I}=r;return R()?l.default.createElement(o,{ref:s,className:"TanStackRouterDevtools"},l.default.createElement(b,{theme:p},l.default.createElement(B,i({ref:u},D,{router:d,style:{position:"fixed",bottom:"0",right:"0",zIndex:99999,width:"100%",height:g??500,maxHeight:"90%",boxShadow:"0 0 20px rgba(0,0,0,.3)",borderTop:`1px solid ${p.gray}`,transformOrigin:"top",visibility:c?"visible":"hidden",...O,...k?{transition:"none"}:{transition:"all .2s ease"},...h?{opacity:1,pointerEvents:"all",transform:"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:"translateY(15px) scale(1.02)"}},isOpen:h,setIsOpen:f,handleDragStart:e=>((e,t)=>{if(0!==t.button)return;w(!0);const n=e?.getBoundingClientRect().height??0,r=t.pageY,a=e=>{const t=r-e.pageY,a=n+t;y(a),f(!(a<70))},o=()=>{w(!1),document.removeEventListener("mousemove",a),document.removeEventListener("mouseUp",o)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",o)})(u.current,e)})),h?l.default.createElement(S,i({type:"button","aria-label":"Close TanStack Router Devtools"},T,{onClick:e=>{f(!1),C&&C(e)},style:{position:"fixed",zIndex:99999,margin:".5em",bottom:0,..."top-right"===a?{right:"0"}:"top-left"===a?{left:"0"}:"bottom-right"===a?{right:"0"}:{left:"0"},...j}}),"Close"):null),h?null:l.default.createElement("button",i({type:"button"},I,{"aria-label":"Open TanStack Router Devtools",onClick:e=>{f(!0),P&&P(e)},style:{appearance:"none",background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...A}}),l.default.createElement($,{"aria-hidden":!0}))):null},e.TanStackRouterDevtoolsPanel=B,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
34
44
|
//# sourceMappingURL=index.production.js.map
|