@junobuild/analytics 0.1.0 → 0.1.1

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.
@@ -0,0 +1,2 @@
1
+ function i(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function c(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=i(r);return(o,l)=>n.then(d=>l(d.transaction(t,o).objectStore(t)))}var f;function y(){return f||(f=c("keyval-store","keyval")),f}function a(e,t,r=y()){return r("readwrite",n=>(n.put(t,e),i(n.transaction)))}function s(e,t=y()){return t("readwrite",r=>(e.forEach(n=>r.delete(n)),i(r.transaction)))}function P(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},i(e.transaction)}function u(e=y()){return e("readonly",t=>{if(t.getAll&&t.getAllKeys)return Promise.all([i(t.getAllKeys()),i(t.getAll())]).then(([n,o])=>n.map((l,d)=>[l,o[d]]));let r=[];return e("readonly",n=>P(n,o=>r.push([o.key,o.value])).then(()=>r))})}var m=c("juno-views","views"),p=c("juno-events","events"),v=c("juno-metrics","metrics"),I=({key:e,view:t})=>a(e,t,m),b=()=>u(m),h=e=>s(e,m),k=({key:e,track:t})=>a(e,t,p),K=()=>u(p),V=e=>s(e,p),x=({key:e,view:t})=>a(e,t,v),M=()=>u(v),A=e=>s(e,v);export{h as delPageViews,A as delPerformanceMetrics,V as delTrackEvents,b as getPageViews,M as getPerformanceMetrics,K as getTrackEvents,I as setPageView,x as setPerformanceMetric,k as setTrackEvent};
2
+ //# sourceMappingURL=idb.services-CVJFLYYN.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../node_modules/idb-keyval/dist/index.js", "../../src/services/idb.services.ts"],
4
4
  "sourcesContent": ["function promisifyRequest(request) {\n return new Promise((resolve, reject) => {\n // @ts-ignore - file size hacks\n request.oncomplete = request.onsuccess = () => resolve(request.result);\n // @ts-ignore - file size hacks\n request.onabort = request.onerror = () => reject(request.error);\n });\n}\nfunction createStore(dbName, storeName) {\n const request = indexedDB.open(dbName);\n request.onupgradeneeded = () => request.result.createObjectStore(storeName);\n const dbp = promisifyRequest(request);\n return (txMode, callback) => dbp.then((db) => callback(db.transaction(storeName, txMode).objectStore(storeName)));\n}\nlet defaultGetStoreFunc;\nfunction defaultGetStore() {\n if (!defaultGetStoreFunc) {\n defaultGetStoreFunc = createStore('keyval-store', 'keyval');\n }\n return defaultGetStoreFunc;\n}\n/**\n * Get a value by its key.\n *\n * @param key\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction get(key, customStore = defaultGetStore()) {\n return customStore('readonly', (store) => promisifyRequest(store.get(key)));\n}\n/**\n * Set a value with a key.\n *\n * @param key\n * @param value\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction set(key, value, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.put(value, key);\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Set multiple values at once. This is faster than calling set() multiple times.\n * It's also atomic \u2013 if one of the pairs can't be added, none will be added.\n *\n * @param entries Array of entries, where each entry is an array of `[key, value]`.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction setMany(entries, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n entries.forEach((entry) => store.put(entry[1], entry[0]));\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Get multiple values by their keys\n *\n * @param keys\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction getMany(keys, customStore = defaultGetStore()) {\n return customStore('readonly', (store) => Promise.all(keys.map((key) => promisifyRequest(store.get(key)))));\n}\n/**\n * Update a value. This lets you see the old value and update it as an atomic operation.\n *\n * @param key\n * @param updater A callback that takes the old value and returns a new value.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction update(key, updater, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => \n // Need to create the promise manually.\n // If I try to chain promises, the transaction closes in browsers\n // that use a promise polyfill (IE10/11).\n new Promise((resolve, reject) => {\n store.get(key).onsuccess = function () {\n try {\n store.put(updater(this.result), key);\n resolve(promisifyRequest(store.transaction));\n }\n catch (err) {\n reject(err);\n }\n };\n }));\n}\n/**\n * Delete a particular key from the store.\n *\n * @param key\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction del(key, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.delete(key);\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Delete multiple keys at once.\n *\n * @param keys List of keys to delete.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction delMany(keys, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n keys.forEach((key) => store.delete(key));\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Clear all values in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction clear(customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.clear();\n return promisifyRequest(store.transaction);\n });\n}\nfunction eachCursor(store, callback) {\n store.openCursor().onsuccess = function () {\n if (!this.result)\n return;\n callback(this.result);\n this.result.continue();\n };\n return promisifyRequest(store.transaction);\n}\n/**\n * Get all keys in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction keys(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n if (store.getAllKeys) {\n return promisifyRequest(store.getAllKeys());\n }\n const items = [];\n return eachCursor(store, (cursor) => items.push(cursor.key)).then(() => items);\n });\n}\n/**\n * Get all values in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction values(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n if (store.getAll) {\n return promisifyRequest(store.getAll());\n }\n const items = [];\n return eachCursor(store, (cursor) => items.push(cursor.value)).then(() => items);\n });\n}\n/**\n * Get all entries in the store. Each entry is an array of `[key, value]`.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction entries(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n // (although, hopefully we'll get a simpler path some day)\n if (store.getAll && store.getAllKeys) {\n return Promise.all([\n promisifyRequest(store.getAllKeys()),\n promisifyRequest(store.getAll()),\n ]).then(([keys, values]) => keys.map((key, i) => [key, values[i]]));\n }\n const items = [];\n return customStore('readonly', (store) => eachCursor(store, (cursor) => items.push([cursor.key, cursor.value])).then(() => items));\n });\n}\n\nexport { clear, createStore, del, delMany, entries, get, getMany, keys, promisifyRequest, set, setMany, update, values };\n", "import {createStore, delMany, entries, set} from 'idb-keyval';\nimport type {IdbKey, IdbPageView, IdbPerformanceMetric, IdbTrackEvent} from '../types/idb';\n\nconst viewsStore = createStore('juno-views', 'views');\nconst eventsStore = createStore('juno-events', 'events');\nconst metricsStore = createStore('juno-metrics', 'metrics');\n\nexport const setPageView = ({key, view}: {key: IdbKey; view: IdbPageView}): Promise<void> =>\n set(key, view, viewsStore);\n\nexport const getPageViews = (): Promise<[IDBValidKey, IdbPageView][]> => entries(viewsStore);\n\nexport const delPageViews = (keys: IDBValidKey[]): Promise<void> => delMany(keys, viewsStore);\n\nexport const setTrackEvent = ({key, track}: {key: IdbKey; track: IdbTrackEvent}): Promise<void> =>\n set(key, track, eventsStore);\n\nexport const getTrackEvents = (): Promise<[IDBValidKey, IdbTrackEvent][]> => entries(eventsStore);\n\nexport const delTrackEvents = (keys: IDBValidKey[]): Promise<void> => delMany(keys, eventsStore);\n\nexport const setPerformanceMetric = ({\n key,\n view\n}: {\n key: IdbKey;\n view: IdbPerformanceMetric;\n}): Promise<void> => set(key, view, metricsStore);\n\nexport const getPerformanceMetrics = (): Promise<[IDBValidKey, IdbPerformanceMetric][]> =>\n entries(metricsStore);\n\nexport const delPerformanceMetrics = (keys: IDBValidKey[]): Promise<void> =>\n delMany(keys, metricsStore);\n"],
5
- "mappings": "4BAAA,SAASA,EAAiBC,EAAS,CAC/B,OAAO,IAAI,QAAQ,CAACC,EAASC,IAAW,CAEpCF,EAAQ,WAAaA,EAAQ,UAAY,IAAMC,EAAQD,EAAQ,MAAM,EAErEA,EAAQ,QAAUA,EAAQ,QAAU,IAAME,EAAOF,EAAQ,KAAK,CAClE,CAAC,CACL,CACA,SAASG,EAAYC,EAAQC,EAAW,CACpC,IAAML,EAAU,UAAU,KAAKI,CAAM,EACrCJ,EAAQ,gBAAkB,IAAMA,EAAQ,OAAO,kBAAkBK,CAAS,EAC1E,IAAMC,EAAMP,EAAiBC,CAAO,EACpC,MAAO,CAACO,EAAQC,IAAaF,EAAI,KAAMG,GAAOD,EAASC,EAAG,YAAYJ,EAAWE,CAAM,EAAE,YAAYF,CAAS,CAAC,CAAC,CACpH,CACA,IAAIK,EACJ,SAASC,GAAkB,CACvB,OAAKD,IACDA,EAAsBP,EAAY,eAAgB,QAAQ,GAEvDO,CACX,CAiBA,SAASE,EAAIC,EAAKC,EAAOC,EAAcC,EAAgB,EAAG,CACtD,OAAOD,EAAY,YAAcE,IAC7BA,EAAM,IAAIH,EAAOD,CAAG,EACbK,EAAiBD,EAAM,WAAW,EAC5C,CACL,CAiEA,SAASE,EAAQC,EAAMC,EAAcC,EAAgB,EAAG,CACpD,OAAOD,EAAY,YAAcE,IAC7BH,EAAK,QAASI,GAAQD,EAAM,OAAOC,CAAG,CAAC,EAChCC,EAAiBF,EAAM,WAAW,EAC5C,CACL,CAYA,SAASG,EAAWC,EAAOC,EAAU,CACjC,OAAAD,EAAM,WAAW,EAAE,UAAY,UAAY,CAClC,KAAK,SAEVC,EAAS,KAAK,MAAM,EACpB,KAAK,OAAO,SAAS,EACzB,EACOC,EAAiBF,EAAM,WAAW,CAC7C,CAoCA,SAASG,EAAQC,EAAcC,EAAgB,EAAG,CAC9C,OAAOD,EAAY,WAAaE,GAAU,CAGtC,GAAIA,EAAM,QAAUA,EAAM,WACtB,OAAO,QAAQ,IAAI,CACfC,EAAiBD,EAAM,WAAW,CAAC,EACnCC,EAAiBD,EAAM,OAAO,CAAC,CACnC,CAAC,EAAE,KAAK,CAAC,CAACE,EAAMC,CAAM,IAAMD,EAAK,IAAI,CAACE,EAAKC,IAAM,CAACD,EAAKD,EAAOE,CAAC,CAAC,CAAC,CAAC,EAEtE,IAAMC,EAAQ,CAAC,EACf,OAAOR,EAAY,WAAaE,GAAUO,EAAWP,EAAQQ,GAAWF,EAAM,KAAK,CAACE,EAAO,IAAKA,EAAO,KAAK,CAAC,CAAC,EAAE,KAAK,IAAMF,CAAK,CAAC,CACrI,CAAC,CACL,CClLA,IAAMG,EAAaC,EAAY,aAAc,OAAO,EAC9CC,EAAcD,EAAY,cAAe,QAAQ,EACjDE,EAAeF,EAAY,eAAgB,SAAS,EAE7CG,EAAc,CAAC,CAAC,IAAAC,EAAK,KAAAC,CAAI,IACpCC,EAAIF,EAAKC,EAAMN,CAAU,EAEdQ,EAAe,IAA6CC,EAAQT,CAAU,EAE9EU,EAAgBC,GAAuCC,EAAQD,EAAMX,CAAU,EAE/Ea,EAAgB,CAAC,CAAC,IAAAR,EAAK,MAAAS,CAAK,IACvCP,EAAIF,EAAKS,EAAOZ,CAAW,EAEhBa,EAAiB,IAA+CN,EAAQP,CAAW,EAEnFc,EAAkBL,GAAuCC,EAAQD,EAAMT,CAAW,EAElFe,EAAuB,CAAC,CACnC,IAAAZ,EACA,KAAAC,CACF,IAGqBC,EAAIF,EAAKC,EAAMH,CAAY,EAEnCe,EAAwB,IACnCT,EAAQN,CAAY,EAETgB,EAAyBR,GACpCC,EAAQD,EAAMR,CAAY",
5
+ "mappings": "AAAA,SAASA,EAAiBC,EAAS,CAC/B,OAAO,IAAI,QAAQ,CAACC,EAASC,IAAW,CAEpCF,EAAQ,WAAaA,EAAQ,UAAY,IAAMC,EAAQD,EAAQ,MAAM,EAErEA,EAAQ,QAAUA,EAAQ,QAAU,IAAME,EAAOF,EAAQ,KAAK,CAClE,CAAC,CACL,CACA,SAASG,EAAYC,EAAQC,EAAW,CACpC,IAAML,EAAU,UAAU,KAAKI,CAAM,EACrCJ,EAAQ,gBAAkB,IAAMA,EAAQ,OAAO,kBAAkBK,CAAS,EAC1E,IAAMC,EAAMP,EAAiBC,CAAO,EACpC,MAAO,CAACO,EAAQC,IAAaF,EAAI,KAAMG,GAAOD,EAASC,EAAG,YAAYJ,EAAWE,CAAM,EAAE,YAAYF,CAAS,CAAC,CAAC,CACpH,CACA,IAAIK,EACJ,SAASC,GAAkB,CACvB,OAAKD,IACDA,EAAsBP,EAAY,eAAgB,QAAQ,GAEvDO,CACX,CAiBA,SAASE,EAAIC,EAAKC,EAAOC,EAAcC,EAAgB,EAAG,CACtD,OAAOD,EAAY,YAAcE,IAC7BA,EAAM,IAAIH,EAAOD,CAAG,EACbK,EAAiBD,EAAM,WAAW,EAC5C,CACL,CAiEA,SAASE,EAAQC,EAAMC,EAAcC,EAAgB,EAAG,CACpD,OAAOD,EAAY,YAAcE,IAC7BH,EAAK,QAASI,GAAQD,EAAM,OAAOC,CAAG,CAAC,EAChCC,EAAiBF,EAAM,WAAW,EAC5C,CACL,CAYA,SAASG,EAAWC,EAAOC,EAAU,CACjC,OAAAD,EAAM,WAAW,EAAE,UAAY,UAAY,CAClC,KAAK,SAEVC,EAAS,KAAK,MAAM,EACpB,KAAK,OAAO,SAAS,EACzB,EACOC,EAAiBF,EAAM,WAAW,CAC7C,CAoCA,SAASG,EAAQC,EAAcC,EAAgB,EAAG,CAC9C,OAAOD,EAAY,WAAaE,GAAU,CAGtC,GAAIA,EAAM,QAAUA,EAAM,WACtB,OAAO,QAAQ,IAAI,CACfC,EAAiBD,EAAM,WAAW,CAAC,EACnCC,EAAiBD,EAAM,OAAO,CAAC,CACnC,CAAC,EAAE,KAAK,CAAC,CAACE,EAAMC,CAAM,IAAMD,EAAK,IAAI,CAACE,EAAKC,IAAM,CAACD,EAAKD,EAAOE,CAAC,CAAC,CAAC,CAAC,EAEtE,IAAMC,EAAQ,CAAC,EACf,OAAOR,EAAY,WAAaE,GAAUO,EAAWP,EAAQQ,GAAWF,EAAM,KAAK,CAACE,EAAO,IAAKA,EAAO,KAAK,CAAC,CAAC,EAAE,KAAK,IAAMF,CAAK,CAAC,CACrI,CAAC,CACL,CClLA,IAAMG,EAAaC,EAAY,aAAc,OAAO,EAC9CC,EAAcD,EAAY,cAAe,QAAQ,EACjDE,EAAeF,EAAY,eAAgB,SAAS,EAE7CG,EAAc,CAAC,CAAC,IAAAC,EAAK,KAAAC,CAAI,IACpCC,EAAIF,EAAKC,EAAMN,CAAU,EAEdQ,EAAe,IAA6CC,EAAQT,CAAU,EAE9EU,EAAgBC,GAAuCC,EAAQD,EAAMX,CAAU,EAE/Ea,EAAgB,CAAC,CAAC,IAAAR,EAAK,MAAAS,CAAK,IACvCP,EAAIF,EAAKS,EAAOZ,CAAW,EAEhBa,EAAiB,IAA+CN,EAAQP,CAAW,EAEnFc,EAAkBL,GAAuCC,EAAQD,EAAMT,CAAW,EAElFe,EAAuB,CAAC,CACnC,IAAAZ,EACA,KAAAC,CACF,IAGqBC,EAAIF,EAAKC,EAAMH,CAAY,EAEnCe,EAAwB,IACnCT,EAAQN,CAAY,EAETgB,EAAyBR,GACpCC,EAAQD,EAAMR,CAAY",
6
6
  "names": ["promisifyRequest", "request", "resolve", "reject", "createStore", "dbName", "storeName", "dbp", "txMode", "callback", "db", "defaultGetStoreFunc", "defaultGetStore", "set", "key", "value", "customStore", "defaultGetStore", "store", "promisifyRequest", "delMany", "keys", "customStore", "defaultGetStore", "store", "key", "promisifyRequest", "eachCursor", "store", "callback", "promisifyRequest", "entries", "customStore", "defaultGetStore", "store", "promisifyRequest", "keys", "values", "key", "i", "items", "eachCursor", "cursor", "viewsStore", "createStore", "eventsStore", "metricsStore", "setPageView", "key", "view", "set", "getPageViews", "entries", "delPageViews", "keys", "delMany", "setTrackEvent", "track", "getTrackEvents", "delTrackEvents", "setPerformanceMetric", "getPerformanceMetrics", "delPerformanceMetrics"]
