From 7810ac7a5b5e589276d6baeeb6b239b19ca7fe53 Mon Sep 17 00:00:00 2001 From: Dziad Borowy Date: Wed, 30 Aug 2023 23:34:22 +0100 Subject: [PATCH] add remaining functions --- docs-src/api-table/ApiTable.svelte | 4 +- docs-src/components/utils/Utils.css | 4 + docs-src/components/utils/Utils.svelte | 27 +- .../components/utils/fn-align-item.svelte | 48 + docs-src/components/utils/fn-animate.svelte | 21 +- docs-src/components/utils/fn-debounce.svelte | 31 + docs-src/components/utils/fn-deep-copy.svelte | 20 + docs-src/components/utils/fn-empty.svelte | 39 + .../components/utils/fn-format-date.svelte | 16 + docs-src/components/utils/fn-fuzzy.svelte | 26 + .../utils/fn-get-mouse-x.svelte.svelte | 19 + .../utils/fn-get-mouse-xy.svelte.svelte | 19 + .../utils/fn-get-mouse-y.svelte.svelte | 19 + docs-src/components/utils/fn-guid.svelte | 17 + .../utils/fn-is-in-scrollable.svelte | 21 + docs-src/components/utils/fn-is-mobile.svelte | 17 + docs-src/components/utils/fn-pluck.svelte | 20 + .../components/utils/fn-round-amount.svelte | 16 + docs-src/components/utils/fn-throttle.svelte | 47 + docs-src/components/utils/fn-time-ago.svelte | 23 + docs/docs.css | 569 +- docs/docs.css.map | 1 + docs/docs.js | 67982 +++++++++++++++- docs/docs.js.map | 7 + docs/index.html | 2 +- docs/ui.css | 2295 +- docs/ui.css.map | 1 + 27 files changed, 71165 insertions(+), 146 deletions(-) create mode 100644 docs-src/components/utils/fn-align-item.svelte create mode 100644 docs-src/components/utils/fn-debounce.svelte create mode 100644 docs-src/components/utils/fn-deep-copy.svelte create mode 100644 docs-src/components/utils/fn-empty.svelte create mode 100644 docs-src/components/utils/fn-format-date.svelte create mode 100644 docs-src/components/utils/fn-fuzzy.svelte create mode 100644 docs-src/components/utils/fn-get-mouse-x.svelte.svelte create mode 100644 docs-src/components/utils/fn-get-mouse-xy.svelte.svelte create mode 100644 docs-src/components/utils/fn-get-mouse-y.svelte.svelte create mode 100644 docs-src/components/utils/fn-guid.svelte create mode 100644 docs-src/components/utils/fn-is-in-scrollable.svelte create mode 100644 docs-src/components/utils/fn-is-mobile.svelte create mode 100644 docs-src/components/utils/fn-pluck.svelte create mode 100644 docs-src/components/utils/fn-round-amount.svelte create mode 100644 docs-src/components/utils/fn-throttle.svelte create mode 100644 docs-src/components/utils/fn-time-ago.svelte create mode 100644 docs/docs.css.map create mode 100644 docs/docs.js.map create mode 100644 docs/ui.css.map diff --git a/docs-src/api-table/ApiTable.svelte b/docs-src/api-table/ApiTable.svelte index aa3fbcf9..c5357ae6 100644 --- a/docs-src/api-table/ApiTable.svelte +++ b/docs-src/api-table/ApiTable.svelte @@ -36,8 +36,8 @@ function buildType (prop) { if (!prop.type) prop.type = '-'; const types = (Array.isArray(prop.type) ? prop.type : [prop.type]).map(t => `${t}`); res.push(types.join(' | ')); - if (prop.required) res.push('required'); - if (prop.default) res.push(`
(defaults to ${prop.default})`); + if (typeof prop.required !== 'undefined') res.push('required'); + if (typeof prop.default !== 'undefined') res.push(`
(defaults to ${prop.default})`); return res.join(' '); } diff --git a/docs-src/components/utils/Utils.css b/docs-src/components/utils/Utils.css index 3e18b017..c5699438 100644 --- a/docs-src/components/utils/Utils.css +++ b/docs-src/components/utils/Utils.css @@ -1,3 +1,7 @@ +.utilities { + padding-bottom: 3rem; +} + .utilities h3.util { font-size: 1.1rem; color: var(--ui-color-accent); diff --git a/docs-src/components/utils/Utils.svelte b/docs-src/components/utils/Utils.svelte index 0a65bdc6..f6f600e7 100644 --- a/docs-src/components/utils/Utils.svelte +++ b/docs-src/components/utils/Utils.svelte @@ -2,7 +2,7 @@

Utility properties


-
+
@@ -10,8 +10,6 @@

- - - - +
- +docs-src/components/utils/fn-guid.svelte

* @@ -46,4 +41,20 @@ import FocusableSelector from './prop-focusable-selector.svelte'; import PrefersDark from './prop-prefers-dark.svelte'; import Animate from './fn-animate.svelte'; import Blink from './fn-blink.svelte'; +import DeepCopy from './fn-deep-copy.svelte'; +import Debounce from './fn-debounce.svelte'; +import Throttle from './fn-throttle.svelte'; +import Empty from './fn-empty.svelte'; +import Fuzzy from './fn-fuzzy.svelte'; +import Guid from './fn-guid.svelte'; +import GetMouseX from './fn-get-mouse-x.svelte'; +import GetMouseY from './fn-get-mouse-y.svelte'; +import GetMouseXY from './fn-get-mouse-xy.svelte'; +import IsMobile from './fn-is-mobile.svelte'; +import Pluck from './fn-pluck.svelte'; +import RoundAmount from './fn-round-amount.svelte'; +import FormatDate from './fn-format-date.svelte'; +import TimeAgo from './fn-time-ago.svelte'; +import AlignItem from './fn-align-item.svelte'; +import IsInScrollable from './fn-is-in-scrollable.svelte'; diff --git a/docs-src/components/utils/fn-align-item.svelte b/docs-src/components/utils/fn-align-item.svelte new file mode 100644 index 00000000..e54cea94 --- /dev/null +++ b/docs-src/components/utils/fn-align-item.svelte @@ -0,0 +1,48 @@ +

alignItem (config)

+

Aligns an element to another element, + ensuring that the aligned element remains within the viewport. +

+
    +
  • config - an object with the configuration (see below). +
  • Returns position - whether the aligned item is above (top) or below (bottom) the target. +
+ + + + + + + diff --git a/docs-src/components/utils/fn-animate.svelte b/docs-src/components/utils/fn-animate.svelte index 52f7156d..0ff4db10 100644 --- a/docs-src/components/utils/fn-animate.svelte +++ b/docs-src/components/utils/fn-animate.svelte @@ -2,19 +2,26 @@

Animates an element from one state to another. Shortcut & wrapper for the native javascript animation.

-
+ +

Returns a promise which resolves when the animation finishes.

+ + diff --git a/docs-src/components/utils/fn-deep-copy.svelte b/docs-src/components/utils/fn-deep-copy.svelte new file mode 100644 index 00000000..a79efb22 --- /dev/null +++ b/docs-src/components/utils/fn-deep-copy.svelte @@ -0,0 +1,20 @@ +

deepCopy(object)

+

This is just an alias for an oddly-named native function: structuredClone.

+
    +
  • object - any object or array to clone. +
+ + + + diff --git a/docs-src/components/utils/fn-empty.svelte b/docs-src/components/utils/fn-empty.svelte new file mode 100644 index 00000000..12a6b461 --- /dev/null +++ b/docs-src/components/utils/fn-empty.svelte @@ -0,0 +1,39 @@ +

empty(value)

+

Similar to PHP's empty - returns true if a value is empty.

+
    +
  • value - any data type. +
+ +

Empty will return true if the value is one of the following:

+
    +
  • undefined +
  • null +
  • empty string +
  • empty array +
  • empty object +
+ + + + + diff --git a/docs-src/components/utils/fn-format-date.svelte b/docs-src/components/utils/fn-format-date.svelte new file mode 100644 index 00000000..bb0eb0c8 --- /dev/null +++ b/docs-src/components/utils/fn-format-date.svelte @@ -0,0 +1,16 @@ +

formatDate (date)

+

Converts date to a string in the format: YYYY-MM-DD HH:mm.

+ + + + + diff --git a/docs-src/components/utils/fn-fuzzy.svelte b/docs-src/components/utils/fn-fuzzy.svelte new file mode 100644 index 00000000..43c44a28 --- /dev/null +++ b/docs-src/components/utils/fn-fuzzy.svelte @@ -0,0 +1,26 @@ +

fuzzy (haystack = '', needle = '')

+

Fuzzy finds if haystack contains characters from the needle in the same order.

+
    +
  • haystack - a string to be searched in. +
  • needle - a string to search for. +
+ +

It's useful for filtering lists of items by a search string.

+ + + + + diff --git a/docs-src/components/utils/fn-get-mouse-x.svelte.svelte b/docs-src/components/utils/fn-get-mouse-x.svelte.svelte new file mode 100644 index 00000000..c1f14c35 --- /dev/null +++ b/docs-src/components/utils/fn-get-mouse-x.svelte.svelte @@ -0,0 +1,19 @@ +

getMouseX (event)

+

Returns the mouse X position. Event is standardised across platforms (touch & pointer)

+ + + + + diff --git a/docs-src/components/utils/fn-get-mouse-xy.svelte.svelte b/docs-src/components/utils/fn-get-mouse-xy.svelte.svelte new file mode 100644 index 00000000..c12d6a8b --- /dev/null +++ b/docs-src/components/utils/fn-get-mouse-xy.svelte.svelte @@ -0,0 +1,19 @@ +

getMouseY (event)

+

Returns the mouse XY position. Event is standardised across platforms (touch & pointer)

+ + + + + diff --git a/docs-src/components/utils/fn-get-mouse-y.svelte.svelte b/docs-src/components/utils/fn-get-mouse-y.svelte.svelte new file mode 100644 index 00000000..fef5065c --- /dev/null +++ b/docs-src/components/utils/fn-get-mouse-y.svelte.svelte @@ -0,0 +1,19 @@ +

getMouseY (event)

+

Returns the mouse Y position. Event is standardised across platforms (touch & pointer)

+ + + + + diff --git a/docs-src/components/utils/fn-guid.svelte b/docs-src/components/utils/fn-guid.svelte new file mode 100644 index 00000000..330796c4 --- /dev/null +++ b/docs-src/components/utils/fn-guid.svelte @@ -0,0 +1,17 @@ +

guid ()

+

Generates a globally unique identifier.

+ + + + + diff --git a/docs-src/components/utils/fn-is-in-scrollable.svelte b/docs-src/components/utils/fn-is-in-scrollable.svelte new file mode 100644 index 00000000..ac287ccd --- /dev/null +++ b/docs-src/components/utils/fn-is-in-scrollable.svelte @@ -0,0 +1,21 @@ +

isInScrollable (node)

+

Checks whether the given node is inside a scrollable element.

+

This function is useful when determining whether a swipe event should be allowed + to start on a given element.
+ If an element is inside a scrollable element, the swipe event will not start, + allowing the browser to trigger the normal scrolling. +

+ + + + + diff --git a/docs-src/components/utils/fn-is-mobile.svelte b/docs-src/components/utils/fn-is-mobile.svelte new file mode 100644 index 00000000..3a36e09f --- /dev/null +++ b/docs-src/components/utils/fn-is-mobile.svelte @@ -0,0 +1,17 @@ +

isMobile ()

+

Checks if the current platform is mobile.

+ + + + + diff --git a/docs-src/components/utils/fn-pluck.svelte b/docs-src/components/utils/fn-pluck.svelte new file mode 100644 index 00000000..c10eeb7d --- /dev/null +++ b/docs-src/components/utils/fn-pluck.svelte @@ -0,0 +1,20 @@ +

pluck (object, props)

+

Creates a new object with only the plucked properties from the original object..

+
    +
  • object - object to pluck from. +
  • props - an array of property names. +
+ + + + + diff --git a/docs-src/components/utils/fn-round-amount.svelte b/docs-src/components/utils/fn-round-amount.svelte new file mode 100644 index 00000000..8c3db4ee --- /dev/null +++ b/docs-src/components/utils/fn-round-amount.svelte @@ -0,0 +1,16 @@ +

roundAmount (value, precision = 2)

+

Rounds a number to 2 decimal places (by default).

+ + + + + diff --git a/docs-src/components/utils/fn-throttle.svelte b/docs-src/components/utils/fn-throttle.svelte new file mode 100644 index 00000000..9ee0e064 --- /dev/null +++ b/docs-src/components/utils/fn-throttle.svelte @@ -0,0 +1,47 @@ +

throttle(fn, timeout = 300)

+

The "throttled" function will only be called once every timeout milliseconds.

+
    +
  • fn - function to debounce. +
  • timeout - milliseconds to wait before calling fn. +
+ + +

+ This is slightly different to debounce but serves a similar purpose - performance optimization.
+ It's useful when a heavy event handler function would be to costly to call on every event. +

+

One caveat is that the throttled function will be called once every x miliseconds, so if an event would stop firing + before the function is called the next time - the function will not be called at the end. E.g.: +

+
    +
  • we would like to update a position of a tooltip when the window is resizing. +
  • we don't want to call the function on every resize event, because it's heavy and resize events are fired with every pixel of the window size change. +
  • we also don't want to call the function only once at the end of the resize, because the tooltip would be in the wrong place for the whole duration of the resize. +
  • throttle is a good option here, but the caveat mentioned above may cause the tooltip to be in the wrong place at the end of the resize. +
  • in this case it is a good idea to use both: throttle and debounce: throttle the function to be called every 300ms, but also debounce it to be called at the end of the resize. +
+ + + + + + + diff --git a/docs-src/components/utils/fn-time-ago.svelte b/docs-src/components/utils/fn-time-ago.svelte new file mode 100644 index 00000000..ca903e46 --- /dev/null +++ b/docs-src/components/utils/fn-time-ago.svelte @@ -0,0 +1,23 @@ +

timeAgo (date, now)

+

Converts date to a string describing how long time ago was the given date.

+ + + + + diff --git a/docs/docs.css b/docs/docs.css index fd568991..ff8749dc 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -1 +1,568 @@ -.api-table{height:unset;overflow-y:visible;overflow-x:auto;overscroll-behavior-y:unset}.api-table table{min-width:900px}.api-table tr td{vertical-align:top;padding-block:.5rem}.api-table tr td:first-child,.api-table tr th:first-child{width:200px}.api-table tr td:nth-child(2),.api-table tr th:nth-child(2){width:200px}.api-table tr td:last-child,.api-table tr th:last-child{min-width:400px}body,html{margin:0;background-color:var(--ui-color-background);color:var(--ui-color-text);--sidebar-width:220px}@font-face{font-family:'Prime Light';src:url(prime_light-webfont.woff2) format('woff2'),url(prime_light-webfont.woff) format('woff');font-weight:light;font-style:normal}a{color:inherit}a:hover{text-decoration-color:var(--ui-color-accent);text-decoration-thickness:2px;text-underline-offset:.3rem}main{padding:0 2rem 8rem;margin-left:var(--sidebar-width)}h1,h2,h3{font-weight:500;margin:2rem 0 1.2rem;width:100%}h1:first-child,h2:first-child,h3:first-of-type{margin-top:0}p{line-height:1.7;margin-block:1.5rem;max-width:120ch}p b{font-weight:700;letter-spacing:.5px}ul{line-height:1.7;margin:0;padding-left:2rem}ul li{margin-block:.5rem}p+ul{margin-top:-1rem}em{color:var(--ui-color-accent);font-style:normal}hr{width:100%;height:0;border:0;border-top:1px solid var(--ui-color-border-2);margin:3em 0 2em}.docs-overflow-box{border:2px dotted var(--ui-color-accent);background-color:var(--ui-color-background);padding:1em;overflow:hidden;z-index:1;position:relative}.docs-buttons-row{display:flex;flex-flow:wrap row;align-items:flex-start;justify-content:flex-start;gap:.5rem;flex-shrink:0}@media (1px <= width <= 700px){main{margin-left:0}}code,main pre[class]{background-color:#1a1a1a;color:#ccc;border-radius:var(--ui-border-radius);font-size:var(--ui-font-s)}code{display:block;width:100%;padding:1em;margin-block:1em;line-height:2;white-space:pre;overflow:auto}code[class*=language-]{padding:0;margin:0}.dark-mode-switch{min-width:7rem;position:fixed;top:.5rem;right:.6rem;z-index:55}aside{border-right:1px solid var(--ui-color-border-2);overflow-y:auto;background:var(--ui-color-background);position:fixed;width:var(--sidebar-width);left:0;top:0;height:100lvh;padding:0 1rem calc(100lvh - 100svh);overscroll-behavior:contain;z-index:60}menu{width:100%;display:flex;flex-flow:column;padding:1rem 0 0;margin:0 0 2rem}menu h3{margin:0 -1rem;padding:var(--ui-margin-m) var(--ui-margin-l);white-space:nowrap;font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:var(--ui-font-xl)}menu h3:not(:first-child){margin-top:var(--ui-margin-l)}menu a{color:var(--ui-color-text);text-decoration:none;display:block;margin:var(--ui-margin-s) 0;padding:var(--ui-margin-m) 1.4rem;border-radius:var(--ui-border-radius);white-space:nowrap;touch-action:manipulation}menu a:hover{background-color:var(--ui-color-highlight-1)}menu a.active{background-color:var(--ui-color-highlight)}.nav-toggler{--ui-button-size:1.1em;position:fixed;left:0;top:.4rem;z-index:65;color:var(--ui-color-text-1);display:none;transform:translateX(10px)}.nav-toggler:hover{color:var(--ui-color-text);background:0 0}@media (1px <= width <= 700px){.nav-toggler{display:flex}.nav-toggler.expanded{transform:translateX(calc(var(--sidebar-width) - 40px))}aside{box-shadow:2px 1px 10px #0006;transform:translateX(calc(var(--sidebar-width) * -1));--sidebar-elastic-padding:80px;width:calc(var(--sidebar-width) + var(--sidebar-elastic-padding));left:calc(var(--sidebar-elastic-padding) * -1);padding-left:calc(var(--sidebar-elastic-padding) + 1rem)}aside.expanded{transform:translateX(0)}.nav-toggler:not(.swiping),aside:not(.swiping){transition:transform .3s cubic-bezier(.5,.2,.5,1.2)}}.banner{height:clamp(100px,40vw,360px);padding-top:60px;display:flex;align-items:flex-start;justify-content:center}.banner a{display:inline-flex;align-items:center;justify-content:center;gap:2vw;margin:auto;padding:0;text-decoration:none}.logo{width:clamp(42px,10vw,160px);height:clamp(42px,10vw,160px);opacity:.9;filter:drop-shadow(0 1px 1px #000)}.logotype{font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:clamp(28px,6vw,90px);font-weight:100;margin:0;padding:0 4px 0 0;display:flex;flex-flow:row;white-space:nowrap;line-height:1;width:auto}.logotype em{font-weight:500}.logotype sub{font-size:var(--ui-font-m);font-weight:300;color:var(--ui-color-text-semi);margin:-1rem 0 0 -63px;width:60px;text-align:right}.banner a:hover .logotype em,.banner a:hover .logotype span{text-decoration:underline;text-decoration-thickness:1px;text-decoration-skip-ink:none;text-underline-offset:8px}.banner a:hover .logotype span{text-decoration-color:var(--ui-color-accent)}.banner a:hover .logotype em{text-decoration-color:var(--ui-color-text)}.footer-links{display:flex;align-items:center;justify-content:center;gap:5vw;margin:6rem 0 0;height:2rem}.footer-links a,.footer-links a:hover{text-decoration:none;height:100%;display:flex;align-items:center;color:var(--ui-color-text-semi);transition:color .1s}.footer-links a:hover{color:var(--ui-color-text)}.footer-links a svg{height:2rem;width:2rem;margin:0}.footer-links a.npm svg{width:5rem}.sticky-block{background:var(--ui-color-background);margin:0;padding:0}.sticky-block>h1,.sticky-block>h2,main>h1,main>h2{font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif;margin:2rem -2rem 1rem;padding:.5rem 100px .5rem 2rem}.prime-light{font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif}.sticky-block>h2,main>h2{font-size:1.8rem;width:auto;border-bottom:1px solid var(--ui-color-border-2);position:sticky;top:0;z-index:50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}main>h2 em{color:var(--ui-color-text-semi);font-size:1.2rem;line-height:1.8rem;margin-left:.5rem;vertical-align:text-top}main>p code,main>ul li code{display:inline;padding:0;margin:0;background:0 0;color:var(--ui-color-accent);font:inherit;white-space:break-spaces}@media (1px <= width <= 700px){.sticky-block>h1,.sticky-block>h2,main>h1,main>h2{padding-left:54px}}.button-demo-props{display:flex;flex-flow:column;align-items:flex-start;justify-content:flex-start;gap:.5rem;width:clamp(300px,600px,100%)}.button-demo-props .input{display:flex;flex-flow:row;width:100%}.button-demo-props .input .label{width:5rem;flex-shrink:0}.button-demo-props .input .input-text-inner{flex:1}.button-demo-props .toggle{display:flex;flex-flow:row;width:100%}.button-demo-props .toggle .label{width:5rem;flex-shrink:0}@media (1px <= width <= 700px){.button-demo-props{width:100%}}.button-toggle-wrapper-wide{width:400px;max-width:100%}.button-toggle-wrapper-wide .button-toggle{width:100%}.group{background:var(--ui-color-background-2);padding:6px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));grid-gap:6px;border-radius:var(--ui-border-radius-m)}.palette-box{padding:10px 0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:calc(var(--ui-border-radius-m) - 3px);background-color:var(--ui-color-background-2)}.icons{margin-bottom:2em}.icon-block{float:left;width:128px;height:128px;margin:0 1em 1em 0;display:flex;flex-flow:column;align-items:stretch;justify-content:stretch;background-color:var(--ui-color-background-semi);padding:0 10px 10px;border-radius:5px;border:1px solid var(--ui-color-border)}.icon-block-icon{flex:1;display:flex;align-items:center;justify-content:center}.icon-block-icon svg{width:32px;height:32px}.icon-block-name{height:20px;text-align:center;overflow-wrap:break-word;font-size:var(--ui-font-s)}.div{border:1px dashed red;height:100px;width:200px;display:inline-grid;place-items:center;margin:1rem 1rem 1rem 0;-webkit-user-select:none;user-select:none}.docs-menu-align-right{padding:2rem 0;border:1px dashed var(--ui-color-accent);text-align:right}.notification-center-header{margin-bottom:1rem;display:flex;flex-flow:row;align-items:center;justify-content:flex-start;gap:2rem}.notification-center-header h2{display:inline-block;width:auto;padding:0;margin:0}.prop-row{padding:1rem 0;display:flex;align-items:center;justify-content:flex-start;gap:1rem}.panel p{margin:0}.tooltip-box{display:inline-block;margin:10px 0 0;line-height:2.4em;padding:1em;border:1px solid #ccc;min-width:6em;text-align:center}.tooltip-html h1,.tooltip-html p{margin:0}.tooltip-html b{color:var(--ui-color-accent)}.tooltip-html a:hover{text-decoration:none}.split-wrap{width:400px;height:200px;border:1px solid red;display:flex;flex-flow:row;position:relative}.split-wrap-v{flex-flow:column}.split-box{border:1px solid green;flex:1}.min-w{min-width:20px;max-width:220px}.min-h{min-height:50px;max-height:150px}.table-viewport{width:500px;max-width:100%;height:500px;border:2px dashed red;padding:5px}.toggle-box{margin:10px 0 0;line-height:2.4em;display:none}.toggle-box.visible{display:block}.tooltip-box{display:inline-block;margin:10px 0 0;line-height:2.4em;padding:1em;border:1px solid #ccc;min-width:6em;text-align:center}.tooltip-html h1,.tooltip-html p{margin:0}.tooltip-html b{color:var(--ui-color-accent)}.tooltip-html a:hover{text-decoration:none}.utilities h3.util{font-size:1.1rem;color:var(--ui-color-accent);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace} \ No newline at end of file +.api-table { + height: unset; + overflow-y: visible; + overflow-x: auto; + overscroll-behavior-y: unset; +} +.api-table table { min-width: 900px; } + +.api-table tr td { vertical-align: top; padding-block: 0.5rem;} + +.api-table tr th:first-child, +.api-table tr td:first-child { width: 200px; } + +.api-table tr th:nth-child(2), +.api-table tr td:nth-child(2) { width: 200px; } + +.api-table tr th:last-child, +.api-table tr td:last-child { min-width: 400px; } + +html, +body { + margin: 0; + background-color: var(--ui-color-background); + color: var(--ui-color-text); + + --sidebar-width: 220px; +} + + +@font-face { + font-family: 'Prime Light'; + src: url('prime_light-webfont.woff2') format('woff2'), + url('prime_light-webfont.woff') format('woff'); + font-weight: light; + font-style: normal; +} + + +a { color: inherit; } +a:hover { + text-decoration-color: var(--ui-color-accent); + text-decoration-thickness: 2px; + text-underline-offset: 0.3rem; +} + +main { + padding: 0 2rem 8rem; + margin-left: var(--sidebar-width); +} + +h1, +h2, +h3 { font-weight: 500; margin: 2rem 0 1.2rem; width: 100%; } + +h1:first-child, +h2:first-child, +h3:first-of-type { margin-top: 0; } + +p { line-height: 1.7; margin-block: 1.5rem; max-width: 120ch; } +p b { font-weight: 700; letter-spacing: 0.5px; } + +ul { line-height: 1.7; margin: 0; padding-left: 2rem; } +ul li { margin-block: 0.5rem; } + +p + ul { margin-top: -1rem } + +em { color: var(--ui-color-accent); font-style: normal; } + + +hr { + width: 100%; + height: 0; + border: 0; + border-top: 1px solid var(--ui-color-border-2); + margin: 3em 0 2em; +} + + +.docs-overflow-box { + border: 2px dotted var(--ui-color-accent); + background-color: var(--ui-color-background); + padding: 1em; + overflow: hidden; + z-index: 1; + position: relative; +} + +.docs-buttons-row { + display: flex; + flex-flow: wrap row; + align-items: flex-start; + justify-content: flex-start; + gap: 0.5rem; + flex-shrink: 0; +} + + + +@media (1px <= width <= 700px) { + main { margin-left: 0; } +} + +main pre[class], +code { + background-color: #1a1a1a; + color: #ccc; + border-radius: var(--ui-border-radius); + font-size: var(--ui-font-s) +} + +code { + display: block; + width: 100%; + padding: 1em; + margin-block: 1em; + line-height: 2; + white-space: pre; + overflow: auto; +} + +code[class*=language-] { padding: 0; margin: 0; } + +.dark-mode-switch { + min-width: 7rem; + position: fixed; + top: 0.5rem; + right: 0.6rem; + z-index: 55; +} + +aside { + border-right: 1px solid var(--ui-color-border-2); + overflow-y: auto; + background: var(--ui-color-background); + position: fixed; + width: var(--sidebar-width); + + left: 0; + top: 0; + height: 100lvh; + padding: 0 1rem calc(100lvh - 100svh); + + overscroll-behavior: contain; + z-index: 60; +} + +menu { + width: 100%; + display: flex; + flex-flow: column; + padding: 1rem 0 0; + margin: 0 0 2rem; +} + +menu h3 { + margin: 0 -1rem; + padding: var(--ui-margin-m) var(--ui-margin-l); + white-space: nowrap; + font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: var(--ui-font-xl); +} + +menu h3:not(:first-child) { margin-top: var(--ui-margin-l); } + +menu a { + color: var(--ui-color-text); + text-decoration: none; + display: block; + margin: var(--ui-margin-s) 0; + padding: var(--ui-margin-m) 1.4rem; + border-radius: var(--ui-border-radius); + white-space: nowrap; + touch-action: manipulation; +} + +menu a:hover { background-color: var(--ui-color-highlight-1); } +menu a.active { background-color: var(--ui-color-highlight); } + + +.nav-toggler { + --ui-button-size: 1.1em; + position: fixed; + left: 0; + top: 0.4rem; + z-index: 65; + color: var(--ui-color-text-1); + display: none; + transform: translateX(10px); +} +.nav-toggler:hover { color: var(--ui-color-text); background: none; } + + +@media (1px <= width <= 700px) { + .nav-toggler { display: flex; } + .nav-toggler.expanded { transform: translateX(calc(var(--sidebar-width) - 40px)); } + + aside { + box-shadow: 2px 1px 10px #0006; + transform: translateX(calc(var(--sidebar-width) * -1)); + + --sidebar-elastic-padding: 80px; + width: calc(var(--sidebar-width) + var(--sidebar-elastic-padding)); + left: calc(var(--sidebar-elastic-padding) * -1); + padding-left: calc(var(--sidebar-elastic-padding) + 1rem); + + } + aside.expanded { transform: translateX(0); } + + .nav-toggler:not(.swiping), + aside:not(.swiping) { transition: transform .3s cubic-bezier(.5, .2, .5, 1.2); } +} + +.banner { + height: clamp(100px, 40vw, 360px); + padding-top: 60px; + display: flex; + align-items: flex-start; + justify-content: center; +} + +.banner a { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 2vw; + margin: auto; + padding: 0; + text-decoration: none; +} + +.logo { + width: clamp(42px, 10vw, 160px); + height: clamp(42px, 10vw, 160px); + opacity: 0.9; + filter: drop-shadow(0 1px 1px #000); +} + + +.logotype { + font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-size: clamp(28px, 6vw, 90px); + font-weight: 100; + margin: 0; + padding: 0 4px 0 0; + display: flex; + flex-flow: row; + white-space: nowrap; + line-height: 1; + width: auto; +} + +.logotype em { font-weight: 500; } +.logotype sub { + font-size: var(--ui-font-m); + font-weight: 300; + color: var(--ui-color-text-semi); + margin: -1rem 0 0 -63px; + width: 60px; + text-align: right; +} + + +.banner a:hover .logotype span, +.banner a:hover .logotype em { + text-decoration: underline; + text-decoration-thickness: 1px; + text-decoration-skip-ink: none; + text-underline-offset: 8px; +} +.banner a:hover .logotype span { text-decoration-color: var(--ui-color-accent); } +.banner a:hover .logotype em { text-decoration-color: var(--ui-color-text); } + + + + + +.footer-links { + display: flex; + align-items: center; + justify-content: center; + gap: 5vw; + margin: 6rem 0 0; + height: 2rem; +} + +.footer-links a, +.footer-links a:hover { + text-decoration: none; + height: 100%; + display: flex; + align-items: center; + color: var(--ui-color-text-semi); + transition: color 0.1s; +} + +.footer-links a:hover { color: var(--ui-color-text); } + +.footer-links a svg { height: 2rem; width: 2rem; margin: 0; } +.footer-links a.npm svg { width: 5rem; } + + + + +.sticky-block { + background: var(--ui-color-background); + margin: 0; + padding: 0; +} + +main>h1, +main>h2, +.sticky-block>h1, +.sticky-block>h2 { + font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif; + margin: 2rem -2rem 1rem; + padding: 0.5rem 100px 0.5rem 2rem; +} + +.prime-light { + font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif; +} + +/* stylelint-disable-next-line no-descending-specificity */ +main>h2, +.sticky-block>h2 { + font-size: 1.8rem; + width: auto; + border-bottom: 1px solid var(--ui-color-border-2); + position: sticky; + top: 0; + z-index: 50; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + + -webkit-backdrop-filter: blur(15px); + backdrop-filter: blur(15px); +} + + + +/* stylelint-disable-next-line no-descending-specificity */ +main>h2 em { + color: var(--ui-color-text-semi); + font-size: 1.2rem; + line-height: 1.8rem; + margin-left: 0.5rem; + vertical-align: text-top; +} + +main>p code, +main>ul li code { + display: inline; + padding: 0; + margin: 0; + background: none; + color: var(--ui-color-accent); + font: inherit; + white-space: break-spaces; +} + + +@media (1px <= width <= 700px) { + main>h1, + main>h2, + .sticky-block>h1, + .sticky-block>h2 { padding-left: 54px; } +} + +.button-demo-props { + display: flex; + flex-flow: column; + align-items: flex-start; + justify-content: flex-start; + gap: 0.5rem; + width: clamp(300px, 600px, 100%); +} + +.button-demo-props .input { display: flex; flex-flow: row; width: 100%; } +.button-demo-props .input .label { width: 5rem; flex-shrink: 0; } +.button-demo-props .input .input-text-inner { flex: 1; } + + +.button-demo-props .toggle { display: flex; flex-flow: row; width: 100%; } +.button-demo-props .toggle .label { width: 5rem; flex-shrink: 0; } + +@media (1px <= width <= 700px) { + .button-demo-props { + width: 100%; + } +} + +.button-toggle-wrapper-wide { width: 400px; max-width: 100%; } +.button-toggle-wrapper-wide .button-toggle { width: 100%; } + +.group { + background: var(--ui-color-background-2); + padding: 6px; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); + grid-gap: 6px; + border-radius: var(--ui-border-radius-m); +} + +.palette-box { + padding: 10px 0; + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; + border-radius: calc(var(--ui-border-radius-m) - 3px); + background-color: var(--ui-color-background-2); +} + +.icons { margin-bottom: 2em; } + +.icon-block { + float: left; + width: 128px; + height: 128px; + margin: 0 1em 1em 0; + display: flex; + flex-flow: column; + align-items: stretch; + justify-content: stretch; + background-color: var(--ui-color-background-semi); + padding: 0 10px 10px; + border-radius: 5px; + border: 1px solid var(--ui-color-border); +} + +.icon-block-icon { + flex: 1; + display: flex; + align-items: center; + justify-content: center; +} + +.icon-block-icon svg { + width: 32px; + height: 32px; +} + +.icon-block-name { + height: 20px; + text-align: center; + overflow-wrap: break-word; + font-size: var(--ui-font-s) +} + +.div { + border: 1px dashed red; + height: 100px; + width: 200px; + display: inline-grid; + place-items: center; + margin: 1rem 1rem 1rem 0; + -webkit-user-select: none; + user-select: none; +} + + +.docs-menu-align-right { + padding: 2rem 0; + border: 1px dashed var(--ui-color-accent); + text-align: right; +} + +.notification-center-header { + margin-bottom: 1rem; + display: flex; + flex-flow: row; + align-items: center; + justify-content: flex-start; + gap: 2rem; +} + +.notification-center-header h2 { + display: inline-block; + width: auto; + padding: 0; + margin: 0; +} + + +.prop-row { + padding: 1rem 0; + display: flex; + align-items: center; + justify-content: flex-start; + gap: 1rem; +} + +.panel p { margin: 0; } + +.tooltip-box { + display: inline-block; + margin: 10px 0 0; + line-height: 2.4em; + padding: 1em; + border: 1px solid #ccc; + min-width: 6em; + text-align: center; +} + +.tooltip-html h1, +.tooltip-html p { margin: 0; } +.tooltip-html b { color: var(--ui-color-accent); } +.tooltip-html a:hover { text-decoration: none; } + +.split-wrap { + width: 400px; + height: 200px; + border: 1px solid red; + display: flex; + flex-flow: row; + position: relative; +} + +.split-wrap-v { flex-flow: column; } +.split-box { border: 1px solid green; flex: 1; } + +.min-w { min-width: 20px; max-width: 220px; } +.min-h { min-height: 50px; max-height: 150px; } + +.table-viewport { + width: 500px; + max-width: 100%; + height: 500px; + border: 2px dashed red; + padding: 5px; +} + +.toggle-box { + margin: 10px 0 0; + line-height: 2.4em; + display: none; +} + +.toggle-box.visible { + display: block; +} + +.tooltip-box { + display: inline-block; + margin: 10px 0 0; + line-height: 2.4em; + padding: 1em; + border: 1px solid #ccc; + min-width: 6em; + text-align: center; +} + +.tooltip-html h1, +.tooltip-html p { margin: 0; } +.tooltip-html b { color: var(--ui-color-accent); } +.tooltip-html a:hover { text-decoration: none; } + +.utilities { + padding-bottom: 3rem; +} + +.utilities h3.util { + font-size: 1.1rem; + color: var(--ui-color-accent); + font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; +} +/*# sourceMappingURL=docs.css.map */ diff --git a/docs/docs.css.map b/docs/docs.css.map new file mode 100644 index 00000000..abd37d98 --- /dev/null +++ b/docs/docs.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["api-table/ApiTable.css","app/App.css","code-example/CodeExample.css","header/Header.css","nav/Nav.css","pages/start.css","components/button/Button.css","components/button-toggle/ButtonToggle.css","components/color-palette/ColorPalette.css","components/icon/Icon.css","components/menu/Menu.css","components/notification-center/NotificationCenter.css","components/panel/Panel.css","components/popover/Popover.css","components/splitter/Splitter.css","components/table/Table.css","components/toggle/Toggle.css","components/tooltip/Tooltip.css","components/utils/Utils.css"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtBA;AACA;AACA;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxBA;AACA;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"docs.css","sourcesContent":[".api-table {\n\theight: unset;\n\toverflow-y: visible;\n\toverflow-x: auto;\n\toverscroll-behavior-y: unset;\n}\n.api-table table { min-width: 900px; }\n\n.api-table tr td { vertical-align: top; padding-block: 0.5rem;}\n\n.api-table tr th:first-child,\n.api-table tr td:first-child { width: 200px; }\n\n.api-table tr th:nth-child(2),\n.api-table tr td:nth-child(2) { width: 200px; }\n\n.api-table tr th:last-child,\n.api-table tr td:last-child { min-width: 400px; }\n","html,\nbody {\n\tmargin: 0;\n\tbackground-color: var(--ui-color-background);\n\tcolor: var(--ui-color-text);\n\n\t--sidebar-width: 220px;\n}\n\n\n@font-face {\n\tfont-family: 'Prime Light';\n\tsrc: url('prime_light-webfont.woff2') format('woff2'),\n\t\turl('prime_light-webfont.woff') format('woff');\n\tfont-weight: light;\n\tfont-style: normal;\n}\n\n\na { color: inherit; }\na:hover {\n\ttext-decoration-color: var(--ui-color-accent);\n\ttext-decoration-thickness: 2px;\n\ttext-underline-offset: 0.3rem;\n}\n\nmain {\n\tpadding: 0 2rem 8rem;\n\tmargin-left: var(--sidebar-width);\n}\n\nh1,\nh2,\nh3 { font-weight: 500; margin: 2rem 0 1.2rem; width: 100%; }\n\nh1:first-child,\nh2:first-child,\nh3:first-of-type { margin-top: 0; }\n\np { line-height: 1.7; margin-block: 1.5rem; max-width: 120ch; }\np b { font-weight: 700; letter-spacing: 0.5px; }\n\nul { line-height: 1.7; margin: 0; padding-left: 2rem; }\nul li { margin-block: 0.5rem; }\n\np + ul { margin-top: -1rem }\n\nem { color: var(--ui-color-accent); font-style: normal; }\n\n\nhr {\n\twidth: 100%;\n\theight: 0;\n\tborder: 0;\n\tborder-top: 1px solid var(--ui-color-border-2);\n\tmargin: 3em 0 2em;\n}\n\n\n.docs-overflow-box {\n\tborder: 2px dotted var(--ui-color-accent);\n\tbackground-color: var(--ui-color-background);\n\tpadding: 1em;\n\toverflow: hidden;\n\tz-index: 1;\n\tposition: relative;\n}\n\n.docs-buttons-row {\n\tdisplay: flex;\n\tflex-flow: wrap row;\n\talign-items: flex-start;\n\tjustify-content: flex-start;\n\tgap: 0.5rem;\n\tflex-shrink: 0;\n}\n\n\n\n@media (1px <= width <= 700px) {\n\tmain { margin-left: 0; }\n}\n","main pre[class],\ncode {\n\tbackground-color: #1a1a1a;\n\tcolor: #ccc;\n\tborder-radius: var(--ui-border-radius);\n\tfont-size: var(--ui-font-s)\n}\n\ncode {\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 1em;\n\tmargin-block: 1em;\n\tline-height: 2;\n\twhite-space: pre;\n\toverflow: auto;\n}\n\ncode[class*=language-] { padding: 0; margin: 0; }\n",".dark-mode-switch {\n\tmin-width: 7rem;\n\tposition: fixed;\n\ttop: 0.5rem;\n\tright: 0.6rem;\n\tz-index: 55;\n}\n","aside {\n\tborder-right: 1px solid var(--ui-color-border-2);\n\toverflow-y: auto;\n\tbackground: var(--ui-color-background);\n\tposition: fixed;\n\twidth: var(--sidebar-width);\n\n\tleft: 0;\n\ttop: 0;\n\theight: 100lvh;\n\tpadding: 0 1rem calc(100lvh - 100svh);\n\n\toverscroll-behavior: contain;\n\tz-index: 60;\n}\n\nmenu {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-flow: column;\n\tpadding: 1rem 0 0;\n\tmargin: 0 0 2rem;\n}\n\nmenu h3 {\n\tmargin: 0 -1rem;\n\tpadding: var(--ui-margin-m) var(--ui-margin-l);\n\twhite-space: nowrap;\n\tfont-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n\tfont-size: var(--ui-font-xl);\n}\n\nmenu h3:not(:first-child) { margin-top: var(--ui-margin-l); }\n\nmenu a {\n\tcolor: var(--ui-color-text);\n\ttext-decoration: none;\n\tdisplay: block;\n\tmargin: var(--ui-margin-s) 0;\n\tpadding: var(--ui-margin-m) 1.4rem;\n\tborder-radius: var(--ui-border-radius);\n\twhite-space: nowrap;\n\ttouch-action: manipulation;\n}\n\nmenu a:hover { background-color: var(--ui-color-highlight-1); }\nmenu a.active { background-color: var(--ui-color-highlight); }\n\n\n.nav-toggler {\n\t--ui-button-size: 1.1em;\n\tposition: fixed;\n\tleft: 0;\n\ttop: 0.4rem;\n\tz-index: 65;\n\tcolor: var(--ui-color-text-1);\n\tdisplay: none;\n\ttransform: translateX(10px);\n}\n.nav-toggler:hover { color: var(--ui-color-text); background: none; }\n\n\n@media (1px <= width <= 700px) {\n\t.nav-toggler { display: flex; }\n\t.nav-toggler.expanded { transform: translateX(calc(var(--sidebar-width) - 40px)); }\n\n\taside {\n\t\tbox-shadow: 2px 1px 10px #0006;\n\t\ttransform: translateX(calc(var(--sidebar-width) * -1));\n\n\t\t--sidebar-elastic-padding: 80px;\n\t\twidth: calc(var(--sidebar-width) + var(--sidebar-elastic-padding));\n\t\tleft: calc(var(--sidebar-elastic-padding) * -1);\n\t\tpadding-left: calc(var(--sidebar-elastic-padding) + 1rem);\n\n\t}\n\taside.expanded { transform: translateX(0); }\n\n\t.nav-toggler:not(.swiping),\n\taside:not(.swiping) { transition: transform .3s cubic-bezier(.5, .2, .5, 1.2); }\n}\n",".banner {\n\theight: clamp(100px, 40vw, 360px);\n\tpadding-top: 60px;\n\tdisplay: flex;\n\talign-items: flex-start;\n\tjustify-content: center;\n}\n\n.banner a {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 2vw;\n\tmargin: auto;\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n.logo {\n\twidth: clamp(42px, 10vw, 160px);\n\theight: clamp(42px, 10vw, 160px);\n\topacity: 0.9;\n\tfilter: drop-shadow(0 1px 1px #000);\n}\n\n\n.logotype {\n\tfont-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n\tfont-size: clamp(28px, 6vw, 90px);\n\tfont-weight: 100;\n\tmargin: 0;\n\tpadding: 0 4px 0 0;\n\tdisplay: flex;\n\tflex-flow: row;\n\twhite-space: nowrap;\n\tline-height: 1;\n\twidth: auto;\n}\n\n.logotype em { font-weight: 500; }\n.logotype sub {\n\tfont-size: var(--ui-font-m);\n\tfont-weight: 300;\n\tcolor: var(--ui-color-text-semi);\n\tmargin: -1rem 0 0 -63px;\n\twidth: 60px;\n\ttext-align: right;\n}\n\n\n.banner a:hover .logotype span,\n.banner a:hover .logotype em {\n\ttext-decoration: underline;\n\ttext-decoration-thickness: 1px;\n\ttext-decoration-skip-ink: none;\n\ttext-underline-offset: 8px;\n}\n.banner a:hover .logotype span { text-decoration-color: var(--ui-color-accent); }\n.banner a:hover .logotype em { text-decoration-color: var(--ui-color-text); }\n\n\n\n\n\n.footer-links {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 5vw;\n\tmargin: 6rem 0 0;\n\theight: 2rem;\n}\n\n.footer-links a,\n.footer-links a:hover {\n\ttext-decoration: none;\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tcolor: var(--ui-color-text-semi);\n\ttransition: color 0.1s;\n}\n\n.footer-links a:hover { color: var(--ui-color-text); }\n\n.footer-links a svg { height: 2rem; width: 2rem; margin: 0; }\n.footer-links a.npm svg { width: 5rem; }\n\n\n\n\n.sticky-block {\n\tbackground: var(--ui-color-background);\n\tmargin: 0;\n\tpadding: 0;\n}\n\nmain>h1,\nmain>h2,\n.sticky-block>h1,\n.sticky-block>h2 {\n\tfont-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n\tmargin: 2rem -2rem 1rem;\n\tpadding: 0.5rem 100px 0.5rem 2rem;\n}\n\n.prime-light {\n\tfont-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n}\n\n/* stylelint-disable-next-line no-descending-specificity */\nmain>h2,\n.sticky-block>h2 {\n\tfont-size: 1.8rem;\n\twidth: auto;\n\tborder-bottom: 1px solid var(--ui-color-border-2);\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 50;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\n\t-webkit-backdrop-filter: blur(15px);\n\tbackdrop-filter: blur(15px);\n}\n\n\n\n/* stylelint-disable-next-line no-descending-specificity */\nmain>h2 em {\n\tcolor: var(--ui-color-text-semi);\n\tfont-size: 1.2rem;\n\tline-height: 1.8rem;\n\tmargin-left: 0.5rem;\n\tvertical-align: text-top;\n}\n\nmain>p code,\nmain>ul li code {\n\tdisplay: inline;\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tcolor: var(--ui-color-accent);\n\tfont: inherit;\n\twhite-space: break-spaces;\n}\n\n\n@media (1px <= width <= 700px) {\n\tmain>h1,\n\tmain>h2,\n\t.sticky-block>h1,\n\t.sticky-block>h2 { padding-left: 54px; }\n}\n",".button-demo-props {\n\tdisplay: flex;\n\tflex-flow: column;\n\talign-items: flex-start;\n\tjustify-content: flex-start;\n\tgap: 0.5rem;\n\twidth: clamp(300px, 600px, 100%);\n}\n\n.button-demo-props .input { display: flex; flex-flow: row; width: 100%; }\n.button-demo-props .input .label { width: 5rem; flex-shrink: 0; }\n.button-demo-props .input .input-text-inner { flex: 1; }\n\n\n.button-demo-props .toggle { display: flex; flex-flow: row; width: 100%; }\n.button-demo-props .toggle .label { width: 5rem; flex-shrink: 0; }\n\n@media (1px <= width <= 700px) {\n\t.button-demo-props {\n\t\twidth: 100%;\n\t}\n}\n",".button-toggle-wrapper-wide { width: 400px; max-width: 100%; }\n.button-toggle-wrapper-wide .button-toggle { width: 100%; }\n",".group {\n\tbackground: var(--ui-color-background-2);\n\tpadding: 6px;\n\tdisplay: grid;\n\tgrid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n\tgrid-gap: 6px;\n\tborder-radius: var(--ui-border-radius-m);\n}\n\n.palette-box {\n\tpadding: 10px 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\toverflow: hidden;\n\tborder-radius: calc(var(--ui-border-radius-m) - 3px);\n\tbackground-color: var(--ui-color-background-2);\n}\n",".icons { margin-bottom: 2em; }\n\n.icon-block {\n\tfloat: left;\n\twidth: 128px;\n\theight: 128px;\n\tmargin: 0 1em 1em 0;\n\tdisplay: flex;\n\tflex-flow: column;\n\talign-items: stretch;\n\tjustify-content: stretch;\n\tbackground-color: var(--ui-color-background-semi);\n\tpadding: 0 10px 10px;\n\tborder-radius: 5px;\n\tborder: 1px solid var(--ui-color-border);\n}\n\n.icon-block-icon {\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.icon-block-icon svg {\n\twidth: 32px;\n\theight: 32px;\n}\n\n.icon-block-name {\n\theight: 20px;\n\ttext-align: center;\n\toverflow-wrap: break-word;\n\tfont-size: var(--ui-font-s)\n}\n",".div {\n\tborder: 1px dashed red;\n\theight: 100px;\n\twidth: 200px;\n\tdisplay: inline-grid;\n\tplace-items: center;\n\tmargin: 1rem 1rem 1rem 0;\n\t-webkit-user-select: none;\n\tuser-select: none;\n}\n\n\n.docs-menu-align-right {\n\tpadding: 2rem 0;\n\tborder: 1px dashed var(--ui-color-accent);\n\ttext-align: right;\n}\n",".notification-center-header {\n\tmargin-bottom: 1rem;\n\tdisplay: flex;\n\tflex-flow: row;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tgap: 2rem;\n}\n\n.notification-center-header h2 {\n\tdisplay: inline-block;\n\twidth: auto;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n\n.prop-row {\n\tpadding: 1rem 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\tgap: 1rem;\n}\n",".panel p { margin: 0; }\n",".tooltip-box {\n\tdisplay: inline-block;\n\tmargin: 10px 0 0;\n\tline-height: 2.4em;\n\tpadding: 1em;\n\tborder: 1px solid #ccc;\n\tmin-width: 6em;\n\ttext-align: center;\n}\n\n.tooltip-html h1,\n.tooltip-html p { margin: 0; }\n.tooltip-html b { color: var(--ui-color-accent); }\n.tooltip-html a:hover { text-decoration: none; }\n",".split-wrap {\n\twidth: 400px;\n\theight: 200px;\n\tborder: 1px solid red;\n\tdisplay: flex;\n\tflex-flow: row;\n\tposition: relative;\n}\n\n.split-wrap-v { flex-flow: column; }\n.split-box { border: 1px solid green; flex: 1; }\n\n.min-w { min-width: 20px; max-width: 220px; }\n.min-h { min-height: 50px; max-height: 150px; }\n",".table-viewport {\n\twidth: 500px;\n\tmax-width: 100%;\n\theight: 500px;\n\tborder: 2px dashed red;\n\tpadding: 5px;\n}\n",".toggle-box {\n\tmargin: 10px 0 0;\n\tline-height: 2.4em;\n\tdisplay: none;\n}\n\n.toggle-box.visible {\n\tdisplay: block;\n}\n",".tooltip-box {\n\tdisplay: inline-block;\n\tmargin: 10px 0 0;\n\tline-height: 2.4em;\n\tpadding: 1em;\n\tborder: 1px solid #ccc;\n\tmin-width: 6em;\n\ttext-align: center;\n}\n\n.tooltip-html h1,\n.tooltip-html p { margin: 0; }\n.tooltip-html b { color: var(--ui-color-accent); }\n.tooltip-html a:hover { text-decoration: none; }\n",".utilities {\n\tpadding-bottom: 3rem;\n}\n\n.utilities h3.util {\n\tfont-size: 1.1rem;\n\tcolor: var(--ui-color-accent);\n\tfont-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;\n}\n"]} \ No newline at end of file diff --git a/docs/docs.js b/docs/docs.js index 9ccd59b6..3c432d77 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -1,66 +1,40920 @@ -var y1=Object.create;var Yu=Object.defineProperty;var k1=Object.getOwnPropertyDescriptor;var T1=Object.getOwnPropertyNames;var M1=Object.getPrototypeOf,E1=Object.prototype.hasOwnProperty;var It=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),S1=(t,e)=>{for(var n in e)Yu(t,n,{get:e[n],enumerable:!0})},C1=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of T1(e))!E1.call(t,o)&&o!==n&&Yu(t,o,{get:()=>e[o],enumerable:!(i=k1(e,o))||i.enumerable});return t};var Uu=(t,e,n)=>(n=t!=null?y1(M1(t)):{},C1(e||!t||!t.__esModule?Yu(n,"default",{value:t,enumerable:!0}):n,t));var _i=It(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.TraceDirectionKey=Sn.Direction=Sn.Axis=void 0;var kc;Sn.TraceDirectionKey=kc;(function(t){t.NEGATIVE="NEGATIVE",t.POSITIVE="POSITIVE",t.NONE="NONE"})(kc||(Sn.TraceDirectionKey=kc={}));var Tc;Sn.Direction=Tc;(function(t){t.TOP="TOP",t.LEFT="LEFT",t.RIGHT="RIGHT",t.BOTTOM="BOTTOM",t.NONE="NONE"})(Tc||(Sn.Direction=Tc={}));var Mc;Sn.Axis=Mc;(function(t){t.X="x",t.Y="y"})(Mc||(Sn.Axis=Mc={}))});var Cc=It(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.calculateDirection=e0;var Ec=_i();function e0(t){var e,n=Ec.TraceDirectionKey.NEGATIVE,i=Ec.TraceDirectionKey.POSITIVE,o=t[t.length-1],r=t[t.length-2]||0;return t.every(function(u){return u===0})?Ec.TraceDirectionKey.NONE:(e=o>r?i:n,o===0&&(e=r<0?i:n),e)}});var Cr=It(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.resolveAxisDirection=jn.getDirectionValue=jn.getDirectionKey=jn.getDifference=void 0;var hn=_i(),t0=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(e).toString();switch(n){case hn.TraceDirectionKey.POSITIVE:return hn.TraceDirectionKey.POSITIVE;case hn.TraceDirectionKey.NEGATIVE:return hn.TraceDirectionKey.NEGATIVE;default:return hn.TraceDirectionKey.NONE}};jn.getDirectionKey=t0;var n0=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e[e.length-1]||0};jn.getDirectionValue=n0;var i0=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Math.abs(e-n)};jn.getDifference=i0;var o0=function(e,n){var i=hn.Direction.LEFT,o=hn.Direction.RIGHT,r=hn.Direction.NONE;return e===hn.Axis.Y&&(i=hn.Direction.BOTTOM,o=hn.Direction.TOP),n===hn.TraceDirectionKey.NEGATIVE&&(r=i),n===hn.TraceDirectionKey.POSITIVE&&(r=o),r};jn.resolveAxisDirection=o0});var Lc=It(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.calculateDirectionDelta=l0;var s0=_i(),Bo=Cr();function l0(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t.length,i=n-1,o=s0.TraceDirectionKey.NONE;i>=0;i--){var r=t[i],u=(0,Bo.getDirectionKey)(r),a=(0,Bo.getDirectionValue)(r[u]),c=t[i-1]||{},f=(0,Bo.getDirectionKey)(c),d=(0,Bo.getDirectionValue)(c[f]),b=(0,Bo.getDifference)(a,d);if(b>=e){o=u;break}else o=f}return o}});var Ac=It(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.calculateDuration=r0;function r0(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t?e-t:0}});var Cg=It(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.calculateMovingPosition=a0;function a0(t){if("changedTouches"in t){var e=t.changedTouches&&t.changedTouches[0];return{x:e&&e.clientX,y:e&&e.clientY}}return{x:t.clientX,y:t.clientY}}});var Pc=It(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.updateTrace=u0;function u0(t,e){var n=t[t.length-1];return n!==e&&t.push(e),t}});var Fc=It(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.calculateTraceDirections=f0;var Dr=_i();function Dg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f0(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[],n=Dr.TraceDirectionKey.POSITIVE,i=Dr.TraceDirectionKey.NEGATIVE,o=0,r=[],u=Dr.TraceDirectionKey.NONE;oc?n:i;u===Dr.TraceDirectionKey.NONE&&(u=f),f===u?r.push(a):(e.push(Dg({},u,r.slice())),r=[],r.push(a),u=f)}else a!==0&&(u=a>0?n:i),r.push(a)}return r.length&&e.push(Dg({},u,r)),e}});var qc=It(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.resolveDirection=h0;var c0=Cc(),d0=Fc(),m0=Lc(),Lg=Cr(),p0=_i();function h0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p0.Axis.X,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n){var i=(0,d0.calculateTraceDirections)(t),o=(0,m0.calculateDirectionDelta)(i,n);return(0,Lg.resolveAxisDirection)(e,o)}var r=(0,c0.calculateDirection)(t);return(0,Lg.resolveAxisDirection)(e,r)}});var Rc=It(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.calculateVelocity=g0;function g0(t,e,n){var i=Math.sqrt(t*t+e*e);return i/(n||1)}});var Og=It(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.calculatePosition=v0;var xg=Pc(),Ag=qc(),b0=Ac(),_0=Rc(),Ig=_i();function v0(t,e){var n=t.start,i=t.x,o=t.y,r=t.traceX,u=t.traceY,a=e.rotatePosition,c=e.directionDelta,f=a.x-i,d=o-a.y,b=Math.abs(f),h=Math.abs(d);(0,xg.updateTrace)(r,f),(0,xg.updateTrace)(u,d);var g=(0,Ag.resolveDirection)(r,Ig.Axis.X,c),$=(0,Ag.resolveDirection)(u,Ig.Axis.Y,c),_=(0,b0.calculateDuration)(n,Date.now()),v=(0,_0.calculateVelocity)(b,h,_);return{absX:b,absY:h,deltaX:f,deltaY:d,directionX:g,directionY:$,duration:_,positionX:a.x,positionY:a.y,velocity:v}}});var Pg=It(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.checkIsMoreThanSingleTouches=void 0;var w0=function(e){return!!(e.touches&&e.touches.length>1)};Lr.checkIsMoreThanSingleTouches=w0});var Vc=It(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.createOptions=$0;function $0(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.defineProperty(t,"passive",{get:function(){return this.isPassiveSupported=!0,!0},enumerable:!0}),t}});var Hg=It(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.checkIsPassiveSupported=k0;Ro.noop=void 0;var y0=Vc();function k0(t){if(typeof t=="boolean")return t;var e={isPassiveSupported:t};try{var n=(0,y0.createOptions)(e);window.addEventListener("checkIsPassiveSupported",Wc,n),window.removeEventListener("checkIsPassiveSupported",Wc,n)}catch{}return e.isPassiveSupported}var Wc=function(){};Ro.noop=Wc});var Fg=It(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.checkIsTouchEventsSupported=void 0;function Gc(t){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gc(t)}var T0=function(){return(typeof window>"u"?"undefined":Gc(window))==="object"&&("ontouchstart"in window||!!window.navigator.maxTouchPoints)};xr.checkIsTouchEventsSupported=T0});var qg=It(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getInitialState=void 0;function Ng(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function M0(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};return M0({x:0,y:0,start:0,isSwiping:!1,traceX:[],traceY:[]},e)};Ar.getInitialState=S0});var Rg=It(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getInitialProps=void 0;function Bg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function C0(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};return C0({element:null,target:null,delta:10,directionDelta:0,rotationAngle:0,mouseTrackingEnabled:!1,touchTrackingEnabled:!0,preventDefaultTouchmoveEvent:!1,preventTrackingOnMouseleave:!1},e)};Ir.getInitialProps=L0});var zg=It(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.getOptions=x0;function x0(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return t?{passive:!1}:{}}});var jg=It(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.rotateByAngle=A0;function A0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e===0)return t;var n=t.x,i=t.y,o=Math.PI/180*e,r=n*Math.cos(o)+i*Math.sin(o),u=i*Math.cos(o)-n*Math.sin(o);return{x:r,y:u}}});var Vg=It(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});var Kc=Cc();Object.keys(Kc).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===Kc[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return Kc[t]}})});var Xc=Lc();Object.keys(Xc).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===Xc[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return Xc[t]}})});var Zc=Ac();Object.keys(Zc).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===Zc[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return Zc[t]}})});var Jc=Cg();Object.keys(Jc).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===Jc[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return Jc[t]}})});var Qc=Og();Object.keys(Qc).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===Qc[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return Qc[t]}})});var ed=Fc();Object.keys(ed).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===ed[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return ed[t]}})});var td=Rc();Object.keys(td).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===td[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return td[t]}})});var nd=Pg();Object.keys(nd).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===nd[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return nd[t]}})});var od=Hg();Object.keys(od).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===od[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return od[t]}})});var sd=Fg();Object.keys(sd).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===sd[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return sd[t]}})});var ld=Cr();Object.keys(ld).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===ld[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return ld[t]}})});var rd=Vc();Object.keys(rd).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===rd[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return rd[t]}})});var ad=qg();Object.keys(ad).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===ad[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return ad[t]}})});var ud=Rg();Object.keys(ud).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===ud[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return ud[t]}})});var fd=zg();Object.keys(fd).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===fd[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return fd[t]}})});var cd=qc();Object.keys(cd).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===cd[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return cd[t]}})});var dd=jg();Object.keys(dd).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===dd[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return dd[t]}})});var md=Pc();Object.keys(md).forEach(function(t){t==="default"||t==="__esModule"||t in Ve&&Ve[t]===md[t]||Object.defineProperty(Ve,t,{enumerable:!0,get:function(){return md[t]}})})});var Ug=It(Vi=>{"use strict";function hd(t){"@babel/helpers - typeof";return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hd(t)}Object.defineProperty(Vi,"__esModule",{value:!0});var I0={};Vi.default=void 0;var Zt=O0(Vg()),pd=_i();Object.keys(pd).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(I0,t)||t in Vi&&Vi[t]===pd[t]||Object.defineProperty(Vi,t,{enumerable:!0,get:function(){return pd[t]}})});function Yg(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Yg=function(o){return o?n:e})(t)}function O0(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||hd(t)!=="object"&&typeof t!="function")return{default:t};var n=Yg(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)){var u=o?Object.getOwnPropertyDescriptor(t,r):null;u&&(u.get||u.set)?Object.defineProperty(i,r,u):i[r]=t[r]}return i.default=t,n&&n.set(t,i),i}function P0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wg(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{directionDelta:0},o=this.props.rotationAngle,r=i.directionDelta,u=Zt.calculateMovingPosition(n),a=Zt.rotateByAngle(u,o);return Zt.calculatePosition(this.state,{rotatePosition:a,directionDelta:r})}},{key:"handleSwipeStart",value:function(n){if(!Zt.checkIsMoreThanSingleTouches(n)){var i=this.props.rotationAngle,o=Zt.calculateMovingPosition(n),r=Zt.rotateByAngle(o,i),u=r.x,a=r.y;this.state=Zt.getInitialState({isSwiping:!1,start:Date.now(),x:u,y:a})}}},{key:"handleSwipeMove",value:function(n){var i=this.state,o=i.x,r=i.y,u=i.isSwiping;if(!(!o||!r||Zt.checkIsMoreThanSingleTouches(n))){var a=this.props.directionDelta||0,c=this.getEventData(n,{directionDelta:a}),f=c.absX,d=c.absY,b=c.deltaX,h=c.deltaY,g=c.directionX,$=c.directionY,_=c.duration,v=c.velocity,w=this.props,k=w.delta,x=w.preventDefaultTouchmoveEvent,A=w.onSwipeStart,y=w.onSwiping;n.cancelable&&x&&n.preventDefault(),!(f{var z3=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var ze=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function _(v){return v instanceof r?new r(v.type,_(v.content),v.alias):Array.isArray(v)?v.map(_):v.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(k){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(_){var v=document.getElementsByTagName("script");for(var w in v)if(v[w].src==_)return v[w]}return null}},isActive:function(_,v,w){for(var k="no-"+v;_;){var x=_.classList;if(x.contains(v))return!0;if(x.contains(k))return!1;_=_.parentElement}return!!w}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(_,v){var w=o.util.clone(o.languages[_]);for(var k in v)w[k]=v[k];return w},insertBefore:function(_,v,w,k){k=k||o.languages;var x=k[_],A={};for(var y in x)if(x.hasOwnProperty(y)){if(y==v)for(var T in w)w.hasOwnProperty(T)&&(A[T]=w[T]);w.hasOwnProperty(y)||(A[y]=x[y])}var L=k[_];return k[_]=A,o.languages.DFS(o.languages,function(N,I){I===L&&N!=_&&(this[N]=A)}),A},DFS:function _(v,w,k,x){x=x||{};var A=o.util.objId;for(var y in v)if(v.hasOwnProperty(y)){w.call(v,y,v[y],k||y);var T=v[y],L=o.util.type(T);L==="Object"&&!x[A(T)]?(x[A(T)]=!0,_(T,w,null,x)):L==="Array"&&!x[A(T)]&&(x[A(T)]=!0,_(T,w,y,x))}}},plugins:{},highlightAll:function(_,v){o.highlightAllUnder(document,_,v)},highlightAllUnder:function(_,v,w){var k={callback:w,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),o.hooks.run("before-all-elements-highlight",k);for(var x=0,A;A=k.elements[x++];)o.highlightElement(A,v===!0,k.callback)},highlightElement:function(_,v,w){var k=o.util.getLanguage(_),x=o.languages[k];o.util.setLanguage(_,k);var A=_.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(A,k);var y=_.textContent,T={element:_,language:k,grammar:x,code:y};function L(I){T.highlightedCode=I,o.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,o.hooks.run("after-highlight",T),o.hooks.run("complete",T),w&&w.call(T.element)}if(o.hooks.run("before-sanity-check",T),A=T.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!T.code){o.hooks.run("complete",T),w&&w.call(T.element);return}if(o.hooks.run("before-highlight",T),!T.grammar){L(o.util.encode(T.code));return}if(v&&t.Worker){var N=new Worker(o.filename);N.onmessage=function(I){L(I.data)},N.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else L(o.highlight(T.code,T.grammar,T.language))},highlight:function(_,v,w){var k={code:_,grammar:v,language:w};if(o.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=o.tokenize(k.code,k.grammar),o.hooks.run("after-tokenize",k),r.stringify(o.util.encode(k.tokens),k.language)},tokenize:function(_,v){var w=v.rest;if(w){for(var k in w)v[k]=w[k];delete v.rest}var x=new c;return f(x,x.head,_),a(_,x,v,x.head,0),b(x)},hooks:{all:{},add:function(_,v){var w=o.hooks.all;w[_]=w[_]||[],w[_].push(v)},run:function(_,v){var w=o.hooks.all[_];if(!(!w||!w.length))for(var k=0,x;x=w[k++];)x(v)}},Token:r};t.Prism=o;function r(_,v,w,k){this.type=_,this.content=v,this.alias=w,this.length=(k||"").length|0}r.stringify=function _(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var k="";return v.forEach(function(L){k+=_(L,w)}),k}var x={type:v.type,content:_(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},A=v.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(x.classes,A):x.classes.push(A)),o.hooks.run("wrap",x);var y="";for(var T in x.attributes)y+=" "+T+'="'+(x.attributes[T]||"").replace(/"/g,""")+'"';return"<"+x.tag+' class="'+x.classes.join(" ")+'"'+y+">"+x.content+""};function u(_,v,w,k){_.lastIndex=v;var x=_.exec(w);if(x&&k&&x[1]){var A=x[1].length;x.index+=A,x[0]=x[0].slice(A)}return x}function a(_,v,w,k,x,A){for(var y in w)if(!(!w.hasOwnProperty(y)||!w[y])){var T=w[y];T=Array.isArray(T)?T:[T];for(var L=0;L=A.reach);H+=U.value.length,U=U.next){var Q=U.value;if(v.length>_.length)return;if(!(Q instanceof r)){var z=1,K;if(j){if(K=u(X,H,_,F),!K||K.index>=_.length)break;var V=K.index,te=K.index+K[0].length,$e=H;for($e+=U.value.length;V>=$e;)U=U.next,$e+=U.value.length;if($e-=U.value.length,H=$e,U.value instanceof r)continue;for(var G=U;G!==v.tail&&($eA.reach&&(A.reach=ee);var Ie=U.prev;se&&(Ie=f(v,Ie,se),H+=se.length),d(v,Ie,z);var pe=new r(y,I?o.tokenize(ce,I):ce,W,ce);if(U=f(v,Ie,pe),Y&&f(v,U,Y),z>1){var ke={cause:y+","+L,reach:ee};a(_,v,w,U.prev,H,ke),A&&ke.reach>A.reach&&(A.reach=ke.reach)}}}}}}function c(){var _={value:null,prev:null,next:null},v={value:null,prev:_,next:null};_.next=v,this.head=_,this.tail=v,this.length=0}function f(_,v,w){var k=v.next,x={value:w,prev:v,next:k};return v.next=x,k.prev=x,_.length++,x}function d(_,v,w){for(var k=v.next,x=0;x/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};ze.languages.markup.tag.inside["attr-value"].inside.entity=ze.languages.markup.entity;ze.languages.markup.doctype.inside["internal-subset"].inside=ze.languages.markup;ze.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))});Object.defineProperty(ze.languages.markup.tag,"addInlined",{value:function(e,n){var i={};i["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:ze.languages[n]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+n]={pattern:/[\s\S]+/,inside:ze.languages[n]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},ze.languages.insertBefore("markup","cdata",r)}});Object.defineProperty(ze.languages.markup.tag,"addAttribute",{value:function(t,e){ze.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:ze.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});ze.languages.html=ze.languages.markup;ze.languages.mathml=ze.languages.markup;ze.languages.svg=ze.languages.markup;ze.languages.xml=ze.languages.extend("markup",{});ze.languages.ssml=ze.languages.xml;ze.languages.atom=ze.languages.xml;ze.languages.rss=ze.languages.xml;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(ze);ze.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};ze.languages.javascript=ze.languages.extend("clike",{"class-name":[ze.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});ze.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;ze.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ze.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ze.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ze.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ze.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ze.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});ze.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ze.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});ze.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});ze.languages.markup&&(ze.languages.markup.tag.addInlined("script","javascript"),ze.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));ze.languages.js=ze.languages.javascript;(function(){if(typeof ze>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading\u2026",e=function(h,g){return"\u2716 Error "+h+" while fetching file: "+g},n="\u2716 Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",r="loading",u="loaded",a="failed",c="pre[data-src]:not(["+o+'="'+u+'"]):not(['+o+'="'+r+'"])';function f(h,g,$){var _=new XMLHttpRequest;_.open("GET",h,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?g(_.responseText):_.status>=400?$(e(_.status,_.statusText)):$(n))},_.send(null)}function d(h){var g=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(h||"");if(g){var $=Number(g[1]),_=g[2],v=g[3];return _?v?[$,Number(v)]:[$,void 0]:[$,$]}}ze.hooks.add("before-highlightall",function(h){h.selector+=", "+c}),ze.hooks.add("before-sanity-check",function(h){var g=h.element;if(g.matches(c)){h.code="",g.setAttribute(o,r);var $=g.appendChild(document.createElement("CODE"));$.textContent=t;var _=g.getAttribute("data-src"),v=h.language;if(v==="none"){var w=(/\.(\w+)$/.exec(_)||[,"none"])[1];v=i[w]||w}ze.util.setLanguage($,v),ze.util.setLanguage(g,v);var k=ze.plugins.autoloader;k&&k.loadLanguages(v),f(_,function(x){g.setAttribute(o,u);var A=d(g.getAttribute("data-range"));if(A){var y=x.split(/\r\n?|\n/g),T=A[0],L=A[1]==null?y.length:A[1];T<0&&(T+=y.length),T=Math.max(0,Math.min(T-1,y.length)),L<0&&(L+=y.length),L=Math.max(0,Math.min(L,y.length)),x=y.slice(T,L).join(` -`),g.hasAttribute("data-start")||g.setAttribute("data-start",String(T+1))}$.textContent=x,ze.highlightElement($)},function(x){g.setAttribute(o,a),$.textContent=x})}}),ze.plugins.fileHighlight={highlight:function(g){for(var $=(g||document).querySelectorAll(c),_=0,v;v=$[_++];)ze.highlightElement(v)}};var b=!1;ze.fileHighlight=function(){b||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),b=!0),ze.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var $1=It((dI,Pr)=>{(function(){if(typeof Prism>"u")return;var t=Object.assign||function(r,u){for(var a in u)u.hasOwnProperty(a)&&(r[a]=u[a]);return r};function e(r){this.defaults=t({},r)}function n(r){return r.replace(/-(\w)/g,function(u,a){return a.toUpperCase()})}function i(r){for(var u=0,a=0;au&&(f[b]=` -`+f[b],d=h)}a[c]=f.join("")}return a.join(` -`)}},typeof Pr<"u"&&Pr.exports&&(Pr.exports=e),Prism.plugins.NormalizeWhitespace=new e({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(r){var u=Prism.plugins.NormalizeWhitespace;if(!(r.settings&&r.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(r.element,"whitespace-normalization",!0)){if((!r.element||!r.element.parentNode)&&r.code){r.code=u.normalize(r.code,r.settings);return}var a=r.element.parentNode;if(!(!r.code||!a||a.nodeName.toLowerCase()!=="pre")){r.settings==null&&(r.settings={});for(var c in o)if(Object.hasOwnProperty.call(o,c)){var f=o[c];if(a.hasAttribute("data-"+c))try{var d=JSON.parse(a.getAttribute("data-"+c)||"true");typeof d===f&&(r.settings[c]=d)}catch{}}for(var b=a.childNodes,h="",g="",$=!1,_=0;_t;function Ke(t,e){for(let n in e)t[n]=e[n];return t}function Ku(t){return t()}function Wl(){return Object.create(null)}function Be(t){t.forEach(Ku)}function mt(t){return typeof t=="function"}function fe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Vl;function Wm(t,e){return t===e?!0:(Vl||(Vl=document.createElement("a")),Vl.href=e,t===Vl.href)}function Gm(t){return Object.keys(t).length===0}function Xu(t,...e){if(t==null){for(let i of e)i(void 0);return Oe}let n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Qi(t){let e;return Xu(t,n=>e=n)(),e}function Kt(t,e,n){t.$$.on_destroy.push(Xu(e,n))}function Ot(t,e,n,i){if(t){let o=Ym(t,e,n,i);return t[0](o)}}function Ym(t,e,n,i){return t[1]&&i?Ke(n.ctx.slice(),t[1](i(e))):n.ctx}function Pt(t,e,n,i){if(t[2]&&i){let o=t[2](i(n));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],u=Math.max(e.dirty.length,o.length);for(let a=0;a32){let e=[],n=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),ko=Xm?t=>requestAnimationFrame(t):Oe;var to=new Set;function Zm(t){to.forEach(e=>{e.c(t)||(to.delete(e),e.f())}),to.size!==0&&ko(Zm)}function no(t){let e;return to.size===0&&ko(Zm),{promise:new Promise(n=>{to.add(e={c:t,f:n})}),abort(){to.delete(e)}}}var To=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Yl=class t{_listeners="WeakMap"in To?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,n){return this._listeners.set(e,n),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let n of e)t.entries.set(n.target,n),this._listeners.get(n.target)?.(n)}))}};Yl.entries="WeakMap"in To?new WeakMap:void 0;var Jm=!1;function Qm(){Jm=!0}function ep(){Jm=!1}function P(t,e){t.appendChild(e)}function Ju(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function tp(t){let e=p("style");return e.textContent="/* empty */",L1(Ju(t),e),e.sheet}function L1(t,e){return P(t.head||t,e),e.sheet}function l(t,e,n){t.insertBefore(e,n||null)}function s(t){t.parentNode&&t.parentNode.removeChild(t)}function jt(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Mi(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ul(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function O(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}var A1=["width","height"];function Tt(t,e){let n=Object.getOwnPropertyDescriptors(t.__proto__);for(let i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&A1.indexOf(i)===-1?t[i]=e[i]:O(t,i,e[i])}function np(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Lt(t,e){t.value=e??""}function Xt(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function Qu(t,e,n){for(let i=0;i{e[n.slot||"default"]=!0}),e}function ef(t,e){return new t(e)}var Kl=new Map,Xl=0;function I1(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function O1(t,e){let n={stylesheet:tp(e),rules:{}};return Kl.set(t,n),n}function Ei(t,e,n,i,o,r,u,a=0){let c=16.666/i,f=`{ -`;for(let v=0;v<=1;v+=c){let w=e+(n-e)*r(v);f+=v*100+`%{${u(w,1-w)}} -`}let d=f+`100% {${u(n,1-n)}} -}`,b=`__svelte_${I1(d)}_${a}`,h=Ju(t),{stylesheet:g,rules:$}=Kl.get(h)||O1(h,t);$[b]||($[b]=!0,g.insertRule(`@keyframes ${b} ${d}`,g.cssRules.length));let _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${b} ${i}ms linear ${o}ms 1 both`,Xl+=1,b}function Si(t,e){let n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),o=n.length-i.length;o&&(t.style.animation=i.join(", "),Xl-=o,Xl||P1())}function P1(){ko(()=>{Xl||(Kl.forEach(t=>{let{ownerNode:e}=t.stylesheet;e&&s(e)}),Kl.clear())})}function Zl(t,e,n,i){if(!e)return Oe;let o=t.getBoundingClientRect();if(e.left===o.left&&e.right===o.right&&e.top===o.top&&e.bottom===o.bottom)return Oe;let{delay:r=0,duration:u=300,easing:a=li,start:c=eo()+r,end:f=c+u,tick:d=Oe,css:b}=n(t,{from:e,to:o},i),h=!0,g=!1,$;function _(){b&&($=Ei(t,0,1,u,r,a,b)),r||(g=!0)}function v(){b&&Si(t,$),h=!1}return no(w=>{if(!g&&w>=c&&(g=!0),g&&w>=f&&(d(1,0),v()),!h)return!1;if(g){let k=w-c,x=0+1*a(k/u);d(x,1-x)}return!0}),_(),d(0,1),v}function Jl(t){let e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){let{width:n,height:i}=e,o=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=i,Eo(t,o)}}function Eo(t,e){let n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){let i=getComputedStyle(t),o=i.transform==="none"?"":i.transform;t.style.transform=`${o} translate(${e.left-n.left}px, ${e.top-n.top}px)`}}var ri;function Xn(t){ri=t}function Ci(){if(!ri)throw new Error("Function called outside component initialization");return ri}function Mt(t){Ci().$$.on_mount.push(t)}function Zn(t){Ci().$$.after_update.push(t)}function Qt(t){Ci().$$.on_destroy.push(t)}function lt(){let t=Ci();return(e,n,{cancelable:i=!1}={})=>{let o=t.$$.callbacks[e];if(o){let r=Mo(e,n,{cancelable:i});return o.slice().forEach(u=>{u.call(t,r)}),!r.defaultPrevented}return!0}}function tf(t,e){return Ci().$$.context.set(t,e),e}function nf(t){return Ci().$$.context.get(t)}function st(t,e){let n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}var Di=[];var he=[],oo=[],sf=[],H1=Promise.resolve(),lf=!1;function sp(){lf||(lf=!0,H1.then(yt))}function zt(t){oo.push(t)}function Ye(t){sf.push(t)}var of=new Set,io=0;function yt(){if(io!==0)return;let t=ri;do{try{for(;iot.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),oo=e}var So;function rf(){return So||(So=Promise.resolve(),So.then(()=>{So=null})),So}function Li(t,e,n){t.dispatchEvent(Mo(`${e?"intro":"outro"}${n}`))}var Ql=new Set,Nn;function Je(){Nn={r:0,c:[],p:Nn}}function Qe(){Nn.r||Be(Nn.c),Nn=Nn.p}function M(t,e){t&&t.i&&(Ql.delete(t),t.i(e))}function E(t,e,n,i){if(t&&t.o){if(Ql.has(t))return;Ql.add(t),Nn.c.push(()=>{Ql.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}var af={duration:0};function so(t,e,n){let i={direction:"in"},o=e(t,n,i),r=!1,u,a,c=0;function f(){u&&Si(t,u)}function d(){let{delay:h=0,duration:g=300,easing:$=li,tick:_=Oe,css:v}=o||af;v&&(u=Ei(t,0,1,g,h,$,v,c++)),_(0,1);let w=eo()+h,k=w+g;a&&a.abort(),r=!0,zt(()=>Li(t,!0,"start")),a=no(x=>{if(r){if(x>=k)return _(1,0),Li(t,!0,"end"),f(),r=!1;if(x>=w){let A=$((x-w)/g);_(A,1-A)}}return r})}let b=!1;return{start(){b||(b=!0,Si(t),mt(o)?(o=o(i),rf().then(d)):d())},invalidate(){b=!1},end(){r&&(f(),r=!1)}}}function lo(t,e,n){let i={direction:"out"},o=e(t,n,i),r=!0,u,a=Nn;a.r+=1;let c;function f(){let{delay:d=0,duration:b=300,easing:h=li,tick:g=Oe,css:$}=o||af;$&&(u=Ei(t,1,0,b,d,h,$));let _=eo()+d,v=_+b;zt(()=>Li(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),no(w=>{if(r){if(w>=v)return g(0,1),Li(t,!1,"end"),--a.r||Be(a.c),!1;if(w>=_){let k=h((w-_)/b);g(1-k,k)}}return r})}return mt(o)?rf().then(()=>{o=o(i),f()}):f(),{end(d){d&&"inert"in t&&(t.inert=c),d&&o.tick&&o.tick(1,0),r&&(u&&Si(t,u),r=!1)}}}function uf(t,e,n,i){let r=e(t,n,{direction:"both"}),u=i?0:1,a=null,c=null,f=null,d;function b(){f&&Si(t,f)}function h($,_){let v=$.b-u;return _*=Math.abs(v),{a:u,b:$.b,d:v,duration:_,start:$.start,end:$.start+_,group:$.group}}function g($){let{delay:_=0,duration:v=300,easing:w=li,tick:k=Oe,css:x}=r||af,A={start:eo()+_,b:$};$||(A.group=Nn,Nn.r+=1),"inert"in t&&($?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),a||c?c=A:(x&&(b(),f=Ei(t,u,$,v,_,w,x)),$&&k(0,1),a=h(A,v),zt(()=>Li(t,$,"start")),no(y=>{if(c&&y>c.start&&(a=h(c,v),c=null,Li(t,a.b,"start"),x&&(b(),f=Ei(t,u,a.b,a.duration,0,w,r.css))),a){if(y>=a.end)k(u=a.b,1-u),Li(t,a.b,"end"),c||(a.b?b():--a.group.r||Be(a.group.c)),a=null;else if(y>=a.start){let T=y-a.start;u=a.a+a.d*w(T/a.duration),k(u,1-u)}}return!!(a||c)}))}return{run($){mt(r)?rf().then(()=>{r=r({direction:$?"in":"out"}),g($)}):g($)},end(){b(),a=c=null}}}function nt(t){return t?.length!==void 0?t:Array.from(t)}function ff(t,e){E(t,1,1,()=>{e.delete(t.key)})}function er(t,e){t.f(),ff(t,e)}function ro(t,e,n,i,o,r,u,a,c,f,d,b){let h=t.length,g=r.length,$=h,_={};for(;$--;)_[t[$].key]=$;let v=[],w=new Map,k=new Map,x=[];for($=g;$--;){let L=b(o,r,$),N=n(L),I=u.get(N);I?i&&x.push(()=>I.p(L,e)):(I=f(N,L),I.c()),w.set(N,v[$]=I),N in _&&k.set(N,Math.abs($-_[N]))}let A=new Set,y=new Set;function T(L){M(L,1),L.m(a,d),u.set(L.key,L),d=L.first,g--}for(;h&&g;){let L=v[g-1],N=t[h-1],I=L.key,F=N.key;L===N?(d=L.first,h--,g--):w.has(F)?!u.has(I)||A.has(I)?T(L):y.has(F)?h--:k.get(I)>k.get(F)?(y.add(I),T(L)):(A.add(F),h--):(c(N,u),h--)}for(;h--;){let L=t[h];w.has(L.key)||c(L,u)}for(;g;)T(v[g-1]);return Be(x),v}function xt(t,e){let n={},i={},o={$$scope:1},r=t.length;for(;r--;){let u=t[r],a=e[r];if(a){for(let c in u)c in a||(i[c]=1);for(let c in a)o[c]||(n[c]=a[c],o[c]=1);t[r]=a}else for(let c in u)o[c]=1}for(let u in i)u in n||(n[u]=void 0);return n}function ao(t){return typeof t=="object"&&t!==null?t:{}}var N1=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],q1=new Set([...N1]);function Ue(t,e,n){let i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function D(t){t&&t.c()}function S(t,e,n){let{fragment:i,after_update:o}=t.$$;i&&i.m(e,n),zt(()=>{let r=t.$$.on_mount.map(Ku).filter(mt);t.$$.on_destroy?t.$$.on_destroy.push(...r):Be(r),t.$$.on_mount=[]}),o.forEach(zt)}function C(t,e){let n=t.$$;n.fragment!==null&&(lp(n.after_update),Be(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function R1(t,e){t.$$.dirty[0]===-1&&(Di.push(t),sp(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{let $=g.length?g[0]:h;return f.ctx&&o(f.ctx[b],f.ctx[b]=$)&&(!f.skip_bound&&f.bound[b]&&f.bound[b]($),d&&R1(t,b)),h}):[],f.update(),d=!0,Be(f.before_update),f.fragment=i?i(f.ctx):!1,e.target){if(e.hydrate){Qm();let b=np(e.target);f.fragment&&f.fragment.l(b),b.forEach(s)}else f.fragment&&f.fragment.c();e.intro&&M(t.$$.fragment),S(t,e.target,e.anchor),ep(),yt()}Xn(c)}var z1;typeof HTMLElement=="function"&&(z1=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){let i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let r;return{c:function(){r=p("slot"),o!=="default"&&O(r,"name",o)},m:function(c,f){l(c,r,f)},d:function(c){c&&s(r)}}}};if(await Promise.resolve(),!this.$$cn)return;let e={},n=op(this);for(let o of this.$$s)o in n&&(e[o]=[t(o)]);for(let o of this.attributes){let r=this.$$g_p(o.name);r in this.$$d||(this.$$d[r]=cf(r,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});let i=()=>{this.$$r=!0;for(let o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){let r=cf(o,this.$$d[o],this.$$p_d,"toAttribute");r==null?this.removeAttribute(o):this.setAttribute(this.$$p_d[o].attribute||o,r)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(let o in this.$$l)for(let r of this.$$l[o]){let u=this.$$c.$on(o,r);this.$$l_u.set(r,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=cf(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function cf(t,e,n,i){let o=n[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var ue=class{$$=void 0;$$set=void 0;$destroy(){C(this,1),this.$destroy=Oe}$on(e,n){if(!mt(n))return Oe;let i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{let o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(e){this.$$set&&!Gm(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var rp="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(rp);function j1(t){let e,n,i,o,r,u=t[4].default,a=Ot(u,t,t[3],null);return{c(){e=p("div"),n=p("div"),i=p("div"),a&&a.c(),O(i,"class","button-group-inner"),O(i,"role","group"),O(n,"class","button-group-scroller"),O(e,"class",o="button-group "+t[1]),ie(e,"round",t[2])},m(c,f){l(c,e,f),P(e,n),P(n,i),a&&a.m(i,null),t[5](e),r=!0},p(c,[f]){a&&a.p&&(!r||f&8)&&Ht(a,u,c,c[3],r?Pt(u,c[3],f,null):Ft(c[3]),null),(!r||f&2&&o!==(o="button-group "+c[1]))&&O(e,"class",o),(!r||f&6)&&ie(e,"round",c[2])},i(c){r||(M(a,c),r=!0)},o(c){E(a,c),r=!1},d(c){c&&s(e),a&&a.d(c),t[5](null)}}}function V1(t,e,n){let{$$slots:i={},$$scope:o}=e,{class:r=""}=e,{round:u=void 0}=e,{element:a=void 0}=e;function c(f){he[f?"unshift":"push"](()=>{a=f,n(0,a)})}return t.$$set=f=>{"class"in f&&n(1,r=f.class),"round"in f&&n(2,u=f.round),"element"in f&&n(0,a=f.element),"$$scope"in f&&n(3,o=f.$$scope)},[a,r,u,o,i,c]}var df=class extends ue{constructor(e){super(),de(this,e,V1,j1,fe,{class:1,round:2,element:0})}},bn=df;var Fe='',alert:Fe+'class="icon icon-tabler icon-tabler-alert-triangle">',apps:Fe+'class="icon icon-tabler icon-tabler-apps">',archive:Fe+'class="icon icon-tabler icon-tabler-archive">',arrowLeft:Fe+'class="icon icon-tabler icon-tabler-arrow-left">',arrowRight:Fe+'class="icon icon-tabler icon-tabler-arrow-right">',arrowNarrowDown:Fe+'class="icon icon-tabler icon-tabler-arrow-narrow-down">',arrowNarrowUp:Fe+'class="icon icon-tabler icon-tabler-arrow-narrow-up">',bank:Fe+'class="icon icon-tabler icon-tabler-building-bank">',basket:Fe+'class="icon icon-tabler icon-tabler-basket">',bell:Fe+'class="icon icon-tabler icon-tabler-bell">',book:Fe+'class="icon icon-tabler icon-tabler-book">',bookmark:Fe+'class="icon icon-tabler icon-tabler-bookmark">',calculator:Fe+'class="icon icon-tabler icon-tabler-calculator">',calendar:Fe+'class="icon icon-tabler icon-tabler-calendar">',chartLine:Fe+'class="icon icon-tabler icon-tabler-line-chart">',chartPie:Fe+'class="icon icon-tabler icon-tabler-chart-pie">',cash:Fe+'class="icon icon-tabler icon-tabler-cash">',cart:Fe+'class="icon icon-tabler icon-tabler-shopping-cart">',check:Fe+'class="icon icon-tabler icon-tabler-check">',checkCircle:Fe+'class="icon icon-tabler icon-tabler-circle-check">',checkboxChecked:Fe+'class="icon icon-tabler icon-tabler-square-check">',checkbox:Fe+'class="icon icon-tabler icon-tabler-square">',checklist:Fe+'class="icon icon-tabler icon-tabler-list-check">',chevronLeft:Fe+'class="icon icon-tabler icon-tabler-chevron-left">',chevronRight:Fe+'class="icon icon-tabler icon-tabler-chevron-right">',close:Fe+'class="icon icon-tabler icon-tabler-x">',cog:Fe+'class="icon icon-tabler icon-tabler-settings">',coin:Fe+'class="icon icon-tabler icon-tabler-coin">',copy:Fe+'class="icon icon-tabler icon-tabler-copy">',dots:Fe+'class="icon icon-tabler icon-tabler-dots">',edit:Fe+'class="icon icon-tabler icon-tabler-edit">',envelope:Fe+'class="icon icon-tabler icon-tabler-mail">',eye:Fe+'class="icon icon-tabler icon-tabler-eye">',eyeOff:Fe+'class="icon icon-tabler icon-tabler-eye-off">',error:Fe+'class="icon icon-tabler icon-tabler-alert-circle">',filter:Fe+'class="icon icon-tabler icon-tabler-filter">',folder:Fe+'class="icon icon-tabler icon-tabler-folder">',help:Fe+'class="icon icon-tabler icon-tabler-help">',home:Fe+'class="icon icon-tabler icon-tabler-home">',info:Fe+'class="icon icon-tabler icon-tabler-info-circle">',link:Fe+'class="icon icon-tabler icon-tabler-link">',list:Fe+'class="icon icon-tabler icon-tabler-list">',logout:Fe+'class="icon icon-tabler icon-tabler-logout">',math:Fe+'class="icon icon-tabler icon-tabler-math-symbols">',meatballs:Fe+'class="icon icon-tabler icon-tabler-dots-vertical">',minuscircle:Fe+'class="icon icon-tabler icon-tabler-circle-minus">',moon:Fe+'class="icon icon-tabler icon-tabler-moon">',pluscircle:Fe+'class="icon icon-tabler icon-tabler-circle-plus">',plus:Fe+'class="icon icon-tabler icon-tabler-plus">',receipt:Fe+'class="icon icon-tabler icon-tabler-receipt">',refresh:Fe+'class="icon icon-tabler icon-tabler-refresh">',repeat:Fe+'class="icon icon-tabler icon-tabler-repeat">',reportAnalytics:Fe+'class="icon icon-tabler icon-tabler-file-analytics">',reportMoney:Fe+'class="icon icon-tabler icon-tabler-report-money">',search:Fe+'class="icon icon-tabler icon-tabler-search">',sidebarLeft:Fe+'class="icon icon-tabler icon-tabler-layout-sidebar">',sidebarRight:Fe+'class="icon icon-tabler icon-tabler-layout-sidebar-right">',shared:Fe+'class="icon icon-tabler icon-tabler-share">',sortAsc:Fe+'class="icon icon-tabler icon-tabler-sort-ascending">',sortDesc:Fe+'class="icon icon-tabler icon-tabler-sort-descending">',split:Fe+'class="icon icon-tabler icon-tabler-arrows-split-2">',sun:Fe+' class="icon icon-tabler icon-tabler-brightness-up">',tag:Fe+'class="icon icon-tabler icon-tabler-tag">',trash:Fe+'class="icon icon-tabler icon-tabler-trash">',user:Fe+'class="icon icon-tabler icon-tabler-user">',users:Fe+'class="icon icon-tabler icon-tabler-users">',undo:Fe+'class="icon icon-tabler icon-tabler-corner-up-left">',redo:Fe+'class="icon icon-tabler icon-tabler-corner-up-right">'};function ap(t,e){dn[t]||(dn[t]=e)}function W1(t){let e,n;return{c(){e=new Fn(!1),n=_t(),e.a=n},m(i,o){e.m(t[0],i,o),l(i,n,o)},p(i,[o]){o&1&&e.p(i[0])},i:Oe,o:Oe,d(i){i&&(s(n),e.d())}}}function G1(t,e,n){let i,{name:o=""}=e,r={add:"plus",report:"reportAnalytics",success:"checkCircle",warning:"alert"};function u(a){return a in r&&(a=r[a]),a in dn?dn[a]:``}return t.$$set=a=>{"name"in a&&n(1,o=a.name)},t.$$.update=()=>{if(t.$$.dirty&2)e:n(0,i=u(o))},[i,o]}var mf=class extends ue{constructor(e){super(),de(this,e,G1,W1,fe,{name:1})}},At=mf;var uo=[];function kn(t,e=Oe){let n,i=new Set;function o(a){if(fe(t,a)&&(t=a,n)){let c=!uo.length;for(let f of i)f[1](),uo.push(f,t);if(c){for(let f=0;f{i.delete(f),i.size===0&&n&&(n(),n=null)}}return{set:o,update:r,subscribe:u}}var xi=["a[href]:not([disabled])","button:not([disabled])","iframe:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[contentEditable]","[tabindex]:not(.focus-trap)"].join(","),Ut=kn(300),pf=kn(!1),up=t=>Ut.set(!t||t.matches?0:200),fp=t=>pf.set(t&&t.matches);if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion: reduce)");up(t),t.addEventListener("change",up);let e=window.matchMedia("(prefers-color-scheme: dark)");fp(e),e.addEventListener("change",fp)}function tr(t,e,n,i={}){let o={duration:Qi(Ut),easing:"ease-out",fill:"forwards"},r=Object.assign({},o,i);return new Promise(u=>{requestAnimationFrame(()=>{let a=t.animate([e,n],r);a.oncancel=u,a.onfinish=u})})}function dp(t,e=160){return tr(t,{opacity:1},{opacity:.5},{duration:e/2,fill:"backwards"})}function mp(t){return structuredClone(t)}function nr(t,e=300){let n;return(...i)=>{n&&clearTimeout(n),n=setTimeout(()=>t.apply(this,i),e)}}function ir(t,e=300){let n=0;return(...i)=>{let o=new Date().getTime();if(!(o-n"u"||t===""||Array.isArray(t)&&t.length===0||typeof t=="object"&&Object.keys(t).length===0)}function pp(t="",e=""){if(e.length===0)return!0;if(t.length===0||e.length>t.length)return!1;if(e===t)return!0;t=t.toLowerCase(),e=e.toLowerCase();let n=-1;for(let i of e)if(!~(n=t.indexOf(i,n+1)))return!1;return!0}function Xe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function gf(t){return t.type.includes("touch")?t.touches[0].clientX:t.clientX}function bf(t){return t.type.includes("touch")?t.touches[0].clientY:t.clientY}function or(){let t=navigator.userAgent,e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;return!!(e.test(t)||(e=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i,e.test(t.slice(0,4))))}function Y1(t,e){if(e in t)return t[e];for(let n in t)if(n.startsWith(e))return t[n]}function U1(t,e){let n={};return e.forEach(i=>{if(i in t)n[i]=t[i];else for(let o in t)o.startsWith(i)&&(n[o]=t[o])}),n}function Nt(t,e){return t?Array.isArray(e)?U1(t,e):Y1(t,e):{}}function hp(t,e=2){let n=Math.pow(10,e);return Math.round(t*n)/n}function K1(t){let e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),i=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),r=("0"+t.getMinutes()).slice(-2);return`${e}-${n}-${i} ${o}:${r}`}function _f(t,e){if(!t)return"";e=e||new Date().getTime();let n=(e-+t)/1e3,i=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60}],o=[];for(;n>60;){let r=i.find(a=>a.seconds_.height||$<_.height)&&(b=c-_.height-u,(o==="top"||b<_.y)&&(b=d.top-_.height-r),t.style.top=b+window.scrollY+"px");let v=n==="center"?u*2:u;return f<_.x+_.width+v&&(h=f-_.width-v,h<0&&(h=u),h=h+window.scrollX),_.xd.top?"bottom":"top"}function X1(t,e){let n=e.getBoundingClientRect(),i=t.left+t.width/2,o=n.left+n.width/2,r=Math.round(50+(i-o)/n.width*100);return`${Math.max(0,Math.min(100,r))}%`}function cp(t){let e=getComputedStyle(t,null),n=e.overflowX||e.overflow;return/(auto|scroll)/.test(n)?t.scrollWidth>t.clientWidth:!1}function gp(t){if(t instanceof HTMLElement||t instanceof SVGElement){if(cp(t))return!0;for(;t=t.parentElement;)if(cp(t))return!0;return!1}}function bp(t){let e,n;return e=new At({props:{name:t[10]}}),{c(){D(e.$$.fragment)},m(i,o){S(e,i,o),n=!0},p(i,o){let r={};o&1024&&(r.name=i[10]),e.$set(r)},i(i){n||(M(e.$$.fragment,i),n=!0)},o(i){E(e.$$.fragment,i),n=!1},d(i){C(e,i)}}}function Z1(t){let e,n,i,o,r,u,a,c=t[10]&&bp(t),f=t[17].default,d=Ot(f,t,t[16],null),b=[{type:i=t[6]?"submit":"button"},{class:o="button "+t[12]},t[14]],h={};for(let g=0;g{c=null}),Qe()),d&&d.p&&(!r||$&65536)&&Ht(d,f,g,g[16],r?Pt(f,g[16],$,null):Ft(g[16]),null),Tt(e,h=xt(b,[(!r||$&64&&i!==(i=g[6]?"submit":"button"))&&{type:i},(!r||$&4096&&o!==(o="button "+g[12]))&&{class:o},$&16384&&g[14]])),ie(e,"button-normal",!g[8]&&!g[9]&&!g[7]),ie(e,"button-outline",g[7]),ie(e,"button-link",g[8]),ie(e,"button-text",g[9]),ie(e,"button-has-text",g[15].default),ie(e,"round",g[11]),ie(e,"info",g[1]),ie(e,"success",g[2]),ie(e,"warning",g[3]),ie(e,"danger",g[4]),ie(e,"error",g[5]),ie(e,"touching",g[13])},i(g){r||(M(c),M(d,g),r=!0)},o(g){E(c),E(d,g),r=!1},d(g){g&&s(e),c&&c.d(),d&&d.d(g),t[23](null),u=!1,Be(a)}}}function J1(t,e,n){let i,{$$slots:o={},$$scope:r}=e,u=Gl(o),{element:a=void 0}=e,{info:c=!1}=e,{success:f=!1}=e,{warning:d=!1}=e,{danger:b=!1}=e,{error:h=!1}=e,{submit:g=!1}=e,{outline:$=!1}=e,{link:_=!1}=e,{text:v=!1}=e,{icon:w=void 0}=e,{round:k=void 0}=e,{class:x=""}=e,A=!1;function y(q){st.call(this,t,q)}function T(q){st.call(this,t,q)}function L(q){st.call(this,t,q)}function N(q){st.call(this,t,q)}function I(q){st.call(this,t,q)}function F(q){he[q?"unshift":"push"](()=>{a=q,n(0,a)})}let j=()=>n(13,A=!0),W=()=>n(13,A=!1);return t.$$set=q=>{n(26,e=Ke(Ke({},e),bt(q))),"element"in q&&n(0,a=q.element),"info"in q&&n(1,c=q.info),"success"in q&&n(2,f=q.success),"warning"in q&&n(3,d=q.warning),"danger"in q&&n(4,b=q.danger),"error"in q&&n(5,h=q.error),"submit"in q&&n(6,g=q.submit),"outline"in q&&n(7,$=q.outline),"link"in q&&n(8,_=q.link),"text"in q&&n(9,v=q.text),"icon"in q&&n(10,w=q.icon),"round"in q&&n(11,k=q.round),"class"in q&&n(12,x=q.class),"$$scope"in q&&n(16,r=q.$$scope)},t.$$.update=()=>{e:n(14,i=Nt(e,["id","title","disabled","form","aria-pressed","data-","tabindex"]))},e=bt(e),[a,c,f,d,b,h,g,$,_,v,w,k,x,A,i,u,r,o,y,T,L,N,I,F,j,W]}var vf=class extends ue{constructor(e){super(),de(this,e,J1,Z1,fe,{element:0,info:1,success:2,warning:3,danger:4,error:5,submit:6,outline:7,link:8,text:9,icon:10,round:11,class:12})}},Ee=vf;var Q1=t=>({}),_p=t=>({});function eb(t){let e,n,i,o,r,u,a,c,f,d,b,h,g,$,_,v,w=t[14].default,k=Ot(w,t,t[13],null),x=t[14].footer,A=Ot(x,t,t[13],_p);return{c(){e=p("div"),n=p("div"),i=p("div"),o=m(),r=p("h1"),u=J(t[3]),a=m(),c=p("div"),k&&k.c(),f=m(),d=p("div"),A&&A.c(),b=m(),h=p("div"),O(i,"tabindex","0"),O(i,"class","focus-trap focus-trap-top"),O(r,"class","dialog-header"),O(c,"class","dialog-content"),O(d,"class","dialog-footer"),O(h,"tabindex","0"),O(h,"class","focus-trap focus-trap-bottom"),O(n,"class","dialog"),O(e,"role","dialog"),O(e,"aria-modal","true"),O(e,"aria-label",t[3]),O(e,"class",g="dialog-backdrop "+t[2]),ie(e,"opened",t[0])},m(y,T){l(y,e,T),P(e,n),P(n,i),P(n,o),P(n,r),P(r,u),P(n,a),P(n,c),k&&k.m(c,null),t[15](c),P(n,f),P(n,d),A&&A.m(d,null),t[16](d),P(n,b),P(n,h),t[17](n),t[18](e),$=!0,_||(v=[Me(i,"focus",t[8]),Me(h,"focus",t[7]),Me(e,"click",t[9])],_=!0)},p(y,[T]){(!$||T&8)&&je(u,y[3]),k&&k.p&&(!$||T&8192)&&Ht(k,w,y,y[13],$?Pt(w,y[13],T,null):Ft(y[13]),null),A&&A.p&&(!$||T&8192)&&Ht(A,x,y,y[13],$?Pt(x,y[13],T,Q1):Ft(y[13]),_p),(!$||T&8)&&O(e,"aria-label",y[3]),(!$||T&4&&g!==(g="dialog-backdrop "+y[2]))&&O(e,"class",g),(!$||T&5)&&ie(e,"opened",y[0])},i(y){$||(M(k,y),M(A,y),$=!0)},o(y){E(k,y),E(A,y),$=!1},d(y){y&&s(e),k&&k.d(y),t[15](null),A&&A.d(y),t[16](null),t[17](null),t[18](null),_=!1,Be(v)}}}function tb(t,e){let n={ArrowLeft:"nextElementSibling",ArrowRight:"previousElementSibling"},i;for(;(i=n[e]&&t[n[e]])&&!(!i||i.tagName==="BUTTON");)t=i;i&&i.focus()}function nb(t,e,n){let i;Kt(t,Ut,U=>n(23,i=U));let{$$slots:o={},$$scope:r}=e,{class:u=""}=e,{title:a=""}=e,{opened:c=!1}=e,{skipFirstFocus:f=!1}=e,{element:d}=e,b=lt(),h,g,$,_,v,w,k;Mt(()=>{document.body.appendChild(d)});function x(){let U=y().shift(),H=y().pop();!U&&!H&&(g.setAttribute("tabindex",0),U=g),H&&H.scrollIntoView({block:"end"}),U&&U.focus()}function A(){let U=y().shift(),H=y().pop();!U&&!H&&(g.setAttribute("tabindex",0),H=g),U&&U.scrollIntoView({block:"end"}),H&&H.focus()}function y(){let U=Array.from(g.querySelectorAll(xi)),H=Array.from($.querySelectorAll(xi));return[...U,...H]}function T(U){h.contains(U.target)||(U.stopPropagation(),F())}function L(U){if(!c)return;let H=d.contains(document.activeElement);if(U.key==="Tab"&&!H)return x();if(U.key==="Escape")return U.stopPropagation(),F();let Q=U.target&&U.target.closest("button");Q&&U.key.startsWith("Arrow")&&(U.preventDefault(),tb(Q,U.key))}function N(U){U?(k=window.pageYOffset,document.body.classList.add("has-dialog"),document.body.style.top=`-${k}px`):(document.body.classList.remove("has-dialog"),document.scrollingElement.scrollTop=k,document.body.style.top="")}function I(U){c||(U instanceof Event&&(U=U.target),_=U||document.activeElement,_&&_!==document.body&&(_.setAttribute("aria-haspopup","true"),_.setAttribute("aria-expanded","true")),n(1,d.style.display="flex",d),v&&clearTimeout(v),v=setTimeout(()=>{n(0,c=!0),n(1,d.style.display="flex",d),f!==!0&&f!=="true"&&x(),document.addEventListener("keydown",L),N(!0),b("open")},100))}function F(){c&&(n(0,c=!1),_&&_.focus&&_.focus(),w&&clearTimeout(w),w=setTimeout(()=>{n(0,c=!1),n(1,d.style.display="none",d),document.removeEventListener("keydown",L),_&&_!==document.body&&_.removeAttribute("aria-expanded"),N(!1),b("close")},i))}function j(U){he[U?"unshift":"push"](()=>{g=U,n(5,g)})}function W(U){he[U?"unshift":"push"](()=>{$=U,n(6,$)})}function q(U){he[U?"unshift":"push"](()=>{h=U,n(4,h)})}function X(U){he[U?"unshift":"push"](()=>{d=U,n(1,d)})}return t.$$set=U=>{"class"in U&&n(2,u=U.class),"title"in U&&n(3,a=U.title),"opened"in U&&n(0,c=U.opened),"skipFirstFocus"in U&&n(10,f=U.skipFirstFocus),"element"in U&&n(1,d=U.element),"$$scope"in U&&n(13,r=U.$$scope)},[c,d,u,a,h,g,$,x,A,T,f,I,F,r,o,j,W,q,X]}var wf=class extends ue{constructor(e){super(),de(this,e,nb,eb,fe,{class:2,title:3,opened:0,skipFirstFocus:10,element:1,open:11,close:12})}get class(){return this.$$.ctx[2]}set class(e){this.$$set({class:e}),yt()}get title(){return this.$$.ctx[3]}set title(e){this.$$set({title:e}),yt()}get opened(){return this.$$.ctx[0]}set opened(e){this.$$set({opened:e}),yt()}get skipFirstFocus(){return this.$$.ctx[10]}set skipFirstFocus(e){this.$$set({skipFirstFocus:e}),yt()}get element(){return this.$$.ctx[1]}set element(e){this.$$set({element:e}),yt()}get open(){return this.$$.ctx[11]}get close(){return this.$$.ctx[12]}},ui=wf;function Co(t){let e=t-1;return e*e*e+1}function Ai(t,{delay:e=0,duration:n=400,easing:i=Co,x:o=0,y:r=0,opacity:u=0}={}){let a=getComputedStyle(t),c=+a.opacity,f=a.transform==="none"?"":a.transform,d=c*(1-u),[b,h]=Zu(o),[g,$]=Zu(r);return{delay:e,duration:n,easing:i,css:(_,v)=>` - transform: ${f} translate(${(1-_)*b}${h}, ${(1-_)*g}${$}); - opacity: ${c-d*v}`}}function vp({fallback:t,...e}){let n=new Map,i=new Map;function o(u,a,c){let{delay:f=0,duration:d=T=>Math.sqrt(T)*30,easing:b=Co}=Ke(Ke({},e),c),h=u.getBoundingClientRect(),g=a.getBoundingClientRect(),$=h.left-g.left,_=h.top-g.top,v=h.width/g.width,w=h.height/g.height,k=Math.sqrt($*$+_*_),x=getComputedStyle(a),A=x.transform==="none"?"":x.transform,y=+x.opacity;return{delay:f,duration:mt(d)?d(k):d,easing:b,css:(T,L)=>` - opacity: ${T*y}; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __export = (target, all) => { + for (var name2 in all) + __defProp(target, name2, { get: all[name2], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); + +// node_modules/vanilla-swipe/lib/types/index.js +var require_types = __commonJS({ + "node_modules/vanilla-swipe/lib/types/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.TraceDirectionKey = exports.Direction = exports.Axis = void 0; + var TraceDirectionKey; + exports.TraceDirectionKey = TraceDirectionKey; + (function(TraceDirectionKey2) { + TraceDirectionKey2["NEGATIVE"] = "NEGATIVE"; + TraceDirectionKey2["POSITIVE"] = "POSITIVE"; + TraceDirectionKey2["NONE"] = "NONE"; + })(TraceDirectionKey || (exports.TraceDirectionKey = TraceDirectionKey = {})); + var Direction; + exports.Direction = Direction; + (function(Direction2) { + Direction2["TOP"] = "TOP"; + Direction2["LEFT"] = "LEFT"; + Direction2["RIGHT"] = "RIGHT"; + Direction2["BOTTOM"] = "BOTTOM"; + Direction2["NONE"] = "NONE"; + })(Direction || (exports.Direction = Direction = {})); + var Axis; + exports.Axis = Axis; + (function(Axis2) { + Axis2["X"] = "x"; + Axis2["Y"] = "y"; + })(Axis || (exports.Axis = Axis = {})); + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculateDirection.js +var require_calculateDirection = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculateDirection.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculateDirection = calculateDirection; + var _types = require_types(); + function calculateDirection(trace) { + var direction; + var negative = _types.TraceDirectionKey.NEGATIVE; + var positive = _types.TraceDirectionKey.POSITIVE; + var current = trace[trace.length - 1]; + var previous = trace[trace.length - 2] || 0; + if (trace.every(function(i) { + return i === 0; + })) { + return _types.TraceDirectionKey.NONE; + } + direction = current > previous ? positive : negative; + if (current === 0) { + direction = previous < 0 ? positive : negative; + } + return direction; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/common.js +var require_common = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/common.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.resolveAxisDirection = exports.getDirectionValue = exports.getDirectionKey = exports.getDifference = void 0; + var _types = require_types(); + var getDirectionKey = function getDirectionKey2() { + var object = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + var key = Object.keys(object).toString(); + switch (key) { + case _types.TraceDirectionKey.POSITIVE: + return _types.TraceDirectionKey.POSITIVE; + case _types.TraceDirectionKey.NEGATIVE: + return _types.TraceDirectionKey.NEGATIVE; + default: + return _types.TraceDirectionKey.NONE; + } + }; + exports.getDirectionKey = getDirectionKey; + var getDirectionValue = function getDirectionValue2() { + var values = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; + return values[values.length - 1] || 0; + }; + exports.getDirectionValue = getDirectionValue; + var getDifference = function getDifference2() { + var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; + var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; + return Math.abs(x - y); + }; + exports.getDifference = getDifference; + var resolveAxisDirection = function resolveAxisDirection2(axis, key) { + var negative = _types.Direction.LEFT; + var positive = _types.Direction.RIGHT; + var direction = _types.Direction.NONE; + if (axis === _types.Axis.Y) { + negative = _types.Direction.BOTTOM; + positive = _types.Direction.TOP; + } + if (key === _types.TraceDirectionKey.NEGATIVE) { + direction = negative; + } + if (key === _types.TraceDirectionKey.POSITIVE) { + direction = positive; + } + return direction; + }; + exports.resolveAxisDirection = resolveAxisDirection; + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculateDirectionDelta.js +var require_calculateDirectionDelta = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculateDirectionDelta.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculateDirectionDelta = calculateDirectionDelta; + var _types = require_types(); + var _common = require_common(); + function calculateDirectionDelta(traceDirections) { + var delta = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; + var length = traceDirections.length; + var i = length - 1; + var direction = _types.TraceDirectionKey.NONE; + for (; i >= 0; i--) { + var current = traceDirections[i]; + var currentKey = (0, _common.getDirectionKey)(current); + var currentValue = (0, _common.getDirectionValue)(current[currentKey]); + var prev = traceDirections[i - 1] || {}; + var prevKey = (0, _common.getDirectionKey)(prev); + var prevValue = (0, _common.getDirectionValue)(prev[prevKey]); + var difference = (0, _common.getDifference)(currentValue, prevValue); + if (difference >= delta) { + direction = currentKey; + break; + } else { + direction = prevKey; + } + } + return direction; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculateDuration.js +var require_calculateDuration = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculateDuration.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculateDuration = calculateDuration; + function calculateDuration() { + var prevTime = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; + var nextTime = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; + return prevTime ? nextTime - prevTime : 0; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculateMovingPosition.js +var require_calculateMovingPosition = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculateMovingPosition.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculateMovingPosition = calculateMovingPosition; + function calculateMovingPosition(e) { + if ("changedTouches" in e) { + var touches = e.changedTouches && e.changedTouches[0]; + return { + x: touches && touches.clientX, + y: touches && touches.clientY + }; + } + return { + x: e.clientX, + y: e.clientY + }; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/updateTrace.js +var require_updateTrace = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/updateTrace.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.updateTrace = updateTrace; + function updateTrace(trace, value2) { + var last = trace[trace.length - 1]; + if (last !== value2) { + trace.push(value2); + } + return trace; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculateTraceDirections.js +var require_calculateTraceDirections = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculateTraceDirections.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculateTraceDirections = calculateTraceDirections; + var _types = require_types(); + function _defineProperty(obj, key, value2) { + if (key in obj) { + Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true }); + } else { + obj[key] = value2; + } + return obj; + } + function calculateTraceDirections() { + var trace = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; + var ticks = []; + var positive = _types.TraceDirectionKey.POSITIVE; + var negative = _types.TraceDirectionKey.NEGATIVE; + var i = 0; + var tick2 = []; + var direction = _types.TraceDirectionKey.NONE; + for (; i < trace.length; i++) { + var current = trace[i]; + var prev = trace[i - 1]; + if (tick2.length) { + var currentDirection = current > prev ? positive : negative; + if (direction === _types.TraceDirectionKey.NONE) { + direction = currentDirection; + } + if (currentDirection === direction) { + tick2.push(current); + } else { + ticks.push(_defineProperty({}, direction, tick2.slice())); + tick2 = []; + tick2.push(current); + direction = currentDirection; + } + } else { + if (current !== 0) { + direction = current > 0 ? positive : negative; + } + tick2.push(current); + } + } + if (tick2.length) { + ticks.push(_defineProperty({}, direction, tick2)); + } + return ticks; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/resolveDirection.js +var require_resolveDirection = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/resolveDirection.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.resolveDirection = resolveDirection; + var _calculateDirection = require_calculateDirection(); + var _calculateTraceDirections = require_calculateTraceDirections(); + var _calculateDirectionDelta = require_calculateDirectionDelta(); + var _common = require_common(); + var _types = require_types(); + function resolveDirection(trace) { + var axis = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _types.Axis.X; + var directionDelta = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; + if (directionDelta) { + var directions = (0, _calculateTraceDirections.calculateTraceDirections)(trace); + var _direction = (0, _calculateDirectionDelta.calculateDirectionDelta)(directions, directionDelta); + return (0, _common.resolveAxisDirection)(axis, _direction); + } + var direction = (0, _calculateDirection.calculateDirection)(trace); + return (0, _common.resolveAxisDirection)(axis, direction); + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculateVelocity.js +var require_calculateVelocity = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculateVelocity.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculateVelocity = calculateVelocity; + function calculateVelocity(x, y, time) { + var magnitude = Math.sqrt(x * x + y * y); + return magnitude / (time || 1); + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/calculatePosition.js +var require_calculatePosition = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/calculatePosition.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.calculatePosition = calculatePosition; + var _updateTrace = require_updateTrace(); + var _resolveDirection = require_resolveDirection(); + var _calculateDuration = require_calculateDuration(); + var _calculateVelocity = require_calculateVelocity(); + var _types = require_types(); + function calculatePosition(state, options) { + var start = state.start, x = state.x, y = state.y, traceX = state.traceX, traceY = state.traceY; + var rotatePosition = options.rotatePosition, directionDelta = options.directionDelta; + var deltaX = rotatePosition.x - x; + var deltaY = y - rotatePosition.y; + var absX = Math.abs(deltaX); + var absY = Math.abs(deltaY); + (0, _updateTrace.updateTrace)(traceX, deltaX); + (0, _updateTrace.updateTrace)(traceY, deltaY); + var directionX = (0, _resolveDirection.resolveDirection)(traceX, _types.Axis.X, directionDelta); + var directionY = (0, _resolveDirection.resolveDirection)(traceY, _types.Axis.Y, directionDelta); + var duration2 = (0, _calculateDuration.calculateDuration)(start, Date.now()); + var velocity = (0, _calculateVelocity.calculateVelocity)(absX, absY, duration2); + return { + absX, + absY, + deltaX, + deltaY, + directionX, + directionY, + duration: duration2, + positionX: rotatePosition.x, + positionY: rotatePosition.y, + velocity + }; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/checkIsMoreThanSingleTouches.js +var require_checkIsMoreThanSingleTouches = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/checkIsMoreThanSingleTouches.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.checkIsMoreThanSingleTouches = void 0; + var checkIsMoreThanSingleTouches = function checkIsMoreThanSingleTouches2(e) { + return Boolean(e.touches && e.touches.length > 1); + }; + exports.checkIsMoreThanSingleTouches = checkIsMoreThanSingleTouches; + } +}); + +// node_modules/vanilla-swipe/lib/utils/createOptions.js +var require_createOptions = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/createOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.createOptions = createOptions; + function createOptions() { + var proxy = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + Object.defineProperty(proxy, "passive", { + get: function get() { + this.isPassiveSupported = true; + return true; + }, + enumerable: true + }); + return proxy; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/checkIsPassiveSupported.js +var require_checkIsPassiveSupported = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/checkIsPassiveSupported.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.checkIsPassiveSupported = checkIsPassiveSupported; + exports.noop = void 0; + var _createOptions = require_createOptions(); + function checkIsPassiveSupported(isPassiveSupported) { + if (typeof isPassiveSupported === "boolean") { + return isPassiveSupported; + } + var proxy = { + isPassiveSupported + }; + try { + var options = (0, _createOptions.createOptions)(proxy); + window.addEventListener("checkIsPassiveSupported", noop2, options); + window.removeEventListener("checkIsPassiveSupported", noop2, options); + } catch (err) { + } + return proxy.isPassiveSupported; + } + var noop2 = function noop3() { + }; + exports.noop = noop2; + } +}); + +// node_modules/vanilla-swipe/lib/utils/checkIsTouchEventsSupported.js +var require_checkIsTouchEventsSupported = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/checkIsTouchEventsSupported.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.checkIsTouchEventsSupported = void 0; + function _typeof(obj) { + "@babel/helpers - typeof"; + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) { + return typeof obj2; + } : function(obj2) { + return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; + }, _typeof(obj); + } + var checkIsTouchEventsSupported = function checkIsTouchEventsSupported2() { + return (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && ("ontouchstart" in window || Boolean(window.navigator.maxTouchPoints)); + }; + exports.checkIsTouchEventsSupported = checkIsTouchEventsSupported; + } +}); + +// node_modules/vanilla-swipe/lib/utils/getInitialState.js +var require_getInitialState = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/getInitialState.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getInitialState = void 0; + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function(sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), true).forEach(function(key) { + _defineProperty(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + function _defineProperty(obj, key, value2) { + if (key in obj) { + Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true }); + } else { + obj[key] = value2; + } + return obj; + } + var getInitialState = function getInitialState2() { + var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return _objectSpread({ + x: 0, + y: 0, + start: 0, + isSwiping: false, + traceX: [], + traceY: [] + }, options); + }; + exports.getInitialState = getInitialState; + } +}); + +// node_modules/vanilla-swipe/lib/utils/getInitialProps.js +var require_getInitialProps = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/getInitialProps.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getInitialProps = void 0; + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function(sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), true).forEach(function(key) { + _defineProperty(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + function _defineProperty(obj, key, value2) { + if (key in obj) { + Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true }); + } else { + obj[key] = value2; + } + return obj; + } + var getInitialProps = function getInitialProps2() { + var props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return _objectSpread({ + element: null, + target: null, + delta: 10, + directionDelta: 0, + rotationAngle: 0, + mouseTrackingEnabled: false, + touchTrackingEnabled: true, + preventDefaultTouchmoveEvent: false, + preventTrackingOnMouseleave: false + }, props2); + }; + exports.getInitialProps = getInitialProps; + } +}); + +// node_modules/vanilla-swipe/lib/utils/getOptions.js +var require_getOptions = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/getOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.getOptions = getOptions; + function getOptions() { + var isPassiveSupported = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; + if (isPassiveSupported) { + return { + passive: false + }; + } + return {}; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/rotateByAngle.js +var require_rotateByAngle = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/rotateByAngle.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.rotateByAngle = rotateByAngle; + function rotateByAngle(position) { + var angle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; + if (angle === 0) { + return position; + } + var x = position.x, y = position.y; + var angleInRadians = Math.PI / 180 * angle; + var rotatedX = x * Math.cos(angleInRadians) + y * Math.sin(angleInRadians); + var rotatedY = y * Math.cos(angleInRadians) - x * Math.sin(angleInRadians); + return { + x: rotatedX, + y: rotatedY + }; + } + } +}); + +// node_modules/vanilla-swipe/lib/utils/index.js +var require_utils = __commonJS({ + "node_modules/vanilla-swipe/lib/utils/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _calculateDirection = require_calculateDirection(); + Object.keys(_calculateDirection).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculateDirection[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculateDirection[key]; + } + }); + }); + var _calculateDirectionDelta = require_calculateDirectionDelta(); + Object.keys(_calculateDirectionDelta).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculateDirectionDelta[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculateDirectionDelta[key]; + } + }); + }); + var _calculateDuration = require_calculateDuration(); + Object.keys(_calculateDuration).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculateDuration[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculateDuration[key]; + } + }); + }); + var _calculateMovingPosition = require_calculateMovingPosition(); + Object.keys(_calculateMovingPosition).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculateMovingPosition[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculateMovingPosition[key]; + } + }); + }); + var _calculatePosition = require_calculatePosition(); + Object.keys(_calculatePosition).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculatePosition[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculatePosition[key]; + } + }); + }); + var _calculateTraceDirections = require_calculateTraceDirections(); + Object.keys(_calculateTraceDirections).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculateTraceDirections[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculateTraceDirections[key]; + } + }); + }); + var _calculateVelocity = require_calculateVelocity(); + Object.keys(_calculateVelocity).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _calculateVelocity[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _calculateVelocity[key]; + } + }); + }); + var _checkIsMoreThanSingleTouches = require_checkIsMoreThanSingleTouches(); + Object.keys(_checkIsMoreThanSingleTouches).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _checkIsMoreThanSingleTouches[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _checkIsMoreThanSingleTouches[key]; + } + }); + }); + var _checkIsPassiveSupported = require_checkIsPassiveSupported(); + Object.keys(_checkIsPassiveSupported).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _checkIsPassiveSupported[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _checkIsPassiveSupported[key]; + } + }); + }); + var _checkIsTouchEventsSupported = require_checkIsTouchEventsSupported(); + Object.keys(_checkIsTouchEventsSupported).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _checkIsTouchEventsSupported[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _checkIsTouchEventsSupported[key]; + } + }); + }); + var _common = require_common(); + Object.keys(_common).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _common[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _common[key]; + } + }); + }); + var _createOptions = require_createOptions(); + Object.keys(_createOptions).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _createOptions[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _createOptions[key]; + } + }); + }); + var _getInitialState = require_getInitialState(); + Object.keys(_getInitialState).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _getInitialState[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _getInitialState[key]; + } + }); + }); + var _getInitialProps = require_getInitialProps(); + Object.keys(_getInitialProps).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _getInitialProps[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _getInitialProps[key]; + } + }); + }); + var _getOptions = require_getOptions(); + Object.keys(_getOptions).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _getOptions[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _getOptions[key]; + } + }); + }); + var _resolveDirection = require_resolveDirection(); + Object.keys(_resolveDirection).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _resolveDirection[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _resolveDirection[key]; + } + }); + }); + var _rotateByAngle = require_rotateByAngle(); + Object.keys(_rotateByAngle).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _rotateByAngle[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _rotateByAngle[key]; + } + }); + }); + var _updateTrace = require_updateTrace(); + Object.keys(_updateTrace).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (key in exports && exports[key] === _updateTrace[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _updateTrace[key]; + } + }); + }); + } +}); + +// node_modules/vanilla-swipe/lib/index.js +var require_lib = __commonJS({ + "node_modules/vanilla-swipe/lib/index.js"(exports) { + "use strict"; + function _typeof(obj) { + "@babel/helpers - typeof"; + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) { + return typeof obj2; + } : function(obj2) { + return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; + }, _typeof(obj); + } + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _exportNames = {}; + exports["default"] = void 0; + var Utils2 = _interopRequireWildcard(require_utils()); + var _types = require_types(); + Object.keys(_types).forEach(function(key) { + if (key === "default" || key === "__esModule") + return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) + return; + if (key in exports && exports[key] === _types[key]) + return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _types[key]; + } + }); + }); + function _getRequireWildcardCache(nodeInterop) { + if (typeof WeakMap !== "function") + return null; + var cacheBabelInterop = /* @__PURE__ */ new WeakMap(); + var cacheNodeInterop = /* @__PURE__ */ new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) { + return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) { + return obj; + } + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { + return { "default": obj }; + } + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) { + return cache.get(obj); + } + var newObj = {}; + var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) { + if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + if (desc && (desc.get || desc.set)) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + newObj["default"] = obj; + if (cache) { + cache.set(obj, newObj); + } + return newObj; + } + function _classCallCheck(instance101, Constructor) { + if (!(instance101 instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + function _defineProperties(target, props2) { + for (var i = 0; i < props2.length; i++) { + var descriptor = props2[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) + descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) + _defineProperties(Constructor.prototype, protoProps); + if (staticProps) + _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { writable: false }); + return Constructor; + } + function _defineProperty(obj, key, value2) { + if (key in obj) { + Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true }); + } else { + obj[key] = value2; + } + return obj; + } + var VanillaSwipe2 = /* @__PURE__ */ function() { + function VanillaSwipe3(props2) { + _classCallCheck(this, VanillaSwipe3); + _defineProperty(this, "state", void 0); + _defineProperty(this, "props", void 0); + this.state = Utils2.getInitialState(); + this.props = Utils2.getInitialProps(props2); + this.handleSwipeStart = this.handleSwipeStart.bind(this); + this.handleSwipeMove = this.handleSwipeMove.bind(this); + this.handleSwipeEnd = this.handleSwipeEnd.bind(this); + this.handleMouseDown = this.handleMouseDown.bind(this); + this.handleMouseMove = this.handleMouseMove.bind(this); + this.handleMouseUp = this.handleMouseUp.bind(this); + this.handleMouseLeave = this.handleMouseLeave.bind(this); + } + _createClass(VanillaSwipe3, [{ + key: "init", + value: function init3() { + this.setupTouchListeners(); + this.setupMouseListeners(); + } + }, { + key: "update", + value: function update2(props2) { + var prevProps = this.props; + var nextProps = Object.assign({}, prevProps, props2); + if (prevProps.element !== nextProps.element || prevProps.target !== nextProps.target) { + this.destroy(); + this.props = nextProps; + this.init(); + return; + } + this.props = nextProps; + if (prevProps.mouseTrackingEnabled !== nextProps.mouseTrackingEnabled || prevProps.preventTrackingOnMouseleave !== nextProps.preventTrackingOnMouseleave) { + this.cleanupMouseListeners(); + nextProps.mouseTrackingEnabled ? this.setupMouseListeners() : this.cleanupMouseListeners(); + } + if (prevProps.touchTrackingEnabled !== nextProps.touchTrackingEnabled) { + this.cleanupTouchListeners(); + nextProps.touchTrackingEnabled ? this.setupTouchListeners() : this.cleanupTouchListeners(); + } + } + }, { + key: "destroy", + value: function destroy() { + this.cleanupMouseListeners(); + this.cleanupTouchListeners(); + this.state = Utils2.getInitialState(); + this.props = Utils2.getInitialProps(); + } + }, { + key: "setupTouchListeners", + value: function setupTouchListeners() { + var _this$props = this.props, element3 = _this$props.element, target = _this$props.target, touchTrackingEnabled = _this$props.touchTrackingEnabled; + if (element3 && touchTrackingEnabled) { + var listener = target || element3; + var isPassiveSupported = Utils2.checkIsPassiveSupported(); + var options = Utils2.getOptions(isPassiveSupported); + listener.addEventListener("touchstart", this.handleSwipeStart, options); + listener.addEventListener("touchmove", this.handleSwipeMove, options); + listener.addEventListener("touchend", this.handleSwipeEnd, options); + } + } + }, { + key: "cleanupTouchListeners", + value: function cleanupTouchListeners() { + var _this$props2 = this.props, element3 = _this$props2.element, target = _this$props2.target; + var listener = target || element3; + if (listener) { + listener.removeEventListener("touchstart", this.handleSwipeStart); + listener.removeEventListener("touchmove", this.handleSwipeMove); + listener.removeEventListener("touchend", this.handleSwipeEnd); + } + } + }, { + key: "setupMouseListeners", + value: function setupMouseListeners() { + var _this$props3 = this.props, element3 = _this$props3.element, mouseTrackingEnabled = _this$props3.mouseTrackingEnabled, preventTrackingOnMouseleave = _this$props3.preventTrackingOnMouseleave; + if (mouseTrackingEnabled && element3) { + element3.addEventListener("mousedown", this.handleMouseDown); + element3.addEventListener("mousemove", this.handleMouseMove); + element3.addEventListener("mouseup", this.handleMouseUp); + if (preventTrackingOnMouseleave) { + element3.addEventListener("mouseleave", this.handleMouseLeave); + } + } + } + }, { + key: "cleanupMouseListeners", + value: function cleanupMouseListeners() { + var element3 = this.props.element; + if (element3) { + element3.removeEventListener("mousedown", this.handleMouseDown); + element3.removeEventListener("mousemove", this.handleMouseMove); + element3.removeEventListener("mouseup", this.handleMouseUp); + element3.removeEventListener("mouseleave", this.handleMouseLeave); + } + } + }, { + key: "getEventData", + value: function getEventData(e) { + var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { + directionDelta: 0 + }; + var rotationAngle = this.props.rotationAngle; + var directionDelta = options.directionDelta; + var movingPosition = Utils2.calculateMovingPosition(e); + var rotatePosition = Utils2.rotateByAngle(movingPosition, rotationAngle); + return Utils2.calculatePosition(this.state, { + rotatePosition, + directionDelta + }); + } + }, { + key: "handleSwipeStart", + value: function handleSwipeStart(e) { + if (Utils2.checkIsMoreThanSingleTouches(e)) + return; + var rotationAngle = this.props.rotationAngle; + var movingPosition = Utils2.calculateMovingPosition(e); + var _Utils$rotateByAngle = Utils2.rotateByAngle(movingPosition, rotationAngle), x = _Utils$rotateByAngle.x, y = _Utils$rotateByAngle.y; + this.state = Utils2.getInitialState({ + isSwiping: false, + start: Date.now(), + x, + y + }); + } + }, { + key: "handleSwipeMove", + value: function handleSwipeMove(e) { + var _this$state = this.state, x = _this$state.x, y = _this$state.y, isSwiping = _this$state.isSwiping; + if (!x || !y || Utils2.checkIsMoreThanSingleTouches(e)) + return; + var directionDelta = this.props.directionDelta || 0; + var _this$getEventData = this.getEventData(e, { + directionDelta + }), absX = _this$getEventData.absX, absY = _this$getEventData.absY, deltaX = _this$getEventData.deltaX, deltaY = _this$getEventData.deltaY, directionX = _this$getEventData.directionX, directionY = _this$getEventData.directionY, duration2 = _this$getEventData.duration, velocity = _this$getEventData.velocity; + var _this$props4 = this.props, delta = _this$props4.delta, preventDefaultTouchmoveEvent = _this$props4.preventDefaultTouchmoveEvent, onSwipeStart = _this$props4.onSwipeStart, onSwiping = _this$props4.onSwiping; + if (e.cancelable && preventDefaultTouchmoveEvent) + e.preventDefault(); + if (absX < Number(delta) && absY < Number(delta) && !isSwiping) + return; + if (onSwipeStart && !isSwiping) { + onSwipeStart(e, { + deltaX, + deltaY, + absX, + absY, + directionX, + directionY, + duration: duration2, + velocity + }); + } + this.state.isSwiping = true; + if (onSwiping) { + onSwiping(e, { + deltaX, + deltaY, + absX, + absY, + directionX, + directionY, + duration: duration2, + velocity + }); + } + } + }, { + key: "handleSwipeEnd", + value: function handleSwipeEnd(e) { + var _this$props5 = this.props, onSwiped = _this$props5.onSwiped, onTap = _this$props5.onTap; + if (this.state.isSwiping) { + var directionDelta = this.props.directionDelta || 0; + var position = this.getEventData(e, { + directionDelta + }); + onSwiped && onSwiped(e, position); + } else { + var _position = this.getEventData(e); + onTap && onTap(e, _position); + } + this.state = Utils2.getInitialState(); + } + }, { + key: "handleMouseDown", + value: function handleMouseDown(e) { + var target = this.props.target; + if (target) { + if (target === e.target) { + this.handleSwipeStart(e); + } + } else { + this.handleSwipeStart(e); + } + } + }, { + key: "handleMouseMove", + value: function handleMouseMove(e) { + this.handleSwipeMove(e); + } + }, { + key: "handleMouseUp", + value: function handleMouseUp(e) { + var isSwiping = this.state.isSwiping; + var target = this.props.target; + if (target) { + if (target === e.target || isSwiping) { + this.handleSwipeEnd(e); + } + } else { + this.handleSwipeEnd(e); + } + } + }, { + key: "handleMouseLeave", + value: function handleMouseLeave(e) { + var isSwiping = this.state.isSwiping; + if (isSwiping) { + this.handleSwipeEnd(e); + } + } + }], [{ + key: "isTouchEventsSupported", + value: function isTouchEventsSupported() { + return Utils2.checkIsTouchEventsSupported(); + } + }]); + return VanillaSwipe3; + }(); + exports["default"] = VanillaSwipe2; + } +}); + +// node_modules/prismjs/prism.js +var require_prism = __commonJS({ + "node_modules/prismjs/prism.js"(exports, module) { + var _self = typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope ? self : {}; + var Prism2 = function(_self2) { + var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i; + var uniqueId = 0; + var plainTextGrammar = {}; + var _ = { + /** + * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the + * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load + * additional languages or plugins yourself. + * + * By setting this value to `true`, Prism will not automatically highlight all code elements on the page. + * + * You obviously have to change this value before the automatic highlighting started. To do this, you can add an + * empty Prism object into the global scope before loading the Prism script like this: + * + * ```js + * window.Prism = window.Prism || {}; + * Prism.manual = true; + * // add a new \";\n\t\tunsubscribe = listen(\n\t\t\twindow,\n\t\t\t'message',\n\t\t\t/** @param {MessageEvent} event */ (event) => {\n\t\t\t\tif (event.source === iframe.contentWindow) fn();\n\t\t\t}\n\t\t);\n\t} else {\n\t\tiframe.src = 'about:blank';\n\t\tiframe.onload = () => {\n\t\t\tunsubscribe = listen(iframe.contentWindow, 'resize', fn);\n\t\t\t// make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n\t\t\t// see https://github.com/sveltejs/svelte/issues/4233\n\t\t\tfn();\n\t\t};\n\t}\n\tappend(node, iframe);\n\treturn () => {\n\t\tif (crossorigin) {\n\t\t\tunsubscribe();\n\t\t} else if (unsubscribe && iframe.contentWindow) {\n\t\t\tunsubscribe();\n\t\t}\n\t\tdetach(iframe);\n\t};\n}\nexport const resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({\n\tbox: 'content-box'\n});\nexport const resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({\n\tbox: 'border-box'\n});\nexport const resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton(\n\t{ box: 'device-pixel-content-box' }\n);\nexport { ResizeObserverSingleton };\n\n/**\n * @returns {void} */\nexport function toggle_class(element, name, toggle) {\n\t// The `!!` is required because an `undefined` flag means flipping the current state.\n\telement.classList.toggle(name, !!toggle);\n}\n\n/**\n * @template T\n * @param {string} type\n * @param {T} [detail]\n * @param {{ bubbles?: boolean, cancelable?: boolean }} [options]\n * @returns {CustomEvent}\n */\nexport function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n\treturn new CustomEvent(type, { detail, bubbles, cancelable });\n}\n\n/**\n * @param {string} selector\n * @param {HTMLElement} parent\n * @returns {ChildNodeArray}\n */\nexport function query_selector_all(selector, parent = document.body) {\n\treturn Array.from(parent.querySelectorAll(selector));\n}\n\n/**\n * @param {string} nodeId\n * @param {HTMLElement} head\n * @returns {any[]}\n */\nexport function head_selector(nodeId, head) {\n\tconst result = [];\n\tlet started = 0;\n\tfor (const node of head.childNodes) {\n\t\tif (node.nodeType === 8 /* comment node */) {\n\t\t\tconst comment = node.textContent.trim();\n\t\t\tif (comment === `HEAD_${nodeId}_END`) {\n\t\t\t\tstarted -= 1;\n\t\t\t\tresult.push(node);\n\t\t\t} else if (comment === `HEAD_${nodeId}_START`) {\n\t\t\t\tstarted += 1;\n\t\t\t\tresult.push(node);\n\t\t\t}\n\t\t} else if (started > 0) {\n\t\t\tresult.push(node);\n\t\t}\n\t}\n\treturn result;\n}\n/** */\nexport class HtmlTag {\n\t/**\n\t * @private\n\t * @default false\n\t */\n\tis_svg = false;\n\t/** parent for creating node */\n\te = undefined;\n\t/** html tag nodes */\n\tn = undefined;\n\t/** target */\n\tt = undefined;\n\t/** anchor */\n\ta = undefined;\n\tconstructor(is_svg = false) {\n\t\tthis.is_svg = is_svg;\n\t\tthis.e = this.n = null;\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @returns {void}\n\t */\n\tc(html) {\n\t\tthis.h(html);\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @param {HTMLElement | SVGElement} target\n\t * @param {HTMLElement | SVGElement} anchor\n\t * @returns {void}\n\t */\n\tm(html, target, anchor = null) {\n\t\tif (!this.e) {\n\t\t\tif (this.is_svg)\n\t\t\t\tthis.e = svg_element(/** @type {keyof SVGElementTagNameMap} */ (target.nodeName));\n\t\t\t/** #7364 target for