cloudcommerce 0.0.97 → 0.0.99

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 (85) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/packages/api/package.json +1 -1
  4. package/packages/apps/correios/package.json +1 -1
  5. package/packages/apps/custom-shipping/package.json +1 -1
  6. package/packages/apps/discounts/package.json +1 -1
  7. package/packages/apps/frenet/package.json +1 -1
  8. package/packages/apps/tiny-erp/package.json +1 -1
  9. package/packages/cli/package.json +1 -1
  10. package/packages/config/package.json +1 -1
  11. package/packages/events/package.json +1 -1
  12. package/packages/firebase/lib/config.js +27 -25
  13. package/packages/firebase/lib/const.js +3 -2
  14. package/packages/firebase/lib/env.js +2 -1
  15. package/packages/firebase/lib/handlers/check-store-events.js +146 -145
  16. package/packages/firebase/lib/helpers/pubsub.js +20 -18
  17. package/packages/firebase/lib/helpers/update-app-data.js +38 -38
  18. package/packages/firebase/lib/index.js +9 -7
  19. package/packages/firebase/lib/init.js +2 -1
  20. package/packages/firebase/package.json +1 -1
  21. package/packages/modules/package.json +1 -1
  22. package/packages/passport/package.json +1 -1
  23. package/packages/ssr/package.json +1 -1
  24. package/packages/storefront/astro.config.mjs +1 -1
  25. package/packages/storefront/dist/client/LoginOffcanvas.c2faa1dc.js +1 -0
  26. package/packages/storefront/dist/client/admin/config.json +1 -0
  27. package/packages/storefront/dist/client/assets/_...522e6bf2.css +4 -0
  28. package/packages/storefront/dist/client/assets/_...a48b75c7.css +1 -0
  29. package/packages/storefront/dist/client/assets/cms-preview.css +274 -0
  30. package/packages/storefront/dist/client/assets/cms.css +114 -0
  31. package/packages/storefront/dist/client/assets/cvv.png +0 -0
  32. package/packages/storefront/dist/client/assets/icons/bootstrap-icons/font/storefront-icons.woff2 +0 -0
  33. package/packages/storefront/dist/client/assets/icons/feather-icons/font/storefront-icons.woff2 +0 -0
  34. package/packages/storefront/dist/client/assets/icons/font-awesome/font/storefront-icons.woff2 +0 -0
  35. package/packages/storefront/dist/client/assets/icons/line-awesome/font/storefront-icons.woff2 +0 -0
  36. package/packages/storefront/dist/client/assets/icons/tabler-icons/font/storefront-icons.woff2 +0 -0
  37. package/packages/storefront/dist/client/assets/img-placeholder.png +0 -0
  38. package/packages/storefront/dist/client/assets/payments.png +0 -0
  39. package/packages/storefront/dist/client/assets/ssl-safe.png +0 -0
  40. package/packages/storefront/dist/client/chunks/LoginForm.3bcb85fb.js +1066 -0
  41. package/packages/storefront/dist/client/chunks/LoginOffcanvas.e48f274b.js +1 -0
  42. package/packages/storefront/dist/client/chunks/index.esm.84a649c7.js +331 -0
  43. package/packages/storefront/dist/client/chunks/preload-helper.f15ab524.js +1 -0
  44. package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.738639ee.js +1 -0
  45. package/packages/storefront/dist/client/chunks/workbox-window.prod.es5.4b654ae6.js +2 -0
  46. package/packages/storefront/dist/client/client.b552d86a.js +1 -0
  47. package/packages/storefront/dist/client/hoisted.054c36ac.js +1 -0
  48. package/packages/storefront/dist/client/img/icon.png +0 -0
  49. package/packages/storefront/dist/client/img/large-icon.png +0 -0
  50. package/packages/storefront/dist/client/img/uploads/banner1.png +0 -0
  51. package/packages/storefront/dist/client/img/uploads/banner2.png +0 -0
  52. package/packages/storefront/dist/client/img/uploads/banner2.webp +0 -0
  53. package/packages/storefront/dist/client/img/uploads/favicon.png +0 -0
  54. package/packages/storefront/dist/client/img/uploads/headless.png +0 -0
  55. package/packages/storefront/dist/client/img/uploads/headphone.png +0 -0
  56. package/packages/storefront/dist/client/img/uploads/headphone.webp +0 -0
  57. package/packages/storefront/dist/client/img/uploads/icon.png +0 -0
  58. package/packages/storefront/dist/client/img/uploads/large-icon.png +0 -0
  59. package/packages/storefront/dist/client/img/uploads/logo.png +0 -0
  60. package/packages/storefront/dist/client/img/uploads/logo.webp +0 -0
  61. package/packages/storefront/dist/client/img/uploads/og-image.png +0 -0
  62. package/packages/storefront/dist/client/img/uploads/passion.png +0 -0
  63. package/packages/storefront/dist/client/img/uploads/passion.webp +0 -0
  64. package/packages/storefront/dist/client/img/uploads/pwa-reliable.png +0 -0
  65. package/packages/storefront/dist/client/img/uploads/rect8589.png +0 -0
  66. package/packages/storefront/dist/client/img/uploads/rect859.png +0 -0
  67. package/packages/storefront/dist/client/img/uploads/rect89.png +0 -0
  68. package/packages/storefront/dist/client/img/uploads/rect89.webp +0 -0
  69. package/packages/storefront/dist/client/img/uploads/ssl-safe.png +0 -0
  70. package/packages/storefront/dist/client/manifest.webmanifest +1 -0
  71. package/packages/storefront/dist/client/page.3aa82516.js +1 -0
  72. package/packages/storefront/dist/client/robots.txt +8 -0
  73. package/packages/storefront/dist/client/sw.js +1 -0
  74. package/packages/storefront/dist/client/workbox-6f0d1f78.js +1 -0
  75. package/packages/storefront/dist/client/~partytown/partytown-atomics.js +2 -0
  76. package/packages/storefront/dist/client/~partytown/partytown-media.js +2 -0
  77. package/packages/storefront/dist/client/~partytown/partytown-sw.js +2 -0
  78. package/packages/storefront/dist/client/~partytown/partytown.js +2 -0
  79. package/packages/storefront/dist/server/entry.mjs +2852 -0
  80. package/packages/storefront/dist/server/manifest.webmanifest +1 -0
  81. package/packages/storefront/dist/server/registerSW.js +1 -0
  82. package/packages/storefront/package.json +2 -2
  83. package/packages/storefront/src/lib/layouts/PagesHeader.astro +2 -1
  84. package/packages/storefront/tsconfig.json +1 -1
  85. package/packages/types/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"name":"My Shop","short_name":"MyShop","start_url":"/","display":"standalone","background_color":"#f5f6fa","lang":"en","scope":"/","description":"My PWA Shop","theme_color":"#137c5c","crossorigin":"use-credentials","icons":[{"src":"/img/icon.png","sizes":"192x192","type":"image/png"},{"src":"/img/large-icon.png","sizes":"512x512","type":"image/png"},{"src":"/img/large-icon.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]}
@@ -0,0 +1 @@
1
+ function d(e){e=e||1;var t=[],n=0;function o(s){t.push(s)>1||r()}function a(){n--,r()}function r(){n<e&&t.length>0&&(t.shift()(),n++)}return[o,a]}function m(e,t){const n=t?.timeout??50,o=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,n-(Date.now()-o))}})},1)}const v=window.requestIdleCallback||m;var w=v;const f=["mouseenter","touchstart","focus"],u=new Set;function p({href:e}){try{const t=new URL(e);return window.location.origin===t.origin&&window.location.pathname!==t.hash&&!u.has(e)}catch{}return!1}let i,c;function b(e){u.add(e.href),c.observe(e),f.map(t=>e.addEventListener(t,l,{passive:!0,once:!0}))}function y(e){c.unobserve(e),f.map(t=>e.removeEventListener(t,l))}function l({target:e}){e instanceof HTMLAnchorElement&&h(e)}async function h(e){y(e);const{href:t}=e;try{const n=await fetch(t).then(r=>r.text());i=i||new DOMParser;const o=i.parseFromString(n,"text/html"),a=Array.from(o.querySelectorAll('link[rel="stylesheet"]'));await Promise.all(a.map(r=>fetch(r.href)))}catch{}}function g({selector:e='a[href][rel~="prefetch"]',throttle:t=1}){const n=navigator.connection;if(typeof n<"u"){if(n.saveData)return Promise.reject(new Error("Cannot prefetch, Save-Data is enabled"));if(/2g/.test(n.effectiveType))return Promise.reject(new Error("Cannot prefetch, network conditions are poor"))}const[o,a]=d(t);c=c||new IntersectionObserver(r=>{r.forEach(s=>{s.isIntersecting&&s.target instanceof HTMLAnchorElement&&o(()=>h(s.target).finally(a))})}),w(()=>{const r=Array.from(document.querySelectorAll(e)).filter(p);for(const s of r)b(s)})}g({});
@@ -0,0 +1,8 @@
1
+ User-agent: *
2
+ Allow: /
3
+ Disallow: /app/
4
+ Disallow: /search$
5
+ Disallow: /search?
6
+ Disallow: /search.html$
7
+ Disallow: /search.html?
8
+ Disallow: /admin/
@@ -0,0 +1 @@
1
+ if(!self.define){let e,n={};const s=(s,i)=>(s=new URL(s+".js",i).href,n[s]||new Promise((n=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=n,document.head.appendChild(e)}else e=s,importScripts(s),n()})).then((()=>{let e=n[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(i,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(n[o])return;let c={};const a=e=>s(e,o),u={module:{uri:o},exports:c,require:a};n[o]=Promise.all(i.map((e=>u[e]||a(e)))).then((e=>(r(...e),c)))}}define(["./workbox-6f0d1f78"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"chunks/index.esm.84a649c7.js",revision:null},{url:"chunks/LoginForm.3bcb85fb.js",revision:null},{url:"chunks/LoginOffcanvas.e48f274b.js",revision:null},{url:"chunks/preload-helper.f15ab524.js",revision:null},{url:"chunks/runtime-dom.esm-bundler.738639ee.js",revision:null},{url:"chunks/workbox-window.prod.es5.4b654ae6.js",revision:null},{url:"client.b552d86a.js",revision:null},{url:"hoisted.054c36ac.js",revision:null},{url:"LoginOffcanvas.c2faa1dc.js",revision:null},{url:"page.3aa82516.js",revision:null},{url:"img/icon.png",revision:"791be7ee6538f26bb57bc31243a6e17e"},{url:"img/large-icon.png",revision:"0b35db516cfa7475b1c2f8c081e8d54d"},{url:"manifest.webmanifest",revision:"bed7dac4cf0dcea91307069b819ceec1"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/img\/uploads\/logo.webp$/,new e.StaleWhileRevalidate({cacheName:"logo",plugins:[]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));
@@ -0,0 +1 @@
1
+ define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.3"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.3"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class a{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let a=r&&r.handler;const o=t.method;if(!a&&this.i.has(o)&&(a=this.i.get(o)),!a)return;let c;try{c=a.handle({url:s,request:t,event:e,params:i})}catch(t){c=Promise.reject(t)}const h=r&&r.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const a=r.match({url:t,sameOrigin:e,request:s,event:n});if(a)return i=a,(Array.isArray(i)&&0===i.length||a.constructor===Object&&0===Object.keys(a).length||"boolean"==typeof a)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let o;const c=()=>(o||(o=new a,o.addFetchListener(),o.addCacheListener()),o);function h(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)a=new r(t,e,n);else if("function"==typeof t)a=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}return c().registerRoute(a),a}try{self["workbox:strategies:6.5.3"]&&_()}catch(t){}const u={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null},l={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},f=t=>[l.prefix,t,l.suffix].filter((t=>t&&t.length>0)).join("-"),w=t=>t||f(l.precache),d=t=>t||f(l.runtime);function p(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class y{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const m=new Set;function g(t){return"string"==typeof t?new Request(t):t}class R{constructor(t,e){this.h={},Object.assign(this,e),this.event=e.event,this.u=t,this.l=new y,this.p=[],this.m=[...t.plugins],this.g=new Map;for(const t of this.m)this.g.set(t,{});this.event.waitUntil(this.l.promise)}async fetch(t){const{event:e}=this;let n=g(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.u.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=g(t);let s;const{cacheName:n,matchOptions:i}=this.u,r=await this.getCacheKey(e,"read"),a=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,a);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=g(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(a=r.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const o=await this.R(e);if(!o)return!1;const{cacheName:c,matchOptions:h}=this.u,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=p(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await t.keys(e,r);for(const e of a)if(i===p(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?o.clone():o)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of m)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:o.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.h[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=g(await t({mode:e,request:n,event:this.event,params:this.params}));this.h[s]=n}return this.h[s]}hasCallback(t){for(const e of this.u.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.u.plugins)if("function"==typeof e[t]){const s=this.g.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.p.push(t),t}async doneWaiting(){let t;for(;t=this.p.shift();)await t}destroy(){this.l.resolve(null)}async R(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class v{constructor(t={}){this.cacheName=d(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new R(this,{event:e,request:s,params:n}),r=this.v(i,s,e);return[r,this.q(r,i,s,e)]}async v(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.D(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async q(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}function b(t){t.then((()=>{}))}function q(){return q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},q.apply(this,arguments)}let D,U;const x=new WeakMap,I=new WeakMap,L=new WeakMap,E=new WeakMap,C=new WeakMap;let N={get(t,e,s){if(t instanceof IDBTransaction){if("done"===e)return I.get(t);if("objectStoreNames"===e)return t.objectStoreNames||L.get(t);if("store"===e)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return B(t[e])},set:(t,e,s)=>(t[e]=s,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function O(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(U||(U=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(T(this),e),B(x.get(this))}:function(...e){return B(t.apply(T(this),e))}:function(e,...s){const n=t.call(T(this),e,...s);return L.set(n,e.sort?e.sort():[e]),B(n)}}function k(t){return"function"==typeof t?O(t):(t instanceof IDBTransaction&&function(t){if(I.has(t))return;const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",r),t.removeEventListener("abort",r)},i=()=>{e(),n()},r=()=>{s(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",r),t.addEventListener("abort",r)}));I.set(t,e)}(t),e=t,(D||(D=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((t=>e instanceof t))?new Proxy(t,N):t);var e}function B(t){if(t instanceof IDBRequest)return function(t){const e=new Promise(((e,s)=>{const n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",r)},i=()=>{e(B(t.result)),n()},r=()=>{s(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",r)}));return e.then((e=>{e instanceof IDBCursor&&x.set(e,t)})).catch((()=>{})),C.set(e,t),e}(t);if(E.has(t))return E.get(t);const e=k(t);return e!==t&&(E.set(t,e),C.set(e,t)),e}const T=t=>C.get(t);const M=["get","getKey","getAll","getAllKeys","count"],P=["put","add","delete","clear"],W=new Map;function j(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(W.get(e))return W.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,i=P.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!M.includes(s))return;const r=async function(t,...e){const r=this.transaction(t,i?"readwrite":"readonly");let a=r.store;return n&&(a=a.index(e.shift())),(await Promise.all([a[s](...e),i&&r.done]))[0]};return W.set(e,r),r}N=(t=>q({},t,{get:(e,s,n)=>j(e,s)||t.get(e,s,n),has:(e,s)=>!!j(e,s)||t.has(e,s)}))(N);try{self["workbox:expiration:6.5.3"]&&_()}catch(t){}const S="cache-entries",K=t=>{const e=new URL(t,location.href);return e.hash="",e.href};class A{constructor(t){this.U=null,this._=t}I(t){const e=t.createObjectStore(S,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}L(t){this.I(t),this._&&function(t,{blocked:e}={}){const s=indexedDB.deleteDatabase(t);e&&s.addEventListener("blocked",(t=>e(t.oldVersion,t))),B(s).then((()=>{}))}(this._)}async setTimestamp(t,e){const s={url:t=K(t),timestamp:e,cacheName:this._,id:this.C(t)},n=(await this.getDb()).transaction(S,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(t){const e=await this.getDb(),s=await e.get(S,this.C(t));return null==s?void 0:s.timestamp}async expireEntries(t,e){const s=await this.getDb();let n=await s.transaction(S).store.index("timestamp").openCursor(null,"prev");const i=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._&&(t&&s.timestamp<t||e&&r>=e?i.push(n.value):r++),n=await n.continue()}const a=[];for(const t of i)await s.delete(S,t.id),a.push(t.url);return a}C(t){return this._+"|"+K(t)}async getDb(){return this.U||(this.U=await function(t,e,{blocked:s,upgrade:n,blocking:i,terminated:r}={}){const a=indexedDB.open(t,e),o=B(a);return n&&a.addEventListener("upgradeneeded",(t=>{n(B(a.result),t.oldVersion,t.newVersion,B(a.transaction),t)})),s&&a.addEventListener("blocked",(t=>s(t.oldVersion,t.newVersion,t))),o.then((t=>{r&&t.addEventListener("close",(()=>r())),i&&t.addEventListener("versionchange",(t=>i(t.oldVersion,t.newVersion,t)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this.L.bind(this)})),this.U}}class F{constructor(t,e={}){this.N=!1,this.O=!1,this.k=e.maxEntries,this.B=e.maxAgeSeconds,this.T=e.matchOptions,this._=t,this.M=new A(t)}async expireEntries(){if(this.N)return void(this.O=!0);this.N=!0;const t=this.B?Date.now()-1e3*this.B:0,e=await this.M.expireEntries(t,this.k),s=await self.caches.open(this._);for(const t of e)await s.delete(t,this.T);this.N=!1,this.O&&(this.O=!1,b(this.expireEntries()))}async updateTimestamp(t){await this.M.setTimestamp(t,Date.now())}async isURLExpired(t){if(this.B){const e=await this.M.getTimestamp(t),s=Date.now()-1e3*this.B;return void 0===e||e<s}return!1}async delete(){this.O=!1,await this.M.expireEntries(1/0)}}function H(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.3"]&&_()}catch(t){}function $(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class G{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class V{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.P.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.P=t}}let J,Q;async function z(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},a=e?e(r):r,o=function(){if(void 0===J){const t=new Response("");if("body"in t)try{new Response(t.body),J=!0}catch(t){J=!1}J=!1}return J}()?i.body:await i.blob();return new Response(o,a)}class X extends v{constructor(t={}){t.cacheName=w(t.cacheName),super(t),this.W=!1!==t.fallbackToNetwork,this.plugins.push(X.copyRedirectedCacheableResponsesPlugin)}async D(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.j(t,e):await this.S(t,e))}async S(t,e){let n;const i=e.params||{};if(!this.W)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,a=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&a&&"no-cors"!==t.mode&&(this.K(),await e.cachePut(t,n.clone()))}return n}async j(t,e){this.K();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}K(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==X.copyRedirectedCacheableResponsesPlugin&&(n===X.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(X.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}X.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},X.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await z(t):t};class Y{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.A=new Map,this.F=new Map,this.H=new Map,this.u=new X({cacheName:w(t),plugins:[...e,new V({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.u}precache(t){this.addToCacheList(t),this.$||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.$=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=$(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.A.has(i)&&this.A.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.A.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.H.has(t)&&this.H.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.H.set(t,n.integrity)}if(this.A.set(i,t),this.F.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return H(t,(async()=>{const e=new G;this.strategy.plugins.push(e);for(const[e,s]of this.A){const n=this.H.get(s),i=this.F.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return H(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.A.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.A}getCachedURLs(){return[...this.A.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.A.get(e.href)}getIntegrityForCacheKey(t){return this.H.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const Z=()=>(Q||(Q=new Y),Q);class tt extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const a=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield a.href,s&&a.pathname.endsWith("/")){const t=new URL(a.href);t.pathname+=s,yield t.href}if(n){const t=new URL(a.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.CacheFirst=class extends v{async D(t,e){let n,i=await e.cacheMatch(t);if(!i)try{i=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!i)throw new s("no-response",{url:t.url,error:n});return i}},t.ExpirationPlugin=class{constructor(t={}){this.cachedResponseWillBeUsed=async({event:t,request:e,cacheName:s,cachedResponse:n})=>{if(!n)return null;const i=this.G(n),r=this.V(s);b(r.expireEntries());const a=r.updateTimestamp(e.url);if(t)try{t.waitUntil(a)}catch(t){}return i?n:null},this.cacheDidUpdate=async({cacheName:t,request:e})=>{const s=this.V(t);await s.updateTimestamp(e.url),await s.expireEntries()},this.J=t,this.B=t.maxAgeSeconds,this.X=new Map,t.purgeOnQuotaError&&function(t){m.add(t)}((()=>this.deleteCacheAndMetadata()))}V(t){if(t===d())throw new s("expire-custom-caches-only");let e=this.X.get(t);return e||(e=new F(t,this.J),this.X.set(t,e)),e}G(t){if(!this.B)return!0;const e=this.Y(t);if(null===e)return!0;return e>=Date.now()-1e3*this.B}Y(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date"),s=new Date(e).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[t,e]of this.X)await self.caches.delete(t),await e.delete();this.X=new Map}},t.NetworkFirst=class extends v{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u),this.Z=t.networkTimeoutSeconds||0}async D(t,e){const n=[],i=[];let r;if(this.Z){const{id:s,promise:a}=this.tt({request:t,logs:n,handler:e});r=s,i.push(a)}const a=this.et({timeoutId:r,request:t,logs:n,handler:e});i.push(a);const o=await e.waitUntil((async()=>await e.waitUntil(Promise.race(i))||await a)());if(!o)throw new s("no-response",{url:t.url});return o}tt({request:t,logs:e,handler:s}){let n;return{promise:new Promise((e=>{n=setTimeout((async()=>{e(await s.cacheMatch(t))}),1e3*this.Z)})),id:n}}async et({timeoutId:t,request:e,logs:s,handler:n}){let i,r;try{r=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(i=t)}return t&&clearTimeout(t),!i&&r||(r=await n.cacheMatch(e)),r}},t.StaleWhileRevalidate=class extends v{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u)}async D(t,e){const n=e.fetchAndCachePut(t).catch((()=>{}));e.waitUntil(n);let i,r=await e.cacheMatch(t);if(r);else try{r=await n}catch(t){t instanceof Error&&(i=t)}if(!r)throw new s("no-response",{url:t.url,error:i});return r}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=w();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.precacheAndRoute=function(t,e){!function(t){Z().precache(t)}(t),function(t){const e=Z();h(new tt(e,t))}(e)},t.registerRoute=h}));
@@ -0,0 +1,2 @@
1
+ /* Partytown 0.4.5 - MIT builder.io */
2
+ (e=>{const t=()=>{},r=e=>e.length,n=e=>{try{return e.constructor.name}catch(e){}return""},i=(e,t)=>e.startsWith(t),s=e=>!(i(e,"webkit")||i(e,"toJSON")||i(e,"constructor")||i(e,"toString")||i(e,"_")),o=()=>Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36),a={Anchor:"a",DList:"dl",Image:"img",OList:"ol",Paragraph:"p",Quote:"q",TableCaption:"caption",TableCell:"td",TableCol:"colgroup",TableRow:"tr",TableSection:"tbody",UList:"ul"},l={Graphics:"g",SVG:"svg"},c=Symbol(),u=Symbol(),h=new Map,p=new Map,d={},m=new WeakMap,g=(e,t)=>{if(e)return(t=m.get(e))||(t=e[c])||y(e,t=o()),t},f=(e,t,r,n,i)=>{if((r=d[e])&&r.T){if(e===t)return r.T;if(n=r.T.document,"d"===(i=t.split(".").pop()))return n;if("e"===i)return n.documentElement;if("h"===i)return n.head;if("b"===i)return n.body}return h.get(t)},y=(e,t,r)=>{e&&(h.set(t,e),e[c]=t,e[u]=r=Date.now(),r>w+5e3&&(h.forEach(((e,t)=>{e[u]<w&&e.nodeType&&!e.isConnected&&h.delete(t)})),w=r))};let w=0;const $=e.parent,S=document,b=$.partytown||{},v=(b.lib||"/~partytown/")+"",T=(e,t,r,s,o)=>void 0!==t&&(s=typeof t)?"string"===s||"number"===s||"boolean"===s||null==t?[0,t]:"function"===s?[6]:(r=r||new Set)&&Array.isArray(t)?r.has(t)?[1,[]]:r.add(t)&&[1,t.map((t=>T(e,t,r)))]:"object"===s?""===(o=n(t))?[2,{}]:"Window"===o?[3,[e,e]]:"HTMLCollection"===o||"NodeList"===o?[7,Array.from(t).map((t=>T(e,t,r)[1]))]:o.endsWith("Event")?[5,E(e,t,r)]:"CSSRuleList"===o?[12,Array.from(t).map(I)]:i(o,"CSS")&&o.endsWith("Rule")?[11,I(t)]:"CSSStyleDeclaration"===o?[13,E(e,t,r)]:"Attr"===o?[10,[t.name,t.value]]:t.nodeType?[3,[e,g(t),t.nodeName]]:[2,E(e,t,r,!0,!0)]:void 0:t,E=(e,t,r,n,i,o,a,l)=>{if(o={},!r.has(t))for(a in r.add(t),t)s(a)&&(l=t[a],(n||"function"!=typeof l)&&(i||""!==l)&&(o[a]=T(e,l,r)));return o},I=e=>{let t,r={};for(t in e)x.includes(t)&&(r[t]=String(e[t]));return r},M=(t,r,n,i)=>r?(n=r[0],i=r[1],0===n?i:4===n?N(t,i):1===n?i.map((e=>M(t,e))):3===n?f(i[0],i[1]):5===n?A(L(t,i)):2===n?L(t,i):8===n?i:9===n?new e[r[2]](i):void 0):void 0,N=(e,{U:t,w:r,K:n},i)=>((i=p.get(n))||(i=function(...i){e.postMessage([7,{U:t,w:r,K:n,Q:T(t,this),b:T(t,i)}])},p.set(n,i)),i),A=e=>new("detail"in e?CustomEvent:Event)(e.type,e),L=(e,t,r,n)=>{for(n in r={},t)r[n]=M(e,t[n]);return r},x="cssText,selectorText,href,media,namespaceURI,prefix,name,conditionText".split(","),C=async(e,t)=>{let n,i,s,o,a,l,c={E:t.E},u=r(t.P),h=0;for(;h<u;h++)try{l=h===u-1,n=t.P[h],i=n.U,s=n.a,!d[i]&&i.startsWith("f_")&&await new Promise((e=>{let t=0,r=()=>{d[i]||t++>1e3?e():requestAnimationFrame(r)};r()})),1===s[0]&&s[1]in d[i].T?y(new d[i].T[s[1]](...M(e,s[2])),n.w):(o=f(i,n.w),o?(a=R(e,o,s,l,n.r),n.d&&("string"==typeof n.d?y(a,n.d):d[n.d.U]={U:n.d.U,T:{document:a}}),"object"==typeof(p=a)&&p&&p.then&&(a=await a,c.z=!0),c.L=T(i,a)):c.p=n.w+" not found")}catch(e){l?c.p=String(e.stack||e):console.error(e)}var p;return c},R=(e,t,n,i,s)=>{let o,a,l,c,u,h=0,p=r(n);for(;h<p;h++){a=n[h],o=n[h+1],l=n[h-1];try{if(!Array.isArray(o))if("string"==typeof a||"number"==typeof a){if(h+1===p&&s)return u={},s.map((e=>u[e]=t[e])),u;t=t[a]}else{if(0===o)return void(t[l]=M(e,a));if("function"==typeof t[l]&&(c=M(e,a),"insertRule"===l&&c[1]>r(t.cssRules)&&(c[1]=r(t.cssRules)),t=t[l].apply(t,c),"play"===l))return Promise.resolve()}}catch(e){if(i)throw e;console.debug(e)}}return t},O=(e,t,r)=>{if(!m.has(r)){m.set(r,t);const n=r.document,i=r.history,s=m.get(r.parent),o=()=>e.postMessage([3,{U:t,I:s,R:n.baseURI,S:n.visibilityState}]),a=i.pushState.bind(i),l=i.replaceState.bind(i),c=()=>setTimeout((()=>e.postMessage([11,t,n.baseURI])));i.pushState=(e,t,r)=>{a(e,t,r),c()},i.replaceState=(e,t,r)=>{l(e,t,r),c()},r.addEventListener("popstate",c),r.addEventListener("hashchange",c),n.addEventListener("visibilitychange",(()=>e.postMessage([12,t,n.visibilityState]))),d[t]={U:t,T:r},"complete"===n.readyState?o():r.addEventListener("load",o)}},D=(e,t)=>{let n,i,s,o=t.U,a=t.T,l=a.document;l&&l.body?(n=l.querySelector('script[type="text/partytown"]:not([data-ptid]):not([data-pterror]):not([async]):not([defer])'),n||(n=l.querySelector('script[type="text/partytown"]:not([data-ptid]):not([data-pterror])')),n?(n.dataset.ptid=i=g(n,o),s={U:o,w:i},n.src?(s.R=n.src,s.G=n.dataset.ptsrc||n.src):s.j=n.innerHTML,e.postMessage([5,s])):(t.x||(t.x=1,((e,t,n)=>{let i,s,o=n._ptf,a=(n.partytown||{}).forward||[],l=(r,n)=>e.postMessage([8,{U:t,q:r,b:T(t,Array.from(n))}]);if(n._ptf=void 0,a.map((e=>{s=n,e.split(".").map(((e,t,n)=>{s=s[n[t]]=t+1<r(n)?s[n[t]]||("push"===n[t+1]?[]:{}):(...e)=>l(n,e)}))})),o)for(i=0;i<r(o);i+=2)l(o[i],o[i+1])})(e,o,a),l.dispatchEvent(new CustomEvent("pt0"))),e.postMessage([6,o]))):requestAnimationFrame((()=>D(e,t)))},H=(e,t,r)=>{let n=[],i=[e,"Object",n];for(r in t)P(n,t,r);return i},U=(e,t,r,i,s)=>{if("Object"!==t&&!e.some((e=>e[0]===t))){const o=Object.getPrototypeOf(r),a=n(o),l=[];U(e,a,o,i,s),Object.keys(Object.getOwnPropertyDescriptors(r)).map((e=>P(l,i,e))),e.push([t,a,l,s,i.nodeName])}},P=(e,t,r,i,o,a)=>{try{s(r)&&isNaN(r[0])&&"all"!==r&&("function"==(o=typeof(i=t[r]))?(String(i).includes("[native")||Object.getPrototypeOf(t)[r])&&e.push([r,5]):"object"===o&&null!=i?"Object"!==(a=n(i))&&self[a]&&e.push([r,i.nodeType||a]):"symbol"!==o&&(r.toUpperCase()===r?e.push([r,6,i]):e.push([r,6])))}catch(e){console.warn(e)}},_=e=>{let t,n=[],i=0,s=r($[e]);for(;i<s;i++)t=$[e].key(i),n.push([t,$[e].getItem(t)]);return n},F=(e,r)=>void 0!==e[r]?new e[r](t):0;let J;(async e=>{const t=new SharedArrayBuffer(1073741824),r=new Int32Array(t);return(i,s)=>{const c=s[0],u=s[1];if(0===c){const e=(()=>{const e=S.implementation.createHTMLDocument(),t=e.createElement("i"),r=e.createTextNode(""),i=e.createComment(""),s=e.createDocumentFragment(),o=F($,"IntersectionObserver"),c=F($,"MutationObserver"),u=F($,"ResizeObserver"),h=$.performance,p=$.screen,d=Object.getOwnPropertyNames($).map((t=>((e,t,r,n)=>{if(r=t.match(/^(HTML|SVG)(.+)Element$/))return n=r[2],"S"==t[0]?e.createElementNS("http://www.w3.org/2000/svg",l[n]||n.slice(0,2).toLowerCase()+n.slice(2)):e.createElement(a[n]||n)})(e,t))).filter((e=>e)).map((e=>[e])),m=[[$.history],[h],[h.navigation],[h.timing],[p],[p.orientation],[$.visualViewport],[o,12],[c,12],[u,12],[r],[i],[s],[t],[t.attributes],[t.classList],[t.dataset],[t.style],[e],[e.doctype],...d].filter((e=>e[0])).map((e=>{const t=e[0],r=e[1],i=n(t);return[i,$[i].prototype,t,r]})),g=[H("Window",$),H("Node",r)],f={i:JSON.stringify(b,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t))),B:new URL(v,$.location)+"",v:g,H:origin,C:_("localStorage"),N:_("sessionStorage")};return m.map((([e,t,r,n])=>U(g,e,t,r,n))),((e,t,r)=>{void 0!==t[r]&&e.push([r,"Object",Object.keys(t[r].prototype).map((e=>[e,6])),12])})(g,$,"IntersectionObserverEntry"),f})();e.O=t,i.postMessage([1,e])}else 9===c?e(u,(e=>{const t=JSON.stringify(e),n=t.length;for(let e=0;e<n;e++)r[e+1]=t.charCodeAt(e);r[0]=n,Atomics.notify(r,0)})):((e,t,r)=>{2===t[0]?O(e,o(),$):(r=d[t[1]])&&(5===t[0]?requestAnimationFrame((()=>D(e,r))):4===t[0]&&((e,t,r,n,i)=>{(i=t.T.document.querySelector(`[data-ptid="${r}"]`))&&(n?i.dataset.pterror=n:i.type+="-x",delete i.dataset.ptid),D(e,t)})(e,r,t[2],t[3]))})(i,s)}})(((e,t)=>C(J,e).then(t))).then((e=>{e&&(J=new Worker(URL.createObjectURL(new Blob(['/* Partytown 0.4.5 - MIT builder.io */\n(e=>{const t=Symbol(),r=Symbol(),n=Symbol(),i=Symbol(),s=Symbol(),o=Symbol(),a=Symbol(),l=Symbol(),$=new Map,c={},u=new WeakMap,d=[],h={},p=new Map,g=new Map,m={},f=new Map,w=new Map,y="about:blank",S=e=>e.split(","),v=e=>{if(e=h.B+e,new URL(e).origin!=location.origin)throw"Invalid "+e;return e},b=S("clientWidth,clientHeight,clientTop,clientLeft,innerWidth,innerHeight,offsetWidth,offsetHeight,offsetTop,offsetLeft,outerWidth,outerHeight,pageXOffset,pageYOffset,scrollWidth,scrollHeight,scrollTop,scrollLeft"),I=S("childElementCount,children,firstElementChild,lastElementChild,nextElementSibling,previousElementSibling"),M=S("insertBefore,remove,removeChild,replaceChild"),T=S("className,width,height,hidden,innerHTML,innerText,textContent"),E=S("setAttribute,setAttributeNS,setProperty"),N=S("addEventListener,dispatchEvent,removeEventListener"),L=N.concat(E,S("add,observe,remove,unobserve")),x=/^[A-Z]([A-Z0-9-]*[A-Z0-9])?$/,A=()=>{},C=e=>e.length,R=e=>{try{return e.constructor.name}catch(e){}return""},P=[],H=()=>Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36),W="text/partytown",O=(e,t,r)=>Object.defineProperty(e,t,{...r,configurable:!0}),D=(e,t)=>O(e,"name",{value:t}),k=(e,t,r)=>O(e.prototype,t,r),B=(e,t)=>Object.defineProperties(e.prototype,t),j=(e,t,r)=>k(e,t,{value:r,writable:!0}),U=(e,t)=>t in e[o],F=(e,t)=>e[o][t],_=(e,t,r)=>e[o][t]=r,V=(e,t,r)=>console.warn(`Partytown unable to ${e} cross-origin ${t}: `+r.D),z=[],G=(e,n,i,o,a,l)=>{if(z.push({U:e[t],w:e[r],a:[...e[s],...n],d:o,r:a}),3===i)h.J([10,{E:H(),P:[...z]}],l?[l instanceof ArrayBuffer?l:l.buffer]:void 0),z.length=0;else if(1===i)return X(!0);h.c=setTimeout(X,20)},X=e=>{if(clearTimeout(h.c),C(z)){const t=z[C(z)-1],r={E:H(),P:[...z]};if(z.length=0,e){const e=((e,t)=>{const r=e.O,n=new Int32Array(r);Atomics.store(n,0,0),e.J([9,t]),Atomics.wait(n,0,0);let i=Atomics.load(n,0),s="",o=0;for(;o<i;o++)s+=String.fromCharCode(n[o+1]);return JSON.parse(s)})(h,r),n=e.z,i=ce(t.U,t.w,t.a,e.L);if(e.p){if(n)return Promise.reject(e.p);throw new Error(e.p)}return n?Promise.resolve(i):i}h.J([10,r])}},q=(e,t,r,n)=>h.i.get&&(n=h.i.get(K(e,t)))!==a?n:n=G(e,t,1,void 0,r),Z=(e,t,r,n)=>{if(h.i.set){if((n=h.i.set({value:r,prevent:l,...K(e,t)}))===l)return;n!==a&&(r=n)}T.some((e=>t.includes(e)))&&(f.clear(),t[t.length-1]),t=[...t,$e(e,r),0],G(e,t,2)},J=(e,t,r,n,i,s,o,l)=>h.i.apply&&(o=h.i.apply({args:r,...K(e,t)}))!==a?o:(l=t[C(t)-1],t=[...t,$e(e,r)],n=n||(L.includes(l)?2:1),"setAttribute"===l&&U(e,r[0])?_(e,r[0],r[1]):M.includes(l)?(f.clear(),w.clear()):E.includes(l)&&(n=2,f.clear()),o=G(e,t,n,i,void 0,s)),Y=(e,t,r)=>{G(e,[1,t,$e(e,r)],1)},K=(e,t)=>({name:t.join("."),continue:a,nodeName:e[n],constructor:R(e)}),Q=(e,t,r,n,i)=>(!(i=$.get(t))&&r&&m[e]&&(i=m[e].k(r,t,n),$.set(t,i)),i),ee=(e,t)=>j(e,"nodeType",t),te=(e,t)=>t.map((t=>k(e,t,{get(){let e=re(this,t),r=w.get(e);return r||(r=q(this,[t]),w.set(e,r)),r}}))),re=(e,n,i)=>[e[t],e[r],n,...(i||P).map((e=>String(e&&e[t]?e[r]:e)))].join("."),ne=(e,t)=>S(t).map((t=>k(e,t,{get(){return U(this,t)||_(this,t,q(this,[t])),F(this,t)},set(e){F(this,t)!==e&&Z(this,[t],e),_(this,t,e)}}))),ie=e=>b.map((t=>k(e,t,{get(){const e=f.get(re(this,t));if("number"==typeof e)return e;const r=q(this,[t],b);return r&&"object"==typeof r?(Object.entries(r).map((([e,t])=>f.set(re(this,e),t))),r[t]):r}}))),se=(e,t)=>t.map((t=>{e.prototype[t]=function(...e){let r=re(this,t,e),n=f.get(r);return n||(n=J(this,[t],e),f.set(r,n)),n}})),oe=(e,n,i,s,o)=>{return void 0!==i&&(o=typeof i)?"string"===o||"boolean"===o||"number"===o||null==i?[0,i]:"function"===o?[4,{U:e,w:n,K:(a=i,(l=u.get(a))||(u.set(a,l=H()),c[l]=a),l)}]:(s=s||new Set)&&Array.isArray(i)?s.has(i)?[1,[]]:s.add(i)&&[1,i.map((t=>oe(e,n,t,s)))]:"object"===o?i[r]?[3,[i[t],i[r]]]:i instanceof Event?[5,le(e,n,i,!1,s)]:ae&&i instanceof TrustedHTML?[0,i.toString()]:i instanceof ArrayBuffer?[8,i]:ArrayBuffer.isView(i)?[9,i.buffer,R(i)]:[2,le(e,n,i,!0,s)]:void 0:i;var a,l},ae="undefined"!=typeof TrustedHTML,le=(e,t,r,n,i,s,o,a)=>{if(s={},!i.has(r))for(o in i.add(r),r)a=r[o],(n||"function"!=typeof a)&&(s[o]=oe(e,t,a,i));return s},$e=(e,n)=>e?oe(e[t],e[r],n):[0,n],ce=(e,t,r,n,i,s,o,a)=>{if(n){if(i=n[0],s=n[1],0===i||11===i||12===i)return s;if(4===i)return de(r,s);if(6===i)return A;if(3===i)return ue(s);if(7===i)return new he(s.map(ue));if(10===i)return new pe(s);if(1===i)return s.map((n=>ce(e,t,r,n)));for(a in o={},s)o[a]=ce(e,t,[...r,a],s[a]);if(13===i)return new m[e].T.CSSStyleDeclaration(e,t,r,o);if(5===i){if("message"===o.type&&o.origin){let e,t=JSON.stringify(o.data),r=d.find((e=>e.m===t));r&&(e=m[r.U],e&&(o.source=e.T,o.origin=e.D.origin))}return new Proxy(new Event(o.type,o),{get:(e,t)=>t in o?o[t]:"function"==typeof e[String(t)]?A:e[String(t)]})}if(2===i)return o}},ue=([e,t,r])=>t===e&&m[e]?m[e].T:Q(e,t,r),de=(e,{U:t,w:r,F:n,K:i})=>(c[i]||u.set(c[i]=function(...i){const s=Q(t,r,n);return J(s,e,i)},i),c[i]),he=class{constructor(e){(this._=e).map(((e,t)=>this[t]=e))}entries(){return this._.entries()}forEach(e,t){this._.map(e,t)}item(e){return this[e]}keys(){return this._.keys()}get length(){return C(this._)}values(){return this._.values()}[Symbol.iterator](){return this._[Symbol.iterator]()}},pe=class{constructor(e){this.name=e[0],this.value=e[1]}get nodeName(){return this.name}get nodeType(){return 2}},ge=(e,t,r,n,i)=>{let s,o,a=t=>((t=r.get(e.origin))||r.set(e.origin,t=[]),t),l=e=>a().findIndex((t=>t[me]===e)),$={getItem:e=>(s=l(e),s>-1?a()[s][fe]:null),setItem(r,o){s=l(r),s>-1?a()[s][fe]=o:a().push([r,o]),n?J(e,[t,"setItem"],[r,o],2):V("set",t,i)},removeItem(r){s=l(r),s>-1&&a().splice(s,1),n?J(e,[t,"removeItem"],[r],2):V("remove",t,i)},key:e=>(o=a()[e],o?o[me]:null),clear(){a().length=0,n?J(e,[t,"clear"],P,2):V("clear",t,i)},get length(){return a().length}};e[t]=$},me=0,fe=1,we=(e,t,r)=>{e[r]=D(class extends t{constructor(e,t,r,i){return super(e,t,r,i||{}),new Proxy(this,{get:(e,t)=>e[t]?e[t]:(e[t]||"string"!=typeof t||e[n][t]||(e[n][t]=q(e,[t])),e[n][t]),set:(e,t,r)=>(e[n][t]=r,Z(e,[t],r),f.clear(),!0)})}setProperty(...e){this[n][e[0]]=e[1],J(this,["setProperty"],e,2),e[0],f.clear()}getPropertyValue(e){return this[e]}removeProperty(e){let t=this[n][e];return J(this,["removeProperty"],[e],2),f.clear(),this[n][e]=void 0,t}},r)},ye=(e,t)=>{e[t]=D(class{constructor(e){this.ownerNode=e}get cssRules(){const e=this.ownerNode;return new Proxy({},{get(t,r){const n=String(r);return"item"===n?t=>ve(e,t):"length"===n?Se(e).length:isNaN(n)?t[r]:ve(e,n)}})}insertRule(e,t){const r=Se(this.ownerNode);return(t=void 0===t?0:t)>=0&&t<=r.length&&(J(this.ownerNode,["sheet","insertRule"],[e,t],2),r.splice(t,0,0)),this.ownerNode,f.clear(),t}deleteRule(e){J(this.ownerNode,["sheet","deleteRule"],[e],2),Se(this.ownerNode).splice(e,1),this.ownerNode,f.clear()}get type(){return"text/css"}},t);const r={sheet:{get(){return new e[t](this)}}};B(e.HTMLStyleElement,r)},Se=(e,t)=>((t=F(e,2))||(t=q(e,["sheet","cssRules"]),_(e,2,t)),t),ve=(e,t,r)=>(0===(r=Se(e))[t]&&(r[t]=q(e,["sheet","cssRules",parseInt(t,10)])),r[t]),be="0.4.5",Ie=(e,t,r,n,i)=>{try{e.l=t,Me(e,r)}catch(e){console.error(r,e),i=String(e.stack||e)}return e.l="",i},Me=(e,t,r)=>{e.M=1,t=`with(this){${(h.i.globalFns||[]).filter((e=>/[a-zA-Z_$][0-9a-zA-Z_$]*/.test(e))).map((e=>`(typeof ${e}==\'function\'&&(window.${e}=${e}))`)).join(";")+t.replace(/\\bthis\\b/g,"(thi$(this)?window:this)").replace(/\\/\\/# so/g,"//Xso")}\\n;function thi$(t){return t===this}}`+(r?"\\n//# sourceURL="+r:""),e.A||(t=t.replace(/.postMessage\\(/g,`.postMessage(\'${e.U}\',`)),new Function(t).call(e.T),e.M=0},Te=(e,t,r)=>{(r=F(e,t))&&setTimeout((()=>r.map((e=>e({type:t})))))},Ee=(e,t,r,n,i,s)=>{for(n=e.D;!n.host&&(n=(e=m[e.I]).D,e.U!==e.I););return i=new URL(t||"",n),!r&&h.i.resolveUrl&&(s=h.i.resolveUrl(i,n))?s:i},Ne=(e,t,r)=>Ee(e,t,r)+"",Le=()=>`<script src="${v("partytown.js?v="+be)}"><\\/script>`,xe=e=>class{constructor(){this.s="",this.l=[],this.e=[]}get src(){return this.s}set src(t){fetch(Ne(e,t,!0),{mode:"no-cors",keepalive:!0}).then((e=>{e.ok||0===e.status?this.l.map((e=>e({type:"load"}))):this.e.map((e=>e({type:"error"})))}),(()=>this.e.forEach((e=>e({type:"error"})))))}addEventListener(e,t){"load"===e&&this.l.push(t),"error"===e&&this.e.push(t)}get onload(){return this.l[0]}set onload(e){this.l=[e]}get onerror(){return this.e[0]}set onerror(e){this.e=[e]}},Ae={addEventListener:{value(...e){const t=e[0],r=F(this,t)||[];r.push(e[1]),_(this,t,r)}},async:{get:A,set:A},defer:{get:A,set:A},onload:{get(){let e=F(this,"load");return e&&e[0]||null},set(e){_(this,"load",e?[e]:null)}},onerror:{get(){let e=F(this,"error");return e&&e[0]||null},set(e){_(this,"error",e?[e]:null)}},getAttribute:{value(e){return"src"===e?this.src:J(this,["getAttribute"],[e])}},setAttribute:{value(e,t){Ce.includes(e)?this[e]=t:J(this,["setAttribute"],[e,t])}}},Ce=S("src,type"),Re=(e,t)=>{const r={innerHTML:Pe,innerText:Pe,src:{get(){return F(this,4)||""},set(e){const r=Ne(t,e,!0);e=Ne(t,e),_(this,4,e),Z(this,["src"],e),r!==e&&Z(this,["dataset","ptsrc"],r)}},textContent:Pe,type:{get(){return q(this,["type"])},set(e){He(e)||(_(this,5,e),Z(this,["type"],e))}},...Ae};B(e,r)},Pe={get(){return F(this,3)||""},set(e){_(this,3,e)}},He=e=>!e||"text/javascript"===e,We=(e,i,s)=>{const o=D(class extends s{appendChild(e){return this.insertBefore(e,null)}get href(){}set href(e){}insertBefore(e,s){const o=e[t]=this[t],a=e[r],l=e[n],$="SCRIPT"===l,c="IFRAME"===l;if($){const t=F(e,3),r=F(e,5);if(t){if(He(r)){const r=Ie(i,a,t,0,""),n=r?"pterror":"ptid",s=r||a;Z(e,["type"],W+"-x"),Z(e,["dataset",n],s)}Z(e,["innerHTML"],t)}}return J(this,["insertBefore"],[e,s],2),c&&((e,t)=>{let r,n,i=0,s=()=>{m[e]&&m[e].x&&!m[e].y?(r=F(t,1)?"error":"load",n=F(t,r),n&&n.map((e=>e({type:r})))):i++>2e3?(n=F(t,"error"),n&&n.map((e=>e({type:"error"})))):setTimeout(s,9)};s()})(a,e),$&&(X(!0),h.J([5,o])),e}get nodeName(){return this[n]}get nodeType(){return 3}get ownerDocument(){return i.n}},"Node");te(o,S("childNodes,firstChild,isConnected,lastChild,nextSibling,parentElement,parentNode,previousSibling")),e.Node=o},Oe=S("AUDIO,CANVAS,VIDEO"),De=S("Audio,MediaSource"),ke=(e,r,n)=>{B(e,{body:{get:()=>r.e},cookie:{get(){return r.A?q(this,["cookie"]):(V("get","cookie",r),"")},set(e){r.A&&Z(this,["cookie"],e)}},createElement:{value(e){if(e=e.toUpperCase(),!x.test(e))throw e+" not valid";const r="IFRAME"===e,n=this[t],i=(r?"f_":"")+H(),s=Q(n,i,e);if(J(this,["createElement"],[e],2,i),r)Xe({U:i,I:n,R:y},!0).T.fetch=fetch,Z(s,["srcdoc"],Le());else if("SCRIPT"===e){const e=F(s,5);He(e)&&Z(s,["type"],W)}return s}},createElementNS:{value(e,r){const n=H(),i=Q(this[t],n,r,e);return J(this,["createElementNS"],[e,r],2,n),i}},createTextNode:{value(e){const r=this[t],n=H(),i=Q(r,n,"#text");return J(this,["createTextNode"],[e],2,n),i}},createEvent:{value:e=>new Event(e)},currentScript:{get(){return r.l?Q(this[t],r.l,"SCRIPT"):null}},defaultView:{get:()=>n?null:r.T},documentElement:{get:()=>r.o},getElementsByTagName:{value(e){return"BODY"===(e=e.toUpperCase())?[r.e]:"HEAD"===e?[r.s]:J(this,["getElementsByTagName"],[e])}},head:{get:()=>r.s},implementation:{get(){return{hasFeature:()=>!0,createHTMLDocument:e=>{const t=H();return J(this,["implementation","createHTMLDocument"],[e],1,{U:t}),ze(t,t,r.D+"","hidden",!0,!0).n}}}},location:{get:()=>r.D,set(e){r.D.href=e+""}},nodeType:{value:9},parentNode:{value:null},parentElement:{value:null},readyState:{value:"complete"},visibilityState:{get:()=>r.S||"visible"}}),ne(e,"compatMode,referrer,forms")},Be=(e,t)=>{B(e,{parentElement:{get(){return this.parentNode}},parentNode:{get:()=>t.o}})},je=(e,t)=>{B(e,{localName:{get(){return this[n].toLowerCase()}},namespaceURI:{get(){return this[i]||"http://www.w3.org/1999/xhtml"}},nodeType:{value:1},tagName:{get(){return this[n]}}}),te(e,I),ne(e,"id"),ie(t),se(t,S("getClientRects,getBoundingClientRect"))},Ue=(e,t)=>{const r={};S("hash,host,hostname,href,origin,pathname,port,protocol,search").map((e=>{r[e]={get(){let r,n=F(this,4);return"string"!=typeof n&&(r=q(this,["href"]),_(this,4,r),n=new URL(r)[e]),Ee(t,n)[e]},set(r){let n=F(this,4),i=Ee(t,n);i[e]=new URL(r+"",i.href),_(this,4,i.href),Z(this,["href"],i.href)}}})),B(e,r)},Fe=(e,t)=>{const r={contentDocument:{get(){return _e(this).n}},contentWindow:{get(){return _e(this).T}},src:{get(){let e=_e(this).D.href;return e.startsWith("about:")?"":e},set(e){if(!e.startsWith("about:")){let t,r=new XMLHttpRequest,n=_e(this);n.D.href=e=Ne(n,e),n.y=1,_(this,1,void 0),r.open("GET",e,!1),r.send(),t=r.status,t>199&&t<300?(Z(this,["srcdoc"],`<base href="${e}">`+r.responseText.replace(/<script>/g,\'<script type="text/partytown">\').replace(/<script /g,\'<script type="text/partytown" \').replace(/text\\/javascript/g,W)+Le()),X(!0),h.J([5,n.U])):(_(this,1,t),n.y=0)}}},...Ae};B(e,r)},_e=e=>{const n=e[r];return m[n]||Xe({U:n,I:e[t],R:q(e,["src"])||y},!0),m[n]},Ve=e=>{const t=(e,t)=>{const{a:r,b:n,c:i,d:s,e:o,f:a}=J(e,[t],P);return new DOMMatrixReadOnly([r,n,i,s,o,a])},r={...e,getCTM:{value:function(){return t(this,"getCTM")}},getScreenCTM:{value:function(){return t(this,"getScreenCTM")}}};B(e,r)},ze=(a,l,$,c,u,f)=>{const w=class{constructor(e,a,l,$,c){this[t]=e,this[r]=a,this[s]=l||[],this[n]=$,this[o]={},c&&(this[i]=c)}},b=new(D(class extends URL{assign(){}reload(){}replace(){}},"Location"))($),M=b.origin===h.H||b.origin===y,T={},E=D(class extends w{constructor(){super(a,a);let n,i,o=this,$=0,d=()=>{$||((h.u||(e.g=[q,Z,J,Y,B,H,t,r,s],h.t(v("partytown-media.js?v="+be)),h.u=e.f,delete e.f),h.u)(w,x,T,o,De),$=1)},m={},y=(e,t,r)=>(Oe.includes(e)&&d(),new(m[e]?m[e]:e.includes("-")?m.UNKNOWN:m.DIV)(a,t,P,e,r));var N,A;o.Window=E,We(o,T,w),we(o,w,"CSSStyleDeclaration"),((e,t,r)=>{e[r]=D(class extends t{now(){return performance.now()}},r)})(o,w,"Performance"),h.v.map((([e,t,n,i,l])=>{const $=Ge[e]?L:"EventTarget"===t?x:"Object"===t?w:o[t],c=o[e]=D(12===i?class extends w{constructor(...t){super(a,H()),Y(this,e,t)}}:o[e]||class extends ${},e);l&&(m[l]=c),n.map((([e,t,n])=>{e in c.prototype||e in $.prototype||("string"==typeof t?k(c,e,{get(){if(!U(this,e)){const n=this[r],i=[...this[s],e],l=o[t];l&&_(this,e,new l(a,n,i))}return F(this,e)},set(t){_(this,e,t)}}):5===t?j(c,e,(function(...t){return J(this,[e],t)})):t>0&&(void 0!==n?j(c,e,n):k(c,e,{get(){return q(this,[e])},set(t){return Z(this,[e],t)}})))}))})),S("atob,btoa,crypto,indexedDB,setTimeout,setInterval,clearTimeout,clearInterval").map((t=>{delete E.prototype[t],t in o||(n=e[t],null!=n&&(o[t]="function"!=typeof n||n.toString().startsWith("class")?n:n.bind(e)))})),Object.getOwnPropertyNames(e).map((t=>{t in o||(o[t]=e[t])})),De.map((e=>O(o,e,{get:()=>(d(),o[e])}))),"trustedTypes"in e&&(o.trustedTypes=e.trustedTypes),je(o.Element,o.HTMLElement),ke(o.Document,T,f),N=o.DocumentFragment,ee(N,11),te(N,I),Ue(o.HTMLAnchorElement,T),A=o.HTMLFormElement,B(A,{}),ne(A,"elements"),Fe(o.HTMLIFrameElement),Re(o.HTMLScriptElement,T),Ve(o.SVGGraphicsElement),Be(o.HTMLHeadElement,T),Be(o.HTMLBodyElement,T),((e,t)=>{B(e,{parentElement:{value:null},parentNode:{get:()=>t.n}})})(o.HTMLHtmlElement,T),ye(o,"CSSStyleSheet"),ee(o.Comment,8),ee(o.DocumentType,10),Object.assign(T,{U:a,I:l,T:new Proxy(o,{has:()=>!0}),n:y("#document",a+".d"),o:y("HTML",a+".e"),s:y("HEAD",a+".h"),e:y("BODY",a+".b"),D:b,S:c,A:M,k:y}),o.requestAnimationFrame=e=>setTimeout((()=>e(performance.now())),9),o.cancelAnimationFrame=e=>clearTimeout(e),o.requestIdleCallback=(e,t)=>(t=Date.now(),setTimeout((()=>e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})),1)),o.cancelIdleCallback=e=>clearTimeout(e),ge(o,"localStorage",p,M,T),ge(o,"sessionStorage",g,M,T),M||(o.indexeddb=void 0),u&&(i={},o.history={pushState(e){i=e},replaceState(e){i=e},get state(){return i},length:0}),o.Worker=void 0}addEventListener(...e){"load"===e[0]?T.M&&setTimeout((()=>e[1]({type:"load"}))):J(this,["addEventListener"],e,2)}get body(){return T.e}get document(){return T.n}get documentElement(){return T.o}fetch(e,t){return e="string"==typeof e||e instanceof URL?String(e):e.url,fetch(Ne(T,e),t)}get frameElement(){return a===l?null:Q(l,a,"IFRAME")}get globalThis(){return this}get head(){return T.s}get location(){return b}set location(e){b.href=e+""}get Image(){return xe(T)}get name(){return name+a}get navigator(){return(e=>{let t,r={sendBeacon:(t,r)=>{try{return fetch(Ne(e,t,!0),{method:"POST",body:r,mode:"no-cors",keepalive:!0}),!0}catch(e){return console.error(e),!1}}};for(t in navigator)r[t]=navigator[t];return r})(T)}get origin(){return b.origin}set origin(e){}get parent(){for(let e in m)if(m[e].U===l)return m[e].T;return this}postMessage(...e){m[e[0]]&&(C(d)>50&&d.splice(0,5),d.push({U:e[0],m:JSON.stringify(e[1])}),e=e.slice(1)),J(this,["postMessage"],e,3)}get self(){return this}get top(){for(let e in m)if(m[e].U===m[e].I)return m[e].T;return this}get window(){return this}get XMLHttpRequest(){const e=XMLHttpRequest,t=String(e),r=D(class extends e{open(...e){e[1]=Ne(T,e[1]),super.open(...e)}set withCredentials(e){}toString(){return t}},R(e));return r.prototype.constructor.toString=()=>t,r}},"Window"),L=class extends w{constructor(e,t,r,n){return super(e,t,r,n),new Proxy(this,{get:(e,t)=>q(e,[t]),set:(e,t,r)=>(Z(e,[t],r),!0)})}},x=class extends w{};return N.map((e=>x.prototype[e]=function(...t){return J(this,[e],t,2)})),ne(E,"devicePixelRatio"),ie(E),se(E,["getComputedStyle"]),new E,T},Ge={DOMStringMap:1,NamedNodeMap:1},Xe=({U:e,I:t,R:r,S:n},i)=>(m[e]||(m[e]=ze(e,t,r,n,i)),h.J([5,e]),m[e]),qe=[],Ze=t=>{const r=t.data,n=r[0],i=r[1];h.x?5===n?(async e=>{let t,r=e.U,n=e.w,i=Q(r,n,"SCRIPT"),s=e.j,o=e.R,a=e.G,l="",$=m[r];if(o)try{o=Ee($,o)+"",_(i,4,o),t=await fetch(o),t.ok?(s=await t.text(),$.l=n,Me($,s,a||o),Te(i,"load")):(l=t.statusText,Te(i,"error"))}catch(e){console.error(e),l=String(e.stack||e),Te(i,"error")}else s&&(l=Ie($,n,s,0,l));$.l="",h.J([4,r,n,l])})(i):7===n?(({U:e,w:t,K:r,Q:n,b:i})=>{if(c[r])try{c[r].apply(ce(e,t,[],n),ce(e,t,[],i))}catch(e){console.error(e)}})(i):8===n?(({U:e,q:t,b:r})=>{try{let n=m[e].T,i=0,s=C(t);for(;i<s;i++)i+1<s?n=n[t[i]]:n[t[i]].apply(n,ce(null,e,[],r))}catch(e){console.error(e)}})(i):3===n?Xe(i):6===n?(m[i].x=1,m[i].y=0):12===n?m[i].S=r[2]:11===n&&(m[i].D.href=r[2]):1===n?((t=>{const r=h.i=JSON.parse(t.i),n=t.H;h.t=importScripts.bind(e),h.v=t.v,h.B=t.B,h.H=n,h.J=postMessage.bind(e),h.O=t.O,p.set(n,t.C),g.set(n,t.N),e.importScripts=void 0,delete e.postMessage,delete e.WorkerGlobalScope,S("resolveUrl,get,set,apply").map((e=>{r[e]&&(r[e]=new Function("return "+r[e])())})),h.x=1})(i),h.J([2]),[...qe].map(Ze),qe.length=0):qe.push(t)};e.onmessage=Ze,postMessage([0])})(self);\n'],{type:"text/javascript"})),{name:"Partytown 🎉"}),J.onmessage=t=>{const r=t.data;10===r[0]?C(J,r[1]):e(J,r)},$.addEventListener("pt1",(e=>O(J,g(e.detail.frameElement),e.detail))))}))})(window);
@@ -0,0 +1,2 @@
1
+ /* Partytown 0.4.5 - MIT builder.io */
2
+ (e=>{const[t,s,n,r,i,a,o,d,u]=e.g;delete e.g;const c=Symbol(),h=Symbol(),f=Symbol(),p=Symbol(),g=Symbol(),l=Symbol(),m=[],v=(e,t,s)=>e[t]=S(t,s),S=(e,t)=>Object.defineProperty(t,"name",{value:e}),b=(e,t)=>{const r={getContext:{value(e,t){return this[c]||(this[c]=(e.includes("webgl")?g:p)(this,e,t)),this[c]}}},h=v(t,"CanvasGradient",class extends e{addColorStop(...e){n(this,["addColorStop"],e,2)}}),f=v(t,"CanvasPattern",class extends e{setTransform(...e){n(this,["setTransform"],e,2)}}),p=(e,t,r)=>{const i=e[o],c=a(),f={[o]:i,[d]:c,[u]:[]},p=n(e,["getContext"],[t,r],1,c),g="getContextAttributes,getImageData,getLineDash,getTransform,isPointInPath,isPointInStroke,measureText".split(","),l={get:(e,t)=>"string"==typeof t&&t in p?"function"==typeof p[t]?(...e)=>{if(t.startsWith("create")){const r=a();return n(f,[t],e,2,r),"createImageData"===t||"createPattern"===t?(s=`${t}()`,console.warn(`${s} not implemented`),{setTransform:()=>{}}):new h(i,r)}var s;const r=g.includes(t)?1:2;return n(f,[t],e,r)}:p[t]:e[t],set:(e,t,n)=>("string"==typeof t&&t in p?(p[t]!==n&&"function"!=typeof n&&s(f,[t],n),p[t]=n):e[t]=n,!0)};return new Proxy(p,l)},g=(e,t,r)=>{const i=e[o],c=a(),h={[o]:i,[d]:c,[u]:[]},f=n(e,["getContext"],[t,r],1,c),p={get:(e,t)=>"string"==typeof t?"function"!=typeof f[t]?f[t]:(...e)=>n(h,[t],e,m(t)):e[t],set:(e,t,n)=>("string"==typeof t&&t in f?(f[t]!==n&&"function"!=typeof n&&s(h,[t],n),f[t]=n):e[t]=n,!0)};return new Proxy(f,p)},l="checkFramebufferStatus,makeXRCompatible".split(","),m=e=>e.startsWith("create")||e.startsWith("get")||e.startsWith("is")||l.includes(e)?1:2;v(t,"CanvasGradient",h),v(t,"CanvasPattern",f),i(t.HTMLCanvasElement,r)},y=(e,u,c,b)=>{var y,T;b.Audio=S("HTMLAudioElement",class{constructor(e){const t=c.k("audio",a());return t.src=e,t}});const w=class extends e{get enabled(){return t(this,["enabled"])}set enabled(e){s(this,["enabled"],e)}get id(){return t(this,["id"])}get kind(){return t(this,["kind"])}get label(){return t(this,["label"])}get language(){return t(this,["language"])}get sourceBuffer(){return new x(this)}},E=class{constructor(e){const s="audioTracks",r=e[o],i=e[d];return new Proxy({addEventListener(...t){n(e,[s,"addEventListener"],t,3)},getTrackById:(...t)=>n(e,[s,"getTrackById"],t),get length(){return t(e,[s,"length"])},removeEventListener(...t){n(e,[s,"removeEventListener"],t,3)}},{get:(e,t)=>"number"==typeof t?new w(r,i,[s,t]):e[t]})}},k=v(b,"SourceBufferList",class extends Array{constructor(e){super(),this[h]=e}addEventListener(...e){n(this[h],["sourceBuffers","addEventListener"],e,3)}removeEventListener(...e){n(this[h],["sourceBuffers","removeEventListener"],e,3)}}),x=v(b,"SourceBuffer",(T=class extends u{constructor(e){super(e[o],e[d],["sourceBuffers"]),this[y]=[],this[h]=e}abort(){const e=R(this);n(this,[e,"appendWindowStart"],m,1)}addEventListener(...e){const t=R(this);n(this,[t,"addEventListener"],e,3)}appendBuffer(e){this[g].push(["appendBuffer",[e],e]),M(this)}get appendWindowStart(){const e=R(this);return t(this,[e,"appendWindowStart"])}set appendWindowStart(e){const t=R(this);s(this,[t,"appendWindowStart"],e)}get appendWindowEnd(){const e=R(this);return t(this,[e,"appendWindowEnd"])}set appendWindowEnd(e){const t=R(this);s(this,[t,"appendWindowEnd"],e)}get buffered(){const e=this[h],t=R(this);return new B(e[o],e[d],["sourceBuffers",t,"buffered"])}changeType(e){const t=R(this);n(this,[t,"changeType"],[e],2)}get mode(){const e=R(this);return t(this,[e,"mode"])}set mode(e){const t=R(this);s(this,[t,"mode"],e)}remove(e,t){this[g].push(["remove",[e,t]]),M(this)}removeEventListener(...e){const t=R(this);n(this,[t,"removeEventListener"],e,3)}get timestampOffset(){const e=R(this);return t(this,[e,"timestampOffset"])}set timestampOffset(e){const t=R(this);s(this,[t,"timestampOffset"],e)}get updating(){const e=R(this);return t(this,[e,"updating"])}},y=g,T)),B=v(b,"TimeRanges",class extends e{start(...e){return n(this,["start"],e)}end(...e){return n(this,["end"],e)}get length(){return t(this,["length"])}}),R=e=>e?e[h][p].indexOf(e):-1,M=e=>{if(e[g].length){if(!e.updating){const t=e[g].shift();if(t){const s=R(e);n(e,[s,t[0]],t[1],3,void 0,t[2])}}setTimeout((()=>M(e)),50)}},W={buffered:{get(){return this[l]||(this[l]=new B(this[o],this[d],["buffered"]),setTimeout((()=>{this[l]=void 0}),5e3)),this[l]}},readyState:{get(){return 4===this[f]?4:("number"!=typeof this[f]&&(this[f]=t(this,["readyState"]),setTimeout((()=>{this[f]=void 0}),1e3)),this[f])}}};v(b,"MediaSource",class extends u{constructor(){super(c.U,a()),this[p]=new k(this),r(this,"MediaSource",m)}get activeSourceBuffers(){return[]}addSourceBuffer(e){const t=new x(this);return this[p].push(t),n(this,["addSourceBuffer"],[e]),t}clearLiveSeekableRange(){n(this,["clearLiveSeekableRange"],m,2)}get duration(){return t(this,["duration"])}set duration(e){s(this,["duration"],e)}endOfStream(e){n(this,["endOfStream"],[e],3)}get readyState(){return t(this,["readyState"])}removeSourceBuffer(e){const t=R(e);t>-1&&(this[p].splice(t,1),n(this,["removeSourceBuffer"],[t],1))}setLiveSeekableRange(e,t){n(this,["setLiveSeekableRange"],[e,t],2)}get sourceBuffers(){return this[p]}static isTypeSupported(e){if(!L.has(e)){const t=n(b,["MediaSource","isTypeSupported"],[e]);L.set(e,t)}return L.get(e)}});const C=b.URL=S("URL",class extends URL{});"audioTracks"in b.HTMLMediaElement.prototype&&(v(b,"AudioTrackList",E),v(b,"AudioTrack",w),W.audioTracks={get(){return new E(this)}}),i(b.HTMLMediaElement,W),C.createObjectURL=e=>n(b,["URL","createObjectURL"],[e]),C.revokeObjectURL=e=>n(b,["URL","revokeObjectURL"],[e])},L=new Map;e.f=(e,t,s,n,r)=>{r.map((e=>{delete n[e]})),b(e,n),y(e,t,s,n)}})(self);
@@ -0,0 +1,2 @@
1
+ /* Partytown 0.4.5 - MIT builder.io */
2
+ const e=new Map,t=(e,t)=>({E:e.E,p:t}),r=(e,t)=>new Response(e,{headers:{"content-type":t||"text/html","Cache-Control":"no-store"}});self.oninstall=()=>self.skipWaiting(),self.onactivate=()=>self.clients.claim(),self.onmessage=t=>{const r=t.data,n=e.get(r.E);n&&(e.delete(r.E),clearTimeout(n[1]),n[0](r))},self.onfetch=n=>{const i=n.request,s=new URL(i.url).pathname;s.endsWith("sw.html")?n.respondWith(r('<!DOCTYPE html><html><head><meta charset="utf-8"><script type="module">/* Partytown 0.4.5 - MIT builder.io */\n(e=>{const t=()=>{},r=e=>e.length,n=e=>{try{return e.constructor.name}catch(e){}return""},i=(e,t)=>e.startsWith(t),s=e=>!(i(e,"webkit")||i(e,"toJSON")||i(e,"constructor")||i(e,"toString")||i(e,"_")),o=()=>Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36),a={Anchor:"a",DList:"dl",Image:"img",OList:"ol",Paragraph:"p",Quote:"q",TableCaption:"caption",TableCell:"td",TableCol:"colgroup",TableRow:"tr",TableSection:"tbody",UList:"ul"},l={Graphics:"g",SVG:"svg"},c=Symbol(),u=Symbol(),p=new Map,h=new Map,d={},m=new WeakMap,g=(e,t)=>{if(e)return(t=m.get(e))||(t=e[c])||y(e,t=o()),t},f=(e,t,r,n,i)=>{if((r=d[e])&&r.T){if(e===t)return r.T;if(n=r.T.document,"d"===(i=t.split(".").pop()))return n;if("e"===i)return n.documentElement;if("h"===i)return n.head;if("b"===i)return n.body}return p.get(t)},y=(e,t,r)=>{e&&(p.set(t,e),e[c]=t,e[u]=r=Date.now(),r>w+5e3&&(p.forEach(((e,t)=>{e[u]<w&&e.nodeType&&!e.isConnected&&p.delete(t)})),w=r))};let w=0;const $=e.parent,S=document,v=$.partytown||{},b=(v.lib||"/~partytown/")+"",T=(e,t,r,s,o)=>void 0!==t&&(s=typeof t)?"string"===s||"number"===s||"boolean"===s||null==t?[0,t]:"function"===s?[6]:(r=r||new Set)&&Array.isArray(t)?r.has(t)?[1,[]]:r.add(t)&&[1,t.map((t=>T(e,t,r)))]:"object"===s?""===(o=n(t))?[2,{}]:"Window"===o?[3,[e,e]]:"HTMLCollection"===o||"NodeList"===o?[7,Array.from(t).map((t=>T(e,t,r)[1]))]:o.endsWith("Event")?[5,M(e,t,r)]:"CSSRuleList"===o?[12,Array.from(t).map(E)]:i(o,"CSS")&&o.endsWith("Rule")?[11,E(t)]:"CSSStyleDeclaration"===o?[13,M(e,t,r)]:"Attr"===o?[10,[t.name,t.value]]:t.nodeType?[3,[e,g(t),t.nodeName]]:[2,M(e,t,r,!0,!0)]:void 0:t,M=(e,t,r,n,i,o,a,l)=>{if(o={},!r.has(t))for(a in r.add(t),t)s(a)&&(l=t[a],(n||"function"!=typeof l)&&(i||""!==l)&&(o[a]=T(e,l,r)));return o},E=e=>{let t,r={};for(t in e)C.includes(t)&&(r[t]=String(e[t]));return r},I=(t,r,n,i)=>r?(n=r[0],i=r[1],0===n?i:4===n?N(t,i):1===n?i.map((e=>I(t,e))):3===n?f(i[0],i[1]):5===n?L(x(t,i)):2===n?x(t,i):8===n?i:9===n?new e[r[2]](i):void 0):void 0,N=(e,{U:t,w:r,K:n},i)=>((i=h.get(n))||(i=function(...i){e.postMessage([7,{U:t,w:r,K:n,Q:T(t,this),b:T(t,i)}])},h.set(n,i)),i),L=e=>new("detail"in e?CustomEvent:Event)(e.type,e),x=(e,t,r,n)=>{for(n in r={},t)r[n]=I(e,t[n]);return r},C="cssText,selectorText,href,media,namespaceURI,prefix,name,conditionText".split(","),R=async(e,t)=>{let n,i,s,o,a,l,c={E:t.E},u=r(t.P),p=0;for(;p<u;p++)try{l=p===u-1,n=t.P[p],i=n.U,s=n.a,!d[i]&&i.startsWith("f_")&&await new Promise((e=>{let t=0,r=()=>{d[i]||t++>1e3?e():requestAnimationFrame(r)};r()})),1===s[0]&&s[1]in d[i].T?y(new d[i].T[s[1]](...I(e,s[2])),n.w):(o=f(i,n.w),o?(a=A(e,o,s,l,n.r),n.d&&("string"==typeof n.d?y(a,n.d):d[n.d.U]={U:n.d.U,T:{document:a}}),"object"==typeof(h=a)&&h&&h.then&&(a=await a,c.z=!0),c.L=T(i,a)):c.p=n.w+" not found")}catch(e){l?c.p=String(e.stack||e):console.error(e)}var h;return c},A=(e,t,n,i,s)=>{let o,a,l,c,u,p=0,h=r(n);for(;p<h;p++){a=n[p],o=n[p+1],l=n[p-1];try{if(!Array.isArray(o))if("string"==typeof a||"number"==typeof a){if(p+1===h&&s)return u={},s.map((e=>u[e]=t[e])),u;t=t[a]}else{if(0===o)return void(t[l]=I(e,a));if("function"==typeof t[l]&&(c=I(e,a),"insertRule"===l&&c[1]>r(t.cssRules)&&(c[1]=r(t.cssRules)),t=t[l].apply(t,c),"play"===l))return Promise.resolve()}}catch(e){if(i)throw e;console.debug(e)}}return t},O=(e,t,r)=>{if(!m.has(r)){m.set(r,t);const n=r.document,i=r.history,s=m.get(r.parent),o=()=>e.postMessage([3,{U:t,I:s,R:n.baseURI,S:n.visibilityState}]),a=i.pushState.bind(i),l=i.replaceState.bind(i),c=()=>setTimeout((()=>e.postMessage([11,t,n.baseURI])));i.pushState=(e,t,r)=>{a(e,t,r),c()},i.replaceState=(e,t,r)=>{l(e,t,r),c()},r.addEventListener("popstate",c),r.addEventListener("hashchange",c),n.addEventListener("visibilitychange",(()=>e.postMessage([12,t,n.visibilityState]))),d[t]={U:t,T:r},"complete"===n.readyState?o():r.addEventListener("load",o)}},H=(e,t)=>{let n,i,s,o=t.U,a=t.T,l=a.document;l&&l.body?(n=l.querySelector(\'script[type="text/partytown"]:not([data-ptid]):not([data-pterror]):not([async]):not([defer])\'),n||(n=l.querySelector(\'script[type="text/partytown"]:not([data-ptid]):not([data-pterror])\')),n?(n.dataset.ptid=i=g(n,o),s={U:o,w:i},n.src?(s.R=n.src,s.G=n.dataset.ptsrc||n.src):s.j=n.innerHTML,e.postMessage([5,s])):(t.x||(t.x=1,((e,t,n)=>{let i,s,o=n._ptf,a=(n.partytown||{}).forward||[],l=(r,n)=>e.postMessage([8,{U:t,q:r,b:T(t,Array.from(n))}]);if(n._ptf=void 0,a.map((e=>{s=n,e.split(".").map(((e,t,n)=>{s=s[n[t]]=t+1<r(n)?s[n[t]]||("push"===n[t+1]?[]:{}):(...e)=>l(n,e)}))})),o)for(i=0;i<r(o);i+=2)l(o[i],o[i+1])})(e,o,a),l.dispatchEvent(new CustomEvent("pt0"))),e.postMessage([6,o]))):requestAnimationFrame((()=>H(e,t)))},D=()=>{const e=S.implementation.createHTMLDocument(),t=e.createElement("i"),r=e.createTextNode(""),i=e.createComment(""),s=e.createDocumentFragment(),o=F($,"IntersectionObserver"),c=F($,"MutationObserver"),u=F($,"ResizeObserver"),p=$.performance,h=$.screen,d=Object.getOwnPropertyNames($).map((t=>((e,t,r,n)=>{if(r=t.match(/^(HTML|SVG)(.+)Element$/))return n=r[2],"S"==t[0]?e.createElementNS("http://www.w3.org/2000/svg",l[n]||n.slice(0,2).toLowerCase()+n.slice(2)):e.createElement(a[n]||n)})(e,t))).filter((e=>e)).map((e=>[e])),m=[[$.history],[p],[p.navigation],[p.timing],[h],[h.orientation],[$.visualViewport],[o,12],[c,12],[u,12],[r],[i],[s],[t],[t.attributes],[t.classList],[t.dataset],[t.style],[e],[e.doctype],...d].filter((e=>e[0])).map((e=>{const t=e[0],r=e[1],i=n(t);return[i,$[i].prototype,t,r]})),g=[U("Window",$),U("Node",r)],f={i:JSON.stringify(v,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t))),B:new URL(b,$.location)+"",v:g,H:origin,C:k("localStorage"),N:k("sessionStorage")};return m.map((([e,t,r,n])=>P(g,e,t,r,n))),j(g,$,"IntersectionObserverEntry"),f},U=(e,t,r)=>{let n=[],i=[e,"Object",n];for(r in t)_(n,t,r);return i},P=(e,t,r,i,s)=>{if("Object"!==t&&!e.some((e=>e[0]===t))){const o=Object.getPrototypeOf(r),a=n(o),l=[];P(e,a,o,i,s),Object.keys(Object.getOwnPropertyDescriptors(r)).map((e=>_(l,i,e))),e.push([t,a,l,s,i.nodeName])}},_=(e,t,r,i,o,a)=>{try{s(r)&&isNaN(r[0])&&"all"!==r&&("function"==(o=typeof(i=t[r]))?(String(i).includes("[native")||Object.getPrototypeOf(t)[r])&&e.push([r,5]):"object"===o&&null!=i?"Object"!==(a=n(i))&&self[a]&&e.push([r,i.nodeType||a]):"symbol"!==o&&(r.toUpperCase()===r?e.push([r,6,i]):e.push([r,6])))}catch(e){console.warn(e)}},k=e=>{let t,n=[],i=0,s=r($[e]);for(;i<s;i++)t=$[e].key(i),n.push([t,$[e].getItem(t)]);return n},F=(e,r)=>void 0!==e[r]?new e[r](t):0,j=(e,t,r)=>{void 0!==t[r]&&e.push([r,"Object",Object.keys(t[r].prototype).map((e=>[e,6])),12])};let J;(t=>{const r=e.navigator.serviceWorker;return r.getRegistration().then((e=>(r.addEventListener("message",(t=>{return r=t.data,n=t=>e.active&&e.active.postMessage(t),R(J,r).then(n);var r,n})),(e,t)=>{0===t[0]?e.postMessage([1,D()]):((e,t,r)=>{2===t[0]?O(e,o(),$):(r=d[t[1]])&&(5===t[0]?requestAnimationFrame((()=>H(e,r))):4===t[0]&&((e,t,r,n,i)=>{(i=t.T.document.querySelector(`[data-ptid="${r}"]`))&&(n?i.dataset.pterror=n:i.type+="-x",delete i.dataset.ptid),H(e,t)})(e,r,t[2],t[3]))})(e,t)})))})().then((e=>{e&&(J=new Worker(URL.createObjectURL(new Blob([\'/* Partytown 0.4.5 - MIT builder.io */\\n(e=>{const t=Symbol(),r=Symbol(),n=Symbol(),i=Symbol(),s=Symbol(),o=Symbol(),a=Symbol(),l=Symbol(),$=new Map,c={},u=new WeakMap,d=[],h={},p=new Map,g=new Map,m={},f=new Map,y=new Map,w="about:blank",S=e=>e.split(","),v=e=>{if(e=h.B+e,new URL(e).origin!=location.origin)throw"Invalid "+e;return e},b=S("clientWidth,clientHeight,clientTop,clientLeft,innerWidth,innerHeight,offsetWidth,offsetHeight,offsetTop,offsetLeft,outerWidth,outerHeight,pageXOffset,pageYOffset,scrollWidth,scrollHeight,scrollTop,scrollLeft"),I=S("childElementCount,children,firstElementChild,lastElementChild,nextElementSibling,previousElementSibling"),T=S("insertBefore,remove,removeChild,replaceChild"),M=S("className,width,height,hidden,innerHTML,innerText,textContent"),E=S("setAttribute,setAttributeNS,setProperty"),N=S("addEventListener,dispatchEvent,removeEventListener"),L=N.concat(E,S("add,observe,remove,unobserve")),x=/^[A-Z]([A-Z0-9-]*[A-Z0-9])?$/,C=()=>{},R=e=>e.length,A=e=>{try{return e.constructor.name}catch(e){}return""},P=[],H=()=>Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36),O="text/partytown",W=(e,t,r)=>Object.defineProperty(e,t,{...r,configurable:!0}),D=(e,t)=>W(e,"name",{value:t}),k=(e,t,r)=>W(e.prototype,t,r),B=(e,t)=>Object.defineProperties(e.prototype,t),j=(e,t,r)=>k(e,t,{value:r,writable:!0}),U=(e,t)=>t in e[o],F=(e,t)=>e[o][t],_=(e,t,r)=>e[o][t]=r,V=(e,t,r)=>console.warn(`Partytown unable to ${e} cross-origin ${t}: `+r.D),X=[],q=(e,n,i,o,a,l)=>{if(X.push({U:e[t],w:e[r],a:[...e[s],...n],d:o,r:a}),3===i)h.J([10,{E:H(),P:[...X]}],l?[l instanceof ArrayBuffer?l:l.buffer]:void 0),X.length=0;else if(1===i)return z(!0);h.c=setTimeout(z,20)},z=e=>{if(clearTimeout(h.c),R(X)){const t=X[R(X)-1],r={E:H(),P:[...X]};if(X.length=0,e){const e=((e,t)=>{const r=new XMLHttpRequest;return r.open("POST",v("proxytown"),!1),r.send(JSON.stringify(t)),JSON.parse(r.responseText)})(0,r),n=e.z,i=ce(t.U,t.w,t.a,e.L);if(e.p){if(n)return Promise.reject(e.p);throw new Error(e.p)}return n?Promise.resolve(i):i}h.J([10,r])}},G=(e,t,r,n)=>h.i.get&&(n=h.i.get(K(e,t)))!==a?n:n=q(e,t,1,void 0,r),J=(e,t,r,n)=>{if(h.i.set){if((n=h.i.set({value:r,prevent:l,...K(e,t)}))===l)return;n!==a&&(r=n)}M.some((e=>t.includes(e)))&&(f.clear(),t[t.length-1]),t=[...t,$e(e,r),0],q(e,t,2)},Z=(e,t,r,n,i,s,o,l)=>h.i.apply&&(o=h.i.apply({args:r,...K(e,t)}))!==a?o:(l=t[R(t)-1],t=[...t,$e(e,r)],n=n||(L.includes(l)?2:1),"setAttribute"===l&&U(e,r[0])?_(e,r[0],r[1]):T.includes(l)?(f.clear(),y.clear()):E.includes(l)&&(n=2,f.clear()),o=q(e,t,n,i,void 0,s)),Y=(e,t,r)=>{q(e,[1,t,$e(e,r)],1)},K=(e,t)=>({name:t.join("."),continue:a,nodeName:e[n],constructor:A(e)}),Q=(e,t,r,n,i)=>(!(i=$.get(t))&&r&&m[e]&&(i=m[e].k(r,t,n),$.set(t,i)),i),ee=(e,t)=>j(e,"nodeType",t),te=(e,t)=>t.map((t=>k(e,t,{get(){let e=re(this,t),r=y.get(e);return r||(r=G(this,[t]),y.set(e,r)),r}}))),re=(e,n,i)=>[e[t],e[r],n,...(i||P).map((e=>String(e&&e[t]?e[r]:e)))].join("."),ne=(e,t)=>S(t).map((t=>k(e,t,{get(){return U(this,t)||_(this,t,G(this,[t])),F(this,t)},set(e){F(this,t)!==e&&J(this,[t],e),_(this,t,e)}}))),ie=e=>b.map((t=>k(e,t,{get(){const e=f.get(re(this,t));if("number"==typeof e)return e;const r=G(this,[t],b);return r&&"object"==typeof r?(Object.entries(r).map((([e,t])=>f.set(re(this,e),t))),r[t]):r}}))),se=(e,t)=>t.map((t=>{e.prototype[t]=function(...e){let r=re(this,t,e),n=f.get(r);return n||(n=Z(this,[t],e),f.set(r,n)),n}})),oe=(e,n,i,s,o)=>{return void 0!==i&&(o=typeof i)?"string"===o||"boolean"===o||"number"===o||null==i?[0,i]:"function"===o?[4,{U:e,w:n,K:(a=i,(l=u.get(a))||(u.set(a,l=H()),c[l]=a),l)}]:(s=s||new Set)&&Array.isArray(i)?s.has(i)?[1,[]]:s.add(i)&&[1,i.map((t=>oe(e,n,t,s)))]:"object"===o?i[r]?[3,[i[t],i[r]]]:i instanceof Event?[5,le(e,n,i,!1,s)]:ae&&i instanceof TrustedHTML?[0,i.toString()]:i instanceof ArrayBuffer?[8,i]:ArrayBuffer.isView(i)?[9,i.buffer,A(i)]:[2,le(e,n,i,!0,s)]:void 0:i;var a,l},ae="undefined"!=typeof TrustedHTML,le=(e,t,r,n,i,s,o,a)=>{if(s={},!i.has(r))for(o in i.add(r),r)a=r[o],(n||"function"!=typeof a)&&(s[o]=oe(e,t,a,i));return s},$e=(e,n)=>e?oe(e[t],e[r],n):[0,n],ce=(e,t,r,n,i,s,o,a)=>{if(n){if(i=n[0],s=n[1],0===i||11===i||12===i)return s;if(4===i)return de(r,s);if(6===i)return C;if(3===i)return ue(s);if(7===i)return new he(s.map(ue));if(10===i)return new pe(s);if(1===i)return s.map((n=>ce(e,t,r,n)));for(a in o={},s)o[a]=ce(e,t,[...r,a],s[a]);if(13===i)return new m[e].T.CSSStyleDeclaration(e,t,r,o);if(5===i){if("message"===o.type&&o.origin){let e,t=JSON.stringify(o.data),r=d.find((e=>e.m===t));r&&(e=m[r.U],e&&(o.source=e.T,o.origin=e.D.origin))}return new Proxy(new Event(o.type,o),{get:(e,t)=>t in o?o[t]:"function"==typeof e[String(t)]?C:e[String(t)]})}if(2===i)return o}},ue=([e,t,r])=>t===e&&m[e]?m[e].T:Q(e,t,r),de=(e,{U:t,w:r,F:n,K:i})=>(c[i]||u.set(c[i]=function(...i){const s=Q(t,r,n);return Z(s,e,i)},i),c[i]),he=class{constructor(e){(this._=e).map(((e,t)=>this[t]=e))}entries(){return this._.entries()}forEach(e,t){this._.map(e,t)}item(e){return this[e]}keys(){return this._.keys()}get length(){return R(this._)}values(){return this._.values()}[Symbol.iterator](){return this._[Symbol.iterator]()}},pe=class{constructor(e){this.name=e[0],this.value=e[1]}get nodeName(){return this.name}get nodeType(){return 2}},ge=(e,t,r,n,i)=>{let s,o,a=t=>((t=r.get(e.origin))||r.set(e.origin,t=[]),t),l=e=>a().findIndex((t=>t[me]===e)),$={getItem:e=>(s=l(e),s>-1?a()[s][fe]:null),setItem(r,o){s=l(r),s>-1?a()[s][fe]=o:a().push([r,o]),n?Z(e,[t,"setItem"],[r,o],2):V("set",t,i)},removeItem(r){s=l(r),s>-1&&a().splice(s,1),n?Z(e,[t,"removeItem"],[r],2):V("remove",t,i)},key:e=>(o=a()[e],o?o[me]:null),clear(){a().length=0,n?Z(e,[t,"clear"],P,2):V("clear",t,i)},get length(){return a().length}};e[t]=$},me=0,fe=1,ye=(e,t,r)=>{e[r]=D(class extends t{constructor(e,t,r,i){return super(e,t,r,i||{}),new Proxy(this,{get:(e,t)=>e[t]?e[t]:(e[t]||"string"!=typeof t||e[n][t]||(e[n][t]=G(e,[t])),e[n][t]),set:(e,t,r)=>(e[n][t]=r,J(e,[t],r),f.clear(),!0)})}setProperty(...e){this[n][e[0]]=e[1],Z(this,["setProperty"],e,2),e[0],f.clear()}getPropertyValue(e){return this[e]}removeProperty(e){let t=this[n][e];return Z(this,["removeProperty"],[e],2),f.clear(),this[n][e]=void 0,t}},r)},we=(e,t)=>{e[t]=D(class{constructor(e){this.ownerNode=e}get cssRules(){const e=this.ownerNode;return new Proxy({},{get(t,r){const n=String(r);return"item"===n?t=>ve(e,t):"length"===n?Se(e).length:isNaN(n)?t[r]:ve(e,n)}})}insertRule(e,t){const r=Se(this.ownerNode);return(t=void 0===t?0:t)>=0&&t<=r.length&&(Z(this.ownerNode,["sheet","insertRule"],[e,t],2),r.splice(t,0,0)),this.ownerNode,f.clear(),t}deleteRule(e){Z(this.ownerNode,["sheet","deleteRule"],[e],2),Se(this.ownerNode).splice(e,1),this.ownerNode,f.clear()}get type(){return"text/css"}},t);const r={sheet:{get(){return new e[t](this)}}};B(e.HTMLStyleElement,r)},Se=(e,t)=>((t=F(e,2))||(t=G(e,["sheet","cssRules"]),_(e,2,t)),t),ve=(e,t,r)=>(0===(r=Se(e))[t]&&(r[t]=G(e,["sheet","cssRules",parseInt(t,10)])),r[t]),be="0.4.5",Ie=(e,t,r,n,i)=>{try{e.l=t,Te(e,r)}catch(e){console.error(r,e),i=String(e.stack||e)}return e.l="",i},Te=(e,t,r)=>{e.M=1,t=`with(this){${(h.i.globalFns||[]).filter((e=>/[a-zA-Z_$][0-9a-zA-Z_$]*/.test(e))).map((e=>`(typeof ${e}==\\\'function\\\'&&(window.${e}=${e}))`)).join(";")+t.replace(/\\\\bthis\\\\b/g,"(thi$(this)?window:this)").replace(/\\\\/\\\\/# so/g,"//Xso")}\\\\n;function thi$(t){return t===this}}`+(r?"\\\\n//# sourceURL="+r:""),e.A||(t=t.replace(/.postMessage\\\\(/g,`.postMessage(\\\'${e.U}\\\',`)),new Function(t).call(e.T),e.M=0},Me=(e,t,r)=>{(r=F(e,t))&&setTimeout((()=>r.map((e=>e({type:t})))))},Ee=(e,t,r,n,i,s)=>{for(n=e.D;!n.host&&(n=(e=m[e.I]).D,e.U!==e.I););return i=new URL(t||"",n),!r&&h.i.resolveUrl&&(s=h.i.resolveUrl(i,n))?s:i},Ne=(e,t,r)=>Ee(e,t,r)+"",Le=()=>`<script src="${v("partytown.js?v="+be)}"><\\\\/script>`,xe=e=>class{constructor(){this.s="",this.l=[],this.e=[]}get src(){return this.s}set src(t){fetch(Ne(e,t,!0),{mode:"no-cors",keepalive:!0}).then((e=>{e.ok||0===e.status?this.l.map((e=>e({type:"load"}))):this.e.map((e=>e({type:"error"})))}),(()=>this.e.forEach((e=>e({type:"error"})))))}addEventListener(e,t){"load"===e&&this.l.push(t),"error"===e&&this.e.push(t)}get onload(){return this.l[0]}set onload(e){this.l=[e]}get onerror(){return this.e[0]}set onerror(e){this.e=[e]}},Ce={addEventListener:{value(...e){const t=e[0],r=F(this,t)||[];r.push(e[1]),_(this,t,r)}},async:{get:C,set:C},defer:{get:C,set:C},onload:{get(){let e=F(this,"load");return e&&e[0]||null},set(e){_(this,"load",e?[e]:null)}},onerror:{get(){let e=F(this,"error");return e&&e[0]||null},set(e){_(this,"error",e?[e]:null)}},getAttribute:{value(e){return"src"===e?this.src:Z(this,["getAttribute"],[e])}},setAttribute:{value(e,t){Re.includes(e)?this[e]=t:Z(this,["setAttribute"],[e,t])}}},Re=S("src,type"),Ae=(e,t)=>{const r={innerHTML:Pe,innerText:Pe,src:{get(){return F(this,4)||""},set(e){const r=Ne(t,e,!0);e=Ne(t,e),_(this,4,e),J(this,["src"],e),r!==e&&J(this,["dataset","ptsrc"],r)}},textContent:Pe,type:{get(){return G(this,["type"])},set(e){He(e)||(_(this,5,e),J(this,["type"],e))}},...Ce};B(e,r)},Pe={get(){return F(this,3)||""},set(e){_(this,3,e)}},He=e=>!e||"text/javascript"===e,Oe=(e,i,s)=>{const o=D(class extends s{appendChild(e){return this.insertBefore(e,null)}get href(){}set href(e){}insertBefore(e,s){const o=e[t]=this[t],a=e[r],l=e[n],$="SCRIPT"===l,c="IFRAME"===l;if($){const t=F(e,3),r=F(e,5);if(t){if(He(r)){const r=Ie(i,a,t,0,""),n=r?"pterror":"ptid",s=r||a;J(e,["type"],O+"-x"),J(e,["dataset",n],s)}J(e,["innerHTML"],t)}}return Z(this,["insertBefore"],[e,s],2),c&&((e,t)=>{let r,n,i=0,s=()=>{m[e]&&m[e].x&&!m[e].y?(r=F(t,1)?"error":"load",n=F(t,r),n&&n.map((e=>e({type:r})))):i++>2e3?(n=F(t,"error"),n&&n.map((e=>e({type:"error"})))):setTimeout(s,9)};s()})(a,e),$&&(z(!0),h.J([5,o])),e}get nodeName(){return this[n]}get nodeType(){return 3}get ownerDocument(){return i.n}},"Node");te(o,S("childNodes,firstChild,isConnected,lastChild,nextSibling,parentElement,parentNode,previousSibling")),e.Node=o},We=S("AUDIO,CANVAS,VIDEO"),De=S("Audio,MediaSource"),ke=(e,r,n)=>{B(e,{body:{get:()=>r.e},cookie:{get(){return r.A?G(this,["cookie"]):(V("get","cookie",r),"")},set(e){r.A&&J(this,["cookie"],e)}},createElement:{value(e){if(e=e.toUpperCase(),!x.test(e))throw e+" not valid";const r="IFRAME"===e,n=this[t],i=(r?"f_":"")+H(),s=Q(n,i,e);if(Z(this,["createElement"],[e],2,i),r)ze({U:i,I:n,R:w},!0).T.fetch=fetch,J(s,["srcdoc"],Le());else if("SCRIPT"===e){const e=F(s,5);He(e)&&J(s,["type"],O)}return s}},createElementNS:{value(e,r){const n=H(),i=Q(this[t],n,r,e);return Z(this,["createElementNS"],[e,r],2,n),i}},createTextNode:{value(e){const r=this[t],n=H(),i=Q(r,n,"#text");return Z(this,["createTextNode"],[e],2,n),i}},createEvent:{value:e=>new Event(e)},currentScript:{get(){return r.l?Q(this[t],r.l,"SCRIPT"):null}},defaultView:{get:()=>n?null:r.T},documentElement:{get:()=>r.o},getElementsByTagName:{value(e){return"BODY"===(e=e.toUpperCase())?[r.e]:"HEAD"===e?[r.s]:Z(this,["getElementsByTagName"],[e])}},head:{get:()=>r.s},implementation:{get(){return{hasFeature:()=>!0,createHTMLDocument:e=>{const t=H();return Z(this,["implementation","createHTMLDocument"],[e],1,{U:t}),Xe(t,t,r.D+"","hidden",!0,!0).n}}}},location:{get:()=>r.D,set(e){r.D.href=e+""}},nodeType:{value:9},parentNode:{value:null},parentElement:{value:null},readyState:{value:"complete"},visibilityState:{get:()=>r.S||"visible"}}),ne(e,"compatMode,referrer,forms")},Be=(e,t)=>{B(e,{parentElement:{get(){return this.parentNode}},parentNode:{get:()=>t.o}})},je=(e,t)=>{B(e,{localName:{get(){return this[n].toLowerCase()}},namespaceURI:{get(){return this[i]||"http://www.w3.org/1999/xhtml"}},nodeType:{value:1},tagName:{get(){return this[n]}}}),te(e,I),ne(e,"id"),ie(t),se(t,S("getClientRects,getBoundingClientRect"))},Ue=(e,t)=>{const r={};S("hash,host,hostname,href,origin,pathname,port,protocol,search").map((e=>{r[e]={get(){let r,n=F(this,4);return"string"!=typeof n&&(r=G(this,["href"]),_(this,4,r),n=new URL(r)[e]),Ee(t,n)[e]},set(r){let n=F(this,4),i=Ee(t,n);i[e]=new URL(r+"",i.href),_(this,4,i.href),J(this,["href"],i.href)}}})),B(e,r)},Fe=(e,t)=>{const r={contentDocument:{get(){return _e(this).n}},contentWindow:{get(){return _e(this).T}},src:{get(){let e=_e(this).D.href;return e.startsWith("about:")?"":e},set(e){if(!e.startsWith("about:")){let t,r=new XMLHttpRequest,n=_e(this);n.D.href=e=Ne(n,e),n.y=1,_(this,1,void 0),r.open("GET",e,!1),r.send(),t=r.status,t>199&&t<300?(J(this,["srcdoc"],`<base href="${e}">`+r.responseText.replace(/<script>/g,\\\'<script type="text/partytown">\\\').replace(/<script /g,\\\'<script type="text/partytown" \\\').replace(/text\\\\/javascript/g,O)+Le()),z(!0),h.J([5,n.U])):(_(this,1,t),n.y=0)}}},...Ce};B(e,r)},_e=e=>{const n=e[r];return m[n]||ze({U:n,I:e[t],R:G(e,["src"])||w},!0),m[n]},Ve=e=>{const t=(e,t)=>{const{a:r,b:n,c:i,d:s,e:o,f:a}=Z(e,[t],P);return new DOMMatrixReadOnly([r,n,i,s,o,a])},r={...e,getCTM:{value:function(){return t(this,"getCTM")}},getScreenCTM:{value:function(){return t(this,"getScreenCTM")}}};B(e,r)},Xe=(a,l,$,c,u,f)=>{const y=class{constructor(e,a,l,$,c){this[t]=e,this[r]=a,this[s]=l||[],this[n]=$,this[o]={},c&&(this[i]=c)}},b=new(D(class extends URL{assign(){}reload(){}replace(){}},"Location"))($),T=b.origin===h.H||b.origin===w,M={},E=D(class extends y{constructor(){super(a,a);let n,i,o=this,$=0,d=()=>{$||((h.u||(e.g=[G,J,Z,Y,B,H,t,r,s],h.t(v("partytown-media.js?v="+be)),h.u=e.f,delete e.f),h.u)(y,x,M,o,De),$=1)},m={},w=(e,t,r)=>(We.includes(e)&&d(),new(m[e]?m[e]:e.includes("-")?m.UNKNOWN:m.DIV)(a,t,P,e,r));var N,C;o.Window=E,Oe(o,M,y),ye(o,y,"CSSStyleDeclaration"),((e,t,r)=>{e[r]=D(class extends t{now(){return performance.now()}},r)})(o,y,"Performance"),h.v.map((([e,t,n,i,l])=>{const $=qe[e]?L:"EventTarget"===t?x:"Object"===t?y:o[t],c=o[e]=D(12===i?class extends y{constructor(...t){super(a,H()),Y(this,e,t)}}:o[e]||class extends ${},e);l&&(m[l]=c),n.map((([e,t,n])=>{e in c.prototype||e in $.prototype||("string"==typeof t?k(c,e,{get(){if(!U(this,e)){const n=this[r],i=[...this[s],e],l=o[t];l&&_(this,e,new l(a,n,i))}return F(this,e)},set(t){_(this,e,t)}}):5===t?j(c,e,(function(...t){return Z(this,[e],t)})):t>0&&(void 0!==n?j(c,e,n):k(c,e,{get(){return G(this,[e])},set(t){return J(this,[e],t)}})))}))})),S("atob,btoa,crypto,indexedDB,setTimeout,setInterval,clearTimeout,clearInterval").map((t=>{delete E.prototype[t],t in o||(n=e[t],null!=n&&(o[t]="function"!=typeof n||n.toString().startsWith("class")?n:n.bind(e)))})),Object.getOwnPropertyNames(e).map((t=>{t in o||(o[t]=e[t])})),De.map((e=>W(o,e,{get:()=>(d(),o[e])}))),"trustedTypes"in e&&(o.trustedTypes=e.trustedTypes),je(o.Element,o.HTMLElement),ke(o.Document,M,f),N=o.DocumentFragment,ee(N,11),te(N,I),Ue(o.HTMLAnchorElement,M),C=o.HTMLFormElement,B(C,{}),ne(C,"elements"),Fe(o.HTMLIFrameElement),Ae(o.HTMLScriptElement,M),Ve(o.SVGGraphicsElement),Be(o.HTMLHeadElement,M),Be(o.HTMLBodyElement,M),((e,t)=>{B(e,{parentElement:{value:null},parentNode:{get:()=>t.n}})})(o.HTMLHtmlElement,M),we(o,"CSSStyleSheet"),ee(o.Comment,8),ee(o.DocumentType,10),Object.assign(M,{U:a,I:l,T:new Proxy(o,{has:()=>!0}),n:w("#document",a+".d"),o:w("HTML",a+".e"),s:w("HEAD",a+".h"),e:w("BODY",a+".b"),D:b,S:c,A:T,k:w}),o.requestAnimationFrame=e=>setTimeout((()=>e(performance.now())),9),o.cancelAnimationFrame=e=>clearTimeout(e),o.requestIdleCallback=(e,t)=>(t=Date.now(),setTimeout((()=>e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})),1)),o.cancelIdleCallback=e=>clearTimeout(e),ge(o,"localStorage",p,T,M),ge(o,"sessionStorage",g,T,M),T||(o.indexeddb=void 0),u&&(i={},o.history={pushState(e){i=e},replaceState(e){i=e},get state(){return i},length:0}),o.Worker=void 0}addEventListener(...e){"load"===e[0]?M.M&&setTimeout((()=>e[1]({type:"load"}))):Z(this,["addEventListener"],e,2)}get body(){return M.e}get document(){return M.n}get documentElement(){return M.o}fetch(e,t){return e="string"==typeof e||e instanceof URL?String(e):e.url,fetch(Ne(M,e),t)}get frameElement(){return a===l?null:Q(l,a,"IFRAME")}get globalThis(){return this}get head(){return M.s}get location(){return b}set location(e){b.href=e+""}get Image(){return xe(M)}get name(){return name+a}get navigator(){return(e=>{let t,r={sendBeacon:(t,r)=>{try{return fetch(Ne(e,t,!0),{method:"POST",body:r,mode:"no-cors",keepalive:!0}),!0}catch(e){return console.error(e),!1}}};for(t in navigator)r[t]=navigator[t];return r})(M)}get origin(){return b.origin}set origin(e){}get parent(){for(let e in m)if(m[e].U===l)return m[e].T;return this}postMessage(...e){m[e[0]]&&(R(d)>50&&d.splice(0,5),d.push({U:e[0],m:JSON.stringify(e[1])}),e=e.slice(1)),Z(this,["postMessage"],e,3)}get self(){return this}get top(){for(let e in m)if(m[e].U===m[e].I)return m[e].T;return this}get window(){return this}get XMLHttpRequest(){const e=XMLHttpRequest,t=String(e),r=D(class extends e{open(...e){e[1]=Ne(M,e[1]),super.open(...e)}set withCredentials(e){}toString(){return t}},A(e));return r.prototype.constructor.toString=()=>t,r}},"Window"),L=class extends y{constructor(e,t,r,n){return super(e,t,r,n),new Proxy(this,{get:(e,t)=>G(e,[t]),set:(e,t,r)=>(J(e,[t],r),!0)})}},x=class extends y{};return N.map((e=>x.prototype[e]=function(...t){return Z(this,[e],t,2)})),ne(E,"devicePixelRatio"),ie(E),se(E,["getComputedStyle"]),new E,M},qe={DOMStringMap:1,NamedNodeMap:1},ze=({U:e,I:t,R:r,S:n},i)=>(m[e]||(m[e]=Xe(e,t,r,n,i)),h.J([5,e]),m[e]),Ge=[],Je=t=>{const r=t.data,n=r[0],i=r[1];h.x?5===n?(async e=>{let t,r=e.U,n=e.w,i=Q(r,n,"SCRIPT"),s=e.j,o=e.R,a=e.G,l="",$=m[r];if(o)try{o=Ee($,o)+"",_(i,4,o),t=await fetch(o),t.ok?(s=await t.text(),$.l=n,Te($,s,a||o),Me(i,"load")):(l=t.statusText,Me(i,"error"))}catch(e){console.error(e),l=String(e.stack||e),Me(i,"error")}else s&&(l=Ie($,n,s,0,l));$.l="",h.J([4,r,n,l])})(i):7===n?(({U:e,w:t,K:r,Q:n,b:i})=>{if(c[r])try{c[r].apply(ce(e,t,[],n),ce(e,t,[],i))}catch(e){console.error(e)}})(i):8===n?(({U:e,q:t,b:r})=>{try{let n=m[e].T,i=0,s=R(t);for(;i<s;i++)i+1<s?n=n[t[i]]:n[t[i]].apply(n,ce(null,e,[],r))}catch(e){console.error(e)}})(i):3===n?ze(i):6===n?(m[i].x=1,m[i].y=0):12===n?m[i].S=r[2]:11===n&&(m[i].D.href=r[2]):1===n?((t=>{const r=h.i=JSON.parse(t.i),n=t.H;h.t=importScripts.bind(e),h.v=t.v,h.B=t.B,h.H=n,h.J=postMessage.bind(e),h.O=t.O,p.set(n,t.C),g.set(n,t.N),e.importScripts=void 0,delete e.postMessage,delete e.WorkerGlobalScope,S("resolveUrl,get,set,apply").map((e=>{r[e]&&(r[e]=new Function("return "+r[e])())})),h.x=1})(i),h.J([2]),[...Ge].map(Je),Ge.length=0):Ge.push(t)};e.onmessage=Je,postMessage([0])})(self);\\n\'],{type:"text/javascript"})),{name:"Partytown 🎉"}),J.onmessage=t=>{const r=t.data;10===r[0]?R(J,r[1]):e(J,r)},$.addEventListener("pt1",(e=>O(J,g(e.detail.frameElement),e.detail))))}))})(window);\n<\/script></head></html>')):s.endsWith("proxytown")&&n.respondWith((n=>new Promise((async i=>{const s=await n.clone().json(),o=await(r=>new Promise((async n=>{const i=[...await self.clients.matchAll()].sort(((e,t)=>e.url>t.url?-1:e.url<t.url?1:0))[0];if(i){const s=[n,setTimeout((()=>{e.delete(r.E),n(t(r,"Timeout"))}),1e4)];e.set(r.E,s),i.postMessage(r)}else n(t(r,"NoParty"))})))(s);i(r(JSON.stringify(o),"application/json"))})))(i))};
@@ -0,0 +1,2 @@
1
+ /* Partytown 0.4.5 - MIT builder.io */
2
+ !function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll('script[type="text/partytown"]'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener("pt0",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.4.5":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement("script")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);