@authhero/widget 0.8.1 → 0.8.3
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/authhero-widget/authhero-widget.esm.js +1 -1
- package/dist/authhero-widget/{p-188ffffd.entry.js → p-072b155c.entry.js} +1 -1
- package/dist/authhero-widget/{p-6e32b31d.entry.js → p-3ae71c86.entry.js} +1 -1
- package/dist/authhero-widget/p-ARKBiJrR.js +2 -0
- package/dist/cjs/authhero-node.cjs.entry.js +1 -1
- package/dist/cjs/authhero-widget.cjs.entry.js +1 -1
- package/dist/cjs/authhero-widget.cjs.js +2 -2
- package/dist/cjs/{index-xXst3JOw.js → index-I1frl4Am.js} +25 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/authhero-node.js +1 -1
- package/dist/components/authhero-widget.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BbVVe_wV.js +1 -0
- package/dist/components/{p-DnNvVt9e.js → p-C_j5g_sG.js} +1 -1
- package/dist/esm/authhero-node.entry.js +1 -1
- package/dist/esm/authhero-widget.entry.js +1 -1
- package/dist/esm/authhero-widget.js +3 -3
- package/dist/esm/{index-BzFenraS.js → index-ARKBiJrR.js} +25 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/components.d.ts +25 -4
- package/dist/types/stencil-public-runtime.d.ts +24 -1
- package/hydrate/index.js +20 -3
- package/hydrate/index.mjs +20 -3
- package/package.json +2 -2
- package/dist/authhero-widget/p-BzFenraS.js +0 -2
- package/dist/components/p-7EkYyes4.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,e=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(e||{}),n=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(n||{}),l="type",o="value",s="serialized:",r=(t,e)=>{var n;Object.entries(null!=(n=e.l.t)?n:{}).map((([n,[l]])=>{if(31&l||32&l){const l=t[n],o=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(t,n,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):l}}))},i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,e)=>e in t,u=(t,e)=>(0,console.error)(t,e),f=new Map,a="s-id",d="sty-id",$="c-id",p="undefined"!=typeof window?window:{},h=p.HTMLElement||class{},b={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},m=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),y=!!m&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),v=!1,g=[],w=[],j=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&b.i?x(S):b.raf(S))},O=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){u(t)}t.length=0},S=()=>{O(g),O(w),(v=g.length>0)&&b.raf(S)},x=t=>Promise.resolve(undefined).then(t),k=j(w,!0),I=t=>{const e=new URL(t,b.u);return e.origin!==p.location.origin?e.href:e.pathname},M=t=>b.u=t;function E(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(y?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}var N=(t,e,n,l)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=_(s,"appendChild");if(void 0!==l){o["s-oo"]=l;const t=_(s,"childNodes"),e=[o];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,o);t["s-ol"]=o,t["s-sh"]=e["s-hn"]};function _(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var C=new WeakMap,A=(t,e,n)=>{let l=f.get(t);m&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,f.set(t,l)},L=(t,e)=>{var n,l,o;const s=D(e),r=f.get(s);if(!p.document)return s;if(t=11===t.nodeType?t:p.document,r)if("string"==typeof r){let o,i=C.get(t=t.head||t);i||C.set(t,i=new Set);const c=t.querySelector(`[${d}="${s}"]`);if(c)c.textContent=r;else if(!i.has(s)){o=p.document.createElement("style"),o.textContent=r;const c=null!=(n=b.$)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=p.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=c&&o.setAttribute("nonce",c),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(m){const e=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(r),y?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=r+e.textContent:t.prepend(o)}else t.append(o);1&e.i&&t.insertBefore(o,null),4&e.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let e=C.get(t);if(e||C.set(t,e=new Set),!e.has(s)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let l;if(r.constructor===n.CSSStyleSheet)l=r;else{l=new n.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)l.insertRule(r.cssRules[t].cssText,t)}y?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],e.add(s)}}return s},D=t=>"sc-"+t.p,R=t=>"object"==(t=typeof t)||"function"===t,U=(t,e,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!R(l))&&(l=String(l)),s&&r?i[i.length-1].h+=l:i.push(s?V(null,l):l),r=s)};if(c(n),e){e.key&&(o=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=V(t,null);return u.m=e,i.length>0&&(u.v=i),u.j=o,u},V=(t,e)=>({i:0,O:t,h:null!=e?e:null,S:null,v:null,m:null,j:null}),P={},W=(t,e,n,l,o,s,r,i=[])=>{let c,u,f,a;if(1===s.nodeType){if(c=s.getAttribute($),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=F({i:0,k:u[0],I:u[1],M:u[2],N:u[3],O:s.tagName.toLowerCase(),S:s,m:{class:s.className||""}}),e.push(f),s.removeAttribute($),t.v||(t.v=[]);const o=f.S.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===f.O&&H(o,u[2],f,s,t,e,n,l,i),f.S["s-sn"]=o,f.S.removeAttribute("s-sn")),void 0!==f.N&&(t.v[f.N]=f),t=f,l&&"0"===f.M&&(l[f.N]=f.S)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)W(t,e,n,l,o,s.shadowRoot.childNodes[a],r,i);const d=s.__childNodes||s.childNodes;for(a=d.length-1;a>=0;a--)W(t,e,n,l,o,d[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=F({k:u[1],I:u[2],M:u[3],N:u[4]||"0",S:s,m:null,v:null,j:null,_:null,O:null,h:null}),"t"===c?(f.S=Y(s,3),f.S&&3===f.S.nodeType&&(f.h=f.S.textContent,e.push(f),s.remove(),r===f.k&&(t.v||(t.v=[]),t.v[f.N]=f),l&&"0"===f.M&&(l[f.N]=f.S))):"c"===c?(f.S=Y(s,8),f.S&&8===f.S.nodeType&&(e.push(f),s.remove())):f.k===r&&("s"===c?H(s["s-sn"]=u[5]||"",u[2],f,s,t,e,n,l,i):"r"===c&&l&&s.remove()));else if(t&&"style"===t.O){const e=V(null,s.textContent);e.S=s,e.N="0",t.v=[e]}return t},B=(t,e)=>{if(1===t.nodeType){const n=t[a]||t.getAttribute(a);n&&e.set(n,t);let l=0;if(t.shadowRoot)for(;l<t.shadowRoot.childNodes.length;l++)B(t.shadowRoot.childNodes[l],e);const o=t.__childNodes||t.childNodes;for(l=0;l<o.length;l++)B(o[l],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},F=t=>({i:0,k:null,I:null,M:null,N:"0",S:null,m:null,v:null,j:null,_:null,O:null,h:null,...t});function H(t,e,n,l,o,s,r,i,c){l["s-sr"]=!0,n._=t||null,n.O="slot";const u=(null==o?void 0:o.S)?o.S["s-id"]||o.S.getAttribute("s-id"):"";if(i&&p.document){const s=n.S=p.document.createElement(n.O);n._&&n.S.setAttribute("name",t),o.S.shadowRoot&&u&&u!==n.k?_(o.S,"insertBefore")(s,_(o.S,"children")[0]):_(_(l,"parentNode"),"insertBefore")(s,l),z(c,e,t,l,n.k),l.remove(),"0"===n.M&&(i[n.N]=n.S)}else{const s=n.S,r=u&&u!==n.k&&o.S.shadowRoot;z(c,e,t,l,r?u:n.k),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],l=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const l=t[n]["s-nr"]||void 0;l&&l.isConnected&&e.push(l)}return e})(o.childNodes)).forEach((t=>{l===(t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0)(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(l),r&&o.S.insertBefore(s,o.S.children[0])}s.push(n),r.push(n),o.v||(o.v=[]),o.v[n.N]=n}var q,z=(t,e,n,l,o)=>{var s,r;let i=l.nextSibling;if(t[e]=t[e]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==n&&(""!==n||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=n,t[e].push({slot:l,node:i,hostId:o})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},Y=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},J=class t{static fromLocalValue(e){const n=e[l],s=o in e?e[o]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((e=>t.fromLocalValue(e)));case"date":return new Date(s);case"map":const e=new Map;for(const[n,l]of s){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,s=t.fromLocalValue(l);e.set(o,s)}return e;case"object":const l={};for(const[e,n]of s)l[e]=t.fromLocalValue(n);return l;case"regexp":const{pattern:o,flags:r}=s;return new RegExp(o,r);case"set":const i=new Set;for(const e of s)i.add(t.fromLocalValue(e));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(l))return!1;const s=t[l];return!!Object.values({...e,...n}).includes(s)&&("null"===s||"undefined"===s||t.hasOwnProperty(o))}},G=(t,e)=>{return"string"==typeof t&&t.startsWith(s)?t="string"==typeof(n=t)&&n.startsWith(s)?J.fromLocalValue(JSON.parse(atob(n.slice(11)))):n:null==t||R(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?String(t):t;var n},K=(t,e)=>{const n=t;return{emit:t=>Q(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},Q=(t,e,n)=>{const l=b.ce(e,n);return t.dispatchEvent(l),l},T=(t,e,n,l,o,s,r)=>{if(n===l)return;let i=c(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,o=Z(n);let s=Z(l);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];s.push(n),o.forEach((t=>{t.startsWith(n)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("key"===e);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const r=R(l);if((i||r&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||o)&&!r&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):c(p,u)?u.slice(2):u[2]+e.slice(3),n||l){const o=e.endsWith(tt);e=e.replace(et,""),n&&b.rel(t,e,n,o),l&&b.ael(t,e,l,o)}},X=/\s/,Z=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(X):[]),tt="Capture",et=new RegExp(tt+"$"),nt=(t,e,n,l)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,s=t&&t.m||{},r=e.m||{};for(const t of lt(Object.keys(s)))t in r||T(o,t,s[t],void 0,n,e.i,l);for(const t of lt(Object.keys(r)))T(o,t,s[t],r[t],n,e.i,l)};function lt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ot=!1,st=(t,e,n)=>{const l=e.v[n];let o,s,r=0;if(null!=l.h)o=l.S=p.document.createTextNode(l.h);else{if(ot||(ot="svg"===l.O),!p.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=l.S=p.document.createElementNS(ot?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.O),ot&&"foreignObject"===l.O&&(ot=!1),nt(null,l,ot),l.v){const e="template"===l.O?o.content:o;for(r=0;r<l.v.length;++r)s=st(t,l,r),s&&e.appendChild(s)}"svg"===l.O?ot=!1:"foreignObject"===o.tagName&&(ot=!0)}return o["s-hn"]=q,o},rt=(t,e,n,l,o,s)=>{let r,i=t;for(i.shadowRoot&&i.tagName===q&&(i=i.shadowRoot),"template"===n.O&&(i=i.content);o<=s;++o)l[o]&&(r=st(null,n,o),r&&(l[o].S=r,ft(i,r,e)))},it=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.S;t&&t.remove()}}},ct=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),ut=(t,e,n=!1)=>{const l=e.S=t.S,o=t.v,s=e.v,r=e.O,i=e.h;null==i?(nt(t,e,ot="svg"===r||"foreignObject"!==r&&ot,n),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=e.length-1,d=e[0],$=e[a],p=l.length-1,h=l[0],b=l[p];const m="template"===n.O?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=e[++i];else if(null==$)$=e[--a];else if(null==h)h=l[++c];else if(null==b)b=l[--p];else if(ct(d,h,o))ut(d,h,o),d=e[++i],h=l[++c];else if(ct($,b,o))ut($,b,o),$=e[--a],b=l[--p];else if(ct(d,b,o))ut(d,b,o),ft(m,d.S,$.S.nextSibling),d=e[++i],b=l[--p];else if(ct($,h,o))ut($,h,o),ft(m,$.S,d.S),$=e[--a],h=l[++c];else{for(u=-1,f=i;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===h.j){u=f;break}u>=0?(r=e[u],r.O!==h.O?s=st(e&&e[c],n,u):(ut(r,h,o),e[u]=void 0,s=r.S),h=l[++c]):(s=st(e&&e[c],n,c),h=l[++c]),s&&ft(d.S.parentNode,s,d.S)}i>a?rt(t,null==l[p+1]?null:l[p+1].S,n,l,c,p):c>p&&it(e,i,a)})(l,o,e,s,n):null!==s?(null!==t.h&&(l.textContent=""),rt(l,null,e,s,0,s.length-1)):n||null===o?n&&null!==o&&null===s&&(e.v=o):it(o,0,o.length-1),ot&&"svg"===r&&(ot=!1)):t.h!==i&&(l.data=i)},ft=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),at=(t,e,n=!1)=>{const l=t.$hostElement$,o=t.C||V(null,null);var s;const r=(s=e)&&s.O===P?e:U(null,null,e);if(q=l.tagName,n&&r.m)for(const t of Object.keys(r.m))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=l[t]);r.O=null,r.i|=4,t.C=r,r.S=o.S=l.shadowRoot||l,ut(o,r,n)},dt=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.A=()=>{e["s-p"].splice(n-1,1),l()})))}},$t=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);dt(t,t.L);const n=()=>pt(t,e);if(!e)return k(n);queueMicrotask((()=>{n()}))},pt=(t,e)=>{const n=t.$hostElement$,l=n;if(!l)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=wt(l,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=ht(o,(()=>wt(l,"componentWillRender",void 0,n))),ht(o,(()=>mt(t,l,e)))},ht=(t,e)=>bt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),bt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,mt=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.l,n=t.$hostElement$,l=e.i,o=L(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);yt(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>vt(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},yt=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,at(t,e,l)}catch(e){u(e,t.$hostElement$)}return null},vt=t=>{const e=t.$hostElement$,n=e,l=t.L;wt(n,"componentDidRender",void 0,e),64&t.i?wt(n,"componentDidUpdate",void 0,e):(t.i|=64,jt(e),wt(n,"componentDidLoad",void 0,e),t.D(e),l||gt()),t.A&&(t.A(),t.A=void 0),512&t.i&&x((()=>$t(t,!1))),t.i&=-517},gt=()=>{var t;x((()=>Q(p,"appload",{detail:{namespace:"authhero-widget"}}))),(null==(t=b.R)?void 0:t.size)&&b.R.clear()},wt=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){u(t,l)}},jt=t=>t.classList.add("hydrated"),Ot=(t,e,n,l)=>{const o=i(t);if(!o)return;const s=t,r=o.o.get(e),c=o.i,f=s;n=G(n,l.t[e][0]);const a=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!a){if(o.o.set(e,n),l.U){const t=l.U[e];t&&t.map((t=>{try{const[[l,s]]=Object.entries(t);(128&c||1&s)&&(f?f[l](n,r,e):o.V.push((()=>{o.P[l](n,r,e)})))}catch(t){u(t,s)}}))}if(2==(18&c)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,r,e))return;$t(o,!1)}}},St=(t,e)=>{var n,l;const o=t.prototype;{t.watchers&&!e.U&&(e.U=t.watchers),t.deserializers&&!e.W&&(e.W=t.deserializers),t.serializers&&!e.B&&(e.B=t.serializers);const s=Object.entries(null!=(n=e.t)?n:{});s.map((([t,[n]])=>{if(31&n||32&n){const{get:l,set:s}=Object.getOwnPropertyDescriptor(o,t)||{};l&&(e.t[t][0]|=2048),s&&(e.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return l?l.apply(this):(e=t,i(this).o.get(e));var e},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(l){const o=i(this);if(o){if(s)return void 0===(32&n?this[t]:o.$hostElement$[t])&&o.o.get(t)&&(l=o.o.get(t)),s.apply(this,[G(l,n)]),void Ot(this,t,l=32&n?this[t]:o.$hostElement$[t],e);Ot(this,t,l,e)}}})}}));{const n=new Map;o.attributeChangedCallback=function(t,l,r){b.jmp((()=>{var c;const u=n.get(t),f=i(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==r)return;if(null==u){const n=null==f?void 0:f.i;if(f&&n&&!(8&n)&&r!==l){const o=this,s=null==(c=e.U)?void 0:c[t];null==s||s.forEach((e=>{const[[s,i]]=Object.entries(e);null!=o[s]&&(128&n||1&i)&&o[s].call(o,r,l,t)}))}return}const a=s.find((([t])=>t===u));a&&4&a[1][0]&&(r=null!==r&&"false"!==r);const d=Object.getOwnPropertyDescriptor(o,u);r==this[u]||d.get&&!d.set||(this[u]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.U)?l:{}),...s.filter((([t,e])=>31&e[0])).map((([t,e])=>{const l=e[1]||t;return n.set(l,t),l}))]))}}return t},xt=(t,e)=>{const n={i:e[0],p:e[1]};n.t=e[2],n.U=t.U,n.W=t.W,n.B=t.B,(()=>{if(!p.document)return;const t=p.document.querySelectorAll(`[${d}]`);let e=0;for(;e<t.length;e++)A(t[e].getAttribute(d),t[e].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0)})();const l=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const n={i:0,$hostElement$:t,l:e,o:new Map,F:new Map};n.H=new Promise((t=>n.D=t)),t["s-p"]=[],t["s-rc"]=[];const l=n;t.__stencil__getHostRef=()=>l,512&e.i&&r(t,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!i(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&b.i)){const e=i(t);if(!e)return;const n=e.l,l=()=>{};if(1&e.i)(null==e?void 0:e.P)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{let l;if(e.i|=1,l=t.getAttribute(a),l){if(1&n.i){const e=L(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}((t,e,n,l)=>{var o,s,r,c;const u=t.shadowRoot,f=[],d=[],$=u?[]:null,h=V(e,null);h.S=t,!p.document||b.R&&b.R.size||B(p.document.body,b.R=new Map),t[a]=n,t.removeAttribute(a),l.C=W(h,f,[],$,t,t,n,d);let m=0;const y=f.length;let v;for(;m<y;m++){v=f[m];const n=v.k+"."+v.I,l=b.R.get(n),s=v.S;if(u){if((null==(o=v.O)?void 0:o.toString().includes("-"))&&"slot-fb"!==v.O&&!v.S.shadowRoot){const t=i(v.S);if(t){const e=D(t.l),n=p.document.querySelector(`style[sty-id="${e}"]`);n&&$.unshift(n.cloneNode(!0))}}}else s["s-hn"]=e.toUpperCase(),"slot"===v.O&&(s["s-cr"]=t["s-cr"]);"slot"===v.O&&(v._=v.S["s-sn"]||v.S.name||null,v.v?(v.i|=2,v.S.childNodes.length||v.v.forEach((t=>{v.S.appendChild(t.S)}))):v.i|=1),l&&l.isConnected&&(l.parentElement.shadowRoot&&""===l["s-en"]&&l.parentNode.insertBefore(s,l.nextSibling),l.parentNode.removeChild(l),u||(s["s-oo"]=parseInt(v.I))),l&&!l["s-id"]&&b.R.delete(n)}const g=[],w=d.length;let j,O,S,x,k=0,I=0;for(;k<w;k++)if(j=d[k],j&&j.length)for(S=j.length,O=0;O<S;O++){if(x=j[O],g[x.hostId]||(g[x.hostId]=b.R.get(x.hostId)),!g[x.hostId])continue;const t=g[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.insertBefore(x.node,null==(r=null==(s=j[O-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&u||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),N(x.node,x.slot,0,x.node["s-oo"]||I),(null==(c=x.node.parentElement)?void 0:c.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot")),I=(x.node["s-oo"]||I)+1}if(u&&!u.childNodes.length){let e=0;const n=$.length;if(n){for(;e<n;e++){const t=$[e];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}l.$hostElement$=t})(t,n.p,l,e)}{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){dt(e,e.L=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=D(n);if(!f.has(e)){const l=()=>{};A(e,t,!!(1&n.i)),l()}}const o=e.L,s=()=>$t(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(t,e,n)}l()}})(this),l&&l.call(this)},disconnectedCallback(){(async t=>{1&b.i||i(t),C.has(t)&&C.delete(t),t.shadowRoot&&C.has(t.shadowRoot)&&C.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else E.call(this,n)}}),t.is=n.p,St(t,n)},kt=t=>b.$=t,It=t=>Object.assign(b,t);function Mt(t,e){at({$hostElement$:e},t)}function Et(t){return t}export{h as H,kt as a,It as b,K as c,I as g,U as h,xt as p,Mt as r,M as s,Et as t}
|