7
7
  }
@@ -1,18 +1,2 @@
1
- import{a as Yt,b as S}from"./chunk-LVWHOONS.js";import{b as rt,c as Kt,d as Gt}from"./chunk-TEDR2MDT.js";var ot=rt(j=>{"use strict";j.byteLength=Jt;j.toByteArray=Zt;j.fromByteArray=Lt;var g=[],y=[],Xt=typeof Uint8Array<"u"?Uint8Array:Array,W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(E=0,nt=W.length;E<nt;++E)g[E]=W[E],y[W.charCodeAt(E)]=E;var E,nt;y[45]=62;y[95]=63;function it(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function Jt(r){var t=it(r),e=t[0],n=t[1];return(e+n)*3/4-n}function It(r,t,e){return(t+e)*3/4-e}function Zt(r){var t,e=it(r),n=e[0],i=e[1],o=new Xt(It(r,n,i)),s=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)t=y[r.charCodeAt(u)]<<18|y[r.charCodeAt(u+1)]<<12|y[r.charCodeAt(u+2)]<<6|y[r.charCodeAt(u+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=y[r.charCodeAt(u)]<<2|y[r.charCodeAt(u+1)]>>4,o[s++]=t&255),i===1&&(t=y[r.charCodeAt(u)]<<10|y[r.charCodeAt(u+1)]<<4|y[r.charCodeAt(u+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function Qt(r){return g[r>>18&63]+g[r>>12&63]+g[r>>6&63]+g[r&63]}function Dt(r,t,e){for(var n,i=[],o=t;o<e;o+=3)n=(r[o]<<16&16711680)+(r[o+1]<<8&65280)+(r[o+2]&255),i.push(Qt(n));return i.join("")}function Lt(r){for(var t,e=r.length,n=e%3,i=[],o=16383,s=0,c=e-n;s<c;s+=o)i.push(Dt(r,s,s+o>c?c:s+o));return n===1?(t=r[e-1],i.push(g[t>>2]+g[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],i.push(g[t>>10]+g[t>>4&63]+g[t<<2&63]+"=")),i.join("")}});var Bt=rt(F=>{"use strict";var z=ot(),N=Yt(),st=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;F.Buffer=a;F.SlowBuffer=oe;F.INSPECT_MAX_BYTES=50;var M=2147483647;F.kMaxLength=M;a.TYPED_ARRAY_SUPPORT=te();!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function te(){try{let r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function w(r){if(r>M)throw new RangeError('The value "'+r+'" is invalid for option "size"');let t=new Uint8Array(r);return Object.setPrototypeOf(t,a.prototype),t}function a(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return X(r)}return lt(r,t,e)}a.poolSize=8192;function lt(r,t,e){if(typeof r=="string")return re(r,t);if(ArrayBuffer.isView(r))return ne(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(_(r,ArrayBuffer)||r&&_(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_(r,SharedArrayBuffer)||r&&_(r.buffer,SharedArrayBuffer)))return G(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return a.from(n,t,e);let i=ie(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return a.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}a.from=function(r,t,e){return lt(r,t,e)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function pt(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function ee(r,t,e){return pt(r),r<=0?w(r):t!==void 0?typeof e=="string"?w(r).fill(t,e):w(r).fill(t):w(r)}a.alloc=function(r,t,e){return ee(r,t,e)};function X(r){return pt(r),w(r<0?0:J(r)|0)}a.allocUnsafe=function(r){return X(r)};a.allocUnsafeSlow=function(r){return X(r)};function re(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let e=ft(r,t)|0,n=w(e),i=n.write(r,t);return i!==e&&(n=n.slice(0,i)),n}function K(r){let t=r.length<0?0:J(r.length)|0,e=w(t);for(let n=0;n<t;n+=1)e[n]=r[n]&255;return e}function ne(r){if(_(r,Uint8Array)){let t=new Uint8Array(r);return G(t.buffer,t.byteOffset,t.byteLength)}return K(r)}function G(r,t,e){if(t<0||r.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<t+(e||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&e===void 0?n=new Uint8Array(r):e===void 0?n=new Uint8Array(r,t):n=new Uint8Array(r,t,e),Object.setPrototypeOf(n,a.prototype),n}function ie(r){if(a.isBuffer(r)){let t=J(r.length)|0,e=w(t);return e.length===0||r.copy(e,0,0,t),e}if(r.length!==void 0)return typeof r.length!="number"||Z(r.length)?w(0):K(r);if(r.type==="Buffer"&&Array.isArray(r.data))return K(r.data)}function J(r){if(r>=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return r|0}function oe(r){return+r!=r&&(r=0),a.alloc(+r)}a.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==a.prototype};a.compare=function(t,e){if(_(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),_(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0};a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return a.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<t.length;++n)e+=t[n].length;let i=a.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){let s=t[n];if(_(s,Uint8Array))o+s.length>i.length?(a.isBuffer(s)||(s=a.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(a.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function ft(r,t){if(a.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||_(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Y(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Et(r).length;default:if(i)return n?-1:Y(r).length;t=(""+t).toLowerCase(),i=!0}}a.byteLength=ft;function se(r,t,e){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return ye(this,t,e);case"utf8":case"utf-8":return ht(this,t,e);case"ascii":return he(this,t,e);case"latin1":case"binary":return me(this,t,e);case"base64":return fe(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}a.prototype._isBuffer=!0;function B(r,t,e){let n=r[t];r[t]=r[e],r[e]=n}a.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)B(this,e,e+1);return this};a.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)B(this,e,e+3),B(this,e+1,e+2);return this};a.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)B(this,e,e+7),B(this,e+1,e+6),B(this,e+2,e+5),B(this,e+3,e+4);return this};a.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?ht(this,0,t):se.apply(this,arguments)};a.prototype.toLocaleString=a.prototype.toString;a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:a.compare(this,t)===0};a.prototype.inspect=function(){let t="",e=F.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"};st&&(a.prototype[st]=a.prototype.inspect);a.prototype.compare=function(t,e,n,i,o){if(_(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let s=o-i,c=n-e,u=Math.min(s,c),p=this.slice(i,o),f=t.slice(e,n);for(let l=0;l<u;++l)if(p[l]!==f[l]){s=p[l],c=f[l];break}return s<c?-1:c<s?1:0};function dt(r,t,e,n,i){if(r.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Z(e)&&(e=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof t=="string"&&(t=a.from(t,n)),a.isBuffer(t))return t.length===0?-1:at(r,t,e,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):at(r,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function at(r,t,e,n,i){let o=1,s=r.length,c=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;o=2,s/=2,c/=2,e/=2}function u(f,l){return o===1?f[l]:f.readUInt16BE(l*o)}let p;if(i){let f=-1;for(p=e;p<s;p++)if(u(r,p)===u(t,f===-1?0:p-f)){if(f===-1&&(f=p),p-f+1===c)return f*o}else f!==-1&&(p-=p-f),f=-1}else for(e+c>s&&(e=s-c),p=e;p>=0;p--){let f=!0;for(let l=0;l<c;l++)if(u(r,p+l)!==u(t,l)){f=!1;break}if(f)return p}return-1}a.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1};a.prototype.indexOf=function(t,e,n){return dt(this,t,e,n,!0)};a.prototype.lastIndexOf=function(t,e,n){return dt(this,t,e,n,!1)};function ae(r,t,e,n){e=Number(e)||0;let i=r.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s<n;++s){let c=parseInt(t.substr(s*2,2),16);if(Z(c))return s;r[e+s]=c}return s}function ce(r,t,e,n){return $(Y(t,r.length-e),r,e,n)}function ue(r,t,e,n){return $(Ee(t),r,e,n)}function le(r,t,e,n){return $(Et(t),r,e,n)}function pe(r,t,e,n){return $(Be(t,r.length-e),r,e,n)}a.prototype.write=function(t,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return ae(this,t,e,n);case"utf8":case"utf-8":return ce(this,t,e,n);case"ascii":case"latin1":case"binary":return ue(this,t,e,n);case"base64":return le(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(r,t,e){return t===0&&e===r.length?z.fromByteArray(r):z.fromByteArray(r.slice(t,e))}function ht(r,t,e){e=Math.min(r.length,e);let n=[],i=t;for(;i<e;){let o=r[i],s=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=e){let u,p,f,l;switch(c){case 1:o<128&&(s=o);break;case 2:u=r[i+1],(u&192)===128&&(l=(o&31)<<6|u&63,l>127&&(s=l));break;case 3:u=r[i+1],p=r[i+2],(u&192)===128&&(p&192)===128&&(l=(o&15)<<12|(u&63)<<6|p&63,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:u=r[i+1],p=r[i+2],f=r[i+3],(u&192)===128&&(p&192)===128&&(f&192)===128&&(l=(o&15)<<18|(u&63)<<12|(p&63)<<6|f&63,l>65535&&l<1114112&&(s=l))}}s===null?(s=65533,c=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=c}return de(n)}var ct=4096;function de(r){let t=r.length;if(t<=ct)return String.fromCharCode.apply(String,r);let e="",n=0;for(;n<t;)e+=String.fromCharCode.apply(String,r.slice(n,n+=ct));return e}function he(r,t,e){let n="";e=Math.min(r.length,e);for(let i=t;i<e;++i)n+=String.fromCharCode(r[i]&127);return n}function me(r,t,e){let n="";e=Math.min(r.length,e);for(let i=t;i<e;++i)n+=String.fromCharCode(r[i]);return n}function ye(r,t,e){let n=r.length;(!t||t<0)&&(t=0),(!e||e<0||e>n)&&(e=n);let i="";for(let o=t;o<e;++o)i+=be[r[o]];return i}function ge(r,t,e){let n=r.slice(t,e),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}a.prototype.slice=function(t,e){let n=this.length;t=~~t,e=e===void 0?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);let i=this.subarray(t,e);return Object.setPrototypeOf(i,a.prototype),i};function d(r,t,e){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+t>e)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let i=this[t],o=1,s=0;for(;++s<e&&(o*=256);)i+=this[t+s]*o;return i};a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let i=this[t+--e],o=1;for(;e>0&&(o*=256);)i+=this[t+--e]*o;return i};a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t=t>>>0,e||d(t,1,this.length),this[t]};a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||d(t,2,this.length),this[t]|this[t+1]<<8};a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||d(t,2,this.length),this[t]<<8|this[t+1]};a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||d(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||d(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};a.prototype.readBigUInt64LE=x(function(t){t=t>>>0,A(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&v(t,this.length-8);let i=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});a.prototype.readBigUInt64BE=x(function(t){t=t>>>0,A(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&v(t,this.length-8);let i=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});a.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let i=this[t],o=1,s=0;for(;++s<e&&(o*=256);)i+=this[t+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i};a.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let i=e,o=1,s=this[t+--i];for(;i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*e)),s};a.prototype.readInt8=function(t,e){return t=t>>>0,e||d(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};a.prototype.readInt16LE=function(t,e){t=t>>>0,e||d(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};a.prototype.readInt16BE=function(t,e){t=t>>>0,e||d(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};a.prototype.readInt32LE=function(t,e){return t=t>>>0,e||d(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};a.prototype.readInt32BE=function(t,e){return t=t>>>0,e||d(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};a.prototype.readBigInt64LE=x(function(t){t=t>>>0,A(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&v(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});a.prototype.readBigInt64BE=x(function(t){t=t>>>0,A(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&v(t,this.length-8);let i=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});a.prototype.readFloatLE=function(t,e){return t=t>>>0,e||d(t,4,this.length),N.read(this,t,!0,23,4)};a.prototype.readFloatBE=function(t,e){return t=t>>>0,e||d(t,4,this.length),N.read(this,t,!1,23,4)};a.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||d(t,8,this.length),N.read(this,t,!0,52,8)};a.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||d(t,8,this.length),N.read(this,t,!1,52,8)};function h(r,t,e,n,i,o){if(!a.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(e+n>r.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;h(this,t,e,n,c,0)}let o=1,s=0;for(this[e]=t&255;++s<n&&(o*=256);)this[e+s]=t/o&255;return e+n};a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e=e>>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;h(this,t,e,n,c,0)}let o=n-1,s=1;for(this[e+o]=t&255;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+n};a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,1,255,0),this[e]=t&255,e+1};a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function mt(r,t,e,n,i){xt(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return r[e++]=s,s=s>>8,r[e++]=s,s=s>>8,r[e++]=s,s=s>>8,r[e++]=s,e}function yt(r,t,e,n,i){xt(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e+7]=o,o=o>>8,r[e+6]=o,o=o>>8,r[e+5]=o,o=o>>8,r[e+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return r[e+3]=s,s=s>>8,r[e+2]=s,s=s>>8,r[e+1]=s,s=s>>8,r[e]=s,e+8}a.prototype.writeBigUInt64LE=x(function(t,e=0){return mt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});a.prototype.writeBigUInt64BE=x(function(t,e=0){return yt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});a.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let u=Math.pow(2,8*n-1);h(this,t,e,n,u-1,-u)}let o=0,s=1,c=0;for(this[e]=t&255;++o<n&&(s*=256);)t<0&&c===0&&this[e+o-1]!==0&&(c=1),this[e+o]=(t/s>>0)-c&255;return e+n};a.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let u=Math.pow(2,8*n-1);h(this,t,e,n,u-1,-u)}let o=n-1,s=1,c=0;for(this[e+o]=t&255;--o>=0&&(s*=256);)t<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(t/s>>0)-c&255;return e+n};a.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};a.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};a.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};a.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};a.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||h(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};a.prototype.writeBigInt64LE=x(function(t,e=0){return mt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});a.prototype.writeBigInt64BE=x(function(t,e=0){return yt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function gt(r,t,e,n,i,o){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function _t(r,t,e,n,i){return t=+t,e=e>>>0,i||gt(r,t,e,4,34028234663852886e22,-34028234663852886e22),N.write(r,t,e,n,23,4),e+4}a.prototype.writeFloatLE=function(t,e,n){return _t(this,t,e,!0,n)};a.prototype.writeFloatBE=function(t,e,n){return _t(this,t,e,!1,n)};function wt(r,t,e,n,i){return t=+t,e=e>>>0,i||gt(r,t,e,8,17976931348623157e292,-17976931348623157e292),N.write(r,t,e,n,52,8),e+8}a.prototype.writeDoubleLE=function(t,e,n){return wt(this,t,e,!0,n)};a.prototype.writeDoubleBE=function(t,e,n){return wt(this,t,e,!1,n)};a.prototype.copy=function(t,e,n,i){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);let o=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),e),o};a.prototype.fill=function(t,e,n,i){if(typeof t=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let s=t.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(t=s)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=e;o<n;++o)this[o]=t;else{let s=a.isBuffer(t)?t:a.from(t,i),c=s.length;if(c===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=s[o%c]}return this};var T={};function I(r,t,e){T[r]=class extends e{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}I("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);I("ERR_INVALID_ARG_TYPE",function(r,t){return`The "${r}" argument must be of type number. Received type ${typeof t}`},TypeError);I("ERR_OUT_OF_RANGE",function(r,t,e){let n=`The value of "${r}" is out of range.`,i=e;return Number.isInteger(e)&&Math.abs(e)>2**32?i=ut(String(e)):typeof e=="bigint"&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=ut(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ut(r){let t="",e=r.length,n=r[0]==="-"?1:0;for(;e>=n+4;e-=3)t=`_${r.slice(e-3,e)}${t}`;return`${r.slice(0,e)}${t}`}function _e(r,t,e){A(t,"offset"),(r[t]===void 0||r[t+e]===void 0)&&v(t,r.length-(e+1))}function xt(r,t,e,n,i,o){if(r>e||r<t){let s=typeof t=="bigint"?"n":"",c;throw o>3?t===0||t===BigInt(0)?c=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:c=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:c=`>= ${t}${s} and <= ${e}${s}`,new T.ERR_OUT_OF_RANGE("value",c,r)}_e(n,i,o)}function A(r,t){if(typeof r!="number")throw new T.ERR_INVALID_ARG_TYPE(t,"number",r)}function v(r,t,e){throw Math.floor(r)!==r?(A(r,e),new T.ERR_OUT_OF_RANGE(e||"offset","an integer",r)):t<0?new T.ERR_BUFFER_OUT_OF_BOUNDS:new T.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,r)}var we=/[^+/0-9A-Za-z-_]/g;function xe(r){if(r=r.split("=")[0],r=r.trim().replace(we,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Y(r,t){t=t||1/0;let e,n=r.length,i=null,o=[];for(let s=0;s<n;++s){if(e=r.charCodeAt(s),e>55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function Ee(r){let t=[];for(let e=0;e<r.length;++e)t.push(r.charCodeAt(e)&255);return t}function Be(r,t){let e,n,i,o=[];for(let s=0;s<r.length&&!((t-=2)<0);++s)e=r.charCodeAt(s),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function Et(r){return z.toByteArray(xe(r))}function $(r,t,e,n){let i;for(i=0;i<n&&!(i+e>=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function _(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function Z(r){return r!==r}var be=function(){let r="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let i=0;i<16;++i)t[n+i]=r[e]+r[i]}return t}();function x(r){return typeof BigInt>"u"?Te:r}function Te(){throw new Error("BigInt not supported")}});var Ce=Gt(Bt());var q={};Kt(q,{backoff:()=>At,chain:()=>Ft,conditionalDelay:()=>Tt,defaultStrategy:()=>Q,maxAttempts:()=>Ae,once:()=>bt,throttle:()=>Fe,timeout:()=>Nt});var Ne=5*60*1e3;function Q(){return Ft(Tt(bt(),1e3),At(1e3,1.2),Nt(Ne))}function bt(){let r=!0;return async()=>r?(r=!1,!0):!1}function Tt(r,t){return async(e,n,i)=>{if(await r(e,n,i))return new Promise(o=>setTimeout(o,t))}}function Ae(r){let t=r;return async(e,n,i)=>{if(--t<=0)throw new Error(`Failed to retrieve a reply for request after ${r} attempts:
2
- Request ID: ${S(n)}
3
- Request status: ${i}
4
- `)}}function Fe(r){return()=>new Promise(t=>setTimeout(t,r))}function Nt(r){let t=Date.now()+r;return async(e,n,i)=>{if(Date.now()>t)throw new Error(`Request timed out after ${r} msec:
5
- Request ID: ${S(n)}
6
- Request status: ${i}
7
- `)}}function At(r,t){let e=r;return()=>new Promise(n=>setTimeout(()=>{e*=t,n()},e))}function Ft(...r){return async(t,e,n)=>{for(let i of r)await i(t,e,n)}}var wr=Symbol.for("ic-agent-metadata");var xr={pollingStrategyFactory:q.defaultStrategy};var Oe=(r=>(r[r.FractionalMoreThan8Decimals=0]="FractionalMoreThan8Decimals",r[r.InvalidFormat=1]="InvalidFormat",r[r.FractionalTooManyDecimals=2]="FractionalTooManyDecimals",r))(Oe||{}),Zr=BigInt(1e8);var D=r=>r==null,L=r=>!D(r);var Pe=class extends Error{},b=(r,t)=>{if(r==null)throw new Pe(t)};var Ut="abcdefghijklmnopqrstuvwxyz234567",O=Object.create(null);for(let r=0;r<Ut.length;r++)O[Ut[r]]=r;O[0]=O.o;O[1]=O.i;var Lr=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);var k=r=>L(r)?[r]:[];var H=()=>typeof window<"u";var Ct="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var R=(r=21)=>{let t="",e=crypto.getRandomValues(new Uint8Array(r|=0));for(;r--;)t+=Ct[e[r]&63];return t};var St=()=>BigInt(Date.now())*BigInt(1e6);var P=()=>({collected_at:St(),updated_at:[],version:[]}),V=()=>{let{userAgent:r}=navigator;return{user_agent:k(r)}};var Ve="Analytics worker not initialized. Did you call `initOrbiter`?",U=r=>{D(r)&&console.warn(Ve)};var vt=async r=>{let{onCLS:t,onFCP:e,onINP:n,onLCP:i,onTTFB:o}=await import("./web-vitals-7PFSGNUA.js"),s=c=>{(async()=>await je({...c,sessionId:r}))()};t(s),e(s),n(s),i(s),o(s)},je=async r=>{let t=Me(r);if(t==="unknown"){console.warn("Performance metric ignored. Unknown metric name.",r);return}if(t==="deprecated")return;await(await import("./idb.services-DRO55BUZ.js")).setPerformanceMetric({key:R(),view:t})},Me=({sessionId:r,name:t,value:e,delta:n,id:i,navigationType:o})=>{let c=(()=>{switch(t){case"CLS":return{CLS:null};case"FCP":return{FCP:null};case"INP":return{INP:null};case"LCP":return{LCP:null};case"TTFB":return{TTFB:null};case"FID":return"deprecated";default:return"unknown"}})();if(c==="unknown"||c==="deprecated")return c;let p={value:e,delta:n,id:i,navigation_type:k((()=>{switch(o){case"navigate":return{Navigate:null};case"restore":return{Restore:null};case"reload":return{Reload:null};case"back-forward":return{BackForward:null};case"back-forward-cache":return{BackForwardCache:null};case"prerender":return{Prerender:null};default:return}})())},{location:{href:f}}=document,{updated_at:l,...zt}=P();return{href:f,metric_name:c,session_id:r,data:{WebVitalsMetric:p},...V(),...zt}};var $e=()=>{if(!(typeof crypto>"u"))return R()},C=$e(),m,Ot=r=>{let{path:t}=r.worker??{},e=t??"./workers/analytics.worker.js";m=new Worker(e);let n=()=>console.warn("Unable to connect to the analytics web worker. Have you deployed it?");return m?.addEventListener("error",n,!1),He(r),{cleanup(){m?.removeEventListener("error",n,!1)}}},Pt=()=>{let r=async()=>await jt(),t=new Proxy(history.pushState,{apply:async(e,n,i)=>{e.apply(n,i),await r()}});return history.pushState=t,addEventListener("popstate",r,{passive:!0}),{cleanup(){t=null,removeEventListener("popstate",r,!1)}}},tt="No session ID initialized.",et=async()=>{if(!H())return;b(C,tt);let{title:r,location:{href:t},referrer:e}=document,{innerWidth:n,innerHeight:i}=window,{timeZone:o}=Intl.DateTimeFormat().resolvedOptions(),s={title:r,href:t,referrer:k(L(e)&&e!==""?e:void 0),device:{inner_width:n,inner_height:i},time_zone:o,session_id:C,...V(),...P()};await(await import("./idb.services-DRO55BUZ.js")).setPageView({key:R(),view:s})},Vt=async({options:r})=>{H()&&r?.performance!==!1&&(b(C,tt),await vt(C))},jt=async()=>{U(m),await et(),m?.postMessage({msg:"junoTrackPageView"})},qe=async r=>{if(!H())return;b(C,tt),U(m),await(await import("./idb.services-DRO55BUZ.js")).setTrackEvent({key:R(),track:{...r,session_id:C,...V(),...P()}}),m?.postMessage({msg:"junoTrackEvent"})},He=r=>{U(m),m?.postMessage({msg:"junoInitEnvironment",data:r})},Mt=()=>{U(m),m?.postMessage({msg:"junoStartTrackTimer"})},$t=()=>{U(m),m?.postMessage({msg:"junoStopTracker"})};var qt=()=>{let r=()=>typeof import.meta<"u"&&typeof import.meta.env<"u"?import.meta.env?.VITE_SATELLITE_ID??import.meta.env?.PUBLIC_SATELLITE_ID:void 0;return typeof process<"u"?process.env?.NEXT_PUBLIC_SATELLITE_ID??r():r()},Ht=()=>{let r=()=>typeof import.meta<"u"&&typeof import.meta.env<"u"?import.meta.env?.VITE_ORBITER_ID??import.meta.env?.PUBLIC_ORBITER_ID:void 0;return typeof process<"u"?process.env?.NEXT_PUBLIC_ORBITER_ID??r():r()},Wt=()=>{let r=()=>typeof import.meta<"u"&&typeof import.meta.env<"u"?import.meta.env?.VITE_CONTAINER??import.meta.env?.PUBLIC_CONTAINER:void 0;return typeof process<"u"?process.env?.NEXT_PUBLIC_CONTAINER??r():r()};var We=r=>{let t=r?.satelliteId??qt();b(t,"Satellite ID is not configured. Orbiter cannot be initialized without a target Satellite.");let e=r?.orbiterId??Ht();b(e,"Orbiter ID is not configured. The analytics cannot be initialized without an Orbiter.");let n=r?.container??Wt();return{orbiterId:e,satelliteId:t,container:n,worker:r?.worker,options:r?.options}},Sn=async r=>{await et();let t=We(r),{cleanup:e}=Ot(t),{cleanup:n}=Pt();return await Vt(t),Mt(),()=>{$t(),e(),n()}};export{Sn as initOrbiter,qe as trackEvent,jt as trackPageView};
8
- /*! Bundled license information:
9
-
10
- buffer/index.js:
11
- (*!
12
- * The buffer module from node.js, for the browser.
13
- *
14
- * @author Feross Aboukhadijeh <https://feross.org>
15
- * @license MIT
16
- *)
17
- */
1
+ import{assertNonNullish as S}from"@dfinity/utils";import{assertNonNullish as f,nonNullish as W,toNullable as F}from"@dfinity/utils";import{isBrowser as w}from"@junobuild/utils";var I="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var c=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=I[n[e]&63];return t};import{toNullable as B}from"@dfinity/utils";var y=()=>BigInt(Date.now())*BigInt(1e6);var u=()=>({collected_at:y(),updated_at:[],version:[]}),l=()=>{let{userAgent:e}=navigator;return{user_agent:B(e)}};import{isNullish as R}from"@dfinity/utils";var A="Analytics worker not initialized. Did you call `initOrbiter`?",p=e=>{R(e)&&console.warn(A)};import{toNullable as O}from"@dfinity/utils";var k=async e=>{let{onCLS:t,onFCP:n,onINP:r,onLCP:a,onTTFB:d}=await import("./web-vitals-JGDN2KW5.js"),i=s=>{(async()=>await U({...s,sessionId:e}))()};t(i),n(i),r(i),a(i),d(i)},U=async e=>{let t=V(e);if(t==="unknown"){console.warn("Performance metric ignored. Unknown metric name.",e);return}if(t==="deprecated")return;await(await import("./idb.services-CVJFLYYN.js")).setPerformanceMetric({key:c(),view:t})},V=({sessionId:e,name:t,value:n,delta:r,id:a,navigationType:d})=>{let s=(()=>{switch(t){case"CLS":return{CLS:null};case"FCP":return{FCP:null};case"INP":return{INP:null};case"LCP":return{LCP:null};case"TTFB":return{TTFB:null};case"FID":return"deprecated";default:return"unknown"}})();if(s==="unknown"||s==="deprecated")return s;let C={value:n,delta:r,id:a,navigation_type:O((()=>{switch(d){case"navigate":return{Navigate:null};case"restore":return{Restore:null};case"reload":return{Reload:null};case"back-forward":return{BackForward:null};case"back-forward-cache":return{BackForwardCache:null};case"prerender":return{Prerender:null};default:return}})())},{location:{href:L}}=document,{updated_at:K,...D}=u();return{href:L,metric_name:s,session_id:e,data:{WebVitalsMetric:C},...l(),...D}};var j=()=>{if(!(typeof crypto>"u"))return c()},m=j(),o,T=e=>{let{path:t}=e.worker??{},n=t??"./workers/analytics.worker.js";o=new Worker(n);let r=()=>console.warn("Unable to connect to the analytics web worker. Have you deployed it?");return o?.addEventListener("error",r,!1),H(e),{cleanup(){o?.removeEventListener("error",r,!1)}}},P=()=>{let e=async()=>await b(),t=new Proxy(history.pushState,{apply:async(n,r,a)=>{n.apply(r,a),await e()}});return history.pushState=t,addEventListener("popstate",e,{passive:!0}),{cleanup(){t=null,removeEventListener("popstate",e,!1)}}},g="No session ID initialized.",v=async()=>{if(!w())return;f(m,g);let{title:e,location:{href:t},referrer:n}=document,{innerWidth:r,innerHeight:a}=window,{timeZone:d}=Intl.DateTimeFormat().resolvedOptions(),i={title:e,href:t,referrer:F(W(n)&&n!==""?n:void 0),device:{inner_width:r,inner_height:a},time_zone:d,session_id:m,...l(),...u()};await(await import("./idb.services-CVJFLYYN.js")).setPageView({key:c(),view:i})},E=async({options:e})=>{w()&&e?.performance!==!1&&(f(m,g),await k(m))},b=async()=>{p(o),await v(),o?.postMessage({msg:"junoTrackPageView"})},z=async e=>{if(!w())return;f(m,g),p(o),await(await import("./idb.services-CVJFLYYN.js")).setTrackEvent({key:c(),track:{...e,session_id:m,...l(),...u()}}),o?.postMessage({msg:"junoTrackEvent"})},H=e=>{p(o),o?.postMessage({msg:"junoInitEnvironment",data:e})},M=()=>{p(o),o?.postMessage({msg:"junoStartTrackTimer"})},N=()=>{p(o),o?.postMessage({msg:"junoStopTracker"})};var _=()=>{let e=()=>typeof import.meta<"u"&&typeof import.meta.env<"u"?import.meta.env?.VITE_SATELLITE_ID??import.meta.env?.PUBLIC_SATELLITE_ID:void 0;return typeof process<"u"?process.env?.NEXT_PUBLIC_SATELLITE_ID??e():e()},h=()=>{let e=()=>typeof import.meta<"u"&&typeof import.meta.env<"u"?import.meta.env?.VITE_ORBITER_ID??import.meta.env?.PUBLIC_ORBITER_ID:void 0;return typeof process<"u"?process.env?.NEXT_PUBLIC_ORBITER_ID??e():e()},x=()=>{let e=()=>typeof import.meta<"u"&&typeof import.meta.env<"u"?import.meta.env?.VITE_CONTAINER??import.meta.env?.PUBLIC_CONTAINER:void 0;return typeof process<"u"?process.env?.NEXT_PUBLIC_CONTAINER??e():e()};var X=e=>{let t=e?.satelliteId??_();S(t,"Satellite ID is not configured. Orbiter cannot be initialized without a target Satellite.");let n=e?.orbiterId??h();S(n,"Orbiter ID is not configured. The analytics cannot be initialized without an Orbiter.");let r=e?.container??x();return{orbiterId:n,satelliteId:t,container:r,worker:e?.worker,options:e?.options}},ye=async e=>{await v();let t=X(e),{cleanup:n}=T(t),{cleanup:r}=P();return await E(t),M(),()=>{N(),n(),r()}};export{ye as initOrbiter,z as trackEvent,b as trackPageView};
18
2
  //# sourceMappingURL=index.js.map