@searchcraft/javascript-sdk 0.13.0 → 0.13.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.
- package/dist/components/index.d.ts +73 -1
- package/dist/components/index.js +58 -634
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-e8d97093.js → p-BV4HUriZ.js} +15 -10
- package/dist/components/p-BV4HUriZ.js.map +1 -0
- package/dist/components/{p-46ddde99.js → p-B_415D4A.js} +8 -5
- package/dist/components/p-B_415D4A.js.map +1 -0
- package/dist/components/{p-afe7ce60.js → p-BbSxfaD7.js} +12 -9
- package/dist/components/p-BbSxfaD7.js.map +1 -0
- package/dist/components/p-BfTCfPZ1.js +95 -0
- package/dist/components/p-BfTCfPZ1.js.map +1 -0
- package/dist/components/p-BlYgaV0q.js +1373 -0
- package/dist/components/p-BlYgaV0q.js.map +1 -0
- package/dist/components/{p-76d95772.js → p-C-wcIch1.js} +16 -13
- package/dist/components/p-C-wcIch1.js.map +1 -0
- package/dist/components/{p-87435aac.js → p-C1S92_N8.js} +12 -8
- package/dist/components/p-C1S92_N8.js.map +1 -0
- package/dist/components/{p-acf23bab.js → p-C681KruS.js} +10 -7
- package/dist/components/p-C681KruS.js.map +1 -0
- package/dist/components/{p-3d2107af.js → p-C7ZK8CYu.js} +11 -8
- package/dist/components/p-C7ZK8CYu.js.map +1 -0
- package/dist/components/{p-38b2dad0.js → p-Cju73I1E.js} +11 -8
- package/dist/components/p-Cju73I1E.js.map +1 -0
- package/dist/components/{p-e30203b1.js → p-D0j0UFpV.js} +2 -1
- package/dist/components/p-D0j0UFpV.js.map +1 -0
- package/dist/components/{p-16181756.js → p-D5p2scT9.js} +11 -8
- package/dist/components/p-D5p2scT9.js.map +1 -0
- package/dist/components/{p-5365011f.js → p-DO5g2x-l.js} +861 -186
- package/dist/components/p-DO5g2x-l.js.map +1 -0
- package/dist/components/{p-73db9122.js → p-Dc7S4y3b.js} +9 -6
- package/dist/components/p-Dc7S4y3b.js.map +1 -0
- package/dist/components/{p-f2585cdf.js → p-DjPZkCLP.js} +8 -5
- package/dist/components/p-DjPZkCLP.js.map +1 -0
- package/dist/components/{p-3286bbb3.js → p-DotXR-Gz.js} +10 -7
- package/dist/components/p-DotXR-Gz.js.map +1 -0
- package/dist/components/{p-90bc1590.js → p-Dr9rPC9v.js} +11 -8
- package/dist/components/p-Dr9rPC9v.js.map +1 -0
- package/dist/components/{p-fa799946.js → p-L4PwHqQC.js} +9 -6
- package/dist/components/p-L4PwHqQC.js.map +1 -0
- package/dist/components/{p-b4b67072.js → p-_aHgRsRD.js} +4 -3
- package/dist/components/p-_aHgRsRD.js.map +1 -0
- package/dist/components/{p-d54771ef.js → p-i8oXh7db.js} +2 -1
- package/dist/components/p-i8oXh7db.js.map +1 -0
- package/dist/components/searchcraft-ad.js +2 -1
- package/dist/components/searchcraft-button.js +2 -1
- package/dist/components/searchcraft-error-message.js +2 -1
- package/dist/components/searchcraft-facet-list.js +2 -1
- package/dist/components/searchcraft-filter-panel.js +11 -8
- package/dist/components/searchcraft-filter-panel.js.map +1 -1
- package/dist/components/searchcraft-input-form.js +2 -1
- package/dist/components/searchcraft-input-label.js +2 -1
- package/dist/components/searchcraft-loading.js +2 -1
- package/dist/components/searchcraft-pagination.js +12 -8
- package/dist/components/searchcraft-pagination.js.map +1 -1
- package/dist/components/searchcraft-popover-button.js +9 -6
- package/dist/components/searchcraft-popover-button.js.map +1 -1
- package/dist/components/searchcraft-popover-footer.js +2 -1
- package/dist/components/searchcraft-popover-form.js +17 -14
- package/dist/components/searchcraft-popover-form.js.map +1 -1
- package/dist/components/searchcraft-popover-list-item.js +2 -1
- package/dist/components/searchcraft-popover-list-view.js +2 -1
- package/dist/components/searchcraft-results-info.js +10 -7
- package/dist/components/searchcraft-results-info.js.map +1 -1
- package/dist/components/searchcraft-search-result.js +2 -1
- package/dist/components/searchcraft-search-results-per-page.js +11 -7
- package/dist/components/searchcraft-search-results-per-page.js.map +1 -1
- package/dist/components/searchcraft-search-results.js +11 -8
- package/dist/components/searchcraft-search-results.js.map +1 -1
- package/dist/components/searchcraft-select.js +2 -1
- package/dist/components/searchcraft-slider.js +2 -1
- package/dist/components/searchcraft-summary-box.js +12 -67
- package/dist/components/searchcraft-summary-box.js.map +1 -1
- package/dist/components/searchcraft-theme.js +8 -5
- package/dist/components/searchcraft-theme.js.map +1 -1
- package/dist/components/searchcraft-toggle-button.js +2 -1
- package/dist/hydrate/index.d.ts +40 -7
- package/dist/hydrate/index.js +3095 -2370
- package/dist/hydrate/index.mjs +3094 -2369
- package/dist/types/classes/SearchcraftCore.d.ts +1 -0
- package/dist/types/clients/MeasureClient.d.ts +2 -1
- package/dist/types/clients/SearchClient.d.ts +1 -1
- package/dist/types/clients/ad-clients/AdClient.d.ts +1 -1
- package/dist/types/clients/ad-clients/NativoClient.d.ts +1 -1
- package/dist/types/components/searchcraft-popover-form/searchcraft-popover-form.d.ts +1 -1
- package/dist/types/components/searchcraft-popover-list-item/searchcraft-popover-list-item.d.ts +1 -1
- package/dist/types/components/searchcraft-popover-list-view/searchcraft-popover-list-view.d.ts +1 -1
- package/dist/types/components/searchcraft-search-results/searchcraft-search-results.d.ts +2 -2
- package/dist/types/components.d.ts +70 -0
- package/dist/types/stencil-public-runtime.d.ts +84 -8
- package/package.json +2 -2
- package/dist/components/p-16181756.js.map +0 -1
- package/dist/components/p-3286bbb3.js.map +0 -1
- package/dist/components/p-38b2dad0.js.map +0 -1
- package/dist/components/p-3d2107af.js.map +0 -1
- package/dist/components/p-46ddde99.js.map +0 -1
- package/dist/components/p-5365011f.js.map +0 -1
- package/dist/components/p-5cdc6210.js +0 -82
- package/dist/components/p-5cdc6210.js.map +0 -1
- package/dist/components/p-73db9122.js.map +0 -1
- package/dist/components/p-76d95772.js.map +0 -1
- package/dist/components/p-87435aac.js.map +0 -1
- package/dist/components/p-90bc1590.js.map +0 -1
- package/dist/components/p-acf23bab.js.map +0 -1
- package/dist/components/p-afe7ce60.js.map +0 -1
- package/dist/components/p-b4b67072.js.map +0 -1
- package/dist/components/p-d54771ef.js.map +0 -1
- package/dist/components/p-e2a10337.js +0 -1355
- package/dist/components/p-e2a10337.js.map +0 -1
- package/dist/components/p-e30203b1.js.map +0 -1
- package/dist/components/p-e8d97093.js.map +0 -1
- package/dist/components/p-f2585cdf.js.map +0 -1
- package/dist/components/p-fa799946.js.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
2
|
-
import { n as nanoid } from './p-
|
|
3
|
-
import { D as DEFAULT_CORE_INSTANCE_ID, r as registry } from './p-
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-DO5g2x-l.js';
|
|
2
|
+
import { n as nanoid } from './p-C1S92_N8.js';
|
|
3
|
+
import { D as DEFAULT_CORE_INSTANCE_ID, r as registry } from './p-D0j0UFpV.js';
|
|
4
4
|
export { SearchcraftAd, defineCustomElement as defineCustomElementSearchcraftAd } from './searchcraft-ad.js';
|
|
5
5
|
export { SearchcraftButton, defineCustomElement as defineCustomElementSearchcraftButton } from './searchcraft-button.js';
|
|
6
6
|
export { SearchcraftErrorMessage, defineCustomElement as defineCustomElementSearchcraftErrorMessage } from './searchcraft-error-message.js';
|
|
@@ -83,7 +83,7 @@ class SearchcraftLogger {
|
|
|
83
83
|
}
|
|
84
84
|
const Logger = new SearchcraftLogger({ logLevel: LogLevel.NONE });
|
|
85
85
|
|
|
86
|
-
function e(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{c(t.next(e));}catch(e){a(e);}}function u(e){try{c(t.throw(e));}catch(e){a(e);}}function c(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r);}))).then(i,u);}c((t=t.apply(e,r||[])).next());}))}function r(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&u[0]?t.return:u[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,u[1])).done)return o;switch(t=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,t=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=r.call(e,i);}catch(e){u=[6,e],t=0;}finally{n=o=0;}if(5&u[0])throw u[1];return {value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}"function"==typeof SuppressedError&&SuppressedError;var n={exclude:[]};var o={},a={timeout:"true"},i=function(e,r){"undefined"!=typeof window&&(o[e]=r);},u=function(){return Object.fromEntries(Object.entries(o).filter((function(e){var r,t=e[0];return !(null===(r=null==n?void 0:n.exclude)||void 0===r?void 0:r.includes(t))})).map((function(e){return [e[0],(0, e[1])()]})))};function c(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var s=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l(e,r){return e<<r|e>>>32-r}function f(e,r){var n;if(void 0===r&&(r=0),r=r?0|r:0,"string"==typeof e&&(n=e,e=(new TextEncoder).encode(n).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var t=new Uint32Array([r,r,r,r]);!function(e,r){for(var n=e.byteLength/16|0,t=new Uint32Array(e,0,4*n),o=0;o<n;o++){var a=t.subarray(4*o,4*(o+1));a[0]=Math.imul(a[0],s[0]),a[0]=l(a[0],15),a[0]=Math.imul(a[0],s[1]),r[0]=r[0]^a[0],r[0]=l(r[0],19),r[0]=r[0]+r[1],r[0]=Math.imul(r[0],5)+1444728091,a[1]=Math.imul(a[1],s[1]),a[1]=l(a[1],16),a[1]=Math.imul(a[1],s[2]),r[1]=r[1]^a[1],r[1]=l(r[1],17),r[1]=r[1]+r[2],r[1]=Math.imul(r[1],5)+197830471,a[2]=Math.imul(a[2],s[2]),a[2]=l(a[2],17),a[2]=Math.imul(a[2],s[3]),r[2]=r[2]^a[2],r[2]=l(r[2],15),r[2]=r[2]+r[3],r[2]=Math.imul(r[2],5)+2530024501,a[3]=Math.imul(a[3],s[3]),a[3]=l(a[3],18),a[3]=Math.imul(a[3],s[0]),r[3]=r[3]^a[3],r[3]=l(r[3],13),r[3]=r[3]+r[0],r[3]=Math.imul(r[3],5)+850148119;}}(e,t),function(e,r){var n=e.byteLength/16|0,t=e.byteLength%16,o=new Uint32Array(4),a=new Uint8Array(e,16*n,t);switch(t){case 15:o[3]=o[3]^a[14]<<16;case 14:o[3]=o[3]^a[13]<<8;case 13:o[3]=o[3]^a[12]<<0,o[3]=Math.imul(o[3],s[3]),o[3]=l(o[3],18),o[3]=Math.imul(o[3],s[0]),r[3]=r[3]^o[3];case 12:o[2]=o[2]^a[11]<<24;case 11:o[2]=o[2]^a[10]<<16;case 10:o[2]=o[2]^a[9]<<8;case 9:o[2]=o[2]^a[8]<<0,o[2]=Math.imul(o[2],s[2]),o[2]=l(o[2],17),o[2]=Math.imul(o[2],s[3]),r[2]=r[2]^o[2];case 8:o[1]=o[1]^a[7]<<24;case 7:o[1]=o[1]^a[6]<<16;case 6:o[1]=o[1]^a[5]<<8;case 5:o[1]=o[1]^a[4]<<0,o[1]=Math.imul(o[1],s[1]),o[1]=l(o[1],16),o[1]=Math.imul(o[1],s[2]),r[1]=r[1]^o[1];case 4:o[0]=o[0]^a[3]<<24;case 3:o[0]=o[0]^a[2]<<16;case 2:o[0]=o[0]^a[1]<<8;case 1:o[0]=o[0]^a[0]<<0,o[0]=Math.imul(o[0],s[0]),o[0]=l(o[0],15),o[0]=Math.imul(o[0],s[1]),r[0]=r[0]^o[0];}}(e,t),function(e,r){r[0]=r[0]^e.byteLength,r[1]=r[1]^e.byteLength,r[2]=r[2]^e.byteLength,r[3]=r[3]^e.byteLength,r[0]=r[0]+r[1]|0,r[0]=r[0]+r[2]|0,r[0]=r[0]+r[3]|0,r[1]=r[1]+r[0]|0,r[2]=r[2]+r[0]|0,r[3]=r[3]+r[0]|0,r[0]=c(r[0]),r[1]=c(r[1]),r[2]=c(r[2]),r[3]=c(r[3]),r[0]=r[0]+r[1]|0,r[0]=r[0]+r[2]|0,r[0]=r[0]+r[3]|0,r[1]=r[1]+r[0]|0,r[2]=r[2]+r[0]|0,r[3]=r[3]+r[0]|0;}(e,t);var o=new Uint8Array(t.buffer);return Array.from(o).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}function d(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e);}))}function m(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,d(r,n)])})))}function v(){return e(this,void 0,void 0,(function(){var e,t,o,i,c;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=u(),t=Object.keys(e),[4,m(Object.values(e),(null==n?void 0:n.timeout)||1e3,a)];case 1:return o=r.sent(),i=o.filter((function(e){return void 0!==e})),c={},i.forEach((function(e,r){c[t[r]]=e;})),[2,p(c,n.exclude||[])];case 2:throw r.sent();case 3:return [2]}}))}))}function p(e,r){var n={},t=function(t){if(e.hasOwnProperty(t)){var o=e[t];if("object"!=typeof o||Array.isArray(o))r.includes(t)||(n[t]=o);else {var a=p(o,r.map((function(e){return e.startsWith(t+".")?e.slice(t.length+1):e})));Object.keys(a).length>0&&(n[t]=a);}}};for(var o in e)t(o);return n}function g(n){return e(this,void 0,void 0,(function(){var e,t;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,v()];case 1:return e=r.sent(),t=f(JSON.stringify(e)),n?[2,{hash:t.toString(),data:e}]:[2,t.toString()];case 2:throw r.sent();case 3:return [2]}}))}))}function y(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function b(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(S(a));}var u=new Uint8ClampedArray(t);return new ImageData(u,r,n)}function S(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1;}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function M(){if("undefined"==typeof navigator)return {name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return {name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return {name:"unknown",version:"unknown"}}i("audio",(function(){return e(this,void 0,void 0,(function(){return r(this,(function(e){return [2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:y(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode});},n.startRendering();}catch(e){console.error("Error creating audio fingerprint:",e),r(e);}}))]}))}))}));var E="SamsungBrowser"!==M().name?1:3,P=280,A=20;"Firefox"!=M().name&&i("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:E},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=P,e.height=A;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:f(b(r,P,A).data.toString()).toString()});}))}));var C,x=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],T=["monospace","sans-serif","serif"];function k(e,r){if(!e)throw new Error("Canvas context not supported");return e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function R(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");if(n&&"getParameter"in n)try{var t=(n.getParameter(n.VENDOR)||"").toString(),o=(n.getParameter(n.RENDERER)||"").toString(),a={vendor:t,renderer:o,version:(n.getParameter(n.VERSION)||"").toString(),shadingLanguageVersion:(n.getParameter(n.SHADING_LANGUAGE_VERSION)||"").toString()};if(!o.length||!t.length){var i=n.getExtension("WEBGL_debug_renderer_info");if(i){var u=(n.getParameter(i.UNMASKED_VENDOR_WEBGL)||"").toString(),c=(n.getParameter(i.UNMASKED_RENDERER_WEBGL)||"").toString();u&&(a.vendorUnmasked=u),c&&(a.rendererUnmasked=c);}}return a}catch(e){}return "undefined"}function I(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function O(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1;}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e]);})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t);})),n}function L(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r));}));})),e}function _(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)try{for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r}catch(e){return 0}return 0}"Firefox"!=M().name&&i("fonts",(function(){var n=this;return new Promise((function(t,o){try{!function(n){var t;e(this,void 0,void 0,(function(){var e,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,u)})))];case 1:return r.sent(),[3,0];case 2:if((e=document.createElement("iframe")).setAttribute("frameBorder","0"),(o=e.style).setProperty("position","fixed"),o.setProperty("display","block","important"),o.setProperty("visibility","visible"),o.setProperty("border","0"),o.setProperty("opacity","0"),e.src="about:blank",document.body.appendChild(e),!(a=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return n({iframe:a}),setTimeout((function(){document.body.removeChild(e);}),0),[2]}var i,u;}))}));}((function(o){var a=o.iframe;return e(n,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return e=a.createElement("canvas"),n=e.getContext("2d"),o=T.map((function(e){return k(n,e)})),i={},x.forEach((function(e){var r=k(n,e);o.includes(r)||(i[e]=r);})),t(i),[2]}))}))}));}catch(e){o({error:"unsupported"});}}))})),i("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:R(),architecture:I(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||0});}))})),i("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone});}))})),i("permissions",(function(){return e(this,void 0,void 0,(function(){var t;return r(this,(function(o){return C=(null==n?void 0:n.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],t=Array.from({length:(null==n?void 0:n.retries)||3},(function(){return function(){return e(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=C,r.label=1;case 1:if(!(n<t.length))return [3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return [2,e]}}))}))}()})),[2,Promise.all(t).then((function(e){return O(e,C)}))]}))}))})),i("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"));}return new Promise((function(r){r({plugins:e});}))})),i("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:L()});}))})),i("system",(function(){return new Promise((function(e){var r=M();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:r.name,version:r.version},applePayVersion:_()});}))}));var D,B="SamsungBrowser"!==M().name?1:3,U=null;i("webgl",(function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){"undefined"!=typeof document&&((D=document.createElement("canvas")).width=200,D.height=100,U=D.getContext("webgl"));try{if(!U)throw new Error("WebGL not supported");return e=Array.from({length:B},(function(){return function(){try{if(!U)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=U.createShader(U.VERTEX_SHADER),t=U.createShader(U.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(U.shaderSource(n,e),U.shaderSource(t,r),U.compileShader(n),!U.getShaderParameter(n,U.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+U.getShaderInfoLog(n));if(U.compileShader(t),!U.getShaderParameter(t,U.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+U.getShaderInfoLog(t));var o=U.createProgram();if(!o)throw new Error("Failed to create shader program");if(U.attachShader(o,n),U.attachShader(o,t),U.linkProgram(o),!U.getProgramParameter(o,U.LINK_STATUS))throw new Error("Shader program linking failed: "+U.getProgramInfoLog(o));U.useProgram(o);for(var a=137,i=new Float32Array(4*a),u=2*Math.PI/a,c=0;c<a;c++){var s=c*u;i[4*c]=0,i[4*c+1]=0,i[4*c+2]=Math.cos(s)*(D.width/2),i[4*c+3]=Math.sin(s)*(D.height/2);}var l=U.createBuffer();U.bindBuffer(U.ARRAY_BUFFER,l),U.bufferData(U.ARRAY_BUFFER,i,U.STATIC_DRAW);var f=U.getAttribLocation(o,"position");U.enableVertexAttribArray(f),U.vertexAttribPointer(f,2,U.FLOAT,!1,0,0),U.viewport(0,0,D.width,D.height),U.clearColor(0,0,0,1),U.clear(U.COLOR_BUFFER_BIT),U.drawArrays(U.LINES,0,2*a);var d=new Uint8ClampedArray(D.width*D.height*4);return U.readPixels(0,0,D.width,D.height,U.RGBA,U.UNSIGNED_BYTE,d),new ImageData(d,D.width,D.height)}catch(e){return new ImageData(1,1)}finally{U&&(U.bindBuffer(U.ARRAY_BUFFER,null),U.useProgram(null),U.viewport(0,0,U.drawingBufferWidth,U.drawingBufferHeight),U.clearColor(0,0,0,0));}}()})),[2,{commonImageHash:f(b(e,D.width,D.height).data.toString()).toString()}]}catch(e){return [2,{webgl:"unsupported"}]}return [2]}))}))}));var F=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o);}return a*o};i("math",(function(){return e(void 0,void 0,void 0,(function(){return r(this,(function(e){return [2,{acos:Math.acos(.5),asin:F(Math.asin,-1,1,97),atan:F(Math.atan,-1,1,97),cos:F(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:F(Math.sin,-Math.PI,Math.PI,97),sinh:F(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:F(Math.tan,0,2*Math.PI,97),tanh:F(Math.tanh,-9/7,7/9,97)}]}))}))}));
|
|
86
|
+
function e(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{c(t.next(e));}catch(e){a(e);}}function u(e){try{c(t.throw(e));}catch(e){a(e);}}function c(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r);}))).then(i,u);}c((t=t.apply(e,[])).next());}))}function r(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&u[0]?t.return:u[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,u[1])).done)return o;switch(t=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:false};case 5:i.label++,t=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=r.call(e,i);}catch(e){u=[6,e],t=0;}finally{n=o=0;}if(5&u[0])throw u[1];return {value:u[0]?u[1]:void 0,done:true}}([u,c])}}}"function"==typeof SuppressedError&&SuppressedError;var n={exclude:[]};var o={},a={timeout:"true"},i=function(e,r){"undefined"!=typeof window&&(o[e]=r);},u=function(){return Object.fromEntries(Object.entries(o).filter((function(e){var r,t=e[0];return !(null===(r=null==n?void 0:n.exclude)||void 0===r?void 0:r.includes(t))})).map((function(e){return [e[0],(0, e[1])()]})))};function c(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var s=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l(e,r){return e<<r|e>>>32-r}function f(e,r){var n;if(void 0===r&&(r=0),r=r?0|r:0,"string"==typeof e&&(n=e,e=(new TextEncoder).encode(n).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var t=new Uint32Array([r,r,r,r]);!function(e,r){for(var n=e.byteLength/16|0,t=new Uint32Array(e,0,4*n),o=0;o<n;o++){var a=t.subarray(4*o,4*(o+1));a[0]=Math.imul(a[0],s[0]),a[0]=l(a[0],15),a[0]=Math.imul(a[0],s[1]),r[0]=r[0]^a[0],r[0]=l(r[0],19),r[0]=r[0]+r[1],r[0]=Math.imul(r[0],5)+1444728091,a[1]=Math.imul(a[1],s[1]),a[1]=l(a[1],16),a[1]=Math.imul(a[1],s[2]),r[1]=r[1]^a[1],r[1]=l(r[1],17),r[1]=r[1]+r[2],r[1]=Math.imul(r[1],5)+197830471,a[2]=Math.imul(a[2],s[2]),a[2]=l(a[2],17),a[2]=Math.imul(a[2],s[3]),r[2]=r[2]^a[2],r[2]=l(r[2],15),r[2]=r[2]+r[3],r[2]=Math.imul(r[2],5)+2530024501,a[3]=Math.imul(a[3],s[3]),a[3]=l(a[3],18),a[3]=Math.imul(a[3],s[0]),r[3]=r[3]^a[3],r[3]=l(r[3],13),r[3]=r[3]+r[0],r[3]=Math.imul(r[3],5)+850148119;}}(e,t),function(e,r){var n=e.byteLength/16|0,t=e.byteLength%16,o=new Uint32Array(4),a=new Uint8Array(e,16*n,t);switch(t){case 15:o[3]=o[3]^a[14]<<16;case 14:o[3]=o[3]^a[13]<<8;case 13:o[3]=o[3]^a[12]<<0,o[3]=Math.imul(o[3],s[3]),o[3]=l(o[3],18),o[3]=Math.imul(o[3],s[0]),r[3]=r[3]^o[3];case 12:o[2]=o[2]^a[11]<<24;case 11:o[2]=o[2]^a[10]<<16;case 10:o[2]=o[2]^a[9]<<8;case 9:o[2]=o[2]^a[8]<<0,o[2]=Math.imul(o[2],s[2]),o[2]=l(o[2],17),o[2]=Math.imul(o[2],s[3]),r[2]=r[2]^o[2];case 8:o[1]=o[1]^a[7]<<24;case 7:o[1]=o[1]^a[6]<<16;case 6:o[1]=o[1]^a[5]<<8;case 5:o[1]=o[1]^a[4]<<0,o[1]=Math.imul(o[1],s[1]),o[1]=l(o[1],16),o[1]=Math.imul(o[1],s[2]),r[1]=r[1]^o[1];case 4:o[0]=o[0]^a[3]<<24;case 3:o[0]=o[0]^a[2]<<16;case 2:o[0]=o[0]^a[1]<<8;case 1:o[0]=o[0]^a[0]<<0,o[0]=Math.imul(o[0],s[0]),o[0]=l(o[0],15),o[0]=Math.imul(o[0],s[1]),r[0]=r[0]^o[0];}}(e,t),function(e,r){r[0]=r[0]^e.byteLength,r[1]=r[1]^e.byteLength,r[2]=r[2]^e.byteLength,r[3]=r[3]^e.byteLength,r[0]=r[0]+r[1]|0,r[0]=r[0]+r[2]|0,r[0]=r[0]+r[3]|0,r[1]=r[1]+r[0]|0,r[2]=r[2]+r[0]|0,r[3]=r[3]+r[0]|0,r[0]=c(r[0]),r[1]=c(r[1]),r[2]=c(r[2]),r[3]=c(r[3]),r[0]=r[0]+r[1]|0,r[0]=r[0]+r[2]|0,r[0]=r[0]+r[3]|0,r[1]=r[1]+r[0]|0,r[2]=r[2]+r[0]|0,r[3]=r[3]+r[0]|0;}(e,t);var o=new Uint8Array(t.buffer);return Array.from(o).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}function d(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e);}))}function m(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,d(r,n)])})))}function v(){return e(this,void 0,void 0,(function(){var e,t,o,i,c;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=u(),t=Object.keys(e),[4,m(Object.values(e),(null==n?void 0:n.timeout)||1e3,a)];case 1:return o=r.sent(),i=o.filter((function(e){return void 0!==e})),c={},i.forEach((function(e,r){c[t[r]]=e;})),[2,p(c,n.exclude||[])];case 2:throw r.sent();case 3:return [2]}}))}))}function p(e,r){var n={},t=function(t){if(e.hasOwnProperty(t)){var o=e[t];if("object"!=typeof o||Array.isArray(o))r.includes(t)||(n[t]=o);else {var a=p(o,r.map((function(e){return e.startsWith(t+".")?e.slice(t.length+1):e})));Object.keys(a).length>0&&(n[t]=a);}}};for(var o in e)t(o);return n}function g(n){return e(this,void 0,void 0,(function(){var e,t;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,v()];case 1:return e=r.sent(),t=f(JSON.stringify(e)),[2,t.toString()];case 2:throw r.sent();case 3:return [2]}}))}))}function y(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function b(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(S(a));}var u=new Uint8ClampedArray(t);return new ImageData(u,r,n)}function S(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1;}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function M(){if("undefined"==typeof navigator)return {name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return {name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return {name:"unknown",version:"unknown"}}i("audio",(function(){return e(this,void 0,void 0,(function(){return r(this,(function(e){return [2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:y(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode});},n.startRendering();}catch(e){console.error("Error creating audio fingerprint:",e),r(e);}}))]}))}))}));var E="SamsungBrowser"!==M().name?1:3,P=280,A=20;"Firefox"!=M().name&&i("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:E},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=P,e.height=A;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:f(b(r,P,A).data.toString()).toString()});}))}));var C,x=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],T=["monospace","sans-serif","serif"];function k(e,r){if(!e)throw new Error("Canvas context not supported");return e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function R(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");if(n&&"getParameter"in n)try{var t=(n.getParameter(n.VENDOR)||"").toString(),o=(n.getParameter(n.RENDERER)||"").toString(),a={vendor:t,renderer:o,version:(n.getParameter(n.VERSION)||"").toString(),shadingLanguageVersion:(n.getParameter(n.SHADING_LANGUAGE_VERSION)||"").toString()};if(!o.length||!t.length){var i=n.getExtension("WEBGL_debug_renderer_info");if(i){var u=(n.getParameter(i.UNMASKED_VENDOR_WEBGL)||"").toString(),c=(n.getParameter(i.UNMASKED_RENDERER_WEBGL)||"").toString();u&&(a.vendorUnmasked=u),c&&(a.rendererUnmasked=c);}}return a}catch(e){}return "undefined"}function I(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function O(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1;}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e]);})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t);})),n}function L(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r));}));})),e}function _(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)try{for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r}catch(e){return 0}return 0}"Firefox"!=M().name&&i("fonts",(function(){var n=this;return new Promise((function(t,o){try{!function(n){var t;e(this,void 0,void 0,(function(){var e,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,u)})))];case 1:return r.sent(),[3,0];case 2:if((e=document.createElement("iframe")).setAttribute("frameBorder","0"),(o=e.style).setProperty("position","fixed"),o.setProperty("display","block","important"),o.setProperty("visibility","visible"),o.setProperty("border","0"),o.setProperty("opacity","0"),e.src="about:blank",document.body.appendChild(e),!(a=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return n({iframe:a}),setTimeout((function(){document.body.removeChild(e);}),0),[2]}var i,u;}))}));}((function(o){var a=o.iframe;return e(n,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return e=a.createElement("canvas"),n=e.getContext("2d"),o=T.map((function(e){return k(n,e)})),i={},x.forEach((function(e){var r=k(n,e);o.includes(r)||(i[e]=r);})),t(i),[2]}))}))}));}catch(e){o({error:"unsupported"});}}))})),i("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:R(),architecture:I(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||0});}))})),i("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone});}))})),i("permissions",(function(){return e(this,void 0,void 0,(function(){var t;return r(this,(function(o){return C=(null==n?void 0:n.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],t=Array.from({length:(null==n?void 0:n.retries)||3},(function(){return function(){return e(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=C,r.label=1;case 1:if(!(n<t.length))return [3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return [2,e]}}))}))}()})),[2,Promise.all(t).then((function(e){return O(e,C)}))]}))}))})),i("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"));}return new Promise((function(r){r({plugins:e});}))})),i("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:L()});}))})),i("system",(function(){return new Promise((function(e){var r=M();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:r.name,version:r.version},applePayVersion:_()});}))}));var D,B="SamsungBrowser"!==M().name?1:3,U=null;i("webgl",(function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){"undefined"!=typeof document&&((D=document.createElement("canvas")).width=200,D.height=100,U=D.getContext("webgl"));try{if(!U)throw new Error("WebGL not supported");return e=Array.from({length:B},(function(){return function(){try{if(!U)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=U.createShader(U.VERTEX_SHADER),t=U.createShader(U.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(U.shaderSource(n,e),U.shaderSource(t,r),U.compileShader(n),!U.getShaderParameter(n,U.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+U.getShaderInfoLog(n));if(U.compileShader(t),!U.getShaderParameter(t,U.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+U.getShaderInfoLog(t));var o=U.createProgram();if(!o)throw new Error("Failed to create shader program");if(U.attachShader(o,n),U.attachShader(o,t),U.linkProgram(o),!U.getProgramParameter(o,U.LINK_STATUS))throw new Error("Shader program linking failed: "+U.getProgramInfoLog(o));U.useProgram(o);for(var a=137,i=new Float32Array(4*a),u=2*Math.PI/a,c=0;c<a;c++){var s=c*u;i[4*c]=0,i[4*c+1]=0,i[4*c+2]=Math.cos(s)*(D.width/2),i[4*c+3]=Math.sin(s)*(D.height/2);}var l=U.createBuffer();U.bindBuffer(U.ARRAY_BUFFER,l),U.bufferData(U.ARRAY_BUFFER,i,U.STATIC_DRAW);var f=U.getAttribLocation(o,"position");U.enableVertexAttribArray(f),U.vertexAttribPointer(f,2,U.FLOAT,false,0,0),U.viewport(0,0,D.width,D.height),U.clearColor(0,0,0,1),U.clear(U.COLOR_BUFFER_BIT),U.drawArrays(U.LINES,0,2*a);var d=new Uint8ClampedArray(D.width*D.height*4);return U.readPixels(0,0,D.width,D.height,U.RGBA,U.UNSIGNED_BYTE,d),new ImageData(d,D.width,D.height)}catch(e){return new ImageData(1,1)}finally{U&&(U.bindBuffer(U.ARRAY_BUFFER,null),U.useProgram(null),U.viewport(0,0,U.drawingBufferWidth,U.drawingBufferHeight),U.clearColor(0,0,0,0));}}()})),[2,{commonImageHash:f(b(e,D.width,D.height).data.toString()).toString()}]}catch(e){return [2,{webgl:"unsupported"}]}return [2]}))}))}));var F=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o);}return a*o};i("math",(function(){return e(void 0,void 0,void 0,(function(){return r(this,(function(e){return [2,{acos:Math.acos(.5),asin:F(Math.asin,-1,1,97),atan:F(Math.atan,-1,1,97),cos:F(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:F(Math.sin,-Math.PI,Math.PI,97),sinh:F(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:F(Math.tan,0,2*Math.PI,97),tanh:F(Math.tanh,-9/7,7/9,97)}]}))}))}));
|
|
87
87
|
|
|
88
88
|
class AdClient {
|
|
89
89
|
config;
|
|
@@ -216,13 +216,17 @@ class MeasureClient {
|
|
|
216
216
|
config;
|
|
217
217
|
sdkInfo;
|
|
218
218
|
userId;
|
|
219
|
+
userType;
|
|
219
220
|
sessionId;
|
|
220
|
-
constructor(config, sdkInfo, userId) {
|
|
221
|
+
constructor(config, sdkInfo, userId, userType) {
|
|
221
222
|
this.config = config;
|
|
222
223
|
this.sdkInfo = sdkInfo;
|
|
223
224
|
this.userId = userId;
|
|
225
|
+
this.userType = userType;
|
|
224
226
|
this.sessionId = nanoid();
|
|
225
|
-
this.sendMeasureEvent('sdk_initialized')
|
|
227
|
+
this.sendMeasureEvent('sdk_initialized').catch((error) => {
|
|
228
|
+
console.error('Error sending sdk_initialized event:', error);
|
|
229
|
+
});
|
|
226
230
|
}
|
|
227
231
|
/**
|
|
228
232
|
* Getter for the base url used by the /measure endpoints.
|
|
@@ -264,7 +268,9 @@ class MeasureClient {
|
|
|
264
268
|
const request = {
|
|
265
269
|
event_name: eventName,
|
|
266
270
|
properties: {
|
|
267
|
-
searchcraft_index_names: this.config.indexName
|
|
271
|
+
searchcraft_index_names: this.config.indexName
|
|
272
|
+
? [this.config.indexName]
|
|
273
|
+
: [],
|
|
268
274
|
searchcraft_federation_name: this.config.federationName,
|
|
269
275
|
session_id: this.sessionId,
|
|
270
276
|
...properties,
|
|
@@ -286,49 +292,52 @@ class MeasureClient {
|
|
|
286
292
|
Authorization: this.config.readKey,
|
|
287
293
|
'X-Sc-User-Id': this.userId,
|
|
288
294
|
'X-Sc-Session-Id': this.sessionId,
|
|
295
|
+
'X-Sc-User-Type': this.userType,
|
|
289
296
|
},
|
|
290
297
|
body,
|
|
291
298
|
keepalive: true,
|
|
292
299
|
});
|
|
293
300
|
if (!response.ok) {
|
|
294
|
-
|
|
301
|
+
console.error(`Error sending MeasureRequest: ${response.status} ${response.statusText}`);
|
|
295
302
|
}
|
|
296
303
|
}
|
|
297
304
|
catch (error) {
|
|
298
305
|
console.error('Error sending MeasureRequest:', error);
|
|
299
|
-
throw error;
|
|
300
306
|
}
|
|
301
307
|
}
|
|
302
308
|
else {
|
|
303
309
|
// Otherwise send in batches
|
|
304
310
|
this.measureRequestsBatched.push(request);
|
|
305
311
|
clearTimeout(this.measureRequestTimeout);
|
|
306
|
-
this.measureRequestTimeout = setTimeout(
|
|
312
|
+
this.measureRequestTimeout = setTimeout(() => {
|
|
307
313
|
const payload = JSON.stringify({ items: this.measureRequestsBatched });
|
|
308
314
|
const url = `${this.baseMeasureUrl}/batch`;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
315
|
+
(async () => {
|
|
316
|
+
try {
|
|
317
|
+
const response = await fetch(url, {
|
|
318
|
+
method: 'POST',
|
|
319
|
+
headers: {
|
|
320
|
+
'Content-Type': 'application/json',
|
|
321
|
+
Authorization: this.config.readKey,
|
|
322
|
+
'X-Sc-User-Id': this.userId,
|
|
323
|
+
'X-Sc-Session-Id': this.sessionId,
|
|
324
|
+
'X-Sc-User-Type': this.userType,
|
|
325
|
+
},
|
|
326
|
+
body: payload,
|
|
327
|
+
keepalive: true,
|
|
328
|
+
});
|
|
329
|
+
this.measureRequestsBatched = [];
|
|
330
|
+
if (!response.ok) {
|
|
331
|
+
console.error(`Error sending MeasureRequest: ${response.status} ${response.statusText}`);
|
|
332
|
+
}
|
|
324
333
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}
|
|
334
|
+
catch (error) {
|
|
335
|
+
this.measureRequestsBatched = [];
|
|
336
|
+
console.error('Error sending MeasureRequest:', error);
|
|
337
|
+
}
|
|
338
|
+
})().catch((error) => {
|
|
339
|
+
console.error('Unhandled error in MeasureRequest batch:', error);
|
|
340
|
+
});
|
|
332
341
|
}, MEASURE_REQUEST_DEBOUNCE);
|
|
333
342
|
}
|
|
334
343
|
};
|
|
@@ -483,6 +492,7 @@ class SearchClient {
|
|
|
483
492
|
'Content-Type': 'application/json',
|
|
484
493
|
'X-Sc-User-Id': this.userId,
|
|
485
494
|
'X-Sc-Session-Id': this.parent.measureClient?.sessionId || nanoid(),
|
|
495
|
+
'X-Sc-User-Type': this.parent.userType,
|
|
486
496
|
},
|
|
487
497
|
body: JSON.stringify(searchClientRequest),
|
|
488
498
|
signal: abortController.signal,
|
|
@@ -512,6 +522,7 @@ class SearchClient {
|
|
|
512
522
|
'Content-Type': 'application/json',
|
|
513
523
|
'X-Sc-User-Id': this.userId,
|
|
514
524
|
'X-Sc-Session-Id': this.parent.measureClient?.sessionId || nanoid(),
|
|
525
|
+
'X-Sc-User-Type': this.parent.userType,
|
|
515
526
|
},
|
|
516
527
|
body: JSON.stringify(searchClientRequest),
|
|
517
528
|
signal: abortController.signal,
|
|
@@ -573,10 +584,6 @@ class SearchClient {
|
|
|
573
584
|
}
|
|
574
585
|
}
|
|
575
586
|
|
|
576
|
-
var zustand = {};
|
|
577
|
-
|
|
578
|
-
var vanilla$1 = {};
|
|
579
|
-
|
|
580
587
|
const createStoreImpl = (createState) => {
|
|
581
588
|
let state;
|
|
582
589
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -598,601 +605,7 @@ const createStoreImpl = (createState) => {
|
|
|
598
605
|
const initialState = state = createState(setState, getState, api);
|
|
599
606
|
return api;
|
|
600
607
|
};
|
|
601
|
-
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
602
|
-
|
|
603
|
-
vanilla$1.createStore = createStore;
|
|
604
|
-
|
|
605
|
-
var react$1 = {};
|
|
606
|
-
|
|
607
|
-
var react = {exports: {}};
|
|
608
|
-
|
|
609
|
-
var react_production = {};
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* @license React
|
|
613
|
-
* react.production.js
|
|
614
|
-
*
|
|
615
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
616
|
-
*
|
|
617
|
-
* This source code is licensed under the MIT license found in the
|
|
618
|
-
* LICENSE file in the root directory of this source tree.
|
|
619
|
-
*/
|
|
620
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
621
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
622
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
623
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
624
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
625
|
-
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
626
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
627
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
628
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
629
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
630
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
631
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
632
|
-
function getIteratorFn(maybeIterable) {
|
|
633
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
634
|
-
maybeIterable =
|
|
635
|
-
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
636
|
-
maybeIterable["@@iterator"];
|
|
637
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
638
|
-
}
|
|
639
|
-
var ReactNoopUpdateQueue = {
|
|
640
|
-
isMounted: function () {
|
|
641
|
-
return !1;
|
|
642
|
-
},
|
|
643
|
-
enqueueForceUpdate: function () {},
|
|
644
|
-
enqueueReplaceState: function () {},
|
|
645
|
-
enqueueSetState: function () {}
|
|
646
|
-
},
|
|
647
|
-
assign = Object.assign,
|
|
648
|
-
emptyObject = {};
|
|
649
|
-
function Component(props, context, updater) {
|
|
650
|
-
this.props = props;
|
|
651
|
-
this.context = context;
|
|
652
|
-
this.refs = emptyObject;
|
|
653
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
654
|
-
}
|
|
655
|
-
Component.prototype.isReactComponent = {};
|
|
656
|
-
Component.prototype.setState = function (partialState, callback) {
|
|
657
|
-
if (
|
|
658
|
-
"object" !== typeof partialState &&
|
|
659
|
-
"function" !== typeof partialState &&
|
|
660
|
-
null != partialState
|
|
661
|
-
)
|
|
662
|
-
throw Error(
|
|
663
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
664
|
-
);
|
|
665
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
666
|
-
};
|
|
667
|
-
Component.prototype.forceUpdate = function (callback) {
|
|
668
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
669
|
-
};
|
|
670
|
-
function ComponentDummy() {}
|
|
671
|
-
ComponentDummy.prototype = Component.prototype;
|
|
672
|
-
function PureComponent(props, context, updater) {
|
|
673
|
-
this.props = props;
|
|
674
|
-
this.context = context;
|
|
675
|
-
this.refs = emptyObject;
|
|
676
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
677
|
-
}
|
|
678
|
-
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
679
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
680
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
681
|
-
pureComponentPrototype.isPureReactComponent = !0;
|
|
682
|
-
var isArrayImpl = Array.isArray,
|
|
683
|
-
ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
684
|
-
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
685
|
-
function ReactElement(type, key, self, source, owner, props) {
|
|
686
|
-
self = props.ref;
|
|
687
|
-
return {
|
|
688
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
689
|
-
type: type,
|
|
690
|
-
key: key,
|
|
691
|
-
ref: void 0 !== self ? self : null,
|
|
692
|
-
props: props
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
696
|
-
return ReactElement(
|
|
697
|
-
oldElement.type,
|
|
698
|
-
newKey,
|
|
699
|
-
void 0,
|
|
700
|
-
void 0,
|
|
701
|
-
void 0,
|
|
702
|
-
oldElement.props
|
|
703
|
-
);
|
|
704
|
-
}
|
|
705
|
-
function isValidElement(object) {
|
|
706
|
-
return (
|
|
707
|
-
"object" === typeof object &&
|
|
708
|
-
null !== object &&
|
|
709
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
710
|
-
);
|
|
711
|
-
}
|
|
712
|
-
function escape(key) {
|
|
713
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
714
|
-
return (
|
|
715
|
-
"$" +
|
|
716
|
-
key.replace(/[=:]/g, function (match) {
|
|
717
|
-
return escaperLookup[match];
|
|
718
|
-
})
|
|
719
|
-
);
|
|
720
|
-
}
|
|
721
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
722
|
-
function getElementKey(element, index) {
|
|
723
|
-
return "object" === typeof element && null !== element && null != element.key
|
|
724
|
-
? escape("" + element.key)
|
|
725
|
-
: index.toString(36);
|
|
726
|
-
}
|
|
727
|
-
function noop$1() {}
|
|
728
|
-
function resolveThenable(thenable) {
|
|
729
|
-
switch (thenable.status) {
|
|
730
|
-
case "fulfilled":
|
|
731
|
-
return thenable.value;
|
|
732
|
-
case "rejected":
|
|
733
|
-
throw thenable.reason;
|
|
734
|
-
default:
|
|
735
|
-
switch (
|
|
736
|
-
("string" === typeof thenable.status
|
|
737
|
-
? thenable.then(noop$1, noop$1)
|
|
738
|
-
: ((thenable.status = "pending"),
|
|
739
|
-
thenable.then(
|
|
740
|
-
function (fulfilledValue) {
|
|
741
|
-
"pending" === thenable.status &&
|
|
742
|
-
((thenable.status = "fulfilled"),
|
|
743
|
-
(thenable.value = fulfilledValue));
|
|
744
|
-
},
|
|
745
|
-
function (error) {
|
|
746
|
-
"pending" === thenable.status &&
|
|
747
|
-
((thenable.status = "rejected"), (thenable.reason = error));
|
|
748
|
-
}
|
|
749
|
-
)),
|
|
750
|
-
thenable.status)
|
|
751
|
-
) {
|
|
752
|
-
case "fulfilled":
|
|
753
|
-
return thenable.value;
|
|
754
|
-
case "rejected":
|
|
755
|
-
throw thenable.reason;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
throw thenable;
|
|
759
|
-
}
|
|
760
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
761
|
-
var type = typeof children;
|
|
762
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
763
|
-
var invokeCallback = !1;
|
|
764
|
-
if (null === children) invokeCallback = !0;
|
|
765
|
-
else
|
|
766
|
-
switch (type) {
|
|
767
|
-
case "bigint":
|
|
768
|
-
case "string":
|
|
769
|
-
case "number":
|
|
770
|
-
invokeCallback = !0;
|
|
771
|
-
break;
|
|
772
|
-
case "object":
|
|
773
|
-
switch (children.$$typeof) {
|
|
774
|
-
case REACT_ELEMENT_TYPE:
|
|
775
|
-
case REACT_PORTAL_TYPE:
|
|
776
|
-
invokeCallback = !0;
|
|
777
|
-
break;
|
|
778
|
-
case REACT_LAZY_TYPE:
|
|
779
|
-
return (
|
|
780
|
-
(invokeCallback = children._init),
|
|
781
|
-
mapIntoArray(
|
|
782
|
-
invokeCallback(children._payload),
|
|
783
|
-
array,
|
|
784
|
-
escapedPrefix,
|
|
785
|
-
nameSoFar,
|
|
786
|
-
callback
|
|
787
|
-
)
|
|
788
|
-
);
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
if (invokeCallback)
|
|
792
|
-
return (
|
|
793
|
-
(callback = callback(children)),
|
|
794
|
-
(invokeCallback =
|
|
795
|
-
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
796
|
-
isArrayImpl(callback)
|
|
797
|
-
? ((escapedPrefix = ""),
|
|
798
|
-
null != invokeCallback &&
|
|
799
|
-
(escapedPrefix =
|
|
800
|
-
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
801
|
-
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
802
|
-
return c;
|
|
803
|
-
}))
|
|
804
|
-
: null != callback &&
|
|
805
|
-
(isValidElement(callback) &&
|
|
806
|
-
(callback = cloneAndReplaceKey(
|
|
807
|
-
callback,
|
|
808
|
-
escapedPrefix +
|
|
809
|
-
(null == callback.key ||
|
|
810
|
-
(children && children.key === callback.key)
|
|
811
|
-
? ""
|
|
812
|
-
: ("" + callback.key).replace(
|
|
813
|
-
userProvidedKeyEscapeRegex,
|
|
814
|
-
"$&/"
|
|
815
|
-
) + "/") +
|
|
816
|
-
invokeCallback
|
|
817
|
-
)),
|
|
818
|
-
array.push(callback)),
|
|
819
|
-
1
|
|
820
|
-
);
|
|
821
|
-
invokeCallback = 0;
|
|
822
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
823
|
-
if (isArrayImpl(children))
|
|
824
|
-
for (var i = 0; i < children.length; i++)
|
|
825
|
-
(nameSoFar = children[i]),
|
|
826
|
-
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
827
|
-
(invokeCallback += mapIntoArray(
|
|
828
|
-
nameSoFar,
|
|
829
|
-
array,
|
|
830
|
-
escapedPrefix,
|
|
831
|
-
type,
|
|
832
|
-
callback
|
|
833
|
-
));
|
|
834
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
835
|
-
for (
|
|
836
|
-
children = i.call(children), i = 0;
|
|
837
|
-
!(nameSoFar = children.next()).done;
|
|
838
|
-
|
|
839
|
-
)
|
|
840
|
-
(nameSoFar = nameSoFar.value),
|
|
841
|
-
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
842
|
-
(invokeCallback += mapIntoArray(
|
|
843
|
-
nameSoFar,
|
|
844
|
-
array,
|
|
845
|
-
escapedPrefix,
|
|
846
|
-
type,
|
|
847
|
-
callback
|
|
848
|
-
));
|
|
849
|
-
else if ("object" === type) {
|
|
850
|
-
if ("function" === typeof children.then)
|
|
851
|
-
return mapIntoArray(
|
|
852
|
-
resolveThenable(children),
|
|
853
|
-
array,
|
|
854
|
-
escapedPrefix,
|
|
855
|
-
nameSoFar,
|
|
856
|
-
callback
|
|
857
|
-
);
|
|
858
|
-
array = String(children);
|
|
859
|
-
throw Error(
|
|
860
|
-
"Objects are not valid as a React child (found: " +
|
|
861
|
-
("[object Object]" === array
|
|
862
|
-
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
863
|
-
: array) +
|
|
864
|
-
"). If you meant to render a collection of children, use an array instead."
|
|
865
|
-
);
|
|
866
|
-
}
|
|
867
|
-
return invokeCallback;
|
|
868
|
-
}
|
|
869
|
-
function mapChildren(children, func, context) {
|
|
870
|
-
if (null == children) return children;
|
|
871
|
-
var result = [],
|
|
872
|
-
count = 0;
|
|
873
|
-
mapIntoArray(children, result, "", "", function (child) {
|
|
874
|
-
return func.call(context, child, count++);
|
|
875
|
-
});
|
|
876
|
-
return result;
|
|
877
|
-
}
|
|
878
|
-
function lazyInitializer(payload) {
|
|
879
|
-
if (-1 === payload._status) {
|
|
880
|
-
var ctor = payload._result;
|
|
881
|
-
ctor = ctor();
|
|
882
|
-
ctor.then(
|
|
883
|
-
function (moduleObject) {
|
|
884
|
-
if (0 === payload._status || -1 === payload._status)
|
|
885
|
-
(payload._status = 1), (payload._result = moduleObject);
|
|
886
|
-
},
|
|
887
|
-
function (error) {
|
|
888
|
-
if (0 === payload._status || -1 === payload._status)
|
|
889
|
-
(payload._status = 2), (payload._result = error);
|
|
890
|
-
}
|
|
891
|
-
);
|
|
892
|
-
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
|
893
|
-
}
|
|
894
|
-
if (1 === payload._status) return payload._result.default;
|
|
895
|
-
throw payload._result;
|
|
896
|
-
}
|
|
897
|
-
var reportGlobalError =
|
|
898
|
-
"function" === typeof reportError
|
|
899
|
-
? reportError
|
|
900
|
-
: function (error) {
|
|
901
|
-
if (
|
|
902
|
-
"object" === typeof window &&
|
|
903
|
-
"function" === typeof window.ErrorEvent
|
|
904
|
-
) {
|
|
905
|
-
var event = new window.ErrorEvent("error", {
|
|
906
|
-
bubbles: !0,
|
|
907
|
-
cancelable: !0,
|
|
908
|
-
message:
|
|
909
|
-
"object" === typeof error &&
|
|
910
|
-
null !== error &&
|
|
911
|
-
"string" === typeof error.message
|
|
912
|
-
? String(error.message)
|
|
913
|
-
: String(error),
|
|
914
|
-
error: error
|
|
915
|
-
});
|
|
916
|
-
if (!window.dispatchEvent(event)) return;
|
|
917
|
-
} else if (
|
|
918
|
-
"object" === typeof process &&
|
|
919
|
-
"function" === typeof process.emit
|
|
920
|
-
) {
|
|
921
|
-
process.emit("uncaughtException", error);
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
924
|
-
console.error(error);
|
|
925
|
-
};
|
|
926
|
-
function noop() {}
|
|
927
|
-
react_production.Children = {
|
|
928
|
-
map: mapChildren,
|
|
929
|
-
forEach: function (children, forEachFunc, forEachContext) {
|
|
930
|
-
mapChildren(
|
|
931
|
-
children,
|
|
932
|
-
function () {
|
|
933
|
-
forEachFunc.apply(this, arguments);
|
|
934
|
-
},
|
|
935
|
-
forEachContext
|
|
936
|
-
);
|
|
937
|
-
},
|
|
938
|
-
count: function (children) {
|
|
939
|
-
var n = 0;
|
|
940
|
-
mapChildren(children, function () {
|
|
941
|
-
n++;
|
|
942
|
-
});
|
|
943
|
-
return n;
|
|
944
|
-
},
|
|
945
|
-
toArray: function (children) {
|
|
946
|
-
return (
|
|
947
|
-
mapChildren(children, function (child) {
|
|
948
|
-
return child;
|
|
949
|
-
}) || []
|
|
950
|
-
);
|
|
951
|
-
},
|
|
952
|
-
only: function (children) {
|
|
953
|
-
if (!isValidElement(children))
|
|
954
|
-
throw Error(
|
|
955
|
-
"React.Children.only expected to receive a single React element child."
|
|
956
|
-
);
|
|
957
|
-
return children;
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
react_production.Component = Component;
|
|
961
|
-
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
962
|
-
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
963
|
-
react_production.PureComponent = PureComponent;
|
|
964
|
-
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
965
|
-
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
966
|
-
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
967
|
-
ReactSharedInternals;
|
|
968
|
-
react_production.act = function () {
|
|
969
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
970
|
-
};
|
|
971
|
-
react_production.cache = function (fn) {
|
|
972
|
-
return function () {
|
|
973
|
-
return fn.apply(null, arguments);
|
|
974
|
-
};
|
|
975
|
-
};
|
|
976
|
-
react_production.cloneElement = function (element, config, children) {
|
|
977
|
-
if (null === element || void 0 === element)
|
|
978
|
-
throw Error(
|
|
979
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
980
|
-
);
|
|
981
|
-
var props = assign({}, element.props),
|
|
982
|
-
key = element.key,
|
|
983
|
-
owner = void 0;
|
|
984
|
-
if (null != config)
|
|
985
|
-
for (propName in (void 0 !== config.ref && (owner = void 0),
|
|
986
|
-
void 0 !== config.key && (key = "" + config.key),
|
|
987
|
-
config))
|
|
988
|
-
!hasOwnProperty.call(config, propName) ||
|
|
989
|
-
"key" === propName ||
|
|
990
|
-
"__self" === propName ||
|
|
991
|
-
"__source" === propName ||
|
|
992
|
-
("ref" === propName && void 0 === config.ref) ||
|
|
993
|
-
(props[propName] = config[propName]);
|
|
994
|
-
var propName = arguments.length - 2;
|
|
995
|
-
if (1 === propName) props.children = children;
|
|
996
|
-
else if (1 < propName) {
|
|
997
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
998
|
-
childArray[i] = arguments[i + 2];
|
|
999
|
-
props.children = childArray;
|
|
1000
|
-
}
|
|
1001
|
-
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
1002
|
-
};
|
|
1003
|
-
react_production.createContext = function (defaultValue) {
|
|
1004
|
-
defaultValue = {
|
|
1005
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1006
|
-
_currentValue: defaultValue,
|
|
1007
|
-
_currentValue2: defaultValue,
|
|
1008
|
-
_threadCount: 0,
|
|
1009
|
-
Provider: null,
|
|
1010
|
-
Consumer: null
|
|
1011
|
-
};
|
|
1012
|
-
defaultValue.Provider = defaultValue;
|
|
1013
|
-
defaultValue.Consumer = {
|
|
1014
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1015
|
-
_context: defaultValue
|
|
1016
|
-
};
|
|
1017
|
-
return defaultValue;
|
|
1018
|
-
};
|
|
1019
|
-
react_production.createElement = function (type, config, children) {
|
|
1020
|
-
var propName,
|
|
1021
|
-
props = {},
|
|
1022
|
-
key = null;
|
|
1023
|
-
if (null != config)
|
|
1024
|
-
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
1025
|
-
hasOwnProperty.call(config, propName) &&
|
|
1026
|
-
"key" !== propName &&
|
|
1027
|
-
"__self" !== propName &&
|
|
1028
|
-
"__source" !== propName &&
|
|
1029
|
-
(props[propName] = config[propName]);
|
|
1030
|
-
var childrenLength = arguments.length - 2;
|
|
1031
|
-
if (1 === childrenLength) props.children = children;
|
|
1032
|
-
else if (1 < childrenLength) {
|
|
1033
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
1034
|
-
childArray[i] = arguments[i + 2];
|
|
1035
|
-
props.children = childArray;
|
|
1036
|
-
}
|
|
1037
|
-
if (type && type.defaultProps)
|
|
1038
|
-
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
1039
|
-
void 0 === props[propName] &&
|
|
1040
|
-
(props[propName] = childrenLength[propName]);
|
|
1041
|
-
return ReactElement(type, key, void 0, void 0, null, props);
|
|
1042
|
-
};
|
|
1043
|
-
react_production.createRef = function () {
|
|
1044
|
-
return { current: null };
|
|
1045
|
-
};
|
|
1046
|
-
react_production.forwardRef = function (render) {
|
|
1047
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
|
1048
|
-
};
|
|
1049
|
-
react_production.isValidElement = isValidElement;
|
|
1050
|
-
react_production.lazy = function (ctor) {
|
|
1051
|
-
return {
|
|
1052
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1053
|
-
_payload: { _status: -1, _result: ctor },
|
|
1054
|
-
_init: lazyInitializer
|
|
1055
|
-
};
|
|
1056
|
-
};
|
|
1057
|
-
react_production.memo = function (type, compare) {
|
|
1058
|
-
return {
|
|
1059
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1060
|
-
type: type,
|
|
1061
|
-
compare: void 0 === compare ? null : compare
|
|
1062
|
-
};
|
|
1063
|
-
};
|
|
1064
|
-
react_production.startTransition = function (scope) {
|
|
1065
|
-
var prevTransition = ReactSharedInternals.T,
|
|
1066
|
-
currentTransition = {};
|
|
1067
|
-
ReactSharedInternals.T = currentTransition;
|
|
1068
|
-
try {
|
|
1069
|
-
var returnValue = scope(),
|
|
1070
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
1071
|
-
null !== onStartTransitionFinish &&
|
|
1072
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
1073
|
-
"object" === typeof returnValue &&
|
|
1074
|
-
null !== returnValue &&
|
|
1075
|
-
"function" === typeof returnValue.then &&
|
|
1076
|
-
returnValue.then(noop, reportGlobalError);
|
|
1077
|
-
} catch (error) {
|
|
1078
|
-
reportGlobalError(error);
|
|
1079
|
-
} finally {
|
|
1080
|
-
ReactSharedInternals.T = prevTransition;
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
react_production.unstable_useCacheRefresh = function () {
|
|
1084
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
1085
|
-
};
|
|
1086
|
-
react_production.use = function (usable) {
|
|
1087
|
-
return ReactSharedInternals.H.use(usable);
|
|
1088
|
-
};
|
|
1089
|
-
react_production.useActionState = function (action, initialState, permalink) {
|
|
1090
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
1091
|
-
};
|
|
1092
|
-
react_production.useCallback = function (callback, deps) {
|
|
1093
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
1094
|
-
};
|
|
1095
|
-
react_production.useContext = function (Context) {
|
|
1096
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
1097
|
-
};
|
|
1098
|
-
react_production.useDebugValue = function () {};
|
|
1099
|
-
react_production.useDeferredValue = function (value, initialValue) {
|
|
1100
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
1101
|
-
};
|
|
1102
|
-
react_production.useEffect = function (create, deps) {
|
|
1103
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
1104
|
-
};
|
|
1105
|
-
react_production.useId = function () {
|
|
1106
|
-
return ReactSharedInternals.H.useId();
|
|
1107
|
-
};
|
|
1108
|
-
react_production.useImperativeHandle = function (ref, create, deps) {
|
|
1109
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
1110
|
-
};
|
|
1111
|
-
react_production.useInsertionEffect = function (create, deps) {
|
|
1112
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
1113
|
-
};
|
|
1114
|
-
react_production.useLayoutEffect = function (create, deps) {
|
|
1115
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
1116
|
-
};
|
|
1117
|
-
react_production.useMemo = function (create, deps) {
|
|
1118
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
1119
|
-
};
|
|
1120
|
-
react_production.useOptimistic = function (passthrough, reducer) {
|
|
1121
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
1122
|
-
};
|
|
1123
|
-
react_production.useReducer = function (reducer, initialArg, init) {
|
|
1124
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
1125
|
-
};
|
|
1126
|
-
react_production.useRef = function (initialValue) {
|
|
1127
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
1128
|
-
};
|
|
1129
|
-
react_production.useState = function (initialState) {
|
|
1130
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
1131
|
-
};
|
|
1132
|
-
react_production.useSyncExternalStore = function (
|
|
1133
|
-
subscribe,
|
|
1134
|
-
getSnapshot,
|
|
1135
|
-
getServerSnapshot
|
|
1136
|
-
) {
|
|
1137
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
1138
|
-
subscribe,
|
|
1139
|
-
getSnapshot,
|
|
1140
|
-
getServerSnapshot
|
|
1141
|
-
);
|
|
1142
|
-
};
|
|
1143
|
-
react_production.useTransition = function () {
|
|
1144
|
-
return ReactSharedInternals.H.useTransition();
|
|
1145
|
-
};
|
|
1146
|
-
react_production.version = "19.0.0";
|
|
1147
|
-
|
|
1148
|
-
{
|
|
1149
|
-
react.exports = react_production;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
var React = react.exports;
|
|
1153
|
-
var vanilla = vanilla$1;
|
|
1154
|
-
|
|
1155
|
-
const identity = (arg) => arg;
|
|
1156
|
-
function useStore(api, selector = identity) {
|
|
1157
|
-
const slice = React.useSyncExternalStore(
|
|
1158
|
-
api.subscribe,
|
|
1159
|
-
() => selector(api.getState()),
|
|
1160
|
-
() => selector(api.getInitialState())
|
|
1161
|
-
);
|
|
1162
|
-
React.useDebugValue(slice);
|
|
1163
|
-
return slice;
|
|
1164
|
-
}
|
|
1165
|
-
const createImpl = (createState) => {
|
|
1166
|
-
const api = vanilla.createStore(createState);
|
|
1167
|
-
const useBoundStore = (selector) => useStore(api, selector);
|
|
1168
|
-
Object.assign(useBoundStore, api);
|
|
1169
|
-
return useBoundStore;
|
|
1170
|
-
};
|
|
1171
|
-
const create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
1172
|
-
|
|
1173
|
-
react$1.create = create;
|
|
1174
|
-
react$1.useStore = useStore;
|
|
1175
|
-
|
|
1176
|
-
(function (exports) {
|
|
1177
|
-
|
|
1178
|
-
var vanilla = vanilla$1;
|
|
1179
|
-
var react = react$1;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
Object.keys(vanilla).forEach(function (k) {
|
|
1184
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
1185
|
-
enumerable: true,
|
|
1186
|
-
get: function () { return vanilla[k]; }
|
|
1187
|
-
});
|
|
1188
|
-
});
|
|
1189
|
-
Object.keys(react).forEach(function (k) {
|
|
1190
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
1191
|
-
enumerable: true,
|
|
1192
|
-
get: function () { return react[k]; }
|
|
1193
|
-
});
|
|
1194
|
-
});
|
|
1195
|
-
}(zustand));
|
|
608
|
+
const createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
1196
609
|
|
|
1197
610
|
const DEBOUNCE_DELAY = 1000;
|
|
1198
611
|
class SummaryClient {
|
|
@@ -1233,6 +646,9 @@ class SummaryClient {
|
|
|
1233
646
|
headers: {
|
|
1234
647
|
'Content-Type': 'application/json',
|
|
1235
648
|
Authorization: state.core?.config.readKey || '',
|
|
649
|
+
'X-Sc-User-Id': state.core?.userId || '',
|
|
650
|
+
'X-Sc-Session-Id': state.core?.measureClient?.sessionId || '',
|
|
651
|
+
'X-Sc-User-Type': state.core?.userType || 'anonymous',
|
|
1236
652
|
},
|
|
1237
653
|
body: JSON.stringify({
|
|
1238
654
|
searchQuery: state.searchClientRequest,
|
|
@@ -1339,7 +755,7 @@ const createSearchcraftStore = (searchcraftId, initialState = {}) => {
|
|
|
1339
755
|
existingStores[id].setState(initialState);
|
|
1340
756
|
return existingStores[id];
|
|
1341
757
|
}
|
|
1342
|
-
const newStore =
|
|
758
|
+
const newStore = createStore((set, get) => {
|
|
1343
759
|
const functions = {
|
|
1344
760
|
addFacetPathsForIndexField: (facetPaths) => {
|
|
1345
761
|
set((state) => ({
|
|
@@ -1576,6 +992,7 @@ class SearchcraftCore {
|
|
|
1576
992
|
searchClient;
|
|
1577
993
|
adClient;
|
|
1578
994
|
userId;
|
|
995
|
+
userType;
|
|
1579
996
|
requestTimeout;
|
|
1580
997
|
subscriptionEvents = {};
|
|
1581
998
|
/**
|
|
@@ -1602,6 +1019,7 @@ class SearchcraftCore {
|
|
|
1602
1019
|
endpointURL: removeTrailingSlashFromURL(config.endpointURL),
|
|
1603
1020
|
};
|
|
1604
1021
|
this.userId = '';
|
|
1022
|
+
this.userType = 'anonymous';
|
|
1605
1023
|
if (typeof window !== 'undefined' &&
|
|
1606
1024
|
typeof customElements !== 'undefined' &&
|
|
1607
1025
|
sdkInfo.sdkName === '@searchcraft/javascript-sdk' &&
|
|
@@ -1630,8 +1048,13 @@ class SearchcraftCore {
|
|
|
1630
1048
|
if (!userId) {
|
|
1631
1049
|
const fingerprint = await g();
|
|
1632
1050
|
userId = fingerprint;
|
|
1051
|
+
this.userType = 'anonymous';
|
|
1633
1052
|
}
|
|
1634
|
-
|
|
1053
|
+
else {
|
|
1054
|
+
this.userType = 'authenticated';
|
|
1055
|
+
await Promise.resolve();
|
|
1056
|
+
}
|
|
1057
|
+
this.measureClient = new MeasureClient(config, sdkInfo, userId, this.userType);
|
|
1635
1058
|
this.searchClient = new SearchClient(this, config, userId);
|
|
1636
1059
|
if (config.customAdConfig) {
|
|
1637
1060
|
this.adClient = new CustomAdClient(config);
|
|
@@ -1814,7 +1237,7 @@ class SearchcraftCore {
|
|
|
1814
1237
|
}
|
|
1815
1238
|
|
|
1816
1239
|
const name = "@searchcraft/javascript-sdk";
|
|
1817
|
-
const version = "0.13.
|
|
1240
|
+
const version = "0.13.1";
|
|
1818
1241
|
|
|
1819
1242
|
/**
|
|
1820
1243
|
* @fileoverview entry point for your component library
|
|
@@ -1838,6 +1261,7 @@ class Searchcraft extends SearchcraftCore {
|
|
|
1838
1261
|
}
|
|
1839
1262
|
|
|
1840
1263
|
export { Searchcraft, SearchcraftCore };
|
|
1264
|
+
//# sourceMappingURL=index.js.map
|
|
1841
1265
|
|
|
1842
1266
|
//# sourceMappingURL=index.js.map
|
|
1843
1267
|
export { defineCustomElements } from './defineCustomElements.js';
|