!function(){"use strict";!function(){const t={NODE_ENV:"production",WIDGET_VERSION:"1.8.40",SENTRY_ENABLED:"true",SENTRY_DSN:"https://543842c096a24c65876257853b15757e@o158528.ingest.sentry.io/5570711",API_URL:"https://luker-api.b-cdn.net",STATS_URL:"https://b.luker.io/",ROLLUP_GA:"UA-120383901-8",SPLITIO_KEY:"v4m5rcfc9s75r2ktqtb8guh99dpb81hfc5pd"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();var t=[],e=[];function n(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}function i(t){return new Promise((e=>{!function(t,e){const i=n(),r={id:window.requestAnimationFrame((function o(){n()-i>=t?e.call(null):r.id=window.requestAnimationFrame(o)}))}}(t,(()=>e()))}))}!function(n,i){if(n&&"undefined"!=typeof document){var r,o=!0===i.prepend?"prepend":"append",s=!0===i.singleTag,a="string"==typeof i.container?document.querySelector(i.container):document.getElementsByTagName("head")[0];if(s){var c=t.indexOf(a);-1===c&&(c=t.push(a)-1,e[c]={}),r=e[c]&&e[c][o]?e[c][o]:e[c][o]=l()}else r=l();65279===n.charCodeAt(0)&&(n=n.substring(1)),r.styleSheet?r.styleSheet.cssText+=n:r.appendChild(document.createTextNode(n))}function l(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),i.attributes)for(var e=Object.keys(i.attributes),n=0;n img {\n margin-left: auto;\n margin-right: auto;\n}\n#lk-debug-mode .debug-mode-container {\n text-align: center;\n}\n#lk-debug-mode .debug-mode-container span.green-dot {\n display: inline-block;\n width: 9px;\n margin-right: 5px;\n height: 9px;\n background: #42ac05;\n border-radius: 50%;\n}\n#lk-debug-mode .debug-mode-container img {\n width: 35px;\n text-align: center;\n}\n#lk-debug-mode .installed-note {\n margin-bottom: 2px;\n font-size: 0.9rem;\n color: #7205f7 !important;\n}\n#lk-debug-mode span.admin-note {\n color: #838383;\n font-weight: 400;\n}\n#lk-debug-mode .lock-icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjM2MS4xMThweCIgaGVpZ2h0PSIzNjEuMTE4cHgiIHZpZXdCb3g9IjAgMCAzNjEuMTE4IDM2MS4xMTgiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM2MS4xMTggMzYxLjExODsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPGcgaWQ9Il94MzJfMzcuX0xvY2tlZCI+DQoJCTxnPg0KCQkJPHBhdGggZD0iTTI3NC43NjUsMTQxLjNWOTQuMjA1QzI3NC43NjUsNDIuMTcyLDIzMi41ODMsMCwxODAuNTU5LDBjLTUyLjAzMiwwLTk0LjIwNSw0Mi4xNzItOTQuMjA1LDk0LjIwNVYxNDEuMw0KCQkJCWMtMTcuMzQsMC0zMS40LDE0LjA2LTMxLjQsMzEuNHYxNTcuMDE2YzAsMTcuMzQ0LDE0LjA2LDMxLjQwMiwzMS40LDMxLjQwMmgxODguNDExYzE3LjM0MSwwLDMxLjM5OC0xNC4wNTksMzEuMzk4LTMxLjQwMlYxNzIuNw0KCQkJCUMzMDYuMTY0LDE1NS4zNiwyOTIuMTA2LDE0MS4zLDI3NC43NjUsMTQxLjN6IE0xMTcuNzU2LDk0LjIwNWMwLTM0LjY5LDI4LjEyLTYyLjgwMyw2Mi44MDMtNjIuODAzDQoJCQkJYzM0LjY4NSwwLDYyLjgwNSwyOC4xMTIsNjIuODA1LDYyLjgwM1YxNDEuM0gxMTcuNzU2Vjk0LjIwNXogTTI3NC43NjUsMzI5LjcxNUg4Ni4zNTRWMTcyLjcwOGgxODguNDExVjMyOS43MTV6DQoJCQkJIE0xNjQuODU4LDI2Mi41NTh2MjAuMDU0YzAsOC42NjQsNy4wMzUsMTUuNzAxLDE1LjcwMSwxNS43MDFjOC42NjQsMCwxNS43MDEtNy4wMzcsMTUuNzAxLTE1LjcwMXYtMjAuMDU0DQoJCQkJYzkuMzM3LTUuNDQxLDE1LjcwMS0xNS40NTYsMTUuNzAxLTI3LjA0NmMwLTE3LjM0OC0xNC4wNjItMzEuNDEtMzEuNDAyLTMxLjQxYy0xNy4zNCwwLTMxLjQsMTQuMDYyLTMxLjQsMzEuNDENCgkJCQlDMTQ5LjE1OSwyNDcuMTAyLDE1NS41MTcsMjU3LjExNywxNjQuODU4LDI2Mi41NTh6Ii8+DQoJCTwvZz4NCgk8L2c+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==);\n background-size: 14px;\n display: inline-block;\n width: 18px;\n opacity: 0.3;\n height: 14px;\n background-repeat: no-repeat;\n margin-bottom: -1px;\n}\n\n.lk-notification-container {\n display: table;\n position: fixed;\n font-family: Lato, helvetica, arial, sans-serif !important;\n z-index: 2147483647;\n}\n.lk-notification-container * {\n box-sizing: border-box;\n line-height: 17px;\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100% !important;\n vertical-align: baseline;\n letter-spacing: 0 !important;\n}\n.lk-notification-container .pfs-link svg {\n display: inline-block !important;\n width: 13px !important;\n height: 13px !important;\n margin-bottom: -2px;\n}\n.lk-notification-container.lk-on-flow {\n position: initial;\n margin-bottom: 25px;\n margin-top: 5px;\n z-index: initial;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.combo-type .lk-notification-icon {\n padding-right: 0 !important;\n padding-left: 5px;\n border-left: 0;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.combo-type .lk-notification-content {\n margin-right: auto;\n margin-left: 0;\n padding-left: 21px;\n padding-right: 0;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble {\n direction: rtl !important;\n text-align: right !important;\n font-family: Arial, sans-serif;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble .lk-notification-content {\n margin-left: 0;\n margin-right: 75px;\n text-align: right;\n padding-right: 0;\n padding-left: 4px;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble .lk-notification-content .bubble-cta .cta-arrow::after {\n border-right: 0;\n border-top: 0;\n border-left: 0.1em solid;\n border-bottom: 0.1em solid;\n margin-left: 0;\n margin-right: 0.3em;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble .lk-notification-icon {\n border-right: 0;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble #lk-notification-close {\n left: 6px !important;\n right: inherit !important;\n}\n@media only screen and (min-width: 816px) {\n .lk-notification-container .lk-notification-body.use-zoom {\n transform: scale(1.2);\n transform-origin: left bottom;\n }\n}\n.lk-notification-container .lk-notification-body {\n cursor: pointer !important;\n direction: ltr !important;\n text-align: left !important;\n width: 330px;\n overflow: hidden;\n position: relative;\n border-radius: 6px;\n background-color: #fff;\n box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;\n -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;\n -moz-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;\n border: 1px solid #ececec;\n font-family: Lato, helvetica, arial, sans-serif !important;\n transition: all 0.3s;\n top: 0;\n}\n.lk-notification-container .lk-notification-body:hover {\n box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);\n -webkit-transition: all 0.3s ease;\n -moz-transition: all 0.3s ease;\n -ms-transition: all 0.3s ease;\n -o-transition: all 0.3s ease;\n transition: all 0.3s ease;\n top: -10px;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content {\n margin-left: 75px;\n padding-top: 8px;\n padding-right: 6px;\n padding-bottom: 5px;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-time, .lk-notification-container .lk-notification-body .lk-notification-content lk-small {\n display: block;\n color: #999;\n font-size: 11px !important;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-time a, .lk-notification-container .lk-notification-body .lk-notification-content lk-small a {\n display: inline !important;\n font-size: 11px !important;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-time span, .lk-notification-container .lk-notification-body .lk-notification-content lk-small span {\n display: inline !important;\n font-size: 11px !important;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-time *, .lk-notification-container .lk-notification-body .lk-notification-content lk-small * {\n color: #999;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-description {\n line-height: 17px;\n font-size: 12px !important;\n margin-bottom: 2px;\n margin-top: 2px;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-description > span {\n color: #323232;\n font-size: 13px !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-title, .lk-notification-container .lk-notification-body .lk-notification-content lk-titulo {\n line-height: 17px;\n font-size: 15px !important;\n font-weight: 700;\n color: #000;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-content .lk-notification-title span, .lk-notification-container .lk-notification-body .lk-notification-content lk-titulo span {\n font-weight: 700;\n display: inline-block;\n padding: 3px 5px;\n background-color: rgba(120, 37, 243, 0.09);\n border-radius: 3px;\n color: #3A4750;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-icon {\n float: left;\n height: 100%;\n width: 67px;\n display: block;\n position: absolute;\n}\n.lk-notification-container .lk-notification-body .lk-notification-icon img {\n height: 67px;\n width: 67px;\n padding: 5px;\n margin-top: auto;\n margin-bottom: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 2px;\n right: 0;\n}\n.lk-notification-container .lk-notification-body .lk-notification-time .pfs-link, .lk-notification-container .lk-notification-body lk-small .pfs-link {\n display: inline-block;\n font-size: 11px !important;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-time .pfs-link a, .lk-notification-container .lk-notification-body lk-small .pfs-link a {\n color: #7225f3;\n text-decoration: none;\n font-family: Lato, helvetica, arial, sans-serif !important;\n}\n.lk-notification-container .lk-notification-body .lk-notification-time .pfs-link span.bubble-bolt, .lk-notification-container .lk-notification-body lk-small .pfs-link span.bubble-bolt {\n color: #999;\n}\n.lk-notification-container .lk-notification-body .lk-notification-time .pfs-link span.bubble-bolt > i, .lk-notification-container .lk-notification-body lk-small .pfs-link span.bubble-bolt > i {\n display: inline-block !important;\n}\n.lk-notification-container .lk-notification-content .bubble-cta {\n line-height: 17px;\n font-size: 12px !important;\n color: #7627F3;\n padding: 3px 0;\n border-radius: 5px;\n margin-bottom: 5px;\n margin-top: 6px;\n display: inline-block;\n}\n.lk-notification-container .lk-notification-content .bubble-cta .cta-arrow::after {\n position: relative;\n content: "";\n display: inline-block;\n width: 0.4em;\n height: 0.4em;\n border-right: 0.1em solid;\n border-top: 0.1em solid;\n transform: rotate(45deg) !important;\n margin-left: 0.3em;\n font-size: 17px;\n -webkit-animation: lk-arrow-bouncer 2s infinite;\n animation: lk-arrow-bouncer 2s infinite;\n}\n.lk-notification-container .text-capitalize {\n text-transform: capitalize;\n}\n.lk-notification-container .text-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.lk-notification-container .no-text-select {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.lk-notification-container .mx-auto {\n margin-right: auto !important;\n margin-left: auto !important;\n}\n.lk-notification-container #lk-notification-close {\n position: absolute;\n top: 6px;\n right: 6px;\n height: 13px;\n width: 13px;\n transform: rotate(45deg);\n cursor: pointer;\n opacity: 0.5;\n}\n.lk-notification-container #lk-notification-close:hover {\n opacity: 0.8;\n}\n.lk-notification-container #lk-notification-close > span.close-before {\n content: "";\n display: block;\n width: 100%;\n height: 3px;\n background-color: #c4c4c4;\n position: absolute;\n left: 0;\n top: 5px;\n}\n.lk-notification-container #lk-notification-close > span.close-after {\n content: "";\n display: block;\n height: 100%;\n width: 3px;\n background-color: #c4c4c4;\n position: absolute;\n left: 5px;\n top: 0;\n}\n.lk-notification-container .no-visible {\n visibility: hidden;\n}\n.lk-notification-container .is-visible {\n visibility: visible;\n}\n.lk-notification-container .lk-notification-body.stream-type a#ps-stream-product-link {\n font-weight: 700 !important;\n color: #454545;\n -webkit-text-decoration: none;\n -moz-text-decoration: none;\n -ms-text-decoration: none;\n -o-text-decoration: none;\n text-decoration: none;\n}\n.lk-notification-container .lk-notification-body.stream-type a#ps-stream-product-link:hover {\n -webkit-text-decoration: underline !important;\n -moz-text-decoration: underline !important;\n -ms-text-decoration: underline !important;\n -o-text-decoration: underline !important;\n text-decoration: underline !important;\n cursor: pointer !important;\n}\n.lk-notification-container .lk-notification-body.stream-type .lk-notification-icon {\n border-right: none;\n}\n.lk-notification-container .lk-notification-body.stream-type .lk-notification-icon span.bubble-initials {\n width: 65px;\n border-radius: 5px;\n padding: 1px;\n left: 1px;\n height: 67px;\n margin-top: auto;\n margin-bottom: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n background-color: #f8f8f8;\n color: #444a50;\n font-weight: bolder;\n font-size: 27px !important;\n right: 0;\n text-align: center;\n line-height: 64px !important;\n}\n.lk-notification-container .lk-notification-body.stream-type .lk-notification-icon img {\n border-radius: 5px;\n padding: 0;\n left: 1px;\n max-width: 65px;\n max-height: 65px;\n width: auto;\n height: auto;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n margin: auto;\n}\n.lk-notification-container .lk-notification-body.stream-type span.stream-location > img.location-flag {\n max-width: 17px !important;\n width: 17px !important;\n border-radius: 2px !important;\n vertical-align: text-top !important;\n border: 1px solid #d2d2d2 !important;\n margin-left: 4px !important;\n}\n.lk-notification-container .lk-notification-body.stream-type .stream-location {\n font-size: 12px !important;\n opacity: 0.6 !important;\n font-weight: 400 !important;\n color: inherit !important;\n}\n.lk-notification-container .lk-notification-body.stream-type .lk-notification-icon.lk-notification-icon-bg {\n background-color: #f8f8f8;\n}\n.lk-notification-container .lk-notification-body.stream-type .lk-notification-content .lk-notification-title span, .lk-notification-container .lk-notification-body.stream-type .lk-notification-content lk-titulo span {\n background-color: transparent;\n padding: 0 0 2px !important;\n color: #384FA1;\n vertical-align: middle;\n}\n.lk-notification-container .lk-notification-body.stream-type .lk-notification-content .lk-notification-description {\n margin-top: 0;\n}\n.lk-notification-container .lk-notification-body.review-type .lk-notification-icon span.bubble-initials {\n width: 65px;\n border-radius: 5px;\n padding: 1px;\n left: 1px;\n height: 67px;\n margin-top: auto;\n margin-bottom: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n background-color: #f8f8f8;\n color: #444a50;\n font-weight: bolder;\n font-size: 27px !important;\n right: 0;\n text-align: center;\n line-height: 64px !important;\n}\n.lk-notification-container .lk-notification-body.review-type .lk-notification-time .pfs-link, .lk-notification-container .lk-notification-body.review-type lk-small .pfs-link {\n float: right;\n}\n.lk-notification-container .lk-notification-body.review-type .lk-notification-description > span {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n line-height: 16px;\n margin: 2px 0 8px 0;\n padding-right: 5px;\n max-height: 50px;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n -o-text-overflow: ellipsis;\n -ms-text-overflow: ellipsis;\n font-style: italic;\n font-size: 13px;\n}\n.lk-notification-container .lk-notification-body.review-type .lk-notification-title > span, .lk-notification-container .lk-notification-body.review-type lk-titulo > span {\n padding: 3px 0;\n}\n.lk-notification-container .lk-notification-body.review-type ._ps-review-rating {\n display: inline-block;\n padding-right: 5px;\n}\n.lk-notification-container .lk-notification-body.review-type ._ps-review-rating img._ps-review-source {\n width: 11px;\n margin-right: 4px;\n display: inline-block;\n vertical-align: text-bottom;\n}\n.lk-notification-container .lk-notification-body.review-type ._ps-review-rating ._ps-review-rating-star {\n color: #ffc100;\n font-size: 10px !important;\n vertical-align: middle;\n}\n.lk-notification-container .lk-notification-body.review-type ._ps-review-rating ._ps-review-rating-star svg {\n display: inline !important;\n}\n.lk-notification-container .lk-notification-body.review-type .review-source-container {\n display: inline-block;\n margin-right: 8px;\n}\n.lk-notification-container .lk-notification-body.stream-type.rtl-bubble {\n border-radius: inherit;\n border-bottom-right-radius: 5px;\n border-top-right-radius: 5px;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.lk-notification-container .lk-notification-body.stream-type.rtl-bubble .lk-notification-icon {\n border-right: 0;\n border-left: none;\n}\n.lk-notification-container .lk-notification-body.stream-type.rtl-bubble .lk-notification-icon img {\n right: 2px;\n}\n.lk-notification-container .lk-notification-body.stream-type.rtl-bubble .lk-notification-icon span.bubble-initials {\n margin-right: 1px;\n}\n.lk-notification-container .lk-notification-body.review-type.rtl-bubble .lk-notification-icon span.bubble-initials {\n margin-right: 1px;\n}\n.lk-notification-container .lk-notification-body.combo-type {\n background-color: #fff;\n width: 350px;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-icon {\n border-right: 0;\n width: 35%;\n padding-right: 5px;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-icon .combo-number {\n position: relative;\n float: left;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: #7627f3;\n width: 100%;\n text-align: center;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-icon .combo-number > .refer {\n font-weight: 400 !important;\n font-size: 13px !important;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-icon .combo-number > .num-value {\n font-size: 28px !important;\n font-weight: 900 !important;\n line-height: 30px !important;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-time, .lk-notification-container .lk-notification-body.combo-type lk-small {\n color: #7627f3;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-time .pfs-link, .lk-notification-container .lk-notification-body.combo-type lk-small .pfs-link {\n padding: 1px 5px;\n background-color: #fff;\n border-radius: 2px;\n margin-top: 5px;\n border: 1px solid #7627f3;\n color: #7627f3;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-time .pfs-link a, .lk-notification-container .lk-notification-body.combo-type lk-small .pfs-link a {\n color: #7627f3;\n text-decoration: none;\n font-weight: 700;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-content.no-branding {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-content {\n margin-left: auto;\n padding-top: 10px;\n padding-right: 21px;\n padding-bottom: 10px;\n width: 65%;\n margin-top: 5px;\n margin-bottom: 5px;\n}\n.lk-notification-container .lk-notification-body.combo-type .lk-notification-content .lk-notification-description {\n color: #7627f3;\n font-size: 13px;\n}\n.lk-notification-container .lk-notification-body.combo-type #lk-notification-close > span.close-after {\n background-color: #7627f3;\n}\n.lk-notification-container .lk-notification-body.combo-type #lk-notification-close > span.close-before {\n background-color: #7627f3;\n}\n.lk-notification-container .scale {\n animation: pound 1s;\n animation-delay: 1s;\n animation-iteration-count: 3;\n}\n.lk-notification-container .lk-notification-body.live-type.rtl-bubble > .lk-notification-content {\n margin-left: 0;\n margin-right: 67px;\n}\n.lk-notification-container .lk-notification-body.live-type.rtl-bubble > .lk-notification-content > .lk-notification-title, .lk-notification-container .lk-notification-body.live-type.rtl-bubble > .lk-notification-content > lk-titulo {\n margin-left: 5px;\n margin-right: 0;\n}\n.lk-notification-container .lk-notification-body.live-type {\n background-color: #fff;\n width: 290px;\n}\n.lk-notification-container .lk-notification-body.live-type .lk-notification-content {\n margin-left: 70px;\n}\n.lk-notification-container .lk-notification-body.live-type .lk-notification-content > .lk-notification-title, .lk-notification-container .lk-notification-body.live-type .lk-notification-content > lk-titulo {\n font-size: 14px;\n display: inline;\n margin-right: 5px;\n}\n.lk-notification-container .lk-notification-body.live-type .lk-notification-content > .lk-notification-title > span, .lk-notification-container .lk-notification-body.live-type .lk-notification-content > lk-titulo > span {\n font-weight: bolder;\n display: inline-block;\n border-radius: 4px;\n background-color: #f2e9ff;\n color: #7825f3;\n}\n.lk-notification-container .lk-notification-body.live-type .lk-notification-content .lk-notification-time, .lk-notification-container .lk-notification-body.live-type .lk-notification-content lk-small {\n margin-top: 5px;\n margin-bottom: 2px;\n}\n.lk-notification-container .lk-notification-body.live-type svg.ps-pulse-dot {\n position: inherit;\n width: 100%;\n height: 100%;\n display: block;\n}\n.lk-notification-container .lk-notification-body.live-type svg.ps-pulse-dot > circle {\n stroke: #24a03c;\n fill: #24a03c !important;\n stroke-width: 1px;\n stroke-opacity: 1;\n}\n.lk-notification-container .lk-notification-body.live-type svg.ps-pulse-dot ._ps-pulse {\n fill: #fff !important;\n fill-opacity: 0;\n transform-origin: 50% 50%;\n animation-duration: 2s;\n animation-name: _ps-pulse;\n animation-iteration-count: infinite;\n}\n.lk-notification-container .lk-notification-body.live-type > .lk-notification-content > .lk-notification-description {\n font-size: 14px;\n display: inline-block;\n}\n.lk-notification-container .lk-notification-body.informational-type {\n min-height: 60px;\n display: flex;\n align-items: center;\n}\n.lk-notification-container .lk-notification-body.informational-type .lk-notification-content .lk-notification-title span, .lk-notification-container .lk-notification-body.informational-type .lk-notification-content lk-titulo span {\n padding: 3px 0;\n background-color: transparent !important;\n border-radius: 0;\n color: #384FA1;\n}\n.lk-notification-container .lk-notification-body.informational-type .lk-notification-content .lk-notification-description {\n font-size: 13px;\n margin-bottom: 4px;\n margin-top: 2px;\n padding-right: 10px;\n}\n.lk-notification-container .lk-notification-body.informational-type .lk-notification-time .ps-link, .lk-notification-container .lk-notification-body.informational-type lk-small .ps-link {\n margin-left: -2px;\n}\n.lk-notification-container .lk-notification-body.informational-type.rtl-bubble .lk-notification-content .lk-notification-description {\n padding-right: 0;\n padding-left: 10px;\n}\n.lk-notification-container .lk-notification-body.informational-type.rtl-bubble .lk-notification-time .ps-link, .lk-notification-container .lk-notification-body.informational-type.rtl-bubble lk-small .ps-link {\n direction: ltr !important;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.review-type .lk-notification-description > span {\n padding-right: 0;\n padding-left: 5px;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.review-type ._ps-review-rating {\n padding-right: 0;\n padding-left: 5px;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.review-type ._ps-review-rating img._ps-review-source {\n margin-right: 0;\n margin-left: 5px;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.review-type .review-source-container .review-source-name {\n display: none;\n}\n.lk-notification-container .lk-notification-body.rtl-bubble.review-type .lk-notification-time .pfs-link, .lk-notification-container .lk-notification-body.rtl-bubble.review-type lk-small .pfs-link {\n float: left;\n}\n.lk-notification-container svg {\n position: unset;\n top: unset;\n left: unset;\n height: unset;\n width: unset;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-time, .lk-notification-container .lk-notification-body.social-type lk-small {\n display: flex;\n justify-content: center;\n}\n.lk-notification-container .lk-notification-body.social-type .social-text {\n font-size: 14px;\n margin: 9px 13px 0 13px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n color: #15171a !important;\n word-wrap: normal;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n -o-text-overflow: ellipsis;\n -ms-text-overflow: ellipsis;\n line-height: 17px;\n max-height: 35px;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-description {\n display: flex;\n justify-content: space-around;\n padding-top: 14px;\n padding-bottom: 2px;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-description .social-item img {\n width: 40px;\n display: block;\n margin: 0 auto;\n margin-bottom: 2px;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-description .social-item span {\n padding-top: 1px;\n display: block;\n margin: 0 auto;\n text-align: center;\n font-weight: 700;\n color: #454545;\n margin-bottom: 5px;\n font-size: 13px !important;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-description.two-icons {\n padding-left: 80px;\n padding-right: 80px;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-description.three-icons {\n padding-left: 50px;\n padding-right: 50px;\n}\n.lk-notification-container .lk-notification-body.social-type .lk-notification-description.four-icons {\n padding-left: 25px;\n padding-right: 25px;\n}\n\n#luker-widget-area {\n z-index: 2147483647;\n}\n#luker-widget-area .lk-animated {\n -webkit-animation-duration: 0.8s;\n animation-duration: 0.8s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n.lk-notification-container.bottom-center {\n left: 50%;\n bottom: 10px;\n margin-left: -165px;\n}\n.lk-notification-container.bottom-center .lk-notification-body {\n float: left;\n}\n\n.lk-notification-container.bottom-left {\n left: 10px;\n bottom: 10px;\n}\n.lk-notification-container.bottom-left .lk-notification-body {\n float: left;\n}\n\n.lk-notification-container.top-left {\n left: 10px;\n top: 10px;\n}\n.lk-notification-container.top-left .lk-notification-body {\n float: left;\n}\n\n.lk-notification-container.bottom-right {\n right: 10px;\n bottom: 10px;\n}\n.lk-notification-container.bottom-right .lk-notification-body {\n float: right;\n}\n\n.lk-notification-container.top-right {\n right: 10px;\n top: 10px;\n}\n.lk-notification-container.top-right .lk-notification-body {\n float: right;\n}\n\n.lk-notification-container.lk-show {\n display: block;\n}\n\n.lk-notification-container.lk-hide {\n display: none;\n}\n\n#lk-notification-body-container.lk-notification-body.plan-limit-reached {\n font-size: 0.9rem;\n text-align: center;\n width: 485px;\n padding: 1.9rem;\n z-index: 2147483010 !important;\n}\n#lk-notification-body-container.lk-notification-body.plan-limit-reached > .limit-content {\n font-size: 0.9rem;\n color: #767676;\n margin-top: 20px;\n text-align: left;\n line-height: 1.4;\n font-weight: 100;\n}\n#lk-notification-body-container.lk-notification-body.plan-limit-reached > .limit-content > strong {\n color: #f03e45;\n padding: 2px 5px;\n background: #ffefef;\n font-size: 1rem;\n font-weight: 700;\n border-radius: 6px;\n}\n#lk-notification-body-container.lk-notification-body.plan-limit-reached > .box-title {\n padding: 6px 7px 6px 6px;\n background: #fff;\n color: #6e6e6e;\n border-radius: 3px;\n font-size: 14px;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 0;\n display: inline-block;\n text-align: left;\n width: auto;\n border: 1px solid #d7d7d7;\n}\n#lk-notification-body-container.lk-notification-body.plan-limit-reached > .lk-notification-time, #lk-notification-body-container.lk-notification-body.plan-limit-reached > lk-small {\n text-align: center;\n padding: 7px 0;\n}\n#lk-notification-body-container.lk-notification-body.plan-limit-reached > .limit-title {\n color: #151515;\n margin-left: auto;\n margin-right: auto;\n text-align: left;\n font-size: 1.3rem;\n margin-top: 15px;\n}\n\n#lk-remarketing-container {\n position: absolute;\n width: 300px;\n border-radius: 3px;\n background: #fff;\n text-align: center;\n left: 0;\n bottom: 5px;\n border: 3px solid #7625f3;\n padding: 5px;\n min-height: 100px;\n cursor: pointer;\n}\n#lk-remarketing-container .lock-icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjM2MS4xMThweCIgaGVpZ2h0PSIzNjEuMTE4cHgiIHZpZXdCb3g9IjAgMCAzNjEuMTE4IDM2MS4xMTgiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM2MS4xMTggMzYxLjExODsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPGcgaWQ9Il94MzJfMzcuX0xvY2tlZCI+DQoJCTxnPg0KCQkJPHBhdGggZD0iTTI3NC43NjUsMTQxLjNWOTQuMjA1QzI3NC43NjUsNDIuMTcyLDIzMi41ODMsMCwxODAuNTU5LDBjLTUyLjAzMiwwLTk0LjIwNSw0Mi4xNzItOTQuMjA1LDk0LjIwNVYxNDEuMw0KCQkJCWMtMTcuMzQsMC0zMS40LDE0LjA2LTMxLjQsMzEuNHYxNTcuMDE2YzAsMTcuMzQ0LDE0LjA2LDMxLjQwMiwzMS40LDMxLjQwMmgxODguNDExYzE3LjM0MSwwLDMxLjM5OC0xNC4wNTksMzEuMzk4LTMxLjQwMlYxNzIuNw0KCQkJCUMzMDYuMTY0LDE1NS4zNiwyOTIuMTA2LDE0MS4zLDI3NC43NjUsMTQxLjN6IE0xMTcuNzU2LDk0LjIwNWMwLTM0LjY5LDI4LjEyLTYyLjgwMyw2Mi44MDMtNjIuODAzDQoJCQkJYzM0LjY4NSwwLDYyLjgwNSwyOC4xMTIsNjIuODA1LDYyLjgwM1YxNDEuM0gxMTcuNzU2Vjk0LjIwNXogTTI3NC43NjUsMzI5LjcxNUg4Ni4zNTRWMTcyLjcwOGgxODguNDExVjMyOS43MTV6DQoJCQkJIE0xNjQuODU4LDI2Mi41NTh2MjAuMDU0YzAsOC42NjQsNy4wMzUsMTUuNzAxLDE1LjcwMSwxNS43MDFjOC42NjQsMCwxNS43MDEtNy4wMzcsMTUuNzAxLTE1LjcwMXYtMjAuMDU0DQoJCQkJYzkuMzM3LTUuNDQxLDE1LjcwMS0xNS40NTYsMTUuNzAxLTI3LjA0NmMwLTE3LjM0OC0xNC4wNjItMzEuNDEtMzEuNDAyLTMxLjQxYy0xNy4zNCwwLTMxLjQsMTQuMDYyLTMxLjQsMzEuNDENCgkJCQlDMTQ5LjE1OSwyNDcuMTAyLDE1NS41MTcsMjU3LjExNywxNjQuODU4LDI2Mi41NTh6Ii8+DQoJCTwvZz4NCgk8L2c+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==);\n background-size: 14px;\n display: inline-block;\n width: 18px;\n opacity: 0.3;\n height: 14px;\n background-repeat: no-repeat;\n margin-bottom: -1px;\n}\n#lk-remarketing-container a.box-cta {\n display: block;\n padding: 6px;\n background: #7625f3;\n color: #fff;\n border: 1px solid #6d1fe7;\n border-radius: 3px;\n}\n#lk-remarketing-container .box-content {\n padding: 15px;\n margin-top: 0;\n font-size: 14px;\n line-height: 19px !important;\n}\n#lk-remarketing-container .box-title {\n padding: 5px;\n background: #f7f7f7;\n color: #9f9f9f;\n border-radius: 3px;\n font-size: 14px;\n margin-left: auto;\n margin-right: auto;\n width: 60%;\n text-align: center;\n}\n\n#lk-notification-body-container.plan-limit-reached .lock-icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjM2MS4xMThweCIgaGVpZ2h0PSIzNjEuMTE4cHgiIHZpZXdCb3g9IjAgMCAzNjEuMTE4IDM2MS4xMTgiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM2MS4xMTggMzYxLjExODsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPGcgaWQ9Il94MzJfMzcuX0xvY2tlZCI+DQoJCTxnPg0KCQkJPHBhdGggZD0iTTI3NC43NjUsMTQxLjNWOTQuMjA1QzI3NC43NjUsNDIuMTcyLDIzMi41ODMsMCwxODAuNTU5LDBjLTUyLjAzMiwwLTk0LjIwNSw0Mi4xNzItOTQuMjA1LDk0LjIwNVYxNDEuMw0KCQkJCWMtMTcuMzQsMC0zMS40LDE0LjA2LTMxLjQsMzEuNHYxNTcuMDE2YzAsMTcuMzQ0LDE0LjA2LDMxLjQwMiwzMS40LDMxLjQwMmgxODguNDExYzE3LjM0MSwwLDMxLjM5OC0xNC4wNTksMzEuMzk4LTMxLjQwMlYxNzIuNw0KCQkJCUMzMDYuMTY0LDE1NS4zNiwyOTIuMTA2LDE0MS4zLDI3NC43NjUsMTQxLjN6IE0xMTcuNzU2LDk0LjIwNWMwLTM0LjY5LDI4LjEyLTYyLjgwMyw2Mi44MDMtNjIuODAzDQoJCQkJYzM0LjY4NSwwLDYyLjgwNSwyOC4xMTIsNjIuODA1LDYyLjgwM1YxNDEuM0gxMTcuNzU2Vjk0LjIwNXogTTI3NC43NjUsMzI5LjcxNUg4Ni4zNTRWMTcyLjcwOGgxODguNDExVjMyOS43MTV6DQoJCQkJIE0xNjQuODU4LDI2Mi41NTh2MjAuMDU0YzAsOC42NjQsNy4wMzUsMTUuNzAxLDE1LjcwMSwxNS43MDFjOC42NjQsMCwxNS43MDEtNy4wMzcsMTUuNzAxLTE1LjcwMXYtMjAuMDU0DQoJCQkJYzkuMzM3LTUuNDQxLDE1LjcwMS0xNS40NTYsMTUuNzAxLTI3LjA0NmMwLTE3LjM0OC0xNC4wNjItMzEuNDEtMzEuNDAyLTMxLjQxYy0xNy4zNCwwLTMxLjQsMTQuMDYyLTMxLjQsMzEuNDENCgkJCQlDMTQ5LjE1OSwyNDcuMTAyLDE1NS41MTcsMjU3LjExNywxNjQuODU4LDI2Mi41NTh6Ii8+DQoJCTwvZz4NCgk8L2c+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==);\n background-size: 14px;\n display: inline-block;\n width: 18px;\n opacity: 0.3;\n height: 14px;\n background-repeat: no-repeat;\n margin-bottom: -1px;\n}\n#lk-notification-body-container.plan-limit-reached .money-back {\n color: #03ab33 !important;\n padding-bottom: 5px;\n font-weight: 700;\n}\n\n#lk-notification-body-container .limit-cta {\n margin-top: 10px;\n}\n#lk-notification-body-container .limit-cta > a.box-cta {\n display: block;\n padding: 7px 0;\n background: #03ab33;\n color: #fff;\n border: 2px solid #03ab33;\n border-radius: 5px;\n width: 100px;\n font-size: 0.9rem;\n text-align: center;\n margin-right: auto;\n font-weight: 700;\n}\n#lk-notification-body-container .box-title {\n padding: 5px;\n background: #f7f7f7;\n color: #9f9f9f;\n border-radius: 3px;\n font-size: 14px;\n margin-left: auto;\n margin-right: auto;\n width: 100%;\n margin-bottom: 8px;\n text-align: center;\n}\n\n@media only screen and (max-width: 815px) {\n .lk-notification-container {\n bottom: 0 !important;\n left: 0 !important;\n width: 100%;\n max-width: 100%;\n }\n .lk-notification-container .lk-notification-body:hover {\n box-shadow: none;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n -webkit-transition: none;\n -moz-transition: none;\n -ms-transition: none;\n -o-transition: none;\n transition: none;\n top: 0;\n }\n .lk-notification-container .lk-notification-body.combo-type {\n width: 100% !important;\n }\n .lk-notification-container .lk-notification-body.live-type {\n width: 100% !important;\n }\n .lk-notification-container > .lk-notification-body {\n width: 100%;\n max-width: 100%;\n border-radius: 0;\n }\n .lk-notification-container .lk-notification-content .bubble-cta {\n margin-bottom: 0;\n margin-top: 0;\n }\n .lk-notification-container #lk-notification-close {\n padding: 15px !important;\n top: 11px !important;\n right: -1px !important;\n }\n .lk-notification-container #lk-notification-close span.close-after {\n height: 13px !important;\n }\n .lk-notification-container #lk-notification-close span.close-before {\n width: 13px !important;\n }\n .lk-notification-container > .lk-notification-body.live-type > .bubble-live-pulse {\n float: left;\n width: 67px;\n display: block;\n position: absolute;\n border-right: none;\n height: 100%;\n margin-top: 0 !important;\n }\n .lk-notification-container > .lk-notification-body.live-type > .bubble-live-pulse > svg {\n height: 50px !important;\n padding: 5px;\n margin-top: auto;\n margin-bottom: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content {\n margin-left: 70px !important;\n text-align: inherit !important;\n min-height: 60px;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n text-align: unset !important;\n }\n .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > .lk-notification-time, .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > lk-small {\n flex: 0 1 100%;\n margin-top: 4px;\n }\n .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > .lk-notification-description {\n display: inline-block;\n font-size: 14px !important;\n margin-bottom: 0;\n line-height: inherit !important;\n margin-top: 0 !important;\n }\n .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > .lk-notification-description > span {\n vertical-align: middle;\n }\n .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > .lk-notification-title, .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > lk-titulo {\n margin-right: 6px;\n line-height: inherit !important;\n font-size: 15px !important;\n margin-top: 0 !important;\n display: inline-block !important;\n }\n .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > .lk-notification-title > span, .lk-notification-container > .lk-notification-body.live-type > .lk-notification-content > lk-titulo > span {\n vertical-align: sub;\n font-weight: bolder !important;\n display: inline-block !important;\n line-height: inherit !important;\n padding: 2px 8px !important;\n border-radius: 4px !important;\n min-width: 0 !important;\n }\n .lk-notification-container .lk-notification-body.live-type.rtl-bubble > .lk-notification-content {\n margin-left: 0 !important;\n margin-right: 70px !important;\n }\n .lk-notification-container .lk-notification-body.live-type.rtl-bubble > .lk-notification-content > .lk-notification-title, .lk-notification-container .lk-notification-body.live-type.rtl-bubble > .lk-notification-content > lk-titulo {\n margin-right: 0 !important;\n margin-left: 5px !important;\n }\n .lk-notification-container.mobile-top {\n right: 0 !important;\n top: 0 !important;\n }\n .lk-notification-container.mobile-bottom {\n right: 0 !important;\n bottom: 0 !important;\n top: initial;\n }\n}\n/**\nProbando compatibilidad con el viejo\n */\n.lk-notification-description .lk_template .lk_productorow {\n display: block;\n font-weight: bold !important;\n color: #3A4750 !important;\n font-size: 16px !important;\n}\n\n.lk_ventasrow {\n display: block;\n color: #3A4750 !important;\n font-size: 16px !important;\n}\n\nlk-titulo {\n display: block;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nlk-small {\n display: block;\n}',{});class r{constructor(t,e){this.delay=e,this.remaining=e,this.callback=t,this.start=0,this.restart()}pause(){this.start&&(window.clearTimeout(this.timerId),this.remaining-=n()-this.start)}resume(){this.start=n(),window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.callback,this.remaining)}restart(){this.remaining=this.delay,this.resume()}getRemaining(){return this.remaining}}function o(t,e){if(!window.URL)return e;const n=new URL(document.location.toString()).searchParams;if(!n.has(t))return e;const i=n.get(t);return null!==i?i:e}var s,a,c=(s=function(t,e){!function(){var e,n="function",i="isNode",r=function(t,e){return typeof t===e},o=function(t,e){null!==e&&(Array.isArray(e)?e.map((function(e){return o(t,e)})):(s[i](e)||(e=document.createTextNode(e)),t.appendChild(e)))};function s(t,e){var a,c,l=arguments,u=1;if(t=s.isElement(t)?t:document.createElement(t),r(e,"object")&&!s[i](e)&&!Array.isArray(e))for(a in u++,e)c=e[a],a=s.attrMap[a]||a,r(a,n)?a(t,c):r(c,n)?t[a]=c:t.setAttribute(a,c);for(;u{let[e,n]=t;return this.el.addEventListener(e,n)}))}parseMobilePosition(){return"top"===this.cPn?.mobilePosition?"mobile-top":"mobile-bottom"}parsePosition(){switch(this.cPn?.position){case"topLeft":return"top-left";case"topRight":return"top-right";case"bottomRight":return"bottom-right";default:return"bottom-left"}}getShowAnimation(){return"lkBounceIn"}getHideAnimation(){return"lkBounceOut"}show(){return this.el.classList.add(this.getShowAnimation()),i(this.animationDelay)}close(){return this.el.classList.add(this.getHideAnimation()),i(this.animationDelay).then((()=>{this.el.parentElement&&this.el.parentElement.removeChild(this.el)}))}}let b=function(t){return t.show="notificationShow",t.click="notificationClicked",t.mouseEnter="notificationMouseEntered",t.mouseLeave="notificationMouseLeaved",t}({}),v=function(t){return t.pageview="lukerPageview",t}({});class k{constructor(t,e){this.type=t,this.domEvent=e}}class w extends k{constructor(t,e,n){super(t,n),this.notification=e}}var x={exports:{}};!function(t){var e,n;e=f,n=function(){var t=function(){},e="undefined",n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],r={},o=null;function s(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),r=0;r=0&&e<=p.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?h+=":"+t:"symbol"==typeof t&&(h=void 0),p.name=t,p.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},p.methodFactory=n||u,p.getLevel=function(){return null!=l?l:null!=a?a:s},p.setLevel=function(t,n){return l=f(t),!1!==n&&function(t){var n=(i[t]||"silent").toUpperCase();if(typeof window!==e&&h){try{return void(window.localStorage[h]=n)}catch(t){}try{window.document.cookie=encodeURIComponent(h)+"="+n+";"}catch(t){}}}(l),c.call(p)},p.setDefaultLevel=function(t){a=f(t),d()||p.setLevel(t,!1)},p.resetLevel=function(){l=null,function(){if(typeof window!==e&&h){try{window.localStorage.removeItem(h)}catch(t){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),c.call(p)},p.enableAll=function(t){p.setLevel(p.levels.TRACE,t)},p.disableAll=function(t){p.setLevel(p.levels.SILENT,t)},p.rebuild=function(){if(o!==p&&(s=f(o.getLevel())),c.call(p),o===p)for(var t in r)r[t].rebuild()},s=f(o?o.getLevel():"WARN");var m=d();null!=m&&(l=f(m)),c.call(p)}(o=new p).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=r[t];return e||(e=r[t]=new p(t,o.methodFactory)),e};var h=typeof window!==e?window.log:void 0;return o.noConflict=function(){return typeof window!==e&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return r},o.default=o,o},t.exports?t.exports=n():e.log=n()}(x);var _=x.exports;class T{constructor(t){let{elem:e,config:n,notification:i,emitter:r,animationDelay:o=1e3}=t;this.emitter=r,this.eventsEnabled=!0,this.notification=i,this.config=n;const s=[["click",this.manageClickEvent.bind(this)],["mouseenter",this.manageMouseEnter.bind(this)],["mouseleave",this.manageMouseLeave.bind(this)]];this.renderer=new y({config:this.config,notification:i,elm:e,handlers:s,animationDelay:"test"===process.env.NODE_ENV?1:o})}getElement(){return this.renderer.el}getNotification(){return this.notification}show(){this.eventsEnabled=!1,this.renderer.show()}showFor(t){let e;this.renderer.show(),this.eventsEnabled&&this.emitter.emit(b.show,new w(b.show,this.notification));const n=new Promise((t=>{e=t}));return this.timer=new r((()=>this.closePromise().then((()=>e()))),t),n}manageClickEvent(t){_.debug("FIX"),this.renderer.close(),this.eventsEnabled&&this.emitter.emit(b.click,new w(b.click,this.notification,t))}manageMouseEnter(t){this.eventsEnabled&&this.emitter.emit(b.mouseEnter,new w(b.mouseEnter,this.notification,t)),this.timer&&this.timer.pause()}manageMouseLeave(t){this.eventsEnabled&&this.emitter.emit(b.mouseLeave,new w(b.mouseLeave,this.notification,t)),this.timer&&this.timer.restart()}closePromise(){return this.renderer.close()}}class S{constructor(t){let{elem:e,config:n,notification:i,emitter:r,animationDelay:o=1e3}=t;this.emitter=r,this.notification=i,this.config=n;const s=[["click",this.manageClickEvent.bind(this)],["mouseenter",this.manageMouseEnter.bind(this)],["mouseleave",this.manageMouseLeave.bind(this)]];this.renderer=new y({config:this.config,elm:e,notification:i,handlers:s,isPreview:!0,animationDelay:"test"===process.env.NODE_ENV?1:o})}getElement(){return this.renderer.el}show(){this.renderer.show()}getNotification(){return this.notification}showFor(){throw new Error("No se debe llamar al showFor en Preview")}manageClickEvent(t){this.emitter.emit(b.click,new w(b.click,this.notification,t))}manageMouseEnter(t){this.emitter.emit(b.mouseEnter,new w(b.mouseEnter,this.notification,t)),this.timer&&this.timer.pause()}manageMouseLeave(t){this.emitter.emit(b.mouseLeave,new w(b.mouseLeave,this.notification,t)),this.timer&&this.timer.restart()}closePromise(){return this.renderer.close()}close(){return Promise.resolve(void 0)}}function E(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;it)))}function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;rt)))}function L(t,e){let{attr:n={},html:i}=e;if(i){const e=c("div",{...n,class:t});return e.innerHTML=i,e}for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;st)))}const N={highlightColor:"#384FA1",textColor:"#323232",smallTextColor:"#999999",backgroundColor:"#ffffff"},P={gaeeEnabled:!0,delayBetween:6,initialDelay:2,CID:"unset",SID:"unset",active:!0,startOnScroll:!1,ultimasVentas:{active:!0,displayTime:4,position:"bottomLeft",mobilePosition:"bottom",mobileSize:"Normal",showTo:"All",mobileDisabled:!1,hideTimeAgo:!1,hideTimeAgoHs:24,hideCliente:!1,hideClienteAlternative:"Alguien",clickEnabled:!0,clickOpenNewTab:!0,theme:N,template:"cliente"},informativa:{body:"body",title:"title",active:!0,displayTime:4,position:"bottomLeft",mobilePosition:"bottom",showTo:"All",mobileDisabled:!1,theme:N,template:"cliente"}};var M=["second","minute","hour","day","week","month","year"];var j=["秒","分钟","小时","天","周","个月","年"];var C={},I=function(t,e){C[t]=e},O=[60,60,24,7,365/7/12,12];function A(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}var z=function(t,e,n){var i=function(t,e){return(+(e?A(e):new Date)-+A(t))/1e3}(t,n&&n.relativeDate);return function(t,e){for(var n=t<0?1:0,i=t=Math.abs(t),r=0;t>=O[r]&&r(0==(r*=2)?9:1)&&(r+=1),e(t,r,i)[n].replace("%s",t.toString())}(i,function(t){return C[t]||C.en_US}(e))};function R(){if(!window.matchMedia)return!1;const t=window.matchMedia("(hover: none)"),e=window.matchMedia("(pointer: coarse)");return t.matches&&e.matches}I("en_US",(function(t,e){if(0===e)return["just now","right now"];var n=M[Math.floor(e/2)];return t>1&&(n+="s"),[t+" "+n+" ago","in "+t+" "+n]})),I("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var n=j[~~(e/2)];return[t+" "+n+"前",t+" "+n+"后"]})),I("es",((t,e)=>[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["ayer","mañana"],["hace %s días","en %s días"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 año","en 1 año"],["hace %s años","en %s años"]][e]));var U=9999,$=-1;class F{constructor(t){let{config:e,globalConfig:n}=t;this.config=e,this.globalConfig=n}prepareData(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t,i=t.data,r=this.parseHace(n.time,e),o=this.config?.hideClienteAlternative||"Alguien";return{...i,cliente:this.config?.hideCliente?o:i.cliente||o,ciudad_o_provincia:i.ciudad||i.provincia,hace:r}}parseHace(t,e){return"Minimal"===this.config.mobileSize&&R()?"":t&&this.checkTimeAgoConfig(t)?`${function(t,e){const n=new Date(t);return isNaN(n.getDate())?"":z(n,e)}(t,"es")}`:e?" ":""}checkTimeAgoConfig(t){const e=this.config;if(!t)return!1;const n=new Date(t),i=Math.ceil(((new Date).getTime()-n.getTime())/36e5);return!(i<0)&&(e.hideTimeAgoHs===$||e.hideTimeAgoHs!==U&&(0===e.hideTimeAgoHs||i<=e.hideTimeAgoHs))}}class V{constructor(t,e,n,i,r){this.kind=t,this.input=e,this.begin=n,this.end=i,this.file=r}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[t,e]=[1,1];for(let n=0;nW(t))).join(""):String(t)}function K(t){return ot(t=tt(t))?t:H(t)&&t.length>0?[t]:ct(e=t)&&Symbol.iterator in e?Array.from(t):ct(t)?Object.keys(t).map((e=>[e,t[e]])):[];var e}function X(t){return rt(t=tt(t))?[]:ot(t)?t:[t]}function tt(t){return t instanceof q&&Y(t.valueOf)?t.valueOf():t}function et(t){return t=Number(t),isNaN(t)?0:t}function nt(t){return"number"==typeof t}function it(t){return t&&Y(t.toLiquid)?it(t.toLiquid()):t}function rt(t){return null==t}function ot(t){return"[object Array]"===B.call(t)}function st(t,e){t=t||{};for(const n in t)if(G.call(t,n)&&!1===e(t[n],n,t))break;return t}function at(t){return t[t.length-1]}function ct(t){const e=typeof t;return null!==t&&("object"===e||"function"===e)}function lt(t,e,n=1){const i=[];for(let r=t;re+t))}function pt(t,e,n,i){let r=e-(t=String(t)).length;for(;r-- >0;)t=i(t,n);return t}function ht(t){return t}function dt(t,e){return null==t&&null==e?0:null==t?1:null==e||(t=Q.call(t))<(e=Q.call(e))?-1:t>e?1:0}function ft(t){return function(...e){return t.call(this,...e.map(tt))}}function mt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const gt="__liquidClass__";class yt extends Error{constructor(t,e){super("string"==typeof t?t:t.message),this.context="","string"!=typeof t&&Object.defineProperty(this,"originalError",{value:t,enumerable:!1}),Object.defineProperty(this,"token",{value:e,enumerable:!1}),Object.defineProperty(this,gt,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:St(this.token),enumerable:!1}),this.message=function(t,e){e.file&&(t+=`, file:${e.file}`);const[n,i]=e.getPosition();return t+=`, line:${n}, col:${i}`,t}(this.message,this.token),this.stack=this.message+"\n"+this.context+"\n"+this.stack,this.originalError&&(this.stack+="\nFrom "+this.originalError.stack)}static is(t){return"LiquidError"===(null==t?void 0:t[gt])}}class bt extends yt{constructor(t,e){super(t,e),this.name="TokenizationError",super.update()}}class vt extends yt{constructor(t,e){super(t,e),this.name="ParseError",this.message=t.message,super.update()}}class kt extends yt{constructor(t,e){super(t,e.token),this.name="RenderError",this.message=t.message,super.update()}static is(t){return"RenderError"===t.name}}class wt extends yt{constructor(t){super(t[0],t[0].token),this.errors=t,this.name="LiquidErrors";const e=t.length>1?"s":"";this.message=`${t.length} error${e} found`,super.update()}static is(t){return"LiquidErrors"===t.name}}class xt extends yt{constructor(t,e){super(t,e),this.name="UndefinedVariableError",this.message=t.message,super.update()}}class _t extends Error{constructor(t){super(`undefined variable: ${t}`),this.name="InternalUndefinedVariableError",this.variableName=t}}class Tt extends Error{constructor(t){super(t),this.name="AssertionError",this.message=t+""}}function St(t){const[e,n]=t.getPosition(),i=t.input.split("\n"),r=Math.max(e-2,1),o=Math.min(e+3,i.length);return lt(r,o+1).map((t=>{let r=`${t===e?">> ":" "}${ut(String(t),String(o).length)}| `;const s=t===e?"\n"+ut("^",n+r.length):"";return r+=i[t-1],r+=s,r})).join("\n")}const Et=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Dt(t){const e=t.charCodeAt(0);return e>=128?!Et[e]:!!(1&Et[e])}function Lt(t,e){if(!t){const n="function"==typeof e?e():e||`expect ${t} to be true`;throw new Tt(n)}}function Nt(t,e=`unexpected ${JSON.stringify(t)}`){Lt(!t,e)}Et[160]=Et[5760]=Et[6158]=Et[8192]=Et[8193]=Et[8194]=Et[8195]=Et[8196]=Et[8197]=Et[8198]=Et[8199]=Et[8200]=Et[8201]=Et[8202]=Et[8232]=Et[8233]=Et[8239]=Et[8287]=Et[12288]=4,Et[8220]=Et[8221]=128;class Pt extends q{equals(t){return!(t instanceof Pt)&&(H(t=tt(t))||ot(t)?0===t.length:!!ct(t)&&0===Object.keys(t).length)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}}class Mt extends q{constructor(t,e,n){super(),this.i=0,this.length=t,this.name=`${n}-${e}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return 0===this.i}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}}class jt extends q{constructor(t=()=>""){super(),this.superBlockRender=t}super(){return this.superBlockRender()}}function Ct(t){return t&&Y(t.equals)&&Y(t.gt)&&Y(t.geq)&&Y(t.lt)&&Y(t.leq)}const It=new class extends q{equals(t){return rt(tt(t))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},Ot={true:!0,false:!1,nil:It,null:It,empty:new Pt,blank:new class extends Pt{equals(t){return!1===t||(!!rt(tt(t))||(H(t)?/^\s*$/.test(t):super.equals(t)))}}};function At(t){const e={};for(const[n,i]of Object.entries(t)){let t=e;for(let e=0;e0?"-":"+")+ut(i,2,"0")+(e.flags[":"]?":":"")+ut(r,2,"0")}const Yt={a:t=>t.getShortWeekdayName(),A:t=>t.getLongWeekdayName(),b:t=>t.getShortMonthName(),B:t=>t.getLongMonthName(),c:t=>t.toLocaleString(),C:t=>function(t){return parseInt(t.getFullYear().toString().substring(0,2),10)}(t),d:t=>t.getDate(),e:t=>t.getDate(),H:t=>t.getHours(),I:t=>String(t.getHours()%12||12),j:t=>qt(t),k:t=>t.getHours(),l:t=>String(t.getHours()%12||12),L:t=>t.getMilliseconds(),m:t=>t.getMonth()+1,M:t=>t.getMinutes(),N:(t,e)=>{const n=Number(e.width)||9;return function(t,e,n=" "){return pt(t,e,n,((t,e)=>t+e))}(String(t.getMilliseconds()).slice(0,n),n,"0")},p:t=>t.getHours()<12?"AM":"PM",P:t=>t.getHours()<12?"am":"pm",q:t=>function(t){const e=t.getDate();if([11,12,13].includes(e))return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(t),s:t=>Math.round(t.getTime()/1e3),S:t=>t.getSeconds(),u:t=>t.getDay()||7,U:t=>Bt(t,0),w:t=>t.getDay(),W:t=>Bt(t,1),x:t=>t.toLocaleDateString(),X:t=>t.toLocaleTimeString(),y:t=>t.getFullYear().toString().slice(2,4),Y:t=>t.getFullYear(),z:Ht,Z:(t,e)=>t.getTimeZoneName()||Ht(t,e),t:()=>"\t",n:()=>"\n","%":()=>"%"};function Zt(t,e){let n,i="",r=e;for(;n=Ft.exec(r);)i+=r.slice(0,n.index),r=r.slice(n.index+n[0].length),i+=Jt(t,n);return i+r}function Jt(t,e){const[n,i="",r,o,s]=e,a=Yt[s];if(!a)return n;const c={};for(const t of i)c[t]=!0;let l=String(a(t,{flags:c,width:r,modifier:o})),u=Gt.has(s)?" ":"0",p=r||Qt[s]||0;var h;return c["^"]?l=l.toUpperCase():c["#"]&&(h=l,l=[...h].some((t=>t>="a"&&t<="z"))?h.toUpperCase():h.toLowerCase()),c._?u=" ":c[0]&&(u="0"),c["-"]&&(p=0),ut(l,p,u)}function Wt(){return"undefined"!=typeof Intl?Intl.DateTimeFormat:void 0}Yt.h=Yt.b;const Kt=/([zZ]|([+-])(\d{2}):(\d{2}))$/,Xt=["January","February","March","April","May","June","July","August","September","October","November","December"],te=Xt.map((t=>t.slice(0,3))),ee=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ne=ee.map((t=>t.slice(0,3)));class ie{constructor(t,e,n){this.locale=e,this.DateTimeFormat=Wt(),this.date=new Date(t),this.timezoneFixed=void 0!==n,void 0===n&&(n=this.date.getTimezoneOffset()),this.timezoneOffset=H(n)?ie.getTimezoneOffset(n,this.date):n,this.timezoneName=H(n)?n:"";const i=6e4*(this.date.getTimezoneOffset()-this.timezoneOffset),r=this.date.getTime()+i;this.displayDate=new Date(r)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(t,e){return(null==e?void 0:e.timeZone)?this.date.toLocaleString(t,e):this.displayDate.toLocaleString(t,e)}toLocaleTimeString(t){return this.displayDate.toLocaleTimeString(t)}toLocaleDateString(t){return this.displayDate.toLocaleDateString(t)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){return this.timezoneFixed?this.timezoneName:this.DateTimeFormat?this.DateTimeFormat().resolvedOptions().timeZone:void 0}getLongMonthName(){var t;return null!==(t=this.format({month:"long"}))&&void 0!==t?t:Xt[this.getMonth()]}getShortMonthName(){var t;return null!==(t=this.format({month:"short"}))&&void 0!==t?t:te[this.getMonth()]}getLongWeekdayName(){var t;return null!==(t=this.format({weekday:"long"}))&&void 0!==t?t:ee[this.displayDate.getDay()]}getShortWeekdayName(){var t;return null!==(t=this.format({weekday:"short"}))&&void 0!==t?t:ne[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(t){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,t).format(this.displayDate)}static createDateFixedToTimezone(t,e){const n=t.match(Kt);if(n&&"Z"===n[1])return new ie(+new Date(t),e,0);if(n&&n[2]&&n[3]&&n[4]){const[,,i,r,o]=n,s=("+"===i?-1:1)*(60*parseInt(r,10)+parseInt(o,10));return new ie(+new Date(t),e,s)}return new ie(t,e)}static getTimezoneOffset(t,e){const n=e.toLocaleString("en-US",{timeZone:t}),i=e.toLocaleString("en-US",{timeZone:"UTC"}),r=new Date(n);return(+new Date(i)-+r)/6e4}}class re{constructor(t,e){this.base=0,this.message=`${t} limit exceeded`,this.limit=e}use(t){t=et(t),Lt(this.base+t<=this.limit,this.message),this.base+=t}check(t){Lt((t=et(t))<=this.limit,this.message)}}class oe extends V{constructor(t,[e,n],i,r,o,s,a,c){super(t,i,r,o,c),this.trimLeft=!1,this.trimRight=!1;const l="-"===i[e],u="-"===i[n-1];let p=l?e+1:e,h=u?n-1:n;for(;pp&&4&Et[i.charCodeAt(h-1)];)h--;this.contentRange=[p,h],this.trimLeft=l||s,this.trimRight=u||a}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}}class se extends oe{constructor(t,e,n,i,r){const{trimTagLeft:o,trimTagRight:s,tagDelimiterLeft:a,tagDelimiterRight:c}=i,[l,u]=[e+a.length,n-c.length];super(fn.Tag,[l,u],t,e,n,o,s,r),this.tokenizer=new rn(t,i.operators,r,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class ae extends oe{constructor(t,e,n,i,r){const{trimOutputLeft:o,trimOutputRight:s,outputDelimiterLeft:a,outputDelimiterRight:c}=i,l=[e+a.length,n-c.length];super(fn.Output,l,t,e,n,o,s,r)}}class ce extends V{constructor(t,e,n,i){super(fn.HTML,t,e,n,i),this.input=t,this.begin=e,this.end=n,this.file=i,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}}class le extends V{constructor(t,e,n,i){super(fn.Number,t,e,n,i),this.input=t,this.begin=e,this.end=n,this.file=i,this.content=Number(this.getText())}}class ue extends V{constructor(t,e,n,i){super(fn.Word,t,e,n,i),this.input=t,this.begin=e,this.end=n,this.file=i,this.content=this.getText()}}class pe extends V{constructor(t,e,n,i){super(fn.Literal,t,e,n,i),this.input=t,this.begin=e,this.end=n,this.file=i,this.literal=this.getText(),this.content=Ot[this.literal]}}const he={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},de={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0};class fe extends V{constructor(t,e,n,i){super(fn.Operator,t,e,n,i),this.input=t,this.begin=e,this.end=n,this.file=i,this.operator=this.getText()}getPrecedence(){const t=this.getText();return t in he?he[t]:1}}class me extends V{constructor(t,e,n,i,r,o){super(fn.PropertyAccess,n,i,r,o),this.variable=t,this.props=e}}class ge extends V{constructor(t,e,n,i,r,o){super(fn.Filter,n,i,r,o),this.name=t,this.args=e}}class ye extends V{constructor(t,e,n,i,r,o){super(fn.Hash,t,e,n,o),this.input=t,this.begin=e,this.end=n,this.name=i,this.value=r,this.file=o}}const be=/[\da-fA-F]/,ve=/[0-7]/,ke={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v"};function we(t){const e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}class xe extends V{constructor(t,e,n,i){super(fn.Quoted,t,e,n,i),this.input=t,this.begin=e,this.end=n,this.file=i,this.content=function(t){let e="";for(let n=1;nDate.now()};function De(){return"object"==typeof global&&global.performance||"object"==typeof window&&window.performance||Ee}class Le{constructor(){this.buffer=""}write(t){this.buffer+=W(t)}}class Ne{constructor(){throw this.buffer="",this.stream=null,new Error("streaming not supported in browser")}}class Pe{constructor(){this.buffer=""}write(t){"string"!=typeof(t=tt(t))&&""===this.buffer?this.buffer=t:this.buffer=W(this.buffer)+W(t)}}class Me{renderTemplatesToNodeStream(t,e){const n=new Ne;return Promise.resolve().then((()=>Ut(this.renderTemplates(t,e,n)))).then((()=>n.end()),(t=>n.error(t))),n.stream}*renderTemplates(t,e,n){n||(n=e.opts.keepOutputType?new Pe:new Le);const i=[];for(const r of t){e.renderLimit.check(De().now());try{const t=yield r.render(e,n);if(t&&n.write(t),n.break||n.continue)break}catch(t){const n=yt.is(t)?t:new kt(t,r);if(!e.opts.catchAllErrors)throw n;i.push(n)}}if(i.length)throw new wt(i);return n.buffer}}class je{constructor(t){this.postfix=[...Oe(t)]}*evaluate(t,e){Lt(t,"unable to evaluate: context not defined");const n=[];for(const i of this.postfix)if(bn(i)){const e=n.pop();let r;if(1===de[i.operator])r=yield t.opts.operators[i.operator](e,t);else{const o=n.pop();r=yield t.opts.operators[i.operator](o,e,t)}n.push(r)}else n.push(yield Ce(i,t,e));return n[0]}valid(){return!!this.postfix.length}}function*Ce(t,e,n=!1){if(t)return"content"in t?t.content:wn(t)===fn.PropertyAccess?yield function*(t,e,n){const i=[];for(const n of t.props)i.push(yield Ce(n,e,!1));try{if(t.variable){const r=yield Ce(t.variable,e,n);return yield e._getFromScope(r,i)}return yield e._get(i)}catch(e){if(n&&"InternalUndefinedVariableError"===e.name)return null;throw new xt(e,t)}}(t,e,n):function(t){return wn(t)===fn.Range}(t)?yield function*(t,e){const n=yield Ce(t.lhs,e),i=yield Ce(t.rhs,e);return lt(+n,+i+1)}(t,e):void 0}function Ie(t){return t.content}function*Oe(t){const e=[];for(const n of t)if(bn(n)){for(;e.length&&e[e.length-1].getPrecedence()>n.getPrecedence();)yield e.pop();e.push(n)}else yield n;for(;e.length;)yield e.pop()}function Ae(t,e){return!ze(t,e)}function ze(t,e){return t=tt(t),e.opts.jsTruthy?!t:!1===t||null==t}const Re={"==":Ue,"!=":(t,e)=>!Ue(t,e),">":(t,e)=>Ct(t)?t.gt(e):Ct(e)?e.lt(t):tt(t)>tt(e),"<":(t,e)=>Ct(t)?t.lt(e):Ct(e)?e.gt(t):tt(t)=":(t,e)=>Ct(t)?t.geq(e):Ct(e)?e.leq(t):tt(t)>=tt(e),"<=":(t,e)=>Ct(t)?t.leq(e):Ct(e)?e.geq(t):tt(t)<=tt(e),contains:(t,e)=>ot(t=tt(t))?t.some((t=>Ue(t,e))):!!Y(null==t?void 0:t.indexOf)&&t.indexOf(tt(e))>-1,not:(t,e)=>ze(tt(t),e),and:(t,e,n)=>Ae(tt(t),n)&&Ae(tt(e),n),or:(t,e,n)=>Ae(tt(t),n)||Ae(tt(e),n)};function Ue(t,e){return Ct(t)?t.equals(e):Ct(e)?e.equals(t):(t=tt(t),e=tt(e),ot(t)?ot(e)&&function(t,e){return t.length===e.length&&!t.some(((t,n)=>!Ue(t,e[n])))}(t,e):t===e)}class $e{constructor(t,e,n,i){this.key=t,this.value=e,this.next=n,this.prev=i}}class Fe{constructor(t,e=0){this.limit=t,this.size=e,this.cache={},this.head=new $e("HEAD",null,null,null),this.tail=new $e("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(t,e){if(this.cache[t])this.cache[t].value=e;else{const n=new $e(t,e,this.head.next,this.head);this.head.next.prev=n,this.head.next=n,this.cache[t]=n,this.size++,this.ensureLimit()}}read(t){if(!this.cache[t])return;const{value:e}=this.cache[t];return this.remove(t),this.write(t,e),e}remove(t){const e=this.cache[t];e.prev.next=e.next,e.next.prev=e.prev,delete this.cache[t],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}}function Ve(t,e){const n=document.createElement("base");n.href=t;const i=document.getElementsByTagName("head")[0];i.insertBefore(n,i.firstChild);const r=document.createElement("a");r.href=e;const o=r.href;return i.removeChild(n),o}var qe=Object.freeze({__proto__:null,resolve:function(t,e,n){return t.length&&"/"!==at(t)&&(t+="/"),Ve(t,e).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/,((t,e,i)=>{const r=i.split("/").pop();return/\.\w+$/.test(r)?t:e+i+n}))},readFile:function(t){return Rt(this,void 0,void 0,(function*(){return new Promise(((e,n)=>{const i=new XMLHttpRequest;i.onload=()=>{i.status>=200&&i.status<300?e(i.responseText):n(new Error(i.statusText))},i.onerror=()=>{n(new Error("An error occurred whilst receiving the response."))},i.open("GET",t),i.send()}))}))},readFileSync:function(t){const e=new XMLHttpRequest;if(e.open("GET",t,!1),e.send(),e.status<200||e.status>=300)throw new Error(e.statusText);return e.responseText},exists:function(t){return Rt(this,void 0,void 0,(function*(){return!0}))},existsSync:function(t){return!0},dirname:function(t){return Ve(t,".")},sep:"/"});function Be(t,e=0){return JSON.stringify(t,null,e)}var Qe={default:function(t,e,...n){return ot(t=tt(t))||H(t)?t.length?t:e:(!1!==t||!new Map(n).get("allow_false"))&&(ze(t,this.context)?e:t)},raw:{raw:!0,handler:ht},jsonify:Be,to_integer:function(t){return Number(t)},json:Be,inspect:function(t,e=0){const n=[];return JSON.stringify(t,(function(t,e){if("object"!=typeof e||null===e)return e;for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(e)?"[Circular]":(n.push(e),e)}),e)}};const Ge={"&":"&","<":"<",">":">",'"':""","'":"'"},He={"&":"&","<":"<",">":">",""":'"',"'":"'"};function Ye(t){return t=W(t),this.context.memoryLimit.use(t.length),t.replace(/&|<|>|"|'/g,(t=>Ge[t]))}function Ze(t){return t=W(t),this.context.memoryLimit.use(t.length),t.replace(/&(amp|lt|gt|#34|#39);/g,(t=>He[t]))}var Je=Object.freeze({__proto__:null,escape:Ye,xml_escape:function(t){return Ye.call(this,t)},escape_once:function(t){return Ye.call(this,Ze.call(this,t))},newline_to_br:function(t){const e=W(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"
\n")},strip_html:function(t){const e=W(t);return this.context.memoryLimit.use(e.length),e.replace(/||<.*?>|/g,"")}});class We{constructor(t){this.mapping=t,this.sep="/"}exists(t){return Rt(this,void 0,void 0,(function*(){return this.existsSync(t)}))}existsSync(t){return!rt(this.mapping[t])}readFile(t){return Rt(this,void 0,void 0,(function*(){return this.readFileSync(t)}))}readFileSync(t){const e=this.mapping[t];if(rt(e))throw new Error(`ENOENT: ${t}`);return e}dirname(t){const e=t.split(this.sep);return e.pop(),e.join(this.sep)}resolve(t,e,n){if(e+=n,"."===t)return e;const i=t.split(/\/+/);for(const t of e.split(this.sep))"."!==t&&""!==t&&(".."===t?(i.length>1||""!==i[0])&&i.pop():i.push(t));return i.join(this.sep)}}const Ke={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:qe,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Re,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Xe(t){var e,n,i;if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let e;e="number"==typeof t.cache?t.cache>0?new Fe(t.cache):void 0:"object"==typeof t.cache?t.cache:t.cache?new Fe(1024):void 0,t.cache=e}return(t=Object.assign(Object.assign(Object.assign({},Ke),t.jekyllInclude?{dynamicPartials:!1}:{}),t)).fs.dirname&&t.fs.sep||!t.relativeReference||(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),t.relativeReference=!1),t.root=tn(t.root),t.partials=tn(t.partials),t.layouts=tn(t.layouts),t.outputEscape=t.outputEscape&&("escape"===(i=t.outputEscape)?Ye:"json"===i?Qe.json:(Lt(Y(i),"`outputEscape` need to be of type string or function"),i)),t.locale||(t.locale=null!==(n=null===(e=Wt())||void 0===e?void 0:e().resolvedOptions().locale)&&void 0!==n?n:"en-US"),t.templates&&(t.fs=new We(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function tn(t){let e=[];return ot(t)&&(e=t),H(t)&&(e=[t]),e}function en(t,e){if(!t||!vn(t))return;const n=e?4:16;for(;Et[t.input.charCodeAt(t.end-1-t.trimRight)]&n;)t.trimRight++}function nn(t,e){if(!t||!vn(t))return;const n=e?4:16;for(;Et[t.input.charCodeAt(t.begin+t.trimLeft)]&n;)t.trimLeft++;"\n"===t.input.charAt(t.begin+t.trimLeft)&&t.trimLeft++}class rn{constructor(t,e=Ke.operators,n,i){this.input=t,this.file=n,this.rawBeginAt=-1,this.p=i?i[0]:0,this.N=i?i[1]:t.length,this.opTrie=At(e),this.literalTrie=At(Ot)}readExpression(){return new je(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p`unexpected character ${this.snapshot()}`))}while(","===this.peek());else if("|"!==this.peek()&&!this.end())throw this.error('expected ":" after filter name');return new ge(e.getText(),n,this.input,t,this.p,this.file)}readFilterArg(){const t=this.readValue();if(!t)return;if(this.skipBlank(),":"!==this.peek())return t;++this.p;const e=this.readValue();return[t.getText(),e]}readTopLevelTokens(t=Ke){const e=[];for(;this.p-1?this.readEndrawOrRawContent(t):this.match(e)?this.readTagToken(t):this.match(n)?this.readOutputToken(t):this.readHTMLToken([e,n])}readHTMLToken(t){const e=this.p;for(;this.pthis.match(t)));)++this.p;return new ce(this.input,e,this.p,this.file)}readTagToken(t){const{file:e,input:n}=this,i=this.p;if(-1===this.readToDelimiter(t.tagDelimiterRight))throw this.error(`tag ${this.snapshot(i)} not closed`,i);const r=new se(n,i,this.p,t,e);return"raw"===r.name&&(this.rawBeginAt=i),r}readToDelimiter(t,e=!1){for(this.skipBlank();this.pn?e.slice(0,n-3)+"...":e));var e,n}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();const t=this.p;for(;!this.end()&&Dt(this.peek());)++this.p;return new ue(this.input,t,this.p,this.file)}readNonEmptyIdentifier(){const t=this.readIdentifier();return t.size()?t:void 0}readTagName(){return this.skipBlank(),"#"===this.input[this.p]?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(t){const e=[];for(;;){const n=this.readHash(t);if(!n)return e;e.push(n)}}readHash(t){this.skipBlank(),","===this.peek()&&++this.p;const e=this.p,n=this.readNonEmptyIdentifier();if(!n)return;let i;this.skipBlank();const r=H(t)?t:t?"=":":";return this.peek()===r&&(++this.p,i=this.readValue()),new ye(this.input,e,this.p,n,i,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(t=1){this.p+=t}end(){return this.p>=this.N}readTo(t){for(;this.p`unexpected token ${this.snapshot()}, value expected`)),t}readQuoted(){this.skipBlank();const t=this.p;if(!(8&this.peekType()))return;++this.p;let e=!1;for(;this.p=this.N?0:Et[this.input.charCodeAt(this.p+t)]}peek(t=0){return this.p+t>=this.N?"":this.input[this.p+t]}skipBlank(){for(;4&this.peekType();)++this.p}}class on{constructor(t,e){this.handlers={},this.stopRequested=!1,this.tokens=t,this.parseToken=e}on(t,e){return this.handlers[t]=e,this}trigger(t,e){const n=this.handlers[t];return!!n&&(n.call(this,e),!0)}start(){let t;for(this.trigger("start");!this.stopRequested&&(t=this.tokens.shift());){if(this.trigger("token",t))continue;if(kn(t)&&this.trigger(`tag:${t.name}`,t))continue;const e=this.parseToken(t,this.tokens);this.trigger("template",e)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class sn{constructor(t){this.token=t}}class an extends sn{constructor(t,e,n){super(t),this.name=t.name,this.liquid=n,this.tokenizer=t.tokenizer}}class cn{constructor(t,e){this.hash={};const n=new rn(t,{});for(const t of n.readHashes(e))this.hash[t.name.content]=t.value}*render(t){const e={};for(const n of Object.keys(this.hash))e[n]=void 0===this.hash[n]||(yield Ce(this.hash[n],t));return e}}class ln{constructor(t,e,n,i){this.name=t,this.handler=Y(e)?e:Y(null==e?void 0:e.handler)?e.handler:ht,this.raw=!Y(e)&&!!(null==e?void 0:e.raw),this.args=n,this.liquid=i}*render(t,e){const n=[];for(const t of this.args)ot(t)?n.push([t[0],yield Ce(t[1],e)]):n.push(yield Ce(t,e));return yield this.handler.apply({context:e,liquid:this.liquid},[t,...n])}}class un{constructor(t,e){this.filters=[];const n="string"==typeof t?new rn(t,e.options.operators).readFilteredValue():t;this.initial=n.initial,this.filters=n.filters.map((({name:t,args:n})=>new ln(t,this.getFilter(e,t),n,e)))}*value(t,e){e=e||t.opts.lenientIf&&this.filters.length>0&&"default"===this.filters[0].name;let n=yield this.initial.evaluate(t,e);for(const e of this.filters)n=yield e.render(n,t);return n}getFilter(t,e){const n=t.filters[e];return Lt(n||!t.options.strictFilters,(()=>`undefined filter: ${e}`)),n}}class pn extends sn{constructor(t,e){var n;super(t);const i=new rn(t.input,e.options.operators,t.file,t.contentRange);this.value=new un(i.readFilteredValue(),e);const r=this.value.filters,o=e.options.outputEscape;!(null===(n=r[r.length-1])||void 0===n?void 0:n.raw)&&o&&r.push(new ln(toString.call(o),o,[],e))}*render(t,e){const n=yield this.value.value(t,!1);e.write(n)}}class hn extends sn{constructor(t){super(t),this.str=t.getContent()}*render(t,e){e.write(this.str)}}var dn,fn,mn;!function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"}(dn||(dn={}));class gn{constructor(t){if(this.options=t,t.relativeReference){const e=t.fs.sep;Lt(e,"`fs.sep` is required for relative reference");const n=new RegExp(["."+e,".."+e,"./","../"].map((t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("|"));this.shouldLoadRelative=t=>n.test(t)}else this.shouldLoadRelative=t=>!1;this.contains=this.options.fs.contains||(()=>!0)}*lookup(t,e,n,i){const{fs:r}=this.options,o=this.options[e];for(const s of this.candidates(t,o,i,e!==dn.Root))if(n?r.existsSync(s):yield r.exists(s))return s;throw this.lookupError(t,o)}*candidates(t,e,n,i){const{fs:r,extname:o}=this.options;if(this.shouldLoadRelative(t)&&n){const s=r.resolve(this.dirname(n),t,o);for(const t of e)if(!i||this.contains(t,s)){yield s;break}}for(const n of e){const e=r.resolve(n,t,o);i&&!this.contains(n,e)||(yield e)}if(void 0!==r.fallback){const e=r.fallback(t);void 0!==e&&(yield e)}}dirname(t){const e=this.options.fs;return Lt(e.dirname,"`fs.dirname` is required for relative reference"),e.dirname(t)}lookupError(t,e){const n=new Error("ENOENT");return n.message=`ENOENT: Failed to lookup "${t}" in "${e}"`,n.code="ENOENT",n}}class yn{constructor(t){this.liquid=t,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new gn(this.liquid.options),this.parseLimit=new re("parse length",t.options.parseLimit)}parse(t,e){t=String(t),this.parseLimit.use(t.length);const n=new rn(t,this.liquid.options.operators,e).readTopLevelTokens(this.liquid.options);return this.parseTokens(n)}parseTokens(t){let e;const n=[],i=[];for(;e=t.shift();)try{n.push(this.parseToken(e,t))}catch(t){if(!this.liquid.options.catchAllErrors)throw t;i.push(t)}if(i.length)throw new wt(i);return n}parseToken(t,e){try{if(kn(t)){const n=this.liquid.tags[t.name];return Lt(n,`tag "${t.name}" not found`),new n(t,e,this.liquid,this)}return wn(t)===fn.Output?new pn(t,this.liquid):new hn(t)}catch(e){if(yt.is(e))throw e;throw new vt(e,t)}}parseStream(t){return new on(t,((t,e)=>this.parseToken(t,e)))}*_parseFileCached(t,e,n=dn.Root,i){const r=this.cache,o=this.loader.shouldLoadRelative(t)?i+","+t:n+":"+t,s=yield r.read(o);if(s)return s;const a=this._parseFile(t,e,n,i),c=e?yield a:Ut(a);r.write(o,c);try{return yield c}catch(t){throw r.remove(o),t}}*_parseFile(t,e,n=dn.Root,i){const r=yield this.loader.lookup(t,n,e,i);return this.parse(e?this.fs.readFileSync(r):yield this.fs.readFile(r),r)}}function bn(t){return wn(t)===fn.Operator}function vn(t){return wn(t)===fn.HTML}function kn(t){return wn(t)===fn.Tag}function wn(t){return t?t.kind:-1}!function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"}(fn||(fn={}));class xn{constructor(t={},e=Ke,n={},{memoryLimit:i,renderLimit:r}={}){var o,s,a,c,l;this.scopes=[{}],this.registers={},this.sync=!!n.sync,this.opts=e,this.globals=null!==(o=n.globals)&&void 0!==o?o:e.globals,this.environments=ct(t)?t:Object(t),this.strictVariables=null!==(s=n.strictVariables)&&void 0!==s?s:this.opts.strictVariables,this.ownPropertyOnly=null!==(a=n.ownPropertyOnly)&&void 0!==a?a:e.ownPropertyOnly,this.memoryLimit=null!=i?i:new re("memory alloc",null!==(c=n.memoryLimit)&&void 0!==c?c:e.memoryLimit),this.renderLimit=null!=r?r:new re("template render",De().now()+(null!==(l=n.renderLimit)&&void 0!==l?l:e.renderLimit))}getRegister(t){return this.registers[t]=this.registers[t]||{}}setRegister(t,e){return this.registers[t]=e}saveRegister(...t){return t.map((t=>[t,this.getRegister(t)]))}restoreRegister(t){return t.forEach((([t,e])=>this.setRegister(t,e)))}getAll(){return[this.globals,this.environments,...this.scopes].reduce(((t,e)=>zt(t,e)),{})}get(t){return this.getSync(t)}getSync(t){return $t(this._get(t))}*_get(t){const e=this.findScope(t[0]);return yield this._getFromScope(e,t)}getFromScope(t,e){return $t(this._getFromScope(t,e))}*_getFromScope(t,e,n=this.strictVariables){H(e)&&(e=e.split("."));for(let i=0;i=0;e--){const n=this.scopes[e];if(t in n)return n}return t in this.environments?this.environments:this.globals}}function _n(t,e,n){if(rt(t=it(t)))return t;if(ot(t)&&e<0)return t[t.length+ +e];const i=function(t,e,n){return!n||G.call(t,e)||t instanceof q?t[e]:void 0}(t,e,n);return void 0===i&&t instanceof q?t.liquidMethodMissing(e):Y(i)?i.call(t):"size"===e?function(t){if(G.call(t,"size")||void 0!==t.size)return t.size;if(ot(t)||H(t))return t.length;if("object"==typeof t)return Object.keys(t).length}(t):"first"===e?function(t){return ot(t)?t[0]:t.first}(t):"last"===e?function(t){return ot(t)?t[t.length-1]:t.last}(t):i}!function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"}(mn||(mn={}));const Tn=ft(Math.abs),Sn=ft(Math.max),En=ft(Math.min),Dn=ft(Math.ceil),Ln=ft(((t,e,n=!1)=>n?Math.floor(t/e):t/e)),Nn=ft(Math.floor),Pn=ft(((t,e)=>t-e)),Mn=ft(((t,e)=>t%e)),jn=ft(((t,e)=>t*e));var Cn=Object.freeze({__proto__:null,abs:Tn,at_least:Sn,at_most:En,ceil:Dn,divided_by:Ln,floor:Nn,minus:Pn,modulo:Mn,times:jn,round:function(t,e=0){t=tt(t),e=tt(e);const n=Math.pow(10,e);return Math.round(t*n)/n},plus:function(t,e){return t=tt(t),e=tt(e),Number(t)+Number(e)}});const In=/[^\p{M}\p{L}\p{Nd}]+/gu,On={raw:/\s+/g,default:In,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,ascii:/[^A-Za-z0-9]+/g,latin:In,none:null};var An=Object.freeze({__proto__:null,url_decode:t=>decodeURIComponent(W(t)).replace(/\+/g," "),url_encode:t=>encodeURIComponent(W(t)).replace(/%20/g,"+"),cgi_escape:t=>encodeURIComponent(W(t)).replace(/%20/g,"+").replace(/[!'()*]/g,(t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())),uri_escape:t=>encodeURI(W(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),slugify:function(t,e="default",n=!1){t=W(t);const i=On[e];return i&&("latin"===e&&(t=function(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),n?t:t.toLowerCase()}});const zn=ft((function(t,e){const n=X(t),i=rt(e)?" ":W(e),r=n.length*(1+i.length);return this.context.memoryLimit.use(r),n.join(i)})),Rn=ft((t=>ot(t)?at(t):"")),Un=ft((t=>ot(t)?t[0]:"")),$n=ft((function(t){const e=X(t);return this.context.memoryLimit.use(e.length),[...e].reverse()}));function Fn(t,e=[]){const n=X(t),i=X(e);return this.context.memoryLimit.use(n.length+i.length),n.concat(i)}var Vn=Object.freeze({__proto__:null,join:zn,last:Rn,first:Un,reverse:$n,sort:function*(t,e){const n=[],i=X(t);this.context.memoryLimit.use(i.length);for(const t of i)n.push([t,e?yield this.context._getFromScope(t,W(e).split("."),!1):t]);return n.sort(((t,e)=>{const n=t[1],i=e[1];return ni?1:0})).map((t=>t[0]))},sort_natural:function(t,e){const n=W(e),i=void 0===e?dt:(t,e)=>dt(t[n],e[n]),r=X(t);return this.context.memoryLimit.use(r.length),[...r].sort(i)},size:t=>t&&t.length||0,map:function*(t,e){const n=[],i=X(t);this.context.memoryLimit.use(i.length);for(const t of i)n.push(yield this.context._getFromScope(t,W(e),!1));return n},sum:function*(t,e){let n=0;const i=X(t);for(const t of i){const i=Number(e?yield this.context._getFromScope(t,W(e),!1):t);n+=Number.isNaN(i)?0:i}return n},compact:function(t){const e=X(t);return this.context.memoryLimit.use(e.length),e.filter((t=>!rt(tt(t))))},concat:Fn,push:function(t,e){return Fn.call(this,t,[e])},unshift:function(t,e){const n=X(t);this.context.memoryLimit.use(n.length);const i=[...n];return i.unshift(e),i},pop:function(t){const e=[...X(t)];return e.pop(),e},shift:function(t){const e=X(t);this.context.memoryLimit.use(e.length);const n=[...e];return n.shift(),n},slice:function(t,e,n=1){return rt(t=tt(t))?[]:(ot(t)||(t=W(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(n),t.slice(e,e+n))},where:function*(t,e,n){const i=[];t=X(t),this.context.memoryLimit.use(t.length);const r=new rn(W(e)).readScopeValue();for(const e of t)i.push(yield Ce(r,this.context.spawn(e)));return t.filter(((t,e)=>void 0===n?Ae(i[e],this.context):Ue(i[e],n)))},where_exp:function*(t,e,n){const i=[],r=new un(W(n),this.liquid),o=X(t);this.context.memoryLimit.use(o.length);for(const t of o){(yield r.value(this.context.spawn({[e]:t})))&&i.push(t)}return i},group_by:function*(t,e){const n=new Map;t=X(t);const i=new rn(W(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(const e of t){const t=yield Ce(i,this.context.spawn(e));n.has(t)||n.set(t,[]),n.get(t).push(e)}return[...n.entries()].map((([t,e])=>({name:t,items:e})))},group_by_exp:function*(t,e,n){const i=new Map,r=new un(W(n),this.liquid);t=X(t),this.context.memoryLimit.use(t.length);for(const n of t){const t=yield r.value(this.context.spawn({[e]:n}));i.has(t)||i.set(t,[]),i.get(t).push(n)}return[...i.entries()].map((([t,e])=>({name:t,items:e})))},find:function*(t,e,n){const i=new rn(W(e)).readScopeValue(),r=X(t);for(const t of r){if(Ue(yield Ce(i,this.context.spawn(t)),n))return t}},find_exp:function*(t,e,n){const i=new un(W(n),this.liquid),r=X(t);for(const t of r){if(yield i.value(this.context.spawn({[e]:t})))return t}},uniq:function(t){return t=X(t),this.context.memoryLimit.use(t.length),[...new Set(t)]},sample:function(t,e=1){if(rt(t=tt(t)))return[];ot(t)||(t=W(t)),this.context.memoryLimit.use(e);const n=[...t].sort((()=>Math.random()-.5));return 1===e?n[0]:n.slice(0,e)}});function qn(t,e,n){var i,r,o;const s=(null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0)+(null!==(r=null==e?void 0:e.length)&&void 0!==r?r:0)+(null!==(o=null==n?void 0:n.length)&&void 0!==o?o:0);this.context.memoryLimit.use(s);const a=Qn(t,this.context.opts,n);return a?Zt(a,e=rt(e=tt(e))?this.context.opts.dateFormat:W(e)):t}function Bn(t,e,n,i){const r=Qn(t,this.context.opts);if(!r)return t;if("ordinal"===n){const t=r.getDate();return Zt(r,"US"===i?`${e} ${t}%q, %Y`:`${t}%q ${e} %Y`)}return Zt(r,`%d ${e} %Y`)}function Qn(t,e,n){let i;const r=null!=n?n:e.timezoneOffset,o=e.locale;return i="now"===(t=tt(t))||"today"===t?new ie(Date.now(),o,r):nt(t)?new ie(1e3*t,o,r):H(t)?/^\d+$/.test(t)?new ie(1e3*+t,o,r):e.preserveTimezones&&void 0===n?ie.createDateFixedToTimezone(t,o):new ie(t,o,r):new ie(t,o,r),i.valid()?i:void 0}var Gn=Object.freeze({__proto__:null,date:qn,date_to_xmlschema:function(t){return qn.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")},date_to_rfc822:function(t){return qn.call(this,t,"%a, %d %b %Y %H:%M:%S %z")},date_to_string:function(t,e,n){return Bn.call(this,t,"%b",e,n)},date_to_long_string:function(t,e,n){return Bn.call(this,t,"%B",e,n)}});const Hn=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Yn=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;var Zn=Object.freeze({__proto__:null,append:function(t,e){Lt(2===arguments.length,"append expect 2 arguments");const n=W(t),i=W(e);return this.context.memoryLimit.use(n.length+i.length),n+i},prepend:function(t,e){Lt(2===arguments.length,"prepend expect 2 arguments");const n=W(t),i=W(e);return this.context.memoryLimit.use(n.length+i.length),i+n},lstrip:function(t,e){const n=W(t);return this.context.memoryLimit.use(n.length),e?(e=mt(W(e)),n.replace(new RegExp(`^[${e}]+`,"g"),"")):n.replace(/^\s+/,"")},downcase:function(t){const e=W(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()},upcase:function(t){const e=W(t);return this.context.memoryLimit.use(e.length),W(e).toUpperCase()},remove:function(t,e){const n=W(t);return this.context.memoryLimit.use(n.length),n.split(W(e)).join("")},remove_first:function(t,e){const n=W(t);return this.context.memoryLimit.use(n.length),n.replace(W(e),"")},remove_last:function(t,e){const n=W(t);this.context.memoryLimit.use(n.length);const i=W(e),r=n.lastIndexOf(i);return-1===r?n:n.substring(0,r)+n.substring(r+i.length)},rstrip:function(t,e){return t=W(t),this.context.memoryLimit.use(t.length),e?(e=mt(W(e)),t.replace(new RegExp(`[${e}]+$`,"g"),"")):t.replace(/\s+$/,"")},split:function(t,e){const n=W(t);this.context.memoryLimit.use(n.length);const i=n.split(W(e));for(;i.length&&""===i[i.length-1];)i.pop();return i},strip:function(t,e){const n=W(t);return this.context.memoryLimit.use(n.length),e?(e=mt(W(e)),n.replace(new RegExp(`^[${e}]+`,"g"),"").replace(new RegExp(`[${e}]+$`,"g"),"")):n.trim()},strip_newlines:function(t){const e=W(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")},capitalize:function(t){return t=W(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()},replace:function(t,e,n){const i=W(t);return this.context.memoryLimit.use(i.length),i.split(W(e)).join(n)},replace_first:function(t,e,n){const i=W(t);return this.context.memoryLimit.use(i.length),i.replace(W(e),n)},replace_last:function(t,e,n){const i=W(t);this.context.memoryLimit.use(i.length);const r=W(e),o=i.lastIndexOf(r);if(-1===o)return i;const s=W(n);return i.substring(0,o)+s+i.substring(o+r.length)},truncate:function(t,e=50,n="..."){const i=W(t);return this.context.memoryLimit.use(i.length),i.length<=e?t:i.substring(0,e-n.length)+n},truncatewords:function(t,e=15,n="..."){const i=W(t);this.context.memoryLimit.use(i.length);const r=i.split(/\s+/);e<=0&&(e=1);let o=r.slice(0,e).join(" ");return r.length>=e&&(o+=n),o},normalize_whitespace:function(t){const e=W(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")},number_of_words:function(t,e){const n=W(t);if(this.context.memoryLimit.use(n.length),!(t=n.trim()))return 0;switch(e){case"cjk":return(t.match(Hn)||[]).length+(t.match(Yn)||[]).length;case"auto":return Hn.test(t)?t.match(Hn).length+(t.match(Yn)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}},array_to_sentence_string:function(t,e="and"){switch(this.context.memoryLimit.use(t.length),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}});const Jn=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Je),Cn),An),Vn),Gn),Zn),Qe);const Wn=["offset","limit","reversed"];function Kn(t,e,n){if(e.options.dynamicPartials){const e=t.readValue();if(t.assert(e,"illegal file path"),"none"===e.getText())return;if(wn(e)===fn.Quoted){return Xn(n.parse(Ie(e)))}return e}const i=[...t.readFileNameTemplate(e.options)],r=Xn(n.parseTokens(i));return"none"===r?void 0:r}function Xn(t){return 1===t.length&&vn(t[0].token)?t[0].token.getContent():t}function*ti(t,e,n){return"string"==typeof t?t:Array.isArray(t)?n.renderer.renderTemplates(t,e):yield Ce(t,e)}class ei extends Mt{constructor(t,e,n,i){super(t,n,i),this.length=t,this.cols=e}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return 0===this.col0()}col_last(){return this.col()===this.cols}}const ni={assign:class extends an{constructor(t,e,n){super(t,e,n),this.key=this.tokenizer.readIdentifier().content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert("="===this.tokenizer.peek(),'expected "="'),this.tokenizer.advance(),this.value=new un(this.tokenizer.readFilteredValue(),this.liquid)}*render(t){t.bottom()[this.key]=yield this.value.value(t,this.liquid.options.lenientIf)}},for:class extends an{constructor(t,e,n,i){super(t,e,n);const r=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),s=this.tokenizer.readValue();if(!r.size()||"in"!==o.content||!s)throw new Error(`illegal tag: ${t.getText()}`);let a;this.variable=r.content,this.collection=s,this.hash=new cn(this.tokenizer.remaining(),n.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];const c=i.parseStream(e).on("start",(()=>a=this.templates)).on("tag:else",(t=>{Nt(t.args),a=this.elseTemplates})).on("tag:endfor",(t=>{Nt(t.args),c.stop()})).on("template",(t=>a.push(t))).on("end",(()=>{throw new Error(`tag ${t.getText()} not closed`)}));c.start()}*render(t,e){const n=this.liquid.renderer;let i=K(yield Ce(this.collection,t));if(!i.length)return void(yield n.renderTemplates(this.elseTemplates,t,e));const r="continue-"+this.variable+"-"+this.collection.getText();t.push({continue:t.getRegister(r)});const o=yield this.hash.render(t);t.pop();i=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter((t=>Wn.includes(t))):Wn.filter((t=>void 0!==o[t]))).reduce(((t,e)=>{return"offset"===e?(n=t,i=o.offset,n.slice(i)):"limit"===e?function(t,e){return t.slice(0,e)}(t,o.limit):function(t){return[...t].reverse()}(t);var n,i}),i),t.setRegister(r,(o.offset||0)+i.length);const s={forloop:new Mt(i.length,this.collection.getText(),this.variable)};t.push(s);for(const r of i){if(s[this.variable]=r,yield n.renderTemplates(this.templates,t,e),e.break){e.break=!1;break}e.continue=!1,s.forloop.next()}t.pop()}},capture:class extends an{constructor(t,e,n,i){for(super(t,e,n),this.templates=[],this.variable=this.readVariableName();e.length;){const t=e.shift();if(kn(t)&&"endcapture"===t.name)return;this.templates.push(i.parseToken(t,e))}throw new Error(`tag ${t.getText()} not closed`)}*render(t){const e=this.liquid.renderer,n=yield e.renderTemplates(this.templates,t);t.bottom()[this.variable]=n}readVariableName(){const t=this.tokenizer.readIdentifier().content;if(t)return t;const e=this.tokenizer.readQuoted();if(e)return Ie(e);throw this.tokenizer.error("invalid capture name")}},case:class extends an{constructor(t,e,n,i){super(t,e,n),this.branches=[],this.elseTemplates=[],this.value=new un(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let r=[],o=0;const s=i.parseStream(e).on("tag:when",(t=>{if(o>0)return;r=[];const e=[];for(;!t.tokenizer.end();)e.push(t.tokenizer.readValueOrThrow()),t.tokenizer.skipBlank(),","===t.tokenizer.peek()?t.tokenizer.readTo(","):t.tokenizer.readTo("or");this.branches.push({values:e,templates:r})})).on("tag:else",(()=>{o++,r=this.elseTemplates})).on("tag:endcase",(()=>s.stop())).on("template",(t=>{r===this.elseTemplates&&1!==o||r.push(t)})).on("end",(()=>{throw new Error(`tag ${t.getText()} not closed`)}));s.start()}*render(t,e){const n=this.liquid.renderer,i=tt(yield this.value.value(t,t.opts.lenientIf));let r=!1;for(const o of this.branches)for(const s of o.values){if(Ue(i,yield Ce(s,t,t.opts.lenientIf))){yield n.renderTemplates(o.templates,t,e),r=!0;break}}r||(yield n.renderTemplates(this.elseTemplates,t,e))}},comment:class extends an{constructor(t,e,n){for(super(t,e,n);e.length;){const t=e.shift();if(kn(t)&&"endcomment"===t.name)return}throw new Error(`tag ${t.getText()} not closed`)}render(){}},include:class extends an{constructor(t,e,n,i){super(t,e,n);const{tokenizer:r}=t;this.file=Kn(r,this.liquid,i),this.currentFile=t.file;const o=r.p;"with"===r.readIdentifier().content?(r.skipBlank(),":"!==r.peek()?this.withVar=r.readValue():r.p=o):r.p=o,this.hash=new cn(r.remaining(),n.options.jekyllInclude||n.options.keyValueSeparator)}*render(t,e){const{liquid:n,hash:i,withVar:r}=this,{renderer:o}=n,s=yield ti(this.file,t,n);Lt(s,(()=>`illegal file path "${s}"`));const a=t.saveRegister("blocks","blockMode");t.setRegister("blocks",{}),t.setRegister("blockMode",mn.OUTPUT);const c=yield i.render(t);r&&(c[s]=yield Ce(r,t));const l=yield n._parsePartialFile(s,t.sync,this.currentFile);t.push(t.opts.jekyllInclude?{include:c}:c),yield o.renderTemplates(l,t,e),t.pop(),t.restoreRegister(a)}},render:class extends an{constructor(t,e,n,i){super(t,e,n);const r=this.tokenizer;for(this.file=Kn(r,this.liquid,i),this.currentFile=t.file;!r.end();){r.skipBlank();const t=r.p,e=r.readIdentifier();if(("with"===e.content||"for"===e.content)&&(r.skipBlank(),":"!==r.peek())){const t=r.readValue();if(t){const n=r.p;let i;"as"===r.readIdentifier().content?i=r.readIdentifier():r.p=n,this[e.content]={value:t,alias:i&&i.content},r.skipBlank(),","===r.peek()&&r.advance();continue}}r.p=t;break}this.hash=new cn(r.remaining(),n.options.keyValueSeparator)}*render(t,e){const{liquid:n,hash:i}=this,r=yield ti(this.file,t,n);Lt(r,(()=>`illegal file path "${r}"`));const o=t.spawn(),s=o.bottom();if(zt(s,yield i.render(t)),this.with){const{value:e,alias:n}=this.with;s[n||r]=yield Ce(e,t)}if(this.for){const{value:i,alias:a}=this.for,c=K(yield Ce(i,t));s.forloop=new Mt(c.length,i.getText(),a);for(const t of c){s[a]=t;const i=yield n._parsePartialFile(r,o.sync,this.currentFile);yield n.renderer.renderTemplates(i,o,e),s.forloop.next()}}else{const t=yield n._parsePartialFile(r,o.sync,this.currentFile);yield n.renderer.renderTemplates(t,o,e)}}},decrement:class extends an{constructor(t,e,n){super(t,e,n),this.variable=this.tokenizer.readIdentifier().content}render(t,e){const n=t.environments;nt(n[this.variable])||(n[this.variable]=0),e.write(W(--n[this.variable]))}},increment:class extends an{constructor(t,e,n){super(t,e,n),this.variable=this.tokenizer.readIdentifier().content}render(t,e){const n=t.environments;nt(n[this.variable])||(n[this.variable]=0);const i=n[this.variable];n[this.variable]++,e.write(W(i))}},cycle:class extends an{constructor(t,e,n){super(t,e,n),this.candidates=[];const i=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),i&&(":"===this.tokenizer.peek()?(this.group=i,this.tokenizer.advance()):this.candidates.push(i));!this.tokenizer.end();){const t=this.tokenizer.readValue();t&&this.candidates.push(t),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,(()=>`empty candidates: "${t.getText()}"`))}*render(t,e){const n=`cycle:${yield Ce(this.group,t)}:`+this.candidates.join(","),i=t.getRegister("cycle");let r=i[n];void 0===r&&(r=i[n]=0);const o=this.candidates[r];return r=(r+1)%this.candidates.length,i[n]=r,yield Ce(o,t)}},if:class extends an{constructor(t,e,n,i){super(t,e,n),this.branches=[];let r=[];i.parseStream(e).on("start",(()=>this.branches.push({value:new un(t.args,this.liquid),templates:r=[]}))).on("tag:elsif",(t=>{Lt(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new un(t.args,this.liquid),templates:r=[]})})).on("tag:else",(t=>{Nt(t.args),Lt(!this.elseTemplates,"duplicated else"),r=this.elseTemplates=[]})).on("tag:endif",(function(t){Nt(t.args),this.stop()})).on("template",(t=>r.push(t))).on("end",(()=>{throw new Error(`tag ${t.getText()} not closed`)})).start()}*render(t,e){const n=this.liquid.renderer;for(const{value:i,templates:r}of this.branches){if(Ae(yield i.value(t,t.opts.lenientIf),t))return void(yield n.renderTemplates(r,t,e))}yield n.renderTemplates(this.elseTemplates||[],t,e)}},layout:class extends an{constructor(t,e,n,i){super(t,e,n),this.file=Kn(this.tokenizer,this.liquid,i),this.currentFile=t.file,this.args=new cn(this.tokenizer.remaining(),n.options.keyValueSeparator),this.templates=i.parseTokens(e)}*render(t,e){const{liquid:n,args:i,file:r}=this,{renderer:o}=n;if(void 0===r)return t.setRegister("blockMode",mn.OUTPUT),void(yield o.renderTemplates(this.templates,t,e));const s=yield ti(this.file,t,n);Lt(s,(()=>`illegal file path "${s}"`));const a=yield n._parseLayoutFile(s,t.sync,this.currentFile);t.setRegister("blockMode",mn.STORE);const c=yield o.renderTemplates(this.templates,t),l=t.getRegister("blocks");void 0===l[""]&&(l[""]=(t,e)=>e.write(c)),t.setRegister("blockMode",mn.OUTPUT),t.push(yield i.render(t)),yield o.renderTemplates(a,t,e),t.pop()}},block:class extends an{constructor(t,e,n,i){super(t,e,n),this.templates=[];const r=/\w+/.exec(t.args);for(this.block=r?r[0]:"";e.length;){const t=e.shift();if(kn(t)&&"endblock"===t.name)return;const n=i.parseToken(t,e);this.templates.push(n)}throw new Error(`tag ${t.getText()} not closed`)}*render(t,e){const n=this.getBlockRender(t);t.getRegister("blockMode")===mn.STORE?t.getRegister("blocks")[this.block]=n:yield n(new jt,e)}getBlockRender(t){const{liquid:e,templates:n}=this,i=t.getRegister("blocks")[this.block],r=function*(i,r){t.push({block:i}),yield e.renderer.renderTemplates(n,t,r),t.pop()};return i?(t,e)=>i(new jt((()=>r(t,e))),e):r}},raw:class extends an{constructor(t,e,n){for(super(t,e,n),this.tokens=[];e.length;){const t=e.shift();if(kn(t)&&"endraw"===t.name)return;this.tokens.push(t)}throw new Error(`tag ${t.getText()} not closed`)}render(){return this.tokens.map((t=>t.getText())).join("")}},tablerow:class extends an{constructor(t,e,n,i){super(t,e,n);const r=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();const o=this.tokenizer.readIdentifier(),s=this.tokenizer.readValue();if("in"!==o.content||!s)throw new Error(`illegal tag: ${t.getText()}`);let a;this.variable=r.content,this.collection=s,this.args=new cn(this.tokenizer.remaining(),n.options.keyValueSeparator),this.templates=[];const c=i.parseStream(e).on("start",(()=>a=this.templates)).on("tag:endtablerow",(()=>c.stop())).on("template",(t=>a.push(t))).on("end",(()=>{throw new Error(`tag ${t.getText()} not closed`)}));c.start()}*render(t,e){let n=K(yield Ce(this.collection,t));const i=yield this.args.render(t),r=i.offset||0,o=void 0===i.limit?n.length:i.limit;n=n.slice(r,r+o);const s=i.cols||n.length,a=this.liquid.renderer,c=new ei(n.length,s,this.collection.getText(),this.variable),l={tablerowloop:c};t.push(l);for(let i=0;i"),e.write(``)),e.write(``),yield a.renderTemplates(this.templates,t,e),e.write("");n.length&&e.write(""),t.pop()}},unless:class extends an{constructor(t,e,n,i){super(t,e,n),this.branches=[],this.elseTemplates=[];let r=[],o=0;i.parseStream(e).on("start",(()=>this.branches.push({value:new un(t.args,this.liquid),test:ze,templates:r=[]}))).on("tag:elsif",(t=>{o>0?r=[]:this.branches.push({value:new un(t.args,this.liquid),test:Ae,templates:r=[]})})).on("tag:else",(()=>{o++,r=this.elseTemplates})).on("tag:endunless",(function(){this.stop()})).on("template",(t=>{r===this.elseTemplates&&1!==o||r.push(t)})).on("end",(()=>{throw new Error(`tag ${t.getText()} not closed`)})).start()}*render(t,e){const n=this.liquid.renderer;for(const{value:i,test:r,templates:o}of this.branches){if(r(yield i.value(t,t.opts.lenientIf),t))return void(yield n.renderTemplates(o,t,e))}yield n.renderTemplates(this.elseTemplates,t,e)}},break:class extends an{render(t,e){e.break=!0}},continue:class extends an{render(t,e){e.continue=!0}},echo:class extends an{constructor(t,e,n){super(t,e,n),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new un(this.tokenizer.readFilteredValue(),this.liquid))}*render(t,e){if(!this.value)return;const n=yield this.value.value(t,!1);e.write(n)}},liquid:class extends an{constructor(t,e,n,i){super(t,e,n);const r=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=i.parseTokens(r)}*render(t,e){yield this.liquid.renderer.renderTemplates(this.templates,t,e)}},"#":class extends an{constructor(t,e,n){if(super(t,e,n),-1!==t.args.search(/\n\s*[^#\s]/g))throw new Error("every line of an inline comment must start with a '#' character")}render(){}}};class ii{constructor(t={}){this.renderer=new Me,this.filters={},this.tags={},this.options=Xe(t),this.parser=new yn(this),st(ni,((t,e)=>this.registerTag(e,t))),st(Jn,((t,e)=>this.registerFilter(e,t)))}parse(t,e){return new yn(this).parse(t,e)}_render(t,e,n){const i=e instanceof xn?e:new xn(e,this.options,n);return this.renderer.renderTemplates(t,i)}render(t,e,n){return Rt(this,void 0,void 0,(function*(){return Ut(this._render(t,e,Object.assign(Object.assign({},n),{sync:!1})))}))}renderSync(t,e,n){return $t(this._render(t,e,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(t,e,n={}){const i=new xn(e,this.options,n);return this.renderer.renderTemplatesToNodeStream(t,i)}_parseAndRender(t,e,n){const i=this.parse(t);return this._render(i,e,n)}parseAndRender(t,e,n){return Rt(this,void 0,void 0,(function*(){return Ut(this._parseAndRender(t,e,Object.assign(Object.assign({},n),{sync:!1})))}))}parseAndRenderSync(t,e,n){return $t(this._parseAndRender(t,e,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(t,e,n){return new yn(this).parseFile(t,e,dn.Partials,n)}_parseLayoutFile(t,e,n){return new yn(this).parseFile(t,e,dn.Layouts,n)}_parseFile(t,e,n,i){return new yn(this).parseFile(t,e,n,i)}parseFile(t,e){return Rt(this,void 0,void 0,(function*(){return Ut(new yn(this).parseFile(t,!1,e))}))}parseFileSync(t,e){return $t(new yn(this).parseFile(t,!0,e))}*_renderFile(t,e,n){const i=yield this._parseFile(t,n.sync,n.lookupType);return yield this._render(i,e,n)}renderFile(t,e,n){return Rt(this,void 0,void 0,(function*(){return Ut(this._renderFile(t,e,Object.assign(Object.assign({},n),{sync:!1})))}))}renderFileSync(t,e,n){return $t(this._renderFile(t,e,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(t,e,n){return Rt(this,void 0,void 0,(function*(){const i=yield this.parseFile(t);return this.renderToNodeStream(i,e,n)}))}_evalValue(t,e){const n=new un(t,this),i=e instanceof xn?e:new xn(e,this.options);return n.value(i)}evalValue(t,e){return Rt(this,void 0,void 0,(function*(){return Ut(this._evalValue(t,e))}))}evalValueSync(t,e){return $t(this._evalValue(t,e))}registerFilter(t,e){this.filters[t]=e}registerTag(t,e){var n;this.tags[t]=Y(e)?e:(n=e,class extends an{constructor(t,e,i){super(t,e,i),Y(n.parse)&&n.parse.call(this,t,e)}*render(t,e){const i=yield new cn(this.token.args,t.opts.keyValueSeparator).render(t);return yield n.render.call(this,t,e,i)}})}plugin(t){return t.call(this,ii)}express(){const t=this;let e=!0;return function(n,i,r){if(e){e=!1;const n=tn(this.root);t.options.root.unshift(...n),t.options.layouts.unshift(...n),t.options.partials.unshift(...n)}t.renderFile(n,i).then((t=>r(null,t)),r)}}}const ri=new ii({cache:!0});function oi(t,e){return ri.parseAndRenderSync(t,e)}ri.registerFilter("prepend",((t,e)=>t?e+" "+t:""));class si{constructor(t){let{config:e,globalConfig:n}=t;this.config=e,this.dataConverter=new F({config:e,globalConfig:n})}parse(t,e){const n=this.dataConverter.prepareData(t,e);return oi(this.getTemplate(),n)}getTemplate(){const t=this.config.template;return"cliente"!==t&&"producto"!==t?t&&""!==t?t:ai.basico:"producto"===t?ai.alternativo:ai.basico}}const ai={basico:'\n{{cliente}} {{ ciudad_o_provincia | prepend: "de"}} \ncompró {{producto}}\n{{hace}}',alternativo:'\n{{cliente}} {{ciudad_o_provincia | prepend: "de"}} compró \n{{producto}}\n{{hace}}'};var ci=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e0?xi(ji,--Pi):0,Li--,10===Mi&&(Li=1,Di--),Mi}function Ai(){return Mi=Pi2||$i(Mi)>3?"":" "}function Qi(t,e){for(;--e&&Ai()&&!(Mi<48||Mi>102||Mi>57&&Mi<65||Mi>70&&Mi<97););return Ui(t,Ri()+(e<6&&32==zi()&&32==Ai()))}function Gi(t){for(;Ai();)switch(Mi){case t:return Pi;case 34:case 39:34!==t&&39!==t&&Gi(Mi);break;case 40:41===t&&Gi(t);break;case 92:Ai()}return Pi}function Hi(t,e){for(;Ai()&&t+Mi!==57&&(t+Mi!==84||47!==zi()););return"/*"+Ui(e,Pi-1)+"*"+yi(47===t?t:Ai())}function Yi(t){for(;!$i(zi());)Ai();return Ui(t,Pi)}function Zi(t){return Vi(Ji("",null,null,null,[""],t=Fi(t),0,[0],t))}function Ji(t,e,n,i,r,o,s,a,c){for(var l=0,u=0,p=s,h=0,d=0,f=0,m=1,g=1,y=1,b=0,v="",k=r,w=o,x=i,_=v;g;)switch(f=b,b=Ai()){case 40:if(108!=f&&58==xi(_,p-1)){-1!=wi(_+=ki(qi(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:_+=qi(b);break;case 9:case 10:case 13:case 32:_+=Bi(f);break;case 92:_+=Qi(Ri()-1,7);continue;case 47:switch(zi()){case 42:case 47:Ei(Ki(Hi(Ai(),Ri()),e,n),c);break;default:_+="/"}break;case 123*m:a[l++]=Ti(_)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(_=ki(_,/\f/g,"")),d>0&&Ti(_)-p&&Ei(d>32?Xi(_+";",i,n,p-1):Xi(ki(_," ","")+";",i,n,p-2),c);break;case 59:_+=";";default:if(Ei(x=Wi(_,e,n,l,u,r,a,v,k=[],w=[],p),o),123===b)if(0===u)Ji(_,e,x,x,k,o,p,a,w);else switch(99===h&&110===xi(_,3)?100:h){case 100:case 108:case 109:case 115:Ji(t,x,x,i&&Ei(Wi(t,x,x,0,0,r,a,v,r,k=[],p),w),r,w,p,a,i?k:w);break;default:Ji(_,x,x,x,[""],w,0,a,w)}}l=u=d=0,m=y=1,v=_="",p=s;break;case 58:p=1+Ti(_),d=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Oi())continue;switch(_+=yi(b),b*m){case 38:y=u>0?1:(_+="\f",-1);break;case 44:a[l++]=(Ti(_)-1)*y,y=1;break;case 64:45===zi()&&(_+=qi(Ai())),h=zi(),u=p=Ti(v=_+=Yi(Ri())),b++;break;case 45:45===f&&2==Ti(_)&&(m=0)}}return o}function Wi(t,e,n,i,r,o,s,a,c,l,u){for(var p=r-1,h=0===r?o:[""],d=Si(h),f=0,m=0,g=0;f0?h[y]+" "+b:ki(b,/&\f/g,h[y])))&&(c[g++]=v);return Ci(t,e,n,0===r?di:a,c,l,u)}function Ki(t,e,n){return Ci(t,e,n,hi,yi(Mi),_i(t,2,-2),0)}function Xi(t,e,n,i){return Ci(t,e,n,fi,_i(t,0,i),_i(t,i+1,-1),i)}function tr(t,e){for(var n="",i=Si(t),r=0;r6)switch(xi(t,e+1)){case 109:if(45!==xi(t,e+4))break;case 102:return ki(t,/(.+:)(.+)-([^]+)/,"$1"+pi+"$2-$3$1"+ui+(108==xi(t,e+3)?"$3":"$2-$3"))+t;case 115:return~wi(t,"stretch")?cr(ki(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==xi(t,e+1))break;case 6444:switch(xi(t,Ti(t)-3-(~wi(t,"!important")&&10))){case 107:return ki(t,":",":"+pi)+t;case 101:return ki(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pi+(45===xi(t,14)?"inline-":"")+"box$3$1"+pi+"$2$3$1"+li+"$2box$3")+t}break;case 5936:switch(xi(t,e+11)){case 114:return pi+t+li+ki(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return pi+t+li+ki(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return pi+t+li+ki(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return pi+t+li+t+t}return t}var lr=[function(t,e,n,i){if(t.length>-1&&!t.return)switch(t.type){case fi:t.return=cr(t.value,t.length);break;case mi:return tr([Ii(t,{value:ki(t.value,"@","@"+pi)})],i);case di:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tr([Ii(t,{props:[ki(e,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return tr([Ii(t,{props:[ki(e,/:(plac\w+)/,":"+pi+"input-$1")]}),Ii(t,{props:[ki(e,/:(plac\w+)/,":-moz-$1")]}),Ii(t,{props:[ki(e,/:(plac\w+)/,li+"input-$1")]})],i)}return""}))}}],ur=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var i,r,o=t.stylisPlugins||lr,s={},a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n=4;++i,r-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+c;return{name:l,styles:r,next:vr}}function xr(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):n&&(i+=n+" ")})),i}function _r(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function Tr(t,e,n){var i=[],r=xr(t,i,n);return i.length<2?n:r+e(i)}var Sr=function t(e){for(var n="",i=0;i0&&void 0!==arguments[0]&&arguments[0];const e=this.notification;this.injectTheme();const n=this.templateParser.parse(e,t);return D(g({"lk-notification-body":!0,"stream-type":!0,"use-zoom":"on"==Lr.getFlag("zoom")}),{},E("lk-notification-icon",c("img",{src:e.img})),E("lk-notification-content",L("lk-notification-description",{html:n})))}injectTheme(){const t=`\n .stream-type{\n background-color: ${this.getTheme()?.backgroundColor} !important;\n border-color: ${this.getTheme()?.backgroundColor} !important;\n }\n .stream-type lk-titulo {\n color: ${this.getTheme()?.highlightColor} !important;\n }\n .stream-type lk-small > * {\n color: ${this.getTheme()?.smallTextColor} !important;\n }\n .stream-type .lk-notification-description {\n color: ${this.getTheme()?.textColor} !important;\n }\n \n `;Dr(t)}}var Pr={exports:{}};function Mr(t){let{instancePath:e="",parentData:n,parentDataProperty:i,rootData:r=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&"object"==typeof t&&!Array.isArray(t)){let n;if(void 0===t.id&&(n="id")||void 0===t.img&&(n="img")||void 0===t.data&&(n="data"))return Mr.errors=[{instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:n},message:"must have required property '"+n+"'"}],!1;if(void 0!==t.id){const n=0;if("string"!=typeof t.id)return Mr.errors=[{instancePath:e+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=0===n}else o=!0;if(o){if(void 0!==t.type){const n=0;if("stream-type"!==t.type)return Mr.errors=[{instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"stream-type"},message:"must be equal to constant"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.click){let n=t.click;const i=0;if(!n||"object"!=typeof n||Array.isArray(n))return Mr.errors=[{instancePath:e+"/click",schemaPath:"#/definitions/ClickData/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let t;if(void 0===n.newTab&&(t="newTab")||void 0===n.url&&(t="url"))return Mr.errors=[{instancePath:e+"/click",schemaPath:"#/definitions/ClickData/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==n.url){const t=0;if("string"!=typeof n.url)return Mr.errors=[{instancePath:e+"/click/url",schemaPath:"#/definitions/ClickData/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var s=0===t}else s=!0;if(s)if(void 0!==n.newTab){const t=0;if("boolean"!=typeof n.newTab)return Mr.errors=[{instancePath:e+"/click/newTab",schemaPath:"#/definitions/ClickData/properties/newTab/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0}o=0===i}else o=!0;if(o){if(void 0!==t.img){const n=0;if("string"!=typeof t.img)return Mr.errors=[{instancePath:e+"/img",schemaPath:"#/properties/img/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.time){const n=0;if("string"!=typeof t.time)return Mr.errors=[{instancePath:e+"/time",schemaPath:"#/properties/time/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.source_id){let n=t.source_id;const i=0;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n))return Mr.errors=[{instancePath:e+"/source_id",schemaPath:"#/properties/source_id/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;o=0===i}else o=!0;if(o){if(void 0!==t.source_sub_id){let n=t.source_sub_id;const i=0;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n))return Mr.errors=[{instancePath:e+"/source_sub_id",schemaPath:"#/properties/source_sub_id/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;o=0===i}else o=!0;if(o)if(void 0!==t.data){let n=t.data;const i=0;if(!n||"object"!=typeof n||Array.isArray(n))return Mr.errors=[{instancePath:e+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let t;if(void 0===n.cliente&&(t="cliente")||void 0===n.ciudad&&(t="ciudad")||void 0===n.provincia&&(t="provincia")||void 0===n.pais&&(t="pais")||void 0===n.producto&&(t="producto"))return Mr.errors=[{instancePath:e+"/data",schemaPath:"#/properties/data/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==n.cliente){const t=0;if("string"!=typeof n.cliente)return Mr.errors=[{instancePath:e+"/data/cliente",schemaPath:"#/properties/data/properties/cliente/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=0===t}else a=!0;if(a){if(void 0!==n.ciudad){const t=0;if("string"!=typeof n.ciudad)return Mr.errors=[{instancePath:e+"/data/ciudad",schemaPath:"#/properties/data/properties/ciudad/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===t}else a=!0;if(a){if(void 0!==n.provincia){const t=0;if("string"!=typeof n.provincia)return Mr.errors=[{instancePath:e+"/data/provincia",schemaPath:"#/properties/data/properties/provincia/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===t}else a=!0;if(a){if(void 0!==n.producto){const t=0;if("string"!=typeof n.producto)return Mr.errors=[{instancePath:e+"/data/producto",schemaPath:"#/properties/data/properties/producto/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===t}else a=!0;if(a){if(void 0!==n.pais){const t=0;if("string"!=typeof n.pais)return Mr.errors=[{instancePath:e+"/data/pais",schemaPath:"#/properties/data/properties/pais/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===t}else a=!0;if(a)if(void 0!==n.fecha_iso){const t=0;if("string"!=typeof n.fecha_iso)return Mr.errors=[{instancePath:e+"/data/fecha_iso",schemaPath:"#/properties/data/properties/fecha_iso/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===t}else a=!0}}}}}o=0===i}else o=!0}}}}}}}return Mr.errors=null,!0}function jr(t){let{instancePath:e="",parentData:n,parentDataProperty:i,rootData:r=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&"object"==typeof t&&!Array.isArray(t)){let n;if(void 0===t.id&&(n="id")||void 0===t.type&&(n="type")||void 0===t.text&&(n="text"))return jr.errors=[{instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:n},message:"must have required property '"+n+"'"}],!1;if(void 0!==t.id){const n=0;if("string"!=typeof t.id)return jr.errors=[{instancePath:e+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=0===n}else o=!0;if(o){if(void 0!==t.type){const n=0;if("informational-type"!==t.type)return jr.errors=[{instancePath:e+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"informational-type"},message:"must be equal to constant"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.click){let n=t.click;const i=0;if(!n||"object"!=typeof n||Array.isArray(n))return jr.errors=[{instancePath:e+"/click",schemaPath:"#/definitions/ClickData/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let t;if(void 0===n.newTab&&(t="newTab")||void 0===n.url&&(t="url"))return jr.errors=[{instancePath:e+"/click",schemaPath:"#/definitions/ClickData/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==n.url){const t=0;if("string"!=typeof n.url)return jr.errors=[{instancePath:e+"/click/url",schemaPath:"#/definitions/ClickData/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var s=0===t}else s=!0;if(s)if(void 0!==n.newTab){const t=0;if("boolean"!=typeof n.newTab)return jr.errors=[{instancePath:e+"/click/newTab",schemaPath:"#/definitions/ClickData/properties/newTab/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0}o=0===i}else o=!0;if(o){if(void 0!==t.img){const n=0;if("string"!=typeof t.img)return jr.errors=[{instancePath:e+"/img",schemaPath:"#/properties/img/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.title){const n=0;if("string"!=typeof t.title)return jr.errors=[{instancePath:e+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0;if(o)if(void 0!==t.text){const n=0;if("string"!=typeof t.text)return jr.errors=[{instancePath:e+"/text",schemaPath:"#/properties/text/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0}}}}}return jr.errors=null,!0}function Cr(t){let{instancePath:e="",parentData:n,parentDataProperty:i,rootData:r=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,s=0;if(!t||"object"!=typeof t||Array.isArray(t))return Cr.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;const a=s;let c=!1;const l=s;Mr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?Mr.errors:o.concat(Mr.errors),s=o.length);var u=l===s;if(c=c||u,!c){const a=s;jr(t,{instancePath:e,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?jr.errors:o.concat(jr.errors),s=o.length);u=a===s;c=c||u}if(!c){const t={instancePath:e,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return null===o?o=[t]:o.push(t),s++,Cr.errors=o,!1}return s=a,null!==o&&(a?o.length=a:o=null),Cr.errors=o,0===s}Pr.exports=Ar,Pr.exports.default=Ar;const Ir={type:"object",additionalProperties:!0,properties:{gaeeEnabled:{type:"boolean"},delayBetween:{type:"integer"},initialDelay:{type:"integer"},CID:{type:"string"},SID:{type:"string"},active:{type:"boolean"},startOnScroll:{type:"boolean"},ultimasVentas:{type:"object",additionalProperties:!0,properties:{active:{type:"boolean"},displayTime:{type:"integer"},position:{enum:["topLeft","bottomLeft","topRight","bottomRight"]},mobilePosition:{enum:["bottom","top"]},mobileSize:{enum:["Normal","Minimal"]},showTo:{enum:["All","New","Returning"]},mobileDisabled:{type:"boolean"},hideTimeAgo:{type:"boolean"},hideTimeAgoHs:{type:"integer"},hideCliente:{type:"boolean"},hideClienteAlternative:{type:"string"},clickEnabled:{type:"boolean"},clickOpenNewTab:{type:"boolean"},theme:{$ref:"#/definitions/Theme"},template:{type:"string"}},required:["active","displayTime","position","mobilePosition","mobileSize","showTo","mobileDisabled","hideTimeAgo","hideTimeAgoHs","hideCliente","hideClienteAlternative","clickEnabled","clickOpenNewTab","theme","template"]},informativa:{type:"object",additionalProperties:!0,properties:{active:{type:"boolean"},displayTime:{type:"integer"},position:{enum:["topLeft","bottomLeft","topRight","bottomRight"]},mobilePosition:{enum:["bottom","top"]},showTo:{enum:["All","New","Returning"]},mobileDisabled:{type:"boolean"},title:{type:["string","null"]},body:{type:["string","null"]},theme:{$ref:"#/definitions/Theme"},template:{type:["string","null"]}},required:["active","displayTime","position","mobilePosition","showTo","mobileDisabled","title","body","theme","template"]}},required:["CID","SID","active","delayBetween","initialDelay","gaeeEnabled","startOnScroll","ultimasVentas","informativa"],title:"Config"};function Or(t){let{instancePath:e="",parentData:n,parentDataProperty:i,rootData:r=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"object"!=typeof t||Array.isArray(t))return Or.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let n;if(void 0===t.CID&&(n="CID")||void 0===t.SID&&(n="SID")||void 0===t.active&&(n="active")||void 0===t.delayBetween&&(n="delayBetween")||void 0===t.initialDelay&&(n="initialDelay")||void 0===t.gaeeEnabled&&(n="gaeeEnabled")||void 0===t.startOnScroll&&(n="startOnScroll")||void 0===t.ultimasVentas&&(n="ultimasVentas")||void 0===t.informativa&&(n="informativa"))return Or.errors=[{instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:n},message:"must have required property '"+n+"'"}],!1;if(void 0!==t.gaeeEnabled){const n=0;if("boolean"!=typeof t.gaeeEnabled)return Or.errors=[{instancePath:e+"/gaeeEnabled",schemaPath:"#/properties/gaeeEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=0===n}else o=!0;if(o){if(void 0!==t.delayBetween){let n=t.delayBetween;const i=0;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n))return Or.errors=[{instancePath:e+"/delayBetween",schemaPath:"#/properties/delayBetween/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;o=0===i}else o=!0;if(o){if(void 0!==t.initialDelay){let n=t.initialDelay;const i=0;if("number"!=typeof n||n%1||isNaN(n)||!isFinite(n))return Or.errors=[{instancePath:e+"/initialDelay",schemaPath:"#/properties/initialDelay/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;o=0===i}else o=!0;if(o){if(void 0!==t.CID){const n=0;if("string"!=typeof t.CID)return Or.errors=[{instancePath:e+"/CID",schemaPath:"#/properties/CID/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.SID){const n=0;if("string"!=typeof t.SID)return Or.errors=[{instancePath:e+"/SID",schemaPath:"#/properties/SID/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.active){const n=0;if("boolean"!=typeof t.active)return Or.errors=[{instancePath:e+"/active",schemaPath:"#/properties/active/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.startOnScroll){const n=0;if("boolean"!=typeof t.startOnScroll)return Or.errors=[{instancePath:e+"/startOnScroll",schemaPath:"#/properties/startOnScroll/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;o=0===n}else o=!0;if(o){if(void 0!==t.ultimasVentas){let n=t.ultimasVentas;const i=0;if(!n||"object"!=typeof n||Array.isArray(n))return Or.errors=[{instancePath:e+"/ultimasVentas",schemaPath:"#/properties/ultimasVentas/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let t;if(void 0===n.active&&(t="active")||void 0===n.displayTime&&(t="displayTime")||void 0===n.position&&(t="position")||void 0===n.mobilePosition&&(t="mobilePosition")||void 0===n.mobileSize&&(t="mobileSize")||void 0===n.showTo&&(t="showTo")||void 0===n.mobileDisabled&&(t="mobileDisabled")||void 0===n.hideTimeAgo&&(t="hideTimeAgo")||void 0===n.hideTimeAgoHs&&(t="hideTimeAgoHs")||void 0===n.hideCliente&&(t="hideCliente")||void 0===n.hideClienteAlternative&&(t="hideClienteAlternative")||void 0===n.clickEnabled&&(t="clickEnabled")||void 0===n.clickOpenNewTab&&(t="clickOpenNewTab")||void 0===n.theme&&(t="theme")||void 0===n.template&&(t="template"))return Or.errors=[{instancePath:e+"/ultimasVentas",schemaPath:"#/properties/ultimasVentas/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==n.active){const t=0;if("boolean"!=typeof n.active)return Or.errors=[{instancePath:e+"/ultimasVentas/active",schemaPath:"#/properties/ultimasVentas/properties/active/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var s=0===t}else s=!0;if(s){if(void 0!==n.displayTime){let t=n.displayTime;const i=0;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t))return Or.errors=[{instancePath:e+"/ultimasVentas/displayTime",schemaPath:"#/properties/ultimasVentas/properties/displayTime/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;s=0===i}else s=!0;if(s){if(void 0!==n.position){let t=n.position;const i=0;if("topLeft"!==t&&"bottomLeft"!==t&&"topRight"!==t&&"bottomRight"!==t)return Or.errors=[{instancePath:e+"/ultimasVentas/position",schemaPath:"#/properties/ultimasVentas/properties/position/enum",keyword:"enum",params:{allowedValues:Ir.properties.ultimasVentas.properties.position.enum},message:"must be equal to one of the allowed values"}],!1;s=0===i}else s=!0;if(s){if(void 0!==n.mobilePosition){let t=n.mobilePosition;const i=0;if("bottom"!==t&&"top"!==t)return Or.errors=[{instancePath:e+"/ultimasVentas/mobilePosition",schemaPath:"#/properties/ultimasVentas/properties/mobilePosition/enum",keyword:"enum",params:{allowedValues:Ir.properties.ultimasVentas.properties.mobilePosition.enum},message:"must be equal to one of the allowed values"}],!1;s=0===i}else s=!0;if(s){if(void 0!==n.mobileSize){let t=n.mobileSize;const i=0;if("Normal"!==t&&"Minimal"!==t)return Or.errors=[{instancePath:e+"/ultimasVentas/mobileSize",schemaPath:"#/properties/ultimasVentas/properties/mobileSize/enum",keyword:"enum",params:{allowedValues:Ir.properties.ultimasVentas.properties.mobileSize.enum},message:"must be equal to one of the allowed values"}],!1;s=0===i}else s=!0;if(s){if(void 0!==n.showTo){let t=n.showTo;const i=0;if("All"!==t&&"New"!==t&&"Returning"!==t)return Or.errors=[{instancePath:e+"/ultimasVentas/showTo",schemaPath:"#/properties/ultimasVentas/properties/showTo/enum",keyword:"enum",params:{allowedValues:Ir.properties.ultimasVentas.properties.showTo.enum},message:"must be equal to one of the allowed values"}],!1;s=0===i}else s=!0;if(s){if(void 0!==n.mobileDisabled){const t=0;if("boolean"!=typeof n.mobileDisabled)return Or.errors=[{instancePath:e+"/ultimasVentas/mobileDisabled",schemaPath:"#/properties/ultimasVentas/properties/mobileDisabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0;if(s){if(void 0!==n.hideTimeAgo){const t=0;if("boolean"!=typeof n.hideTimeAgo)return Or.errors=[{instancePath:e+"/ultimasVentas/hideTimeAgo",schemaPath:"#/properties/ultimasVentas/properties/hideTimeAgo/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0;if(s){if(void 0!==n.hideTimeAgoHs){let t=n.hideTimeAgoHs;const i=0;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t))return Or.errors=[{instancePath:e+"/ultimasVentas/hideTimeAgoHs",schemaPath:"#/properties/ultimasVentas/properties/hideTimeAgoHs/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;s=0===i}else s=!0;if(s){if(void 0!==n.hideCliente){const t=0;if("boolean"!=typeof n.hideCliente)return Or.errors=[{instancePath:e+"/ultimasVentas/hideCliente",schemaPath:"#/properties/ultimasVentas/properties/hideCliente/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0;if(s){if(void 0!==n.hideClienteAlternative){const t=0;if("string"!=typeof n.hideClienteAlternative)return Or.errors=[{instancePath:e+"/ultimasVentas/hideClienteAlternative",schemaPath:"#/properties/ultimasVentas/properties/hideClienteAlternative/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;s=0===t}else s=!0;if(s){if(void 0!==n.clickEnabled){const t=0;if("boolean"!=typeof n.clickEnabled)return Or.errors=[{instancePath:e+"/ultimasVentas/clickEnabled",schemaPath:"#/properties/ultimasVentas/properties/clickEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0;if(s){if(void 0!==n.clickOpenNewTab){const t=0;if("boolean"!=typeof n.clickOpenNewTab)return Or.errors=[{instancePath:e+"/ultimasVentas/clickOpenNewTab",schemaPath:"#/properties/ultimasVentas/properties/clickOpenNewTab/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;s=0===t}else s=!0;if(s){if(void 0!==n.theme){let t=n.theme;const i=0;if(!t||"object"!=typeof t||Array.isArray(t))return Or.errors=[{instancePath:e+"/ultimasVentas/theme",schemaPath:"#/definitions/Theme/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==t.highlightColor){const n=0;if("string"!=typeof t.highlightColor)return Or.errors=[{instancePath:e+"/ultimasVentas/theme/highlightColor",schemaPath:"#/definitions/Theme/properties/highlightColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=0===n}else a=!0;if(a){if(void 0!==t.textColor){const n=0;if("string"!=typeof t.textColor)return Or.errors=[{instancePath:e+"/ultimasVentas/theme/textColor",schemaPath:"#/definitions/Theme/properties/textColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===n}else a=!0;if(a){if(void 0!==t.smallTextColor){const n=0;if("string"!=typeof t.smallTextColor)return Or.errors=[{instancePath:e+"/ultimasVentas/theme/smallTextColor",schemaPath:"#/definitions/Theme/properties/smallTextColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===n}else a=!0;if(a)if(void 0!==t.backgroundColor){const n=0;if("string"!=typeof t.backgroundColor)return Or.errors=[{instancePath:e+"/ultimasVentas/theme/backgroundColor",schemaPath:"#/definitions/Theme/properties/backgroundColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=0===n}else a=!0}}s=0===i}else s=!0;if(s)if(void 0!==n.template){const t=0;if("string"!=typeof n.template)return Or.errors=[{instancePath:e+"/ultimasVentas/template",schemaPath:"#/properties/ultimasVentas/properties/template/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;s=0===t}else s=!0}}}}}}}}}}}}}}o=0===i}else o=!0;if(o)if(void 0!==t.informativa){let n=t.informativa;const i=0;if(!n||"object"!=typeof n||Array.isArray(n))return Or.errors=[{instancePath:e+"/informativa",schemaPath:"#/properties/informativa/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let t;if(void 0===n.active&&(t="active")||void 0===n.displayTime&&(t="displayTime")||void 0===n.position&&(t="position")||void 0===n.mobilePosition&&(t="mobilePosition")||void 0===n.showTo&&(t="showTo")||void 0===n.mobileDisabled&&(t="mobileDisabled")||void 0===n.title&&(t="title")||void 0===n.body&&(t="body")||void 0===n.theme&&(t="theme")||void 0===n.template&&(t="template"))return Or.errors=[{instancePath:e+"/informativa",schemaPath:"#/properties/informativa/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==n.active){const t=0;if("boolean"!=typeof n.active)return Or.errors=[{instancePath:e+"/informativa/active",schemaPath:"#/properties/informativa/properties/active/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var c=0===t}else c=!0;if(c){if(void 0!==n.displayTime){let t=n.displayTime;const i=0;if("number"!=typeof t||t%1||isNaN(t)||!isFinite(t))return Or.errors=[{instancePath:e+"/informativa/displayTime",schemaPath:"#/properties/informativa/properties/displayTime/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;c=0===i}else c=!0;if(c){if(void 0!==n.position){let t=n.position;const i=0;if("topLeft"!==t&&"bottomLeft"!==t&&"topRight"!==t&&"bottomRight"!==t)return Or.errors=[{instancePath:e+"/informativa/position",schemaPath:"#/properties/informativa/properties/position/enum",keyword:"enum",params:{allowedValues:Ir.properties.informativa.properties.position.enum},message:"must be equal to one of the allowed values"}],!1;c=0===i}else c=!0;if(c){if(void 0!==n.mobilePosition){let t=n.mobilePosition;const i=0;if("bottom"!==t&&"top"!==t)return Or.errors=[{instancePath:e+"/informativa/mobilePosition",schemaPath:"#/properties/informativa/properties/mobilePosition/enum",keyword:"enum",params:{allowedValues:Ir.properties.informativa.properties.mobilePosition.enum},message:"must be equal to one of the allowed values"}],!1;c=0===i}else c=!0;if(c){if(void 0!==n.showTo){let t=n.showTo;const i=0;if("All"!==t&&"New"!==t&&"Returning"!==t)return Or.errors=[{instancePath:e+"/informativa/showTo",schemaPath:"#/properties/informativa/properties/showTo/enum",keyword:"enum",params:{allowedValues:Ir.properties.informativa.properties.showTo.enum},message:"must be equal to one of the allowed values"}],!1;c=0===i}else c=!0;if(c){if(void 0!==n.mobileDisabled){const t=0;if("boolean"!=typeof n.mobileDisabled)return Or.errors=[{instancePath:e+"/informativa/mobileDisabled",schemaPath:"#/properties/informativa/properties/mobileDisabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;c=0===t}else c=!0;if(c){if(void 0!==n.title){let t=n.title;const i=0;if("string"!=typeof t&&null!==t)return Or.errors=[{instancePath:e+"/informativa/title",schemaPath:"#/properties/informativa/properties/title/type",keyword:"type",params:{type:Ir.properties.informativa.properties.title.type},message:"must be string,null"}],!1;c=0===i}else c=!0;if(c){if(void 0!==n.body){let t=n.body;const i=0;if("string"!=typeof t&&null!==t)return Or.errors=[{instancePath:e+"/informativa/body",schemaPath:"#/properties/informativa/properties/body/type",keyword:"type",params:{type:Ir.properties.informativa.properties.body.type},message:"must be string,null"}],!1;c=0===i}else c=!0;if(c){if(void 0!==n.theme){let t=n.theme;const i=0;if(!t||"object"!=typeof t||Array.isArray(t))return Or.errors=[{instancePath:e+"/informativa/theme",schemaPath:"#/definitions/Theme/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==t.highlightColor){const n=0;if("string"!=typeof t.highlightColor)return Or.errors=[{instancePath:e+"/informativa/theme/highlightColor",schemaPath:"#/definitions/Theme/properties/highlightColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=0===n}else l=!0;if(l){if(void 0!==t.textColor){const n=0;if("string"!=typeof t.textColor)return Or.errors=[{instancePath:e+"/informativa/theme/textColor",schemaPath:"#/definitions/Theme/properties/textColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;l=0===n}else l=!0;if(l){if(void 0!==t.smallTextColor){const n=0;if("string"!=typeof t.smallTextColor)return Or.errors=[{instancePath:e+"/informativa/theme/smallTextColor",schemaPath:"#/definitions/Theme/properties/smallTextColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;l=0===n}else l=!0;if(l)if(void 0!==t.backgroundColor){const n=0;if("string"!=typeof t.backgroundColor)return Or.errors=[{instancePath:e+"/informativa/theme/backgroundColor",schemaPath:"#/definitions/Theme/properties/backgroundColor/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;l=0===n}else l=!0}}c=0===i}else c=!0;if(c)if(void 0!==n.template){let t=n.template;const i=0;if("string"!=typeof t&&null!==t)return Or.errors=[{instancePath:e+"/informativa/template",schemaPath:"#/properties/informativa/properties/template/type",keyword:"type",params:{type:Ir.properties.informativa.properties.template.type},message:"must be string,null"}],!1;c=0===i}else c=!0}}}}}}}}}o=0===i}else o=!0}}}}}}}}return Or.errors=null,!0}function Ar(t){let{instancePath:e="",parentData:n,parentDataProperty:i,rootData:r=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,s=0;if(0===s){if(!t||"object"!=typeof t||Array.isArray(t))return Ar.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let n;if(void 0===t.version&&(n="version")||void 0===t.config&&(n="config")||void 0===t.events&&(n="events")||void 0===t.features&&(n="features"))return Ar.errors=[{instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:n},message:"must have required property '"+n+"'"}],!1;if(void 0!==t.cached){const n=s;if("boolean"!=typeof t.cached)return Ar.errors=[{instancePath:e+"/cached",schemaPath:"#/properties/cached/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=n===s}else a=!0;if(a){if(void 0!==t.version){const n=s;if("string"!=typeof t.version)return Ar.errors=[{instancePath:e+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;a=n===s}else a=!0;if(a){if(void 0!==t.events){let n=t.events;const i=s;if(s===i){if(!Array.isArray(n))return Ar.errors=[{instancePath:e+"/events",schemaPath:"#/properties/events/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const t=n.length;for(let i=0;iXr(t,e,n)))}function eo(t,e,n=250,i,r,o,s){if(!(o.exception&&o.exception.values&&s&&Zr(s.originalException,Error)))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var c,l;a&&(o.exception.values=(c=no(t,e,r,s.originalException,i,o.exception.values,a,0),l=n,c.map((t=>(t.value&&(t.value=Wr(t.value,l)),t)))))}function no(t,e,n,i,r,o,s,a){if(o.length>=n+1)return o;let c=[...o];if(Zr(i[r],Error)){io(s,a);const o=t(e,i[r]),l=c.length;ro(o,r,l,a),c=no(t,e,n,i[r],r,[o,...c],o,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,o)=>{if(Zr(i,Error)){io(s,a);const l=t(e,i),u=c.length;ro(l,`errors[${o}]`,u,a),c=no(t,e,n,i,r,[l,...c],l,u)}})),c}function io(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function ro(t,e,n,i){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:i}}function oo(t){return t&&t.Math==Math?t:void 0}const so="object"==typeof globalThis&&oo(globalThis)||"object"==typeof window&&oo(window)||"object"==typeof self&&oo(self)||"object"==typeof global&&oo(global)||function(){return this}()||{};function ao(){return so}function co(t,e,n){const i=n||so,r=i.__SENTRY__=i.__SENTRY__||{};return r[t]||(r[t]=e())}const lo=ao();function uo(t,e={}){if(!t)return"";try{let n=t;const i=5,r=[];let o=0,s=0;const a=" > ",c=a.length;let l;const u=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++1&&s+r.length*c+l.length>=p));)r.push(l),s+=l.length,n=n.parentNode;return r.reverse().join(a)}catch(t){return""}}function po(t,e){const n=t,i=[];let r,o,s,a,c;if(!n||!n.tagName)return"";if(lo.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(l&&l.length)l.forEach((t=>{i.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&qr(r))for(o=r.split(/\s+/),c=0;c{const i=mo[t];n[t]=e[t],e[t]=i}));try{return t()}finally{i.forEach((t=>{e[t]=n[t]}))}}const yo=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return ho?fo.forEach((n=>{e[n]=(...e)=>{t&&go((()=>{so.console[n](`Sentry Logger [${n}]:`,...e)}))}})):fo.forEach((t=>{e[t]=()=>{}})),e}(),bo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function vo(t,e=!1){const{host:n,path:i,pass:r,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&r?`:${r}`:""}@${n}${o?`:${o}`:""}/${i?`${i}/`:i}${s}`}function ko(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function wo(t){const e="string"==typeof t?function(t){const e=bo.exec(t);if(!e)return void go((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,i,r="",o,s="",a]=e.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const t=l.match(/^\d+/);t&&(l=t[0])}return ko({host:o,pass:r,path:c,projectId:l,port:s,protocol:n,publicKey:i})}(t):ko(t);if(e&&function(t){if(!ho)return!0;const{port:e,projectId:n,protocol:i}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(yo.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(i)?e&&isNaN(parseInt(e,10))&&(yo.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(yo.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(yo.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}class xo extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}function _o(t,e,n){if(!(e in t))return;const i=t[e],r=n(i);"function"==typeof r&&So(r,i),t[e]=r}function To(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){ho&&yo.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function So(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,To(t,"__sentry_original__",e)}catch(t){}}function Eo(t){return t.__sentry_original__}function Do(t){if(Ur(t))return{message:t.message,name:t.name,stack:t.stack,...No(t)};if(Hr(t)){const e={type:t.type,target:Lo(t.target),currentTarget:Lo(t.currentTarget),...No(t)};return"undefined"!=typeof CustomEvent&&Zr(t,CustomEvent)&&(e.detail=t.detail),e}return t}function Lo(t){try{return e=t,"undefined"!=typeof Element&&Zr(e,Element)?uo(t):Object.prototype.toString.call(t)}catch(t){return""}var e}function No(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function Po(t){return Mo(t,new Map)}function Mo(t,e){if(function(t){if(!Gr(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const i={};e.set(t,i);for(const n of Object.keys(t))void 0!==t[n]&&(i[n]=Mo(t[n],e));return i}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const i=[];return e.set(t,i),t.forEach((t=>{i.push(Mo(t,e))})),i}return t}const jo=/\(error: (.*)\)/,Co=/captureMessage|captureException/;const Io="";function Oo(t){try{return t&&"function"==typeof t&&t.name||Io}catch(t){return Io}}const Ao={},zo={};function Ro(t,e){Ao[t]=Ao[t]||[],Ao[t].push(e)}function Uo(t,e){zo[t]||(e(),zo[t]=!0)}function $o(t,e){const n=t&&Ao[t];if(n)for(const i of n)try{i(e)}catch(e){ho&&yo.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Oo(i)}\nError:`,e)}}function Fo(){"console"in so&&fo.forEach((function(t){t in so.console&&_o(so.console,t,(function(e){return mo[t]=e,function(...e){$o("console",{args:e,level:t});const n=mo[t];n&&n.apply(so.console,e)}}))}))}function Vo(){const t=so,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function qo(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Bo(t){const{message:e,event_id:n}=t;if(e)return e;const i=qo(t);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"":n||""}function Qo(t,e,n){const i=t.exception=t.exception||{},r=i.values=i.values||[],o=r[0]=r[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Go(t,e){const n=qo(t);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...e},e&&"data"in e){const t={...i&&i.data,...e.data};n.mechanism.data=t}}function Ho(t){if(t&&t.__sentry_captured__)return!0;try{To(t,"__sentry_captured__",!0)}catch(t){}return!1}const Yo=so;let Zo,Jo,Wo;function Ko(){if(!Yo.document)return;const t=$o.bind(null,"dom"),e=Xo(t,!0);Yo.document.addEventListener("click",e,!1),Yo.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Yo[e]&&Yo[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(_o(n,"addEventListener",(function(e){return function(n,i,r){if("click"===n||"keypress"==n)try{const i=this,o=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){const i=Xo(t);s.handler=i,e.call(this,n,i,r)}s.refCount++}catch(t){}return e.call(this,n,i,r)}})),_o(n,"removeEventListener",(function(t){return function(e,n,i){if("click"===e||"keypress"==e)try{const n=this,r=n.__sentry_instrumentation_handlers__||{},o=r[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,i),o.handler=void 0,delete r[e]),0===Object.keys(r).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,i)}})))}))}function Xo(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,i))return;To(n,"_sentryCaptured",!0),i&&!i._sentryId&&To(i,"_sentryId",Vo());const r="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Jo)return!1;try{if(!t.target||t.target._sentryId!==Wo)return!1}catch(t){}return!0}(n)){t({event:n,name:r,global:e}),Jo=n.type,Wo=i?i._sentryId:void 0}clearTimeout(Zo),Zo=Yo.setTimeout((()=>{Wo=void 0,Jo=void 0}),1e3)}}const ts=ao();function es(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ns(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ts))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(es(ts.fetch))return!0;let t=!1;const e=ts.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=es(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){ho&&yo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}function is(){ns()&&_o(so,"fetch",(function(t){return function(...e){const{method:n,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:os(e),method:rs(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:os(e),method:rs(e,"method")?String(e.method).toUpperCase():"GET"}}(e),r={args:e,fetchData:{method:n,url:i},startTimestamp:Date.now()};return $o("fetch",{...r}),t.apply(so,e).then((t=>($o("fetch",{...r,endTimestamp:Date.now(),response:t}),t)),(t=>{throw $o("fetch",{...r,endTimestamp:Date.now(),error:t}),t}))}}))}function rs(t,e){return!!t&&"object"==typeof t&&!!t[e]}function os(t){return"string"==typeof t?t:t?rs(t,"url")?t.url:t.toString?t.toString():"":""}let ss=null;function as(){ss=so.onerror,so.onerror=function(t,e,n,i,r){return $o("error",{column:i,error:r,line:n,msg:t,url:e}),!(!ss||ss.__SENTRY_LOADER__)&&ss.apply(this,arguments)},so.onerror.__SENTRY_INSTRUMENTED__=!0}let cs=null;function ls(){cs=so.onunhandledrejection,so.onunhandledrejection=function(t){return $o("unhandledrejection",t),!(cs&&!cs.__SENTRY_LOADER__)||cs.apply(this,arguments)},so.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const us=ao();const ps=so;let hs;function ds(){if(!function(){const t=us.chrome,e=t&&t.app&&t.app.runtime,n="history"in us&&!!us.history.pushState&&!!us.history.replaceState;return!e&&n}())return;const t=ps.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=hs,e=String(n);hs=e;$o("history",{from:t,to:e})}return t.apply(this,e)}}ps.onpopstate=function(...e){const n=ps.location.href,i=hs;hs=n;if($o("history",{from:i,to:n}),t)try{return t.apply(this,e)}catch(t){}},_o(ps.history,"pushState",e),_o(ps.history,"replaceState",e)}const fs=so,ms="__sentry_xhr_v3__";function gs(){if(!fs.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;_o(t,"open",(function(t){return function(...e){const n=Date.now(),i=qr(e[0])?e[0].toUpperCase():void 0,r=function(t){if(qr(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!i||!r)return t.apply(this,e);this[ms]={method:i,url:r,request_headers:{}},"POST"===i&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this[ms];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}$o("xhr",{args:[i,r],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?_o(this,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(this,e)}})):this.addEventListener("readystatechange",o),_o(this,"setRequestHeader",(function(t){return function(...e){const[n,i]=e,r=this[ms];return r&&qr(n)&&qr(i)&&(r.request_headers[n.toLowerCase()]=i),t.apply(this,e)}})),t.apply(this,e)}})),_o(t,"send",(function(t){return function(...e){const n=this[ms];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);return $o("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}function ys(t,e=100,n=1/0){try{return vs("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function bs(t,e=3,n=102400){const i=ys(t,e);return r=i,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?bs(t,e-1,n):i;var r}function vs(t,e,n=1/0,i=1/0,r=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=i){p[t]="[MaxProperties ~]";break}const e=d[t];p[t]=vs(t,e,l-1,i,r),h++}return s(e),p}var ks;function ws(t){return new _s((e=>{e(t)}))}function xs(t){return new _s(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(ks||(ks={}));class _s{constructor(t){_s.prototype.__init.call(this),_s.prototype.__init2.call(this),_s.prototype.__init3.call(this),_s.prototype.__init4.call(this),this._state=ks.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new _s(((n,i)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){i(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){i(t)}else i(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new _s(((e,n)=>{let i,r;return this.then((e=>{r=!1,i=e,t&&t()}),(e=>{r=!0,i=e,t&&t()})).then((()=>{r?n(i):e(i)}))}))}__init(){this._resolve=t=>{this._setResult(ks.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ks.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===ks.PENDING&&(Yr(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ks.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===ks.RESOLVED&&t[1](this._value),this._state===ks.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function Ts(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(i){if(!(void 0===t||e.lengthn(r))).then(null,(()=>n(r).then(null,(()=>{})))),r},drain:function(t){return new _s(((n,i)=>{let r=e.length;if(!r)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{ws(t).then((()=>{--r||(clearTimeout(o),n(!0))}),i)}))}))}}}function Ss(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:i,relative:e[5]+n+i}}const Es=["fatal","error","warning","log","info","debug"];function Ds(t){return"warn"===t?"warning":Es.includes(t)?t:"log"}function Ls(){return Date.now()/1e3}const Ns=function(){const{performance:t}=so;if(!t||!t.now)return Ls;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();function Ps(t,e=[]){return[t,e]}function Ms(t,e){const[n,i]=t;return[n,[...i,e]]}function js(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function Cs(t,e){return(e||new TextEncoder).encode(t)}function Is(t,e){const[n,i]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[Cs(r,e),t]:r.push("string"==typeof t?Cs(t,e):t)}for(const t of i){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(ys(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let i=0;for(const e of t)n.set(e,i),i+=e.length;return n}(r)}function Os(t,e){const n="string"==typeof t.data?Cs(t.data,e):t.data;return[Po({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}(()=>{const{performance:t}=so;if(!t||!t.now)return;const e=36e5,n=t.now(),i=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,o=r[]))}function qs(t){Vs().push(t)}function Bs(t,e,n,i=0){return new _s(((r,o)=>{const s=t[i];if(null===e||"function"!=typeof s)r(e);else{const a=s({...e},n);$s&&s.id&&null===a&&yo.log(`Event processor "${s.id}" dropped event`),Yr(a)?a.then((e=>Bs(t,e,n,i+1).then(r))).then(null,o):Bs(t,a,n,i+1).then(r).then(null,o)}}))}function Qs(t){const e=Ns(),n={sid:Vo(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Po({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&Gs(n,t),n}function Gs(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ns(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Vo()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Hs(t){const{spanId:e,traceId:n}=t.spanContext(),{data:i,op:r,parent_span_id:o,status:s,tags:a,origin:c}=Ys(t);return Po({data:i,op:r,parent_span_id:o,span_id:e,status:s,tags:a,trace_id:n,origin:c})}function Ys(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Zs(t,e,n,i,r,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||Vo(),timestamp:e.timestamp||Ls()},l=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:i,dist:r,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:Fs);void 0===t.release&&void 0!==i&&(t.release=i);void 0===t.dist&&void 0!==r&&(t.dist=r);t.message&&(t.message=Wr(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Wr(s.value,o));const a=t.request;a&&a.url&&(a.url=Wr(a.url,o))}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,l),void 0===e.type&&function(t,e){const n=so._sentryDebugIds;if(!n)return;let i;const r=Js.get(e);r?i=r:(i=new Map,Js.set(e,i));const o=Object.keys(n).reduce(((t,r)=>{let o;const s=i.get(r);s?o=s:(o=e(r),i.set(r,o));for(let e=o.length-1;e>=0;e--){const i=o[e];if(i.filename){t[i.filename]=n[r];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(t){}}(c,t.stackParser);const u=function(t,e){if(!e)return t;const n=t?t.clone():new la;return n.update(e),n}(i,n.captureContext);n.mechanism&&Go(c,n.mechanism);const p=r&&r.getEventProcessors?r.getEventProcessors():[],h=function(){ca||(ca=new la);return ca}().getScopeData();if(o){sa(h,o.getScopeData())}if(u){sa(h,u.getScopeData())}const d=[...n.attachments||[],...h.attachments];d.length&&(n.attachments=d),oa(c,h);return Bs([...p,...Vs(),...h.eventProcessors],c,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof s&&s>0?function(t,e,n){if(!t)return null;const i={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:ys(t.data,e,n)}})))},...t.user&&{user:ys(t.user,e,n)},...t.contexts&&{contexts:ys(t.contexts,e,n)},...t.extra&&{extra:ys(t.extra,e,n)}};t.contexts&&t.contexts.trace&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=ys(t.contexts.trace.data,e,n)));t.spans&&(i.spans=t.spans.map((t=>{const i=Ys(t).data;return i&&(t.data=ys(i,e,n)),t})));return i}(t,s,a):t)))}const Js=new WeakMap;function Ws(t){if(t)return function(t){return t instanceof la||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Ks.includes(t)))}(t)?{captureContext:t}:t}const Ks=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Xs(t,e){return ba().captureEvent(t,e)}function ta(t,e){ba().addBreadcrumb(t,e)}function ea(){return ba().getClient()}function na(t){return t.transaction}function ia(t,e,n){const i=e.getOptions(),{publicKey:r}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},s=Po({environment:i.environment||Fs,release:i.release,user_segment:o,public_key:r,trace_id:t});return e.emit&&e.emit("createDsc",s),s}function ra(t){const e=ea();if(!e)return{};const n=ia(Ys(t).trace_id||"",e,ba().getScope()),i=na(t);if(!i)return n;const r=i&&i._frozenDynamicSamplingContext;if(r)return r;const{sampleRate:o,source:s}=i.metadata;null!=o&&(n.sample_rate=`${o}`);const a=Ys(i);return s&&"url"!==s&&(n.transaction=a.description),n.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}(i)),e.emit&&e.emit("createDsc",n),n}function oa(t,e){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:i,user:r,contexts:o,level:s,transactionName:a}=e,c=Po(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const l=Po(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});const u=Po(r);u&&Object.keys(u).length&&(t.user={...u,...t.user});const p=Po(o);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts});s&&(t.level=s);a&&(t.transaction=a)}(t,e),i&&function(t,e){t.contexts={trace:Hs(e),...t.contexts};const n=na(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:ra(e),...t.sdkProcessingMetadata};const i=Ys(n).description;i&&(t.tags={transaction:i,...t.tags})}}(t,i),function(t,e){t.fingerprint=t.fingerprint?function(t){return Array.isArray(t)?t:[t]}(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,r),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}function sa(t,e){const{extra:n,tags:i,user:r,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:p,propagationContext:h,transactionName:d,span:f}=e;aa(t,"extra",n),aa(t,"tags",i),aa(t,"user",r),aa(t,"contexts",o),aa(t,"sdkProcessingMetadata",a),s&&(t.level=s),d&&(t.transactionName=d),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),u.length&&(t.eventProcessors=[...t.eventProcessors,...u]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...h}}function aa(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[e][i]=n[i])}}let ca;class la{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ua()}static clone(t){return t?t.clone():new la}clone(){const t=new la;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Gs(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof la){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(Gr(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=ua(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const i={timestamp:Ls(),...t},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>n?r.slice(-n):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:i,_extra:r,_user:o,_level:s,_fingerprint:a,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:p,_span:h}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:i,extra:r,user:o,level:s,fingerprint:a||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:p,span:h}}applyToEvent(t,e={},n=[]){oa(t,this.getScopeData());return Bs([...n,...Vs(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:Vo();if(!this._client)return yo.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},this),n}captureMessage(t,e,n){const i=n&&n.event_id?n.event_id:Vo();if(!this._client)return yo.warn("No client configured on scope - will not capture message!"),i;const r=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:i},this),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Vo();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(yo.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}function ua(){return{traceId:Vo(),spanId:Vo().substring(16)}}const pa="7.119.0",ha=parseFloat(pa),da=100;class fa{constructor(t,e,n,i=ha){let r,o;this._version=i,e?r=e:(r=new la,r.setClient(t)),n?o=n:(o=new la,o.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:Vo(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...e,event_id:n}),n}captureMessage(t,e,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Vo(),r=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:i}),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Vo();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:o=da}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const s={timestamp:Ls(),...t},a=r?go((()=>r(s,e))):s;null!==a&&(i.emit&&i.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=ya(this);try{t(this)}finally{ya(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return $s&&yo.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if($s&&!n){this.getClient()?yo.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):yo.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),Gs(t,n)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:i,environment:r=Fs}=n&&n.getOptions()||{},{userAgent:o}=so.navigator||{},s=Qs({release:i,environment:r,user:e.getUser(),...o&&{userAgent:o},...t}),a=e.getSession&&e.getSession();return a&&"ok"===a.status&&Gs(a,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=ma().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);$s&&yo.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ma(){return so.__SENTRY__=so.__SENTRY__||{extensions:{},hub:void 0},so}function ya(t){const e=ma(),n=va(e);return ka(e,t),n}function ba(){const t=ma();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=ma()){e=t,e&&e.__SENTRY__&&e.__SENTRY__.hub&&!va(t).isOlderThan(ha)||ka(t,new fa);var e;return va(t)}(t)}function va(t){return co("hub",(()=>new fa),t)}function ka(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}function wa(t,e,n,i){const r=Rs(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const s=function(t,e,n,i){const r=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&i&&{dsn:vo(i)},...r&&{trace:Po({...r})}}}(t,r,i,e);delete t.sdkProcessingMetadata;return Ps(s,[[{type:o},t]])}function xa(t,e){return n={sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}const _a=[];function Ta(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Sa(t,e,n){if(n[e.name])$s&&yo.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===_a.indexOf(e.name)&&(e.setupOnce(qs,ba),_a.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,i)=>n(e,i,t)))}if(t.addEventProcessor&&"function"==typeof e.processEvent){const n=e.processEvent.bind(e),i=Object.assign(((e,i)=>n(e,i,t)),{id:e.name});t.addEventProcessor(i)}$s&&yo.log(`Integration installed: ${e.name}`)}}function Ea(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}function Da(t,e,n,i){const r={sent_at:(new Date).toISOString()};n&&n.sdk&&(r.sdk={name:n.sdk.name,version:n.sdk.version}),i&&e&&(r.dsn=vo(e));const o=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),i=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return Ps(r,[o])}const La="Not capturing exception because it's already been captured.";class Na{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=wo(t.dsn):$s&&yo.warn("No DSN provided, client will not send events."),this._dsn){const e=function(t,e={}){const n="string"==typeof e?e:e.tunnel,i="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${xa(t,i)}`}(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(Ho(t))return void($s&&yo.log(La));let i=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{i=t}))),i}captureMessage(t,e,n,i){let r=n&&n.event_id;const o=Br(t)?t:String(t),s=Qr(t)?this.eventFromMessage(o,e,n):this.eventFromException(t,n);return this._process(s.then((t=>this._captureEvent(t,n,i))).then((t=>{r=t}))),r}captureEvent(t,e,n){if(e&&e.originalException&&Ho(e.originalException))return void($s&&yo.log(La));let i=e&&e.event_id;const r=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,r||n).then((t=>{i=t}))),i}captureSession(t){"string"!=typeof t.release?$s&&yo.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Gs(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):ws(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return $s&&yo.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];Sa(this,t,this._integrations),e||Ta(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=wa(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=Ms(n,Os(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,i){const r=Rs(n);return Ps({sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!i&&e&&{dsn:vo(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const i="number"==typeof n?n:1,r=`${t}:${e}`;$s&&yo.log(`Recording outcome: "${r}"${i>1?` (${i} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+i}}captureAggregateMetrics(t){$s&&yo.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=Da(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&Sa(t,e,n)})),n}(this,t),Ta(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,i=!1;const r=e.exception&&e.exception.values;if(r){i=!0;for(const t of r){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(Gs(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _s((e=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),e(!0)):(n+=1,t&&n>=t&&(clearInterval(i),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,i=function(){return ba().getIsolationScope()}()){const r=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),Zs(r,t,e,n,this,i).then((t=>{if(null===t)return t;const e={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:i,spanId:r,parentSpanId:o,dsc:s}=e;t.contexts={trace:{trace_id:i,span_id:r,parent_span_id:o},...t.contexts};const a=s||ia(i,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if($s){const e=t;"log"===e.logLevel?yo.log(e.message):yo.warn(e)}}))}_processEvent(t,e,n){const i=this.getOptions(),{sampleRate:r}=i,o=Ma(t),s=Pa(t),a=t.type||"error",c=`before send for type \`${a}\``;if(s&&"number"==typeof r&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",t),xs(new xo(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));const l="replay_event"===a?"replay":a,u=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,u).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,t),new xo("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const r=function(t,e,n){const{beforeSend:i,beforeSendTransaction:r}=t;if(Pa(e)&&i)return i(e,n);if(Ma(e)&&r){if(e.spans){const t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return r(e,n)}return e}(i,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Yr(t))return t.then((t=>{if(!Gr(t)&&null!==t)throw new xo(n);return t}),(t=>{throw new xo(`${e} rejected with ${t}`)}));if(!Gr(t)&&null!==t)throw new xo(n);return t}(r,c)})).then((i=>{if(null===i){if(this.recordDroppedEvent("before_send",l,t),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new xo(`${c} returned \`null\`, will not send event.`,"log")}const r=n&&n.getSession();if(!o&&r&&this._updateSessionFromEvent(r,i),o){const t=(i.sdkProcessingMetadata&&i.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const s=i.transaction_info;if(o&&s&&i.transaction!==t.transaction){const t="custom";i.transaction_info={...s,source:t}}return this.sendEvent(i,e),i})).then(null,(t=>{if(t instanceof xo)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new xo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(t=>{$s&&yo.error("Error while sending event:",t)}));$s&&yo.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,i]=e.split(":");return{reason:n,category:i,quantity:t[e]}}))}}function Pa(t){return void 0===t.type}function Ma(t){return"transaction"===t.type}function ja(t,e,n=Ts(t.bufferSize||30)){let i={};function r(r){const o=[];if(js(r,((e,n)=>{const r=zs(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(i,r)){const i=Ca(e,n);t.recordDroppedEvent("ratelimit_backoff",r,i)}else o.push(e)})),0===o.length)return ws();const s=Ps(r[0],o),a=e=>{js(s,((n,i)=>{const r=Ca(n,i);t.recordDroppedEvent(e,zs(i),r)}))};return n.add((()=>e({body:Is(s,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&$s&&yo.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),i=Us(i,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof xo)return $s&&yo.error("Skipped sending event because buffer is full."),a("queue_overflow"),ws();throw t}))}return r.__sentry__baseTransport__=!0,{send:r,flush:t=>n.drain(t)}}function Ca(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const Ia=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Oa=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Aa="InboundFilters",za=(t={})=>({name:Aa,setupOnce(){},processEvent(e,n,i){const r=i.getOptions(),o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Ia],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:Oa],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,r);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return $s&&yo.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Bo(t)}`),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(t){}n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`));$s&&0===e.length&&yo.error(`Could not extract message for event ${Bo(t)}`);return e}(t).some((t=>to(t,e)))}(t,e.ignoreErrors))return $s&&yo.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Bo(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&to(n,e)}(t,e.ignoreTransactions))return $s&&yo.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Bo(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=Ra(t);return!!n&&to(n,e)}(t,e.denyUrls))return $s&&yo.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Bo(t)}.\nUrl: ${Ra(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=Ra(t);return!n||to(n,e)}(t,e.allowUrls))return $s&&yo.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Bo(t)}.\nUrl: ${Ra(t)}`),!0;return!1}(e,o)?null:e}});function Ra(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return $s&&yo.error(`Cannot extract url for event ${Bo(t)}`),null}}let Ua;Ea(Aa,za);const $a="FunctionToString",Fa=new WeakMap,Va=()=>({name:$a,setupOnce(){Ua=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Eo(this),n=Fa.has(ea())&&void 0!==e?e:this;return Ua.apply(n,t)}}catch(t){}},setup(t){Fa.set(t,!0)}});Ea($a,Va);const qa=so;let Ba=0;function Qa(){return Ba>0}function Ga(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(Eo(t))return t}catch(e){return t}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const r=i.map((t=>Ga(t,e)));return t.apply(this,r)}catch(t){throw Ba++,setTimeout((()=>{Ba--})),function(...t){const e=ba();if(2===t.length){const[n,i]=t;return n?e.withScope((()=>(e.getStackTop().scope=n,i(n)))):e.withScope(i)}e.withScope(t[0])}((n=>{var r,o;n.addEventProcessor((t=>(e.mechanism&&(Qo(t,void 0,void 0),Go(t,e.mechanism)),t.extra={...t.extra,arguments:i},t))),r=t,ba().captureException(r,Ws(o))})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch(t){}So(i,t),To(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(t){}return i}const Ha="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Ya(t,e){const n=Ja(t,e),i={type:e&&e.name,value:Ka(e)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Za(t,e){return{exception:{values:[Ya(t,e)]}}}function Ja(t,e){const n=e.stacktrace||e.stack||"",i=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Wa.test(t.message))return 1}return 0}(e);try{return t(n,i)}catch(t){}return[]}const Wa=/Minified React error #\d+;/i;function Ka(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Xa(t,e,n,i,r){let o;if(Fr(e)&&e.error){return Za(t,e.error)}if(Vr(e)||$r(e,"DOMException")){const r=e;if("stack"in e)o=Za(t,e);else{const e=r.name||(Vr(r)?"DOMError":"DOMException"),s=r.message?`${e}: ${r.message}`:e;o=tc(t,s,n,i),Qo(o,s)}return"code"in r&&(o.tags={...o.tags,"DOMException.code":`${r.code}`}),o}if(Ur(e))return Za(t,e);if(Gr(e)||Hr(e)){return o=function(t,e,n,i){const r=ea(),o=r&&r.getOptions().normalizeDepth,s={exception:{values:[{type:Hr(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:ec(e,{isUnhandledRejection:i})}]},extra:{__serialized__:bs(e,o)}};if(n){const e=Ja(t,n);e.length&&(s.exception.values[0].stacktrace={frames:e})}return s}(t,e,n,r),Go(o,{synthetic:!0}),o}return o=tc(t,e,n,i),Qo(o,`${e}`,void 0),Go(o,{synthetic:!0}),o}function tc(t,e,n,i){const r={};if(i&&n){const i=Ja(t,n);i.length&&(r.exception={values:[{value:e,stacktrace:{frames:i}}]})}if(Br(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return r.logentry={message:t,params:n},r}return r.message=e,r}function ec(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(Do(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Wr(n[0],e);for(let t=n.length;t>0;t--){const i=n.slice(0,t).join(", ");if(!(i.length>e))return t===n.length?i:Wr(i,e)}return""}(t),i=e?"promise rejection":"exception";if(Fr(t))return`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``;if(Hr(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}class nc extends Na{constructor(t){!function(t,e,n=[e],i="npm"){const r=t._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${i}:@sentry/${t}`,version:pa}))),version:pa}),t._metadata=r}(t,"browser",["browser"],qa.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&qa.document&&qa.document.addEventListener("visibilitychange",(()=>{"hidden"===qa.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,i){const r=Xa(t,e,n&&n.syntheticException||void 0,i);return Go(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),ws(r)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",i,r){const o=tc(t,e,i&&i.syntheticException||void 0,r);return o.level=n,i&&i.event_id&&(o.event_id=i.event_id),ws(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(Ha&&yo.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:i}){const r={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!i&&{dsn:vo(i)}},o=function(t){return[{type:"user_report"},t]}(t);return Ps(r,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(Ha&&yo.log("No outcomes to send"));if(!this._dsn)return void(Ha&&yo.log("No dsn provided, will not send outcomes"));Ha&&yo.log("Sending outcomes:",t);const e=(n=t,Ps((i=this._options.tunnel&&vo(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:r||Ls(),discarded_events:n}]]));var n,i,r;this._sendEnvelope(e)}}let ic;function rc(t,e=function(){if(ic)return ic;if(es(qa.fetch))return ic=qa.fetch.bind(qa);const t=qa.document;let e=qa.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(e=i.fetch),t.head.removeChild(n)}catch(t){Ha&&yo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return ic=e.bind(qa)}()){let n=0,i=0;return ja(t,(function(r){const o=r.body.length;n+=o,i++;const s={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&i<15,...t.fetchOptions};try{return e(t.url,s).then((t=>(n-=o,i--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return ic=void 0,n-=o,i--,xs(t)}}))}const oc="?";function sc(t,e,n,i){const r={filename:t,function:e,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}const ac=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cc=/\((\S*)(?::(\d+))(?::(\d+))\)/,lc=[30,t=>{const e=ac.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=cc.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=gc(e[1]||oc,e[2]);return sc(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],uc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,pc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,hc=[50,t=>{const e=uc.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=pc.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||oc;return[n,t]=gc(n,t),sc(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],dc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,fc=[40,t=>{const e=dc.exec(t);return e?sc(e[2],e[1]||oc,+e[3],e[4]?+e[4]:void 0):void 0}],mc=function(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const i=[],r=t.split("\n");for(let t=n;t1024)continue;const o=jo.test(n)?n.replace(jo,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){i.push(e);break}}if(i.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop();e.reverse(),Co.test(e[e.length-1].function||"")&&(e.pop(),Co.test(e[e.length-1].function||"")&&e.pop());return e.slice(0,50).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(i)}}(...[lc,hc,fc]),gc=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return n||i?[-1!==t.indexOf("@")?t.split("@")[0]:oc,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},yc=1024,bc="Breadcrumbs",vc=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:bc,setupOnce(){},setup(t){var n;e.console&&function(t){const e="console";Ro(e,t),Uo(e,Fo)}(function(t){return function(e){if(ea()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Ds(e.level),message:Kr(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Kr(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}ta(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(ea()!==t)return;let i,r,o="object"==typeof e?e.serializeAttribute:void 0,s="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;s&&s>yc&&(Ha&&yo.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=yc),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;i=uo(e,{keyAttrs:o,maxStringLength:s}),r=function(t){if(!lo.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}(e)}catch(t){i=""}if(0===i.length)return;const a={category:`ui.${n.name}`,message:i};r&&(a.data={"ui.component_name":r}),ta(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Ro("dom",n),Uo("dom",Ko)),e.xhr&&function(t){Ro("xhr",t),Uo("xhr",gs)}(function(t){return function(e){if(ea()!==t)return;const{startTimestamp:n,endTimestamp:i}=e,r=e.xhr[ms];if(!n||!i||!r)return;const{method:o,url:s,status_code:a,body:c}=r;ta({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},{xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:i})}}(t)),e.fetch&&function(t){const e="fetch";Ro(e,t),Uo(e,is)}(function(t){return function(e){if(ea()!==t)return;const{startTimestamp:n,endTimestamp:i}=e;if(i&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){ta({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:i})}else{const t=e.response;ta({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:i})}}}(t)),e.history&&function(t){const e="history";Ro(e,t),Uo(e,ds)}(function(t){return function(e){if(ea()!==t)return;let n=e.from,i=e.to;const r=Ss(qa.location.href);let o=n?Ss(n):void 0;const s=Ss(i);o&&o.path||(o=r),r.protocol===s.protocol&&r.host===s.host&&(i=s.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),ta({category:"navigation",data:{from:n,to:i}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(e){ea()===t&&ta({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Bo(e)},{event:e})}}(t))}}};Ea(bc,vc);const kc="Dedupe",wc=()=>{let t;return{name:kc,setupOnce(){},processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,i=e.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!_c(t,e))return!1;if(!xc(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Tc(e),i=Tc(t);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!_c(t,e))return!1;if(!xc(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return Ha&&yo.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};function xc(t,e){let n=Sc(t),i=Sc(e);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let t=0;t{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Ec,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";Ro(e,t),Uo(e,as)}((e=>{const{stackParser:n,attachStacktrace:i}=Pc();if(ea()!==t||Qa())return;const{msg:r,url:o,line:s,column:a,error:c}=e,l=void 0===c&&qr(r)?function(t,e,n,i){const r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Fr(t)?t.message:t,s="Error";const a=o.match(r);a&&(s=a[1],o=a[2]);const c={exception:{values:[{type:s,value:o}]}};return Lc(c,e,n,i)}(r,o,s,a):Lc(Xa(n,c||r,void 0,i,!1),o,s,a);l.level="error",Xs(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),Nc("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";Ro(e,t),Uo(e,ls)}((e=>{const{stackParser:n,attachStacktrace:i}=Pc();if(ea()!==t||Qa())return;const r=function(t){if(Qr(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return t}(e),o=Qr(r)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}:Xa(n,r,void 0,i,!0);o.level="error",Xs(o,{originalException:r,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Nc("onunhandledrejection"))}}};function Lc(t,e,n,i){const r=t.exception=t.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,p=qr(e)&&e.length>0?e:function(){try{return lo.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:l,filename:p,function:"?",in_app:!0,lineno:u}),t}function Nc(t){Ha&&yo.log(`Global Handler attached: ${t}`)}function Pc(){const t=ea();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}Ea(Ec,Dc);const Mc="HttpContext",jc=()=>({name:Mc,setupOnce(){},preprocessEvent(t){if(!qa.navigator&&!qa.location&&!qa.document)return;const e=t.request&&t.request.url||qa.location&&qa.location.href,{referrer:n}=qa.document||{},{userAgent:i}=qa.navigator||{},r={...t.request&&t.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},o={...t.request,...e&&{url:e},headers:r};t.request=o}});Ea(Mc,jc);const Cc="LinkedErrors",Ic=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:Cc,setupOnce(){},preprocessEvent(t,i,r){const o=r.getOptions();eo(Ya,o.stackParser,o.maxValueLength,n,e,t,i)}}};Ea(Cc,Ic);const Oc=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ac="TryCatch",zc=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Ac,setupOnce(){e.setTimeout&&_o(qa,"setTimeout",Rc),e.setInterval&&_o(qa,"setInterval",Rc),e.requestAnimationFrame&&_o(qa,"requestAnimationFrame",Uc),e.XMLHttpRequest&&"XMLHttpRequest"in qa&&_o(XMLHttpRequest.prototype,"send",$c);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Oc).forEach(Fc)}}}};function Rc(t){return function(...e){const n=e[0];return e[0]=Ga(n,{mechanism:{data:{function:Oo(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Uc(t){return function(e){return t.apply(this,[Ga(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Oo(t)},handled:!1,type:"instrument"}})])}}function $c(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&_o(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Oo(e)},handled:!1,type:"instrument"}},i=Eo(e);return i&&(n.mechanism.data.handler=Oo(i)),Ga(e,n)}))})),t.apply(this,e)}}function Fc(t){const e=qa,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(_o(n,"addEventListener",(function(e){return function(n,i,r){try{"function"==typeof i.handleEvent&&(i.handleEvent=Ga(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Oo(i),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Ga(i,{mechanism:{data:{function:"addEventListener",handler:Oo(i),target:t},handled:!1,type:"instrument"}}),r])}})),_o(n,"removeEventListener",(function(t){return function(e,n,i){const r=n;try{const n=r&&r.__sentry_wrapped__;n&&t.call(this,e,n,i)}catch(t){}return t.call(this,e,r,i)}})))}Ea(Ac,zc);const Vc=[za(),Va(),zc(),vc(),Dc(),Ic(),wc(),jc()];function qc(){let t=process.env.WIDGET_VERSION||"error";return process.env.ROLLUP_WATCH&&(t+="-watch"),t}const Bc=["La conexión de red se perdió.","La conexión de red se ha perdido.","AbortError","Failed to fetch","cancelado","NetworkError when attempting to fetch resource.","No se ha encontrado ningún servidor con el nombre de host especificado.","The Internet connection appears to be offline.","No se encontró ningún servidor con el nombre de host especificado","TypeError: r._mergeOptions is not a function","*r._mergeOptions*",/_mergeOptions/,"r._mergeOptions is not a function","r._mergeOptions is not a function. (In 'r._mergeOptions(i)', 'r._mergeOptions' is undefined)","Load failed","The operation was aborted."];const Qc=function(){const t="test"==process.env.NODE_ENV?"https://a8b0ec9f8f24453c91c284ec5a6669f4@o158528.ingest.sentry.io/5757560":process.env.SENTRY_DSN;if(!t)return;const e=new nc(function(t){const e=process.env.NODE_ENV??void 0;return{dsn:t,maxBreadcrumbs:50,debug:"production"!=e,release:qc(),environment:e,ignoreErrors:Bc,denyUrls:["?(tiendanube-plugins/prod/bundle.plugin)"],integrations:Vc.filter((t=>"GlobalHandlers"!==t.name&&"TryCatch"!==t.name)),transport:rc,stackParser:mc}}(t)),n=new fa(e);return ya(n),n}();function Gc(){return Qc}const Hc=Gc(),Yc={garollup:!1};class Zc{constructor(t){this.debugMode=1==function(){if(!window.URL)return 0;const t=new URL(document.location.toString()).searchParams,e=t.get("LKDEBUG");return t.has("LKDEBUG")?"2"==e?2:1:0}()?1:0,this.config={...P,...t?.config},this.features=t?.features||Yc,this.events=t?.events||[]}static initFromResponse(t){if(null===t||!t||"object"!=typeof t)throw new Error("InvalidResponse");const e=t;if(!("version"in e))throw new Error("InvalidVersionResponse: No version in response");return Zc.initFromV2xx(e)}getDebugMode(){return this.debugMode}getEvents(){return this.events}shouldStartOnOnScroll(){return"0"!==o("forceScroll","0")||this.config.startOnScroll}getInitialDelay(){return this.config.initialDelay}getDelayBetween(){return this.config.delayBetween}getUVConfig(){return this.config.ultimasVentas}getINConfig(){return this.config.informativa}isGaRollUpEnabled(){return this.features.garollup}isGAEnabled(){return this.config.gaeeEnabled}getCID(){return this.config.CID}getSID(){return this.config.SID}getInitialDelayAsSeconds(){return 1e3*Math.max(0,this.getInitialDelay())}static initFromV2xx(t){this.validateResponseV2xx(t);const e={config:{...t.config},events:t.events,features:t.features};return Hc?.configureScope((t=>{t.setContext("config",{content:JSON.stringify(e)})})),new Zc(e)}static validateResponseV2xx(t){if(!zr)return;const e=zr;let n;try{n=e(t)}catch(t){return void Hc?.captureException(t)}if(!n)throw Hc?.setContext("validation",{errors:JSON.stringify(e.errors)}),new Error("Error al parsear/validar la respuesta."+JSON.stringify(e.errors))}getFlag(t,e){return t in this.features?this.features[t]:e}}var Jc={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
"]," ":["
"],"-":["
"]};function Wc(t){return t.replace(RegExp("^"+(t.match(/^(\t| )+/)||"")[0],"gm"),"")}function Kc(t){return(t+"").replace(/"/g,""").replace(//g,">")}function Xc(t,e){var n,i,r,o,s,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,c=[],l="",u=e||{},p=0;function h(t){var e=Jc[t[1]||""],n=c[c.length-1]==t;return e?e[1]?(n?c.pop():c.push(t),e[0|n]):e[0]:t}function d(){for(var t="";c.length;)t+=h(c[c.length-1]);return t}for(t=t.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(t,e,n){return u[e.toLowerCase()]=n,""})).replace(/^\n+|\n+$/g,"");r=a.exec(t);)i=t.substring(p,r.index),p=a.lastIndex,n=r[0],i.match(/[^\\](\\\\)*\\$/)||((s=r[3]||r[4])?n='
"+Wc(Kc(s).replace(/^\n+|\n+$/g,""))+"
":(s=r[6])?(s.match(/\./)&&(r[5]=r[5].replace(/^\d+/gm,"")),o=Xc(Wc(r[5].replace(/^\s*[>*+.-]/gm,""))),">"==s?s="blockquote":(s=s.match(/\./)?"ol":"ul",o=o.replace(/^(.*)(\n|$)/gm,"
  • $1
  • ")),n="<"+s+">"+o+""):r[8]?n=''+Kc(r[7])+'':r[10]?(l=l.replace("",''),n=d()+""):r[9]?n="":r[12]||r[14]?n="<"+(s="h"+(r[14]?r[14].length:r[13]>"="?1:2))+">"+Xc(r[12]||r[15],u)+"":r[16]?n=""+Kc(r[16])+"":(r[17]||r[1])&&(n=h(r[17]||"--"))),l+=i,l+=n;return(l+t.substring(p)+d()).replace(/^\n+|\n+$/g,"")}function tl(t){return Xc(t.replace(/\n/g,"
    "))}class el{constructor(t,e){this.notification=t,this.globalConfig=e||new Zc,this.config=this.globalConfig.getINConfig(),this.defaultImg="https://d26lpennugtm8s.cloudfront.net/stores/611/058/products/kvqs_kombucha_brewing_jar1-771b6f5d63567361fb15174464492129-1024-1024.jpg",this.truncateTitle=!0}getTheme(){return this.config?.theme??N}render(){const t=this.notification;this.injectTheme();const e=oi("\n{{title}}\n{{text}}",{text:tl(this.notification.text),title:this.notification.title});return D(g({"lk-notification-body":!0,"informational-type":!0}),{style:(n={"background-color":this.getTheme()?.backgroundColor,"border-color":this.getTheme()?.backgroundColor},Object.keys(n).filter((t=>n[t])).map((t=>`${t}:${n[t]};`)).join(""))},t.img?E("lk-notification-icon",c("img",{src:t.img})):null,E("lk-notification-content",L("lk-notification-description",{html:e})));var n}injectTheme(){let t=`\n .informational-type lk-titulo {\n color: ${this.getTheme()?.highlightColor} !important;\n }\n .informational-type .lk-notification-description {\n color: ${this.getTheme()?.textColor};\n /*& *{\n color: ${this.getTheme()?.textColor} !important;\n }*/\n }\n `;this.notification.img||(t+="\n .lk-notification-container .lk-notification-body.informational-type .lk-notification-content {\n margin-left: 20px;\n }\n "),Dr(t)}}class nl{constructor(t){let{config:e,emitter:n}=t;this.config=e,this.emitter=n}build(t){let{notification:e,isPreview:n=!1}=t;const i={elem:this.renderNotification({notification:e}),config:this.config,notification:e,emitter:this.emitter};return n?new S(i):new T(i)}renderNotification(t){let{notification:e}=t;return e instanceof p?new el(e,this.config).render():new Nr(e,this.config).render()}}class il{}class rl extends il{constructor(){super(),this.isMobile=R()}run(t){return!t.config.mobileDisabled||!this.isMobile}}var ol={},sl={},al={};Object.defineProperty(al,"__esModule",{value:!0}),al.VALUE_REQUIRED=al.UNSUPPORTED_TYPE=al.INVALID_GUID=void 0;al.INVALID_GUID="Invalid Guid value! Please specify a valid value!";al.VALUE_REQUIRED="The parameter value required!";al.UNSUPPORTED_TYPE="UnSupported type! please specify one of the following: [Guid | string | Uint8Array]";var cl={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateGuidV4=t.isUint8ArrayValidGuid=t.isStringValidGuid=t.uint8ArrayToString=t.stringToUint8Array=t.ARRAY_LENGTH=void 0,t.ARRAY_LENGTH=16;const e=[3,2,1,0,5,4,7,6,8,9,10,11,12,13,14,15],n=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i");function i(e){let n=e<=15?"0":"";return n+=e.toString(t.ARRAY_LENGTH),n}function r(n){let r="";for(let o=0;onull!==t));return e.filter((t=>this.middlewares.every((e=>e.run(t)))))}}var yl=function(t){return t&&t.Math===Math&&t},bl=yl("object"==typeof globalThis&&globalThis)||yl("object"==typeof window&&window)||yl("object"==typeof self&&self)||yl("object"==typeof f&&f)||yl("object"==typeof f&&f)||function(){return this}()||Function("return this")(),vl={},kl=function(t){try{return!!t()}catch(t){return!0}},wl=!kl((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),xl=!kl((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),_l=xl,Tl=Function.prototype.call,Sl=_l?Tl.bind(Tl):function(){return Tl.apply(Tl,arguments)},El={},Dl={}.propertyIsEnumerable,Ll=Object.getOwnPropertyDescriptor,Nl=Ll&&!Dl.call({1:2},1);El.f=Nl?function(t){var e=Ll(this,t);return!!e&&e.enumerable}:Dl;var Pl,Ml,jl=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Cl=xl,Il=Function.prototype,Ol=Il.call,Al=Cl&&Il.bind.bind(Ol,Ol),zl=Cl?Al:function(t){return function(){return Ol.apply(t,arguments)}},Rl=zl,Ul=Rl({}.toString),$l=Rl("".slice),Fl=function(t){return $l(Ul(t),8,-1)},Vl=kl,ql=Fl,Bl=Object,Ql=zl("".split),Gl=Vl((function(){return!Bl("z").propertyIsEnumerable(0)}))?function(t){return"String"===ql(t)?Ql(t,""):Bl(t)}:Bl,Hl=function(t){return null==t},Yl=Hl,Zl=TypeError,Jl=function(t){if(Yl(t))throw new Zl("Can't call method on "+t);return t},Wl=Gl,Kl=Jl,Xl=function(t){return Wl(Kl(t))},tu="object"==typeof document&&document.all,eu=void 0===tu&&void 0!==tu?function(t){return"function"==typeof t||t===tu}:function(t){return"function"==typeof t},nu=eu,iu=function(t){return"object"==typeof t?null!==t:nu(t)},ru=bl,ou=eu,su=function(t,e){return arguments.length<2?(n=ru[t],ou(n)?n:void 0):ru[t]&&ru[t][e];var n},au=zl({}.isPrototypeOf),cu=bl.navigator,lu=cu&&cu.userAgent,uu=bl,pu=lu?String(lu):"",hu=uu.process,du=uu.Deno,fu=hu&&hu.versions||du&&du.version,mu=fu&&fu.v8;mu&&(Ml=(Pl=mu.split("."))[0]>0&&Pl[0]<4?1:+(Pl[0]+Pl[1])),!Ml&&pu&&(!(Pl=pu.match(/Edge\/(\d+)/))||Pl[1]>=74)&&(Pl=pu.match(/Chrome\/(\d+)/))&&(Ml=+Pl[1]);var gu=Ml,yu=kl,bu=bl.String,vu=!!Object.getOwnPropertySymbols&&!yu((function(){var t=Symbol("symbol detection");return!bu(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gu&&gu<41})),ku=vu&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wu=su,xu=eu,_u=au,Tu=Object,Su=ku?function(t){return"symbol"==typeof t}:function(t){var e=wu("Symbol");return xu(e)&&_u(e.prototype,Tu(t))},Eu=String,Du=eu,Lu=function(t){try{return Eu(t)}catch(t){return"Object"}},Nu=TypeError,Pu=function(t){if(Du(t))return t;throw new Nu(Lu(t)+" is not a function")},Mu=Pu,ju=Hl,Cu=function(t,e){var n=t[e];return ju(n)?void 0:Mu(n)},Iu=Sl,Ou=eu,Au=iu,zu=TypeError,Ru={exports:{}},Uu=bl,$u=Object.defineProperty,Fu=function(t,e){try{$u(Uu,t,{value:e,configurable:!0,writable:!0})}catch(n){Uu[t]=e}return e},Vu=bl,qu=Fu,Bu="__core-js_shared__",Qu=Ru.exports=Vu[Bu]||qu(Bu,{});(Qu.versions||(Qu.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Gu=Ru.exports,Hu=function(t,e){return Gu[t]||(Gu[t]=e||{})},Yu=Jl,Zu=Object,Ju=function(t){return Zu(Yu(t))},Wu=zl({}.hasOwnProperty),Ku=Object.hasOwn||function(t,e){return Wu(Ju(t),e)},Xu=zl,tp=0,ep=Math.random(),np=Xu(1..toString),ip=function(t){return"Symbol("+(void 0===t?"":t)+")_"+np(++tp+ep,36)},rp=Hu,op=Ku,sp=ip,ap=vu,cp=ku,lp=bl.Symbol,up=rp("wks"),pp=cp?lp.for||lp:lp&&lp.withoutSetter||sp,hp=function(t){return op(up,t)||(up[t]=ap&&op(lp,t)?lp[t]:pp("Symbol."+t)),up[t]},dp=Sl,fp=iu,mp=Su,gp=Cu,yp=function(t,e){var n,i;if("string"===e&&Ou(n=t.toString)&&!Au(i=Iu(n,t)))return i;if(Ou(n=t.valueOf)&&!Au(i=Iu(n,t)))return i;if("string"!==e&&Ou(n=t.toString)&&!Au(i=Iu(n,t)))return i;throw new zu("Can't convert object to primitive value")},bp=TypeError,vp=hp("toPrimitive"),kp=function(t,e){if(!fp(t)||mp(t))return t;var n,i=gp(t,vp);if(i){if(void 0===e&&(e="default"),n=dp(i,t,e),!fp(n)||mp(n))return n;throw new bp("Can't convert object to primitive value")}return void 0===e&&(e="number"),yp(t,e)},wp=Su,xp=function(t){var e=kp(t,"string");return wp(e)?e:e+""},_p=iu,Tp=bl.document,Sp=_p(Tp)&&_p(Tp.createElement),Ep=function(t){return Sp?Tp.createElement(t):{}},Dp=!wl&&!kl((function(){return 7!==Object.defineProperty(Ep("div"),"a",{get:function(){return 7}}).a})),Lp=wl,Np=Sl,Pp=El,Mp=jl,jp=Xl,Cp=xp,Ip=Ku,Op=Dp,Ap=Object.getOwnPropertyDescriptor;vl.f=Lp?Ap:function(t,e){if(t=jp(t),e=Cp(e),Op)try{return Ap(t,e)}catch(t){}if(Ip(t,e))return Mp(!Np(Pp.f,t,e),t[e])};var zp={},Rp=wl&&kl((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Up=iu,$p=String,Fp=TypeError,Vp=function(t){if(Up(t))return t;throw new Fp($p(t)+" is not an object")},qp=wl,Bp=Dp,Qp=Rp,Gp=Vp,Hp=xp,Yp=TypeError,Zp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,Wp="enumerable",Kp="configurable",Xp="writable";zp.f=qp?Qp?function(t,e,n){if(Gp(t),e=Hp(e),Gp(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Xp in n&&!n[Xp]){var i=Jp(t,e);i&&i[Xp]&&(t[e]=n.value,n={configurable:Kp in n?n[Kp]:i[Kp],enumerable:Wp in n?n[Wp]:i[Wp],writable:!1})}return Zp(t,e,n)}:Zp:function(t,e,n){if(Gp(t),e=Hp(e),Gp(n),Bp)try{return Zp(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Yp("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var th=zp,eh=jl,nh=wl?function(t,e,n){return th.f(t,e,eh(1,n))}:function(t,e,n){return t[e]=n,t},ih={exports:{}},rh=wl,oh=Ku,sh=Function.prototype,ah=rh&&Object.getOwnPropertyDescriptor,ch=oh(sh,"name"),lh={EXISTS:ch,PROPER:ch&&"something"===function(){}.name,CONFIGURABLE:ch&&(!rh||rh&&ah(sh,"name").configurable)},uh=zl,ph=eu,hh=Ru.exports,dh=uh(Function.toString);ph(hh.inspectSource)||(hh.inspectSource=function(t){return dh(t)});var fh,mh,gh,yh=hh.inspectSource,bh=eu,vh=bl.WeakMap,kh=bh(vh)&&/native code/.test(String(vh)),wh=ip,xh=Hu("keys"),_h={},Th=kh,Sh=bl,Eh=iu,Dh=nh,Lh=Ku,Nh=Ru.exports,Ph=function(t){return xh[t]||(xh[t]=wh(t))},Mh=_h,jh="Object already initialized",Ch=Sh.TypeError,Ih=Sh.WeakMap;if(Th||Nh.state){var Oh=Nh.state||(Nh.state=new Ih);Oh.get=Oh.get,Oh.has=Oh.has,Oh.set=Oh.set,fh=function(t,e){if(Oh.has(t))throw new Ch(jh);return e.facade=t,Oh.set(t,e),e},mh=function(t){return Oh.get(t)||{}},gh=function(t){return Oh.has(t)}}else{var Ah=Ph("state");Mh[Ah]=!0,fh=function(t,e){if(Lh(t,Ah))throw new Ch(jh);return e.facade=t,Dh(t,Ah,e),e},mh=function(t){return Lh(t,Ah)?t[Ah]:{}},gh=function(t){return Lh(t,Ah)}}var zh={set:fh,get:mh,has:gh,enforce:function(t){return gh(t)?mh(t):fh(t,{})},getterFor:function(t){return function(e){var n;if(!Eh(e)||(n=mh(e)).type!==t)throw new Ch("Incompatible receiver, "+t+" required");return n}}},Rh=zl,Uh=kl,$h=eu,Fh=Ku,Vh=wl,qh=lh.CONFIGURABLE,Bh=yh,Qh=zh.enforce,Gh=zh.get,Hh=String,Yh=Object.defineProperty,Zh=Rh("".slice),Jh=Rh("".replace),Wh=Rh([].join),Kh=Vh&&!Uh((function(){return 8!==Yh((function(){}),"length",{value:8}).length})),Xh=String(String).split("String"),td=ih.exports=function(t,e,n){"Symbol("===Zh(Hh(e),0,7)&&(e="["+Jh(Hh(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Fh(t,"name")||qh&&t.name!==e)&&(Vh?Yh(t,"name",{value:e,configurable:!0}):t.name=e),Kh&&n&&Fh(n,"arity")&&t.length!==n.arity&&Yh(t,"length",{value:n.arity});try{n&&Fh(n,"constructor")&&n.constructor?Vh&&Yh(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Qh(t);return Fh(i,"source")||(i.source=Wh(Xh,"string"==typeof e?e:"")),t};Function.prototype.toString=td((function(){return $h(this)&&Gh(this).source||Bh(this)}),"toString");var ed=eu,nd=zp,id=ih.exports,rd=Fu,od={},sd=Math.ceil,ad=Math.floor,cd=Math.trunc||function(t){var e=+t;return(e>0?ad:sd)(e)},ld=cd,ud=function(t){var e=+t;return e!=e||0===e?0:ld(e)},pd=ud,hd=Math.max,dd=Math.min,fd=ud,md=Math.min,gd=function(t){var e=fd(t);return e>0?md(e,9007199254740991):0},yd=Xl,bd=function(t,e){var n=pd(t);return n<0?hd(n+e,0):dd(n,e)},vd=function(t){return gd(t.length)},kd=function(t){return function(e,n,i){var r=yd(e),o=vd(r);if(0===o)return!t&&-1;var s,a=bd(i,o);if(t&&n!=n){for(;o>a;)if((s=r[a++])!=s)return!0}else for(;o>a;a++)if((t||a in r)&&r[a]===n)return t||a||0;return!t&&-1}},wd={includes:kd(!0),indexOf:kd(!1)},xd=Ku,_d=Xl,Td=wd.indexOf,Sd=_h,Ed=zl([].push),Dd=function(t,e){var n,i=_d(t),r=0,o=[];for(n in i)!xd(Sd,n)&&xd(i,n)&&Ed(o,n);for(;e.length>r;)xd(i,n=e[r++])&&(~Td(o,n)||Ed(o,n));return o},Ld=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");od.f=Object.getOwnPropertyNames||function(t){return Dd(t,Ld)};var Nd={};Nd.f=Object.getOwnPropertySymbols;var Pd=su,Md=od,jd=Nd,Cd=Vp,Id=zl([].concat),Od=Pd("Reflect","ownKeys")||function(t){var e=Md.f(Cd(t)),n=jd.f;return n?Id(e,n(t)):e},Ad=Ku,zd=Od,Rd=vl,Ud=zp,$d=kl,Fd=eu,Vd=/#|\.prototype\./,qd=function(t,e){var n=Qd[Bd(t)];return n===Hd||n!==Gd&&(Fd(e)?$d(e):!!e)},Bd=qd.normalize=function(t){return String(t).replace(Vd,".").toLowerCase()},Qd=qd.data={},Gd=qd.NATIVE="N",Hd=qd.POLYFILL="P",Yd=qd,Zd=bl,Jd=vl.f,Wd=nh,Kd=function(t,e,n,i){i||(i={});var r=i.enumerable,o=void 0!==i.name?i.name:e;if(ed(n)&&id(n,o,i),i.global)r?t[e]=n:rd(e,n);else{try{i.unsafe?t[e]&&(r=!0):delete t[e]}catch(t){}r?t[e]=n:nd.f(t,e,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},Xd=Fu,tf=function(t,e,n){for(var i=zd(e),r=Ud.f,o=Rd.f,s=0;s1?arguments[1]:void 0);return!1!==Em(e,(function(t){if(!n(t,t,e))return!1}),!0)}});var Dm=_m,Lm=cf,Nm=Ff,Pm=sf.Set,Mm=sf.add;nf({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Lm(this),n=Dm(t,arguments.length>1?arguments[1]:void 0),i=new Pm;return Nm(e,(function(t){n(t,t,e)&&Mm(i,t)})),i}});var jm=_m,Cm=cf,Im=Ff;nf({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var e=Cm(this),n=jm(t,arguments.length>1?arguments[1]:void 0),i=Im(e,(function(t){if(n(t,t,e))return{value:t}}),!0);return i&&i.value}});var Om=cf,Am=Yf,zm=om,Rm=Ff,Um=Cf,$m=sf.Set,Fm=sf.add,Vm=sf.has,qm=Sl,Bm=Mf,Qm=function(t){var e=Om(this),n=zm(t),i=new $m;return Am(e)>n.size?Um(n.getIterator(),(function(t){Vm(e,t)&&Fm(i,t)})):Rm(e,(function(t){n.includes(t)&&Fm(i,t)})),i};nf({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return qm(Qm,this,Bm(t))}});var Gm=Sl,Hm=Vp,Ym=Cu,Zm=function(t,e,n){var i,r;Hm(t);try{if(!(i=Ym(t,"return"))){if("throw"===e)throw n;return n}i=Gm(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return Hm(i),n},Jm=cf,Wm=sf.has,Km=Yf,Xm=om,tg=Ff,eg=Cf,ng=Zm,ig=Sl,rg=Mf,og=function(t){var e=Jm(this),n=Xm(t);if(Km(e)<=n.size)return!1!==tg(e,(function(t){if(n.includes(t))return!1}),!0);var i=n.getIterator();return!1!==eg(i,(function(t){if(Wm(e,t))return ng(i,"normal",!1)}))};nf({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return ig(og,this,rg(t))}});var sg=cf,ag=Yf,cg=Ff,lg=om,ug=Sl,pg=Mf,hg=function(t){var e=sg(this),n=lg(t);return!(ag(e)>n.size)&&!1!==cg(e,(function(t){if(!n.includes(t))return!1}),!0)};nf({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return ug(hg,this,pg(t))}});var dg=cf,fg=sf.has,mg=Yf,gg=om,yg=Cf,bg=Zm,vg=Sl,kg=Mf,wg=function(t){var e=dg(this),n=gg(t);if(mg(e)1?arguments[1]:void 0),i=new Ig;return Cg(e,(function(t){Og(i,n(t,t,e))})),i}});var Ag=Pu,zg=cf,Rg=Ff,Ug=TypeError;nf({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=zg(this),n=arguments.length<2,i=n?void 0:arguments[1];if(Ag(t),Rg(e,(function(r){n?(n=!1,i=r):i=t(i,r,r,e)})),n)throw new Ug("Reduce of empty set with no initial value");return i}});var $g=_m,Fg=cf,Vg=Ff;nf({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var e=Fg(this),n=$g(t,arguments.length>1?arguments[1]:void 0);return!0===Vg(e,(function(t){if(n(t,t,e))return!0}),!0)}});var qg=cf,Bg=Qf,Qg=om,Gg=Cf,Hg=sf.add,Yg=sf.has,Zg=sf.remove,Jg=Sl,Wg=Mf,Kg=function(t){var e=qg(this),n=Qg(t).getIterator(),i=Bg(e);return Gg(n,(function(t){Yg(e,t)?Zg(i,t):Hg(i,t)})),i};nf({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return Jg(Kg,this,Wg(t))}});var Xg=cf,ty=sf.add,ey=Qf,ny=om,iy=Cf,ry=Sl,oy=Mf,sy=function(t){var e=Xg(this),n=ny(t).getIterator(),i=ey(e);return iy(n,(function(t){ty(i,t)})),i};nf({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return ry(sy,this,oy(t))}});class ay{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.vuelveAEmpezar=e,this.allNotifications=t,_.debug("this.allNotifications",this.allNotifications);const n=this.getViewed();this.notifications=this.allNotifications.filter((t=>!n.has(t.id)))}getVuelveAEmpezar(){return this.vuelveAEmpezar}reset(){this.resetViewed(),this.notifications=[...this.allNotifications],_.debug("this.notifications",this.notifications)}next(){let t=this.notifications.shift();return!t&&this.vuelveAEmpezar&&(this.reset(),t=this.notifications.shift()),t??null}hasItems(){return this.vuelveAEmpezar?this.allNotifications.length>0:this.notifications.length>0}registerShown(t){this.addToViewed(t.id)}addToViewed(t){const e=this.getViewed();e.add(t),window.sessionStorage.setItem("lvl",JSON.stringify(Array.from(e))),_.debug("addToViewed",t,JSON.stringify(Array.from(e)),this.getViewed())}resetViewed(){_.debug("vuelve a empezar"),window.sessionStorage.removeItem("lvl")}getViewed(){const t=window.sessionStorage.getItem("lvl");try{const e=t?new Set(JSON.parse(t)):new Set;return _.debug("getViewed",e),e}catch(e){return _.warn("explotó la sesión, arrancando de cero",t),new Set}}}class cy{constructor(t,e,n){this.config=e,this.containerFactory=new nl({config:this.config,emitter:n}),this.notificationsFactory=new d({config:this.config});const i=new gl({factory:t=>this.notificationsFactory.build({event:t})}),r=i.parse(t);this.strategy=new ay(r,"on"==Lr.getFlag("vuelve-a-empezar"))}getCurrentStrategy(){return this.strategy}next(){return this.strategy.next()}hasItems(){return this.strategy.hasItems()}registerShown(t){this.strategy.registerShown(t)}getOrBuildContainer(t){return this.containerFactory.build({notification:t})}}class ly{constructor(t,e){this.running=!1,this.config=t,this.emitter=e,this.manager=new cy(this.config.getEvents(),this.config,e),this.waitingOnScoll=this.config.shouldStartOnOnScroll(),this.shownOnSession=0,this.elem=c("div",{id:"luker-widget-area"}),this.scrollListenerHelper=()=>this.startOnScroll()}async startOnScroll(){this.waitingOnScoll&&!this.running&&(this.waitingOnScoll=!1,document.removeEventListener("scroll",this.scrollListenerHelper),await i(250),await this.main.call(this))}async start(){if(this.emitPageView(),this.manager.hasItems())if(this.config.shouldStartOnOnScroll()&&this.waitingOnScoll)document.addEventListener("scroll",this.scrollListenerHelper,{once:!0});else{if(1!==this.config.getDebugMode()){const t=this.config.getInitialDelayAsSeconds();await i(t)}await this.main.call(this)}else _.debug("nada para mostrar")}emitPageView(){this.emitter.emit(v.pageview,new k(v.pageview))}async main(){this.running=!0,this.shownOnSession++;const t=this.manager.next();if(!t)return;const e=this.manager.getOrBuildContainer(t);this.elem.appendChild(e.getElement());const n=1e3*Math.max(1,e.getNotification().getDisplayTime());if(1===this.config.getDebugMode())return void e.show();this.manager.registerShown(t),await e.showFor(n);const r=1e3*this.config.getDelayBetween();await i(r),await this.main()}}class uy{constructor(t){this.cfg=t}subscribe(t){t.on(v.pageview,this.onPageview.bind(this)),t.on(b.click,this.onClick.bind(this)),t.on(b.show,this.onShow.bind(this)),t.on(b.mouseEnter,this.onHoverStart.bind(this)),t.on(b.mouseLeave,this.onHoverEnd.bind(this))}onPageview(t){}onClick(t){}onShow(t){}onHoverStart(t){}onHoverEnd(t){}}class py extends uy{onClick(t){t.domEvent?.preventDefault();const e=t.notification.click;e&&e.url&&(e.newTab?window.open(e.url,"_blank"):window.location.href=e.url)}}class hy extends uy{constructor(t){super(t),this._ga=window.ga,this.init()}get ga(){return this._ga}init(){this._ga&&this._ga("require","ec")}onShow(t){this._ga&&(this.addPromo(t.notification),this._ga("send","event",{eventCategory:"Internal Promotions",eventAction:"view",eventLabel:"Luker",transport:"beacon",nonInteraction:!0,hitCallback:()=>{}}))}onClick(t){this._ga&&(this.addPromo(t.notification),this._ga("ec:setAction","promo_click"),this._ga("send","event",{eventCategory:"Internal Promotions",eventAction:"click",eventLabel:"Luker",transport:"beacon",nonInteraction:!1,hitCallback:()=>{}}))}addPromo(t){this._ga&&this._ga("ec:addPromo",{name:"Luker",creative:"ultimas_ventas"})}}class dy extends uy{constructor(t,e){super(t),this._ga=window.ga,this.init(),this.GARollupCode=e}get ga(){return this._ga}init(){this._ga&&(this._ga("create",this.GARollupCode,{name:"LukerRollUp",cookieDomain:"none"}),this._ga("LukerRollUp.set","dimension1",this.cfg.getCID()),ga("LukerRollUp.require","ec"))}onShow(t){this._ga&&(this.addPromo(t.notification),this._ga("LukerRollUp.send","event",{eventCategory:"Internal Promotions",eventAction:"view",eventLabel:"Luker",transport:"beacon",nonInteraction:!0}))}onClick(t){this._ga&&(this.addPromo(t.notification),this._ga("LukerRollUp.ec:setAction","promo_click"),this._ga("LukerRollUp.send","event",{eventCategory:"Internal Promotions",eventAction:"click",eventLabel:"Luker",transport:"beacon",nonInteraction:!1}))}addPromo(t){this._ga&&this._ga("LukerRollUp.ec:addPromo",{name:"Luker",creative:"ultimas_ventas"})}}let fy=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach((t=>t(...e)))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter((t=>t!==e))}});class my{constructor(t){this.elem=t}render(t){this.elem.innerHTML="",t.verbose&&_.log("Dibujando preview con ",t);const e=fy(),n=new Zc({config:t.config,features:{...Yc,...t.features}}),i=new d({config:n}),r=new nl({config:n,emitter:e}),o=i.build({event:{...t.evento}});if(!o)return;const s=r.build({notification:o,isPreview:!0});this.elem.appendChild(s.getElement())}}function gy(){return Lr.getFlag("api-url")}function yy(t){return Gc()?.captureMessage("No esta definida la API_URL por ENV"),new URL(t,"https://luker-api.b-cdn.net/").toString()}class by{async fetch(t){const e=Gc(),n=this.getUrl(t);let i;_.debug(gy(),n);try{const t=this.getHeaders(),r=await fetch(n,{headers:t});if(r.status>=400)return e?.withScope((t=>{t.setContext("fetch",{apiUrl:n,response:JSON.stringify(r)})})),null;i=this.getResult(r)}catch(t){return t instanceof TypeError||"on"==Lr.getFlag("mando-fetch-errors-sentry")&&e?.withScope((i=>{i.setContext("fetch",{url:n}),i.setTag("fetchError",!0),e?.captureException(t)})),null}return i}getHeaders(){return{}}getUrl(t){const e=o("sid",t),n=Gc();switch(gy()){case"cf":return`https://api.luker.io/${e}`;case"bunny":return`https://luker-api.b-cdn.net/${e}`;default:if(!process.env.API_URL)return yy(e);try{return new URL(e,process.env.API_URL).toString()}catch(t){return n?.captureException(t),yy(e)}}}async getResult(t){if(204===t.status)return null;const e=await t.json();return 200===t.status&&Array.isArray(e)&&0===e.length?null:e}}const vy="LK_LM";class ky{storeResponse(t,e){try{window.localStorage.setItem(vy,JSON.stringify({lastModified:t,result:e}))}catch(t){}}getStoredResponse(){let t=null;try{t=window.localStorage.getItem(vy)}catch(t){}return t?JSON.parse(t):null}clear(){try{window.localStorage.removeItem(vy)}catch(t){}}}class wy extends by{constructor(){super(),this.anterior=null,this.cache=new ky}async fetch(t){return this.anterior=this.cache.getStoredResponse(),super.fetch(t)}getHeaders(){const t=super.getHeaders();if(!this.anterior?.lastModified)return t;const e={...t,"If-Modified-Since":this.anterior.lastModified};return _.debug("mandando con header",e),e}async getResult(t){if(this.anterior?.result&&304===t.status)return _.debug("devolvió 304, así que usando la que tenía guardada",this.anterior?.result),this.anterior?.result;this.anterior=null,this.cache.clear();const e=await super.getResult(t),n=t.headers.get("last-modified");return e&&n&&this.cache.storeResponse(n,e),e}}class xy{constructor(t){let{destinations:e}=t;this.destinations=e}send(t){this.destinations.forEach((e=>{if(!e)return;let n;try{n=new URL("l.gif",e),n.search=t}catch(t){return}fetch(n.toString(),{method:"get",keepalive:!0,mode:"no-cors",credentials:"omit",cache:"no-store"})}))}}class _y extends uy{constructor(t){let{cfg:e,statDestinations:n}=t;super(e),this.statDestinations=n,this.initiated=!1,this.sender=new xy({destinations:this.statDestinations})}getDestinations(){return this.statDestinations}getSender(){return this.sender}trackPageview(t){const e=new URLSearchParams;e.append("d","p"),e.append("s",this.cfg.getSID()||""),e.append("v",qc()),this.sender.send(e.toString())}trackNotification(t){const e=new URLSearchParams;if(-1==[b.show,b.click].indexOf(t.type))return;e.append("d","n");const n=this.encodeDimensionAndType(t.type);n&&e.append("e",n),e.append("i",t.notification.id.toString()),e.append("t",t.notification.type),e.append("s",this.cfg.getSID()||""),e.append("v",qc()),this.sender.send(e.toString())}encodeDimensionAndType(t){switch(t){case b.show:return"s";case b.click:return"c";default:return null}}onPageview(t){this.trackPageview(t)}onShow(t){this.trackNotification(t)}onClick(t){this.trackNotification(t)}}const Ty=function(){const t=process.env.SENTRY_ENABLED;return!(!t||""==t||"false"===t)}()?Gc():void 0;class Sy{constructor(){this.version=qc(),this.subscribers=[],this.gaRollupCode=process.env.ROLLUP_GA,this.element=void 0,this.emitter=fy(),this.emitter.emit("constructed")}resetSS(){try{window.sessionStorage.setItem("lvl",JSON.stringify([]))}catch(t){}}triggerManualError(t){Ty?.captureException(t)}triggerTestError(){try{throw new Error("Test Captured Error Sentry")}catch(t){Ty?.configureScope((t=>{t.setTag("hola","mundo")})),Ty?.captureException(t)}}triggerUncaughtTestError(){throw new Error("Test Uncaught Error Sentry")}triggerSentryMessage(){Ty?.captureMessage("Test Message Sentry")}getEmitter(){return this.emitter}getSuscribers(){return Array.from(this.subscribers)}setLogLevelDebug(){_.setLevel("debug")}setLogLevel(t){_.setLevel(t)}disableLog(){_.disableAll()}crearPreview(t){return new my(t)}async init(t){"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&_.debug(`Luker v${this.version} inicializado`);try{if(!window.localStorage)return Promise.reject("no soporta localStorage")}catch(t){return Promise.reject("no soporta localStorage")}if(this.ui=fl(),this.SID=t.SID,this.SID){try{await Lr.init({uid:this.ui.getUID(),SID:this.SID})}catch(t){"symbol"==typeof t&&t===Symbol.for("timeout")||Gc()?.captureException(t)}if(Ty?.setContext("sid",{sid:this.SID}),this.element=t.element,!(document?.location?.href||"").includes("/account"))try{this.register();let e=t.response;if(e||(e=await(new wy).fetch(this.SID)),!e)return;await this.boot(e,t),await this.mount()}catch(t){Ty?.captureException(t)}}else console.error("No se puede inicializar sin el SID")}register(){}boot(t,e){_.debug(t);const n=Zc.initFromResponse(t);return this.engine=new ly(n,this.emitter),this.subscribers.push(new py(n)),n.isGAEnabled()&&this.subscribers.push(new hy(n)),n.isGaRollUpEnabled()&&(this.gaRollupCode?this.subscribers.push(new dy(n,this.gaRollupCode)):Ty?.captureMessage("No hay un ROLLUP_GA asignado")),this.subscribers.push(function(t){let{cfg:e}=t;const n=[];return process.env.STATS_URL&&n.push(process.env.STATS_URL),new _y({cfg:e,statDestinations:n})}({cfg:n})),this.subscribers.forEach((t=>{t.subscribe(this.emitter)})),this.engine.start(),Promise.resolve()}mount(){return this.engine&&this.engine.elem?(this.element&&(this.element.innerHTML=""),Promise.resolve((this.element??document.body).appendChild(this.engine.elem))):Promise.reject(new Error("motor"))}}!function(t){try{window.localStorage}catch(t){return}if("Luker"in window)return void console.log("Luker está instalado más de una vez");const e=window?.LS?.store?.id?.toString();if(!e)return void console.log("No se pudo detectar el store id. ¿Seguro que está instalado en una Tienda Nube?");const n=new Sy;window.Luker=n,window.Luker.init({SID:e,response:t}).then((()=>{console.log(`Luker(v${n.version}) inicializado`)}))}()}();