@plaidev/karte-action-sdk 1.1.268-29151748.f54dfcfb → 1.1.269-29151822.663827f4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { get, writable } from "svelte/store";
2
2
  import { afterUpdate as afterUpdate$1, beforeUpdate as beforeUpdate$1, createEventDispatcher, getContext, onDestroy as onDestroy$1, onMount as onMount$1, setContext, tick as tick$1 } from "svelte";
3
+ import { HtmlTagHydration, SvelteComponent, add_render_callback, append_hydration, append_styles, assign, attr, binding_callbacks, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_svg_element, claim_text, component_subscribe, construct_svelte_component, create_component, create_in_transition, create_slot, destroy_component, destroy_each, detach, element, empty, get_all_dirty_from_scope, get_slot_changes, get_spread_update, group_outros, head_selector, init, insert_hydration, is_function, listen, mount_component, noop, null_to_empty, prevent_default, run_all, safe_not_equal, set_attributes, set_custom_element_data_map, set_data, set_store_value, set_style, space, src_url_equal, subscribe, svg_element, text, toggle_class, transition_in, transition_out, update_slot_base } from "svelte/internal";
3
4
  import { cubicOut, elasticOut, linear } from "svelte/easing";
4
5
 
5
6
  //#region rolldown:runtime
@@ -2650,9 +2651,9 @@ function isEmpty(value) {
2650
2651
  function createInputRegisterer(formData$1) {
2651
2652
  const registerInput$1 = ({ name, statePath, validator = () => true, initialValue }) => {
2652
2653
  const writableValue = {
2653
- subscribe(run$1) {
2654
+ subscribe(run) {
2654
2655
  return formData$1.subscribe((formData$2) => {
2655
- run$1(formData$2[name]?.value);
2656
+ run(formData$2[name]?.value);
2656
2657
  });
2657
2658
  },
2658
2659
  set(value) {
@@ -2681,9 +2682,9 @@ function createInputRegisterer(formData$1) {
2681
2682
  });
2682
2683
  }
2683
2684
  };
2684
- const readableIsValid = { subscribe(run$1) {
2685
+ const readableIsValid = { subscribe(run) {
2685
2686
  return formData$1.subscribe((formData$2) => {
2686
- run$1(formData$2[name]?.isValid);
2687
+ run(formData$2[name]?.isValid);
2687
2688
  });
2688
2689
  } };
2689
2690
  if (isEmpty(get(writableValue))) writableValue.set(initialValue);
@@ -3053,8 +3054,8 @@ function getLocalStore(key) {
3053
3054
  return;
3054
3055
  }
3055
3056
  if (item.val === void 0) return;
3056
- const now$1 = new Date().getTime();
3057
- if (now$1 - item.last > item.expire) {
3057
+ const now = new Date().getTime();
3058
+ if (now - item.last > item.expire) {
3058
3059
  localStorage.removeItem(lsKey);
3059
3060
  return;
3060
3061
  }
@@ -3129,831 +3130,6 @@ const LAYOUT_COMPONENT_NAMES = [
3129
3130
  "StateItem"
3130
3131
  ];
3131
3132
 
3132
- //#endregion
3133
- //#region ../../node_modules/.pnpm/svelte@3.53.1/node_modules/svelte/internal/index.mjs
3134
- function noop() {}
3135
- const identity = (x) => x;
3136
- function assign(tar, src) {
3137
- for (const k in src) tar[k] = src[k];
3138
- return tar;
3139
- }
3140
- function run(fn) {
3141
- return fn();
3142
- }
3143
- function blank_object() {
3144
- return Object.create(null);
3145
- }
3146
- function run_all(fns) {
3147
- fns.forEach(run);
3148
- }
3149
- function is_function(thing) {
3150
- return typeof thing === "function";
3151
- }
3152
- function safe_not_equal(a, b) {
3153
- return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
3154
- }
3155
- let src_url_equal_anchor;
3156
- function src_url_equal(element_src, url) {
3157
- if (!src_url_equal_anchor) src_url_equal_anchor = document.createElement("a");
3158
- src_url_equal_anchor.href = url;
3159
- return element_src === src_url_equal_anchor.href;
3160
- }
3161
- function is_empty(obj) {
3162
- return Object.keys(obj).length === 0;
3163
- }
3164
- function subscribe(store, ...callbacks) {
3165
- if (store == null) return noop;
3166
- const unsub = store.subscribe(...callbacks);
3167
- return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
3168
- }
3169
- function component_subscribe(component, store, callback$5) {
3170
- component.$$.on_destroy.push(subscribe(store, callback$5));
3171
- }
3172
- function create_slot(definition, ctx, $$scope, fn) {
3173
- if (definition) {
3174
- const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);
3175
- return definition[0](slot_ctx);
3176
- }
3177
- }
3178
- function get_slot_context(definition, ctx, $$scope, fn) {
3179
- return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx;
3180
- }
3181
- function get_slot_changes(definition, $$scope, dirty, fn) {
3182
- if (definition[2] && fn) {
3183
- const lets = definition[2](fn(dirty));
3184
- if ($$scope.dirty === void 0) return lets;
3185
- if (typeof lets === "object") {
3186
- const merged = [];
3187
- const len = Math.max($$scope.dirty.length, lets.length);
3188
- for (let i = 0; i < len; i += 1) merged[i] = $$scope.dirty[i] | lets[i];
3189
- return merged;
3190
- }
3191
- return $$scope.dirty | lets;
3192
- }
3193
- return $$scope.dirty;
3194
- }
3195
- function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {
3196
- if (slot_changes) {
3197
- const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);
3198
- slot.p(slot_context, slot_changes);
3199
- }
3200
- }
3201
- function get_all_dirty_from_scope($$scope) {
3202
- if ($$scope.ctx.length > 32) {
3203
- const dirty = [];
3204
- const length = $$scope.ctx.length / 32;
3205
- for (let i = 0; i < length; i++) dirty[i] = -1;
3206
- return dirty;
3207
- }
3208
- return -1;
3209
- }
3210
- function null_to_empty(value) {
3211
- return value == null ? "" : value;
3212
- }
3213
- function set_store_value(store, ret, value) {
3214
- store.set(value);
3215
- return ret;
3216
- }
3217
- const is_client = typeof window !== "undefined";
3218
- let now = is_client ? () => window.performance.now() : () => Date.now();
3219
- let raf = is_client ? (cb) => requestAnimationFrame(cb) : noop;
3220
- const tasks = new Set();
3221
- function run_tasks(now$1) {
3222
- tasks.forEach((task) => {
3223
- if (!task.c(now$1)) {
3224
- tasks.delete(task);
3225
- task.f();
3226
- }
3227
- });
3228
- if (tasks.size !== 0) raf(run_tasks);
3229
- }
3230
- /**
3231
- * Creates a new task that runs on each raf frame
3232
- * until it returns a falsy value or is aborted
3233
- */
3234
- function loop(callback$5) {
3235
- let task;
3236
- if (tasks.size === 0) raf(run_tasks);
3237
- return {
3238
- promise: new Promise((fulfill) => {
3239
- tasks.add(task = {
3240
- c: callback$5,
3241
- f: fulfill
3242
- });
3243
- }),
3244
- abort() {
3245
- tasks.delete(task);
3246
- }
3247
- };
3248
- }
3249
- let is_hydrating = false;
3250
- function start_hydrating() {
3251
- is_hydrating = true;
3252
- }
3253
- function end_hydrating() {
3254
- is_hydrating = false;
3255
- }
3256
- function upper_bound(low, high, key, value) {
3257
- while (low < high) {
3258
- const mid = low + (high - low >> 1);
3259
- if (key(mid) <= value) low = mid + 1;
3260
- else high = mid;
3261
- }
3262
- return low;
3263
- }
3264
- function init_hydrate(target) {
3265
- if (target.hydrate_init) return;
3266
- target.hydrate_init = true;
3267
- let children$1 = target.childNodes;
3268
- if (target.nodeName === "HEAD") {
3269
- const myChildren = [];
3270
- for (let i = 0; i < children$1.length; i++) {
3271
- const node = children$1[i];
3272
- if (node.claim_order !== void 0) myChildren.push(node);
3273
- }
3274
- children$1 = myChildren;
3275
- }
3276
- const m = new Int32Array(children$1.length + 1);
3277
- const p = new Int32Array(children$1.length);
3278
- m[0] = -1;
3279
- let longest = 0;
3280
- for (let i = 0; i < children$1.length; i++) {
3281
- const current = children$1[i].claim_order;
3282
- const seqLen = (longest > 0 && children$1[m[longest]].claim_order <= current ? longest + 1 : upper_bound(1, longest, (idx) => children$1[m[idx]].claim_order, current)) - 1;
3283
- p[i] = m[seqLen] + 1;
3284
- const newLen = seqLen + 1;
3285
- m[newLen] = i;
3286
- longest = Math.max(newLen, longest);
3287
- }
3288
- const lis = [];
3289
- const toMove = [];
3290
- let last = children$1.length - 1;
3291
- for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {
3292
- lis.push(children$1[cur - 1]);
3293
- for (; last >= cur; last--) toMove.push(children$1[last]);
3294
- last--;
3295
- }
3296
- for (; last >= 0; last--) toMove.push(children$1[last]);
3297
- lis.reverse();
3298
- toMove.sort((a, b) => a.claim_order - b.claim_order);
3299
- for (let i = 0, j = 0; i < toMove.length; i++) {
3300
- while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) j++;
3301
- const anchor = j < lis.length ? lis[j] : null;
3302
- target.insertBefore(toMove[i], anchor);
3303
- }
3304
- }
3305
- function append(target, node) {
3306
- target.appendChild(node);
3307
- }
3308
- function append_styles(target, style_sheet_id, styles) {
3309
- const append_styles_to = get_root_for_style(target);
3310
- if (!append_styles_to.getElementById(style_sheet_id)) {
3311
- const style = element("style");
3312
- style.id = style_sheet_id;
3313
- style.textContent = styles;
3314
- append_stylesheet(append_styles_to, style);
3315
- }
3316
- }
3317
- function get_root_for_style(node) {
3318
- if (!node) return document;
3319
- const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
3320
- if (root && root.host) return root;
3321
- return node.ownerDocument;
3322
- }
3323
- function append_empty_stylesheet(node) {
3324
- const style_element = element("style");
3325
- append_stylesheet(get_root_for_style(node), style_element);
3326
- return style_element.sheet;
3327
- }
3328
- function append_stylesheet(node, style) {
3329
- append(node.head || node, style);
3330
- return style.sheet;
3331
- }
3332
- function append_hydration(target, node) {
3333
- if (is_hydrating) {
3334
- init_hydrate(target);
3335
- if (target.actual_end_child === void 0 || target.actual_end_child !== null && target.actual_end_child.parentNode !== target) target.actual_end_child = target.firstChild;
3336
- while (target.actual_end_child !== null && target.actual_end_child.claim_order === void 0) target.actual_end_child = target.actual_end_child.nextSibling;
3337
- if (node !== target.actual_end_child) {
3338
- if (node.claim_order !== void 0 || node.parentNode !== target) target.insertBefore(node, target.actual_end_child);
3339
- } else target.actual_end_child = node.nextSibling;
3340
- } else if (node.parentNode !== target || node.nextSibling !== null) target.appendChild(node);
3341
- }
3342
- function insert(target, node, anchor) {
3343
- target.insertBefore(node, anchor || null);
3344
- }
3345
- function insert_hydration(target, node, anchor) {
3346
- if (is_hydrating && !anchor) append_hydration(target, node);
3347
- else if (node.parentNode !== target || node.nextSibling != anchor) target.insertBefore(node, anchor || null);
3348
- }
3349
- function detach(node) {
3350
- if (node.parentNode) node.parentNode.removeChild(node);
3351
- }
3352
- function destroy_each(iterations, detaching) {
3353
- for (let i = 0; i < iterations.length; i += 1) if (iterations[i]) iterations[i].d(detaching);
3354
- }
3355
- function element(name) {
3356
- return document.createElement(name);
3357
- }
3358
- function svg_element(name) {
3359
- return document.createElementNS("http://www.w3.org/2000/svg", name);
3360
- }
3361
- function text(data) {
3362
- return document.createTextNode(data);
3363
- }
3364
- function space() {
3365
- return text(" ");
3366
- }
3367
- function empty() {
3368
- return text("");
3369
- }
3370
- function listen(node, event, handler, options) {
3371
- node.addEventListener(event, handler, options);
3372
- return () => node.removeEventListener(event, handler, options);
3373
- }
3374
- function prevent_default(fn) {
3375
- return function(event) {
3376
- event.preventDefault();
3377
- return fn.call(this, event);
3378
- };
3379
- }
3380
- function attr(node, attribute, value) {
3381
- if (value == null) node.removeAttribute(attribute);
3382
- else if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value);
3383
- }
3384
- function set_attributes(node, attributes) {
3385
- const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);
3386
- for (const key in attributes) if (attributes[key] == null) node.removeAttribute(key);
3387
- else if (key === "style") node.style.cssText = attributes[key];
3388
- else if (key === "__value") node.value = node[key] = attributes[key];
3389
- else if (descriptors[key] && descriptors[key].set) node[key] = attributes[key];
3390
- else attr(node, key, attributes[key]);
3391
- }
3392
- function set_custom_element_data_map(node, data_map) {
3393
- Object.keys(data_map).forEach((key) => {
3394
- set_custom_element_data(node, key, data_map[key]);
3395
- });
3396
- }
3397
- function set_custom_element_data(node, prop, value) {
3398
- if (prop in node) node[prop] = typeof node[prop] === "boolean" && value === "" ? true : value;
3399
- else attr(node, prop, value);
3400
- }
3401
- function children(element$1) {
3402
- return Array.from(element$1.childNodes);
3403
- }
3404
- function init_claim_info(nodes) {
3405
- if (nodes.claim_info === void 0) nodes.claim_info = {
3406
- last_index: 0,
3407
- total_claimed: 0
3408
- };
3409
- }
3410
- function claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {
3411
- init_claim_info(nodes);
3412
- const resultNode = (() => {
3413
- for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {
3414
- const node = nodes[i];
3415
- if (predicate(node)) {
3416
- const replacement = processNode(node);
3417
- if (replacement === void 0) nodes.splice(i, 1);
3418
- else nodes[i] = replacement;
3419
- if (!dontUpdateLastIndex) nodes.claim_info.last_index = i;
3420
- return node;
3421
- }
3422
- }
3423
- for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {
3424
- const node = nodes[i];
3425
- if (predicate(node)) {
3426
- const replacement = processNode(node);
3427
- if (replacement === void 0) nodes.splice(i, 1);
3428
- else nodes[i] = replacement;
3429
- if (!dontUpdateLastIndex) nodes.claim_info.last_index = i;
3430
- else if (replacement === void 0) nodes.claim_info.last_index--;
3431
- return node;
3432
- }
3433
- }
3434
- return createNode();
3435
- })();
3436
- resultNode.claim_order = nodes.claim_info.total_claimed;
3437
- nodes.claim_info.total_claimed += 1;
3438
- return resultNode;
3439
- }
3440
- function claim_element_base(nodes, name, attributes, create_element) {
3441
- return claim_node(nodes, (node) => node.nodeName === name, (node) => {
3442
- const remove = [];
3443
- for (let j = 0; j < node.attributes.length; j++) {
3444
- const attribute = node.attributes[j];
3445
- if (!attributes[attribute.name]) remove.push(attribute.name);
3446
- }
3447
- remove.forEach((v) => node.removeAttribute(v));
3448
- return void 0;
3449
- }, () => create_element(name));
3450
- }
3451
- function claim_element(nodes, name, attributes) {
3452
- return claim_element_base(nodes, name, attributes, element);
3453
- }
3454
- function claim_svg_element(nodes, name, attributes) {
3455
- return claim_element_base(nodes, name, attributes, svg_element);
3456
- }
3457
- function claim_text(nodes, data) {
3458
- return claim_node(nodes, (node) => node.nodeType === 3, (node) => {
3459
- const dataStr = "" + data;
3460
- if (node.data.startsWith(dataStr)) {
3461
- if (node.data.length !== dataStr.length) return node.splitText(dataStr.length);
3462
- } else node.data = dataStr;
3463
- }, () => text(data), true);
3464
- }
3465
- function claim_space(nodes) {
3466
- return claim_text(nodes, " ");
3467
- }
3468
- function find_comment(nodes, text$1, start) {
3469
- for (let i = start; i < nodes.length; i += 1) {
3470
- const node = nodes[i];
3471
- if (node.nodeType === 8 && node.textContent.trim() === text$1) return i;
3472
- }
3473
- return nodes.length;
3474
- }
3475
- function claim_html_tag(nodes, is_svg) {
3476
- const start_index = find_comment(nodes, "HTML_TAG_START", 0);
3477
- const end_index = find_comment(nodes, "HTML_TAG_END", start_index);
3478
- if (start_index === end_index) return new HtmlTagHydration(void 0, is_svg);
3479
- init_claim_info(nodes);
3480
- const html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);
3481
- detach(html_tag_nodes[0]);
3482
- detach(html_tag_nodes[html_tag_nodes.length - 1]);
3483
- const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);
3484
- for (const n of claimed_nodes) {
3485
- n.claim_order = nodes.claim_info.total_claimed;
3486
- nodes.claim_info.total_claimed += 1;
3487
- }
3488
- return new HtmlTagHydration(claimed_nodes, is_svg);
3489
- }
3490
- function set_data(text$1, data) {
3491
- data = "" + data;
3492
- if (text$1.wholeText !== data) text$1.data = data;
3493
- }
3494
- function set_style(node, key, value, important) {
3495
- if (value === null) node.style.removeProperty(key);
3496
- else node.style.setProperty(key, value, important ? "important" : "");
3497
- }
3498
- function toggle_class(element$1, name, toggle) {
3499
- element$1.classList[toggle ? "add" : "remove"](name);
3500
- }
3501
- function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
3502
- const e = document.createEvent("CustomEvent");
3503
- e.initCustomEvent(type, bubbles, cancelable, detail);
3504
- return e;
3505
- }
3506
- function head_selector(nodeId, head) {
3507
- const result = [];
3508
- let started = 0;
3509
- for (const node of head.childNodes) if (node.nodeType === 8) {
3510
- const comment = node.textContent.trim();
3511
- if (comment === `HEAD_${nodeId}_END`) {
3512
- started -= 1;
3513
- result.push(node);
3514
- } else if (comment === `HEAD_${nodeId}_START`) {
3515
- started += 1;
3516
- result.push(node);
3517
- }
3518
- } else if (started > 0) result.push(node);
3519
- return result;
3520
- }
3521
- var HtmlTag = class {
3522
- constructor(is_svg = false) {
3523
- this.is_svg = false;
3524
- this.is_svg = is_svg;
3525
- this.e = this.n = null;
3526
- }
3527
- c(html) {
3528
- this.h(html);
3529
- }
3530
- m(html, target, anchor = null) {
3531
- if (!this.e) {
3532
- if (this.is_svg) this.e = svg_element(target.nodeName);
3533
- else this.e = element(target.nodeName);
3534
- this.t = target;
3535
- this.c(html);
3536
- }
3537
- this.i(anchor);
3538
- }
3539
- h(html) {
3540
- this.e.innerHTML = html;
3541
- this.n = Array.from(this.e.childNodes);
3542
- }
3543
- i(anchor) {
3544
- for (let i = 0; i < this.n.length; i += 1) insert(this.t, this.n[i], anchor);
3545
- }
3546
- p(html) {
3547
- this.d();
3548
- this.h(html);
3549
- this.i(this.a);
3550
- }
3551
- d() {
3552
- this.n.forEach(detach);
3553
- }
3554
- };
3555
- var HtmlTagHydration = class extends HtmlTag {
3556
- constructor(claimed_nodes, is_svg = false) {
3557
- super(is_svg);
3558
- this.e = this.n = null;
3559
- this.l = claimed_nodes;
3560
- }
3561
- c(html) {
3562
- if (this.l) this.n = this.l;
3563
- else super.c(html);
3564
- }
3565
- i(anchor) {
3566
- for (let i = 0; i < this.n.length; i += 1) insert_hydration(this.t, this.n[i], anchor);
3567
- }
3568
- };
3569
- function construct_svelte_component(component, props) {
3570
- return new component(props);
3571
- }
3572
- const managed_styles = new Map();
3573
- let active = 0;
3574
- function hash(str) {
3575
- let hash$1 = 5381;
3576
- let i = str.length;
3577
- while (i--) hash$1 = (hash$1 << 5) - hash$1 ^ str.charCodeAt(i);
3578
- return hash$1 >>> 0;
3579
- }
3580
- function create_style_information(doc, node) {
3581
- const info$1 = {
3582
- stylesheet: append_empty_stylesheet(node),
3583
- rules: {}
3584
- };
3585
- managed_styles.set(doc, info$1);
3586
- return info$1;
3587
- }
3588
- function create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {
3589
- const step = 16.666 / duration;
3590
- let keyframes = "{\n";
3591
- for (let p = 0; p <= 1; p += step) {
3592
- const t = a + (b - a) * ease(p);
3593
- keyframes += p * 100 + `%{${fn(t, 1 - t)}}\n`;
3594
- }
3595
- const rule = keyframes + `100% {${fn(b, 1 - b)}}\n}`;
3596
- const name = `__svelte_${hash(rule)}_${uid}`;
3597
- const doc = get_root_for_style(node);
3598
- const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);
3599
- if (!rules[name]) {
3600
- rules[name] = true;
3601
- stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);
3602
- }
3603
- const animation = node.style.animation || "";
3604
- node.style.animation = `${animation ? `${animation}, ` : ""}${name} ${duration}ms linear ${delay}ms 1 both`;
3605
- active += 1;
3606
- return name;
3607
- }
3608
- function delete_rule(node, name) {
3609
- const previous = (node.style.animation || "").split(", ");
3610
- const next = previous.filter(name ? (anim) => anim.indexOf(name) < 0 : (anim) => anim.indexOf("__svelte") === -1);
3611
- const deleted = previous.length - next.length;
3612
- if (deleted) {
3613
- node.style.animation = next.join(", ");
3614
- active -= deleted;
3615
- if (!active) clear_rules();
3616
- }
3617
- }
3618
- function clear_rules() {
3619
- raf(() => {
3620
- if (active) return;
3621
- managed_styles.forEach((info$1) => {
3622
- const { ownerNode } = info$1.stylesheet;
3623
- if (ownerNode) detach(ownerNode);
3624
- });
3625
- managed_styles.clear();
3626
- });
3627
- }
3628
- let current_component;
3629
- function set_current_component(component) {
3630
- current_component = component;
3631
- }
3632
- const dirty_components = [];
3633
- const binding_callbacks = [];
3634
- const render_callbacks = [];
3635
- const flush_callbacks = [];
3636
- const resolved_promise = Promise.resolve();
3637
- let update_scheduled = false;
3638
- function schedule_update() {
3639
- if (!update_scheduled) {
3640
- update_scheduled = true;
3641
- resolved_promise.then(flush);
3642
- }
3643
- }
3644
- function add_render_callback(fn) {
3645
- render_callbacks.push(fn);
3646
- }
3647
- const seen_callbacks = new Set();
3648
- let flushidx = 0;
3649
- function flush() {
3650
- const saved_component = current_component;
3651
- do {
3652
- while (flushidx < dirty_components.length) {
3653
- const component = dirty_components[flushidx];
3654
- flushidx++;
3655
- set_current_component(component);
3656
- update(component.$$);
3657
- }
3658
- set_current_component(null);
3659
- dirty_components.length = 0;
3660
- flushidx = 0;
3661
- while (binding_callbacks.length) binding_callbacks.pop()();
3662
- for (let i = 0; i < render_callbacks.length; i += 1) {
3663
- const callback$5 = render_callbacks[i];
3664
- if (!seen_callbacks.has(callback$5)) {
3665
- seen_callbacks.add(callback$5);
3666
- callback$5();
3667
- }
3668
- }
3669
- render_callbacks.length = 0;
3670
- } while (dirty_components.length);
3671
- while (flush_callbacks.length) flush_callbacks.pop()();
3672
- update_scheduled = false;
3673
- seen_callbacks.clear();
3674
- set_current_component(saved_component);
3675
- }
3676
- function update($$) {
3677
- if ($$.fragment !== null) {
3678
- $$.update();
3679
- run_all($$.before_update);
3680
- const dirty = $$.dirty;
3681
- $$.dirty = [-1];
3682
- $$.fragment && $$.fragment.p($$.ctx, dirty);
3683
- $$.after_update.forEach(add_render_callback);
3684
- }
3685
- }
3686
- let promise;
3687
- function wait() {
3688
- if (!promise) {
3689
- promise = Promise.resolve();
3690
- promise.then(() => {
3691
- promise = null;
3692
- });
3693
- }
3694
- return promise;
3695
- }
3696
- function dispatch(node, direction, kind) {
3697
- node.dispatchEvent(custom_event(`${direction ? "intro" : "outro"}${kind}`));
3698
- }
3699
- const outroing = new Set();
3700
- let outros;
3701
- function group_outros() {
3702
- outros = {
3703
- r: 0,
3704
- c: [],
3705
- p: outros
3706
- };
3707
- }
3708
- function check_outros() {
3709
- if (!outros.r) run_all(outros.c);
3710
- outros = outros.p;
3711
- }
3712
- function transition_in(block, local) {
3713
- if (block && block.i) {
3714
- outroing.delete(block);
3715
- block.i(local);
3716
- }
3717
- }
3718
- function transition_out(block, local, detach$1, callback$5) {
3719
- if (block && block.o) {
3720
- if (outroing.has(block)) return;
3721
- outroing.add(block);
3722
- outros.c.push(() => {
3723
- outroing.delete(block);
3724
- if (callback$5) {
3725
- if (detach$1) block.d(1);
3726
- callback$5();
3727
- }
3728
- });
3729
- block.o(local);
3730
- } else if (callback$5) callback$5();
3731
- }
3732
- const null_transition = { duration: 0 };
3733
- function create_in_transition(node, fn, params) {
3734
- let config = fn(node, params);
3735
- let running = false;
3736
- let animation_name;
3737
- let task;
3738
- let uid = 0;
3739
- function cleanup() {
3740
- if (animation_name) delete_rule(node, animation_name);
3741
- }
3742
- function go() {
3743
- const { delay = 0, duration = 300, easing = identity, tick: tick$2 = noop, css } = config || null_transition;
3744
- if (css) animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);
3745
- tick$2(0, 1);
3746
- const start_time = now() + delay;
3747
- const end_time = start_time + duration;
3748
- if (task) task.abort();
3749
- running = true;
3750
- add_render_callback(() => dispatch(node, true, "start"));
3751
- task = loop((now$1) => {
3752
- if (running) {
3753
- if (now$1 >= end_time) {
3754
- tick$2(1, 0);
3755
- dispatch(node, true, "end");
3756
- cleanup();
3757
- return running = false;
3758
- }
3759
- if (now$1 >= start_time) {
3760
- const t = easing((now$1 - start_time) / duration);
3761
- tick$2(t, 1 - t);
3762
- }
3763
- }
3764
- return running;
3765
- });
3766
- }
3767
- let started = false;
3768
- return {
3769
- start() {
3770
- if (started) return;
3771
- started = true;
3772
- delete_rule(node);
3773
- if (is_function(config)) {
3774
- config = config();
3775
- wait().then(go);
3776
- } else go();
3777
- },
3778
- invalidate() {
3779
- started = false;
3780
- },
3781
- end() {
3782
- if (running) {
3783
- cleanup();
3784
- running = false;
3785
- }
3786
- }
3787
- };
3788
- }
3789
- const globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : global;
3790
- function get_spread_update(levels, updates) {
3791
- const update$1 = {};
3792
- const to_null_out = {};
3793
- const accounted_for = { $$scope: 1 };
3794
- let i = levels.length;
3795
- while (i--) {
3796
- const o = levels[i];
3797
- const n = updates[i];
3798
- if (n) {
3799
- for (const key in o) if (!(key in n)) to_null_out[key] = 1;
3800
- for (const key in n) if (!accounted_for[key]) {
3801
- update$1[key] = n[key];
3802
- accounted_for[key] = 1;
3803
- }
3804
- levels[i] = n;
3805
- } else for (const key in o) accounted_for[key] = 1;
3806
- }
3807
- for (const key in to_null_out) if (!(key in update$1)) update$1[key] = void 0;
3808
- return update$1;
3809
- }
3810
- function create_component(block) {
3811
- block && block.c();
3812
- }
3813
- function claim_component(block, parent_nodes) {
3814
- block && block.l(parent_nodes);
3815
- }
3816
- function mount_component(component, target, anchor, customElement) {
3817
- const { fragment, after_update } = component.$$;
3818
- fragment && fragment.m(target, anchor);
3819
- if (!customElement) add_render_callback(() => {
3820
- const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
3821
- if (component.$$.on_destroy) component.$$.on_destroy.push(...new_on_destroy);
3822
- else run_all(new_on_destroy);
3823
- component.$$.on_mount = [];
3824
- });
3825
- after_update.forEach(add_render_callback);
3826
- }
3827
- function destroy_component(component, detaching) {
3828
- const $$ = component.$$;
3829
- if ($$.fragment !== null) {
3830
- run_all($$.on_destroy);
3831
- $$.fragment && $$.fragment.d(detaching);
3832
- $$.on_destroy = $$.fragment = null;
3833
- $$.ctx = [];
3834
- }
3835
- }
3836
- function make_dirty(component, i) {
3837
- if (component.$$.dirty[0] === -1) {
3838
- dirty_components.push(component);
3839
- schedule_update();
3840
- component.$$.dirty.fill(0);
3841
- }
3842
- component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
3843
- }
3844
- function init(component, options, instance$96, create_fragment$96, not_equal, props, append_styles$1, dirty = [-1]) {
3845
- const parent_component = current_component;
3846
- set_current_component(component);
3847
- const $$ = component.$$ = {
3848
- fragment: null,
3849
- ctx: [],
3850
- props,
3851
- update: noop,
3852
- not_equal,
3853
- bound: blank_object(),
3854
- on_mount: [],
3855
- on_destroy: [],
3856
- on_disconnect: [],
3857
- before_update: [],
3858
- after_update: [],
3859
- context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
3860
- callbacks: blank_object(),
3861
- dirty,
3862
- skip_bound: false,
3863
- root: options.target || parent_component.$$.root
3864
- };
3865
- append_styles$1 && append_styles$1($$.root);
3866
- let ready = false;
3867
- $$.ctx = instance$96 ? instance$96(component, options.props || {}, (i, ret, ...rest) => {
3868
- const value = rest.length ? rest[0] : ret;
3869
- if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
3870
- if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);
3871
- if (ready) make_dirty(component, i);
3872
- }
3873
- return ret;
3874
- }) : [];
3875
- $$.update();
3876
- ready = true;
3877
- run_all($$.before_update);
3878
- $$.fragment = create_fragment$96 ? create_fragment$96($$.ctx) : false;
3879
- if (options.target) {
3880
- if (options.hydrate) {
3881
- start_hydrating();
3882
- const nodes = children(options.target);
3883
- $$.fragment && $$.fragment.l(nodes);
3884
- nodes.forEach(detach);
3885
- } else $$.fragment && $$.fragment.c();
3886
- if (options.intro) transition_in(component.$$.fragment);
3887
- mount_component(component, options.target, options.anchor, options.customElement);
3888
- end_hydrating();
3889
- flush();
3890
- }
3891
- set_current_component(parent_component);
3892
- }
3893
- let SvelteElement;
3894
- if (typeof HTMLElement === "function") SvelteElement = class extends HTMLElement {
3895
- constructor() {
3896
- super();
3897
- this.attachShadow({ mode: "open" });
3898
- }
3899
- connectedCallback() {
3900
- const { on_mount } = this.$$;
3901
- this.$$.on_disconnect = on_mount.map(run).filter(is_function);
3902
- for (const key in this.$$.slotted) this.appendChild(this.$$.slotted[key]);
3903
- }
3904
- attributeChangedCallback(attr$1, _oldValue, newValue) {
3905
- this[attr$1] = newValue;
3906
- }
3907
- disconnectedCallback() {
3908
- run_all(this.$$.on_disconnect);
3909
- }
3910
- $destroy() {
3911
- destroy_component(this, 1);
3912
- this.$destroy = noop;
3913
- }
3914
- $on(type, callback$5) {
3915
- if (!is_function(callback$5)) return noop;
3916
- const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
3917
- callbacks.push(callback$5);
3918
- return () => {
3919
- const index = callbacks.indexOf(callback$5);
3920
- if (index !== -1) callbacks.splice(index, 1);
3921
- };
3922
- }
3923
- $set($$props) {
3924
- if (this.$$set && !is_empty($$props)) {
3925
- this.$$.skip_bound = true;
3926
- this.$$set($$props);
3927
- this.$$.skip_bound = false;
3928
- }
3929
- }
3930
- };
3931
- /**
3932
- * Base class for Svelte components. Used when dev=false.
3933
- */
3934
- var SvelteComponent = class {
3935
- $destroy() {
3936
- destroy_component(this, 1);
3937
- this.$destroy = noop;
3938
- }
3939
- $on(type, callback$5) {
3940
- if (!is_function(callback$5)) return noop;
3941
- const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
3942
- callbacks.push(callback$5);
3943
- return () => {
3944
- const index = callbacks.indexOf(callback$5);
3945
- if (index !== -1) callbacks.splice(index, 1);
3946
- };
3947
- }
3948
- $set($$props) {
3949
- if (this.$$set && !is_empty($$props)) {
3950
- this.$$.skip_bound = true;
3951
- this.$$set($$props);
3952
- this.$$.skip_bound = false;
3953
- }
3954
- }
3955
- };
3956
-
3957
3133
  //#endregion
