@htmlbricks/hb-input-datetime 0.61.34 → 0.61.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(Vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Jr=1,Kr=2,Yt="[",Bt="[!",Ut="]",he={},S=Symbol(),Zr="http://www.w3.org/1999/xhtml",Gt=!1;var Wt=Array.isArray,Qr=Array.prototype.indexOf,en=Array.from,He=Object.keys,be=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyDescriptors,rn=Object.prototype,nn=Array.prototype,Xt=Object.getPrototypeOf,Jt=Object.isExtensible;function Kt(e){for(var t=0;t<e.length;t++)e[t]()}function sn(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const P=2,vt=4,ht=8,me=16,U=32,W=64,Zt=128,L=256,Ve=512,A=1024,j=2048,X=4096,J=8192,re=16384,bt=32768,_t=65536,Qt=1<<17,an=1<<18,pe=1<<19,on=1<<20,mt=1<<21,pt=1<<22,ne=1<<23,gt=Symbol("$state"),ln=Symbol("legacy props"),wt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},er=3,Ye=8;function un(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function fn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function dn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function vn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bn(){throw new Error("https://svelte.dev/e/hydration_failed")}function _n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let k=!1;function K(e){k=e}let x;function Z(e){if(e===null)throw Be(),he;return x=e}function yt(){return Z(oe(x))}function ge(e){if(k){if(oe(x)!==null)throw Be(),he;x=e}}function gn(){for(var e=0,t=x;;){if(t.nodeType===Ye){var r=t.data;if(r===Ut){if(e===0)return t;e-=1}else(r===Yt||r===Bt)&&(e+=1)}var n=oe(t);t.remove(),t=n}}function wn(e){if(!e||e.nodeType!==Ye)throw Be(),he;return e.data}function tr(e){return e===this.v}function yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $n(e){return!yn(e,this.v)}let En=!1,V=null;function Ue(e){V=e}function rr(e,t=!1,r){V={p:V,c:null,e:null,s:e,x:null,l:null}}function nr(e){var t=V,r=t.e;if(r!==null){t.e=null;for(var n of r)wr(n)}return e!==void 0&&(t.x=e),V=t.p,e??{}}function sr(){return!0}const kn=new WeakMap;function xn(e){var t=w;if(t===null)return y.f|=ne,e;if((t.f&bt)===0){if((t.f&Zt)===0)throw!t.parent&&e instanceof Error&&ir(e),e;t.b.error(e)}else $t(e,t)}function $t(e,t){for(;t!==null;){if((t.f&Zt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&ir(e),e}function ir(e){const t=kn.get(e);t&&(be(e,"message",{value:t.message}),be(e,"stack",{value:t.stack}))}let Me=[],Et=[];function ar(){var e=Me;Me=[],Kt(e)}function Sn(){var e=Et;Et=[],Kt(e)}function Tn(e){Me.length===0&&queueMicrotask(ar),Me.push(e)}function Nn(){Me.length>0&&ar(),Et.length>0&&Sn()}function On(){const e=w.b;return e===null&&un(),e}function kt(e){var t=P|j,r=y!==null&&(y.f&P)!==0?y:null;return w===null||r!==null&&(r.f&L)!==0?t|=L:w.f|=pe,{ctx:V,deps:null,effects:null,equals:tr,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:r??w,ac:null}}function An(e,t){let r=w;r===null&&fn();var n=r.b,s=void 0,i=Nt(S),a=null,l=!y;return Yn(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(v){o=Promise.reject(v)}var u=()=>o;s=a?.then(u,u)??Promise.resolve(o),a=s;var f=T,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const b=(v,h=void 0)=>{a=null,c||f.activate(),h?h!==wt&&(i.f|=ne,Ot(i,h)):((i.f&ne)!==0&&(i.f^=ne),Ot(i,v)),l&&(n.update_pending_count(-1),c||f.decrement()),ur()};if(s.then(b,v=>b(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function c(){f===s?o(i):u(s)}f.then(c,c)}u(s)})}function Pe(e){const t=kt(e);return Or(t),t}function or(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function Rn(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return t;t=t.parent}return null}function xt(e){var t,r=w;B(Rn(e));try{or(e),t=Mr(e)}finally{B(r)}return t}function lr(e){var t=xt(e);if(e.equals(t)||(e.v=t,e.wv=Cr()),!le){var r=(te||(e.f&L)!==0)&&e.deps!==null?X:A;z(e,r)}}function Cn(e,t,r){const n=kt;if(t.length===0){r(e.map(n));return}var s=T,i=w,a=zn(),l=On();Promise.all(t.map(o=>An(o))).then(o=>{s?.activate(),a();try{r([...e.map(n),...o])}catch(u){(i.f&re)===0&&$t(u,i)}s?.deactivate(),ur()}).catch(o=>{l.error(o)})}function zn(){var e=w,t=y,r=V,n=T;return function(){B(e),F(t),Ue(r),n?.activate()}}function ur(){B(null),F(null),Ue(null)}const St=new Set;let T=null,fr=new Set,Ge=[];function cr(){const e=Ge.shift();Ge.length>0&&queueMicrotask(cr),e()}let se=[],We=null,Tt=!1,Xe=!1;class ie{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#a=[];#i=[];#n=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){se=[];for(const s of t)this.#h(s);if(this.#s.length===0&&this.#r===0){this.#v();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#o=[],T=null,vr(r),vr(n),T===null?T=this:St.delete(this),this.#u?.resolve()}else this.#l(this.#i),this.#l(this.#n),this.#l(this.#o);for(const s of this.#s)Te(s);for(const s of this.#a)Te(s);this.#s=[],this.#a=[]}#h(t){t.f^=A;for(var r=t.first;r!==null;){var n=r.f,s=(n&(U|W))!==0,i=s&&(n&A)!==0,a=i||(n&J)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(s)r.f^=A;else if((n&vt)!==0)this.#n.push(r);else if((n&A)===0)if((n&pt)!==0){var l=r.b?.is_pending()?this.#a:this.#s;l.push(r)}else Ze(r)&&((r.f&me)!==0&&this.#o.push(r),Te(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&j)!==0?this.#c:this.#d).push(r),z(r,A);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){T=this}deactivate(){T=null;for(const t of fr)if(fr.delete(t),t(),T!==null)break}neuter(){this.#f=!0}flush(){se.length>0?dr():this.#v(),T===this&&(this.#r===0&&St.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)z(t,j),we(t);for(const t of this.#d)z(t,X),we(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=sn()).promise}static ensure(){if(T===null){const t=T=new ie;St.add(T),Xe||ie.enqueue(()=>{T===t&&t.flush()})}return T}static enqueue(t){Ge.length===0&&queueMicrotask(cr),Ge.unshift(t)}}function Je(e){var t=Xe;Xe=!0;try{for(var r;;){if(Nn(),se.length===0&&(T?.flush(),se.length===0))return We=null,r;dr()}}finally{Xe=t}}function dr(){var e=Se;Tt=!0;try{var t=0;for(Tr(!0);se.length>0;){var r=ie.ensure();if(t++>1e3){var n,s;Mn()}r.process(se),Q.clear()}}finally{Tt=!1,Tr(e),We=null}}function Mn(){try{hn()}catch(e){$t(e,We)}}let ae=null;function vr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(re|J))===0&&Ze(n)&&(ae=[],Te(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Er(n):n.fn=null),ae?.length>0)){Q.clear();for(const s of ae)Te(s);ae=[]}}ae=null}}function we(e){for(var t=We=e;t.parent!==null;){t=t.parent;var r=t.f;if(Tt&&t===w&&(r&me)!==0)return;if((r&(W|U))!==0){if((r&A)===0)return;t.f^=A}}se.push(t)}const Q=new Map;function Nt(e,t){var r={f:0,v:e,reactions:null,equals:tr,rv:0,wv:0};return r}function R(e,t){const r=Nt(e);return Or(r),r}function Pn(e,t=!1,r=!0){const n=Nt(e);return t||(n.equals=$n),n}function E(e,t,r=!1){y!==null&&(!ue||(y.f&Qt)!==0)&&sr()&&(y.f&(P|me|pt|Qt))!==0&&!G?.includes(e)&&pn();let n=r?ye(t):t;return Ot(e,n)}function Ot(e,t){if(!e.equals(t)){var r=e.v;le?Q.set(e,t):Q.set(e,r),e.v=t;var n=ie.ensure();n.capture(e,r),(e.f&P)!==0&&((e.f&j)!==0&&xt(e),z(e,(e.f&L)===0?A:X)),e.wv=Cr(),hr(e,j),w!==null&&(w.f&A)!==0&&(w.f&(U|W))===0&&(q===null?Kn([e]):q.push(e))}return t}function At(e){E(e,e.v+1)}function hr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],a=i.f,l=(a&j)===0;l&&z(i,t),(a&P)!==0?hr(i,X):l&&((a&me)!==0&&ae!==null&&ae.push(i),we(i))}}function ye(e){if(typeof e!="object"||e===null||gt in e)return e;const t=Xt(e);if(t!==rn&&t!==nn)return e;var r=new Map,n=Wt(e),s=R(0),i=fe,a=l=>{if(fe===i)return l();var o=y,u=fe;F(null),Rr(i);var f=l();return F(o),Rr(u),f};return n&&r.set("length",R(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_n();var f=r.get(o);return f===void 0?f=a(()=>{var c=R(u.value);return r.set(o,c),c}):E(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>R(S));r.set(o,f),At(s)}}else E(u,S),At(s);return!0},get(l,o,u){if(o===gt)return e;var f=r.get(o),c=o in l;if(f===void 0&&(!c||_e(l,o)?.writable)&&(f=a(()=>{var v=ye(c?l[o]:S),h=R(v);return h}),r.set(o,f)),f!==void 0){var b=d(f);return b===S?void 0:b}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=d(f))}else if(u===void 0){var c=r.get(o),b=c?.v;if(c!==void 0&&b!==S)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return u},has(l,o){if(o===gt)return!0;var u=r.get(o),f=u!==void 0&&u.v!==S||Reflect.has(l,o);if(u!==void 0||w!==null&&(!f||_e(l,o)?.writable)){u===void 0&&(u=a(()=>{var b=f?ye(l[o]):S,v=R(b);return v}),r.set(o,u));var c=d(u);if(c===S)return!1}return f},set(l,o,u,f){var c=r.get(o),b=o in l;if(n&&o==="length")for(var v=u;v<c.v;v+=1){var h=r.get(v+"");h!==void 0?E(h,S):v in l&&(h=a(()=>R(S)),r.set(v+"",h))}if(c===void 0)(!b||_e(l,o)?.writable)&&(c=a(()=>R(void 0)),E(c,ye(u)),r.set(o,c));else{b=c.v!==S;var p=a(()=>ye(u));E(c,p)}var N=Reflect.getOwnPropertyDescriptor(l,o);if(N?.set&&N.set.call(f,u),!b){if(n&&typeof o=="string"){var O=r.get("length"),$=Number(o);Number.isInteger($)&&$>=O.v&&E(O,$+1)}At(s)}return!0},ownKeys(l){d(s);var o=Reflect.ownKeys(l).filter(c=>{var b=r.get(c);return b===void 0||b.v!==S});for(var[u,f]of r)f.v!==S&&!(u in l)&&o.push(u);return o},setPrototypeOf(){mn()}})}var br,_r,mr,pr;function Rt(){if(br===void 0){br=window,_r=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;mr=_e(t,"firstChild").get,pr=_e(t,"nextSibling").get,Jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Jt(r)&&(r.__t=void 0)}}function $e(e=""){return document.createTextNode(e)}function Ee(e){return mr.call(e)}function oe(e){return pr.call(e)}function ke(e,t){if(!k)return Ee(e);var r=Ee(x);if(r===null)r=x.appendChild($e());else if(t&&r.nodeType!==er){var n=$e();return r?.before(n),Z(n),n}return Z(r),r}function Ke(e,t){if(!k){var r=Ee(e);return r instanceof Comment&&r.data===""?oe(r):r}return x}function De(e,t=1,r=!1){let n=k?x:e;for(var s;t--;)s=n,n=oe(n);if(!k)return n;if(r&&n?.nodeType!==er){var i=$e();return n===null?s?.after(i):n.before(i),Z(i),i}return Z(n),n}function Dn(e){e.textContent=""}function In(){return!1}function Ct(e){var t=y,r=w;F(null),B(null);try{return e()}finally{F(t),B(r)}}function Ln(e){w===null&&y===null&&vn(),y!==null&&(y.f&L)!==0&&w===null&&dn(),le&&cn()}function jn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Y(e,t,r,n=!0){var s=w;s!==null&&(s.f&J)!==0&&(e|=J);var i={ctx:V,deps:null,nodes_start:null,nodes_end:null,f:e|j,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Te(i),i.f|=bt}catch(o){throw ee(i),o}else t!==null&&we(i);if(n){var a=i;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&pe)===0&&(a=a.first),a!==null&&(a.parent=s,s!==null&&jn(a,s),y!==null&&(y.f&P)!==0&&(e&W)===0)){var l=y;(l.effects??=[]).push(a)}}return i}function Fn(e){const t=Y(ht,null,!1);return z(t,A),t.teardown=e,t}function gr(e){Ln();var t=w.f,r=!y&&(t&U)!==0&&(t&bt)===0;if(r){var n=V;(n.e??=[]).push(e)}else return wr(e)}function wr(e){return Y(vt|on,e,!1)}function qn(e){ie.ensure();const t=Y(W|pe,e,!0);return()=>{ee(t)}}function Hn(e){ie.ensure();const t=Y(W|pe,e,!0);return(r={})=>new Promise(n=>{r.outro?kr(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function Vn(e){return Y(vt,e,!1)}function Yn(e){return Y(pt|pe,e,!0)}function Bn(e,t=0){return Y(ht|t,e,!0)}function xe(e,t=[],r=[]){Cn(t,r,n=>{Y(ht,()=>e(...n.map(d)),!0)})}function Un(e,t=0){var r=Y(me|t,e,!0);return r}function zt(e,t=!0){return Y(U|pe,e,!0,t)}function yr(e){var t=e.teardown;if(t!==null){const r=le,n=y;Nr(!0),F(null);try{t.call(null)}finally{Nr(r),F(n)}}}function $r(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Ct(()=>{s.abort(wt)});var n=r.next;(r.f&W)!==0?r.parent=null:ee(r,t),r=n}}function Gn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&U)===0&&ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||(e.f&an)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Wn(e.nodes_start,e.nodes_end),r=!0),$r(e,t&&!r),Qe(e,0),z(e,re);var n=e.transitions;if(n!==null)for(const i of n)i.stop();yr(e);var s=e.parent;s!==null&&s.first!==null&&Er(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:oe(e);e.remove(),e=r}}function Er(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function kr(e,t){var r=[];xr(e,r,!0),Xn(r,()=>{ee(e),t&&t()})}function Xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function xr(e,t,r){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&_t)!==0||(n.f&U)!==0;xr(n,t,i?r:!1),n=s}}}function Jn(e){Sr(e,!0)}function Sr(e,t){if((e.f&J)!==0){e.f^=J,(e.f&A)===0&&(z(e,j),we(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&_t)!==0||(r.f&U)!==0;Sr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let Se=!1;function Tr(e){Se=e}let le=!1;function Nr(e){le=e}let y=null,ue=!1;function F(e){y=e}let w=null;function B(e){w=e}let G=null;function Or(e){y!==null&&(G===null?G=[e]:G.push(e))}let C=null,D=0,q=null;function Kn(e){q=e}let Ar=1,Ie=0,fe=Ie;function Rr(e){fe=e}let te=!1;function Cr(){return++Ar}function Ze(e){var t=e.f;if((t&j)!==0)return!0;if((t&X)!==0){var r=e.deps,n=(t&L)!==0;if(r!==null){var s,i,a=(t&Ve)!==0,l=n&&w!==null&&!te,o=r.length;if((a||l)&&(w===null||(w.f&re)===0)){var u=e,f=u.parent;for(s=0;s<o;s++)i=r[s],(a||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);a&&(u.f^=Ve),l&&f!==null&&(f.f&L)===0&&(u.f^=L)}for(s=0;s<o;s++)if(i=r[s],Ze(i)&&lr(i),i.wv>e.wv)return!0}(!n||w!==null&&!te)&&z(e,A)}return!1}function zr(e,t,r=!0){var n=e.reactions;if(n!==null&&!G?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&P)!==0?zr(i,t,!1):t===i&&(r?z(i,j):(i.f&A)!==0&&z(i,X),we(i))}}function Mr(e){var t=C,r=D,n=q,s=y,i=te,a=G,l=V,o=ue,u=fe,f=e.f;C=null,D=0,q=null,te=(f&L)!==0&&(ue||!Se||y===null),y=(f&(U|W))===0?e:null,G=null,Ue(e.ctx),ue=!1,fe=++Ie,e.ac!==null&&(Ct(()=>{e.ac.abort(wt)}),e.ac=null);try{e.f|=mt;var c=e.fn,b=c(),v=e.deps;if(C!==null){var h;if(Qe(e,D),v!==null&&D>0)for(v.length=D+C.length,h=0;h<C.length;h++)v[D+h]=C[h];else e.deps=v=C;if(!te||(f&P)!==0&&e.reactions!==null)for(h=D;h<v.length;h++)(v[h].reactions??=[]).push(e)}else v!==null&&D<v.length&&(Qe(e,D),v.length=D);if(sr()&&q!==null&&!ue&&v!==null&&(e.f&(P|X|j))===0)for(h=0;h<q.length;h++)zr(q[h],e);return s!==null&&s!==e&&(Ie++,q!==null&&(n===null?n=q:n.push(...q))),(e.f&ne)!==0&&(e.f^=ne),b}catch(p){return xn(p)}finally{e.f^=mt,C=t,D=r,q=n,y=s,te=i,G=a,Ue(l),ue=o,fe=u}}function Zn(e,t){let r=t.reactions;if(r!==null){var n=Qr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&P)!==0&&(C===null||!C.includes(t))&&(z(t,X),(t.f&(L|Ve))===0&&(t.f^=Ve),or(t),Qe(t,0))}function Qe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zn(e,r[n])}function Te(e){var t=e.f;if((t&re)===0){z(e,A);var r=w,n=Se;w=e,Se=!0;try{(t&me)!==0?Gn(e):$r(e),yr(e);var s=Mr(e);e.teardown=typeof s=="function"?s:null,e.wv=Ar;var i;Gt&&En&&(e.f&j)!==0&&e.deps}finally{Se=n,w=r}}}function d(e){var t=e.f,r=(t&P)!==0;if(y!==null&&!ue){var n=w!==null&&(w.f&re)!==0;if(!n&&!G?.includes(e)){var s=y.deps;if((y.f&mt)!==0)e.rv<Ie&&(e.rv=Ie,C===null&&s!==null&&s[D]===e?D++:C===null?C=[e]:(!te||!C.includes(e))&&C.push(e));else{(y.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[y]:i.includes(y)||i.push(y)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&L)===0&&(a.f^=L)}if(le){if(Q.has(e))return Q.get(e);if(r){a=e;var o=a.v;return((a.f&A)===0&&a.reactions!==null||Pr(a))&&(o=xt(a)),Q.set(a,o),o}}else r&&(a=e,Ze(a)&&lr(a));if((e.f&ne)!==0)throw e.v;return e.v}function Pr(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&P)!==0&&Pr(t))return!0;return!1}const Qn=-7169;function z(e,t){e.f=e.f&Qn|t}const es=new Set,Dr=new Set;function ts(e,t,r,n={}){function s(i){if(n.capture||Le.call(t,i),!i.cancelBubble)return Ct(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Tn(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function et(e,t,r,n,s){var i={capture:n,passive:s},a=ts(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Fn(()=>{t.removeEventListener(e,a,i)})}let Ir=null;function Le(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Ir=e;var a=0,l=Ir===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(i=s[a]||e.target,i!==t){be(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=y,c=w;F(null),B(null);try{for(var b,v=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var p=i["__"+n];if(p!=null&&(!i.disabled||e.target===i))if(Wt(p)){var[N,...O]=p;N.apply(i,[e,...O])}else p.call(i,e)}catch($){b?v.push($):b=$}if(e.cancelBubble||h===t||h===null)break;i=h}if(b){for(let $ of v)queueMicrotask(()=>{throw $});throw b}}finally{e.__root=t,delete e.currentTarget,F(f),B(c)}}}function rs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function tt(e,t){var r=(t&Jr)!==0,n=(t&Kr)!==0,s,i=!e.startsWith("<!>");return()=>{if(k)return Ne(x,null),x;s===void 0&&(s=rs(i?e:"<!>"+e),r||(s=Ee(s)));var a=n||_r?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=Ee(a),o=a.lastChild;Ne(l,o)}else Ne(a,a);return a}}function ns(){if(k)return Ne(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=$e();return e.append(t,r),Ne(t,r),e}function Oe(e,t){if(k){w.nodes_end=x,yt();return}e!==null&&e.before(t)}const ss=["touchstart","touchmove"];function is(e){return ss.includes(e)}function as(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Lr(e,t){return jr(e,t)}function os(e,t){Rt(),t.intro=t.intro??!1;const r=t.target,n=k,s=x;try{for(var i=Ee(r);i&&(i.nodeType!==Ye||i.data!==Yt);)i=oe(i);if(!i)throw he;K(!0),Z(i),yt();const a=jr(e,{...t,anchor:i});if(x===null||x.nodeType!==Ye||x.data!==Ut)throw Be(),he;return K(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
2
  `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==he&&console.warn("Failed to hydrate: ",a),t.recover===!1&&bn(),Rt(),Dn(r),K(!1),Lr(e,t)}finally{K(n),Z(s)}}const Ae=new Map;function jr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){Rt();var l=new Set,o=c=>{for(var b=0;b<c.length;b++){var v=c[b];if(!l.has(v)){l.add(v);var h=is(v);t.addEventListener(v,Le,{passive:h});var p=Ae.get(v);p===void 0?(document.addEventListener(v,Le,{passive:h}),Ae.set(v,1)):Ae.set(v,p+1)}}};o(en(es)),Dr.add(o);var u=void 0,f=Hn(()=>{var c=r??t.appendChild($e());return zt(()=>{if(i){rr({});var b=V;b.c=i}s&&(n.$$events=s),k&&Ne(c,null),u=e(c,n)||{},k&&(w.nodes_end=x),i&&nr()}),()=>{for(var b of l){t.removeEventListener(b,Le);var v=Ae.get(b);--v===0?(document.removeEventListener(b,Le),Ae.delete(b)):Ae.set(b,v)}Dr.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return Mt.set(u,f),u}let Mt=new WeakMap;function ls(e,t){const r=Mt.get(e);return r?(Mt.delete(e),r(t)):Promise.resolve()}function rt(e,t,r=!1){k&&yt();var n=e,s=null,i=null,a=S,l=r?_t:0,o=!1;const u=(v,h=!0)=>{o=!0,b(h,v)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var v=a?s:i,h=a?i:s;v&&Jn(v),h&&kr(h,()=>{a?i=null:s=null})}const b=(v,h)=>{if(a===(a=v))return;let p=!1;if(k){const Ce=wn(n)===Bt;!!a===Ce&&(n=gn(),Z(n),K(!1),p=!0)}var N=In(),O=n;if(N&&(f=document.createDocumentFragment(),f.append(O=$e())),a?s??=h&&zt(()=>h(O)):i??=h&&zt(()=>h(O)),N){var $=T,H=a?s:i,ce=a?i:s;H&&$.skipped_effects.delete(H),ce&&$.skipped_effects.add(ce),$.add_callback(c)}else c();p&&K(!0)};Un(()=>{o=!1,t(u),o||b(null,null)},l),k&&(n=x)}function us(e,t){Vn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function fs(e,t,r){var n=e==null?"":""+e;return t&&(n=n?n+" "+t:t),n===""?null:n}function cs(e,t){return e==null?null:String(e)}function je(e,t,r,n,s,i){var a=e.__className;if(k||a!==r||a===void 0){var l=fs(r,n);(!k||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return i}function nt(e,t,r,n){var s=e.__style;if(k||s!==t){var i=cs(t);(!k||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const ds=Symbol("is custom element"),vs=Symbol("is html");function hs(e,t,r,n){var s=bs(e);k&&(s[t]=e.getAttribute(t)),s[t]!==(s[t]=r)&&(r==null?e.removeAttribute(t):typeof r!="string"&&Fr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function st(e,t,r){var n=y,s=w;let i=k;k&&K(!1),F(null),B(null);try{t!=="style"&&(Pt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Fr(e).includes(t):r&&typeof r=="object")?e[t]=r:hs(e,t,r==null?r:String(r))}finally{F(n),B(s),i&&K(!0)}}function bs(e){return e.__attributes??={[ds]:e.nodeName.includes("-"),[vs]:e.namespaceURI===Zr}}var Pt=new Map;function Fr(e){var t=e.getAttribute("is")||e.nodeName,r=Pt.get(t);if(r)return r;Pt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=tn(s);for(var a in n)n[a].set&&r.push(a);s=Xt(s)}return r}function Dt(e,t,r,n){var s=n,i=!0,a=()=>(i&&(i=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var b=e[t];return b===void 0?a():(i=!0,b)};var u=!1,f=kt(()=>(u=!1,o())),c=w;return(function(b,v){if(arguments.length>0){const h=v?d(f):b;return E(f,h),u=!0,s!==void 0&&(s=h),b}return le&&u||(c.f&re)!==0?f.v:d(f)})}function _s(e){return new ms(e)}class ms{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var l=Pn(a,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return d(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===ln?!0:(d(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return E(r.get(a)??n(a,l),l),Reflect.set(i,a,l)}});this.#e=(t.hydrate?os:Lr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Je(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||be(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{ls(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let qr;typeof HTMLElement=="function"&&(qr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),Oe(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ps(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=it(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=_s({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=qn(()=>{Bn(()=>{this.$$r=!0;for(const n of He(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=it(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=it(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ps(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function gs(e,t,r,n,s,i){let a=class extends qr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{be(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=it(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=_e(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{be(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}function Hr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Re={},It,Vr;function ys(){if(Vr)return It;Vr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
- `,u="/",f="*",c="",b="comment",v="declaration";It=function(p,N){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];N=N||{};var O=1,$=1;function H(g){var _=g.match(t);_&&(O+=_.length);var I=g.lastIndexOf(o);$=~I?g.length-I:$+g.length}function ce(){var g={line:O,column:$};return function(_){return _.position=new Ce(g),ot(),_}}function Ce(g){this.start=g,this.end={line:O,column:$},this.source=N.source}Ce.prototype.content=p;function at(g){var _=new Error(N.source+":"+O+":"+$+": "+g);if(_.reason=g,_.filename=N.source,_.line=O,_.column=$,_.source=p,!N.silent)throw _}function de(g){var _=g.exec(p);if(_){var I=_[0];return H(I),p=p.slice(I.length),_}}function ot(){de(r)}function Fe(g){var _;for(g=g||[];_=lt();)_!==!1&&g.push(_);return g}function lt(){var g=ce();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var _=2;c!=p.charAt(_)&&(f!=p.charAt(_)||u!=p.charAt(_+1));)++_;if(_+=2,c===p.charAt(_-1))return at("End of comment missing");var I=p.slice(2,_-2);return $+=2,H(I),p=p.slice(_),$+=2,g({type:b,comment:I})}}function Lt(){var g=ce(),_=de(n);if(_){if(lt(),!de(s))return at("property missing ':'");var I=de(i),jt=g({type:v,property:h(_[0].replace(e,c)),value:I?h(I[0].replace(e,c)):c});return de(a),jt}}function m(){var g=[];Fe(g);for(var _;_=Lt();)_!==!1&&(g.push(_),Fe(g));return g}return ot(),m()};function h(p){return p?p.replace(l,c):c}return It}var Yr;function $s(){if(Yr)return Re;Yr=1;var e=Re&&Re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=r;var t=e(ys());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var a=(0,t.default)(n),l=typeof s=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?s(u,f,o):f&&(i=i||{},i[u]=f)}}),i}return Re}var Es=$s();const Br=ws(Es);Br.default;const Ur={version:"0.61.34"};var ks=tt(': <div class="input svelte-ztms04"><hb-input-number></hb-input-number></div>',3),xs=tt('<div style="margin-right:20px" class="input svelte-ztms04"><hb-input-date></hb-input-date></div> <div class="input svelte-ztms04"><hb-input-number></hb-input-number></div> : <div class="input svelte-ztms04"><hb-input-number></hb-input-number></div> <!>',3),Ss=tt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-ztms04"> </div>'),Ts=tt("<div><!></div> <!>",1);const Ns={hash:"svelte-ztms04",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
+ `,u="/",f="*",c="",b="comment",v="declaration";It=function(p,N){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];N=N||{};var O=1,$=1;function H(g){var _=g.match(t);_&&(O+=_.length);var I=g.lastIndexOf(o);$=~I?g.length-I:$+g.length}function ce(){var g={line:O,column:$};return function(_){return _.position=new Ce(g),ot(),_}}function Ce(g){this.start=g,this.end={line:O,column:$},this.source=N.source}Ce.prototype.content=p;function at(g){var _=new Error(N.source+":"+O+":"+$+": "+g);if(_.reason=g,_.filename=N.source,_.line=O,_.column=$,_.source=p,!N.silent)throw _}function de(g){var _=g.exec(p);if(_){var I=_[0];return H(I),p=p.slice(I.length),_}}function ot(){de(r)}function Fe(g){var _;for(g=g||[];_=lt();)_!==!1&&g.push(_);return g}function lt(){var g=ce();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var _=2;c!=p.charAt(_)&&(f!=p.charAt(_)||u!=p.charAt(_+1));)++_;if(_+=2,c===p.charAt(_-1))return at("End of comment missing");var I=p.slice(2,_-2);return $+=2,H(I),p=p.slice(_),$+=2,g({type:b,comment:I})}}function Lt(){var g=ce(),_=de(n);if(_){if(lt(),!de(s))return at("property missing ':'");var I=de(i),jt=g({type:v,property:h(_[0].replace(e,c)),value:I?h(I[0].replace(e,c)):c});return de(a),jt}}function m(){var g=[];Fe(g);for(var _;_=Lt();)_!==!1&&(g.push(_),Fe(g));return g}return ot(),m()};function h(p){return p?p.replace(l,c):c}return It}var Yr;function $s(){if(Yr)return Re;Yr=1;var e=Re&&Re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=r;var t=e(ys());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var a=(0,t.default)(n),l=typeof s=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?s(u,f,o):f&&(i=i||{},i[u]=f)}}),i}return Re}var Es=$s();const Br=ws(Es);Br.default;const Ur={version:"0.61.35"};var ks=tt(': <div class="input svelte-ztms04"><hb-input-number></hb-input-number></div>',3),xs=tt('<div style="margin-right:20px" class="input svelte-ztms04"><hb-input-date></hb-input-date></div> <div class="input svelte-ztms04"><hb-input-number></hb-input-number></div> : <div class="input svelte-ztms04"><hb-input-number></hb-input-number></div> <!>',3),Ss=tt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-ztms04"> </div>'),Ts=tt("<div><!></div> <!>",1);const Ns={hash:"svelte-ztms04",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
6
  * Copyright 2011-2021 The Bootstrap Authors
package/manifest.json CHANGED
@@ -277,5 +277,5 @@
277
277
  "size": {},
278
278
  "iifePath": "main.iife.js",
279
279
  "repoName": "@htmlbricks/hb-input-datetime",
280
- "version": "0.61.34"
280
+ "version": "0.61.35"
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-datetime",
3
- "version": "0.61.34",
3
+ "version": "0.61.35",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [