smoothly 0.3.60 → 0.3.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as s,c as t,h as o,a as r}from"./p-c88ae468.js";import{M as i,T as e}from"./p-bb57ff51.js";import"./p-bd478a53.js";const n=class{constructor(o){s(this,o),this.trigger=t(this,"trigger",7),this.message=t(this,"message",7),this.listen=void 0}componentDidLoad(){i.listen(this.listen,((s,t)=>{e.is(t)?this.trigger.emit(t):this.message.emit({destination:s,content:t})}),window)}render(){return o("slot",null)}get element(){return r(this)}};n.style=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";export{n as smoothly_trigger_source}
1
+ import{r as s,c as t,h as o,a as r}from"./p-c88ae468.js";import{M as i,T as e}from"./p-db43430d.js";import"./p-bd478a53.js";const n=class{constructor(o){s(this,o),this.trigger=t(this,"trigger",7),this.message=t(this,"message",7),this.listen=void 0}componentDidLoad(){i.listen(this.listen,((s,t)=>{e.is(t)?this.trigger.emit(t):this.message.emit({destination:s,content:t})}),window)}render(){return o("slot",null)}get element(){return r(this)}};n.style=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";export{n as smoothly_trigger_source}
@@ -1 +1 @@
1
- class t{constructor(){this.encoding="utf-8"}encode(t){return Uint8Array.from(unescape(encodeURIComponent(t)).split(""),(t=>t.charCodeAt(0)))}}const n={standard:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",url:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ordered:"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",reversed:"zyxwvutsrqponmlkjihgfedcba_ZYXWVUTSRQPONMLKJIHGFEDCBA9876543210-"};function e(e,r="standard",i=""){let s;const a=t=>"ordered"==r||"reversed"==r?t.reverse():t;switch(typeof e){case"string":s=(new t).encode(e);break;case"number":s=a(new Uint8Array(new BigUint64Array([BigInt(e)]).buffer));break;case"bigint":s=a(new Uint8Array(new BigUint64Array([e]).buffer));break;default:s=e instanceof Uint8Array?e:new Uint8Array(e)}const o=n[r],c=[];for(let t=0;t<s.length;t+=3){const n=s[t],e=t+1<s.length?s[t+1]:0,r=t+2<s.length?s[t+2]:0;c.push(o[n>>>2]),c.push(o[(3&n)<<4|e>>>4]),c.push(o[(15&e)<<2|r>>>6]),c.push(o[63&r])}const u=Math.ceil(s.length/3*4);return c.join("").substring(0,u)+i.repeat(c.length-u)}function r(t,e="standard"){for(;t.endsWith("=")&&t.length>0;)t=t.substring(0,t.length-1);const r=n[e],i=[...t].map((t=>r.indexOf(t))),s=new Uint8Array(Math.floor(i.length/4*3));for(let t=0;t<s.length;t+=3){const n=i.shift()||0,e=i.shift()||0,r=i.shift()||0,a=i.shift()||0;s[t]=n<<2|e>>>4,s[t+1]=(15&e)<<4|r>>>2,s[t+2]=(3&r)<<6|a}return"ordered"==e||"reversed"==e?s.reverse():s}function i(t,e=1,r="standard"){const a=n[r],o=t.length>1?t.substring(0,t.length-1):e>0?"":a[63],c=(0==t.length?0:a.indexOf(t[t.length-1]))+e;return(c>63||c<0?i(o,Math.floor(c/63),r):o)+a[s(c,64)]}function s(t,n){return t>=0?t%n:s(t+n,n)}const a="undefined"!=typeof window?window.crypto||window.msCrypto:self.crypto||self.msCrypto;var o,c,u,f,S,y,l,w,p,A,h,d,b,g,v,H;!function(t){t.create=function(t,n,...e){const[r,...i]=(s=e,Array.isArray(s)&&s.length>0&&"string"==typeof s[0]?e.map((t=>Object.fromEntries(t.split(",").map((t=>t.split(":",2).map((t=>t.trim()))))))):e);var s;const a=Object.assign({},...Object.entries(r).map((([t,n])=>[t,[n,...i.map((n=>n[t])).filter((t=>t))]])).map((([n,e])=>({get[n](){return Object.assign(t(e),{name:n})}}))));return{current:a[n],...a}}}(o||(o={})),function(t){t.is=function(t){return"object"==typeof t&&(null==t.key||"string"==typeof t.key)&&"string"==typeof t.value&&"string"==typeof t.salt},t.stringify=function(t){return t.key=t.key&&4!=t.key.length?t.key.slice(-2):t.key,[t.key,t.salt,t.value].join(".")},t.parse=function(n){const e=n.split("."),r={key:e[0],salt:e[1],value:e[2]};return t.is(r)?r:void 0}}(c||(c={})),function(t){function n(t,n="url"){return e(t,n)}function s(t){t.length%2==1&&(t+="0");const e=new Uint8Array(t.length/2);for(let n=0;n<e.length;n++)e[n]=16*Number.parseInt(t[2*n],16)+Number.parseInt(t[2*n+1],16);return n(e)}function o(t,n){const e=r(t,"url");let i=[];for(const t of e)i.push(Math.floor(t/16).toString(16),(t%16).toString(16));return n&&(i=i.slice(0,n)),i.join("")}function c(t,n=1){const e=i(t,n,"ordered");return e.length==t.length?e:e.substring(e.length-t.length)}t.is=function(t,n){return"string"==typeof t&&(null==n||t.length==n)&&Array.from(t).every((t=>t>="0"&&t<="9"||t>="A"&&t<="Z"||t>="a"&&t<="z"||"-"==t||"_"==t))},t.fromUint24=function(t){return s(t.toString(16).padStart(6,"0"))},t.toUint24=function(t){return Number.parseInt(o(t,6),16)},t.fromUint48=function(t){return s(t.toString(16).padStart(12,"0"))},t.toUint48=function(t){return Number.parseInt(o(t,12),16)},t.fromBinary=n,t.toBinary=function(t){return r(t,"url")},t.generate=function(t,r,i){let s;return(i||0==i||""==i)&&(s=e(i,r).substring(0,t)),(null!=s?s:"")+n(a.getRandomValues(new Uint8Array(t/4*3)),r).substring(0,t-(s?s.length:0))},t.fromHexadecimal=s,t.toHexadecimal=o,t.min=function(t){return"".padStart(t,"-")},t.max=function(t){return"".padStart(t,"z")},t.next=c,t.previous=function(t,n=1){return c(t,-n)},t.length=[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],(t.Length||(t.Length={})).is=function(t){return"number"==typeof t&&t>=4&&t<=128&&(252&t)==t}}(u||(u={})),function(t){t.is=function(t){return"string"==typeof t||"object"==typeof t&&"string"==typeof t.hash&&"string"==typeof t.salt},t.hash=async function(t,n,r){return r||(r=e(a.getRandomValues(new Uint8Array(64)))),{hash:await t.sign(r+n),salt:r}},t.verify=async function(n,e,r){return(await t.hash(n,r,e.salt)).hash==e.hash},(t.Hashed||(t.Hashed={})).is=function(t){return"object"==typeof t&&"string"==typeof t.hash&&"string"==typeof t.salt}}(f||(f={})),function(t){t.generate=function(t){return a.getRandomValues(t)}}(S||(S={})),(y||(y={})).is=function(t){return"HMAC"==t||"RSA"==t||"ECDSA"==t||"RSA-PSS"==t};class m{async sign(n){return"string"==typeof n?e(await this.signBinary((new t).encode(n)),"url"):this.signBinary(n)}verify(n,e){return"string"==typeof e&&(e=r(e,"url")),this.verifyBinary("string"==typeof n?(new t).encode(n):n,e)}}class P extends m{constructor(t,n,e){super(),this.hash=t,n&&("string"==typeof n&&(n=r(n)),this.publicKey=a.subtle.importKey("spki",n,{name:"ECDSA",namedCurve:"P-512"==t.replace("SHA","P")?"P-521":t.replace("SHA","P")},!1,["verify"])),e&&("string"==typeof e&&(e=r(e)),this.privateKey=a.subtle.importKey("pkcs8",e,{name:"ECDSA",namedCurve:"P-512"==t.replace("SHA","P")?"P-521":t.replace("SHA","P")},!0,["sign","verify"]))}async signBinary(t){return new Uint8Array(await a.subtle.sign({name:"ECDSA",hash:{name:this.hash}},await this.privateKey,t))}async verifyBinary(t,n){return a.subtle.verify({name:"ECDSA",hash:{name:this.hash}},await this.publicKey,n,t)}}!function(t){t.is=function(t){return"SHA-1"==t||"SHA-256"==t||"SHA-384"==t||"SHA-512"==t}}(l||(l={}));class k extends m{async verifyBinary(t,n){return e(await this.signBinary(t),"url")==e(n,"url")}}class E extends k{constructor(t,n){super(),this.hash=t,"string"==typeof n&&(n=r(n,"url")),this.key=a.subtle.importKey("raw",n,{name:"HMAC",hash:{name:t}},!1,["sign","verify"])}async signBinary(t){return new Uint8Array(await a.subtle.sign("HMAC",await this.key,t))}}class j extends k{signBinary(t){return Promise.resolve(new Uint8Array(0))}}class R extends m{get parameters(){return C(this.variant)}constructor(t,n,e){super(),this.variant=t,this.publicKey=n,this.privateKey=e}async signBinary(t){return this.privateKey?new Uint8Array(await a.subtle.sign(this.parameters,await this.privateKey,t)):new Uint8Array(0)}async verifyBinary(t,n){return!!this.publicKey&&a.subtle.verify(this.parameters,await this.publicKey,n,t)}async export(t,n="base64"){const r=await("private"==t?this.privateKey:this.publicKey);let i;if(r)switch(n){case"jwk":i=await a.subtle.exportKey("jwk",r);break;case"buffer":i=await a.subtle.exportKey("private"==t?"pkcs8":"spki",r);break;case"base64":{const n=await this.export(t,"buffer");i=n&&e(new Uint8Array(n),"standard","=")}break;case"pem":{const n=await this.export(t,"base64");i=n&&[`-----BEGIN ${t.toUpperCase()} KEY-----`,...U(n,64),`-----END ${t.toUpperCase()} KEY-----`].join("\n")}}return i}static import(t,n,e,r){return new R(t,R.importHelper(t,n,"public",e),R.importHelper(t,n,"private",r))}static importHelper(t,n,e,i){return"string"==typeof i&&(i=r(i)),i&&a.subtle.importKey("private"==e?"pkcs8":"spki",i,{name:C(t).name,hash:{name:n}},!0,["private"==e?"sign":"verify"])}static generate(t,n,e){const r=a.subtle.generateKey({name:C(t).name,modulusLength:e,publicExponent:new Uint8Array([1,0,1]),hash:n},!0,["sign","verify"]);return new R(t,r.then((t=>t.publicKey)),r.then((t=>t.privateKey)))}}function*U(t,n){let e=0;for(;e<t.length;)yield t.slice(e,e+=n)}function C(t){return"PSS"==t?{name:"RSA-PSS",saltLength:128}:{name:"RSASSA-PKCS1-v1_5"}}!function(t){!function(t){t.is=y.is}(t.Algorithm||(t.Algorithm={})),(t.Hash||(t.Hash={})).is=l.is,t.generate=function(t,n,e){let r;switch(t){case"RSA":r=R.generate("SSA",n,e);break;case"RSA-PSS":r=R.generate("PSS",n,e)}return r},t.create=function(t,n,...e){let r;if(null!=n)switch(t){case"HMAC":r=new E(n,e[0]);break;case"RSA":r=R.import("SSA",n,e[0],e[1]);break;case"RSA-PSS":r=R.import("PSS",n,e[0],e[1]);break;case"ECDSA":r=new P(n,e[0],e[1])}else"None"==t&&(r=new j);return r}}(w||(w={})),Uint8Array.__proto__.from||(Uint8Array.__proto__.from=function(t,n,e){const r=Uint8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==r)throw new TypeError("this is not a typed array.");if("function"!=typeof(n=n||(t=>t)))throw new TypeError("specified argument is not a function");if(!(t=Object(t)).length)return new this(0);let i=[];for(const t of i)i.push(t);i=i.map(n,e);const s=new this(i.length);for(let t=0;t<s.length;t++)s[t]=i[t];return s}),function(t){t.is=function(t){return"object"==typeof t&&Object.values(t).every((t=>t&&"object"==typeof t&&"forward"in t&&"function"==typeof t.forward&&"backward"in t&&"function"==typeof t.backward))}}(p||(p={})),function(t){t.is=function(t){return Array.isArray(t)&&t.every((t=>"string"==typeof t))}}(A||(A={})),function(t){t.is=function(t){return"object"==typeof t&&Object.entries(t).every((t=>"string"==typeof t[1]))}}(h||(h={})),function(t){t.is=function(t){return A.is(t)||p.is(t)||h.is(t)},(t.Converter||(t.Converter={})).is=p.is,(t.Crypto||(t.Crypto={})).is=A.is,(t.Renamer||(t.Renamer={})).is=h.is}(d||(d={})),function(t){t.is=function(t){return"object"==typeof t&&"function"==typeof t.apply&&"function"==typeof t.reverse},t.create=function(t){return{apply:t.apply?t.apply:t=>t,reverse:t.reverse?t.reverse:t=>t}}}(b||(b={})),function(t){t.is=function(t){return"RS256"==t||"RS384"==t||"RS512"==t||"ES256"==t||"ES384"==t||"ES512"==t||"PS256"==t||"PS384"==t||"PS512"==t}}(g||(g={})),function(t){t.is=function(t){return"HS256"==t||"HS384"==t||"HS512"==t}}(v||(v={})),function(t){t.is=function(t){return"none"==t||v.is(t)||g.is(t)},function(t){t.is=v.is}(t.Symmetric||(t.Symmetric={})),(t.Asymmetric||(t.Asymmetric={})).is=g.is}(H||(H={}));var O,M;class B{constructor(t,n){this.name=t,this.signer=n}sign(t){return n=this,e=void 0,i=function*(){return this.signer.sign(t)},new((r=void 0)||(r=Promise))((function(t,s){function a(t){try{c(i.next(t))}catch(t){s(t)}}function o(t){try{c(i.throw(t))}catch(t){s(t)}}function c(n){var e;n.done?t(n.value):(e=n.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,o)}c((i=i.apply(n,e||[])).next())}));var n,e,r,i}verify(t,n){return this.signer.verify(t,n)}static create(t,...n){let e;switch(t){case"ES256":e=w.create("ECDSA","SHA-256",n[0],n[1]);break;case"ES384":e=w.create("ECDSA","SHA-384",n[0],n[1]);break;case"ES512":e=w.create("ECDSA","SHA-512",n[0],n[1]);break;case"PS256":e=w.create("RSA-PSS","SHA-256",n[0],n[1]);break;case"PS384":e=w.create("RSA-PSS","SHA-384",n[0],n[1]);break;case"PS512":e=w.create("RSA-PSS","SHA-512",n[0],n[1]);break;case"HS256":e=w.create("HMAC","SHA-256",n[0]);break;case"HS384":e=w.create("HMAC","SHA-384",n[0]);break;case"HS512":e=w.create("HMAC","SHA-512",n[0]);break;case"RS256":e=w.create("RSA","SHA-256",n[0],n[1]);break;case"RS384":e=w.create("RSA","SHA-384",n[0],n[1]);break;case"RS512":e=w.create("RSA","SHA-512",n[0],n[1]);break;case"none":e=w.create("None")}return e&&new B(t,e)}static none(){return B.create("none")}static HS256(t){return B.create("HS256",t)}static HS384(t){return B.create("HS384",t)}static HS512(t){return B.create("HS512",t)}static RS256(t,n){return B.create("RS256",t,n)}static RS384(t,n){return B.create("RS384",t,n)}static RS512(t,n){return B.create("RS512",t,n)}static ES256(t,n){return B.create("ES256",t,n)}static ES384(t,n){return B.create("ES384",t,n)}static ES512(t,n){return B.create("ES512",t,n)}static PS256(t,n){return B.create("PS256",t,n)}static PS384(t,n){return B.create("PS384",t,n)}static PS512(t,n){return B.create("PS512",t,n)}}!function(t){var n;(n=t.Name||(t.Name={})).is=H.is,function(t){t.is=H.Symmetric.is}(n.Symmetric||(n.Symmetric={})),function(t){t.is=H.Asymmetric.is}(n.Asymmetric||(n.Asymmetric={}))}(B||(B={})),function(t){t.is=function(t){return"string"==typeof t&&/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(t)}}(O||(O={})),function(t){const n={"*":"https://site-icons.pages.dev/ionicons@5.0.0/dist/svg/${name}.svg"},e={};t.load=async function(t){var r,i;const s=(null!==(r=n[t])&&void 0!==r?r:n["*"]).replace("${name}",t);return null!==(i=e[s])&&void 0!==i?i:e[s]=async function(t){const n=await globalThis.fetch(t);return n.ok?n.text():void 0}(s)},t.add=function(t,...e){for(const r of e)n[r]=t}}(M||(M={}));class D{static is(t){return"object"==typeof t&&"string"==typeof t.destination&&null!=t.content}static send(t,n,e){if(D.is(t)&&null==e){(e=n)||(e=window);const r=t.destination.split("#",2);e.postMessage(t={destination:r[1],content:t.content},r[0])}else"string"!=typeof e&&(e||(e=window),"string"==typeof t&&D.send({destination:t,content:n},e))}static listen(t,n,e){const r=t.split("#",2);let i="";2==r.length&&(t=r[0],i=r[1]),(e||window).addEventListener("message",(e=>{const r=e.data;!D.is(r)||"*"!=t&&e.origin!=t||""!=i&&r.destination!=i||n(r.destination,r.content)}))}}class x{static is(t){return"object"==typeof t&&"string"==typeof t.name}}var N,T=function(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)};class z{constructor(){N.set(this,{})}listen(t,n){var e,r;null!==(r=null===(e=T(this,N,"f")[t])||void 0===e?void 0:e.push(n))&&void 0!==r||(T(this,N,"f")[t]=[n]),n(this[t])}unlisten(t,n){var e,r;const i=null===(e=T(this,N,"f")[t])||void 0===e?void 0:e.indexOf(n);null!=i&&i>=0&&(null===(r=T(this,N,"f")[t])||void 0===r||r.splice(i,1))}static load(t,n){const e=null!=n?n:new z;return Object.defineProperties(e,function(t){return Object.fromEntries(Object.entries(Object.assign(Object.assign({},Object.getOwnPropertyDescriptors(t)),Object.getOwnPropertyDescriptors(Object.getPrototypeOf(t)))).map((([n,r])=>[n,"function"==typeof r.value?{get:()=>t[n].bind(t)}:r.writable||r.set?{get:()=>t[n],set(r){var i;t[n]=r,null===(i=T(e,N,"f")[n])||void 0===i||i.forEach((e=>e(t[n])))}}:{get:()=>t[n].bind(t)}])))}(t))}}N=new WeakMap;export{u as I,z as L,D as M,x as T,M as a}
1
+ class t{constructor(){this.encoding="utf-8"}encode(t){return Uint8Array.from(unescape(encodeURIComponent(t)).split(""),(t=>t.charCodeAt(0)))}}const n={standard:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",url:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ordered:"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",reversed:"zyxwvutsrqponmlkjihgfedcba_ZYXWVUTSRQPONMLKJIHGFEDCBA9876543210-"};function e(e,r="standard",i=""){let s;const o=t=>"ordered"==r||"reversed"==r?t.reverse():t;switch(typeof e){case"string":s=(new t).encode(e);break;case"number":s=o(new Uint8Array(new BigUint64Array([BigInt(e)]).buffer));break;case"bigint":s=o(new Uint8Array(new BigUint64Array([e]).buffer));break;default:s=e instanceof Uint8Array?e:new Uint8Array(e)}const a=n[r],c=[];for(let t=0;t<s.length;t+=3){const n=s[t],e=t+1<s.length?s[t+1]:0,r=t+2<s.length?s[t+2]:0;c.push(a[n>>>2]),c.push(a[(3&n)<<4|e>>>4]),c.push(a[(15&e)<<2|r>>>6]),c.push(a[63&r])}const u=Math.ceil(s.length/3*4);return c.join("").substring(0,u)+i.repeat(c.length-u)}function r(t,e="standard"){for(;t.endsWith("=")&&t.length>0;)t=t.substring(0,t.length-1);const r=n[e],i=[...t].map((t=>r.indexOf(t))),s=new Uint8Array(Math.floor(i.length/4*3));for(let t=0;t<s.length;t+=3){const n=i.shift()||0,e=i.shift()||0,r=i.shift()||0,o=i.shift()||0;s[t]=n<<2|e>>>4,s[t+1]=(15&e)<<4|r>>>2,s[t+2]=(3&r)<<6|o}return"ordered"==e||"reversed"==e?s.reverse():s}function i(t,e=1,r="standard"){const o=n[r],a=t.length>1?t.substring(0,t.length-1):e>0?"":o[63],c=(0==t.length?0:o.indexOf(t[t.length-1]))+e;return(c>63||c<0?i(a,Math.floor(c/63),r):a)+o[s(c,64)]}function s(t,n){return t>=0?t%n:s(t+n,n)}const o="undefined"!=typeof window?window.crypto||window.msCrypto:self.crypto||self.msCrypto;var a,c,u,f,S,y,l,h,p,w,A,d,b,g,v,H;!function(t){t.create=function(t,n,...e){const[r,...i]=(s=e,Array.isArray(s)&&s.length>0&&"string"==typeof s[0]?e.map((t=>Object.fromEntries(t.split(",").map((t=>t.split(":",2).map((t=>t.trim()))))))):e);var s;const o=Object.assign({},...Object.entries(r).map((([t,n])=>[t,[n,...i.map((n=>n[t])).filter((t=>t))]])).map((([n,e])=>({get[n](){return Object.assign(t(e),{name:n})}}))));return{current:o[n],...o}}}(a||(a={})),function(t){t.is=function(t){return"object"==typeof t&&(null==t.key||"string"==typeof t.key)&&"string"==typeof t.value&&"string"==typeof t.salt},t.stringify=function(t){return t.key=t.key&&4!=t.key.length?t.key.slice(-2):t.key,[t.key,t.salt,t.value].join(".")},t.parse=function(n){const e=n.split("."),r={key:e[0],salt:e[1],value:e[2]};return t.is(r)?r:void 0}}(c||(c={})),function(t){function n(t,n="url"){return e(t,n)}function s(t){t.length%2==1&&(t+="0");const e=new Uint8Array(t.length/2);for(let n=0;n<e.length;n++)e[n]=16*Number.parseInt(t[2*n],16)+Number.parseInt(t[2*n+1],16);return n(e)}function a(t,n){const e=r(t,"url");let i=[];for(const t of e)i.push(Math.floor(t/16).toString(16),(t%16).toString(16));return n&&(i=i.slice(0,n)),i.join("")}function c(t,n=1){const e=i(t,n,"ordered");return e.length==t.length?e:e.substring(e.length-t.length)}t.is=function(t,n){return"string"==typeof t&&(null==n||t.length==n)&&Array.from(t).every((t=>t>="0"&&t<="9"||t>="A"&&t<="Z"||t>="a"&&t<="z"||"-"==t||"_"==t))},t.fromUint24=function(t){return s(t.toString(16).padStart(6,"0"))},t.toUint24=function(t){return Number.parseInt(a(t,6),16)},t.fromUint48=function(t){return s(t.toString(16).padStart(12,"0"))},t.toUint48=function(t){return Number.parseInt(a(t,12),16)},t.fromBinary=n,t.toBinary=function(t){return r(t,"url")},t.generate=function(t,r,i){let s;return(i||0==i||""==i)&&(s=e(i,r).substring(0,t)),(null!=s?s:"")+n(o.getRandomValues(new Uint8Array(t/4*3)),r).substring(0,t-(s?s.length:0))},t.fromHexadecimal=s,t.toHexadecimal=a,t.min=function(t){return"".padStart(t,"-")},t.max=function(t){return"".padStart(t,"z")},t.next=c,t.previous=function(t,n=1){return c(t,-n)},t.length=[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],(t.Length||(t.Length={})).is=function(t){return"number"==typeof t&&t>=4&&t<=128&&(252&t)==t}}(u||(u={})),function(t){t.is=function(t){return"string"==typeof t||"object"==typeof t&&"string"==typeof t.hash&&"string"==typeof t.salt},t.hash=async function(t,n,r){return r||(r=e(o.getRandomValues(new Uint8Array(64)))),{hash:await t.sign(r+n),salt:r}},t.verify=async function(n,e,r){return(await t.hash(n,r,e.salt)).hash==e.hash},(t.Hashed||(t.Hashed={})).is=function(t){return"object"==typeof t&&"string"==typeof t.hash&&"string"==typeof t.salt}}(f||(f={})),function(t){t.generate=function(t){return o.getRandomValues(t)}}(S||(S={})),(y||(y={})).is=function(t){return"HMAC"==t||"RSA"==t||"ECDSA"==t||"RSA-PSS"==t};class m{async sign(n){return"string"==typeof n?e(await this.signBinary((new t).encode(n)),"url"):this.signBinary(n)}verify(n,e){return"string"==typeof e&&(e=r(e,"url")),this.verifyBinary("string"==typeof n?(new t).encode(n):n,e)}}class P extends m{constructor(t,n,e){super(),this.hash=t,n&&("string"==typeof n&&(n=r(n)),this.publicKey=o.subtle.importKey("spki",n,{name:"ECDSA",namedCurve:"P-512"==t.replace("SHA","P")?"P-521":t.replace("SHA","P")},!1,["verify"])),e&&("string"==typeof e&&(e=r(e)),this.privateKey=o.subtle.importKey("pkcs8",e,{name:"ECDSA",namedCurve:"P-512"==t.replace("SHA","P")?"P-521":t.replace("SHA","P")},!0,["sign","verify"]))}async signBinary(t){return new Uint8Array(await o.subtle.sign({name:"ECDSA",hash:{name:this.hash}},await this.privateKey,t))}async verifyBinary(t,n){return o.subtle.verify({name:"ECDSA",hash:{name:this.hash}},await this.publicKey,n,t)}}!function(t){t.is=function(t){return"SHA-1"==t||"SHA-256"==t||"SHA-384"==t||"SHA-512"==t}}(l||(l={}));class k extends m{async verifyBinary(t,n){return e(await this.signBinary(t),"url")==e(n,"url")}}class E extends k{constructor(t,n){super(),this.hash=t,"string"==typeof n&&(n=r(n,"url")),this.key=o.subtle.importKey("raw",n,{name:"HMAC",hash:{name:t}},!1,["sign","verify"])}async signBinary(t){return new Uint8Array(await o.subtle.sign("HMAC",await this.key,t))}}class j extends k{signBinary(t){return Promise.resolve(new Uint8Array(0))}}class R extends m{get parameters(){return C(this.variant)}constructor(t,n,e){super(),this.variant=t,this.publicKey=n,this.privateKey=e}async signBinary(t){return this.privateKey?new Uint8Array(await o.subtle.sign(this.parameters,await this.privateKey,t)):new Uint8Array(0)}async verifyBinary(t,n){return!!this.publicKey&&o.subtle.verify(this.parameters,await this.publicKey,n,t)}async export(t,n="base64"){const r=await("private"==t?this.privateKey:this.publicKey);let i;if(r)switch(n){case"jwk":i=await o.subtle.exportKey("jwk",r);break;case"buffer":i=await o.subtle.exportKey("private"==t?"pkcs8":"spki",r);break;case"base64":{const n=await this.export(t,"buffer");i=n&&e(new Uint8Array(n),"standard","=")}break;case"pem":{const n=await this.export(t,"base64");i=n&&[`-----BEGIN ${t.toUpperCase()} KEY-----`,...U(n,64),`-----END ${t.toUpperCase()} KEY-----`].join("\n")}}return i}static import(t,n,e,r){return new R(t,R.importHelper(t,n,"public",e),R.importHelper(t,n,"private",r))}static importHelper(t,n,e,i){return"string"==typeof i&&(i=r(i)),i&&o.subtle.importKey("private"==e?"pkcs8":"spki",i,{name:C(t).name,hash:{name:n}},!0,["private"==e?"sign":"verify"])}static generate(t,n,e){const r=o.subtle.generateKey({name:C(t).name,modulusLength:e,publicExponent:new Uint8Array([1,0,1]),hash:n},!0,["sign","verify"]);return new R(t,r.then((t=>t.publicKey)),r.then((t=>t.privateKey)))}}function*U(t,n){let e=0;for(;e<t.length;)yield t.slice(e,e+=n)}function C(t){return"PSS"==t?{name:"RSA-PSS",saltLength:128}:{name:"RSASSA-PKCS1-v1_5"}}!function(t){!function(t){t.is=y.is}(t.Algorithm||(t.Algorithm={})),(t.Hash||(t.Hash={})).is=l.is,t.generate=function(t,n,e){let r;switch(t){case"RSA":r=R.generate("SSA",n,e);break;case"RSA-PSS":r=R.generate("PSS",n,e)}return r},t.create=function(t,n,...e){let r;if(null!=n)switch(t){case"HMAC":r=new E(n,e[0]);break;case"RSA":r=R.import("SSA",n,e[0],e[1]);break;case"RSA-PSS":r=R.import("PSS",n,e[0],e[1]);break;case"ECDSA":r=new P(n,e[0],e[1])}else"None"==t&&(r=new j);return r}}(h||(h={})),Uint8Array.__proto__.from||(Uint8Array.__proto__.from=function(t,n,e){const r=Uint8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==r)throw new TypeError("this is not a typed array.");if("function"!=typeof(n=n||(t=>t)))throw new TypeError("specified argument is not a function");if(!(t=Object(t)).length)return new this(0);let i=[];for(const t of i)i.push(t);i=i.map(n,e);const s=new this(i.length);for(let t=0;t<s.length;t++)s[t]=i[t];return s}),function(t){t.is=function(t){return"object"==typeof t&&Object.values(t).every((t=>t&&"object"==typeof t&&"forward"in t&&"function"==typeof t.forward&&"backward"in t&&"function"==typeof t.backward))}}(p||(p={})),function(t){t.is=function(t){return Array.isArray(t)&&t.every((t=>"string"==typeof t))}}(w||(w={})),function(t){t.is=function(t){return"object"==typeof t&&Object.entries(t).every((t=>"string"==typeof t[1]))}}(A||(A={})),function(t){t.is=function(t){return w.is(t)||p.is(t)||A.is(t)},(t.Converter||(t.Converter={})).is=p.is,(t.Crypto||(t.Crypto={})).is=w.is,(t.Renamer||(t.Renamer={})).is=A.is}(d||(d={})),function(t){t.is=function(t){return"object"==typeof t&&"function"==typeof t.apply&&"function"==typeof t.reverse},t.create=function(t){return{apply:t.apply?t.apply:t=>t,reverse:t.reverse?t.reverse:t=>t}}}(b||(b={})),function(t){t.is=function(t){return"RS256"==t||"RS384"==t||"RS512"==t||"ES256"==t||"ES384"==t||"ES512"==t||"PS256"==t||"PS384"==t||"PS512"==t}}(g||(g={})),function(t){t.is=function(t){return"HS256"==t||"HS384"==t||"HS512"==t}}(v||(v={})),function(t){t.is=function(t){return"none"==t||v.is(t)||g.is(t)},function(t){t.is=v.is}(t.Symmetric||(t.Symmetric={})),(t.Asymmetric||(t.Asymmetric={})).is=g.is}(H||(H={}));var O,M;class B{constructor(t,n){this.name=t,this.signer=n}sign(t){return n=this,e=void 0,i=function*(){return this.signer.sign(t)},new((r=void 0)||(r=Promise))((function(t,s){function o(t){try{c(i.next(t))}catch(t){s(t)}}function a(t){try{c(i.throw(t))}catch(t){s(t)}}function c(n){var e;n.done?t(n.value):(e=n.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((i=i.apply(n,e||[])).next())}));var n,e,r,i}verify(t,n){return this.signer.verify(t,n)}static create(t,...n){let e;switch(t){case"ES256":e=h.create("ECDSA","SHA-256",n[0],n[1]);break;case"ES384":e=h.create("ECDSA","SHA-384",n[0],n[1]);break;case"ES512":e=h.create("ECDSA","SHA-512",n[0],n[1]);break;case"PS256":e=h.create("RSA-PSS","SHA-256",n[0],n[1]);break;case"PS384":e=h.create("RSA-PSS","SHA-384",n[0],n[1]);break;case"PS512":e=h.create("RSA-PSS","SHA-512",n[0],n[1]);break;case"HS256":e=h.create("HMAC","SHA-256",n[0]);break;case"HS384":e=h.create("HMAC","SHA-384",n[0]);break;case"HS512":e=h.create("HMAC","SHA-512",n[0]);break;case"RS256":e=h.create("RSA","SHA-256",n[0],n[1]);break;case"RS384":e=h.create("RSA","SHA-384",n[0],n[1]);break;case"RS512":e=h.create("RSA","SHA-512",n[0],n[1]);break;case"none":e=h.create("None")}return e&&new B(t,e)}static none(){return B.create("none")}static HS256(t){return B.create("HS256",t)}static HS384(t){return B.create("HS384",t)}static HS512(t){return B.create("HS512",t)}static RS256(t,n){return B.create("RS256",t,n)}static RS384(t,n){return B.create("RS384",t,n)}static RS512(t,n){return B.create("RS512",t,n)}static ES256(t,n){return B.create("ES256",t,n)}static ES384(t,n){return B.create("ES384",t,n)}static ES512(t,n){return B.create("ES512",t,n)}static PS256(t,n){return B.create("PS256",t,n)}static PS384(t,n){return B.create("PS384",t,n)}static PS512(t,n){return B.create("PS512",t,n)}}!function(t){var n;(n=t.Name||(t.Name={})).is=H.is,function(t){t.is=H.Symmetric.is}(n.Symmetric||(n.Symmetric={})),function(t){t.is=H.Asymmetric.is}(n.Asymmetric||(n.Asymmetric={}))}(B||(B={})),function(t){t.is=function(t){return"string"==typeof t&&/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(t)}}(O||(O={})),function(t){const n={"*":"https://site-icons.pages.dev/ionicons@5.0.0/dist/svg/${name}.svg"},e={};t.load=async function(t){var r,i;const s=(null!==(r=n[t])&&void 0!==r?r:n["*"]).replace("${name}",t);return null!==(i=e[s])&&void 0!==i?i:e[s]=async function(t){const n=await globalThis.fetch(t);return n.ok?n.text():void 0}(s)},t.add=function(t,...e){for(const r of e)n[r]=t}}(M||(M={}));class D{static is(t){return"object"==typeof t&&"string"==typeof t.destination&&null!=t.content}static send(t,n,e){if(D.is(t)&&null==e){(e=n)||(e=window);const r=t.destination.split("#",2);e.postMessage(t={destination:r[1],content:t.content},r[0])}else"string"!=typeof e&&(e||(e=window),"string"==typeof t&&D.send({destination:t,content:n},e))}static listen(t,n,e){const r=t.split("#",2);let i="";2==r.length&&(t=r[0],i=r[1]),(e||window).addEventListener("message",(e=>{const r=e.data;!D.is(r)||"*"!=t&&e.origin!=t||""!=i&&r.destination!=i||n(r.destination,r.content)}))}}class x{static is(t){return"object"==typeof t&&"string"==typeof t.name}}var N,T=function(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)};class z{constructor(){N.set(this,{})}listen(t,n,e){var r,i;null!==(i=null===(r=T(this,N,"f")[t])||void 0===r?void 0:r.push(n))&&void 0!==i||(T(this,N,"f")[t]=[n]),(null==e?void 0:e.lazy)||n(this[t])}unlisten(t,n){var e,r;const i=null===(e=T(this,N,"f")[t])||void 0===e?void 0:e.indexOf(n);null!=i&&i>=0&&(null===(r=T(this,N,"f")[t])||void 0===r||r.splice(i,1))}batchListen(t,n){for(const e in t){const r=t[e];r&&this.listen(e,r,n)}}batchUnlisten(t){for(const n in t){const e=t[n];e&&this.unlisten(n,e)}}static load(t){const n=t.listenable;return Object.defineProperties(n,function(t){return Object.fromEntries(Object.entries(Object.assign(Object.assign({},Object.getOwnPropertyDescriptors(t)),Object.getOwnPropertyDescriptors(Object.getPrototypeOf(t)))).map((([e,r])=>[e,"function"==typeof r.value?{get:()=>t[e].bind(t)}:r.writable||r.set?{get:()=>t[e],set(r){var i;t[e]=r,null===(i=T(n,N,"f")[e])||void 0===i||i.forEach((n=>n(t[e])))}}:{get:()=>t[e]}])))}(t))}}N=new WeakMap;export{u as I,z as L,D as M,x as T,M as a}
@@ -1 +1 @@
1
- import{r as s,h as i}from"./p-c88ae468.js";import{T as t,M as r}from"./p-bb57ff51.js";import"./p-bd478a53.js";const o=class{constructor(i){s(this,i),this.context=void 0,this.destination=void 0,this.filter=void 0}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){t.is(s.detail)&&this.filters.some((i=>i==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return i("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
1
+ import{r as s,h as i}from"./p-c88ae468.js";import{T as t,M as r}from"./p-db43430d.js";import"./p-bd478a53.js";const o=class{constructor(i){s(this,i),this.context=void 0,this.destination=void 0,this.filter=void 0}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){t.is(s.detail)&&this.filters.some((i=>i==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return i("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-c88ae468.js";export{s as setNonce}from"./p-c88ae468.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-a19a824a",[[2,"smoothly-country",{value:[1],text:[1],language:[32]}]]],["p-0ed63b7b",[[2,"smoothly-google-font",{value:[1]}]]],["p-5fb08944",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-607abd83",[[0,"smoothly-reorder"]]],["p-ab11639c",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-43eb7034",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-c5509d64",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"],[0,"dateRangeClear","handleDateRangeClear"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-input-date-range",{value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],open:[1028],disabled:[516],showLabel:[516,"show-label"],labelStart:[1,"label-start"],labelEnd:[1,"label-end"],clearable:[4]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{disabled:[516],readonly:[516],maxMenuHeight:[1,"max-menu-height"],maxHeight:[1,"max-height"],emptyMenuLabel:[1025,"empty-menu-label"],multiple:[516],mutable:[4],optionStyle:[8,"option-style"],options:[1040],labelSetting:[513,"label-setting"],label:[513],selections:[1040],selectNoneName:[1025,"select-none-name"],selectAllName:[1025,"select-all-name"],selectAllEnabled:[1028,"select-all-enabled"],selectionName:[1025,"selection-name"],newOptionLabel:[1025,"new-option-label"],valueValidator:[16],isOpen:[32],empty:[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{notices:[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{opacity:[1],bottom:[1],right:[1],visible:[32]}],[2,"smoothly-checkbox",{selectAll:[4,"select-all"],size:[1],intermediate:[1540],selected:[1540],disabled:[1540],t:[32]}],[6,"smoothly-radio-button-item",{value:[8],selected:[1540],color:[513],iconColor:[1,"icon-color"],disabled:[1540]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[0,"smoothly-urlencoded",{data:[1]}],[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}],[2,"smoothly-display",{type:[1],value:[8],currency:[1],country:[1],format:[16]}],[2,"smoothly-display-amount",{amount:[8],currency:[1],toInteger:[4,"to-integer"]}],[2,"smoothly-display-date-time",{datetime:[1]}],[2,"smoothly-frame",{url:[1],name:[1],origin:[1],send:[64]}],[6,"smoothly-popup",{visible:[1540],direction:[1537],cssVariables:[32]}],[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}],[6,"smoothly-radio-button",{name:[1],value:[1032],deselectable:[516],decoration:[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{identifier:[1],background:[513],value:[1025]}],[2,"smoothly-skeleton",{widths:[16],width:[1025],color:[1],period:[2],distance:[1],align:[513]}],[2,"smoothly-svg",{url:[513],size:[513],color:[1]}],[6,"smoothly-table",{root:[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-expandable-row",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-table-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{name:[513],value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028],flexible:[516],color:[1025]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{toggle:[4],emptyMenuLabel:[1025,"empty-menu-label"],newOptionLabel:[1,"new-option-label"],maxMenuHeight:[1,"max-menu-height"],order:[4],optionStyle:[8,"option-style"],options:[1040],resetHighlightOnOptionsChange:[1028,"reset-highlight-on-options-change"],mutable:[4],filteredOptions:[32],highlightIndex:[32],keyword:[32],moveHighlight:[64],setHighlight:[64],getHighlighted:[64],filterOptions:[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{tuple:[16]}],[1,"smoothly-option",{aliases:[513],dataHighlight:[1540,"data-highlight"],name:[1537],value:[1537],divider:[1540],checkbox:[4],new:[4],toggle:[4],checked:[1028]}],[2,"smoothly-spinner",{active:[516],size:[513]}],[2,"smoothly-calendar",{month:[1025],value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],doubleInput:[516,"double-input"],color:[513],firstSelected:[32]}],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],showLabel:[516,"show-label"],maxLength:[1026,"max-length"],autocomplete:[1028],pattern:[1040],placeholder:[1025],disabled:[1028],readonly:[1028],currency:[513],initialValue:[32],getFormData:[64],setKeepFocusOnReRender:[64],setSelectionRange:[64]}],[2,"smoothly-input-month",{value:[1025]}],[6,"smoothly-quiet",{color:[1]}],[6,"smoothly-selector",{initialPrompt:[1,"initial-prompt"],disableFilter:[4,"disable-filter"],opened:[32],selectedElement:[32],missing:[32],filter:[32],reset:[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{value:[8],selected:[1540],marked:[1540],filter:[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
1
+ import{p as e,b as o}from"./p-c88ae468.js";export{s as setNonce}from"./p-c88ae468.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-a19a824a",[[2,"smoothly-country",{value:[1],text:[1],language:[32]}]]],["p-0ed63b7b",[[2,"smoothly-google-font",{value:[1]}]]],["p-5fb08944",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-607abd83",[[0,"smoothly-reorder"]]],["p-e5e0e577",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-8b76a2f7",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-389c9358",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"],[0,"dateRangeClear","handleDateRangeClear"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-input-date-range",{value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],open:[1028],disabled:[516],showLabel:[516,"show-label"],labelStart:[1,"label-start"],labelEnd:[1,"label-end"],clearable:[4]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{disabled:[516],readonly:[516],maxMenuHeight:[1,"max-menu-height"],maxHeight:[1,"max-height"],emptyMenuLabel:[1025,"empty-menu-label"],multiple:[516],mutable:[4],optionStyle:[8,"option-style"],options:[1040],labelSetting:[513,"label-setting"],label:[513],selections:[1040],selectNoneName:[1025,"select-none-name"],selectAllName:[1025,"select-all-name"],selectAllEnabled:[1028,"select-all-enabled"],selectionName:[1025,"selection-name"],newOptionLabel:[1025,"new-option-label"],valueValidator:[16],isOpen:[32],empty:[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{notices:[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{opacity:[1],bottom:[1],right:[1],visible:[32]}],[2,"smoothly-checkbox",{selectAll:[4,"select-all"],size:[1],intermediate:[1540],selected:[1540],disabled:[1540],t:[32]}],[6,"smoothly-radio-button-item",{value:[8],selected:[1540],color:[513],iconColor:[1,"icon-color"],disabled:[1540]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[0,"smoothly-urlencoded",{data:[1]}],[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}],[2,"smoothly-display",{type:[1],value:[8],currency:[1],country:[1],format:[16]}],[2,"smoothly-display-amount",{amount:[8],currency:[1],toInteger:[4,"to-integer"]}],[2,"smoothly-display-date-time",{datetime:[1]}],[2,"smoothly-frame",{url:[1],name:[1],origin:[1],send:[64]}],[6,"smoothly-popup",{visible:[1540],direction:[1537],cssVariables:[32]}],[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}],[6,"smoothly-radio-button",{name:[1],value:[1032],deselectable:[516],decoration:[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{identifier:[1],background:[513],value:[1025]}],[2,"smoothly-skeleton",{widths:[16],width:[1025],color:[1],period:[2],distance:[1],align:[513]}],[2,"smoothly-svg",{url:[513],size:[513],color:[1]}],[6,"smoothly-table",{root:[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-expandable-row",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-table-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{name:[513],value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028],flexible:[516],color:[1025]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{toggle:[4],emptyMenuLabel:[1025,"empty-menu-label"],newOptionLabel:[1,"new-option-label"],maxMenuHeight:[1,"max-menu-height"],order:[4],optionStyle:[8,"option-style"],options:[1040],resetHighlightOnOptionsChange:[1028,"reset-highlight-on-options-change"],mutable:[4],filteredOptions:[32],highlightIndex:[32],keyword:[32],moveHighlight:[64],setHighlight:[64],getHighlighted:[64],filterOptions:[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{tuple:[16]}],[1,"smoothly-option",{aliases:[513],dataHighlight:[1540,"data-highlight"],name:[1537],value:[1537],divider:[1540],checkbox:[4],new:[4],toggle:[4],checked:[1028]}],[2,"smoothly-spinner",{active:[516],size:[513]}],[2,"smoothly-calendar",{month:[1025],value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],doubleInput:[516,"double-input"],color:[513],firstSelected:[32]}],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],showLabel:[516,"show-label"],maxLength:[1026,"max-length"],autocomplete:[1028],pattern:[1040],placeholder:[1025],disabled:[1028],readonly:[1028],currency:[513],initialValue:[32],getFormData:[64],setKeepFocusOnReRender:[64],setSelectionRange:[64]}],[2,"smoothly-input-month",{value:[1025]}],[6,"smoothly-quiet",{color:[1]}],[6,"smoothly-selector",{initialPrompt:[1,"initial-prompt"],disableFilter:[4,"disable-filter"],opened:[32],selectedElement:[32],missing:[32],filter:[32],reset:[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{value:[8],selected:[1540],marked:[1540],filter:[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
@@ -1,4 +1,4 @@
1
1
  export { Components, JSX } from "./components";
2
2
  export { App, redirect } from "./components/App";
3
- export { Autocomplete, ClientIdentifier, Color, Expand, Fill, GoogleFont, Icon, Message, Notice, Trigger, Option, Listenable, } from "./model";
3
+ export { Autocomplete, ClientIdentifier, Color, Expand, Fill, GoogleFont, Icon, Message, Notice, Trigger, Option, StateBase, Listenable, WithListenable, HasListenable, CanBeListenable, ListenerBatch, } from "./model";
4
4
  export { Cosmetic } from "./utilities";
@@ -1,8 +1,19 @@
1
- export declare class Listenable<T extends Record<string, any>> {
1
+ export type WithListenable<T extends Record<string, any>> = T & Listenable<T>;
2
+ export type CanBeListenable = Record<string, any>;
3
+ export interface HasListenable<T extends CanBeListenable> {
4
+ readonly listenable: WithListenable<T>;
5
+ }
6
+ export declare class Listenable<T extends CanBeListenable> {
2
7
  #private;
3
- listen<K extends keyof ListenableProperties<T>>(this: T & Listenable<T>, property: K, listener: Listener<T[K]>): void;
8
+ listen<K extends keyof ListenableProperties<T>>(this: T & Listenable<T>, property: K, listener: Listener<T[K]>, options?: {
9
+ lazy?: boolean;
10
+ }): void;
4
11
  unlisten<K extends keyof ListenableProperties<T>>(property: K, listener: Listener<T[K]>): void;
5
- static load<T extends Record<string, any>>(backend: T, listenable?: Listenable<T>): T & Listenable<T>;
12
+ batchListen(this: T & Listenable<T>, listeners: ListenerBatch<T>, options?: {
13
+ lazy?: boolean;
14
+ }): void;
15
+ batchUnlisten(listeners: ListenerBatch<T>): void;
16
+ static load<T extends HasListenable<CanBeListenable>>(backend: T): WithListenable<T>;
6
17
  }
7
18
  type ListenableProperties<T> = {
8
19
  [P in keyof T as T[P] extends Function ? never : P]: T[P];
@@ -11,4 +22,7 @@ export type Listener<V> = (value: V) => void;
11
22
  export type Listeners<T> = {
12
23
  [K in keyof T]?: Listener<T[K]>[];
13
24
  };
25
+ export type ListenerBatch<T> = {
26
+ [K in keyof ListenableProperties<T>]?: Listener<T[K]>;
27
+ };
14
28
  export {};
@@ -0,0 +1,6 @@
1
+ import { HasListenable, WithListenable } from "./Listenable";
2
+ export declare abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {
3
+ readonly listenable: WithListenable<T>;
4
+ protected readonly client: C;
5
+ protected constructor(...parameters: C extends undefined ? [] : [client: C]);
6
+ }
@@ -9,4 +9,5 @@ export { Message } from "./Message";
9
9
  export { Notice } from "./Notice";
10
10
  export { Option } from "./Option";
11
11
  export { Trigger } from "./Trigger";
12
- export { Listenable } from "./Listenable";
12
+ export { Listenable, HasListenable, WithListenable, CanBeListenable, ListenerBatch } from "./Listenable";
13
+ export { StateBase } from "./StateBase";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoothly",
3
- "version": "0.3.60",
3
+ "version": "0.3.62",
4
4
  "description": "Web component library written in Stencil.",
5
5
  "author": "PayFunc",
6
6
  "license": "MIT",