parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c0&&n.push(r)}var s=o.map(function(o){return"string"==typeof o?o:JSON.stringify(o)});return n.push.apply(n,s),n.join(" ")},r=function(){window.console.legacyLog=window.console.log,window.console.legacyWarn=window.console.warn,window.console.legacyError=window.console.error,window.console.legacyInfo=window.console.info,window.console.log=function(){for(var o,r=[],s=0;s0&&o[o.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)})}}function o(t){return i.apply(this,arguments)}function i(){return(i=n(e().mark(function t(r){var n,o,i,c,u,s,l,f,h,p,d,g;return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a(r),!window.COMPUTED||!window.COMPUTED.constraint){t.next=7;break}if(!(o=window.COMPUTED.constraint[n])){t.next=7;break}return r.style.fontSize=o,console.log("%c 🛠 Constraining element ".concat(n," - loaded ").concat(o," from cache %c"),"background: #008cbc; padding: 1px; border-radius: 3px; color: #fff","background: transparent"),t.abrupt("return",!0);case 7:if(console.log("%c 🛠 Constraining element ".concat(n," %c"),"background: #008cbc; padding: 1px; border-radius: 3px; color: #fff","background: transparent"),i=parseInt(window.getComputedStyle(r,null).getPropertyValue("font-size")),c=parseInt(r.dataset.constraintHeight),u=r.offsetHeight,s=r.dataset.iterations?parseInt(r.dataset.iterations):50,l=r.dataset.step?parseFloat(r.dataset.step):.5,f=r.dataset.pause?parseFloat(r.dataset.pause):20,s>100&&(console.log("🛠 Too many iterations, setting to 100"),s=100),s<2&&(console.log("🛠 Too little iterations, setting to 2"),s=2),l>20&&(console.log("🛠 Too large step, setting to 100"),l=20),l<.1&&(console.log("🛠 Too small step, setting to 0.1"),l=.1),f>200&&(console.log("🛠 Too many iterations, setting to 200 milliseconds"),f=200),f<10&&(console.log("🛠 Too small pause iterations, setting to 10 milliseconds"),f=10),!(u<=c)){t.next=23;break}return console.log("%c 🛠 Max height is ".concat(c,"px, current height is ").concat(u,"px, no need to downsize content %c"),"background: #008cbc; padding: 1px; border-radius: 3px; color: #fff","background: transparent"),t.abrupt("return",!1);case 23:h=!1,p=!1,d=e().mark(function t(n){return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!h&&!p){t.next=2;break}return t.abrupt("return","break");case 2:return t.next=4,new Promise(function(t){var e=i-l*n;e<5&&(p=!0,t()),r.style.fontSize="".concat(e,"px"),setTimeout(function(){var n=r.offsetHeight;n<=c&&(console.log("%c ✅ Reduced font-size by ".concat((i-e).toFixed(1),"px to ").concat(e,"px, height of the element is now ").concat(n,", max-height is ").concat(c," %c"),"background: #008cbc; padding: 1px; border-radius: 3px; color: #fff","background: transparent"),h=!0),t()},f)});case 4:case"end":return t.stop()}},t)}),g=1;case 27:if(!(g1));o++);if(1==n)return e.unshift('id("'+t.getAttribute("id")+'")'),e.join("/");e.unshift(t.localName.toLowerCase()+'[@id="'+t.getAttribute("id")+'"]')}else if(t.hasAttribute("class"))e.unshift(t.localName.toLowerCase()+'[@class="'+t.getAttribute("class")+'"]');else{var i=void 0,a=void 0;for(i=1,a=t.previousSibling;a;a=a.previousSibling)a.localName==t.localName&&i++;e.unshift(t.localName.toLowerCase()+"["+i+"]")}return e.length?"/"+e.join("/"):null}function c(t){return(new XPathEvaluator).evaluate(t,document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o; },{}],"4dm5":[function(require,module,exports) { "use strict";function t(t,a){var e,i,l,s,n=document.querySelector("main"),o=parseFloat(n.getAttribute("data-min-ratio")),c=parseFloat(n.getAttribute("data-max-ratio")),h=parseInt(n.getAttribute("data-min-width")),r=parseInt(n.getAttribute("data-max-width")),g=window.getComputedStyle(n,null),m=parseInt(g.getPropertyValue("width"));(e=isNaN(o)?1:o<=.01?1:o)>(i=isNaN(c)?1:c>100?1:c)&&console.warn("[imagelance] Min-Ratio is larger than Max-Ratio!"),l=isNaN(h)?m:h>m?m:h,s=isNaN(r)?m:rw?(d=w,u=p):(d=p,u=w),au&&console.warn("[imagelance] Custom height ".concat(a," is larger than minHeight ").concat(u)),u===d)console.log("[imagelance] Height is constant, not applying height-[s|m|l|xl] class on
");else{var x=(a-d)/(u-d),N=0===x?1:Math.ceil(4*x);n.classList.remove("height-s","height-m","height-l","height-xl");n.classList.add("height-".concat([null,"s","m","l","xl"][N]))}if(s===l)console.log("[imagelance] Width is constant, not applying width-[s|m|l|xl] class on
");else{var v=(t-l)/(s-l),M=0===v?1:Math.ceil(4*v);n.classList.remove("width-s","width-m","width-l","width-xl");n.classList.add("width-".concat([null,"s","m","l","xl"][M]))}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t; },{}],"MSR6":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var e=t(require("./setBreakpointClass"));function t(e){return e&&e.__esModule?e:{default:e}}function n(t){var n=parseInt(t._custom_width),a=parseInt(t._custom_height);if(!n&&!a){var i=document.querySelector("main"),l=window.getComputedStyle(i,null),o=parseInt(l.getPropertyValue("width")),c=parseInt(l.getPropertyValue("height"));return(0,e.default)(o,c),!1}console.log('[imagelance Visual Client] Applying custom dimensions "'.concat(n,'px" x "').concat(a,'px"'));var r=document.querySelector("main"),s=document.querySelector("main > section[data-scaler]");if(!s)return console.warn("[imagelance]
neobsahuje přímÜ element
"),!1;var u,g=window.getComputedStyle(r,null),d=parseInt(g.getPropertyValue("width")),p=parseInt(g.getPropertyValue("height")),h=d/p,m=n/a;if(console.log('[imagelance Visual Client] Initial ratio: "'.concat(h,'", current ratio: "').concat(m,'"')),pm||p>a&&h