@glycanage/web-components 1.106.1 → 1.107.0

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/dist/index2.js CHANGED
@@ -1 +1 @@
1
- var G=Object.defineProperty,K=(t,n,e)=>n in t?G(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,a=(t,n,e)=>(K(t,typeof n!="symbol"?n+"":n,e),e);function y(){}function S(t){return t()}function B(){return Object.create(null)}function m(t){t.forEach(S)}function M(t){return typeof t=="function"}function Q(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function U(t){return Object.keys(t).length===0}function R(t,n){t.appendChild(n)}function V(t,n,e){const o=W(t);if(!o.getElementById(n)){const s=x("style");s.id=n,s.textContent=e,X(o,s)}}function W(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function X(t,n){return R(t.head||t,n),n.sheet}function T(t,n,e){t.insertBefore(n,e||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function Y(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function E(t){return document.createTextNode(t)}function Z(){return E(" ")}function tt(){return E("")}function q(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function nt(t){return Array.from(t.childNodes)}function et(t,n){n=""+n,t.data!==n&&(t.data=n)}function ot(t,n,e,o){e==null?t.style.removeProperty(n):t.style.setProperty(n,e,o?"important":"")}function st(t){const n={};return t.childNodes.forEach(e=>{n[e.slot||"default"]=!0}),n}let b;function g(t){b=t}function rt(){if(!b)throw new Error("Function called outside component initialization");return b}function it(t){rt().$$.on_mount.push(t)}const f=[],D=[];let d=[];const H=[],ct=Promise.resolve();let k=!1;function $t(){k||(k=!0,ct.then(N))}function O(t){d.push(t)}const j=new Set;let p=0;function N(){if(p!==0)return;const t=b;do{try{for(;p<f.length;){const n=f[p];p++,g(n),ut(n.$$)}}catch(n){throw f.length=0,p=0,n}for(g(null),f.length=0,p=0;D.length;)D.pop()();for(let n=0;n<d.length;n+=1){const e=d[n];j.has(e)||(j.add(e),e())}d.length=0}while(f.length);for(;H.length;)H.pop()();k=!1,j.clear(),g(t)}function ut(t){if(t.fragment!==null){t.update(),m(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function at(t){const n=[],e=[];d.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),d=n}const _=new Set;let h;function lt(){h={r:0,c:[],p:h}}function ht(){h.r||m(h.c),h=h.p}function J(t,n){t&&t.i&&(_.delete(t),t.i(n))}function ft(t,n,e,o){if(t&&t.o){if(_.has(t))return;_.add(t),h.c.push(()=>{_.delete(t),o&&(e&&t.d(1),o())}),t.o(n)}else o&&o()}function dt(t){t&&t.c()}function z(t,n,e){const{fragment:o,after_update:s}=t.$$;o&&o.m(n,e),O(()=>{const r=t.$$.on_mount.map(S).filter(M);t.$$.on_destroy?t.$$.on_destroy.push(...r):m(r),t.$$.on_mount=[]}),s.forEach(O)}function F(t,n){const e=t.$$;e.fragment!==null&&(at(e.after_update),m(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function pt(t,n){t.$$.dirty[0]===-1&&(f.push(t),$t(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function mt(t,n,e,o,s,r,$,c=[-1]){const u=b;g(t);const i=t.$$={fragment:null,ctx:[],props:r,update:y,not_equal:s,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:B(),dirty:c,skip_bound:!1,root:n.target||u.$$.root};$&&$(i.root);let P=!1;if(i.ctx=e?e(t,n.props||{},(l,A,...C)=>{const L=C.length?C[0]:A;return i.ctx&&s(i.ctx[l],i.ctx[l]=L)&&(!i.skip_bound&&i.bound[l]&&i.bound[l](L),P&&pt(t,l)),A}):[],i.update(),P=!0,m(i.before_update),i.fragment=o?o(i.ctx):!1,n.target){if(n.hydrate){const l=nt(n.target);i.fragment&&i.fragment.l(l),l.forEach(w)}else i.fragment&&i.fragment.c();n.intro&&J(t.$$.fragment),z(t,n.target,n.anchor),N()}g(u)}let I;typeof HTMLElement=="function"&&(I=class extends HTMLElement{constructor(t,n,e){super(),a(this,"$$ctor"),a(this,"$$s"),a(this,"$$c"),a(this,"$$cn",!1),a(this,"$$d",{}),a(this,"$$r",!1),a(this,"$$p_d",{}),a(this,"$$l",{}),a(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=n,e&&this.attachShadow({mode:"open"})}addEventListener(t,n,e){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,e)}removeEventListener(t,n,e){if(super.removeEventListener(t,n,e),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=x("slot"),s!=="default"&&q(r,"name",s)},m:function($,c){T($,r,c)},d:function($){$&&w(r)}}}};if(await Promise.resolve(),!this.$$cn)return;const n={},e=st(this);for(const s of this.$$s)s in e&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=v(r,s.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=v(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const $=this.$$c.$on(s,r);this.$$l_u.set(r,$)}this.$$l={}}}attributeChangedCallback(t,n,e){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=v(t,e,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function v(t,n,e,o){var s;const r=(s=e[t])==null?void 0:s.type;if(n=r==="Boolean"&&typeof n!="boolean"?n!=null:n,!o||!e[t])return n;if(o==="toAttribute")switch(r){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(r){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function bt(t,n,e,o,s,r){let $=class extends I{constructor(){super(t,e,s),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map(c=>(n[c].attribute||c).toLowerCase())}};return Object.keys(n).forEach(c=>{Object.defineProperty($.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(u){var i;u=v(c,u,n),this.$$d[c]=u,(i=this.$$c)==null||i.$set({[c]:u})}})}),o.forEach(c=>{Object.defineProperty($.prototype,c,{get(){var u;return(u=this.$$c)==null?void 0:u[c]}})}),r&&($=r($)),t.element=$,$}class gt{constructor(){a(this,"$$"),a(this,"$$set")}$destroy(){F(this,1),this.$destroy=y}$on(n,e){if(!M(e))return y;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const s=o.indexOf(e);s!==-1&&o.splice(s,1)}}$set(n){this.$$set&&!U(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const yt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yt);export{gt as S,V as a,Z as b,bt as c,tt as d,x as e,N as f,T as g,ht as h,mt as i,J as j,w as k,lt as l,E as m,ot as n,it as o,q as p,R as q,et as r,Q as s,ft as t,y as u,Y as v,dt as w,z as x,F as y};
1
+ var G=Object.defineProperty,K=(t,n,e)=>n in t?G(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,a=(t,n,e)=>(K(t,typeof n!="symbol"?n+"":n,e),e);function y(){}function S(t){return t()}function B(){return Object.create(null)}function m(t){t.forEach(S)}function M(t){return typeof t=="function"}function Q(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function U(t){return Object.keys(t).length===0}function R(t,n){t.appendChild(n)}function V(t,n,e){const o=W(t);if(!o.getElementById(n)){const s=x("style");s.id=n,s.textContent=e,X(o,s)}}function W(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function X(t,n){return R(t.head||t,n),n.sheet}function T(t,n,e){t.insertBefore(n,e||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function Y(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function E(t){return document.createTextNode(t)}function Z(){return E(" ")}function tt(){return E("")}function nt(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function q(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function et(t){return Array.from(t.childNodes)}function ot(t,n){n=""+n,t.data!==n&&(t.data=n)}function st(t,n,e,o){e==null?t.style.removeProperty(n):t.style.setProperty(n,e,o?"important":"")}function rt(t){const n={};return t.childNodes.forEach(e=>{n[e.slot||"default"]=!0}),n}let b;function g(t){b=t}function it(){if(!b)throw new Error("Function called outside component initialization");return b}function ct(t){it().$$.on_mount.push(t)}const f=[],z=[];let d=[];const D=[],$t=Promise.resolve();let k=!1;function ut(){k||(k=!0,$t.then(L))}function O(t){d.push(t)}const j=new Set;let p=0;function L(){if(p!==0)return;const t=b;do{try{for(;p<f.length;){const n=f[p];p++,g(n),at(n.$$)}}catch(n){throw f.length=0,p=0,n}for(g(null),f.length=0,p=0;z.length;)z.pop()();for(let n=0;n<d.length;n+=1){const e=d[n];j.has(e)||(j.add(e),e())}d.length=0}while(f.length);for(;D.length;)D.pop()();k=!1,j.clear(),g(t)}function at(t){if(t.fragment!==null){t.update(),m(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function lt(t){const n=[],e=[];d.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),d=n}const _=new Set;let h;function ht(){h={r:0,c:[],p:h}}function ft(){h.r||m(h.c),h=h.p}function H(t,n){t&&t.i&&(_.delete(t),t.i(n))}function dt(t,n,e,o){if(t&&t.o){if(_.has(t))return;_.add(t),h.c.push(()=>{_.delete(t),o&&(e&&t.d(1),o())}),t.o(n)}else o&&o()}function pt(t){t&&t.c()}function J(t,n,e){const{fragment:o,after_update:s}=t.$$;o&&o.m(n,e),O(()=>{const r=t.$$.on_mount.map(S).filter(M);t.$$.on_destroy?t.$$.on_destroy.push(...r):m(r),t.$$.on_mount=[]}),s.forEach(O)}function F(t,n){const e=t.$$;e.fragment!==null&&(lt(e.after_update),m(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function mt(t,n){t.$$.dirty[0]===-1&&(f.push(t),ut(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function bt(t,n,e,o,s,r,$,c=[-1]){const u=b;g(t);const i=t.$$={fragment:null,ctx:[],props:r,update:y,not_equal:s,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:B(),dirty:c,skip_bound:!1,root:n.target||u.$$.root};$&&$(i.root);let N=!1;if(i.ctx=e?e(t,n.props||{},(l,P,...A)=>{const C=A.length?A[0]:P;return i.ctx&&s(i.ctx[l],i.ctx[l]=C)&&(!i.skip_bound&&i.bound[l]&&i.bound[l](C),N&&mt(t,l)),P}):[],i.update(),N=!0,m(i.before_update),i.fragment=o?o(i.ctx):!1,n.target){if(n.hydrate){const l=et(n.target);i.fragment&&i.fragment.l(l),l.forEach(w)}else i.fragment&&i.fragment.c();n.intro&&H(t.$$.fragment),J(t,n.target,n.anchor),L()}g(u)}let I;typeof HTMLElement=="function"&&(I=class extends HTMLElement{constructor(t,n,e){super(),a(this,"$$ctor"),a(this,"$$s"),a(this,"$$c"),a(this,"$$cn",!1),a(this,"$$d",{}),a(this,"$$r",!1),a(this,"$$p_d",{}),a(this,"$$l",{}),a(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=n,e&&this.attachShadow({mode:"open"})}addEventListener(t,n,e){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,e)}removeEventListener(t,n,e){if(super.removeEventListener(t,n,e),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let r;return{c:function(){r=x("slot"),s!=="default"&&q(r,"name",s)},m:function($,c){T($,r,c)},d:function($){$&&w(r)}}}};if(await Promise.resolve(),!this.$$cn)return;const n={},e=rt(this);for(const s of this.$$s)s in e&&(n[s]=[t(s)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=v(r,s.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const r=v(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const r of this.$$l[s]){const $=this.$$c.$on(s,r);this.$$l_u.set(r,$)}this.$$l={}}}attributeChangedCallback(t,n,e){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=v(t,e,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function v(t,n,e,o){var s;const r=(s=e[t])==null?void 0:s.type;if(n=r==="Boolean"&&typeof n!="boolean"?n!=null:n,!o||!e[t])return n;if(o==="toAttribute")switch(r){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(r){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function gt(t,n,e,o,s,r){let $=class extends I{constructor(){super(t,e,s),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map(c=>(n[c].attribute||c).toLowerCase())}};return Object.keys(n).forEach(c=>{Object.defineProperty($.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(u){var i;u=v(c,u,n),this.$$d[c]=u,(i=this.$$c)==null||i.$set({[c]:u})}})}),o.forEach(c=>{Object.defineProperty($.prototype,c,{get(){var u;return(u=this.$$c)==null?void 0:u[c]}})}),r&&($=r($)),t.element=$,$}class yt{constructor(){a(this,"$$"),a(this,"$$set")}$destroy(){F(this,1),this.$destroy=y}$on(n,e){if(!M(e))return y;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const s=o.indexOf(e);s!==-1&&o.splice(s,1)}}$set(n){this.$$set&&!U(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const _t="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);export{yt as S,V as a,Z as b,gt as c,tt as d,x as e,L as f,T as g,ft as h,bt as i,H as j,w as k,ht as l,E as m,st as n,ct as o,q as p,R as q,ot as r,Q as s,dt as t,y as u,Y as v,pt as w,J as x,F as y,nt as z};