@saasquatch/vanilla-components 1.2.4-24 → 1.2.4-25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/LICENSE +21 -21
  3. package/dist/cjs/{WidgetHost-f349e877.js → WidgetHost-d7b870ce.js} +615 -772
  4. package/dist/cjs/{en-3a7cb52e.js → en-a49a5ef5.js} +2 -2
  5. package/dist/cjs/{index-09a04159.js → index-deb40352.js} +3 -54
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/sqh-close-button.cjs.entry.js +26 -26
  8. package/dist/cjs/{sqh-copy-button_14.cjs.entry.js → sqh-copy-button_12.cjs.entry.js} +1213 -2287
  9. package/dist/cjs/sqh-referral-code.cjs.entry.js +23 -23
  10. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +27 -27
  11. package/dist/cjs/widget-components.cjs.js +3 -3
  12. package/dist/collection/collection-manifest.json +0 -2
  13. package/dist/collection/components/close-button/close-button.js +68 -70
  14. package/dist/collection/components/copy-button/copy-button.js +380 -380
  15. package/dist/collection/components/copy-link-button/copy-link-button.js +230 -230
  16. package/dist/collection/components/global-container/global-container.js +158 -158
  17. package/dist/collection/components/image-component/image-component.js +175 -175
  18. package/dist/collection/components/partner-stat-component/partner-stat-component.js +196 -196
  19. package/dist/collection/components/referral-code/referral-code.js +36 -36
  20. package/dist/collection/components/referral-component/referral-component.js +255 -255
  21. package/dist/collection/components/referral-list/referral-list.js +911 -911
  22. package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
  23. package/dist/collection/components/share-button/share-button.js +301 -301
  24. package/dist/collection/components/share-button-container/share-button-container.js +2384 -2384
  25. package/dist/collection/components/stat-component/stat-component.js +196 -197
  26. package/dist/collection/components/stats-container/stats-container.js +210 -210
  27. package/dist/collection/components/text-component/text-component.js +304 -301
  28. package/dist/collection/entrypoint.js +34 -34
  29. package/dist/collection/global/global.js +4 -4
  30. package/dist/collection/services/FormatJs.js +15 -15
  31. package/dist/collection/services/WidgetHost.js +621 -778
  32. package/dist/collection/utilities.js +81 -81
  33. package/dist/esm/{WidgetHost-c033b6ac.js → WidgetHost-a27e693d.js} +615 -772
  34. package/dist/esm/{en-a652ab83.js → en-be593af0.js} +1 -1
  35. package/dist/esm/{index-342d7c26.js → index-8ea8b6d8.js} +3 -54
  36. package/dist/esm/loader.mjs +3 -3
  37. package/dist/esm/polyfills/core-js.js +0 -0
  38. package/dist/esm/polyfills/dom.js +0 -0
  39. package/dist/esm/polyfills/es5-html-element.js +0 -0
  40. package/dist/esm/polyfills/index.js +0 -0
  41. package/dist/esm/polyfills/system.js +0 -0
  42. package/dist/esm/sqh-close-button.entry.js +26 -26
  43. package/dist/esm/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +1214 -2286
  44. package/dist/esm/sqh-referral-code.entry.js +23 -23
  45. package/dist/esm/sqh-rewards-actions.entry.js +27 -27
  46. package/dist/esm/widget-components.mjs +3 -3
  47. package/dist/esm-es5/{WidgetHost-c033b6ac.js → WidgetHost-a27e693d.js} +9432 -9524
  48. package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
  49. package/dist/esm-es5/css-shim-a659079f.js +122 -122
  50. package/dist/esm-es5/dom-4061ceba.js +468 -468
  51. package/dist/esm-es5/{en-a652ab83.js → en-be593af0.js} +1471 -1471
  52. package/dist/esm-es5/{index-342d7c26.js → index-8ea8b6d8.js} +1758 -1808
  53. package/dist/esm-es5/loader.mjs +11 -11
  54. package/dist/esm-es5/sqh-close-button.entry.js +35 -35
  55. package/dist/esm-es5/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +9624 -10588
  56. package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
  57. package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
  58. package/dist/esm-es5/widget-components.mjs +6 -6
  59. package/dist/types/components/close-button/close-button.d.ts +16 -18
  60. package/dist/types/components/copy-button/copy-button.d.ts +90 -90
  61. package/dist/types/components/copy-link-button/copy-link-button.d.ts +53 -53
  62. package/dist/types/components/global-container/global-container.d.ts +39 -39
  63. package/dist/types/components/image-component/image-component.d.ts +45 -45
  64. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +51 -51
  65. package/dist/types/components/referral-code/referral-code.d.ts +12 -12
  66. package/dist/types/components/referral-component/referral-component.d.ts +46 -46
  67. package/dist/types/components/referral-list/referral-list.d.ts +234 -234
  68. package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
  69. package/dist/types/components/share-button/share-button.d.ts +77 -77
  70. package/dist/types/components/share-button-container/share-button-container.d.ts +593 -593
  71. package/dist/types/components/stat-component/stat-component.d.ts +48 -49
  72. package/dist/types/components/stats-container/stats-container.d.ts +47 -47
  73. package/dist/types/components/text-component/text-component.d.ts +74 -73
  74. package/dist/types/components.d.ts +2 -292
  75. package/dist/types/global/global.d.ts +4 -4
  76. package/dist/types/saasquatch.d.ts +105 -105
  77. package/dist/types/services/FormatJs.d.ts +7 -7
  78. package/dist/types/services/WidgetHost.d.ts +45 -51
  79. package/dist/types/utilities.d.ts +7 -7
  80. package/dist/widget-components/entrypoint.js +34 -34
  81. package/dist/widget-components/p-0bfec452.entry.js +149 -0
  82. package/dist/widget-components/p-24fc4ba9.js +1 -1
  83. package/dist/widget-components/{p-17d80384.js → p-44a6559d.js} +1 -1
  84. package/dist/widget-components/p-46109683.js +3 -3
  85. package/dist/widget-components/p-485eaf44.js +1 -0
  86. package/dist/widget-components/{p-e82def83.system.js → p-58be1132.system.js} +1 -1
  87. package/dist/widget-components/{p-3ba562d0.entry.js → p-650d012d.entry.js} +1 -1
  88. package/dist/widget-components/p-796dc228.system.entry.js +8 -0
  89. package/dist/widget-components/{p-d9e9c55c.system.entry.js → p-908068c2.system.entry.js} +1 -1
  90. package/dist/widget-components/{p-6e753d23.js → p-9525bf4a.js} +3 -68
  91. package/dist/widget-components/{p-fb528be6.entry.js → p-9746ae26.entry.js} +1 -1
  92. package/dist/widget-components/{p-54e83dfb.system.js → p-9adc7c50.system.js} +2 -2
  93. package/dist/widget-components/{p-aaf44379.system.js → p-a846f503.system.js} +1 -1
  94. package/dist/widget-components/{p-abf8a511.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
  95. package/dist/widget-components/{p-4293e873.entry.js → p-d4b27c72.entry.js} +1 -1
  96. package/dist/widget-components/{p-665b8d42.system.entry.js → p-e2b4739f.system.entry.js} +1 -1
  97. package/dist/widget-components/p-e61a8100.system.js +1 -0
  98. package/dist/widget-components/widget-components.esm.js +1 -1
  99. package/dist/widget-components/widget-components.js +1 -1
  100. package/docs/raisins.json +1 -1
  101. package/package.json +97 -98
  102. package/readme.md +52 -52
  103. package/dist/collection/components/cta-component/cta-component.css +0 -6
  104. package/dist/collection/components/cta-component/cta-component.js +0 -396
  105. package/dist/collection/components/progress-indicator/progress-indicator.css +0 -73
  106. package/dist/collection/components/progress-indicator/progress-indicator.js +0 -557
  107. package/dist/types/components/cta-component/cta-component.d.ts +0 -95
  108. package/dist/types/components/progress-indicator/progress-indicator.d.ts +0 -94
  109. package/dist/widget-components/p-9fb4b935.system.entry.js +0 -10
  110. package/dist/widget-components/p-ad5121cf.system.js +0 -1
  111. package/dist/widget-components/p-d9a22d83.entry.js +0 -233
  112. package/dist/widget-components/p-fbf0c7fe.js +0 -1
@@ -1 +0,0 @@
1
- const t="widget-components";let e,n,l=!1,o=!1,s=!1,r=!1,c=0,i=!1;const f="undefined"!=typeof window?window:{},a=f.CSS,u=f.document||{head:{}},d=f.HTMLElement||class{},p={t:0,l:"",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)},h=t=>Promise.resolve(t),$=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),m=(t,e,n)=>{n&&n.map(([n,l,o])=>{const s=t,r=b(e,o),c=y(n);p.ael(s,l,r,c),(e.o=e.o||[]).push(()=>p.rel(s,l,r,c))})},b=(t,e)=>n=>{256&t.t?t.s[e](n):(t.i=t.i||[]).push([e,n])},y=t=>0!=(2&t),w="http://www.w3.org/1999/xlink",g=new WeakMap,v=t=>"sc-"+t.u,j={},O=t=>"object"==(t=typeof t)||"function"===t,k="undefined"!=typeof Deno,M=!(k||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),S=(k&&Deno,M?process:k&&Deno,M?process:k&&Deno,(t,e,...n)=>{let l=null,o=null,s=!1,r=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!O(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?x(null,l):l),r=s)};if(i(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,C);const f=x(t,null);return f.h=e,c.length>0&&(f.$=c),f.m=o,f}),x=(t,e)=>({t:0,g:t,p:e,v:null,$:null,h:null,m:null}),_={},C={forEach:(t,e)=>t.map(D).forEach(e),map:(t,e)=>t.map(D).map(e).map(E)},D=t=>({vattrs:t.h,vchildren:t.$,vkey:t.j,vname:t.m,vtag:t.g,vtext:t.p}),E=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),S(t.vtag,e,...t.vchildren||[])}const e=x(t.vtag,t.vtext);return e.h=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.m=t.vname,e},N=(t,e,n,l,o,s)=>{if(n!==l){let r=wt(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=T(n),s=T(l);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if(r||"o"!==e[0]||"n"!==e[1]){const i=O(l);if((r||i&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(w,e):t.removeAttribute(e)):(!r||4&s||o)&&!i&&(l=!0===l?"":l,f?t.setAttributeNS(w,e,l):t.setAttribute(e,l))}else e="-"===e[2]?e.slice(3):wt(f,c)?c.slice(2):c[2]+e.slice(3),n&&p.rel(t,e,n,!1),l&&p.ael(t,e,l,!1)}},R=/\s/,T=t=>t?t.split(R):[],L=(t,e,n,l)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.h||j,r=e.h||j;for(l in s)l in r||N(o,l,s[l],void 0,n,e.t);for(l in r)N(o,l,s[l],r[l],n,e.t)},P=(t,o,c)=>{let i,f,a,d=o.$[c],p=0;if(l||(s=!0,"slot"===d.g&&(d.t|=d.$?2:1)),null!==d.p)i=d.v=u.createTextNode(d.p);else if(1&d.t)i=d.v=u.createTextNode("");else{if(r||(r="svg"===d.g),i=d.v=u.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&d.t?"slot-fb":d.g),r&&"foreignObject"===d.g&&(r=!1),L(null,d,r),d.$)for(p=0;p<d.$.length;++p)f=P(t,d,p),f&&i.appendChild(f);"svg"===d.g?r=!1:"foreignObject"===i.tagName&&(r=!0)}return i["s-hn"]=n,3&d.t&&(i["s-sr"]=!0,i["s-cr"]=e,i["s-sn"]=d.m||"",a=t&&t.$&&t.$[c],a&&a.g===d.g&&t.v&&A(t.v,!1)),i},A=(t,e)=>{p.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const o=l[t];o["s-hn"]!==n&&o["s-ol"]&&(H(o).insertBefore(o,F(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),e&&A(o,e)}p.t&=-2},U=(t,e,n,l,o,s)=>{let r,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(r=P(null,n,o),r&&(l[o].v=r,c.insertBefore(r,F(e))))},W=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(o=!0,(s=l.v)["s-ol"]?s["s-ol"].remove():A(s,!0),s.remove())},q=(t,e)=>t.g===e.g&&("slot"!==t.g||t.m===e.m),F=t=>t&&t["s-ol"]||t,H=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,V=(t,e)=>{const n=e.v=t.v,l=t.$,o=e.$,s=e.g,c=e.p;let i;null===c?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||L(t,e,r),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==f?f=e[--c]:null==u?u=l[++r]:null==d?d=l[--a]:q(i,u)?(V(i,u),i=e[++s],u=l[++r]):q(f,d)?(V(f,d),f=e[--c],d=l[--a]):q(i,d)?("slot"!==i.g&&"slot"!==d.g||A(i.v.parentNode,!1),V(i,d),t.insertBefore(i.v,f.v.nextSibling),i=e[++s],d=l[--a]):q(f,u)?("slot"!==i.g&&"slot"!==d.g||A(f.v.parentNode,!1),V(f,u),t.insertBefore(f.v,i.v),f=e[--c],u=l[++r]):(o=P(e&&e[r],n,r),u=l[++r],o&&H(i.v).insertBefore(o,F(i.v)));s>c?U(t,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&W(e,s,c)})(n,l,e,o):null!==o?(null!==t.p&&(n.textContent=""),U(n,null,e,o,0,o.length-1)):null!==l&&W(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(i=n["s-cr"])?i.parentNode.textContent=c:t.p!==c&&(n.data=c)},z=t=>{let e,n,l,o,s,r,c=t.childNodes;for(n=0,l=c.length;n<l;n++)if(e=c[n],1===e.nodeType){if(e["s-sr"])for(s=e["s-sn"],e.hidden=!1,o=0;o<l;o++)if(c[o]["s-hn"]!==e["s-hn"])if(r=c[o].nodeType,""!==s){if(1===r&&s===c[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===r||3===r&&""!==c[o].textContent.trim()){e.hidden=!0;break}z(e)}},B=[],G=t=>{let e,n,l,s,r,c,i=0,f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"]))for(l=n.parentNode.childNodes,s=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(I(n,s)?(r=B.find(t=>t.O===n),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.k=e:B.push({k:e,O:n}),n["s-sr"]&&B.map(t=>{I(t.O,n["s-sn"])&&(r=B.find(t=>t.O===n),r&&!t.k&&(t.k=r.k))})):B.some(t=>t.O===n)||B.push({O:n}));1===e.nodeType&&G(e)}},I=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,J=t=>mt(t).M,K=(t,e,n)=>{const l=J(t);return{emit:t=>Q(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},Q=(t,e,n)=>{const l=p.ce(e,n);return t.dispatchEvent(l),l},X=(t,e)=>{e&&!t.S&&e["s-p"]&&e["s-p"].push(new Promise(e=>t.S=e))},Y=(t,e)=>{if(t.t|=16,!(4&t.t))return X(t,t._),Et(()=>Z(t,e));t.t|=512},Z=(t,e)=>{const n=t.s;let l;return e&&(t.t|=256,t.i&&(t.i.map(([t,e])=>ot(n,t,e)),t.i=null),l=ot(n,"componentWillLoad")),st(l,()=>tt(t,n,e))},tt=(t,r,c)=>{const i=t.M,f=i["s-rc"];c&&(t=>{const e=t.C;((t,e)=>{let n=v(e),l=Ot.get(n);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let e,o=g.get(t=t.head||t);o||g.set(t,o=new Set),o.has(n)||(e=u.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.M.getRootNode(),e)})(t);((t,r)=>{const c=t.M,i=t.C,f=t.D||x(null,null),a=(t=>t&&t.g===_)(r)?r:S(null,null,r);if(n=c.tagName,a.g=null,a.t|=4,t.D=a,a.v=f.v=c,e=c["s-cr"],l=0!=(1&i.t),o=!1,V(f,a),p.t|=1,s){let t,e,n,l,o,s;G(a.v);let r=0;for(;r<B.length;r++)t=B[r],e=t.O,e["s-ol"]||(n=u.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<B.length;r++)if(t=B[r],e=t.O,t.k){for(l=t.k.parentNode,o=t.k.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}o&&z(a.v),p.t&=-2,B.length=0})(t,et(t,r)),f&&(f.map(t=>t()),i["s-rc"]=void 0);{const e=i["s-p"],n=()=>nt(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},et=(t,e)=>{try{e=e.render(),t.t&=-17,t.t|=2}catch(t){gt(t)}return e},nt=t=>{const e=t.M,n=t.s,l=t._;64&t.t||(t.t|=64,rt(e),ot(n,"componentDidLoad"),t.N(e),l||lt()),t.S&&(t.S(),t.S=void 0),512&t.t&&Dt(()=>Y(t,!1)),t.t&=-517},lt=()=>{rt(u.documentElement),p.t|=2,Dt(()=>Q(f,"appload",{detail:{namespace:"widget-components"}}))},ot=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){gt(t)}},st=(t,e)=>t&&t.then?t.then(e):e(),rt=t=>t.classList.add("hydrated"),ct=(t,e,n)=>{if(e.R){t.watchers&&(e.T=t.watchers);const l=Object.entries(e.R),o=t.prototype;if(l.map(([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>mt(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=mt(t),s=o.L.get(e),r=o.t,c=o.s;if(n=((t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.R[e][0]),!(8&r&&void 0!==s||n===s)&&(o.L.set(e,n),c)){if(l.T&&128&r){const t=l.T[e];t&&t.map(t=>{try{c[t](n,s,e)}catch(t){gt(t)}})}2==(18&r)&&Y(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){p.jmp(()=>{const n=e.get(t);this[n]=(null!==l||"boolean"!=typeof this[n])&&l})},t.observedAttributes=l.filter(([t,e])=>15&e[0]).map(([t,n])=>{const l=n[1]||t;return e.set(l,t),l})}}return t},it=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this,l=e.call(n,!1);if(t){let t,e=0;for(;e<n.childNodes.length;e++)t=n.childNodes[e]["s-nr"],t&&(l.__appendChild?l.__appendChild(t.cloneNode(!0)):l.appendChild(t.cloneNode(!0)))}return l}},ft=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=ut(t),n=dt(this.childNodes,e);if(n){const l=pt(n,e),o=l[l.length-1];return o.parentNode.insertBefore(t,o.nextSibling)}return this.__appendChild(t)}},at=(t,e)=>{class n extends Array{item(t){return this[t]}}if(8&e.t){const e=t.__lookupGetter__("childNodes");Object.defineProperty(t,"children",{get(){return this.childNodes.map(t=>1===t.nodeType)}}),Object.defineProperty(t,"childElementCount",{get:()=>t.children.length}),Object.defineProperty(t,"childNodes",{get(){const t=e.call(this);if(0==(1&p.t)&&2&mt(this).t){const e=new n;for(let n=0;n<t.length;n++){const l=t[n]["s-nr"];l&&e.push(l)}return e}return n.from(t)}})}},ut=t=>t["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",dt=(t,e)=>{let n,l=0;for(;l<t.length;l++){if(n=t[l],n["s-sr"]&&n["s-sn"]===e)return n;if(n=dt(n.childNodes,e),n)return n}return null},pt=(t,e)=>{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},ht=(t,e={})=>{const n=[],l=e.exclude||[],o=f.customElements,s=u.head,r=s.querySelector("meta[charset]"),c=u.createElement("style"),i=[];let a,d=!0;Object.assign(p,e),p.l=new URL(e.resourcesUrl||"./",u.baseURI).href,e.syncQueue&&(p.t|=4),t.map(t=>t[1].map(e=>{const s={t:e[0],u:e[1],R:e[2],P:e[3]};s.R=e[2],s.P=e[3],s.T={};const r=s.u,c=class extends HTMLElement{constructor(t){super(t),yt(t=this,s),at(t,s)}connectedCallback(){a&&(clearTimeout(a),a=null),d?i.push(this):p.jmp(()=>(t=>{if(0==(1&p.t)){const e=mt(t),n=e.C,l=()=>{};if(1&e.t)m(t,e,n.P);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=u.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(e,e._=n);break}}n.R&&Object.entries(n.R).map(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),Dt(()=>(async(t,e,n,l,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=jt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.T=o.watchers,ct(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){gt(t)}e.t&=-9,e.t|=128,t()}if(o.style){let t=o.style;const e=v(n);if(!Ot.has(e)){const l=()=>{};((t,e,n)=>{let l=Ot.get(t);$&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,Ot.set(t,l)})(e,t,!!(1&n.t)),l()}}}const s=e._,r=()=>Y(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n))}l()}})(this))}disconnectedCallback(){p.jmp(()=>(()=>{if(0==(1&p.t)){const t=mt(this);t.o&&(t.o.map(t=>t()),t.o=void 0)}})())}forceUpdate(){(()=>{{const t=mt(this);t.M.isConnected&&2==(18&t.t)&&Y(t,!1)}})()}componentOnReady(){return mt(this).A}};it(c.prototype),ft(c.prototype),s.U=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ct(c,s,1)))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),d=!1,i.length?i.map(t=>t.connectedCallback()):p.jmp(()=>a=setTimeout(lt,30))},$t=new WeakMap,mt=t=>$t.get(t),bt=(t,e)=>$t.set(e.s=t,e),yt=(t,e)=>{const n={t:0,M:t,C:e,L:new Map};return n.A=new Promise(t=>n.N=t),t["s-p"]=[],t["s-rc"]=[],m(t,n,e.P),$t.set(t,n)},wt=(t,e)=>e in t,gt=t=>console.error(t),vt=new Map,jt=t=>{const e=t.u.replace(/-/g,"_"),n=t.U,l=vt.get(n);return l?l[e]:__sc_import_widget_components(`./${n}.entry.js`).then(t=>(vt.set(n,t),t[e]),gt)},Ot=new Map,kt=[],Mt=[],St=[],xt=(t,e)=>n=>{t.push(n),i||(i=!0,e&&4&p.t?Dt(Ct):p.raf(Ct))},_t=(t,e)=>{let n=0,l=0;for(;n<t.length&&(l=performance.now())<e;)try{t[n++](l)}catch(t){gt(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},Ct=()=>{c++,(t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){gt(t)}t.length=0})(kt);{const t=2==(6&p.t)?performance.now()+14*Math.ceil(.1*c):1/0;_t(Mt,t),_t(St,t),Mt.length>0&&(St.push(...Mt),Mt.length=0),(i=kt.length+Mt.length+St.length>0)?p.raf(Ct):c=0}},Dt=t=>h().then(t),Et=xt(Mt,!0);export{a as C,d as H,t as N,h as a,ht as b,K as c,u as d,J as g,S as h,p,bt as r,f as w}