3958
3134
  //#region src/components/Header.svelte
3959
3135
  function create_if_block$19(ctx) {
@@ -4612,8 +3788,8 @@ function create_fragment$92(ctx) {
4612
3788
  function instance$92($$self, $$props, $$invalidate) {
4613
3789
  let { backgroundOverlay = false } = $$props;
4614
3790
  let { class: className = void 0 } = $$props;
4615
- const dispatch$1 = createEventDispatcher();
4616
- const click_handler = () => dispatch$1("click");
3791
+ const dispatch = createEventDispatcher();
3792
+ const click_handler = () => dispatch("click");
4617
3793
  $$self.$$set = ($$props$1) => {
4618
3794
  if ("backgroundOverlay" in $$props$1) $$invalidate(0, backgroundOverlay = $$props$1.backgroundOverlay);
4619
3795
  if ("class" in $$props$1) $$invalidate(1, className = $$props$1.class);
@@ -4621,7 +3797,7 @@ function instance$92($$self, $$props, $$invalidate) {
4621
3797
  return [
4622
3798
  backgroundOverlay,
4623
3799
  className,
4624
- dispatch$1,
3800
+ dispatch,
4625
3801
  click_handler
4626
3802
  ];
4627
3803
  }
@@ -7648,7 +6824,7 @@ function instance$80($$self, $$props, $$invalidate) {
7648
6824
  let { iv_load_policy = 1 } = $$props;
7649
6825
  let { list = "" } = $$props;
7650
6826
  let { listType = "" } = $$props;
7651
- let { loop: loop$1 = false } = $$props;
6827
+ let { loop = false } = $$props;
7652
6828
  let { modestbranding = false } = $$props;
7653
6829
  let { origin = "" } = $$props;
7654
6830
  let { playlist = "" } = $$props;
@@ -7729,7 +6905,7 @@ function instance$80($$self, $$props, $$invalidate) {
7729
6905
  enablejsapi: _bton(enablejsapi),
7730
6906
  fs: _bton(fs),
7731
6907
  iv_load_policy,
7732
- loop: _bton(loop$1),
6908
+ loop: _bton(loop),
7733
6909
  modestbranding: _bton(modestbranding),
7734
6910
  playsinline: _bton(playsinline),
7735
6911
  rel: _bton(rel)
@@ -7743,7 +6919,7 @@ function instance$80($$self, $$props, $$invalidate) {
7743
6919
  _setValue(playerVars, "origin", origin);
7744
6920
  _setValue(playerVars, "playlist", playlist);
7745
6921
  _setValue(playerVars, "widget_referrer", widget_referrer);
7746
- if (loop$1) {
6922
+ if (loop) {
7747
6923
  if (!playlist) playerVars.playlist = videoId;
7748
6924
  }
7749
6925
  if (end >= 0) playerVars.end = end;
@@ -7796,7 +6972,7 @@ function instance$80($$self, $$props, $$invalidate) {
7796
6972
  if ("iv_load_policy" in $$props$1) $$invalidate(14, iv_load_policy = $$props$1.iv_load_policy);
7797
6973
  if ("list" in $$props$1) $$invalidate(15, list = $$props$1.list);
7798
6974
  if ("listType" in $$props$1) $$invalidate(16, listType = $$props$1.listType);
7799
- if ("loop" in $$props$1) $$invalidate(17, loop$1 = $$props$1.loop);
6975
+ if ("loop" in $$props$1) $$invalidate(17, loop = $$props$1.loop);
7800
6976
  if ("modestbranding" in $$props$1) $$invalidate(18, modestbranding = $$props$1.modestbranding);
7801
6977
  if ("origin" in $$props$1) $$invalidate(19, origin = $$props$1.origin);
7802
6978
  if ("playlist" in $$props$1) $$invalidate(20, playlist = $$props$1.playlist);
@@ -7825,7 +7001,7 @@ function instance$80($$self, $$props, $$invalidate) {
7825
7001
  iv_load_policy,
7826
7002
  list,
7827
7003
  listType,
7828
- loop$1,
7004
+ loop,
7829
7005
  modestbranding,
7830
7006
  origin,
7831
7007
  playlist,
@@ -7933,7 +7109,7 @@ function instance$79($$self, $$props, $$invalidate) {
7933
7109
  let { videoId = "201239468" } = $$props;
7934
7110
  let { sendEvent = true } = $$props;
7935
7111
  let { autoplay = false } = $$props;
7936
- let { loop: loop$1 = false } = $$props;
7112
+ let { loop = false } = $$props;
7937
7113
  let { mute = false } = $$props;
7938
7114
  let { _style = "" } = $$props;
7939
7115
  if (!window.Vimeo) {
@@ -7990,7 +7166,7 @@ function instance$79($$self, $$props, $$invalidate) {
7990
7166
  const playerOptions = {
7991
7167
  id: videoId,
7992
7168
  autoplay,
7993
- loop: loop$1
7169
+ loop
7994
7170
  };
7995
7171
  player = new window.Vimeo.Player(domRef, playerOptions);
7996
7172
  player.on("play", onStart$1);
@@ -8019,7 +7195,7 @@ function instance$79($$self, $$props, $$invalidate) {
8019
7195
  if ("videoId" in $$props$1) $$invalidate(2, videoId = $$props$1.videoId);
8020
7196
  if ("sendEvent" in $$props$1) $$invalidate(3, sendEvent = $$props$1.sendEvent);
8021
7197
  if ("autoplay" in $$props$1) $$invalidate(4, autoplay = $$props$1.autoplay);
8022
- if ("loop" in $$props$1) $$invalidate(5, loop$1 = $$props$1.loop);
7198
+ if ("loop" in $$props$1) $$invalidate(5, loop = $$props$1.loop);
8023
7199
  if ("mute" in $$props$1) $$invalidate(6, mute = $$props$1.mute);
8024
7200
  if ("_style" in $$props$1) $$invalidate(0, _style = $$props$1._style);
8025
7201
  };
@@ -8029,7 +7205,7 @@ function instance$79($$self, $$props, $$invalidate) {
8029
7205
  videoId,
8030
7206
  sendEvent,
8031
7207
  autoplay,
8032
- loop$1,
7208
+ loop,
8033
7209
  mute,
8034
7210
  div0_binding
8035
7211
  ];
@@ -10578,7 +9754,7 @@ function instance$70($$self, $$props, $$invalidate) {
10578
9754
  let getNavigationItemInnerStyle;
10579
9755
  let navigationStyle;
10580
9756
  let { $$slots: slots = {}, $$scope } = $$props;
10581
- let { loop: loop$1 = false } = $$props;
9757
+ let { loop = false } = $$props;
10582
9758
  let { _style = "" } = $$props;
10583
9759
  let { nextButton = {
10584
9760
  type: "icon",
@@ -10615,7 +9791,7 @@ function instance$70($$self, $$props, $$invalidate) {
10615
9791
  edgeDirectionOffset: "0px"
10616
9792
  } } = $$props;
10617
9793
  let items = [];
10618
- const dispatch$1 = createEventDispatcher();
9794
+ const dispatch = createEventDispatcher();
10619
9795
  setContext("SLIDE", {
10620
9796
  registerItem: ({ onBeforeSlide, onMount: onMount$2, onResize }) => {
10621
9797
  const id = new Date().getTime().toString();
@@ -10679,7 +9855,7 @@ function instance$70($$self, $$props, $$invalidate) {
10679
9855
  else if (items.length - 1 < slideIndex) slideIndex = items.length - 1;
10680
9856
  $$invalidate(29, transitioning = true);
10681
9857
  $$invalidate(28, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
10682
- dispatch$1("change", { nextIndex: slideIndex });
9858
+ dispatch("change", { nextIndex: slideIndex });
10683
9859
  $$invalidate(27, currentSlideId = slideIndex);
10684
9860
  });
10685
9861
  }
@@ -10775,7 +9951,7 @@ function instance$70($$self, $$props, $$invalidate) {
10775
9951
  handleResize();
10776
9952
  });
10777
9953
  containerElementResizeObserver.observe(containerElement);
10778
- dispatch$1("mount", { itemsCount: items.length });
9954
+ dispatch("mount", { itemsCount: items.length });
10779
9955
  return () => {
10780
9956
  containerElement.removeEventListener("mousedown", handleMouseDown);
10781
9957
  containerElement.removeEventListener("mousemove", handleMouseMove);
@@ -10824,7 +10000,7 @@ function instance$70($$self, $$props, $$invalidate) {
10824
10000
  }
10825
10001
  const click_handler = (i) => set(i);
10826
10002
  $$self.$$set = ($$props$1) => {
10827
- if ("loop" in $$props$1) $$invalidate(18, loop$1 = $$props$1.loop);
10003
+ if ("loop" in $$props$1) $$invalidate(18, loop = $$props$1.loop);
10828
10004
  if ("_style" in $$props$1) $$invalidate(0, _style = $$props$1._style);
10829
10005
  if ("nextButton" in $$props$1) $$invalidate(19, nextButton = $$props$1.nextButton);
10830
10006
  if ("nextButtonContainerStyle" in $$props$1) $$invalidate(20, nextButtonContainerStyle = $$props$1.nextButtonContainerStyle);
@@ -10839,7 +10015,7 @@ function instance$70($$self, $$props, $$invalidate) {
10839
10015
  $$self.$$.update = () => {
10840
10016
  if ($$self.$$.dirty[0] & 268435456) $: $$invalidate(14, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : "");
10841
10017
  if ($$self.$$.dirty[0] & 536870912) $: $$invalidate(13, slideClass = ["slide", !isPreview() && transitioning ? "transition" : ""].join(" "));
10842
- if ($$self.$$.dirty[0] & 262146) $: $$invalidate(30, _loop = items.length >= 3 ? loop$1 : false);
10018
+ if ($$self.$$.dirty[0] & 262146) $: $$invalidate(30, _loop = items.length >= 3 ? loop : false);
10843
10019
  if ($$self.$$.dirty[0] & 1207959552) $: $$invalidate(12, isVisiblePrevButton = _loop || currentSlideId > 0);
10844
10020
  if ($$self.$$.dirty[0] & 1207959554) $: $$invalidate(11, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
10845
10021
  if ($$self.$$.dirty[0] & 4194304) $: $$invalidate(10, prevIconStyle = prevButton.type === "icon" ? `height: ${prevButton.size}; fill: ${prevButton.color};` : "");
@@ -10882,7 +10058,7 @@ background-color: ${i === currentSlideId ? navigationButton.colorActive : naviga
10882
10058
  prev,
10883
10059
  next,
10884
10060
  set,
10885
- loop$1,
10061
+ loop,
10886
10062
  nextButton,
10887
10063
  nextButtonContainerStyle,
10888
10064
  nextButtonEdgePosition,
@@ -18383,10 +17559,10 @@ function instance$19($$self, $$props, $$invalidate) {
18383
17559
  if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
18384
17560
  };
18385
17561
  const handleTouchmove = (e) => {
18386
- const now$1 = performance.now();
18387
- if (now$1 - lastFrame < THROTTLE) return;
17562
+ const now = performance.now();
17563
+ if (now - lastFrame < THROTTLE) return;
18388
17564
  move(startX - e.touches[0].clientX);
18389
- lastFrame = now$1;
17565
+ lastFrame = now;
18390
17566
  };
18391
17567
  const handleTouchend = () => {
18392
17568
  if (movedX >= 32) toNext();
@@ -19522,8 +18698,8 @@ function create_fragment$14(ctx) {
19522
18698
  function instance$14($$self, $$props, $$invalidate) {
19523
18699
  let { backgroundOverlay = false } = $$props;
19524
18700
  let { class: className = void 0 } = $$props;
19525
- const dispatch$1 = createEventDispatcher();
19526
- const click_handler = () => dispatch$1("click");
18701
+ const dispatch = createEventDispatcher();
18702
+ const click_handler = () => dispatch("click");
19527
18703
  $$self.$$set = ($$props$1) => {
19528
18704
  if ("backgroundOverlay" in $$props$1) $$invalidate(0, backgroundOverlay = $$props$1.backgroundOverlay);
19529
18705
  if ("class" in $$props$1) $$invalidate(1, className = $$props$1.class);
@@ -19531,7 +18707,7 @@ function instance$14($$self, $$props, $$invalidate) {
19531
18707
  return [
19532
18708
  backgroundOverlay,
19533
18709
  className,
19534
- dispatch$1,
18710
+ dispatch,
19535
18711
  click_handler
19536
18712
  ];
19537
18713
  }