@credenza3/passport-sui 0.1.10 → 0.1.12

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.
Files changed (88) hide show
  1. package/dist/{App-BgNenBZk.js → App-CCqleyA9.js} +18 -18
  2. package/dist/{App-BgNenBZk.js.map → App-CCqleyA9.js.map} +1 -1
  3. package/dist/{Button-OHov6eXd.js → Button-DAy_umSd.js} +4 -4
  4. package/dist/{Button-OHov6eXd.js.map → Button-DAy_umSd.js.map} +1 -1
  5. package/dist/{ButtonBack-tT2V5PQf.js → ButtonBack-BkUKUIsw.js} +4 -4
  6. package/dist/{ButtonBack-tT2V5PQf.js.map → ButtonBack-BkUKUIsw.js.map} +1 -1
  7. package/dist/{ButtonLink-BcNeNAnT.js → ButtonLink-dIXfKKup.js} +3 -3
  8. package/dist/{ButtonLink-BcNeNAnT.js.map → ButtonLink-dIXfKKup.js.map} +1 -1
  9. package/dist/{ConfirmAccount-B9g7gpaB.js → ConfirmAccount-B7b6KLqs.js} +9 -9
  10. package/dist/{ConfirmAccount-B9g7gpaB.js.map → ConfirmAccount-B7b6KLqs.js.map} +1 -1
  11. package/dist/{ContentHeader-CN5mY_EI.js → ContentHeader-CVumJwvG.js} +3 -3
  12. package/dist/{ContentHeader-CN5mY_EI.js.map → ContentHeader-CVumJwvG.js.map} +1 -1
  13. package/dist/{Error-C1Y4N30A.js → Error-DcbLpmXf.js} +5 -5
  14. package/dist/{Error-C1Y4N30A.js.map → Error-DcbLpmXf.js.map} +1 -1
  15. package/dist/{Input-C7c35Njj.js → Input-BHT27RVM.js} +4 -4
  16. package/dist/{Input-C7c35Njj.js.map → Input-BHT27RVM.js.map} +1 -1
  17. package/dist/{Label-DcMHoGi2.js → Label-Bf8cAqMv.js} +3 -3
  18. package/dist/{Label-DcMHoGi2.js.map → Label-Bf8cAqMv.js.map} +1 -1
  19. package/dist/{Loader-hEgPdNjW.js → Loader-Ck8Qf90h.js} +3 -3
  20. package/dist/{Loader-hEgPdNjW.js.map → Loader-Ck8Qf90h.js.map} +1 -1
  21. package/dist/{Login-CLbnawha.js → Login-DmuALQOZ.js} +9 -9
  22. package/dist/{Login-CLbnawha.js.map → Login-DmuALQOZ.js.map} +1 -1
  23. package/dist/Logout-DtZQa3PS.js +96 -0
  24. package/dist/Logout-DtZQa3PS.js.map +1 -0
  25. package/dist/{Nav-CMk6wqla.js → Nav-hlhnBpCA.js} +5 -5
  26. package/dist/{Nav-CMk6wqla.js.map → Nav-hlhnBpCA.js.map} +1 -1
  27. package/dist/{PassportId-Dq93qrlP.js → PassportId-CT8seyyl.js} +7 -7
  28. package/dist/{PassportId-Dq93qrlP.js.map → PassportId-CT8seyyl.js.map} +1 -1
  29. package/dist/Payment-BNT5dOy3.js +1179 -0
  30. package/dist/Payment-BNT5dOy3.js.map +1 -0
  31. package/dist/PaymentResult-iREwxUTO.js +292 -0
  32. package/dist/PaymentResult-iREwxUTO.js.map +1 -0
  33. package/dist/{Profile-CHAGS1Rz.js → Profile-G2t70NsO.js} +7 -7
  34. package/dist/{Profile-CHAGS1Rz.js.map → Profile-G2t70NsO.js.map} +1 -1
  35. package/dist/{ProgressVideo-CyHro4TM.js → ProgressVideo-oh7nRG8_.js} +6 -6
  36. package/dist/{ProgressVideo-CyHro4TM.js.map → ProgressVideo-oh7nRG8_.js.map} +1 -1
  37. package/dist/{ProgressVideo.service-C5ZBidgs.js → ProgressVideo.service-CVnZS8ec.js} +2 -2
  38. package/dist/{ProgressVideo.service-C5ZBidgs.js.map → ProgressVideo.service-CVnZS8ec.js.map} +1 -1
  39. package/dist/{RichAlert-DOXrdOSp.js → RichAlert-17dhVxyd.js} +13 -13
  40. package/dist/{RichAlert-DOXrdOSp.js.map → RichAlert-17dhVxyd.js.map} +1 -1
  41. package/dist/{Scanner-CP7zZLmb.js → Scanner-B_IyknFU.js} +32 -32
  42. package/dist/{Scanner-CP7zZLmb.js.map → Scanner-B_IyknFU.js.map} +1 -1
  43. package/dist/{SendTokens-DcWtNKZU.js → SendTokens-_Zq1xtui.js} +7 -7
  44. package/dist/{SendTokens-DcWtNKZU.js.map → SendTokens-_Zq1xtui.js.map} +1 -1
  45. package/dist/{Sign-CVIrZkub.js → Sign-D20a5-Eh.js} +7 -7
  46. package/dist/{Sign-CVIrZkub.js.map → Sign-D20a5-Eh.js.map} +1 -1
  47. package/dist/Stripe.service-d8J1Nj0-.js +13 -0
  48. package/dist/Stripe.service-d8J1Nj0-.js.map +1 -0
  49. package/dist/{UpdateProfile-CPUOEBMo.js → UpdateProfile-BS4vHKox.js} +10 -10
  50. package/dist/{UpdateProfile-CPUOEBMo.js.map → UpdateProfile-BS4vHKox.js.map} +1 -1
  51. package/dist/{UserInfo-wgTHlE5j.js → UserInfo-FF1YiHB_.js} +4 -4
  52. package/dist/{UserInfo-wgTHlE5j.js.map → UserInfo-FF1YiHB_.js.map} +1 -1
  53. package/dist/{Wallet-BEmYMCut.js → Wallet-CLL_Ao5n.js} +8 -8
  54. package/dist/{Wallet-BEmYMCut.js.map → Wallet-CLL_Ao5n.js.map} +1 -1
  55. package/dist/{each-sGAWFUwm.js → each-ChczGHVd.js} +10 -10
  56. package/dist/{each-sGAWFUwm.js.map → each-ChczGHVd.js.map} +1 -1
  57. package/dist/{html-nUzEbV7C.js → html-BIHkWqNq.js} +3 -3
  58. package/dist/{html-nUzEbV7C.js.map → html-BIHkWqNq.js.map} +1 -1
  59. package/dist/{index-By5ED3Yb.js → index-Cpr_yChD.js} +9090 -8989
  60. package/dist/index-Cpr_yChD.js.map +1 -0
  61. package/dist/{index-client-BsxnbQnl.js → index-client-CJ3dIYTW.js} +2 -2
  62. package/dist/{index-client-BsxnbQnl.js.map → index-client-CJ3dIYTW.js.map} +1 -1
  63. package/dist/{input-J57TPqRp.js → input-BJ8poX2h.js} +3 -3
  64. package/dist/{input-J57TPqRp.js.map → input-BJ8poX2h.js.map} +1 -1
  65. package/dist/{legacy-DjyLhwW_.js → legacy-YR9wiUnf.js} +2 -2
  66. package/dist/{legacy-DjyLhwW_.js.map → legacy-YR9wiUnf.js.map} +1 -1
  67. package/dist/passport.es.js +1 -1
  68. package/dist/passport.umd.js +156 -154
  69. package/dist/passport.umd.js.map +1 -1
  70. package/dist/{socket-io-CvJnsIiD.js → socket-io-DDnfOdoo.js} +2 -2
  71. package/dist/{socket-io-CvJnsIiD.js.map → socket-io-DDnfOdoo.js.map} +1 -1
  72. package/dist/types/app/pages/payment/Payment.service.d.ts +12 -0
  73. package/dist/types/app/pages/payment/oder.types.d.ts +8 -0
  74. package/dist/types/app/pages/payment/order.service.d.ts +4 -0
  75. package/dist/types/app/pages/payment/payment.constants.d.ts +1 -0
  76. package/dist/types/app/pages/payment/paystack/Paystack.svelte.d.ts +1 -0
  77. package/dist/types/app/pages/payment/stripe/Stripe.service.d.ts +1 -2
  78. package/dist/types/app/pages/payment/stripe/stripe.helper.d.ts +6 -10
  79. package/package.json +1 -1
  80. package/dist/Logout-C7UvmtHw.js +0 -96
  81. package/dist/Logout-C7UvmtHw.js.map +0 -1
  82. package/dist/Payment-D_PmGbx9.js +0 -990
  83. package/dist/Payment-D_PmGbx9.js.map +0 -1
  84. package/dist/PaymentResult-DKsYHo0Y.js +0 -330
  85. package/dist/PaymentResult-DKsYHo0Y.js.map +0 -1
  86. package/dist/Stripe.service-ChsNBYNx.js +0 -77
  87. package/dist/Stripe.service-ChsNBYNx.js.map +0 -1
  88. package/dist/index-By5ED3Yb.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { n as t, aA as a, G as o, aO as u } from "./index-By5ED3Yb.js";
1
+ import { n as t, aA as a, G as o, aO as u } from "./index-Cpr_yChD.js";
2
2
  function c(n) {
3
3
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
4
4
  }
@@ -25,4 +25,4 @@ export {
25
25
  l as a,
26
26
  f as o
27
27
  };
28
- //# sourceMappingURL=index-client-BsxnbQnl.js.map
28
+ //# sourceMappingURL=index-client-CJ3dIYTW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-client-BsxnbQnl.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/shared/errors.js","../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/index-client.js"],"sourcesContent":["/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\n\n/**\n * Cannot use `{@render children(...)}` if the parent component uses `let:` directives. Consider using a named snippet instead\n * @returns {never}\n */\nexport function invalid_default_snippet() {\n\tif (DEV) {\n\t\tconst error = new Error(`invalid_default_snippet\\nCannot use \\`{@render children(...)}\\` if the parent component uses \\`let:\\` directives. Consider using a named snippet instead\\nhttps://svelte.dev/e/invalid_default_snippet`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/invalid_default_snippet`);\n\t}\n}\n\n/**\n * A snippet function was passed invalid arguments. Snippets should only be instantiated via `{@render ...}`\n * @returns {never}\n */\nexport function invalid_snippet_arguments() {\n\tif (DEV) {\n\t\tconst error = new Error(`invalid_snippet_arguments\\nA snippet function was passed invalid arguments. Snippets should only be instantiated via \\`{@render ...}\\`\\nhttps://svelte.dev/e/invalid_snippet_arguments`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/invalid_snippet_arguments`);\n\t}\n}\n\n/**\n * `%name%(...)` can only be used during component initialisation\n * @param {string} name\n * @returns {never}\n */\nexport function lifecycle_outside_component(name) {\n\tif (DEV) {\n\t\tconst error = new Error(`lifecycle_outside_component\\n\\`${name}(...)\\` can only be used during component initialisation\\nhttps://svelte.dev/e/lifecycle_outside_component`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/lifecycle_outside_component`);\n\t}\n}\n\n/**\n * Attempted to render a snippet without a `{@render}` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change `{snippet}` to `{@render snippet()}`.\n * @returns {never}\n */\nexport function snippet_without_render_tag() {\n\tif (DEV) {\n\t\tconst error = new Error(`snippet_without_render_tag\\nAttempted to render a snippet without a \\`{@render}\\` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change \\`{snippet}\\` to \\`{@render snippet()}\\`.\\nhttps://svelte.dev/e/snippet_without_render_tag`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/snippet_without_render_tag`);\n\t}\n}\n\n/**\n * `%name%` is not a store with a `subscribe` method\n * @param {string} name\n * @returns {never}\n */\nexport function store_invalid_shape(name) {\n\tif (DEV) {\n\t\tconst error = new Error(`store_invalid_shape\\n\\`${name}\\` is not a store with a \\`subscribe\\` method\\nhttps://svelte.dev/e/store_invalid_shape`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/store_invalid_shape`);\n\t}\n}\n\n/**\n * The `this` prop on `<svelte:element>` must be a string, if defined\n * @returns {never}\n */\nexport function svelte_element_invalid_this_value() {\n\tif (DEV) {\n\t\tconst error = new Error(`svelte_element_invalid_this_value\\nThe \\`this\\` prop on \\`<svelte:element>\\` must be a string, if defined\\nhttps://svelte.dev/e/svelte_element_invalid_this_value`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`);\n\t}\n}","/** @import { ComponentContext, ComponentContextLegacy } from '#client' */\n/** @import { EventDispatcher } from './index.js' */\n/** @import { NotFunction } from './internal/types.js' */\nimport { untrack } from './internal/client/runtime.js';\nimport { is_array } from './internal/shared/utils.js';\nimport { user_effect } from './internal/client/index.js';\nimport * as e from './internal/client/errors.js';\nimport { lifecycle_outside_component } from './internal/shared/errors.js';\nimport { legacy_mode_flag } from './internal/flags/index.js';\nimport { component_context } from './internal/client/context.js';\nimport { DEV } from 'esm-env';\n\nif (DEV) {\n\t/**\n\t * @param {string} rune\n\t */\n\tfunction throw_rune_error(rune) {\n\t\tif (!(rune in globalThis)) {\n\t\t\t// TODO if people start adjusting the \"this can contain runes\" config through v-p-s more, adjust this message\n\t\t\t/** @type {any} */\n\t\t\tlet value; // let's hope noone modifies this global, but belts and braces\n\t\t\tObject.defineProperty(globalThis, rune, {\n\t\t\t\tconfigurable: true,\n\t\t\t\t// eslint-disable-next-line getter-return\n\t\t\t\tget: () => {\n\t\t\t\t\tif (value !== undefined) {\n\t\t\t\t\t\treturn value;\n\t\t\t\t\t}\n\n\t\t\t\t\te.rune_outside_svelte(rune);\n\t\t\t\t},\n\t\t\t\tset: (v) => {\n\t\t\t\t\tvalue = v;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tthrow_rune_error('$state');\n\tthrow_rune_error('$effect');\n\tthrow_rune_error('$derived');\n\tthrow_rune_error('$inspect');\n\tthrow_rune_error('$props');\n\tthrow_rune_error('$bindable');\n}\n\n/**\n * `onMount`, like [`$effect`](https://svelte.dev/docs/svelte/$effect), schedules a function to run as soon as the component has been mounted to the DOM.\n * Unlike `$effect`, the provided function only runs once.\n *\n * It must be called during the component's initialisation (but doesn't need to live _inside_ the component;\n * it can be called from an external module). If a function is returned _synchronously_ from `onMount`,\n * it will be called when the component is unmounted.\n *\n * `onMount` functions do not run during [server-side rendering](https://svelte.dev/docs/svelte/svelte-server#render).\n *\n * @template T\n * @param {() => NotFunction<T> | Promise<NotFunction<T>> | (() => any)} fn\n * @returns {void}\n */\nexport function onMount(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('onMount');\n\t}\n\n\tif (legacy_mode_flag && component_context.l !== null) {\n\t\tinit_update_callbacks(component_context).m.push(fn);\n\t} else {\n\t\tuser_effect(() => {\n\t\t\tconst cleanup = untrack(fn);\n\t\t\tif (typeof cleanup === 'function') return /** @type {() => void} */ (cleanup);\n\t\t});\n\t}\n}\n\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * @param {() => any} fn\n * @returns {void}\n */\nexport function onDestroy(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('onDestroy');\n\t}\n\n\tonMount(() => () => untrack(fn));\n}\n\n/**\n * @template [T=any]\n * @param {string} type\n * @param {T} [detail]\n * @param {any}params_0\n * @returns {CustomEvent<T>}\n */\nfunction create_custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n\treturn new CustomEvent(type, { detail, bubbles, cancelable });\n}\n\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs/svelte/legacy-on#Component-events).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:\n * ```ts\n * const dispatch = createEventDispatcher<{\n * loaded: null; // does not take a detail argument\n * change: string; // takes a detail argument of type string, which is required\n * optional: number | null; // takes an optional detail argument of type number\n * }>();\n * ```\n *\n * @deprecated Use callback props and/or the `$host()` rune instead — see [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events)\n * @template {Record<string, any>} [EventMap = any]\n * @returns {EventDispatcher<EventMap>}\n */\nexport function createEventDispatcher() {\n\tconst active_component_context = component_context;\n\tif (active_component_context === null) {\n\t\tlifecycle_outside_component('createEventDispatcher');\n\t}\n\n\treturn (type, detail, options) => {\n\t\tconst events = /** @type {Record<string, Function | Function[]>} */ (\n\t\t\tactive_component_context.s.$$events\n\t\t)?.[/** @type {any} */ (type)];\n\n\t\tif (events) {\n\t\t\tconst callbacks = is_array(events) ? events.slice() : [events];\n\t\t\t// TODO are there situations where events could be dispatched\n\t\t\t// in a server (non-DOM) environment?\n\t\t\tconst event = create_custom_event(/** @type {string} */ (type), detail, options);\n\t\t\tfor (const fn of callbacks) {\n\t\t\t\tfn.call(active_component_context.x, event);\n\t\t\t}\n\t\t\treturn !event.defaultPrevented;\n\t\t}\n\n\t\treturn true;\n\t};\n}\n\n// TODO mark beforeUpdate and afterUpdate as deprecated in Svelte 6\n\n/**\n * Schedules a callback to run immediately before the component is updated after any state change.\n *\n * The first time the callback runs will be before the initial `onMount`.\n *\n * In runes mode use `$effect.pre` instead.\n *\n * @deprecated Use [`$effect.pre`](https://svelte.dev/docs/svelte/$effect#$effect.pre) instead\n * @param {() => void} fn\n * @returns {void}\n */\nexport function beforeUpdate(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('beforeUpdate');\n\t}\n\n\tif (component_context.l === null) {\n\t\te.lifecycle_legacy_only('beforeUpdate');\n\t}\n\n\tinit_update_callbacks(component_context).b.push(fn);\n}\n\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`.\n *\n * In runes mode use `$effect` instead.\n *\n * @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead\n * @param {() => void} fn\n * @returns {void}\n */\nexport function afterUpdate(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('afterUpdate');\n\t}\n\n\tif (component_context.l === null) {\n\t\te.lifecycle_legacy_only('afterUpdate');\n\t}\n\n\tinit_update_callbacks(component_context).a.push(fn);\n}\n\n/**\n * Legacy-mode: Init callbacks object for onMount/beforeUpdate/afterUpdate\n * @param {ComponentContext} context\n */\nfunction init_update_callbacks(context) {\n\tvar l = /** @type {ComponentContextLegacy} */ (context).l;\n\treturn (l.u ??= { a: [], b: [], m: [] });\n}\n\nexport { flushSync } from './internal/client/runtime.js';\nexport { getContext, getAllContexts, hasContext, setContext } from './internal/client/context.js';\nexport { hydrate, mount, unmount } from './internal/client/render.js';\nexport { tick, untrack } from './internal/client/runtime.js';\nexport { createRawSnippet } from './internal/client/dom/blocks/snippet.js';\n"],"names":["lifecycle_outside_component","name","onMount","fn","component_context","legacy_mode_flag","init_update_callbacks","user_effect","cleanup","untrack","onDestroy","context","l"],"mappings":";AAuCO,SAASA,EAA4BC,GAAM;AAOhD,QAAM,IAAI,MAAM,kDAAkD;AAEpE;ACYO,SAASC,EAAQC,GAAI;AAC3B,EAAIC,MAAsB,QACzBJ,EAAqC,GAGlCK,KAAoBD,EAAkB,MAAM,OAC/CE,EAAsBF,CAAiB,EAAE,EAAE,KAAKD,CAAE,IAElDI,EAAY,MAAM;AACX,UAAAC,IAAUC,EAAQN,CAAE;AACtB,QAAA,OAAOK,KAAY,WAAY;AAAA;AAAA,MAAkCA;AAAA;AAAA,EAAA,CACrE;AAEH;AAWO,SAASE,EAAUP,GAAI;AAC7B,EAAIC,MAAsB,QACzBJ,EAAuC,GAGxCE,EAAQ,MAAM,MAAMO,EAAQN,CAAE,CAAC;AAChC;AAkHA,SAASG,EAAsBK,GAAS;AACnC,MAAAC;AAAA;AAAA,IAA2CD,EAAS;AAAA;AAChD,SAAAC,EAAE,MAAFA,EAAE,IAAM,EAAE,GAAG,CAAI,GAAA,GAAG,CAAA,GAAI,GAAG,GAAG;AACvC;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"index-client-CJ3dIYTW.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/shared/errors.js","../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/index-client.js"],"sourcesContent":["/* This file is generated by scripts/process-messages/index.js. Do not edit! */\n\nimport { DEV } from 'esm-env';\n\n/**\n * Cannot use `{@render children(...)}` if the parent component uses `let:` directives. Consider using a named snippet instead\n * @returns {never}\n */\nexport function invalid_default_snippet() {\n\tif (DEV) {\n\t\tconst error = new Error(`invalid_default_snippet\\nCannot use \\`{@render children(...)}\\` if the parent component uses \\`let:\\` directives. Consider using a named snippet instead\\nhttps://svelte.dev/e/invalid_default_snippet`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/invalid_default_snippet`);\n\t}\n}\n\n/**\n * A snippet function was passed invalid arguments. Snippets should only be instantiated via `{@render ...}`\n * @returns {never}\n */\nexport function invalid_snippet_arguments() {\n\tif (DEV) {\n\t\tconst error = new Error(`invalid_snippet_arguments\\nA snippet function was passed invalid arguments. Snippets should only be instantiated via \\`{@render ...}\\`\\nhttps://svelte.dev/e/invalid_snippet_arguments`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/invalid_snippet_arguments`);\n\t}\n}\n\n/**\n * `%name%(...)` can only be used during component initialisation\n * @param {string} name\n * @returns {never}\n */\nexport function lifecycle_outside_component(name) {\n\tif (DEV) {\n\t\tconst error = new Error(`lifecycle_outside_component\\n\\`${name}(...)\\` can only be used during component initialisation\\nhttps://svelte.dev/e/lifecycle_outside_component`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/lifecycle_outside_component`);\n\t}\n}\n\n/**\n * Attempted to render a snippet without a `{@render}` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change `{snippet}` to `{@render snippet()}`.\n * @returns {never}\n */\nexport function snippet_without_render_tag() {\n\tif (DEV) {\n\t\tconst error = new Error(`snippet_without_render_tag\\nAttempted to render a snippet without a \\`{@render}\\` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change \\`{snippet}\\` to \\`{@render snippet()}\\`.\\nhttps://svelte.dev/e/snippet_without_render_tag`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/snippet_without_render_tag`);\n\t}\n}\n\n/**\n * `%name%` is not a store with a `subscribe` method\n * @param {string} name\n * @returns {never}\n */\nexport function store_invalid_shape(name) {\n\tif (DEV) {\n\t\tconst error = new Error(`store_invalid_shape\\n\\`${name}\\` is not a store with a \\`subscribe\\` method\\nhttps://svelte.dev/e/store_invalid_shape`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/store_invalid_shape`);\n\t}\n}\n\n/**\n * The `this` prop on `<svelte:element>` must be a string, if defined\n * @returns {never}\n */\nexport function svelte_element_invalid_this_value() {\n\tif (DEV) {\n\t\tconst error = new Error(`svelte_element_invalid_this_value\\nThe \\`this\\` prop on \\`<svelte:element>\\` must be a string, if defined\\nhttps://svelte.dev/e/svelte_element_invalid_this_value`);\n\n\t\terror.name = 'Svelte error';\n\t\tthrow error;\n\t} else {\n\t\tthrow new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`);\n\t}\n}","/** @import { ComponentContext, ComponentContextLegacy } from '#client' */\n/** @import { EventDispatcher } from './index.js' */\n/** @import { NotFunction } from './internal/types.js' */\nimport { untrack } from './internal/client/runtime.js';\nimport { is_array } from './internal/shared/utils.js';\nimport { user_effect } from './internal/client/index.js';\nimport * as e from './internal/client/errors.js';\nimport { lifecycle_outside_component } from './internal/shared/errors.js';\nimport { legacy_mode_flag } from './internal/flags/index.js';\nimport { component_context } from './internal/client/context.js';\nimport { DEV } from 'esm-env';\n\nif (DEV) {\n\t/**\n\t * @param {string} rune\n\t */\n\tfunction throw_rune_error(rune) {\n\t\tif (!(rune in globalThis)) {\n\t\t\t// TODO if people start adjusting the \"this can contain runes\" config through v-p-s more, adjust this message\n\t\t\t/** @type {any} */\n\t\t\tlet value; // let's hope noone modifies this global, but belts and braces\n\t\t\tObject.defineProperty(globalThis, rune, {\n\t\t\t\tconfigurable: true,\n\t\t\t\t// eslint-disable-next-line getter-return\n\t\t\t\tget: () => {\n\t\t\t\t\tif (value !== undefined) {\n\t\t\t\t\t\treturn value;\n\t\t\t\t\t}\n\n\t\t\t\t\te.rune_outside_svelte(rune);\n\t\t\t\t},\n\t\t\t\tset: (v) => {\n\t\t\t\t\tvalue = v;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tthrow_rune_error('$state');\n\tthrow_rune_error('$effect');\n\tthrow_rune_error('$derived');\n\tthrow_rune_error('$inspect');\n\tthrow_rune_error('$props');\n\tthrow_rune_error('$bindable');\n}\n\n/**\n * `onMount`, like [`$effect`](https://svelte.dev/docs/svelte/$effect), schedules a function to run as soon as the component has been mounted to the DOM.\n * Unlike `$effect`, the provided function only runs once.\n *\n * It must be called during the component's initialisation (but doesn't need to live _inside_ the component;\n * it can be called from an external module). If a function is returned _synchronously_ from `onMount`,\n * it will be called when the component is unmounted.\n *\n * `onMount` functions do not run during [server-side rendering](https://svelte.dev/docs/svelte/svelte-server#render).\n *\n * @template T\n * @param {() => NotFunction<T> | Promise<NotFunction<T>> | (() => any)} fn\n * @returns {void}\n */\nexport function onMount(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('onMount');\n\t}\n\n\tif (legacy_mode_flag && component_context.l !== null) {\n\t\tinit_update_callbacks(component_context).m.push(fn);\n\t} else {\n\t\tuser_effect(() => {\n\t\t\tconst cleanup = untrack(fn);\n\t\t\tif (typeof cleanup === 'function') return /** @type {() => void} */ (cleanup);\n\t\t});\n\t}\n}\n\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * @param {() => any} fn\n * @returns {void}\n */\nexport function onDestroy(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('onDestroy');\n\t}\n\n\tonMount(() => () => untrack(fn));\n}\n\n/**\n * @template [T=any]\n * @param {string} type\n * @param {T} [detail]\n * @param {any}params_0\n * @returns {CustomEvent<T>}\n */\nfunction create_custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n\treturn new CustomEvent(type, { detail, bubbles, cancelable });\n}\n\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs/svelte/legacy-on#Component-events).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:\n * ```ts\n * const dispatch = createEventDispatcher<{\n * loaded: null; // does not take a detail argument\n * change: string; // takes a detail argument of type string, which is required\n * optional: number | null; // takes an optional detail argument of type number\n * }>();\n * ```\n *\n * @deprecated Use callback props and/or the `$host()` rune instead — see [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Event-changes-Component-events)\n * @template {Record<string, any>} [EventMap = any]\n * @returns {EventDispatcher<EventMap>}\n */\nexport function createEventDispatcher() {\n\tconst active_component_context = component_context;\n\tif (active_component_context === null) {\n\t\tlifecycle_outside_component('createEventDispatcher');\n\t}\n\n\treturn (type, detail, options) => {\n\t\tconst events = /** @type {Record<string, Function | Function[]>} */ (\n\t\t\tactive_component_context.s.$$events\n\t\t)?.[/** @type {any} */ (type)];\n\n\t\tif (events) {\n\t\t\tconst callbacks = is_array(events) ? events.slice() : [events];\n\t\t\t// TODO are there situations where events could be dispatched\n\t\t\t// in a server (non-DOM) environment?\n\t\t\tconst event = create_custom_event(/** @type {string} */ (type), detail, options);\n\t\t\tfor (const fn of callbacks) {\n\t\t\t\tfn.call(active_component_context.x, event);\n\t\t\t}\n\t\t\treturn !event.defaultPrevented;\n\t\t}\n\n\t\treturn true;\n\t};\n}\n\n// TODO mark beforeUpdate and afterUpdate as deprecated in Svelte 6\n\n/**\n * Schedules a callback to run immediately before the component is updated after any state change.\n *\n * The first time the callback runs will be before the initial `onMount`.\n *\n * In runes mode use `$effect.pre` instead.\n *\n * @deprecated Use [`$effect.pre`](https://svelte.dev/docs/svelte/$effect#$effect.pre) instead\n * @param {() => void} fn\n * @returns {void}\n */\nexport function beforeUpdate(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('beforeUpdate');\n\t}\n\n\tif (component_context.l === null) {\n\t\te.lifecycle_legacy_only('beforeUpdate');\n\t}\n\n\tinit_update_callbacks(component_context).b.push(fn);\n}\n\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`.\n *\n * In runes mode use `$effect` instead.\n *\n * @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead\n * @param {() => void} fn\n * @returns {void}\n */\nexport function afterUpdate(fn) {\n\tif (component_context === null) {\n\t\tlifecycle_outside_component('afterUpdate');\n\t}\n\n\tif (component_context.l === null) {\n\t\te.lifecycle_legacy_only('afterUpdate');\n\t}\n\n\tinit_update_callbacks(component_context).a.push(fn);\n}\n\n/**\n * Legacy-mode: Init callbacks object for onMount/beforeUpdate/afterUpdate\n * @param {ComponentContext} context\n */\nfunction init_update_callbacks(context) {\n\tvar l = /** @type {ComponentContextLegacy} */ (context).l;\n\treturn (l.u ??= { a: [], b: [], m: [] });\n}\n\nexport { flushSync } from './internal/client/runtime.js';\nexport { getContext, getAllContexts, hasContext, setContext } from './internal/client/context.js';\nexport { hydrate, mount, unmount } from './internal/client/render.js';\nexport { tick, untrack } from './internal/client/runtime.js';\nexport { createRawSnippet } from './internal/client/dom/blocks/snippet.js';\n"],"names":["lifecycle_outside_component","name","onMount","fn","component_context","legacy_mode_flag","init_update_callbacks","user_effect","cleanup","untrack","onDestroy","context","l"],"mappings":";AAuCO,SAASA,EAA4BC,GAAM;AAOhD,QAAM,IAAI,MAAM,kDAAkD;AAEpE;ACYO,SAASC,EAAQC,GAAI;AAC3B,EAAIC,MAAsB,QACzBJ,EAAqC,GAGlCK,KAAoBD,EAAkB,MAAM,OAC/CE,EAAsBF,CAAiB,EAAE,EAAE,KAAKD,CAAE,IAElDI,EAAY,MAAM;AACX,UAAAC,IAAUC,EAAQN,CAAE;AACtB,QAAA,OAAOK,KAAY,WAAY;AAAA;AAAA,MAAkCA;AAAA;AAAA,EAAA,CACrE;AAEH;AAWO,SAASE,EAAUP,GAAI;AAC7B,EAAIC,MAAsB,QACzBJ,EAAuC,GAGxCE,EAAQ,MAAM,MAAMO,EAAQN,CAAE,CAAC;AAChC;AAkHA,SAASG,EAAsBK,GAAS;AACnC,MAAAC;AAAA;AAAA,IAA2CD,EAAS;AAAA;AAChD,SAAAC,EAAE,MAAFA,EAAE,IAAM,EAAE,GAAG,CAAI,GAAA,GAAG,CAAA,GAAI,GAAG,GAAG;AACvC;","x_google_ignoreList":[0,1]}
@@ -1,5 +1,5 @@
1
- import { i as t, h as _, G as c, bb as d } from "./index-By5ED3Yb.js";
2
- import { A as m } from "./legacy-DjyLhwW_.js";
1
+ import { i as t, h as _, G as c, bb as d } from "./index-Cpr_yChD.js";
2
+ import { A as m } from "./legacy-YR9wiUnf.js";
3
3
  function i(e, a, n = a) {
4
4
  var o = t();
5
5
  m(e, "input", (l) => {
@@ -27,4 +27,4 @@ function f(e) {
27
27
  export {
28
28
  i as b
29
29
  };
30
- //# sourceMappingURL=input-J57TPqRp.js.map
30
+ //# sourceMappingURL=input-BJ8poX2h.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-J57TPqRp.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js"],"sourcesContent":["import { DEV } from 'esm-env';\nimport { render_effect, teardown } from '../../../reactivity/effects.js';\nimport { listen_to_event_and_reset_event } from './shared.js';\nimport * as e from '../../../errors.js';\nimport { is } from '../../../proxy.js';\nimport { queue_micro_task } from '../../task.js';\nimport { hydrating } from '../../hydration.js';\nimport { untrack } from '../../../runtime.js';\nimport { is_runes } from '../../../context.js';\n\n/**\n * @param {HTMLInputElement} input\n * @param {() => unknown} get\n * @param {(value: unknown) => void} set\n * @returns {void}\n */\nexport function bind_value(input, get, set = get) {\n\tvar runes = is_runes();\n\n\tlisten_to_event_and_reset_event(input, 'input', (is_reset) => {\n\t\tif (DEV && input.type === 'checkbox') {\n\t\t\t// TODO should this happen in prod too?\n\t\t\te.bind_invalid_checkbox_value();\n\t\t}\n\n\t\t/** @type {any} */\n\t\tvar value = is_reset ? input.defaultValue : input.value;\n\t\tvalue = is_numberlike_input(input) ? to_number(value) : value;\n\t\tset(value);\n\n\t\t// In runes mode, respect any validation in accessors (doesn't apply in legacy mode,\n\t\t// because we use mutable state which ensures the render effect always runs)\n\t\tif (runes && value !== (value = get())) {\n\t\t\tvar start = input.selectionStart;\n\t\t\tvar end = input.selectionEnd;\n\n\t\t\t// the value is coerced on assignment\n\t\t\tinput.value = value ?? '';\n\n\t\t\t// Restore selection\n\t\t\tif (end !== null) {\n\t\t\t\tinput.selectionStart = start;\n\t\t\t\tinput.selectionEnd = Math.min(end, input.value.length);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (\n\t\t// If we are hydrating and the value has since changed,\n\t\t// then use the updated value from the input instead.\n\t\t(hydrating && input.defaultValue !== input.value) ||\n\t\t// If defaultValue is set, then value == defaultValue\n\t\t// TODO Svelte 6: remove input.value check and set to empty string?\n\t\t(untrack(get) == null && input.value)\n\t) {\n\t\tset(is_numberlike_input(input) ? to_number(input.value) : input.value);\n\t}\n\n\trender_effect(() => {\n\t\tif (DEV && input.type === 'checkbox') {\n\t\t\t// TODO should this happen in prod too?\n\t\t\te.bind_invalid_checkbox_value();\n\t\t}\n\n\t\tvar value = get();\n\n\t\tif (is_numberlike_input(input) && value === to_number(input.value)) {\n\t\t\t// handles 0 vs 00 case (see https://github.com/sveltejs/svelte/issues/9959)\n\t\t\treturn;\n\t\t}\n\n\t\tif (input.type === 'date' && !value && !input.value) {\n\t\t\t// Handles the case where a temporarily invalid date is set (while typing, for example with a leading 0 for the day)\n\t\t\t// and prevents this state from clearing the other parts of the date input (see https://github.com/sveltejs/svelte/issues/7897)\n\t\t\treturn;\n\t\t}\n\n\t\t// don't set the value of the input if it's the same to allow\n\t\t// minlength to work properly\n\t\tif (value !== input.value) {\n\t\t\t// @ts-expect-error the value is coerced on assignment\n\t\t\tinput.value = value ?? '';\n\t\t}\n\t});\n}\n\n/** @type {Set<HTMLInputElement[]>} */\nconst pending = new Set();\n\n/**\n * @param {HTMLInputElement[]} inputs\n * @param {null | [number]} group_index\n * @param {HTMLInputElement} input\n * @param {() => unknown} get\n * @param {(value: unknown) => void} set\n * @returns {void}\n */\nexport function bind_group(inputs, group_index, input, get, set = get) {\n\tvar is_checkbox = input.getAttribute('type') === 'checkbox';\n\tvar binding_group = inputs;\n\n\t// needs to be let or related code isn't treeshaken out if it's always false\n\tlet hydration_mismatch = false;\n\n\tif (group_index !== null) {\n\t\tfor (var index of group_index) {\n\t\t\t// @ts-expect-error\n\t\t\tbinding_group = binding_group[index] ??= [];\n\t\t}\n\t}\n\n\tbinding_group.push(input);\n\n\tlisten_to_event_and_reset_event(\n\t\tinput,\n\t\t'change',\n\t\t() => {\n\t\t\t// @ts-ignore\n\t\t\tvar value = input.__value;\n\n\t\t\tif (is_checkbox) {\n\t\t\t\tvalue = get_binding_group_value(binding_group, value, input.checked);\n\t\t\t}\n\n\t\t\tset(value);\n\t\t},\n\t\t// TODO better default value handling\n\t\t() => set(is_checkbox ? [] : null)\n\t);\n\n\trender_effect(() => {\n\t\tvar value = get();\n\n\t\t// If we are hydrating and the value has since changed, then use the update value\n\t\t// from the input instead.\n\t\tif (hydrating && input.defaultChecked !== input.checked) {\n\t\t\thydration_mismatch = true;\n\t\t\treturn;\n\t\t}\n\n\t\tif (is_checkbox) {\n\t\t\tvalue = value || [];\n\t\t\t// @ts-ignore\n\t\t\tinput.checked = value.includes(input.__value);\n\t\t} else {\n\t\t\t// @ts-ignore\n\t\t\tinput.checked = is(input.__value, value);\n\t\t}\n\t});\n\n\tteardown(() => {\n\t\tvar index = binding_group.indexOf(input);\n\n\t\tif (index !== -1) {\n\t\t\tbinding_group.splice(index, 1);\n\t\t}\n\t});\n\n\tif (!pending.has(binding_group)) {\n\t\tpending.add(binding_group);\n\n\t\tqueue_micro_task(() => {\n\t\t\t// necessary to maintain binding group order in all insertion scenarios\n\t\t\tbinding_group.sort((a, b) => (a.compareDocumentPosition(b) === 4 ? -1 : 1));\n\t\t\tpending.delete(binding_group);\n\t\t});\n\t}\n\n\tqueue_micro_task(() => {\n\t\tif (hydration_mismatch) {\n\t\t\tvar value;\n\n\t\t\tif (is_checkbox) {\n\t\t\t\tvalue = get_binding_group_value(binding_group, value, input.checked);\n\t\t\t} else {\n\t\t\t\tvar hydration_input = binding_group.find((input) => input.checked);\n\t\t\t\t// @ts-ignore\n\t\t\t\tvalue = hydration_input?.__value;\n\t\t\t}\n\n\t\t\tset(value);\n\t\t}\n\t});\n}\n\n/**\n * @param {HTMLInputElement} input\n * @param {() => unknown} get\n * @param {(value: unknown) => void} set\n * @returns {void}\n */\nexport function bind_checked(input, get, set = get) {\n\tlisten_to_event_and_reset_event(input, 'change', (is_reset) => {\n\t\tvar value = is_reset ? input.defaultChecked : input.checked;\n\t\tset(value);\n\t});\n\n\tif (\n\t\t// If we are hydrating and the value has since changed,\n\t\t// then use the update value from the input instead.\n\t\t(hydrating && input.defaultChecked !== input.checked) ||\n\t\t// If defaultChecked is set, then checked == defaultChecked\n\t\tuntrack(get) == null\n\t) {\n\t\tset(input.checked);\n\t}\n\n\trender_effect(() => {\n\t\tvar value = get();\n\t\tinput.checked = Boolean(value);\n\t});\n}\n\n/**\n * @template V\n * @param {Array<HTMLInputElement>} group\n * @param {V} __value\n * @param {boolean} checked\n * @returns {V[]}\n */\nfunction get_binding_group_value(group, __value, checked) {\n\tvar value = new Set();\n\n\tfor (var i = 0; i < group.length; i += 1) {\n\t\tif (group[i].checked) {\n\t\t\t// @ts-ignore\n\t\t\tvalue.add(group[i].__value);\n\t\t}\n\t}\n\n\tif (!checked) {\n\t\tvalue.delete(__value);\n\t}\n\n\treturn Array.from(value);\n}\n\n/**\n * @param {HTMLInputElement} input\n */\nfunction is_numberlike_input(input) {\n\tvar type = input.type;\n\treturn type === 'number' || type === 'range';\n}\n\n/**\n * @param {string} value\n */\nfunction to_number(value) {\n\treturn value === '' ? null : +value;\n}\n\n/**\n * @param {HTMLInputElement} input\n * @param {() => FileList | null} get\n * @param {(value: FileList | null) => void} set\n */\nexport function bind_files(input, get, set = get) {\n\tlisten_to_event_and_reset_event(input, 'change', () => {\n\t\tset(input.files);\n\t});\n\n\tif (\n\t\t// If we are hydrating and the value has since changed,\n\t\t// then use the updated value from the input instead.\n\t\thydrating &&\n\t\tinput.files\n\t) {\n\t\tset(input.files);\n\t}\n\n\trender_effect(() => {\n\t\tinput.files = get();\n\t});\n}\n"],"names":["bind_value","input","get","set","runes","is_runes","listen_to_event_and_reset_event","is_reset","value","is_numberlike_input","to_number","start","end","hydrating","untrack","render_effect","type"],"mappings":";;AAgBO,SAASA,EAAWC,GAAOC,GAAKC,IAAMD,GAAK;AACjD,MAAIE,IAAQC,EAAU;AAEtB,EAAAC,EAAgCL,GAAO,SAAS,CAACM,MAAa;AAO7D,QAAIC,IAAQD,IAAWN,EAAM,eAAeA,EAAM;AAMlD,QALAO,IAAQC,EAAoBR,CAAK,IAAIS,EAAUF,CAAK,IAAIA,GACxDL,EAAIK,CAAK,GAILJ,KAASI,OAAWA,IAAQN,EAAK,IAAG;AACvC,UAAIS,IAAQV,EAAM,gBACdW,IAAMX,EAAM;AAGhB,MAAAA,EAAM,QAAQO,KAAS,IAGnBI,MAAQ,SACXX,EAAM,iBAAiBU,GACvBV,EAAM,eAAe,KAAK,IAAIW,GAAKX,EAAM,MAAM,MAAM;AAAA,IAEzD;AAAA,EACA,CAAE;AAAA;AAAA,GAKCY,KAAaZ,EAAM,iBAAiBA,EAAM;AAAA;AAAA,EAG1Ca,EAAQZ,CAAG,KAAK,QAAQD,EAAM,UAE/BE,EAAIM,EAAoBR,CAAK,IAAIS,EAAUT,EAAM,KAAK,IAAIA,EAAM,KAAK,GAGtEc,EAAc,MAAM;AAMnB,QAAIP,IAAQN,EAAK;AAEjB,IAAIO,EAAoBR,CAAK,KAAKO,MAAUE,EAAUT,EAAM,KAAK,KAK7DA,EAAM,SAAS,UAAU,CAACO,KAAS,CAACP,EAAM,SAQ1CO,MAAUP,EAAM,UAEnBA,EAAM,QAAQO,KAAS;AAAA,EAE1B,CAAE;AACF;AA4JA,SAASC,EAAoBR,GAAO;AACnC,MAAIe,IAAOf,EAAM;AACjB,SAAOe,MAAS,YAAYA,MAAS;AACtC;AAKA,SAASN,EAAUF,GAAO;AACzB,SAAOA,MAAU,KAAK,OAAO,CAACA;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"input-BJ8poX2h.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js"],"sourcesContent":["import { DEV } from 'esm-env';\nimport { render_effect, teardown } from '../../../reactivity/effects.js';\nimport { listen_to_event_and_reset_event } from './shared.js';\nimport * as e from '../../../errors.js';\nimport { is } from '../../../proxy.js';\nimport { queue_micro_task } from '../../task.js';\nimport { hydrating } from '../../hydration.js';\nimport { untrack } from '../../../runtime.js';\nimport { is_runes } from '../../../context.js';\n\n/**\n * @param {HTMLInputElement} input\n * @param {() => unknown} get\n * @param {(value: unknown) => void} set\n * @returns {void}\n */\nexport function bind_value(input, get, set = get) {\n\tvar runes = is_runes();\n\n\tlisten_to_event_and_reset_event(input, 'input', (is_reset) => {\n\t\tif (DEV && input.type === 'checkbox') {\n\t\t\t// TODO should this happen in prod too?\n\t\t\te.bind_invalid_checkbox_value();\n\t\t}\n\n\t\t/** @type {any} */\n\t\tvar value = is_reset ? input.defaultValue : input.value;\n\t\tvalue = is_numberlike_input(input) ? to_number(value) : value;\n\t\tset(value);\n\n\t\t// In runes mode, respect any validation in accessors (doesn't apply in legacy mode,\n\t\t// because we use mutable state which ensures the render effect always runs)\n\t\tif (runes && value !== (value = get())) {\n\t\t\tvar start = input.selectionStart;\n\t\t\tvar end = input.selectionEnd;\n\n\t\t\t// the value is coerced on assignment\n\t\t\tinput.value = value ?? '';\n\n\t\t\t// Restore selection\n\t\t\tif (end !== null) {\n\t\t\t\tinput.selectionStart = start;\n\t\t\t\tinput.selectionEnd = Math.min(end, input.value.length);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (\n\t\t// If we are hydrating and the value has since changed,\n\t\t// then use the updated value from the input instead.\n\t\t(hydrating && input.defaultValue !== input.value) ||\n\t\t// If defaultValue is set, then value == defaultValue\n\t\t// TODO Svelte 6: remove input.value check and set to empty string?\n\t\t(untrack(get) == null && input.value)\n\t) {\n\t\tset(is_numberlike_input(input) ? to_number(input.value) : input.value);\n\t}\n\n\trender_effect(() => {\n\t\tif (DEV && input.type === 'checkbox') {\n\t\t\t// TODO should this happen in prod too?\n\t\t\te.bind_invalid_checkbox_value();\n\t\t}\n\n\t\tvar value = get();\n\n\t\tif (is_numberlike_input(input) && value === to_number(input.value)) {\n\t\t\t// handles 0 vs 00 case (see https://github.com/sveltejs/svelte/issues/9959)\n\t\t\treturn;\n\t\t}\n\n\t\tif (input.type === 'date' && !value && !input.value) {\n\t\t\t// Handles the case where a temporarily invalid date is set (while typing, for example with a leading 0 for the day)\n\t\t\t// and prevents this state from clearing the other parts of the date input (see https://github.com/sveltejs/svelte/issues/7897)\n\t\t\treturn;\n\t\t}\n\n\t\t// don't set the value of the input if it's the same to allow\n\t\t// minlength to work properly\n\t\tif (value !== input.value) {\n\t\t\t// @ts-expect-error the value is coerced on assignment\n\t\t\tinput.value = value ?? '';\n\t\t}\n\t});\n}\n\n/** @type {Set<HTMLInputElement[]>} */\nconst pending = new Set();\n\n/**\n * @param {HTMLInputElement[]} inputs\n * @param {null | [number]} group_index\n * @param {HTMLInputElement} input\n * @param {() => unknown} get\n * @param {(value: unknown) => void} set\n * @returns {void}\n */\nexport function bind_group(inputs, group_index, input, get, set = get) {\n\tvar is_checkbox = input.getAttribute('type') === 'checkbox';\n\tvar binding_group = inputs;\n\n\t// needs to be let or related code isn't treeshaken out if it's always false\n\tlet hydration_mismatch = false;\n\n\tif (group_index !== null) {\n\t\tfor (var index of group_index) {\n\t\t\t// @ts-expect-error\n\t\t\tbinding_group = binding_group[index] ??= [];\n\t\t}\n\t}\n\n\tbinding_group.push(input);\n\n\tlisten_to_event_and_reset_event(\n\t\tinput,\n\t\t'change',\n\t\t() => {\n\t\t\t// @ts-ignore\n\t\t\tvar value = input.__value;\n\n\t\t\tif (is_checkbox) {\n\t\t\t\tvalue = get_binding_group_value(binding_group, value, input.checked);\n\t\t\t}\n\n\t\t\tset(value);\n\t\t},\n\t\t// TODO better default value handling\n\t\t() => set(is_checkbox ? [] : null)\n\t);\n\n\trender_effect(() => {\n\t\tvar value = get();\n\n\t\t// If we are hydrating and the value has since changed, then use the update value\n\t\t// from the input instead.\n\t\tif (hydrating && input.defaultChecked !== input.checked) {\n\t\t\thydration_mismatch = true;\n\t\t\treturn;\n\t\t}\n\n\t\tif (is_checkbox) {\n\t\t\tvalue = value || [];\n\t\t\t// @ts-ignore\n\t\t\tinput.checked = value.includes(input.__value);\n\t\t} else {\n\t\t\t// @ts-ignore\n\t\t\tinput.checked = is(input.__value, value);\n\t\t}\n\t});\n\n\tteardown(() => {\n\t\tvar index = binding_group.indexOf(input);\n\n\t\tif (index !== -1) {\n\t\t\tbinding_group.splice(index, 1);\n\t\t}\n\t});\n\n\tif (!pending.has(binding_group)) {\n\t\tpending.add(binding_group);\n\n\t\tqueue_micro_task(() => {\n\t\t\t// necessary to maintain binding group order in all insertion scenarios\n\t\t\tbinding_group.sort((a, b) => (a.compareDocumentPosition(b) === 4 ? -1 : 1));\n\t\t\tpending.delete(binding_group);\n\t\t});\n\t}\n\n\tqueue_micro_task(() => {\n\t\tif (hydration_mismatch) {\n\t\t\tvar value;\n\n\t\t\tif (is_checkbox) {\n\t\t\t\tvalue = get_binding_group_value(binding_group, value, input.checked);\n\t\t\t} else {\n\t\t\t\tvar hydration_input = binding_group.find((input) => input.checked);\n\t\t\t\t// @ts-ignore\n\t\t\t\tvalue = hydration_input?.__value;\n\t\t\t}\n\n\t\t\tset(value);\n\t\t}\n\t});\n}\n\n/**\n * @param {HTMLInputElement} input\n * @param {() => unknown} get\n * @param {(value: unknown) => void} set\n * @returns {void}\n */\nexport function bind_checked(input, get, set = get) {\n\tlisten_to_event_and_reset_event(input, 'change', (is_reset) => {\n\t\tvar value = is_reset ? input.defaultChecked : input.checked;\n\t\tset(value);\n\t});\n\n\tif (\n\t\t// If we are hydrating and the value has since changed,\n\t\t// then use the update value from the input instead.\n\t\t(hydrating && input.defaultChecked !== input.checked) ||\n\t\t// If defaultChecked is set, then checked == defaultChecked\n\t\tuntrack(get) == null\n\t) {\n\t\tset(input.checked);\n\t}\n\n\trender_effect(() => {\n\t\tvar value = get();\n\t\tinput.checked = Boolean(value);\n\t});\n}\n\n/**\n * @template V\n * @param {Array<HTMLInputElement>} group\n * @param {V} __value\n * @param {boolean} checked\n * @returns {V[]}\n */\nfunction get_binding_group_value(group, __value, checked) {\n\tvar value = new Set();\n\n\tfor (var i = 0; i < group.length; i += 1) {\n\t\tif (group[i].checked) {\n\t\t\t// @ts-ignore\n\t\t\tvalue.add(group[i].__value);\n\t\t}\n\t}\n\n\tif (!checked) {\n\t\tvalue.delete(__value);\n\t}\n\n\treturn Array.from(value);\n}\n\n/**\n * @param {HTMLInputElement} input\n */\nfunction is_numberlike_input(input) {\n\tvar type = input.type;\n\treturn type === 'number' || type === 'range';\n}\n\n/**\n * @param {string} value\n */\nfunction to_number(value) {\n\treturn value === '' ? null : +value;\n}\n\n/**\n * @param {HTMLInputElement} input\n * @param {() => FileList | null} get\n * @param {(value: FileList | null) => void} set\n */\nexport function bind_files(input, get, set = get) {\n\tlisten_to_event_and_reset_event(input, 'change', () => {\n\t\tset(input.files);\n\t});\n\n\tif (\n\t\t// If we are hydrating and the value has since changed,\n\t\t// then use the updated value from the input instead.\n\t\thydrating &&\n\t\tinput.files\n\t) {\n\t\tset(input.files);\n\t}\n\n\trender_effect(() => {\n\t\tinput.files = get();\n\t});\n}\n"],"names":["bind_value","input","get","set","runes","is_runes","listen_to_event_and_reset_event","is_reset","value","is_numberlike_input","to_number","start","end","hydrating","untrack","render_effect","type"],"mappings":";;AAgBO,SAASA,EAAWC,GAAOC,GAAKC,IAAMD,GAAK;AACjD,MAAIE,IAAQC,EAAU;AAEtB,EAAAC,EAAgCL,GAAO,SAAS,CAACM,MAAa;AAO7D,QAAIC,IAAQD,IAAWN,EAAM,eAAeA,EAAM;AAMlD,QALAO,IAAQC,EAAoBR,CAAK,IAAIS,EAAUF,CAAK,IAAIA,GACxDL,EAAIK,CAAK,GAILJ,KAASI,OAAWA,IAAQN,EAAK,IAAG;AACvC,UAAIS,IAAQV,EAAM,gBACdW,IAAMX,EAAM;AAGhB,MAAAA,EAAM,QAAQO,KAAS,IAGnBI,MAAQ,SACXX,EAAM,iBAAiBU,GACvBV,EAAM,eAAe,KAAK,IAAIW,GAAKX,EAAM,MAAM,MAAM;AAAA,IAEzD;AAAA,EACA,CAAE;AAAA;AAAA,GAKCY,KAAaZ,EAAM,iBAAiBA,EAAM;AAAA;AAAA,EAG1Ca,EAAQZ,CAAG,KAAK,QAAQD,EAAM,UAE/BE,EAAIM,EAAoBR,CAAK,IAAIS,EAAUT,EAAM,KAAK,IAAIA,EAAM,KAAK,GAGtEc,EAAc,MAAM;AAMnB,QAAIP,IAAQN,EAAK;AAEjB,IAAIO,EAAoBR,CAAK,KAAKO,MAAUE,EAAUT,EAAM,KAAK,KAK7DA,EAAM,SAAS,UAAU,CAACO,KAAS,CAACP,EAAM,SAQ1CO,MAAUP,EAAM,UAEnBA,EAAM,QAAQO,KAAS;AAAA,EAE1B,CAAE;AACF;AA4JA,SAASC,EAAoBR,GAAO;AACnC,MAAIe,IAAOf,EAAM;AACjB,SAAOe,MAAS,YAAYA,MAAS;AACtC;AAKA,SAASN,EAAUF,GAAO;AACzB,SAAOA,MAAU,KAAK,OAAO,CAACA;AAC/B;","x_google_ignoreList":[0]}
@@ -3,7 +3,7 @@ var ve = (e) => {
3
3
  };
4
4
  var _e = (e, r, t) => r.has(e) || ve("Cannot " + t);
5
5
  var w = (e, r, t) => (_e(e, r, "read from private field"), t ? t.call(e) : r.get(e)), Z = (e, r, t) => r.has(e) ? ve("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), Q = (e, r, t, a) => (_e(e, r, "write to private field"), a ? a.call(e, t) : r.set(e, t), t);
6
- import { q as oe, k as Y, j as F, a0 as Pe, a1 as q, a2 as Re, a3 as le, a4 as Me, a5 as re, a6 as Je, a7 as G, a8 as Ze, h as p, g as N, a9 as Qe, s as k, a as B, aa as Xe, ab as te, ac as he, ad as me, ae as xe, af as X, d as R, ag as er, ah as rr, ai as tr, aj as ar, ak as ir, al as sr, p as D, v as nr, n as Ce, z as ur, b as J, am as De, an as fr, H as or, r as lr, o as be, t as ae, U as cr, ao as ie, ap as $e, G as K, aq as dr, ar as vr, as as _r, at as hr, au as br, av as z, K as y, aw as gr, ax as pr, ay as Er, az as Ar, aA as ge, aB as Sr, aC as pe, A as Tr, aD as Ee, m as ce, aE as wr, L as yr, J as de, aF as Nr, aG as Ir, aH as Lr, f as Or, aI as Pr, aJ as je, aK as Ae, aL as Rr, aM as Ue, aN as Mr, I as mr, aO as Cr, aP as Dr, aQ as $r, aR as jr, aS as Ur, u as Vr, aT as qr } from "./index-By5ED3Yb.js";
6
+ import { q as oe, k as Y, j as F, a0 as Pe, a1 as q, a2 as Re, a3 as le, a4 as Me, a5 as re, a6 as Je, a7 as G, a8 as Ze, h as p, g as N, a9 as Qe, s as k, a as B, aa as Xe, ab as te, ac as he, ad as me, ae as xe, af as X, d as R, ag as er, ah as rr, ai as tr, aj as ar, ak as ir, al as sr, p as D, v as nr, n as Ce, z as ur, b as J, am as De, an as fr, H as or, r as lr, o as be, t as ae, U as cr, ao as ie, ap as $e, G as K, aq as dr, ar as vr, as as _r, at as hr, au as br, av as z, K as y, aw as gr, ax as pr, ay as Er, az as Ar, aA as ge, aB as Sr, aC as pe, A as Tr, aD as Ee, m as ce, aE as wr, L as yr, J as de, aF as Nr, aG as Ir, aH as Lr, f as Or, aI as Pr, aJ as je, aK as Ae, aL as Rr, aM as Ue, aN as Mr, I as mr, aO as Cr, aP as Dr, aQ as $r, aR as jr, aS as Ur, u as Vr, aT as qr } from "./index-Cpr_yChD.js";
7
7
  function Br(e) {
8
8
  return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
9
9
  }
@@ -1035,4 +1035,4 @@ export {
1035
1035
  M as y,
1036
1036
  Jr as z
1037
1037
  };
1038
- //# sourceMappingURL=legacy-DjyLhwW_.js.map
1038
+ //# sourceMappingURL=legacy-YR9wiUnf.js.map