@ppg_pl/tinting 0.0.5 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-0a139db0.js → index-b6962659.js} +51 -4
- package/dist/cjs/index-b6962659.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/modal-header_9.cjs.entry.js +165 -41
- package/dist/cjs/modal-header_9.cjs.entry.js.map +1 -1
- package/dist/cjs/tinting.cjs.js +2 -2
- package/dist/collection/components/colorbox/index.js +18 -1
- package/dist/collection/components/colorbox/index.js.map +1 -1
- package/dist/collection/components/colorinfo/index.js +128 -1
- package/dist/collection/components/colorinfo/index.js.map +1 -1
- package/dist/collection/components/component/index.js +64 -1
- package/dist/collection/components/component/index.js.map +1 -1
- package/dist/collection/components/modal/index.css +176 -1
- package/dist/collection/components/modal/index.js +50 -2
- package/dist/collection/components/modal/index.js.map +1 -1
- package/dist/collection/components/slider/index.css +24 -6
- package/dist/collection/components/slider/index.js +32 -21
- package/dist/collection/components/slider/index.js.map +1 -1
- package/dist/collection/types.js.map +1 -1
- package/dist/collection/utils/index.js +17 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/components/index10.js +4934 -3598
- package/dist/components/index10.js.map +1 -1
- package/dist/components/index11.js +3989 -0
- package/dist/components/index11.js.map +1 -0
- package/dist/components/index4.js +2 -13
- package/dist/components/index4.js.map +1 -1
- package/dist/components/index6.js +28 -27
- package/dist/components/index6.js.map +1 -1
- package/dist/components/index7.js +9 -53
- package/dist/components/index7.js.map +1 -1
- package/dist/components/index8.js +57 -52
- package/dist/components/index8.js.map +1 -1
- package/dist/components/index9.js +124 -5272
- package/dist/components/index9.js.map +1 -1
- package/dist/components/my-backdrop.js +1 -1
- package/dist/components/my-colorbox.js +1 -1
- package/dist/components/my-colorinfo.js +1 -1
- package/dist/components/my-component.js +18 -7
- package/dist/components/my-component.js.map +1 -1
- package/dist/components/my-modal.js +1 -1
- package/dist/components/my-slider.js +1 -1
- package/dist/esm/{index-f3be6531.js → index-cb79645d.js} +51 -4
- package/dist/esm/index-cb79645d.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/modal-header_9.entry.js +165 -41
- package/dist/esm/modal-header_9.entry.js.map +1 -1
- package/dist/esm/tinting.js +3 -3
- package/dist/tinting/p-2730a042.entry.js +15 -0
- package/dist/tinting/p-2730a042.entry.js.map +1 -0
- package/dist/tinting/p-5b9dc044.js +3 -0
- package/dist/tinting/p-5b9dc044.js.map +1 -0
- package/dist/tinting/tinting.esm.js +1 -1
- package/dist/tinting/tinting.esm.js.map +1 -1
- package/dist/types/components/colorbox/index.d.ts +3 -0
- package/dist/types/components/colorinfo/index.d.ts +17 -1
- package/dist/types/components/component/index.d.ts +8 -0
- package/dist/types/components/modal/index.d.ts +6 -1
- package/dist/types/components.d.ts +16 -2
- package/dist/types/types.d.ts +4 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/package.json +3 -2
- package/www/build/p-2730a042.entry.js +15 -0
- package/www/build/p-2730a042.entry.js.map +1 -0
- package/www/build/p-5b9dc044.js +3 -0
- package/www/build/p-5b9dc044.js.map +1 -0
- package/www/build/tinting.esm.js +1 -1
- package/www/build/tinting.esm.js.map +1 -1
- package/www/index.html +76 -12
- package/dist/cjs/index-0a139db0.js.map +0 -1
- package/dist/esm/index-f3be6531.js.map +0 -1
- package/dist/tinting/p-398633de.entry.js +0 -15
- package/dist/tinting/p-398633de.entry.js.map +0 -1
- package/dist/tinting/p-b135c76f.js +0 -3
- package/dist/tinting/p-b135c76f.js.map +0 -1
- package/www/build/p-398633de.entry.js +0 -15
- package/www/build/p-398633de.entry.js.map +0 -1
- package/www/build/p-b135c76f.js +0 -3
- package/www/build/p-b135c76f.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{r as e,c as t,h as r,g as i,a as n}from"./p-5b9dc044.js";var o=TypeError;var s=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function a(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:true,get:function(){return e[r]}})}));return t}const l={};const c=Object.freeze({__proto__:null,default:l});const f=a(c);var u=typeof Map==="function"&&Map.prototype;var d=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var p=u&&d&&typeof d.get==="function"?d.get:null;var h=u&&Map.prototype.forEach;var m=typeof Set==="function"&&Set.prototype;var b=Object.getOwnPropertyDescriptor&&m?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var y=m&&b&&typeof b.get==="function"?b.get:null;var w=m&&Set.prototype.forEach;var g=typeof WeakMap==="function"&&WeakMap.prototype;var v=g?WeakMap.prototype.has:null;var x=typeof WeakSet==="function"&&WeakSet.prototype;var A=x?WeakSet.prototype.has:null;var _=typeof WeakRef==="function"&&WeakRef.prototype;var k=_?WeakRef.prototype.deref:null;var S=Boolean.prototype.valueOf;var j=Object.prototype.toString;var E=Function.prototype.toString;var M=String.prototype.match;var C=String.prototype.slice;var O=String.prototype.replace;var $=String.prototype.toUpperCase;var P=String.prototype.toLowerCase;var I=RegExp.prototype.test;var B=Array.prototype.concat;var z=Array.prototype.join;var T=Array.prototype.slice;var R=Math.floor;var F=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var N=Object.getOwnPropertySymbols;var G=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var L=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var D=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L?"object":"symbol")?Symbol.toStringTag:null;var Y=Object.prototype.propertyIsEnumerable;var W=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function U(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||I.call(/e/,t)){return t}var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var i=e<0?-R(-e):R(e);if(i!==e){var n=String(i);var o=C.call(t,n.length+1);return O.call(n,r,"$&_")+"."+O.call(O.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(t,r,"$&_")}var H=f.custom;var q=ae(H)?H:null;var Z={__proto__:null,double:'"',single:"'"};var V={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};var Q=function e(t,r,i,n){var o=r||{};if(fe(o,"quoteStyle")&&!fe(Z,o.quoteStyle)){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(fe(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var a=fe(o,"customInspect")?o.customInspect:true;if(typeof a!=="boolean"&&a!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(fe(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(fe(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var l=o.numericSeparator;if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(typeof t==="boolean"){return t?"true":"false"}if(typeof t==="string"){return ve(t,o)}if(typeof t==="number"){if(t===0){return Infinity/t>0?"0":"-0"}var c=String(t);return l?U(t,c):c}if(typeof t==="bigint"){var u=String(t)+"n";return l?U(t,u):u}var d=typeof o.depth==="undefined"?5:o.depth;if(typeof i==="undefined"){i=0}if(i>=d&&d>0&&typeof t==="object"){return ee(t)?"[Array]":"[Object]"}var m=je(o,i);if(typeof n==="undefined"){n=[]}else if(pe(n,t)>=0){return"[Circular]"}function b(t,r,s){if(r){n=T.call(n);n.push(r)}if(s){var a={depth:o.depth};if(fe(o,"quoteStyle")){a.quoteStyle=o.quoteStyle}return e(t,a,i+1,n)}return e(t,o,i+1,n)}if(typeof t==="function"&&!re(t)){var g=de(t);var v=Me(t,b);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+z.call(v,", ")+" }":"")}if(ae(t)){var x=L?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(t);return typeof t==="object"&&!L?Ae(x):x}if(ge(t)){var A="<"+P.call(String(t.nodeName));var _=t.attributes||[];for(var k=0;k<_.length;k++){A+=" "+_[k].name+"="+K(X(_[k].value),"double",o)}A+=">";if(t.childNodes&&t.childNodes.length){A+="..."}A+="</"+P.call(String(t.nodeName))+">";return A}if(ee(t)){if(t.length===0){return"[]"}var j=Me(t,b);if(m&&!Se(j)){return"["+Ee(j,m)+"]"}return"[ "+z.call(j,", ")+" ]"}if(ie(t)){var E=Me(t,b);if(!("cause"in Error.prototype)&&"cause"in t&&!Y.call(t,"cause")){return"{ ["+String(t)+"] "+z.call(B.call("[cause]: "+b(t.cause),E),", ")+" }"}if(E.length===0){return"["+String(t)+"]"}return"{ ["+String(t)+"] "+z.call(E,", ")+" }"}if(typeof t==="object"&&a){if(q&&typeof t[q]==="function"&&f){return f(t,{depth:d-i})}else if(a!=="symbol"&&typeof t.inspect==="function"){return t.inspect()}}if(he(t)){var M=[];if(h){h.call(t,(function(e,r){M.push(b(r,t,true)+" => "+b(e,t))}))}return ke("Map",p.call(t),M,m)}if(ye(t)){var $=[];if(w){w.call(t,(function(e){$.push(b(e,t))}))}return ke("Set",y.call(t),$,m)}if(me(t)){return _e("WeakMap")}if(we(t)){return _e("WeakSet")}if(be(t)){return _e("WeakRef")}if(oe(t)){return Ae(b(Number(t)))}if(le(t)){return Ae(b(F.call(t)))}if(se(t)){return Ae(S.call(t))}if(ne(t)){return Ae(b(String(t)))}if(typeof window!=="undefined"&&t===window){return"{ [object Window] }"}if(typeof globalThis!=="undefined"&&t===globalThis||typeof s!=="undefined"&&t===s){return"{ [object globalThis] }"}if(!te(t)&&!re(t)){var I=Me(t,b);var R=W?W(t)===Object.prototype:t instanceof Object||t.constructor===Object;var N=t instanceof Object?"":"null prototype";var H=!R&&D&&Object(t)===t&&D in t?C.call(ue(t),8,-1):N?"Object":"";var V=R||typeof t.constructor!=="function"?"":t.constructor.name?t.constructor.name+" ":"";var Q=V+(H||N?"["+z.call(B.call([],H||[],N||[]),": ")+"] ":"");if(I.length===0){return Q+"{}"}if(m){return Q+"{"+Ee(I,m)+"}"}return Q+"{ "+z.call(I,", ")+" }"}return String(t)};function K(e,t,r){var i=r.quoteStyle||t;var n=Z[i];return n+e+n}function X(e){return O.call(String(e),/"/g,""")}function J(e){return!D||!(typeof e==="object"&&(D in e||typeof e[D]!=="undefined"))}function ee(e){return ue(e)==="[object Array]"&&J(e)}function te(e){return ue(e)==="[object Date]"&&J(e)}function re(e){return ue(e)==="[object RegExp]"&&J(e)}function ie(e){return ue(e)==="[object Error]"&&J(e)}function ne(e){return ue(e)==="[object String]"&&J(e)}function oe(e){return ue(e)==="[object Number]"&&J(e)}function se(e){return ue(e)==="[object Boolean]"&&J(e)}function ae(e){if(L){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!G){return false}try{G.call(e);return true}catch(e){}return false}function le(e){if(!e||typeof e!=="object"||!F){return false}try{F.call(e);return true}catch(e){}return false}var ce=Object.prototype.hasOwnProperty||function(e){return e in this};function fe(e,t){return ce.call(e,t)}function ue(e){return j.call(e)}function de(e){if(e.name){return e.name}var t=M.call(E.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function pe(e,t){if(e.indexOf){return e.indexOf(t)}for(var r=0,i=e.length;r<i;r++){if(e[r]===t){return r}}return-1}function he(e){if(!p||!e||typeof e!=="object"){return false}try{p.call(e);try{y.call(e)}catch(e){return true}return e instanceof Map}catch(e){}return false}function me(e){if(!v||!e||typeof e!=="object"){return false}try{v.call(e,v);try{A.call(e,A)}catch(e){return true}return e instanceof WeakMap}catch(e){}return false}function be(e){if(!k||!e||typeof e!=="object"){return false}try{k.call(e);return true}catch(e){}return false}function ye(e){if(!y||!e||typeof e!=="object"){return false}try{y.call(e);try{p.call(e)}catch(e){return true}return e instanceof Set}catch(e){}return false}function we(e){if(!A||!e||typeof e!=="object"){return false}try{A.call(e,A);try{v.call(e,v)}catch(e){return true}return e instanceof WeakSet}catch(e){}return false}function ge(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function ve(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength;var i="... "+r+" more character"+(r>1?"s":"");return ve(C.call(e,0,t.maxStringLength),t)+i}var n=V[t.quoteStyle||"single"];n.lastIndex=0;var o=O.call(O.call(e,n,"\\$1"),/[\x00-\x1f]/g,xe);return K(o,"single",t)}function xe(e){var t=e.charCodeAt(0);var r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(r){return"\\"+r}return"\\x"+(t<16?"0":"")+$.call(t.toString(16))}function Ae(e){return"Object("+e+")"}function _e(e){return e+" { ? }"}function ke(e,t,r,i){var n=i?Ee(r,i):z.call(r,", ");return e+" ("+t+") {"+n+"}"}function Se(e){for(var t=0;t<e.length;t++){if(pe(e[t],"\n")>=0){return false}}return true}function je(e,t){var r;if(e.indent==="\t"){r="\t"}else if(typeof e.indent==="number"&&e.indent>0){r=z.call(Array(e.indent+1)," ")}else{return null}return{base:r,prev:z.call(Array(t+1),r)}}function Ee(e,t){if(e.length===0){return""}var r="\n"+t.prev+t.base;return r+z.call(e,","+r)+"\n"+t.prev}function Me(e,t){var r=ee(e);var i=[];if(r){i.length=e.length;for(var n=0;n<e.length;n++){i[n]=fe(e,n)?t(e[n],e):""}}var o=typeof N==="function"?N(e):[];var s;if(L){s={};for(var a=0;a<o.length;a++){s["$"+o[a]]=o[a]}}for(var l in e){if(!fe(e,l)){continue}if(r&&String(Number(l))===l&&l<e.length){continue}if(L&&s["$"+l]instanceof Symbol){continue}else if(I.call(/[^\w$]/,l)){i.push(t(l,e)+": "+t(e[l],e))}else{i.push(l+": "+t(e[l],e))}}if(typeof N==="function"){for(var c=0;c<o.length;c++){if(Y.call(e,o[c])){i.push("["+t(o[c])+"]: "+t(e[o[c]],e))}}}return i}var Ce=function(e,t,r){var i=e;var n;for(;(n=i.next)!=null;i=n){if(n.key===t){i.next=n.next;if(!r){n.next=e.next;e.next=n}return n}}};var Oe=function(e,t){if(!e){return void undefined}var r=Ce(e,t);return r&&r.value};var $e=function(e,t,r){var i=Ce(e,t);if(i){i.value=r}else{e.next={key:t,next:e.next,value:r}}};var Pe=function(e,t){if(!e){return false}return!!Ce(e,t)};var Ie=function(e,t){if(e){return Ce(e,t,true)}};var Be=function e(){var t;var r={assert:function(e){if(!r.has(e)){throw new o("Side channel does not contain "+Q(e))}},delete:function(e){var r=t&&t.next;var i=Ie(t,e);if(i&&r&&r===i){t=void undefined}return!!i},get:function(e){return Oe(t,e)},has:function(e){return Pe(t,e)},set:function(e,r){if(!t){t={next:void undefined}}$e(t,e,r)}};return r};var ze=Object;var Te=Error;var Re=EvalError;var Fe=RangeError;var Ne=ReferenceError;var Ge=SyntaxError;var Le=URIError;var De=Math.abs;var Ye=Math.floor;var We=Math.max;var Ue=Math.min;var He=Math.pow;var qe=Math.round;var Ze=Number.isNaN||function e(t){return t!==t};var Ve=function e(t){if(Ze(t)||t===0){return t}return t<0?-1:+1};var Qe=Object.getOwnPropertyDescriptor;var Ke=Qe;var Xe=Ke;var Je=Object.defineProperty||false;if(Je){try{Je({},"a",{value:1})}catch(e){Je=false}}var et=Je;var tt=function e(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var t={};var r=Symbol("test");var i=Object(r);if(typeof r==="string"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(i)!=="[object Symbol]"){return false}var n=42;t[r]=n;for(var o in t){return false}if(typeof Object.keys==="function"&&Object.keys(t).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(t).length!==0){return false}var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r){return false}if(!Object.prototype.propertyIsEnumerable.call(t,r)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==n||a.enumerable!==true){return false}}return true};var rt=typeof Symbol!=="undefined"&&Symbol;var it=function e(){if(typeof rt!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof rt("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return tt()};var nt=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null;var ot=ze.getPrototypeOf||null;var st="Function.prototype.bind called on incompatible ";var at=Object.prototype.toString;var lt=Math.max;var ct="[object Function]";var ft=function e(t,r){var i=[];for(var n=0;n<t.length;n+=1){i[n]=t[n]}for(var o=0;o<r.length;o+=1){i[o+t.length]=r[o]}return i};var ut=function e(t,r){var i=[];for(var n=r||0,o=0;n<t.length;n+=1,o+=1){i[o]=t[n]}return i};var dt=function(e,t){var r="";for(var i=0;i<e.length;i+=1){r+=e[i];if(i+1<e.length){r+=t}}return r};var pt=function e(t){var r=this;if(typeof r!=="function"||at.apply(r)!==ct){throw new TypeError(st+r)}var i=ut(arguments,1);var n;var o=function(){if(this instanceof n){var e=r.apply(this,ft(i,arguments));if(Object(e)===e){return e}return this}return r.apply(t,ft(i,arguments))};var s=lt(0,r.length-i.length);var a=[];for(var l=0;l<s;l++){a[l]="$"+l}n=Function("binder","return function ("+dt(a,",")+"){ return binder.apply(this,arguments); }")(o);if(r.prototype){var c=function e(){};c.prototype=r.prototype;n.prototype=new c;c.prototype=null}return n};var ht=Function.prototype.bind||pt;var mt=Function.prototype.call;var bt=Function.prototype.apply;var yt=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply;var wt=yt||ht.call(mt,bt);var gt=function e(t){if(t.length<1||typeof t[0]!=="function"){throw new o("a function is required")}return wt(ht,mt,t)};var vt;try{vt=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS"){throw e}}var xt=!!vt&&Xe&&Xe(Object.prototype,"__proto__");var At=Object;var _t=At.getPrototypeOf;var kt=xt&&typeof xt.get==="function"?gt([xt.get]):typeof _t==="function"?function e(t){return _t(t==null?t:At(t))}:false;var St=nt?function e(t){return nt(t)}:ot?function e(t){if(!t||typeof t!=="object"&&typeof t!=="function"){throw new TypeError("getProto: not an object")}return ot(t)}:kt?function e(t){return kt(t)}:null;var jt=Function.prototype.call;var Et=Object.prototype.hasOwnProperty;var Mt=ht.call(jt,Et);var Ct;var Ot=Function;var $t=function(e){try{return Ot('"use strict"; return ('+e+").constructor;")()}catch(e){}};var Pt=function(){throw new o};var It=Xe?function(){try{return Pt}catch(e){try{return Xe(arguments,"callee").get}catch(e){return Pt}}}():Pt;var Bt=it();var zt={};var Tt=typeof Uint8Array==="undefined"||!St?Ct:St(Uint8Array);var Rt={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?Ct:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?Ct:ArrayBuffer,"%ArrayIteratorPrototype%":Bt&&St?St([][Symbol.iterator]()):Ct,"%AsyncFromSyncIteratorPrototype%":Ct,"%AsyncFunction%":zt,"%AsyncGenerator%":zt,"%AsyncGeneratorFunction%":zt,"%AsyncIteratorPrototype%":zt,"%Atomics%":typeof Atomics==="undefined"?Ct:Atomics,"%BigInt%":typeof BigInt==="undefined"?Ct:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?Ct:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?Ct:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?Ct:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Te,"%eval%":eval,"%EvalError%":Re,"%Float16Array%":typeof Float16Array==="undefined"?Ct:Float16Array,"%Float32Array%":typeof Float32Array==="undefined"?Ct:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?Ct:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?Ct:FinalizationRegistry,"%Function%":Ot,"%GeneratorFunction%":zt,"%Int8Array%":typeof Int8Array==="undefined"?Ct:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?Ct:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?Ct:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bt&&St?St(St([][Symbol.iterator]())):Ct,"%JSON%":typeof JSON==="object"?JSON:Ct,"%Map%":typeof Map==="undefined"?Ct:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!Bt||!St?Ct:St((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ze,"%Object.getOwnPropertyDescriptor%":Xe,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?Ct:Promise,"%Proxy%":typeof Proxy==="undefined"?Ct:Proxy,"%RangeError%":Fe,"%ReferenceError%":Ne,"%Reflect%":typeof Reflect==="undefined"?Ct:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?Ct:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!Bt||!St?Ct:St((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?Ct:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bt&&St?St(""[Symbol.iterator]()):Ct,"%Symbol%":Bt?Symbol:Ct,"%SyntaxError%":Ge,"%ThrowTypeError%":It,"%TypedArray%":Tt,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array==="undefined"?Ct:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?Ct:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?Ct:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?Ct:Uint32Array,"%URIError%":Le,"%WeakMap%":typeof WeakMap==="undefined"?Ct:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?Ct:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?Ct:WeakSet,"%Function.prototype.call%":mt,"%Function.prototype.apply%":bt,"%Object.defineProperty%":et,"%Object.getPrototypeOf%":ot,"%Math.abs%":De,"%Math.floor%":Ye,"%Math.max%":We,"%Math.min%":Ue,"%Math.pow%":He,"%Math.round%":qe,"%Math.sign%":Ve,"%Reflect.getPrototypeOf%":nt};var Ft=function e(t){var r;if(t==="%AsyncFunction%"){r=$t("async function () {}")}else if(t==="%GeneratorFunction%"){r=$t("function* () {}")}else if(t==="%AsyncGeneratorFunction%"){r=$t("async function* () {}")}else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");if(i){r=i.prototype}}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");if(n&&St){r=St(n.prototype)}}Rt[t]=r;return r};var Nt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var Gt=ht.call(mt,Array.prototype.concat);var Lt=ht.call(bt,Array.prototype.splice);var Dt=ht.call(mt,String.prototype.replace);var Yt=ht.call(mt,String.prototype.slice);var Wt=ht.call(mt,RegExp.prototype.exec);var Ut=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var Ht=/\\(\\)?/g;var qt=function e(t){var r=Yt(t,0,1);var i=Yt(t,-1);if(r==="%"&&i!=="%"){throw new Ge("invalid intrinsic syntax, expected closing `%`")}else if(i==="%"&&r!=="%"){throw new Ge("invalid intrinsic syntax, expected opening `%`")}var n=[];Dt(t,Ut,(function(e,t,r,i){n[n.length]=r?Dt(i,Ht,"$1"):t||e}));return n};var Zt=function e(t,r){var i=t;var n;if(Mt(Nt,i)){n=Nt[i];i="%"+n[0]+"%"}if(Mt(Rt,i)){var s=Rt[i];if(s===zt){s=Ft(i)}if(typeof s==="undefined"&&!r){throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!")}return{alias:n,name:i,value:s}}throw new Ge("intrinsic "+t+" does not exist!")};var Vt=function e(t,r){if(typeof t!=="string"||t.length===0){throw new o("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof r!=="boolean"){throw new o('"allowMissing" argument must be a boolean')}if(Wt(/^%?[^%]*%?$/,t)===null){throw new Ge("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var i=qt(t);var n=i.length>0?i[0]:"";var s=Zt("%"+n+"%",r);var a=s.name;var l=s.value;var c=false;var f=s.alias;if(f){n=f[0];Lt(i,Gt([0,1],f))}for(var u=1,d=true;u<i.length;u+=1){var p=i[u];var h=Yt(p,0,1);var m=Yt(p,-1);if((h==='"'||h==="'"||h==="`"||(m==='"'||m==="'"||m==="`"))&&h!==m){throw new Ge("property names with quotes must have matching quotes")}if(p==="constructor"||!d){c=true}n+="."+p;a="%"+n+"%";if(Mt(Rt,a)){l=Rt[a]}else if(l!=null){if(!(p in l)){if(!r){throw new o("base intrinsic for "+t+" exists, but the property is not available.")}return void Ct}if(Xe&&u+1>=i.length){var b=Xe(l,p);d=!!b;if(d&&"get"in b&&!("originalValue"in b.get)){l=b.get}else{l=l[p]}}else{d=Mt(l,p);l=l[p]}if(d&&!c){Rt[a]=l}}}return l};var Qt=gt([Vt("%String.prototype.indexOf%")]);var Kt=function e(t,r){var i=Vt(t,!!r);if(typeof i==="function"&&Qt(t,".prototype.")>-1){return gt([i])}return i};var Xt=Vt("%Map%",true);var Jt=Kt("Map.prototype.get",true);var er=Kt("Map.prototype.set",true);var tr=Kt("Map.prototype.has",true);var rr=Kt("Map.prototype.delete",true);var ir=Kt("Map.prototype.size",true);var nr=!!Xt&&function e(){var t;var r={assert:function(e){if(!r.has(e)){throw new o("Side channel does not contain "+Q(e))}},delete:function(e){if(t){var r=rr(t,e);if(ir(t)===0){t=void undefined}return r}return false},get:function(e){if(t){return Jt(t,e)}},has:function(e){if(t){return tr(t,e)}return false},set:function(e,r){if(!t){t=new Xt}er(t,e,r)}};return r};var or=Vt("%WeakMap%",true);var sr=Kt("WeakMap.prototype.get",true);var ar=Kt("WeakMap.prototype.set",true);var lr=Kt("WeakMap.prototype.has",true);var cr=Kt("WeakMap.prototype.delete",true);var fr=or?function e(){var t;var r;var i={assert:function(e){if(!i.has(e)){throw new o("Side channel does not contain "+Q(e))}},delete:function(e){if(or&&e&&(typeof e==="object"||typeof e==="function")){if(t){return cr(t,e)}}else if(nr){if(r){return r["delete"](e)}}return false},get:function(e){if(or&&e&&(typeof e==="object"||typeof e==="function")){if(t){return sr(t,e)}}return r&&r.get(e)},has:function(e){if(or&&e&&(typeof e==="object"||typeof e==="function")){if(t){return lr(t,e)}}return!!r&&r.has(e)},set:function(e,i){if(or&&e&&(typeof e==="object"||typeof e==="function")){if(!t){t=new or}ar(t,e,i)}else if(nr){if(!r){r=nr()}r.set(e,i)}}};return i}:nr;var ur=fr||nr||Be;var dr=function e(){var t;var r={assert:function(e){if(!r.has(e)){throw new o("Side channel does not contain "+Q(e))}},delete:function(e){return!!t&&t["delete"](e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){if(!t){t=ur()}t.set(e,r)}};return r};var pr=String.prototype.replace;var hr=/%20/g;var mr={RFC1738:"RFC1738",RFC3986:"RFC3986"};var br={default:mr.RFC3986,formatters:{RFC1738:function(e){return pr.call(e,hr,"+")},RFC3986:function(e){return String(e)}},RFC1738:mr.RFC1738,RFC3986:mr.RFC3986};var yr=Object.prototype.hasOwnProperty;var wr=Array.isArray;var gr=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var vr=function e(t){while(t.length>1){var r=t.pop();var i=r.obj[r.prop];if(wr(i)){var n=[];for(var o=0;o<i.length;++o){if(typeof i[o]!=="undefined"){n.push(i[o])}}r.obj[r.prop]=n}}};var xr=function e(t,r){var i=r&&r.plainObjects?{__proto__:null}:{};for(var n=0;n<t.length;++n){if(typeof t[n]!=="undefined"){i[n]=t[n]}}return i};var Ar=function e(t,r,i){if(!r){return t}if(typeof r!=="object"&&typeof r!=="function"){if(wr(t)){t.push(r)}else if(t&&typeof t==="object"){if(i&&(i.plainObjects||i.allowPrototypes)||!yr.call(Object.prototype,r)){t[r]=true}}else{return[t,r]}return t}if(!t||typeof t!=="object"){return[t].concat(r)}var n=t;if(wr(t)&&!wr(r)){n=xr(t,i)}if(wr(t)&&wr(r)){r.forEach((function(r,n){if(yr.call(t,n)){var o=t[n];if(o&&typeof o==="object"&&r&&typeof r==="object"){t[n]=e(o,r,i)}else{t.push(r)}}else{t[n]=r}}));return t}return Object.keys(r).reduce((function(t,n){var o=r[n];if(yr.call(t,n)){t[n]=e(t[n],o,i)}else{t[n]=o}return t}),n)};var _r=function e(t,r){return Object.keys(r).reduce((function(e,t){e[t]=r[t];return e}),t)};var kr=function(e,t,r){var i=e.replace(/\+/g," ");if(r==="iso-8859-1"){return i.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(i)}catch(e){return i}};var Sr=1024;var jr=function e(t,r,i,n,o){if(t.length===0){return t}var s=t;if(typeof t==="symbol"){s=Symbol.prototype.toString.call(t)}else if(typeof t!=="string"){s=String(t)}if(i==="iso-8859-1"){return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<s.length;l+=Sr){var c=s.length>=Sr?s.slice(l,l+Sr):s;var f=[];for(var u=0;u<c.length;++u){var d=c.charCodeAt(u);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===br.RFC1738&&(d===40||d===41)){f[f.length]=c.charAt(u);continue}if(d<128){f[f.length]=gr[d];continue}if(d<2048){f[f.length]=gr[192|d>>6]+gr[128|d&63];continue}if(d<55296||d>=57344){f[f.length]=gr[224|d>>12]+gr[128|d>>6&63]+gr[128|d&63];continue}u+=1;d=65536+((d&1023)<<10|c.charCodeAt(u)&1023);f[f.length]=gr[240|d>>18]+gr[128|d>>12&63]+gr[128|d>>6&63]+gr[128|d&63]}a+=f.join("")}return a};var Er=function e(t){var r=[{obj:{o:t},prop:"o"}];var i=[];for(var n=0;n<r.length;++n){var o=r[n];var s=o.obj[o.prop];var a=Object.keys(s);for(var l=0;l<a.length;++l){var c=a[l];var f=s[c];if(typeof f==="object"&&f!==null&&i.indexOf(f)===-1){r.push({obj:s,prop:c});i.push(f)}}}vr(r);return t};var Mr=function e(t){return Object.prototype.toString.call(t)==="[object RegExp]"};var Cr=function e(t){if(!t||typeof t!=="object"){return false}return!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};var Or=function e(t,r){return[].concat(t,r)};var $r=function e(t,r){if(wr(t)){var i=[];for(var n=0;n<t.length;n+=1){i.push(r(t[n]))}return i}return r(t)};var Pr={arrayToObject:xr,assign:_r,combine:Or,compact:Er,decode:kr,encode:jr,isBuffer:Cr,isRegExp:Mr,maybeMap:$r,merge:Ar};var Ir=Object.prototype.hasOwnProperty;var Br={brackets:function e(t){return t+"[]"},comma:"comma",indices:function e(t,r){return t+"["+r+"]"},repeat:function e(t){return t}};var zr=Array.isArray;var Tr=Array.prototype.push;var Rr=function(e,t){Tr.apply(e,zr(t)?t:[t])};var Fr=Date.prototype.toISOString;var Nr=br["default"];var Gr={addQueryPrefix:false,allowDots:false,allowEmptyArrays:false,arrayFormat:"indices",charset:"utf-8",charsetSentinel:false,commaRoundTrip:false,delimiter:"&",encode:true,encodeDotInKeys:false,encoder:Pr.encode,encodeValuesOnly:false,filter:void undefined,format:Nr,formatter:br.formatters[Nr],indices:false,serializeDate:function e(t){return Fr.call(t)},skipNulls:false,strictNullHandling:false};var Lr=function e(t){return typeof t==="string"||typeof t==="number"||typeof t==="boolean"||typeof t==="symbol"||typeof t==="bigint"};var Dr={};var Yr=function e(t,r,i,n,o,s,a,l,c,f,u,d,p,h,m,b,y,w){var g=t;var v=w;var x=0;var A=false;while((v=v.get(Dr))!==void undefined&&!A){var _=v.get(t);x+=1;if(typeof _!=="undefined"){if(_===x){throw new RangeError("Cyclic object value")}else{A=true}}if(typeof v.get(Dr)==="undefined"){x=0}}if(typeof f==="function"){g=f(r,g)}else if(g instanceof Date){g=p(g)}else if(i==="comma"&&zr(g)){g=Pr.maybeMap(g,(function(e){if(e instanceof Date){return p(e)}return e}))}if(g===null){if(s){return c&&!b?c(r,Gr.encoder,y,"key",h):r}g=""}if(Lr(g)||Pr.isBuffer(g)){if(c){var k=b?r:c(r,Gr.encoder,y,"key",h);return[m(k)+"="+m(c(g,Gr.encoder,y,"value",h))]}return[m(r)+"="+m(String(g))]}var S=[];if(typeof g==="undefined"){return S}var j;if(i==="comma"&&zr(g)){if(b&&c){g=Pr.maybeMap(g,c)}j=[{value:g.length>0?g.join(",")||null:void undefined}]}else if(zr(f)){j=f}else{var E=Object.keys(g);j=u?E.sort(u):E}var M=l?String(r).replace(/\./g,"%2E"):String(r);var C=n&&zr(g)&&g.length===1?M+"[]":M;if(o&&zr(g)&&g.length===0){return C+"[]"}for(var O=0;O<j.length;++O){var $=j[O];var P=typeof $==="object"&&$&&typeof $.value!=="undefined"?$.value:g[$];if(a&&P===null){continue}var I=d&&l?String($).replace(/\./g,"%2E"):String($);var B=zr(g)?typeof i==="function"?i(C,I):C:C+(d?"."+I:"["+I+"]");w.set(t,x);var z=dr();z.set(Dr,w);Rr(S,e(P,B,i,n,o,s,a,l,i==="comma"&&b&&zr(g)?null:c,f,u,d,p,h,m,b,y,z))}return S};var Wr=function e(t){if(!t){return Gr}if(typeof t.allowEmptyArrays!=="undefined"&&typeof t.allowEmptyArrays!=="boolean"){throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided")}if(typeof t.encodeDotInKeys!=="undefined"&&typeof t.encodeDotInKeys!=="boolean"){throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided")}if(t.encoder!==null&&typeof t.encoder!=="undefined"&&typeof t.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var r=t.charset||Gr.charset;if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var i=br["default"];if(typeof t.format!=="undefined"){if(!Ir.call(br.formatters,t.format)){throw new TypeError("Unknown format option provided.")}i=t.format}var n=br.formatters[i];var o=Gr.filter;if(typeof t.filter==="function"||zr(t.filter)){o=t.filter}var s;if(t.arrayFormat in Br){s=t.arrayFormat}else if("indices"in t){s=t.indices?"indices":"repeat"}else{s=Gr.arrayFormat}if("commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var a=typeof t.allowDots==="undefined"?t.encodeDotInKeys===true?true:Gr.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix==="boolean"?t.addQueryPrefix:Gr.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays==="boolean"?!!t.allowEmptyArrays:Gr.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:Gr.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter==="undefined"?Gr.delimiter:t.delimiter,encode:typeof t.encode==="boolean"?t.encode:Gr.encode,encodeDotInKeys:typeof t.encodeDotInKeys==="boolean"?t.encodeDotInKeys:Gr.encodeDotInKeys,encoder:typeof t.encoder==="function"?t.encoder:Gr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly==="boolean"?t.encodeValuesOnly:Gr.encodeValuesOnly,filter:o,format:i,formatter:n,serializeDate:typeof t.serializeDate==="function"?t.serializeDate:Gr.serializeDate,skipNulls:typeof t.skipNulls==="boolean"?t.skipNulls:Gr.skipNulls,sort:typeof t.sort==="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:Gr.strictNullHandling}};var Ur=function(e,t){var r=e;var i=Wr(t);var n;var o;if(typeof i.filter==="function"){o=i.filter;r=o("",r)}else if(zr(i.filter)){o=i.filter;n=o}var s=[];if(typeof r!=="object"||r===null){return""}var a=Br[i.arrayFormat];var l=a==="comma"&&i.commaRoundTrip;if(!n){n=Object.keys(r)}if(i.sort){n.sort(i.sort)}var c=dr();for(var f=0;f<n.length;++f){var u=n[f];var d=r[u];if(i.skipNulls&&d===null){continue}Rr(s,Yr(d,u,a,l,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,c))}var p=s.join(i.delimiter);var h=i.addQueryPrefix===true?"?":"";if(i.charsetSentinel){if(i.charset==="iso-8859-1"){h+="utf8=%26%2310003%3B&"}else{h+="utf8=%E2%9C%93&"}}return p.length>0?h+p:""};var Hr=Object.prototype.hasOwnProperty;var qr=Array.isArray;var Zr={allowDots:false,allowEmptyArrays:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decodeDotInKeys:false,decoder:Pr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictDepth:false,strictNullHandling:false,throwOnLimitExceeded:false};var Vr=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var Qr=function(e,t,r){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit){throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.")}return e};var Kr="utf8=%26%2310003%3B";var Xr="utf8=%E2%9C%93";var Jr=function e(t,r){var i={__proto__:null};var n=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===Infinity?undefined:r.parameterLimit;var s=n.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&s.length>o){throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.")}var a=-1;var l;var c=r.charset;if(r.charsetSentinel){for(l=0;l<s.length;++l){if(s[l].indexOf("utf8=")===0){if(s[l]===Xr){c="utf-8"}else if(s[l]===Kr){c="iso-8859-1"}a=l;l=s.length}}}for(l=0;l<s.length;++l){if(l===a){continue}var f=s[l];var u=f.indexOf("]=");var d=u===-1?f.indexOf("="):u+1;var p;var h;if(d===-1){p=r.decoder(f,Zr.decoder,c,"key");h=r.strictNullHandling?null:""}else{p=r.decoder(f.slice(0,d),Zr.decoder,c,"key");h=Pr.maybeMap(Qr(f.slice(d+1),r,qr(i[p])?i[p].length:0),(function(e){return r.decoder(e,Zr.decoder,c,"value")}))}if(h&&r.interpretNumericEntities&&c==="iso-8859-1"){h=Vr(String(h))}if(f.indexOf("[]=")>-1){h=qr(h)?[h]:h}var m=Hr.call(i,p);if(m&&r.duplicates==="combine"){i[p]=Pr.combine(i[p],h)}else if(!m||r.duplicates==="last"){i[p]=h}}return i};var ei=function(e,t,r,i){var n=0;if(e.length>0&&e[e.length-1]==="[]"){var o=e.slice(0,-1).join("");n=Array.isArray(t)&&t[o]?t[o].length:0}var s=i?t:Qr(t,r,n);for(var a=e.length-1;a>=0;--a){var l;var c=e[a];if(c==="[]"&&r.parseArrays){l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Pr.combine([],s)}else{l=r.plainObjects?{__proto__:null}:{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c;var u=r.decodeDotInKeys?f.replace(/%2E/g,"."):f;var d=parseInt(u,10);if(!r.parseArrays&&u===""){l={0:s}}else if(!isNaN(d)&&c!==u&&String(d)===u&&d>=0&&(r.parseArrays&&d<=r.arrayLimit)){l=[];l[d]=s}else if(u!=="__proto__"){l[u]=s}}s=l}return s};var ti=function e(t,r,i,n){if(!t){return}var o=i.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;var s=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=i.depth>0&&s.exec(o);var c=l?o.slice(0,l.index):o;var f=[];if(c){if(!i.plainObjects&&Hr.call(Object.prototype,c)){if(!i.allowPrototypes){return}}f.push(c)}var u=0;while(i.depth>0&&(l=a.exec(o))!==null&&u<i.depth){u+=1;if(!i.plainObjects&&Hr.call(Object.prototype,l[1].slice(1,-1))){if(!i.allowPrototypes){return}}f.push(l[1])}if(l){if(i.strictDepth===true){throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true")}f.push("["+o.slice(l.index)+"]")}return ei(f,r,i,n)};var ri=function e(t){if(!t){return Zr}if(typeof t.allowEmptyArrays!=="undefined"&&typeof t.allowEmptyArrays!=="boolean"){throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided")}if(typeof t.decodeDotInKeys!=="undefined"&&typeof t.decodeDotInKeys!=="boolean"){throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided")}if(t.decoder!==null&&typeof t.decoder!=="undefined"&&typeof t.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}if(typeof t.throwOnLimitExceeded!=="undefined"&&typeof t.throwOnLimitExceeded!=="boolean"){throw new TypeError("`throwOnLimitExceeded` option must be a boolean")}var r=typeof t.charset==="undefined"?Zr.charset:t.charset;var i=typeof t.duplicates==="undefined"?Zr.duplicates:t.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last"){throw new TypeError("The duplicates option must be either combine, first, or last")}var n=typeof t.allowDots==="undefined"?t.decodeDotInKeys===true?true:Zr.allowDots:!!t.allowDots;return{allowDots:n,allowEmptyArrays:typeof t.allowEmptyArrays==="boolean"?!!t.allowEmptyArrays:Zr.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes==="boolean"?t.allowPrototypes:Zr.allowPrototypes,allowSparse:typeof t.allowSparse==="boolean"?t.allowSparse:Zr.allowSparse,arrayLimit:typeof t.arrayLimit==="number"?t.arrayLimit:Zr.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:Zr.charsetSentinel,comma:typeof t.comma==="boolean"?t.comma:Zr.comma,decodeDotInKeys:typeof t.decodeDotInKeys==="boolean"?t.decodeDotInKeys:Zr.decodeDotInKeys,decoder:typeof t.decoder==="function"?t.decoder:Zr.decoder,delimiter:typeof t.delimiter==="string"||Pr.isRegExp(t.delimiter)?t.delimiter:Zr.delimiter,depth:typeof t.depth==="number"||t.depth===false?+t.depth:Zr.depth,duplicates:i,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities==="boolean"?t.interpretNumericEntities:Zr.interpretNumericEntities,parameterLimit:typeof t.parameterLimit==="number"?t.parameterLimit:Zr.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects==="boolean"?t.plainObjects:Zr.plainObjects,strictDepth:typeof t.strictDepth==="boolean"?!!t.strictDepth:Zr.strictDepth,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:Zr.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded==="boolean"?t.throwOnLimitExceeded:false}};var ii=function(e,t){var r=ri(t);if(e===""||e===null||typeof e==="undefined"){return r.plainObjects?{__proto__:null}:{}}var i=typeof e==="string"?Jr(e,r):e;var n=r.plainObjects?{__proto__:null}:{};var o=Object.keys(i);for(var s=0;s<o.length;++s){var a=o[s];var l=ti(a,i[a],r,typeof e==="string");n=Pr.merge(n,l,r)}if(r.allowSparse===true){return n}return Pr.compact(n)};var ni={formats:br,parse:ii,stringify:Ur};const oi="https://color-selector.pl/tinting";const si="f3_Pwse3EwxFKucDNtPBq-6iBB30L6Gv";class ai{async getData(e){try{const t=await fetch(`${oi}/${e}`,{method:"GET",headers:{Authorization:`Bearer ${si}`,"Content-Type":"application/json"}});const r=await t.json();return r}catch(e){console.error(e)}}}const li=new ai;var ci=undefined&&undefined.__rest||function(e,t){var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0)r[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++){if(t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n]))r[i[n]]=e[i[n]]}return r};const fi=200;const ui=e=>{const{sortByHex:t}=e,r=ci(e,["sortByHex"]);return ni.stringify({fields:["*","Products.*","Samples.*"].join(","),filter:{_and:[...r.id?[{Products:{Product_id:{_eq:r.id}}}]:[],...r.sampleId?[{Samples:{Sample_id:{_eq:r.sampleId}}}]:[],...r.colorNumber?[{number:{_contains:r.colorNumber}}]:[],...r.colorName?[{name:{_icontains:r.colorName}}]:[],...r.colorFamily?[{colorFamily:{_eq:r.colorFamily}}]:[]]},sort:t==="desc"?"-hex":t==="asc"?"hex":undefined,meta:"*",page:r.page!==undefined?r.page:1,limit:r.colorName?200:fi},{encodeValuesOnly:true})};const di=async e=>{try{const t=ui(Object.assign(Object.assign({},e),{sortByHex:"desc"}));const r=await li.getData(`items/Color?${t}`);return(r===null||r===void 0?void 0:r.data)||[]}catch(e){console.error("Error fetching colors:",e);return[]}};const pi=(e,t)=>{var r,i;const n=(r=e===null||e===void 0?void 0:e.Products)===null||r===void 0?void 0:r.find((e=>e.Product_id===t));return(i=n===null||n===void 0?void 0:n.sort)!==null&&i!==void 0?i:Number.POSITIVE_INFINITY};const hi=async e=>{try{const{id:t}=e;const r=await li.getData(`items/Sample?${ui(Object.assign({},e))}`);const i=(r===null||r===void 0?void 0:r.data)||[];const n=[...i].sort(((e,r)=>pi(e,t)-pi(r,t)));return n}catch(e){console.error("Error fetching samples colors:",e);return[]}};const mi=async e=>{var t,r;try{const i=await li.getData(`items/Shop?filter[name][_eq]=${e.shopName}`);const n=(t=i===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t[0];if(!(n===null||n===void 0?void 0:n.id)){console.error("Shop not found");return null}const o=await li.getData(`items/Product?filter[name][_eq]=${e.productName}&fields=*,images.*,Shop.*,Category.*.*.*.*`);const s=(r=o===null||o===void 0?void 0:o.data)===null||r===void 0?void 0:r[0];const a=await hi({id:s.id,page:0});if(s&&s.Shop.some((e=>e.Shop_id===n.id))){return Object.assign(Object.assign({},s),{id:s.id,productSamples:a})}console.error("Product not found or does not belong to the shop");return null}catch(e){console.error("Error fetching product data:",e);return null}};const bi=async()=>{var e,t,r;try{const i=await li.getData(`fields/Color/colorFamily`);return((r=(t=(e=i===null||i===void 0?void 0:i.data)===null||e===void 0?void 0:e.meta)===null||t===void 0?void 0:t.options)===null||r===void 0?void 0:r.choices)||[]}catch(e){console.error("Error fetching color families:",e);return[]}};const yi=(e,t)=>Object.assign(Object.assign({},e),t);const wi='@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); .tinting-wrapper *{font-family:"Poppins", sans-serif}.my-modal__header{display:flex;justify-content:flex-start;flex-direction:column;margin-bottom:16px}@media (max-width: 905px){.my-modal__header{overflow-x:auto}}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}.my-modal__header .image-wrapper{display:flex;margin-bottom:17px}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper .modal-header__logo{max-width:400px;position:relative;max-height:130px;cursor:pointer}.my-modal__header .image-wrapper .modal-header__logo img{width:100%;height:100%;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper .modal-header__logo{max-width:200px}}.my-modal__header .my-modal__see-more{margin-bottom:16px;text-align:left}.my-modal__header .search-wrapper{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;gap:55px;align-items:center}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%;margin:0 auto;gap:21px}}@media (max-width: 768px){.my-modal__header .search-wrapper{flex-wrap:wrap}}.my-modal__header .search-wrapper .color-families{display:flex;gap:5px;flex-wrap:wrap;max-width:100%;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:#aaa transparent;flex-wrap:wrap}.my-modal__header .search-wrapper .color-families::-webkit-scrollbar{height:6px}.my-modal__header .search-wrapper .color-families::-webkit-scrollbar-thumb{background-color:#aaa;border-radius:3px}@media (max-width: 1024px){.my-modal__header .search-wrapper .color-families{flex-wrap:nowrap}}.my-modal__header .search-wrapper .color-families .color-family{flex:0 0 auto;width:125px;height:125px;display:flex;align-items:center;justify-content:center;color:#fff;position:relative;cursor:pointer;transition:transform 0.2s ease, box-shadow 0.2s ease}.my-modal__header .search-wrapper .color-families .color-family:hover{transform:scale(0.93);box-shadow:0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1)}.my-modal__header .search-wrapper .color-families .color-family.active{transform:scale(0.93);box-shadow:0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1)}@media (max-width: 1024px){.my-modal__header .search-wrapper .color-families .color-family{width:90px;height:90px;font-size:12px}}.my-modal__header .search-wrapper .color-families .color-family div{width:100%;height:100%;cursor:pointer;font-size:15px;z-index:-1;opacity:65%;position:absolute}.my-modal__header .search-wrapper .search-container{display:flex;align-items:baseline}.my-modal__header .search-wrapper .search-container .filters{display:flex;flex-direction:column;gap:10px}@media (max-width: 1024px){.my-modal__header .search-wrapper .search-container .filters{width:100%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .search-container{width:100%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{position:absolute;top:50px;right:20px;background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}';const gi=class{constructor(r){e(this,r);this.sampleSelected=t(this,"sampleSelected",7);this.colorFamilySelected=t(this,"colorFamilySelected",7);this.closeModal=t(this,"closeModal",7);this.onLogoClick=t(this,"onLogoClick",7);this.onResetCategory=t(this,"onResetCategory",7);this.handleClose=()=>{this.closeModal.emit()};this.handleLogoClick=()=>{this.onLogoClick.emit()};this.handleReset=()=>{this.onResetCategory.emit()};this.modalName=undefined;this.modalLogo=undefined;this.modalDescription=undefined;this.selectedColorFamily=undefined;this.shop=undefined;this.productName=undefined;this.isMobile=undefined;this.closeImage="close.png";this.productSamples=[];this.colorFamilies=[]}handleSampleSelect(e){this.sampleSelected.emit(e.detail)}sortColorFamiliesByHex(e){return[...e].sort(((e,t)=>{const r=e=>{const t=parseInt(e.substring(1,3),16);const r=parseInt(e.substring(3,5),16);const i=parseInt(e.substring(5,7),16);return t*.299+r*.587+i*.114};return r(e.color)-r(t.color)}))}async fetchColorFamilies(){try{const e=await bi();this.colorFamilies=this.sortColorFamiliesByHex(e)}catch(e){console.error("Error fetching color families:",e);this.colorFamilies=[]}}adjustBrightness(e,t){let r=parseInt(e.substring(1,3),16);let i=parseInt(e.substring(3,5),16);let n=parseInt(e.substring(5,7),16);r=Math.min(255,Math.max(0,r+r*t));i=Math.min(255,Math.max(0,i+i*t));n=Math.min(255,Math.max(0,n+n*t));return`rgb(${Math.round(r)}, ${Math.round(i)}, ${Math.round(n)})`}getGradientFromHex(e){const t=this.adjustBrightness(e,.6);const r=this.adjustBrightness(e,-.6);return`linear-gradient(270deg, ${t} 0%, ${r} 100%)`}selectColorFamily(e){this.selectedColorFamily=this.selectedColorFamily===e?null:e;this.colorFamilySelected.emit(e)}componentWillLoad(){this.fetchColorFamilies()}render(){return r("div",{class:"my-modal__header"},r("div",{class:"image-wrapper"},this.modalLogo&&r("div",{class:"modal-header__logo",onClick:this.handleLogoClick},r("img",{src:this.modalLogo,alt:"modal-logo"}))),this.modalName&&r("p",{class:"my-modal__see-more big"},this.modalName),this.modalDescription&&r("p",{class:"my-modal__see-more"},this.modalDescription),r("div",{class:"search-wrapper"},r("div",{class:"color-families"},this.colorFamilies.map((e=>r("div",{class:`color-family ${this.selectedColorFamily===e.value?"active":""}`,onClick:()=>this.selectColorFamily(e.value)},r("div",{style:{backgroundImage:this.getGradientFromHex(e.color)}}),e.text)))),r("div",{class:"search-container"},r("div",{class:"filters"},r("my-search",{shopname:this.shop,productname:this.productName,isMobile:this.isMobile}),r("my-select",{onOnReset:()=>this.handleReset(),onSelectValue:e=>this.handleSampleSelect(e),options:this.productSamples,placeholder:"Wybierz wzornik"})," "),r("button",{class:"my-modal__close",onClick:this.handleClose},r("img",{src:i(`./assets/${this.closeImage}`),alt:"closebtn"})))))}static get assetsDirs(){return["assets"]}};gi.style=wi;const vi='@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); .tinting-wrapper *{font-family:"Poppins", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}';const xi=class{constructor(t){e(this,t)}render(){return null}};xi.style=vi;const Ai=e=>window.dataLayer.push(e);function _i(e){var t;const r=(t=e===null||e===void 0?void 0:e.replace("#",""))!==null&&t!==void 0?t:"";if(r.length!==6&&r.length!==3)return false;const i=r.length===3;const n=parseInt(i?r[0]+r[0]:r.slice(0,2),16)/255;const o=parseInt(i?r[1]+r[1]:r.slice(2,4),16)/255;const s=parseInt(i?r[2]+r[2]:r.slice(4,6),16)/255;const a=.299*n+.587*o+.114*s;return a>.96}function ki(e,t){let r;return function i(...n){const o=()=>{clearTimeout(r);e(...n)};clearTimeout(r);r=setTimeout(o,t)}}const Si='@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); .tinting-wrapper *{font-family:"Poppins", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}';const ji=class{constructor(t){e(this,t);this.colorCheck=()=>{this.checkTimeout=setTimeout((()=>{Ai({event:"ColorCheck",shop:this.shop,product:this.product,color:this.name})}),2e3)};this.colorUnCheck=()=>{if(this.checkTimeout)clearTimeout(this.checkTimeout);this.checkTimeout=undefined};this.darkenColor=e=>{const t=parseInt(e[1]+e[2],16)-20;const r=parseInt(e[3]+e[4],16)-20;const i=parseInt(e[5]+e[6],16)-20;return`rgb(${t},${r},${i})`};this.isLightSwatch=()=>{var e;return!((e=this.isImageInsteadHex)===null||e===void 0?void 0:e.isImageInsteadHex)&&_i(this.color)};this.getBorder=()=>{if(!this.isCategoryActive)return"";return`5px solid ${this.isLightSwatch()?"#d9d9d9":this.darkenColor(this.color)}`};this.getBoxShadow=()=>{if(this.isCategoryActive)return"";return this.isLightSwatch()?"inset 0 0 0 1px #d9d9d9":""};this.color=undefined;this.name=undefined;this.shop=undefined;this.product=undefined;this.isActive=undefined;this.isCategoryActive=undefined;this.isImageInsteadHex=undefined}render(){var e,t,i;return r("div",{onMouseEnter:()=>this.colorCheck(),onMouseLeave:()=>this.colorUnCheck(),class:`my-color-box ${this.isActive?"active":""} ${this.isCategoryActive?"categoryactive":""}`,style:{backgroundSize:((e=this.isImageInsteadHex)===null||e===void 0?void 0:e.isImageInsteadHex)?"cover":"",backgroundImage:((t=this.isImageInsteadHex)===null||t===void 0?void 0:t.isImageInsteadHex)?`url(${oi}/assets/${this.isImageInsteadHex.bigImage}?access_token=${si})`:"",background:((i=this.isImageInsteadHex)===null||i===void 0?void 0:i.isImageInsteadHex)?this.isImageInsteadHex.bigImage:this.color,border:this.getBorder(),boxShadow:this.getBoxShadow()}},r("div",{class:"color-name"},this.name))}};ji.style=Si;const Ei=class{constructor(i){e(this,i);this.onCurrentColor=t(this,"onCurrentColor",7);this.addToBasket=t(this,"addToBasket",7);this.closeInfoBox=t(this,"closeInfoBox",7);this.loadingTimeout=null;this.successTimeout=null;this.goToProduct=()=>{var e;this.onCurrentColor.emit(this.currentColor);this.currentColor&&Ai({event:"GoToProduct",shop:this.shop,product:this.product,color:(e=this.currentColor)===null||e===void 0?void 0:e.name});this.closeInfoBox.emit()};this.onCloseButtonClick=()=>{this.closeInfoBox.emit()};this.getHref=()=>{var e,t,r,i;if(this.baselink){return`${this.baselink}/${(t=(e=this===null||this===void 0?void 0:this.currentColor.links)===null||e===void 0?void 0:e.find((e=>(e===null||e===void 0?void 0:e.shop)===this.shop)))===null||t===void 0?void 0:t.path}`}return(i=(r=this===null||this===void 0?void 0:this.currentColor.links)===null||r===void 0?void 0:r.find((e=>(e===null||e===void 0?void 0:e.shop)===this.shop)))===null||i===void 0?void 0:i.path};this.renderSliderOrImage=()=>{var e;if(this.currentColor.imageInsteadHex){return r("img",{class:"color-big-image",src:`${oi}/assets/${this.currentColor.bigImage}?access_token=${si}`,alt:"color-image"})}else{return r("my-slider",{color:this.currentColor.name,shop:this.shop,product:this.product,slides:(e=this.data)===null||e===void 0?void 0:e.images})}};this.capitalizeFirstLetter=e=>e.charAt(0).toUpperCase()+e.slice(1).toLocaleLowerCase();this.isVeryLightBackground=()=>{if(this.currentColor.imageInsteadHex)return true;return _i(this.currentColor.hex)};this.getButtonClass=()=>{if(this.currentColor.imageInsteadHex)return"brown";return this.isVeryLightBackground()?"inverse":""};this.handleAddToBasket=()=>{var e;if(!((e=this.availableTesters)===null||e===void 0?void 0:e.id_product_attribute))return;if(this.basketStatus!=="idle")return;this.clearBasketTimeouts();this.basketStatus="loading";this.addToBasket.emit({id:this.availableTesters.id_product_attribute});this.loadingTimeout=setTimeout((()=>{this.basketStatus="success";this.successTimeout=setTimeout((()=>{this.basketStatus="idle"}),2500)}),900)};this.currentColor=undefined;this.shop=undefined;this.product=undefined;this.baselink=undefined;this.availableTesters=undefined;this.price=undefined;this.data=null;this.isMobile=false;this.infoBoxWidth=undefined;this.closeImage="close.png";this.basketStatus="idle"}onColorChange(e,t){if((e===null||e===void 0?void 0:e.name)===(t===null||t===void 0?void 0:t.name))return;this.resetBasketStatus()}disconnectedCallback(){this.clearBasketTimeouts()}clearBasketTimeouts(){if(this.loadingTimeout){clearTimeout(this.loadingTimeout);this.loadingTimeout=null}if(this.successTimeout){clearTimeout(this.successTimeout);this.successTimeout=null}}resetBasketStatus(){this.clearBasketTimeouts();this.basketStatus="idle"}render(){var e;return r("div",{class:`boxes__box-content ${this.currentColor.textWhite?"boxes__box-content__white":""}`,style:{background:this.currentColor.imageInsteadHex?"white":this.currentColor.hex,maxWidth:`${this.infoBoxWidth&&this.infoBoxWidth-4}px`}},this.isMobile&&r("img",{class:"closebtn",onClick:this.onCloseButtonClick,src:i(`./assets/${this.closeImage}`),alt:"closebtn"}),r("div",{class:"boxes__box-content__info",style:{maxWidth:this.isMobile?`${this.infoBoxWidth&&this.infoBoxWidth-35}px`:``}},!this.isMobile&&r("img",{class:"closebtn",onClick:this.onCloseButtonClick,src:i(`./assets/${this.closeImage}`),alt:"closebtn"}),r("h2",null,this.currentColor.name),!this.isMobile&&r("h4",null,this.currentColor.number),r("div",{class:"boxes__box-content__info__value"},r("div",{class:"divider"}),r("div",{class:"boxes__box-content__info__tester"},r("div",{class:"divider"}),r("div",{class:"tester-text"},r("h2",null,"Zamow tester"),r("p",null,"Sprawdz go na swojej scianie.")),r("div",{class:"tester-buy"},r("div",{class:"price"},this.price?`${this.price} zl`:""),this.isMobile&&r("div",{class:"divider"}),this.basketStatus!=="success"&&r("button",{class:`button fit ${this.getButtonClass()} ${!this.availableTesters?"disabled":""} ${this.basketStatus==="loading"?"is-loading":""}`,onClick:this.handleAddToBasket,disabled:!this.availableTesters||this.basketStatus==="loading"},r("span",{class:"button-content"},r("span",{class:"shape-icon","aria-hidden":"true"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"16",viewBox:"0 0 15 16"},r("path",{class:"shape-icon__path",transform:"translate(0.0867462 0)",d:"M13.246571 12.763281L11.931726 4.961875C11.801879 4.1936703 11.13567 3.6319427 10.35657 3.63375L9.7429771 3.63375L9.7429771 3.1025C9.7429771 1.3890365 8.35394 0 6.6404767 0C4.9270134 0 3.537977 1.3890365 3.537977 3.1025L3.537977 3.63375L2.9217269 3.63375C2.1426277 3.6319427 1.4764187 4.1936703 1.3465706 4.961875L0.034383144 12.763281C-0.086738147 13.483807 0.11555123 14.221112 0.58740741 14.778946C1.0592636 15.336781 1.7528107 15.658594 2.4834456 15.658594L10.797508 15.658594C11.528143 15.658594 12.22169 15.336781 12.693546 14.778946C13.165402 14.221112 13.367692 13.483807 13.246571 12.763281L13.246571 12.763281ZM4.3348517 3.0892186C4.3348517 1.8158572 5.3671155 0.78359371 6.6404767 0.78359371C7.9138384 0.78359371 8.9461021 1.8158572 8.9461021 3.0892186L8.9461021 3.6204686L4.3348517 3.6204686L4.3348517 3.0892186ZM12.08579 14.264063C11.765244 14.643165 11.293964 14.86172 10.797508 14.86172L2.4834456 14.86172C1.9871488 14.862442 1.5158025 14.644215 1.195269 14.265309C0.87473541 13.886404 0.73765546 13.385406 0.82063317 12.896093L2.1248519 5.092031C2.1891608 4.703371 2.5278175 4.4200282 2.9217269 4.4252396L3.5353208 4.4252396L3.5353208 5.5834374C3.5353208 5.8034883 3.7137072 5.9818749 3.9337583 5.9818749C4.1538091 5.9818749 4.3321958 5.8034883 4.3321958 5.5834374L4.3321958 4.4252396L8.9461021 4.4252396L8.9461021 5.5834374C8.9461021 5.8034883 9.1244888 5.9818749 9.3445396 5.9818749C9.5645905 5.9818749 9.7429771 5.8034883 9.7429771 5.5834374L9.7429771 4.4252396L10.359227 4.4252396C10.753137 4.4200282 11.091793 4.703371 11.156102 5.092031L12.46032 12.896093C12.542204 13.384947 12.40527 13.885097 12.08579 14.264063L12.08579 14.264063Z"}))),!this.availableTesters?"Tester obecnie niedostepny":"Dodaj do koszyka"),this.basketStatus==="loading"&&r("span",{class:"spinner","aria-hidden":"true"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},r("path",{d:"M12 2 A10 10 0 1 1 2 12",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"})))),this.basketStatus==="success"&&r("div",{class:`basket-status basket-status--success ${this.getButtonClass()}`,role:"status","aria-live":"polite"},r("span",{class:"check-icon","aria-hidden":"true"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},r("path",{d:"M5 12.5l4.5 4.5L19 7.5",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}))),r("span",null,r("strong",null,"Dodano")," do koszyka")))),r("div",{class:"boxes__box-content__info__value-product"},this.currentColor&&((e=this.currentColor.links)===null||e===void 0?void 0:e.find((e=>(e===null||e===void 0?void 0:e.shop)===this.shop)))&&r("a",{onClick:this.goToProduct,href:this.getHref(),class:`button ${this.getButtonClass()}`},"wybierz kolor")))),r("div",{class:"boxes__box-content__slider"},this.renderSliderOrImage()))}static get watchers(){return{currentColor:["onColorChange"]}}};const Mi=e=>!Array.isArray(e)&&e!==null&&typeof e==="object";const Ci=({vattrs:e},t=[])=>Mi(e)&&t.every(e.hasOwnProperty.bind(e));const Oi=({vtext:e})=>typeof e==="string";const $i=e=>typeof e==="object"&&e.nodeType===1&&typeof e.ownerDocument==="object";const Pi=e=>Array.isArray(e)&&e.every($i);const Ii=({vtag:e,vattrs:t,vchildren:r,vtext:i},n)=>{if(i!=null){return document.createTextNode(i)}const o=document.createElement(e);if(t!=null){for(const e in t){o.setAttribute(e,t[e])}}if(r!=null){n.forEach(r,(e=>{o.appendChild(Ii(e,n))}))}return o};const Bi=e=>$i(e)||Pi(e)&&e.length===2;const zi=e=>{if(Array.isArray(e)){return document.head.replaceChild(e[0],e[1])}return document.head.appendChild(e)};const Ti=e=>Array.isArray(e.vchildren);const Ri=(e,t)=>{let r=null;t.forEach(e||[],((e,t)=>{if(t===0){r=e;return}}));return r};function Fi(e,t,r){const i=Ri(e.vchildren||[],r);if(i&&Oi(i)){return[Ii(e,r),t.querySelector("title")]}}function Ni(e,t,r){var i,n,o;const s=((i=e.vattrs)===null||i===void 0?void 0:i.property)?"property":"name";const a=((n=e.vattrs)===null||n===void 0?void 0:n.property)||((o=e.vattrs)===null||o===void 0?void 0:o.name);const l=t.querySelector(`meta[${s}="${a}"]`);if(l!==null){return[Ii(e,r),l]}else{return Ii(e,r)}}function Gi(e,t,r){if(!Ti(e)){return Ii(e,r)}}function Li(e,t,r){const i=Ri(e.vchildren||[],r);if(i&&Oi(i)){return Ii(e,r)}}function Di(e,t,r){if(Ti(e)||Ci(e)){return Ii(e,r)}}function Yi(e,t,r){if(!Ti(e)&&Ci(e)){return Ii(e,r)}}const Wi=Ii;const Ui=Ii;const Hi={title:Fi,meta:Ni,link:Gi,style:Li,script:Di,base:Yi,template:Wi,noscript:Ui};const qi=document&&document.head;const Zi=Object.keys(Hi);const Vi=e=>Zi.indexOf(e.vtag)>-1;const Qi=(e,t)=>Hi[e.vtag](e,document.head,t);const Ki=(e,t,r)=>{if(!qi){return null}const i=[];r.forEach(t,(e=>{if(Vi(e)){i.push(Qi(e,r))}}));i.filter(Bi).forEach(zi);return null};const Xi=".tinting-wrapper.sc-my-component{display:flex;flex-direction:column;align-items:center;justify-content:center}";const Ji=class{constructor(r){e(this,r);this.onSelectedColor=t(this,"onSelectedColor",7);this.addToBasket=t(this,"addToBasket",7);this.shop=undefined;this.product=undefined;this.baselink=undefined;this.colorname=undefined;this.available_testers=undefined;this.price=undefined;this.show=false;this.readyToClose=false}async open(){this.show=true}async close(){this.show=false}setReadyToCloseHandler(e){this.readyToClose=e.detail.observable}closeModalHandler(){this.show=false;this.readyToClose=false}handleSelectedColor(e){this.onSelectedColor.emit(e.detail)}addToBasketHandler(e){this.addToBasket.emit(e.detail)}render(){let e=null;if(this.show){e=[r("my-backdrop",null),r("my-modal",{shop:this.shop,product:this.product,baselink:this.baselink,selectedcolor:this.colorname,available_testers:this.available_testers?JSON.parse(this.available_testers):null,price:this.price})]}return r("div",{onClick:()=>{if(this.readyToClose){this.closeModalHandler()}}},r(Ki,null,r("script",null,`(function (w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != 'dataLayer' ? '&l=' + l : '';\n j.async = true;\n j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\n f.parentNode.insertBefore(j, f);\n })(window, document, 'script', 'dataLayer', 'GTM-537BV9VT');`)),r("div",{class:"tinting-wrapper"},e),r("noscript",null,r("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-537BV9VT",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})))}get modalEl(){return n(this)}};Ji.style=Xi;const{min:en,max:tn}=Math;const rn=(e,t=0,r=1)=>en(tn(t,e),r);const nn=e=>{e._clipped=false;e._unclipped=e.slice(0);for(let t=0;t<=3;t++){if(t<3){if(e[t]<0||e[t]>255)e._clipped=true;e[t]=rn(e[t],0,255)}else if(t===3){e[t]=rn(e[t],0,1)}}return e};const on={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"]){on[`[object ${e}]`]=e.toLowerCase()}function sn(e){return on[Object.prototype.toString.call(e)]||"object"}const an=(e,t=null)=>{if(e.length>=3)return Array.prototype.slice.call(e);if(sn(e[0])=="object"&&t){return t.split("").filter((t=>e[0][t]!==undefined)).map((t=>e[0][t]))}return e[0].slice(0)};const ln=e=>{if(e.length<2)return null;const t=e.length-1;if(sn(e[t])=="string")return e[t].toLowerCase();return null};const{PI:cn,min:fn,max:un}=Math;const dn=e=>Math.round(e*100)/100;const pn=e=>Math.round(e*100)/100;const hn=cn*2;const mn=cn/3;const bn=cn/180;const yn=180/cn;function wn(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const gn={format:{},autodetect:[]};class vn{constructor(...e){const t=this;if(sn(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor){return e[0]}let r=ln(e);let i=false;if(!r){i=true;if(!gn.sorted){gn.autodetect=gn.autodetect.sort(((e,t)=>t.p-e.p));gn.sorted=true}for(let t of gn.autodetect){r=t.test(...e);if(r)break}}if(gn.format[r]){const n=gn.format[r].apply(null,i?e:e.slice(0,-1));t._rgb=nn(n)}else{throw new Error("unknown format: "+e)}if(t._rgb.length===3)t._rgb.push(1)}toString(){if(sn(this.hex)=="function")return this.hex();return`[${this._rgb.join(",")}]`}}const xn="3.1.2";const An=(...e)=>new vn(...e);An.version=xn;const _n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};const kn=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;const Sn=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;const jn=e=>{if(e.match(kn)){if(e.length===4||e.length===7){e=e.substr(1)}if(e.length===3){e=e.split("");e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]}const t=parseInt(e,16);const r=t>>16;const i=t>>8&255;const n=t&255;return[r,i,n,1]}if(e.match(Sn)){if(e.length===5||e.length===9){e=e.substr(1)}if(e.length===4){e=e.split("");e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]}const t=parseInt(e,16);const r=t>>24&255;const i=t>>16&255;const n=t>>8&255;const o=Math.round((t&255)/255*100)/100;return[r,i,n,o]}throw new Error(`unknown hex color: ${e}`)};const{round:En}=Math;const Mn=(...e)=>{let[t,r,i,n]=an(e,"rgba");let o=ln(e)||"auto";if(n===undefined)n=1;if(o==="auto"){o=n<1?"rgba":"rgb"}t=En(t);r=En(r);i=En(i);const s=t<<16|r<<8|i;let a="000000"+s.toString(16);a=a.substr(a.length-6);let l="0"+En(n*255).toString(16);l=l.substr(l.length-2);switch(o.toLowerCase()){case"rgba":return`#${a}${l}`;case"argb":return`#${l}${a}`;default:return`#${a}`}};vn.prototype.name=function(){const e=Mn(this._rgb,"rgb");for(let t of Object.keys(_n)){if(_n[t]===e)return t.toLowerCase()}return e};gn.format.named=e=>{e=e.toLowerCase();if(_n[e])return jn(_n[e]);throw new Error("unknown color name: "+e)};gn.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&sn(e)==="string"&&_n[e.toLowerCase()]){return"named"}}});vn.prototype.alpha=function(e,t=false){if(e!==undefined&&sn(e)==="number"){if(t){this._rgb[3]=e;return this}return new vn([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb")}return this._rgb[3]};vn.prototype.clipped=function(){return this._rgb._clipped||false};const Cn={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}};const On=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function $n(e){const t=On.get(String(e).toLowerCase());if(!t){throw new Error("unknown Lab illuminant "+e)}Cn.labWhitePoint=e;Cn.Xn=t[0];Cn.Zn=t[1]}function Pn(){return Cn.labWhitePoint}const In=(...e)=>{e=an(e,"lab");const[t,r,i]=e;const[n,o,s]=Bn(t,r,i);const[a,l,c]=Tn(n,o,s);return[a,l,c,e.length>3?e[3]:1]};const Bn=(e,t,r)=>{const{kE:i,kK:n,kKE:o,Xn:s,Yn:a,Zn:l}=Cn;const c=(e+16)/116;const f=.002*t+c;const u=c-.005*r;const d=f*f*f;const p=u*u*u;const h=d>i?d:(116*f-16)/n;const m=e>o?Math.pow((e+16)/116,3):e/n;const b=p>i?p:(116*u-16)/n;const y=h*s;const w=m*a;const g=b*l;return[y,w,g]};const zn=e=>{const t=Math.sign(e);e=Math.abs(e);return(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*t};const Tn=(e,t,r)=>{const{MtxAdaptMa:i,MtxAdaptMaI:n,MtxXYZ2RGB:o,RefWhiteRGB:s,Xn:a,Yn:l,Zn:c}=Cn;const f=a*i.m00+l*i.m10+c*i.m20;const u=a*i.m01+l*i.m11+c*i.m21;const d=a*i.m02+l*i.m12+c*i.m22;const p=s.X*i.m00+s.Y*i.m10+s.Z*i.m20;const h=s.X*i.m01+s.Y*i.m11+s.Z*i.m21;const m=s.X*i.m02+s.Y*i.m12+s.Z*i.m22;const b=(e*i.m00+t*i.m10+r*i.m20)*(p/f);const y=(e*i.m01+t*i.m11+r*i.m21)*(h/u);const w=(e*i.m02+t*i.m12+r*i.m22)*(m/d);const g=b*n.m00+y*n.m10+w*n.m20;const v=b*n.m01+y*n.m11+w*n.m21;const x=b*n.m02+y*n.m12+w*n.m22;const A=zn(g*o.m00+v*o.m10+x*o.m20);const _=zn(g*o.m01+v*o.m11+x*o.m21);const k=zn(g*o.m02+v*o.m12+x*o.m22);return[A*255,_*255,k*255]};const Rn=(...e)=>{const[t,r,i,...n]=an(e,"rgb");const[o,s,a]=Gn(t,r,i);const[l,c,f]=Fn(o,s,a);return[l,c,f,...n.length>0&&n[0]<1?[n[0]]:[]]};function Fn(e,t,r){const{Xn:i,Yn:n,Zn:o,kE:s,kK:a}=Cn;const l=e/i;const c=t/n;const f=r/o;const u=l>s?Math.pow(l,1/3):(a*l+16)/116;const d=c>s?Math.pow(c,1/3):(a*c+16)/116;const p=f>s?Math.pow(f,1/3):(a*f+16)/116;return[116*d-16,500*(u-d),200*(d-p)]}function Nn(e){const t=Math.sign(e);e=Math.abs(e);const r=e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);return r*t}const Gn=(e,t,r)=>{e=Nn(e/255);t=Nn(t/255);r=Nn(r/255);const{MtxRGB2XYZ:i,MtxAdaptMa:n,MtxAdaptMaI:o,Xn:s,Yn:a,Zn:l,As:c,Bs:f,Cs:u}=Cn;let d=e*i.m00+t*i.m10+r*i.m20;let p=e*i.m01+t*i.m11+r*i.m21;let h=e*i.m02+t*i.m12+r*i.m22;const m=s*n.m00+a*n.m10+l*n.m20;const b=s*n.m01+a*n.m11+l*n.m21;const y=s*n.m02+a*n.m12+l*n.m22;let w=d*n.m00+p*n.m10+h*n.m20;let g=d*n.m01+p*n.m11+h*n.m21;let v=d*n.m02+p*n.m12+h*n.m22;w*=m/c;g*=b/f;v*=y/u;d=w*o.m00+g*o.m10+v*o.m20;p=w*o.m01+g*o.m11+v*o.m21;h=w*o.m02+g*o.m12+v*o.m22;return[d,p,h]};vn.prototype.lab=function(){return Rn(this._rgb)};const Ln=(...e)=>new vn(...e,"lab");Object.assign(An,{lab:Ln,getLabWhitePoint:Pn,setLabWhitePoint:$n});gn.format.lab=In;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"lab");if(sn(e)==="array"&&e.length===3){return"lab"}}});vn.prototype.darken=function(e=1){const t=this;const r=t.lab();r[0]-=Cn.Kn*e;return new vn(r,"lab").alpha(t.alpha(),true)};vn.prototype.brighten=function(e=1){return this.darken(-e)};vn.prototype.darker=vn.prototype.darken;vn.prototype.brighter=vn.prototype.brighten;vn.prototype.get=function(e){const[t,r]=e.split(".");const i=this[t]();if(r){const e=t.indexOf(r)-(t.substr(0,2)==="ok"?2:0);if(e>-1)return i[e];throw new Error(`unknown channel ${r} in mode ${t}`)}else{return i}};const{pow:Dn}=Math;const Yn=1e-7;const Wn=20;vn.prototype.luminance=function(e,t="rgb"){if(e!==undefined&&sn(e)==="number"){if(e===0){return new vn([0,0,0,this._rgb[3]],"rgb")}if(e===1){return new vn([255,255,255,this._rgb[3]],"rgb")}let r=this.luminance();let i=Wn;const n=(r,o)=>{const s=r.interpolate(o,.5,t);const a=s.luminance();if(Math.abs(e-a)<Yn||!i--){return s}return a>e?n(r,s):n(s,o)};const o=(r>e?n(new vn([0,0,0]),this):n(this,new vn([255,255,255]))).rgb();return new vn([...o,this._rgb[3]])}return Un(...this._rgb.slice(0,3))};const Un=(e,t,r)=>{e=Hn(e);t=Hn(t);r=Hn(r);return.2126*e+.7152*t+.0722*r};const Hn=e=>{e/=255;return e<=.03928?e/12.92:Dn((e+.055)/1.055,2.4)};const qn={};const Zn=(e,t,r=.5,...i)=>{let n=i[0]||"lrgb";if(!qn[n]&&!i.length){n=Object.keys(qn)[0]}if(!qn[n]){throw new Error(`interpolation mode ${n} is not defined`)}if(sn(e)!=="object")e=new vn(e);if(sn(t)!=="object")t=new vn(t);return qn[n](e,t,r).alpha(e.alpha()+r*(t.alpha()-e.alpha()))};vn.prototype.mix=vn.prototype.interpolate=function(e,t=.5,...r){return Zn(this,e,t,...r)};vn.prototype.premultiply=function(e=false){const t=this._rgb;const r=t[3];if(e){this._rgb=[t[0]*r,t[1]*r,t[2]*r,r];return this}else{return new vn([t[0]*r,t[1]*r,t[2]*r,r],"rgb")}};const{sin:Vn,cos:Qn}=Math;const Kn=(...e)=>{let[t,r,i]=an(e,"lch");if(isNaN(i))i=0;i=i*bn;return[t,Qn(i)*r,Vn(i)*r]};const Xn=(...e)=>{e=an(e,"lch");const[t,r,i]=e;const[n,o,s]=Kn(t,r,i);const[a,l,c]=In(n,o,s);return[a,l,c,e.length>3?e[3]:1]};const Jn=(...e)=>{const t=wn(an(e,"hcl"));return Xn(...t)};const{sqrt:eo,atan2:to,round:ro}=Math;const io=(...e)=>{const[t,r,i]=an(e,"lab");const n=eo(r*r+i*i);let o=(to(i,r)*yn+360)%360;if(ro(n*1e4)===0)o=Number.NaN;return[t,n,o]};const no=(...e)=>{const[t,r,i,...n]=an(e,"rgb");const[o,s,a]=Rn(t,r,i);const[l,c,f]=io(o,s,a);return[l,c,f,...n.length>0&&n[0]<1?[n[0]]:[]]};vn.prototype.lch=function(){return no(this._rgb)};vn.prototype.hcl=function(){return wn(no(this._rgb))};const oo=(...e)=>new vn(...e,"lch");const so=(...e)=>new vn(...e,"hcl");Object.assign(An,{lch:oo,hcl:so});gn.format.lch=Xn;gn.format.hcl=Jn;["lch","hcl"].forEach((e=>gn.autodetect.push({p:2,test:(...t)=>{t=an(t,e);if(sn(t)==="array"&&t.length===3){return e}}})));vn.prototype.saturate=function(e=1){const t=this;const r=t.lch();r[1]+=Cn.Kn*e;if(r[1]<0)r[1]=0;return new vn(r,"lch").alpha(t.alpha(),true)};vn.prototype.desaturate=function(e=1){return this.saturate(-e)};vn.prototype.set=function(e,t,r=false){const[i,n]=e.split(".");const o=this[i]();if(n){const e=i.indexOf(n)-(i.substr(0,2)==="ok"?2:0);if(e>-1){if(sn(t)=="string"){switch(t.charAt(0)){case"+":o[e]+=+t;break;case"-":o[e]+=+t;break;case"*":o[e]*=+t.substr(1);break;case"/":o[e]/=+t.substr(1);break;default:o[e]=+t}}else if(sn(t)==="number"){o[e]=t}else{throw new Error(`unsupported value for Color.set`)}const n=new vn(o,i);if(r){this._rgb=n._rgb;return this}return n}throw new Error(`unknown channel ${n} in mode ${i}`)}else{return o}};vn.prototype.tint=function(e=.5,...t){return Zn(this,"white",e,...t)};vn.prototype.shade=function(e=.5,...t){return Zn(this,"black",e,...t)};const ao=(e,t,r)=>{const i=e._rgb;const n=t._rgb;return new vn(i[0]+r*(n[0]-i[0]),i[1]+r*(n[1]-i[1]),i[2]+r*(n[2]-i[2]),"rgb")};qn.rgb=ao;const{sqrt:lo,pow:co}=Math;const fo=(e,t,r)=>{const[i,n,o]=e._rgb;const[s,a,l]=t._rgb;return new vn(lo(co(i,2)*(1-r)+co(s,2)*r),lo(co(n,2)*(1-r)+co(a,2)*r),lo(co(o,2)*(1-r)+co(l,2)*r),"rgb")};qn.lrgb=fo;const uo=(e,t,r)=>{const i=e.lab();const n=t.lab();return new vn(i[0]+r*(n[0]-i[0]),i[1]+r*(n[1]-i[1]),i[2]+r*(n[2]-i[2]),"lab")};qn.lab=uo;const po=(e,t,r,i)=>{let n,o;if(i==="hsl"){n=e.hsl();o=t.hsl()}else if(i==="hsv"){n=e.hsv();o=t.hsv()}else if(i==="hcg"){n=e.hcg();o=t.hcg()}else if(i==="hsi"){n=e.hsi();o=t.hsi()}else if(i==="lch"||i==="hcl"){i="hcl";n=e.hcl();o=t.hcl()}else if(i==="oklch"){n=e.oklch().reverse();o=t.oklch().reverse()}let s,a,l,c,f,u;if(i.substr(0,1)==="h"||i==="oklch"){[s,l,f]=n;[a,c,u]=o}let d,p,h,m;if(!isNaN(s)&&!isNaN(a)){if(a>s&&a-s>180){m=a-(s+360)}else if(a<s&&s-a>180){m=a+360-s}else{m=a-s}p=s+r*m}else if(!isNaN(s)){p=s;if((u==1||u==0)&&i!="hsv")d=l}else if(!isNaN(a)){p=a;if((f==1||f==0)&&i!="hsv")d=c}else{p=Number.NaN}if(d===undefined)d=l+r*(c-l);h=f+r*(u-f);return i==="oklch"?new vn([h,d,p],i):new vn([p,d,h],i)};const ho=(e,t,r)=>po(e,t,r,"lch");qn.lch=ho;qn.hcl=ho;const mo=e=>{if(sn(e)=="number"&&e>=0&&e<=16777215){const t=e>>16;const r=e>>8&255;const i=e&255;return[t,r,i,1]}throw new Error("unknown num color: "+e)};const bo=(...e)=>{const[t,r,i]=an(e,"rgb");return(t<<16)+(r<<8)+i};vn.prototype.num=function(){return bo(this._rgb)};const yo=(...e)=>new vn(...e,"num");Object.assign(An,{num:yo});gn.format.num=mo;gn.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&sn(e[0])==="number"&&e[0]>=0&&e[0]<=16777215){return"num"}}});const wo=(e,t,r)=>{const i=e.num();const n=t.num();return new vn(i+r*(n-i),"num")};qn.num=wo;const{floor:go}=Math;const vo=(...e)=>{e=an(e,"hcg");let[t,r,i]=e;let n,o,s;i=i*255;const a=r*255;if(r===0){n=o=s=i}else{if(t===360)t=0;if(t>360)t-=360;if(t<0)t+=360;t/=60;const e=go(t);const l=t-e;const c=i*(1-r);const f=c+a*(1-l);const u=c+a*l;const d=c+a;switch(e){case 0:[n,o,s]=[d,u,c];break;case 1:[n,o,s]=[f,d,c];break;case 2:[n,o,s]=[c,d,u];break;case 3:[n,o,s]=[c,f,d];break;case 4:[n,o,s]=[u,c,d];break;case 5:[n,o,s]=[d,c,f];break}}return[n,o,s,e.length>3?e[3]:1]};const xo=(...e)=>{const[t,r,i]=an(e,"rgb");const n=fn(t,r,i);const o=un(t,r,i);const s=o-n;const a=s*100/255;const l=n/(255-s)*100;let c;if(s===0){c=Number.NaN}else{if(t===o)c=(r-i)/s;if(r===o)c=2+(i-t)/s;if(i===o)c=4+(t-r)/s;c*=60;if(c<0)c+=360}return[c,a,l]};vn.prototype.hcg=function(){return xo(this._rgb)};const Ao=(...e)=>new vn(...e,"hcg");An.hcg=Ao;gn.format.hcg=vo;gn.autodetect.push({p:1,test:(...e)=>{e=an(e,"hcg");if(sn(e)==="array"&&e.length===3){return"hcg"}}});const _o=(e,t,r)=>po(e,t,r,"hcg");qn.hcg=_o;const{cos:ko}=Math;const So=(...e)=>{e=an(e,"hsi");let[t,r,i]=e;let n,o,s;if(isNaN(t))t=0;if(isNaN(r))r=0;if(t>360)t-=360;if(t<0)t+=360;t/=360;if(t<1/3){s=(1-r)/3;n=(1+r*ko(hn*t)/ko(mn-hn*t))/3;o=1-(s+n)}else if(t<2/3){t-=1/3;n=(1-r)/3;o=(1+r*ko(hn*t)/ko(mn-hn*t))/3;s=1-(n+o)}else{t-=2/3;o=(1-r)/3;s=(1+r*ko(hn*t)/ko(mn-hn*t))/3;n=1-(o+s)}n=rn(i*n*3);o=rn(i*o*3);s=rn(i*s*3);return[n*255,o*255,s*255,e.length>3?e[3]:1]};const{min:jo,sqrt:Eo,acos:Mo}=Math;const Co=(...e)=>{let[t,r,i]=an(e,"rgb");t/=255;r/=255;i/=255;let n;const o=jo(t,r,i);const s=(t+r+i)/3;const a=s>0?1-o/s:0;if(a===0){n=NaN}else{n=(t-r+(t-i))/2;n/=Eo((t-r)*(t-r)+(t-i)*(r-i));n=Mo(n);if(i>r){n=hn-n}n/=hn}return[n*360,a,s]};vn.prototype.hsi=function(){return Co(this._rgb)};const Oo=(...e)=>new vn(...e,"hsi");An.hsi=Oo;gn.format.hsi=So;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"hsi");if(sn(e)==="array"&&e.length===3){return"hsi"}}});const $o=(e,t,r)=>po(e,t,r,"hsi");qn.hsi=$o;const Po=(...e)=>{e=an(e,"hsl");const[t,r,i]=e;let n,o,s;if(r===0){n=o=s=i*255}else{const e=[0,0,0];const a=[0,0,0];const l=i<.5?i*(1+r):i+r-i*r;const c=2*i-l;const f=t/360;e[0]=f+1/3;e[1]=f;e[2]=f-1/3;for(let t=0;t<3;t++){if(e[t]<0)e[t]+=1;if(e[t]>1)e[t]-=1;if(6*e[t]<1)a[t]=c+(l-c)*6*e[t];else if(2*e[t]<1)a[t]=l;else if(3*e[t]<2)a[t]=c+(l-c)*(2/3-e[t])*6;else a[t]=c}[n,o,s]=[a[0]*255,a[1]*255,a[2]*255]}if(e.length>3){return[n,o,s,e[3]]}return[n,o,s,1]};const Io=(...e)=>{e=an(e,"rgba");let[t,r,i]=e;t/=255;r/=255;i/=255;const n=fn(t,r,i);const o=un(t,r,i);const s=(o+n)/2;let a,l;if(o===n){a=0;l=Number.NaN}else{a=s<.5?(o-n)/(o+n):(o-n)/(2-o-n)}if(t==o)l=(r-i)/(o-n);else if(r==o)l=2+(i-t)/(o-n);else if(i==o)l=4+(t-r)/(o-n);l*=60;if(l<0)l+=360;if(e.length>3&&e[3]!==undefined)return[l,a,s,e[3]];return[l,a,s]};vn.prototype.hsl=function(){return Io(this._rgb)};const Bo=(...e)=>new vn(...e,"hsl");An.hsl=Bo;gn.format.hsl=Po;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"hsl");if(sn(e)==="array"&&e.length===3){return"hsl"}}});const zo=(e,t,r)=>po(e,t,r,"hsl");qn.hsl=zo;const{floor:To}=Math;const Ro=(...e)=>{e=an(e,"hsv");let[t,r,i]=e;let n,o,s;i*=255;if(r===0){n=o=s=i}else{if(t===360)t=0;if(t>360)t-=360;if(t<0)t+=360;t/=60;const e=To(t);const a=t-e;const l=i*(1-r);const c=i*(1-r*a);const f=i*(1-r*(1-a));switch(e){case 0:[n,o,s]=[i,f,l];break;case 1:[n,o,s]=[c,i,l];break;case 2:[n,o,s]=[l,i,f];break;case 3:[n,o,s]=[l,c,i];break;case 4:[n,o,s]=[f,l,i];break;case 5:[n,o,s]=[i,l,c];break}}return[n,o,s,e.length>3?e[3]:1]};const{min:Fo,max:No}=Math;const Go=(...e)=>{e=an(e,"rgb");let[t,r,i]=e;const n=Fo(t,r,i);const o=No(t,r,i);const s=o-n;let a,l,c;c=o/255;if(o===0){a=Number.NaN;l=0}else{l=s/o;if(t===o)a=(r-i)/s;if(r===o)a=2+(i-t)/s;if(i===o)a=4+(t-r)/s;a*=60;if(a<0)a+=360}return[a,l,c]};vn.prototype.hsv=function(){return Go(this._rgb)};const Lo=(...e)=>new vn(...e,"hsv");An.hsv=Lo;gn.format.hsv=Ro;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"hsv");if(sn(e)==="array"&&e.length===3){return"hsv"}}});const Do=(e,t,r)=>po(e,t,r,"hsv");qn.hsv=Do;function Yo(e,t){let r=e.length;if(!Array.isArray(e[0])){e=[e]}if(!Array.isArray(t[0])){t=t.map((e=>[e]))}let i=t[0].length;let n=t[0].map(((e,r)=>t.map((e=>e[r]))));let o=e.map((e=>n.map((t=>{if(!Array.isArray(e)){return t.reduce(((t,r)=>t+r*e),0)}return e.reduce(((e,r,i)=>e+r*(t[i]||0)),0)}))));if(r===1){o=o[0]}if(i===1){return o.map((e=>e[0]))}return o}const Wo=(...e)=>{e=an(e,"lab");const[t,r,i,...n]=e;const[o,s,a]=Uo([t,r,i]);const[l,c,f]=Tn(o,s,a);return[l,c,f,...n.length>0&&n[0]<1?[n[0]]:[]]};function Uo(e){var t=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]];var r=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]];var i=Yo(r,e);return Yo(t,i.map((e=>e**3)))}const Ho=(...e)=>{const[t,r,i,...n]=an(e,"rgb");const o=Gn(t,r,i);const s=qo(o);return[...s,...n.length>0&&n[0]<1?[n[0]]:[]]};function qo(e){const t=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]];const r=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]];const i=Yo(t,e);return Yo(r,i.map((e=>Math.cbrt(e))))}vn.prototype.oklab=function(){return Ho(this._rgb)};const Zo=(...e)=>new vn(...e,"oklab");Object.assign(An,{oklab:Zo});gn.format.oklab=Wo;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"oklab");if(sn(e)==="array"&&e.length===3){return"oklab"}}});const Vo=(e,t,r)=>{const i=e.oklab();const n=t.oklab();return new vn(i[0]+r*(n[0]-i[0]),i[1]+r*(n[1]-i[1]),i[2]+r*(n[2]-i[2]),"oklab")};qn.oklab=Vo;const Qo=(e,t,r)=>po(e,t,r,"oklch");qn.oklch=Qo;const{pow:Ko,sqrt:Xo,PI:Jo,cos:es,sin:ts,atan2:rs}=Math;const is=(e,t="lrgb",r=null)=>{const i=e.length;if(!r)r=Array.from(new Array(i)).map((()=>1));const n=i/r.reduce((function(e,t){return e+t}));r.forEach(((e,t)=>{r[t]*=n}));e=e.map((e=>new vn(e)));if(t==="lrgb"){return ns(e,r)}const o=e.shift();const s=o.get(t);const a=[];let l=0;let c=0;for(let e=0;e<s.length;e++){s[e]=(s[e]||0)*r[0];a.push(isNaN(s[e])?0:r[0]);if(t.charAt(e)==="h"&&!isNaN(s[e])){const t=s[e]/180*Jo;l+=es(t)*r[0];c+=ts(t)*r[0]}}let f=o.alpha()*r[0];e.forEach(((e,i)=>{const n=e.get(t);f+=e.alpha()*r[i+1];for(let e=0;e<s.length;e++){if(!isNaN(n[e])){a[e]+=r[i+1];if(t.charAt(e)==="h"){const t=n[e]/180*Jo;l+=es(t)*r[i+1];c+=ts(t)*r[i+1]}else{s[e]+=n[e]*r[i+1]}}}}));for(let e=0;e<s.length;e++){if(t.charAt(e)==="h"){let t=rs(c/a[e],l/a[e])/Jo*180;while(t<0)t+=360;while(t>=360)t-=360;s[e]=t}else{s[e]=s[e]/a[e]}}f/=i;return new vn(s,t).alpha(f>.99999?1:f,true)};const ns=(e,t)=>{const r=e.length;const i=[0,0,0,0];for(let n=0;n<e.length;n++){const o=e[n];const s=t[n]/r;const a=o._rgb;i[0]+=Ko(a[0],2)*s;i[1]+=Ko(a[1],2)*s;i[2]+=Ko(a[2],2)*s;i[3]+=a[3]*s}i[0]=Xo(i[0]);i[1]=Xo(i[1]);i[2]=Xo(i[2]);if(i[3]>.9999999)i[3]=1;return new vn(nn(i))};const{pow:os}=Math;function ss(e){let t="rgb";let r=An("#ccc");let i=0;let n=[0,1];let o=[];let s=[0,0];let a=false;let l=[];let c=false;let f=0;let u=1;let d=false;let p={};let h=true;let m=1;const b=function(e){e=e||["#fff","#000"];if(e&&sn(e)==="string"&&An.brewer&&An.brewer[e.toLowerCase()]){e=An.brewer[e.toLowerCase()]}if(sn(e)==="array"){if(e.length===1){e=[e[0],e[0]]}e=e.slice(0);for(let t=0;t<e.length;t++){e[t]=An(e[t])}o.length=0;for(let t=0;t<e.length;t++){o.push(t/(e.length-1))}}x();return l=e};const y=function(e){if(a!=null){const t=a.length-1;let r=0;while(r<t&&e>=a[r]){r++}return r-1}return 0};let w=e=>e;let g=e=>e;const v=function(e,i){let n,c;if(i==null){i=false}if(isNaN(e)||e===null){return r}if(!i){if(a&&a.length>2){const t=y(e);c=t/(a.length-2)}else if(u!==f){c=(e-f)/(u-f)}else{c=1}}else{c=e}c=g(c);if(!i){c=w(c)}if(m!==1){c=os(c,m)}c=s[0]+c*(1-s[0]-s[1]);c=rn(c,0,1);const d=Math.floor(c*1e4);if(h&&p[d]){n=p[d]}else{if(sn(l)==="array"){for(let e=0;e<o.length;e++){const r=o[e];if(c<=r){n=l[e];break}if(c>=r&&e===o.length-1){n=l[e];break}if(c>r&&c<o[e+1]){c=(c-r)/(o[e+1]-r);n=An.interpolate(l[e],l[e+1],c,t);break}}}else if(sn(l)==="function"){n=l(c)}if(h){p[d]=n}}return n};var x=()=>p={};b(e);const A=function(e){const t=An(v(e));if(c&&t[c]){return t[c]()}else{return t}};A.classes=function(e){if(e!=null){if(sn(e)==="array"){a=e;n=[e[0],e[e.length-1]]}else{const t=An.analyze(n);if(e===0){a=[t.min,t.max]}else{a=An.limits(t,"e",e)}}return A}return a};A.domain=function(e){if(!arguments.length){return n}f=e[0];u=e[e.length-1];o=[];const t=l.length;if(e.length===t&&f!==u){for(let t of Array.from(e)){o.push((t-f)/(u-f))}}else{for(let e=0;e<t;e++){o.push(e/(t-1))}if(e.length>2){const t=e.map(((t,r)=>r/(e.length-1)));const r=e.map((e=>(e-f)/(u-f)));if(!r.every(((e,r)=>t[r]===e))){g=e=>{if(e<=0||e>=1)return e;let i=0;while(e>=r[i+1])i++;const n=(e-r[i])/(r[i+1]-r[i]);const o=t[i]+n*(t[i+1]-t[i]);return o}}}}n=[f,u];return A};A.mode=function(e){if(!arguments.length){return t}t=e;x();return A};A.range=function(e,t){b(e);return A};A.out=function(e){c=e;return A};A.spread=function(e){if(!arguments.length){return i}i=e;return A};A.correctLightness=function(e){if(e==null){e=true}d=e;x();if(d){w=function(e){const t=v(0,true).lab()[0];const r=v(1,true).lab()[0];const i=t>r;let n=v(e,true).lab()[0];const o=t+(r-t)*e;let s=n-o;let a=0;let l=1;let c=20;while(Math.abs(s)>.01&&c-- >0){(function(){if(i){s*=-1}if(s<0){a=e;e+=(l-e)*.5}else{l=e;e+=(a-e)*.5}n=v(e,true).lab()[0];return s=n-o})()}return e}}else{w=e=>e}return A};A.padding=function(e){if(e!=null){if(sn(e)==="number"){e=[e,e]}s=e;return A}else{return s}};A.colors=function(t,r){if(arguments.length<2){r="hex"}let i=[];if(arguments.length===0){i=l.slice(0)}else if(t===1){i=[A(.5)]}else if(t>1){const e=n[0];const r=n[1]-e;i=as(0,t,false).map((i=>A(e+i/(t-1)*r)))}else{e=[];let t=[];if(a&&a.length>2){for(let e=1,r=a.length,i=1<=r;i?e<r:e>r;i?e++:e--){t.push((a[e-1]+a[e])*.5)}}else{t=n}i=t.map((e=>A(e)))}if(An[r]){i=i.map((e=>e[r]()))}return i};A.cache=function(e){if(e!=null){h=e;return A}else{return h}};A.gamma=function(e){if(e!=null){m=e;return A}else{return m}};A.nodata=function(e){if(e!=null){r=An(e);return A}else{return r}};return A}function as(e,t,r){let i=[];let n=e<t;let o=!r?t:n?t+1:t-1;for(let t=e;n?t<o:t>o;n?t++:t--){i.push(t)}return i}const ls=function(e){let t=[1,1];for(let r=1;r<e;r++){let e=[1];for(let r=1;r<=t.length;r++){e[r]=(t[r]||0)+t[r-1]}t=e}return t};const cs=function(e){let t,r,i,n;e=e.map((e=>new vn(e)));if(e.length===2){[r,i]=e.map((e=>e.lab()));t=function(e){const t=[0,1,2].map((t=>r[t]+e*(i[t]-r[t])));return new vn(t,"lab")}}else if(e.length===3){[r,i,n]=e.map((e=>e.lab()));t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*r[t]+2*(1-e)*e*i[t]+e*e*n[t]));return new vn(t,"lab")}}else if(e.length===4){let o;[r,i,n,o]=e.map((e=>e.lab()));t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*(1-e)*r[t]+3*(1-e)*(1-e)*e*i[t]+3*(1-e)*e*e*n[t]+e*e*e*o[t]));return new vn(t,"lab")}}else if(e.length>=5){let r,i,n;r=e.map((e=>e.lab()));n=e.length-1;i=ls(n);t=function(e){const t=1-e;const o=[0,1,2].map((o=>r.reduce(((r,s,a)=>r+i[a]*t**(n-a)*e**a*s[o]),0)));return new vn(o,"lab")}}else{throw new RangeError("No point in running bezier with only one color.")}return t};const fs=e=>{const t=cs(e);t.scale=()=>ss(t);return t};const{round:us}=Math;vn.prototype.rgb=function(e=true){if(e===false)return this._rgb.slice(0,3);return this._rgb.slice(0,3).map(us)};vn.prototype.rgba=function(e=true){return this._rgb.slice(0,4).map(((t,r)=>r<3?e===false?t:us(t):t))};const ds=(...e)=>new vn(...e,"rgb");Object.assign(An,{rgb:ds});gn.format.rgb=(...e)=>{const t=an(e,"rgba");if(t[3]===undefined)t[3]=1;return t};gn.autodetect.push({p:3,test:(...e)=>{e=an(e,"rgba");if(sn(e)==="array"&&(e.length===3||e.length===4&&sn(e[3])=="number"&&e[3]>=0&&e[3]<=1)){return"rgb"}}});const ps=(e,t,r)=>{if(!ps[r]){throw new Error("unknown blend mode "+r)}return ps[r](e,t)};const hs=e=>(t,r)=>{const i=An(r).rgb();const n=An(t).rgb();return An.rgb(e(i,n))};const ms=e=>(t,r)=>{const i=[];i[0]=e(t[0],r[0]);i[1]=e(t[1],r[1]);i[2]=e(t[2],r[2]);return i};const bs=e=>e;const ys=(e,t)=>e*t/255;const ws=(e,t)=>e>t?t:e;const gs=(e,t)=>e>t?e:t;const vs=(e,t)=>255*(1-(1-e/255)*(1-t/255));const xs=(e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255));const As=(e,t)=>255*(1-(1-t/255)/(e/255));const _s=(e,t)=>{if(e===255)return 255;e=255*(t/255)/(1-e/255);return e>255?255:e};ps.normal=hs(ms(bs));ps.multiply=hs(ms(ys));ps.screen=hs(ms(vs));ps.overlay=hs(ms(xs));ps.darken=hs(ms(ws));ps.lighten=hs(ms(gs));ps.dodge=hs(ms(_s));ps.burn=hs(ms(As));const{pow:ks,sin:Ss,cos:js}=Math;function Es(e=300,t=-1.5,r=1,i=1,n=[0,1]){let o=0,s;if(sn(n)==="array"){s=n[1]-n[0]}else{s=0;n=[n,n]}const a=function(a){const l=hn*((e+120)/360+t*a);const c=ks(n[0]+s*a,i);const f=o!==0?r[0]+a*o:r;const u=f*c*(1-c)/2;const d=js(l);const p=Ss(l);const h=c+u*(-.14861*d+1.78277*p);const m=c+u*(-.29227*d-.90649*p);const b=c+u*(+1.97294*d);return An(nn([h*255,m*255,b*255,1]))};a.start=function(t){if(t==null){return e}e=t;return a};a.rotations=function(e){if(e==null){return t}t=e;return a};a.gamma=function(e){if(e==null){return i}i=e;return a};a.hue=function(e){if(e==null){return r}r=e;if(sn(r)==="array"){o=r[1]-r[0];if(o===0){r=r[1]}}else{o=0}return a};a.lightness=function(e){if(e==null){return n}if(sn(e)==="array"){n=e;s=e[1]-e[0]}else{n=[e,e];s=0}return a};a.scale=()=>An.scale(a);a.hue(r);return a}const Ms="0123456789abcdef";const{floor:Cs,random:Os}=Math;const $s=()=>{let e="#";for(let t=0;t<6;t++){e+=Ms.charAt(Cs(Os()*16))}return new vn(e,"hex")};const{log:Ps,pow:Is,floor:Bs,abs:zs}=Math;function Ts(e,t=null){const r={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};if(sn(e)==="object"){e=Object.values(e)}e.forEach((e=>{if(t&&sn(e)==="object")e=e[t];if(e!==undefined&&e!==null&&!isNaN(e)){r.values.push(e);r.sum+=e;if(e<r.min)r.min=e;if(e>r.max)r.max=e;r.count+=1}}));r.domain=[r.min,r.max];r.limits=(e,t)=>Rs(r,e,t);return r}function Rs(e,t="equal",r=7){if(sn(e)=="array"){e=Ts(e)}const{min:i,max:n}=e;const o=e.values.sort(((e,t)=>e-t));if(r===1){return[i,n]}const s=[];if(t.substr(0,1)==="c"){s.push(i);s.push(n)}if(t.substr(0,1)==="e"){s.push(i);for(let e=1;e<r;e++){s.push(i+e/r*(n-i))}s.push(n)}else if(t.substr(0,1)==="l"){if(i<=0){throw new Error("Logarithmic scales are only possible for values > 0")}const e=Math.LOG10E*Ps(i);const t=Math.LOG10E*Ps(n);s.push(i);for(let i=1;i<r;i++){s.push(Is(10,e+i/r*(t-e)))}s.push(n)}else if(t.substr(0,1)==="q"){s.push(i);for(let e=1;e<r;e++){const t=(o.length-1)*e/r;const i=Bs(t);if(i===t){s.push(o[i])}else{const e=t-i;s.push(o[i]*(1-e)+o[i+1]*e)}}s.push(n)}else if(t.substr(0,1)==="k"){let e;const t=o.length;const a=new Array(t);const l=new Array(r);let c=true;let f=0;let u=null;u=[];u.push(i);for(let e=1;e<r;e++){u.push(i+e/r*(n-i))}u.push(n);while(c){for(let e=0;e<r;e++){l[e]=0}for(let e=0;e<t;e++){const t=o[e];let i=Number.MAX_VALUE;let n;for(let o=0;o<r;o++){const r=zs(u[o]-t);if(r<i){i=r;n=o}l[n]++;a[e]=n}}const i=new Array(r);for(let e=0;e<r;e++){i[e]=null}for(let r=0;r<t;r++){e=a[r];if(i[e]===null){i[e]=o[r]}else{i[e]+=o[r]}}for(let e=0;e<r;e++){i[e]*=1/l[e]}c=false;for(let e=0;e<r;e++){if(i[e]!==u[e]){c=true;break}}u=i;f++;if(f>200){c=false}}const d={};for(let e=0;e<r;e++){d[e]=[]}for(let r=0;r<t;r++){e=a[r];d[e].push(o[r])}let p=[];for(let e=0;e<r;e++){p.push(d[e][0]);p.push(d[e][d[e].length-1])}p=p.sort(((e,t)=>e-t));s.push(p[0]);for(let e=1;e<p.length;e+=2){const t=p[e];if(!isNaN(t)&&s.indexOf(t)===-1){s.push(t)}}}return s}const Fs=(e,t)=>{e=new vn(e);t=new vn(t);const r=e.luminance();const i=t.luminance();return r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)};
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
*
|
|
5
|
+
* The APCA contrast prediction algorithm is based of the formulas published
|
|
6
|
+
* in the APCA-1.0.98G specification by Myndex. The specification is available at:
|
|
7
|
+
* https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
|
|
8
|
+
*
|
|
9
|
+
* Note that the APCA implementation is still beta, so please update to
|
|
10
|
+
* future versions of chroma.js when they become available.
|
|
11
|
+
*
|
|
12
|
+
* You can read more about the APCA Readability Criterion at
|
|
13
|
+
* https://readtech.org/ARC/
|
|
14
|
+
*/const Ns=.027;const Gs=5e-4;const Ls=.1;const Ds=1.14;const Ys=.022;const Ws=1.414;const Us=(e,t)=>{e=new vn(e);t=new vn(t);if(e.alpha()<1){e=Zn(t,e,e.alpha(),"rgb")}const r=Hs(...e.rgb());const i=Hs(...t.rgb());const n=r>=Ys?r:r+Math.pow(Ys-r,Ws);const o=i>=Ys?i:i+Math.pow(Ys-i,Ws);const s=Math.pow(o,.56)-Math.pow(n,.57);const a=Math.pow(o,.65)-Math.pow(n,.62);const l=Math.abs(o-n)<Gs?0:n<o?s*Ds:a*Ds;const c=Math.abs(l)<Ls?0:l>0?l-Ns:l+Ns;return c*100};function Hs(e,t,r){return.2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(r/255,2.4)}const{sqrt:qs,pow:Zs,min:Vs,max:Qs,atan2:Ks,abs:Xs,cos:Js,sin:ea,exp:ta,PI:ra}=Math;function ia(e,t,r=1,i=1,n=1){var o=function(e){return 360*e/(2*ra)};var s=function(e){return 2*ra*e/360};e=new vn(e);t=new vn(t);const[a,l,c]=Array.from(e.lab());const[f,u,d]=Array.from(t.lab());const p=(a+f)/2;const h=qs(Zs(l,2)+Zs(c,2));const m=qs(Zs(u,2)+Zs(d,2));const b=(h+m)/2;const y=.5*(1-qs(Zs(b,7)/(Zs(b,7)+Zs(25,7))));const w=l*(1+y);const g=u*(1+y);const v=qs(Zs(w,2)+Zs(c,2));const x=qs(Zs(g,2)+Zs(d,2));const A=(v+x)/2;const _=o(Ks(c,w));const k=o(Ks(d,g));const S=_>=0?_:_+360;const j=k>=0?k:k+360;const E=Xs(S-j)>180?(S+j+360)/2:(S+j)/2;const M=1-.17*Js(s(E-30))+.24*Js(s(2*E))+.32*Js(s(3*E+6))-.2*Js(s(4*E-63));let C=j-S;C=Xs(C)<=180?C:j<=S?C+360:C-360;C=2*qs(v*x)*ea(s(C)/2);const O=f-a;const $=x-v;const P=1+.015*Zs(p-50,2)/qs(20+Zs(p-50,2));const I=1+.045*A;const B=1+.015*A*M;const z=30*ta(-Zs((E-275)/25,2));const T=2*qs(Zs(A,7)/(Zs(A,7)+Zs(25,7)));const R=-T*ea(2*s(z));const F=qs(Zs(O/(r*P),2)+Zs($/(i*I),2)+Zs(C/(n*B),2)+R*($/(i*I))*(C/(n*B)));return Qs(0,Vs(100,F))}function na(e,t,r="lab"){e=new vn(e);t=new vn(t);const i=e.get(r);const n=t.get(r);let o=0;for(let e in i){const t=(i[e]||0)-(n[e]||0);o+=t*t}return Math.sqrt(o)}const oa=(...e)=>{try{new vn(...e);return true}catch(e){return false}};const sa={cool(){return ss([An.hsl(180,1,.9),An.hsl(250,.7,.4)])},hot(){return ss(["#000","#f00","#ff0","#fff"]).mode("rgb")}};const aa={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]};const la=Object.keys(aa);const ca=new Map(la.map((e=>[e.toLowerCase(),e])));const fa=typeof Proxy==="function"?new Proxy(aa,{get(e,t){const r=t.toLowerCase();if(ca.has(r)){return e[ca.get(r)]}},getOwnPropertyNames(){return Object.getOwnPropertyNames(la)}}):aa;const ua=(...e)=>{e=an(e,"cmyk");const[t,r,i,n]=e;const o=e.length>4?e[4]:1;if(n===1)return[0,0,0,o];return[t>=1?0:255*(1-t)*(1-n),r>=1?0:255*(1-r)*(1-n),i>=1?0:255*(1-i)*(1-n),o]};const{max:da}=Math;const pa=(...e)=>{let[t,r,i]=an(e,"rgb");t=t/255;r=r/255;i=i/255;const n=1-da(t,da(r,i));const o=n<1?1/(1-n):0;const s=(1-t-n)*o;const a=(1-r-n)*o;const l=(1-i-n)*o;return[s,a,l,n]};vn.prototype.cmyk=function(){return pa(this._rgb)};const ha=(...e)=>new vn(...e,"cmyk");Object.assign(An,{cmyk:ha});gn.format.cmyk=ua;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"cmyk");if(sn(e)==="array"&&e.length===4){return"cmyk"}}});const ma=(...e)=>{const t=an(e,"hsla");let r=ln(e)||"lsa";t[0]=dn(t[0]||0)+"deg";t[1]=dn(t[1]*100)+"%";t[2]=dn(t[2]*100)+"%";if(r==="hsla"||t.length>3&&t[3]<1){t[3]="/ "+(t.length>3?t[3]:1);r="hsla"}else{t.length=3}return`${r.substr(0,3)}(${t.join(" ")})`};const ba=(...e)=>{const t=an(e,"lab");let r=ln(e)||"lab";t[0]=dn(t[0])+"%";t[1]=dn(t[1]);t[2]=dn(t[2]);if(r==="laba"||t.length>3&&t[3]<1){t[3]="/ "+(t.length>3?t[3]:1)}else{t.length=3}return`lab(${t.join(" ")})`};const ya=(...e)=>{const t=an(e,"lch");let r=ln(e)||"lab";t[0]=dn(t[0])+"%";t[1]=dn(t[1]);t[2]=isNaN(t[2])?"none":dn(t[2])+"deg";if(r==="lcha"||t.length>3&&t[3]<1){t[3]="/ "+(t.length>3?t[3]:1)}else{t.length=3}return`lch(${t.join(" ")})`};const wa=(...e)=>{const t=an(e,"lab");t[0]=dn(t[0]*100)+"%";t[1]=pn(t[1]);t[2]=pn(t[2]);if(t.length>3&&t[3]<1){t[3]="/ "+(t.length>3?t[3]:1)}else{t.length=3}return`oklab(${t.join(" ")})`};const ga=(...e)=>{const[t,r,i,...n]=an(e,"rgb");const[o,s,a]=Ho(t,r,i);const[l,c,f]=io(o,s,a);return[l,c,f,...n.length>0&&n[0]<1?[n[0]]:[]]};const va=(...e)=>{const t=an(e,"lch");t[0]=dn(t[0]*100)+"%";t[1]=pn(t[1]);t[2]=isNaN(t[2])?"none":dn(t[2])+"deg";if(t.length>3&&t[3]<1){t[3]="/ "+(t.length>3?t[3]:1)}else{t.length=3}return`oklch(${t.join(" ")})`};const{round:xa}=Math;const Aa=(...e)=>{const t=an(e,"rgba");let r=ln(e)||"rgb";if(r.substr(0,3)==="hsl"){return ma(Io(t),r)}if(r.substr(0,3)==="lab"){const e=Pn();$n("d50");const i=ba(Rn(t),r);$n(e);return i}if(r.substr(0,3)==="lch"){const e=Pn();$n("d50");const i=ya(no(t),r);$n(e);return i}if(r.substr(0,5)==="oklab"){return wa(Ho(t))}if(r.substr(0,5)==="oklch"){return va(ga(t))}t[0]=xa(t[0]);t[1]=xa(t[1]);t[2]=xa(t[2]);if(r==="rgba"||t.length>3&&t[3]<1){t[3]="/ "+(t.length>3?t[3]:1);r="rgba"}return`${r.substr(0,3)}(${t.slice(0,r==="rgb"?3:4).join(" ")})`};const _a=(...e)=>{e=an(e,"lch");const[t,r,i,...n]=e;const[o,s,a]=Kn(t,r,i);const[l,c,f]=Wo(o,s,a);return[l,c,f,...n.length>0&&n[0]<1?[n[0]]:[]]};const ka=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source;const Sa=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source;const ja=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source;const Ea=/\s*/.source;const Ma=/\s+/.source;const Ca=/\s*,\s*/.source;const Oa=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source;const $a=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source;const Pa=new RegExp("^rgba?\\("+Ea+[ka,ka,ka].join(Ma)+$a+"\\)$");const Ia=new RegExp("^rgb\\("+Ea+[ka,ka,ka].join(Ca)+Ea+"\\)$");const Ba=new RegExp("^rgba\\("+Ea+[ka,ka,ka,Sa].join(Ca)+Ea+"\\)$");const za=new RegExp("^hsla?\\("+Ea+[Oa,ja,ja].join(Ma)+$a+"\\)$");const Ta=new RegExp("^hsl?\\("+Ea+[Oa,ja,ja].join(Ca)+Ea+"\\)$");const Ra=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/;const Fa=new RegExp("^lab\\("+Ea+[Sa,Sa,Sa].join(Ma)+$a+"\\)$");const Na=new RegExp("^lch\\("+Ea+[Sa,Sa,Oa].join(Ma)+$a+"\\)$");const Ga=new RegExp("^oklab\\("+Ea+[Sa,Sa,Sa].join(Ma)+$a+"\\)$");const La=new RegExp("^oklch\\("+Ea+[Sa,Sa,Oa].join(Ma)+$a+"\\)$");const{round:Da}=Math;const Ya=e=>e.map(((e,t)=>t<=2?rn(Da(e),0,255):e));const Wa=(e,t=0,r=100,i=false)=>{if(typeof e==="string"&&e.endsWith("%")){e=parseFloat(e.substring(0,e.length-1))/100;if(i){e=t+(e+1)*.5*(r-t)}else{e=t+e*(r-t)}}return+e};const Ua=(e,t)=>e==="none"?t:e;const Ha=e=>{e=e.toLowerCase().trim();if(e==="transparent"){return[0,0,0,0]}let t;if(gn.format.named){try{return gn.format.named(e)}catch(e){}}if((t=e.match(Pa))||(t=e.match(Ia))){let e=t.slice(1,4);for(let t=0;t<3;t++){e[t]=+Wa(Ua(e[t],0),0,255)}e=Ya(e);const r=t[4]!==undefined?+Wa(t[4],0,1):1;e[3]=r;return e}if(t=e.match(Ba)){const e=t.slice(1,5);for(let t=0;t<4;t++){e[t]=+Wa(e[t],0,255)}return e}if((t=e.match(za))||(t=e.match(Ta))){const e=t.slice(1,4);e[0]=+Ua(e[0].replace("deg",""),0);e[1]=+Wa(Ua(e[1],0),0,100)*.01;e[2]=+Wa(Ua(e[2],0),0,100)*.01;const r=Ya(Po(e));const i=t[4]!==undefined?+Wa(t[4],0,1):1;r[3]=i;return r}if(t=e.match(Ra)){const e=t.slice(1,4);e[1]*=.01;e[2]*=.01;const r=Po(e);for(let e=0;e<3;e++){r[e]=Da(r[e])}r[3]=+t[4];return r}if(t=e.match(Fa)){const e=t.slice(1,4);e[0]=Wa(Ua(e[0],0),0,100);e[1]=Wa(Ua(e[1],0),-125,125,true);e[2]=Wa(Ua(e[2],0),-125,125,true);const r=Pn();$n("d50");const i=Ya(In(e));$n(r);const n=t[4]!==undefined?+Wa(t[4],0,1):1;i[3]=n;return i}if(t=e.match(Na)){const e=t.slice(1,4);e[0]=Wa(e[0],0,100);e[1]=Wa(Ua(e[1],0),0,150,false);e[2]=+Ua(e[2].replace("deg",""),0);const r=Pn();$n("d50");const i=Ya(Xn(e));$n(r);const n=t[4]!==undefined?+Wa(t[4],0,1):1;i[3]=n;return i}if(t=e.match(Ga)){const e=t.slice(1,4);e[0]=Wa(Ua(e[0],0),0,1);e[1]=Wa(Ua(e[1],0),-.4,.4,true);e[2]=Wa(Ua(e[2],0),-.4,.4,true);const r=Ya(Wo(e));const i=t[4]!==undefined?+Wa(t[4],0,1):1;r[3]=i;return r}if(t=e.match(La)){const e=t.slice(1,4);e[0]=Wa(Ua(e[0],0),0,1);e[1]=Wa(Ua(e[1],0),0,.4,false);e[2]=+Ua(e[2].replace("deg",""),0);const r=Ya(_a(e));const i=t[4]!==undefined?+Wa(t[4],0,1):1;r[3]=i;return r}};Ha.test=e=>Pa.test(e)||za.test(e)||Fa.test(e)||Na.test(e)||Ga.test(e)||La.test(e)||Ia.test(e)||Ba.test(e)||Ta.test(e)||Ra.test(e)||e==="transparent";vn.prototype.css=function(e){return Aa(this._rgb,e)};const qa=(...e)=>new vn(...e,"css");An.css=qa;gn.format.css=Ha;gn.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&sn(e)==="string"&&Ha.test(e)){return"css"}}});gn.format.gl=(...e)=>{const t=an(e,"rgba");t[0]*=255;t[1]*=255;t[2]*=255;return t};const Za=(...e)=>new vn(...e,"gl");An.gl=Za;vn.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};vn.prototype.hex=function(e){return Mn(this._rgb,e)};const Va=(...e)=>new vn(...e,"hex");An.hex=Va;gn.format.hex=jn;gn.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&sn(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0){return"hex"}}});const{log:Qa}=Math;const Ka=e=>{const t=e/100;let r,i,n;if(t<66){r=255;i=t<6?0:-155.25485562709179-.44596950469579133*(i=t-2)+104.49216199393888*Qa(i);n=t<20?0:-254.76935184120902+.8274096064007395*(n=t-10)+115.67994401066147*Qa(n)}else{r=351.97690566805693+.114206453784165*(r=t-55)-40.25366309332127*Qa(r);i=325.4494125711974+.07943456536662342*(i=t-50)-28.0852963507957*Qa(i);n=255}return[r,i,n,1]};const{round:Xa}=Math;const Ja=(...e)=>{const t=an(e,"rgb");const r=t[0],i=t[2];let n=1e3;let o=4e4;const s=.4;let a;while(o-n>s){a=(o+n)*.5;const e=Ka(a);if(e[2]/e[0]>=i/r){o=a}else{n=a}}return Xa(a)};vn.prototype.temp=vn.prototype.kelvin=vn.prototype.temperature=function(){return Ja(this._rgb)};const el=(...e)=>new vn(...e,"temp");Object.assign(An,{temp:el,kelvin:el,temperature:el});gn.format.temp=gn.format.kelvin=gn.format.temperature=Ka;vn.prototype.oklch=function(){return ga(this._rgb)};const tl=(...e)=>new vn(...e,"oklch");Object.assign(An,{oklch:tl});gn.format.oklch=_a;gn.autodetect.push({p:2,test:(...e)=>{e=an(e,"oklch");if(sn(e)==="array"&&e.length===3){return"oklch"}}});Object.assign(An,{analyze:Ts,average:is,bezier:fs,blend:ps,brewer:fa,Color:vn,colors:_n,contrast:Fs,contrastAPCA:Us,cubehelix:Es,deltaE:ia,distance:na,input:gn,interpolate:Zn,limits:Rs,mix:Zn,random:$s,scale:ss,scales:sa,valid:oa});const rl='@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); .tinting-wrapper *{font-family:"Poppins", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:60px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal{padding:40px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__see-more{font-size:16px;display:flex;justify-content:left;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__see-more.big{font-size:20px;margin-bottom:8px}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .not-found{padding:100px 0px}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper .boxes__list{justify-content:center}}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content{margin:0 auto}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info{min-height:auto}}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info h2{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info .divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info .divider{margin:10px 0px;display:none}}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start;margin-top:30px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value{flex-direction:column}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-image{margin:0 auto;margin-bottom:10px}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product>div{flex-direction:column}}.my-modal__wrapper .boxes__box-content__info__tester{display:flex;flex-direction:column;gap:15px;width:100%}.my-modal__wrapper .boxes__box-content__info__tester .tester-text h2{margin:0 0 10px;font-size:18px;font-weight:700}.my-modal__wrapper .boxes__box-content__info__tester .tester-text p{margin:0;font-size:14px}.my-modal__wrapper .boxes__box-content__info__tester .tester-buy{display:flex;align-items:center;gap:15px;width:100%;flex-wrap:nowrap;min-width:0}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__tester .tester-buy{flex-direction:column;align-items:flex-start}}.my-modal__wrapper .boxes__box-content__info .price{font-size:20px;font-weight:600}.my-modal__wrapper .boxes__box-content__slider{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block;min-width:100%;max-width:100%}}.my-modal__wrapper .boxes__box-content__slider .color-big-image{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider .color-big-image{height:300px}}.my-modal__wrapper .boxes__box-content__white *{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}.my-modal .button,.my-modal a{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer;display:flex;align-items:center;gap:5px}.my-modal .button .shape-icon,.my-modal a .shape-icon{display:inline-flex}.my-modal .button .shape-icon svg,.my-modal a .shape-icon svg{display:block}.my-modal .button .shape-icon path,.my-modal .button .shape-icon .shape-icon__path,.my-modal a .shape-icon path,.my-modal a .shape-icon .shape-icon__path{fill:currentColor;transition:fill 0.7s ease-in-out}.my-modal .button.fit,.my-modal a.fit{padding:10px 15px}.my-modal .button:hover,.my-modal a:hover{color:#fff;background-color:#232323}.my-modal .button.brown,.my-modal a.brown{background-color:#3c2114;color:#fff}.my-modal .button.brown:hover,.my-modal a.brown:hover{color:#fff;background-color:#232323}.my-modal .button.inverse,.my-modal a.inverse{background-color:#232323;color:#fff}.my-modal .button.inverse:hover,.my-modal a.inverse:hover{color:#232323;background-color:#fff}.my-modal .button.inverse svg path,.my-modal a.inverse svg path{fill:#fff}.my-modal .button:disabled,.my-modal .button.disabled,.my-modal a:disabled,.my-modal a.disabled{cursor:not-allowed;opacity:0.5}.my-modal .button.is-loading,.my-modal a.is-loading{position:relative;cursor:wait}.my-modal .button.is-loading:hover,.my-modal a.is-loading:hover{background-color:inherit;color:inherit}.my-modal .button.is-loading .button-content,.my-modal a.is-loading .button-content{visibility:hidden}.my-modal .button.is-loading .spinner,.my-modal a.is-loading .spinner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;animation:basket-spin 0.9s linear infinite;color:currentColor}.my-modal .button.is-loading .spinner svg,.my-modal a.is-loading .spinner svg{display:block}.my-modal .button .button-content,.my-modal a .button-content{display:inline-flex;align-items:center;gap:5px}@media (max-width: 1024px){.my-modal .button,.my-modal a{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.my-modal .button,.my-modal a{margin:0 auto}}.my-modal>.button{margin:10px auto}.my-modal .basket-status{cursor:default;pointer-events:none;max-width:100%;min-width:0}.my-modal .basket-status--success{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;background-color:#fff;color:#232323;border-radius:28px 28px 28px 0;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);font-size:14px;white-space:nowrap;animation:basket-success-in 0.25s ease-out;max-width:100%;min-width:0;flex:1 1 auto}.my-modal .basket-status--success>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.my-modal .basket-status--success .check-icon{display:inline-flex;color:#2bb673}.my-modal .basket-status--success .check-icon svg{display:block;width:20px;height:20px}.my-modal .basket-status--success strong{font-weight:700}.my-modal .basket-status--success.inverse{background-color:#232323;color:#fff}.my-modal .basket-status--success.brown{background-color:#3c2114;color:#fff}@media (max-width: 1024px){.my-modal .basket-status--success{font-size:13px;padding:12px 22px;border-radius:22px 22px 22px 0;white-space:normal;width:100%;justify-content:center}}@keyframes basket-spin{to{transform:rotate(360deg)}}@keyframes basket-success-in{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:translateX(0)}}';const il=class{constructor(r){e(this,r);this.onSelectedColorEmit=t(this,"onSelectedColorEmit",7);this.clearSearchText=t(this,"clearSearchText",7);this.close=t(this,"close",7);this.readyToCLose=t(this,"readyToCLose",7);this.boxDesktopWidth=130;this.boxMobileWidth=70;this.desktopPadding=75;this.mobilePadding=35;this.mediumBreakpoint=1024;this.clearInterval=()=>{this.colorTimerInterval&&clearInterval(this.colorTimerInterval);this.colorTimerInterval=undefined};this.colorTimer=()=>{if(this.currentColor&&this.currentColor.id){this.colorTimerInterval=setInterval((()=>{var e,t;((e=this.currentColor)===null||e===void 0?void 0:e.name)&&Ai({event:"ColorTimer",shop:this.shop,product:this.product,color:(t=this.currentColor)===null||t===void 0?void 0:t.name,timer:"10"})}),1e4)}else{this.clearInterval()}};this.chunks=(e,t=[])=>(e===null||e===void 0?void 0:e.length)===0?t:this.chunks(e===null||e===void 0?void 0:e.slice(this.chunksNum),t.concat([e===null||e===void 0?void 0:e.slice(0,this.chunksNum)]));this.calculateBoxCount=()=>{var e;const t=this.modalEl.children&&this.modalEl.children[0]&&((e=this.modalEl.children[0])===null||e===void 0?void 0:e.clientWidth)-this.padding;const r=this.boxWidth;const i=Math.floor(t/r);const n=i;if(!this.preloader)this.chunksNum=n};this.displayForMobile=()=>{if(window.innerWidth<this.mediumBreakpoint){this.boxWidth=this.boxMobileWidth;this.padding=this.mobilePadding;this.isMobile=true}else{this.isMobile=false;this.boxWidth=this.boxDesktopWidth;this.padding=this.desktopPadding}};this.handleSampleSelect=e=>{this.currentColor=null;this.selectedCategory=e.value;this.updateFilterAndFetch({sampleId:e.value,colorFamily:""})};this.shop=undefined;this.product=undefined;this.baselink=undefined;this.available_testers=undefined;this.price=undefined;this.selectedcolor=undefined;this.arrowDown="arrow_down.png";this.chunksNum=12;this.data=null;this.preloader=false;this.loading=false;this.currentColor=null;this.currentIndex=null;this.infoBoxWidth=null;this.boxWidth=this.boxDesktopWidth;this.padding=this.desktopPadding;this.isMobile=false;this.showRange=false;this.colorCategories=null;this.selectedCategory=null;this.page=1;this.colorIsSelected=false;this.colorsList=[];this.hasMore=true;this.filters={type:"product",id:"",productId:"",page:1,colorNumber:"",colorName:""};this.debouncedSearchColorsHandler=ki(this.searchColor.bind(this),300)}setInfoBoxWidth(e){this.infoBoxWidth=e*this.boxWidth}watchPropHandler(e){if(e){this.filters=yi(this.filters,{id:e.id,type:"product"});this.fetchColorsData()}}async open(){this.modalEl.style.display="block"}closeModalHandler(){this.close.emit()}handleReadyToClose(e){this.readyToCLose.emit({observable:e})}closeInfoBoxHandler(){this.currentColor=null;this.currentIndex=null}handleEmitColor(e){this.onSelectedColorEmit.emit(e.detail)}addToBasketHandler(e){return e.detail.id}handleResize(){this.calculateBoxCount();this.displayForMobile()}sortColorsBySimilarity(e){if((e===null||e===void 0?void 0:e.length)<=1)return e;const t=[];const r=[...e];t.push(r.shift());while((r===null||r===void 0?void 0:r.length)>0){const e=t[(t===null||t===void 0?void 0:t.length)-1];let i=0;let n=Infinity;r.forEach(((t,r)=>{try{if(!t.hex||!e.hex){return}const o=An.distance(e.hex,t.hex,"lab");if(o<n){n=o;i=r}}catch(e){console.warn(`Error calculating color distance for ${t.hex}:`,e)}}));t.push(r.splice(i,1)[0])}return t}getColorHueGroup(e){try{if(!e||typeof e!=="string"){return"other"}const t=e.startsWith("#")?e:`#${e}`;if(!/^#[0-9A-Fa-f]{6}$/.test(t)){console.warn(`Invalid hex color format: ${e}`);return"other"}const r=An(t);const i=r.get("hsl.h");const n=r.get("hsl.s");const o=r.get("hsl.l");if(n<.1){if(o<.2)return"black";if(o>.8)return"white";return"gray"}if(i>=330||i<30)return"red";if(i>=30&&i<90)return"yellow";if(i>=90&&i<150)return"green";if(i>=150&&i<210)return"cyan";if(i>=210&&i<270)return"blue";if(i>=270&&i<330)return"magenta";return"other"}catch(t){console.warn(`Error parsing color "${e}":`,t);return"other"}}sortColorsByHueAndSimilarity(e){if((e===null||e===void 0?void 0:e.length)<=1)return e;const t=e.filter((e=>{if(!e.hex||typeof e.hex!=="string"){console.warn(`Color missing hex value:`,e);return false}const t=e.hex.startsWith("#")?e.hex:`#${e.hex}`;const r=/^#[0-9A-Fa-f]{6}$/.test(t);if(!r){console.warn(`Invalid hex color format: ${e.hex} for color:`,e)}return r}));const r={red:[],yellow:[],green:[],cyan:[],blue:[],magenta:[],gray:[],black:[],white:[],other:[]};t.forEach((e=>{const t=this.getColorHueGroup(e.hex);r[t].push(e)}));const i=[];const n=["red","magenta","blue","cyan","green","yellow","gray","black","white","other"];n.forEach((e=>{if(r[e].length>0){i.push(this.sortColorsBySimilarity(r[e]))}}));return i.flat()}async fetchColorsData({reset:e=false}={}){if(this.loading&&!e)return;this.loading=true;try{const t=await di(this.filters);if(e){this.colorsList=this.sortColorsByHueAndSimilarity(t)}else{this.colorsList=this.sortColorsByHueAndSimilarity([...this.colorsList,...t])}this.hasMore=t.length>=fi}catch(e){console.error("Error fetching colors:",e)}finally{this.loading=false}}async loadProductData(){this.preloader=true;const e=await mi({shopName:this.shop,productName:this.product});if(e){this.data=e;this.filters=yi(this.filters,{type:"product",id:e.id});await this.fetchColorsData()}this.preloader=false}async loadMoreColors(){if(this.loading||!this.hasMore)return;this.filters=Object.assign(Object.assign({},this.filters),{page:this.filters.page+1});await this.fetchColorsData({reset:false})}updateFilterAndFetch(e){var t;if(!((t=this.data)===null||t===void 0?void 0:t.id))return;this.loading=true;this.filters=yi(this.filters,Object.assign(Object.assign({id:this.data.id,sampleId:this.filters.sampleId,colorName:this.filters.colorName},e),{page:1}));this.fetchColorsData({reset:true}).finally((()=>{this.loading=false}))}async searchColor(e){var t;const r=(t=e.detail)===null||t===void 0?void 0:t.trim();this.updateFilterAndFetch({colorName:r})}handleColorFamilySelected(e){this.currentColor=null;if(e.detail===this.filters.colorFamily){this.filters=yi(this.filters,{colorFamily:""});this.updateFilterAndFetch({colorFamily:""})}else{this.filters=yi(this.filters,{colorFamily:e.detail});this.updateFilterAndFetch({colorFamily:e.detail})}}searchColorsHandler(e){this.loading=true;this.currentColor=null;this.debouncedSearchColorsHandler(e)}handleScroll(e,t){if(this.loading||!this.hasMore)return;const r=t.scrollTop;const i=t.scrollHeight;const n=t.clientHeight;if(r+n>=i-50){this.loadMoreColors()}}openSeletedColor(){var e,t;if(!this.colorsList||!this.selectedcolor)return;if(!this.colorIsSelected){const r=this.chunks(this.colorsList).map(((e,t)=>{const r=e.find((e=>{var t,r,i;return((t=e.name.trim())===null||t===void 0?void 0:t.toUpperCase())===((i=(r=this.selectedcolor)===null||r===void 0?void 0:r.trim())===null||i===void 0?void 0:i.toUpperCase())}));return r?{color:r,index:t}:null})).filter((e=>e!==null));this.currentColor=(e=r[0])===null||e===void 0?void 0:e.color;this.currentIndex=(t=r[0])===null||t===void 0?void 0:t.index;this.colorIsSelected=true}}componentWillLoad(){this.preloader=true;Ai({shop:this.shop,product:this.product});this.loadProductData()}componentWillRender(){this.displayForMobile();this.calculateBoxCount();this.colorTimer();this.openSeletedColor();const e=this.modalEl.querySelector(".my-modal");if(e){e.addEventListener("scroll",(t=>this.handleScroll(t,e)))}}resetColors(){this.currentColor=null;this.currentIndex=null;this.colorIsSelected=false}resetAllFilters(){var e;this.resetColors();this.filters={type:"product",id:((e=this.data)===null||e===void 0?void 0:e.id)||"",productId:"",page:1,colorNumber:"",colorName:"",colorFamily:"",sampleId:""};this.selectedCategory=null;this.clearSearchText.emit();this.fetchColorsData({reset:true})}resetSelectedCategory(){this.resetColors();this.colorIsSelected=false;this.selectedCategory=null;this.filters=yi(this.filters,{sampleId:""});this.fetchColorsData({reset:true})}render(){var e;return r("div",{class:`my-modal`,onMouseEnter:()=>this.handleReadyToClose(false),onMouseLeave:()=>this.handleReadyToClose(true)},this.preloader&&r("div",{class:"loader"},r("my-loader",null)),!this.preloader&&this.data&&r("modal-header",{modalName:this.data.modalName,modalLogo:this.data.modalLogo?`${oi}/assets/${this.data.modalLogo}?access_token=${si}`:null,modalDescription:this.data.modalDescription,shop:this.shop,productName:this.data.name,productSamples:this.data.productSamples,selectedColorFamily:this.filters.colorFamily,isMobile:this.isMobile,onCloseModal:()=>this.closeModalHandler(),onSampleSelected:e=>this.handleSampleSelect(e.detail),onOnLogoClick:()=>this.resetAllFilters(),onOnResetCategory:()=>this.resetSelectedCategory()}),r("div",{class:"my-modal__wrapper"},!this.preloader&&r("div",{class:"container_boxes"},!this.loading&&this.colorsList.length===0&&r("div",{class:"not-found"},r("p",null,"Nie zaleziono wyników wyszukiwania pod danym hasłem."),r("p",null," Wpisz inną nazwę bądź numer koloru lub skorzystaj z kolekcji kolorystycznych.")),((e=this.colorsList)===null||e===void 0?void 0:e.length)>0&&this.chunks(this.colorsList).map(((e,t)=>{var i,n;return r("div",{key:t,class:"boxes"},r("div",{class:"boxes__list"},e.map((e=>{var i;return r("my-colorbox",{key:e.id,onClick:()=>{var r;if(((r=this.currentColor)===null||r===void 0?void 0:r.id)===e.id){this.currentColor=null}else{this.currentColor=e}this.currentIndex=t;Ai({event:"ColorClick",shop:this.shop,product:this.product,color:e.name});this.clearInterval()},color:e.hex,name:e.name,isActive:((i=this.currentColor)===null||i===void 0?void 0:i.id)===e.id,shop:this.shop,product:this.product,isImageInsteadHex:{isImageInsteadHex:e.imageInsteadHex,bigImage:e.bigImage}})}))),((i=this.currentColor)===null||i===void 0?void 0:i.id)&&t===this.currentIndex&&r("my-colorinfo",{currentColor:this.currentColor,shop:this.shop,product:this.product,data:this.data,isMobile:this.isMobile,infoBoxWidth:this.infoBoxWidth,baselink:this.baselink,availableTesters:(n=this.available_testers)===null||n===void 0?void 0:n.find((e=>{var t,r,i;return((t=e.color_name)===null||t===void 0?void 0:t.trim().toLowerCase())===((i=(r=this.currentColor)===null||r===void 0?void 0:r.name)===null||i===void 0?void 0:i.trim().toLowerCase())})),price:this.price}))}))),this.loading&&r("my-loader",null)),!this.preloader&&this.isMobile&&r("button",{class:"button",onClick:()=>this.closeModalHandler()},"Zamknij"))}static get assetsDirs(){return["assets"]}get modalEl(){return n(this)}static get watchers(){return{chunksNum:["setInfoBoxWidth"],data:["watchPropHandler"]}}};il.style=rl;const nl='@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1.sc-my-search,300..900&family=Poppins.sc-my-search:ital,wght@0.sc-my-search,100.sc-my-search;0.sc-my-search,200.sc-my-search;0.sc-my-search,300.sc-my-search;0.sc-my-search,400.sc-my-search;0.sc-my-search,500.sc-my-search;0.sc-my-search,600.sc-my-search;0.sc-my-search,700.sc-my-search;0.sc-my-search,800.sc-my-search;0.sc-my-search,900.sc-my-search;1.sc-my-search,100.sc-my-search;1.sc-my-search,200.sc-my-search;1.sc-my-search,300.sc-my-search;1.sc-my-search,400.sc-my-search;1.sc-my-search,500.sc-my-search;1.sc-my-search,600.sc-my-search;1.sc-my-search,700.sc-my-search;1.sc-my-search,800.sc-my-search;1.sc-my-search,900&display=swap").sc-my-search; .tinting-wrapper.sc-my-search *.sc-my-search{font-family:"Poppins", sans-serif}.search.sc-my-search{position:relative;width:300px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:17px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c;box-sizing:border-box;padding-right:55px}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}';function ol(e,t){let r;return function i(...n){const o=()=>{clearTimeout(r);e(...n)};clearTimeout(r);r=setTimeout(o,t)}}const sl=class{constructor(r){e(this,r);this.searchColors=t(this,"searchColors",7);this.fetchColorsByName=e=>{this.searchColors.emit(e)};this.debouncedInputChangeValue=ol((e=>{this.fetchColorsByName(e);this.searchText=e}),500);this.productname=undefined;this.shopname=undefined;this.isMobile=undefined;this.searchIcon="search.svg";this.searchText=null}onInputChangeValue(e){const t=e.target.value;this.debouncedInputChangeValue(t)}fetchColorsByNameHandle(e){if(e.length>=3){Ai({event:"ColorSearch",shop:this.shopname,product:this.productname,search_term:e})}this.fetchColorsByName(e)}clearSearchTextHandler(){this.searchText=null}render(){return r("div",{class:"search"},r("input",{placeholder:this.isMobile?"Wyszukaj kolor":"Wyszukaj kolor po nazwie",value:this.searchText||"",type:"text",onInput:this.onInputChangeValue.bind(this)}),r("button",{onClick:()=>{this.searchText&&this.fetchColorsByName(this.searchText);this.searchText=""}},r("img",{src:i(`./assets/${this.searchIcon}`),alt:"arrow_down"})))}static get assetsDirs(){return["assets"]}static get watchers(){return{searchText:["fetchColorsByNameHandle"]}}};sl.style=nl;const al='@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1.sc-my-select,300..900&family=Poppins.sc-my-select:ital,wght@0.sc-my-select,100.sc-my-select;0.sc-my-select,200.sc-my-select;0.sc-my-select,300.sc-my-select;0.sc-my-select,400.sc-my-select;0.sc-my-select,500.sc-my-select;0.sc-my-select,600.sc-my-select;0.sc-my-select,700.sc-my-select;0.sc-my-select,800.sc-my-select;0.sc-my-select,900.sc-my-select;1.sc-my-select,100.sc-my-select;1.sc-my-select,200.sc-my-select;1.sc-my-select,300.sc-my-select;1.sc-my-select,400.sc-my-select;1.sc-my-select,500.sc-my-select;1.sc-my-select,600.sc-my-select;1.sc-my-select,700.sc-my-select;1.sc-my-select,800.sc-my-select;1.sc-my-select,900&display=swap").sc-my-select; .tinting-wrapper.sc-my-select *.sc-my-select{font-family:"Poppins", sans-serif}.select.sc-my-select{position:relative;width:300px}@media (max-width: 768px){.select.sc-my-select{width:100%}}.select.sc-my-select .input-wrapper.sc-my-select{position:relative;display:flex;align-items:flex-start}.select.sc-my-select input.sc-my-select{font-size:16px;padding:16px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c;box-sizing:border-box;padding-right:50px}.select.sc-my-select button.sc-my-select{position:absolute;right:10px;background:transparent;border:none;cursor:pointer;width:40px;height:100%;display:flex;align-items:center;justify-content:center}.select.sc-my-select button.sc-my-select img.sc-my-select{transition:transform 0.3s ease}.select.sc-my-select button.sc-my-select img.rotated.sc-my-select{transform:rotate(180deg)}.select.sc-my-select .dropdown.sc-my-select{position:absolute;top:100%;left:0;width:100%;background:white;border:1px solid #dfdfdf;border-radius:5px;max-height:200px;overflow-y:auto;z-index:1000;padding:0;margin:0}.select.sc-my-select .dropdown.sc-my-select li.sc-my-select{padding:0;margin:0;padding:10px;cursor:pointer;list-style:none;text-align:left}.select.sc-my-select .dropdown.sc-my-select li.sc-my-select:hover{background:#f5f5f5}.select.sc-my-select .dropdown.sc-my-select .no-results.sc-my-select{padding:10px;text-align:center;color:#999}@media (max-width: 768px){.select.sc-my-select .dropdown.sc-my-select{position:relative}}';const ll=class{constructor(r){e(this,r);this.onReset=t(this,"onReset",7);this.selectValue=t(this,"selectValue",7);this.inputValueChange=t(this,"inputValueChange",7);this.defaultOption={name:this.placeholder,id:null};this.debouncedSearch=ki((e=>{const t=[this.defaultOption,...this.options];this.filteredOptions=t.filter((t=>t.name.toLowerCase().includes(e.toLowerCase())));this.inputValueChange.emit(e)}),300);this.handleClickOutside=e=>{if(!this.el.contains(e.target)){this.showDropdown=false}};this.options=[];this.placeholder="Select an option";this.isMobile=false;this.searchIcon="chevron.png";this.searchText="";this.filteredOptions=[];this.showDropdown=false;this.selectedValue=null}reset(){this.onReset.emit()}componentWillLoad(){this.filteredOptions=[this.defaultOption,...this.options]}componentDidLoad(){document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside)}handleInput(e){const t=e.target.value;this.searchText=t;this.showDropdown=true;this.debouncedSearch(t)}selectOption(e){if(e.value===null){this.selectedValue=null;this.searchText="";this.reset()}else{this.selectedValue=e.key;this.searchText=e.key;this.selectValue.emit(e)}this.showDropdown=false}toggleDropdown(){this.showDropdown=!this.showDropdown}updateOptions(e){this.filteredOptions=[this.defaultOption,...e]}clearSearchTextHandler(){this.searchText="";this.selectedValue=null;this.reset()}render(){return r("div",{class:"select"},r("div",{class:"input-wrapper"},r("input",{type:"text",placeholder:this.placeholder,value:this.searchText,onInput:this.handleInput.bind(this),onFocus:()=>this.showDropdown=true}),r("button",{onClick:()=>this.toggleDropdown()},r("img",{src:i(`./assets/${this.searchIcon}`),alt:"dropdown icon",class:this.showDropdown?"rotated":""}))),this.showDropdown&&r("ul",{class:"dropdown"},this.filteredOptions.length>0?this.filteredOptions.map((e=>r("li",{class:e.id===null?"default-option":"",onClick:()=>this.selectOption({key:e.name,value:e.id})},e.name))):r("li",{class:"no-results"},"No results found")))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{options:["updateOptions"]}}};ll.style=al;function cl(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function fl(e={},t={}){Object.keys(t).forEach((r=>{if(typeof e[r]==="undefined")e[r]=t[r];else if(cl(t[r])&&cl(e[r])&&Object.keys(t[r]).length>0){fl(e[r],t[r])}}))}const ul={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function dl(){const e=typeof document!=="undefined"?document:{};fl(e,ul);return e}const pl={document:ul,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function e(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function hl(){const e=typeof window!=="undefined"?window:{};fl(e,pl);return e}function ml(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(e){t.__proto__=e}})}class bl extends Array{constructor(e){if(typeof e==="number"){super(e)}else{super(...e||[]);ml(this)}}}function yl(e=[]){const t=[];e.forEach((e=>{if(Array.isArray(e)){t.push(...yl(e))}else{t.push(e)}}));return t}function wl(e,t){return Array.prototype.filter.call(e,t)}function gl(e){const t=[];for(let r=0;r<e.length;r+=1){if(t.indexOf(e[r])===-1)t.push(e[r])}return t}function vl(e,t){if(typeof e!=="string"){return[e]}const r=[];const i=t.querySelectorAll(e);for(let e=0;e<i.length;e+=1){r.push(i[e])}return r}function xl(e,t){const r=hl();const i=dl();let n=[];if(!t&&e instanceof bl){return e}if(!e){return new bl(n)}if(typeof e==="string"){const r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";if(r.indexOf("<li")===0)e="ul";if(r.indexOf("<tr")===0)e="tbody";if(r.indexOf("<td")===0||r.indexOf("<th")===0)e="tr";if(r.indexOf("<tbody")===0)e="table";if(r.indexOf("<option")===0)e="select";const t=i.createElement(e);t.innerHTML=r;for(let e=0;e<t.childNodes.length;e+=1){n.push(t.childNodes[e])}}else{n=vl(e.trim(),t||i)}}else if(e.nodeType||e===r||e===i){n.push(e)}else if(Array.isArray(e)){if(e instanceof bl)return e;n=e}return new bl(gl(n))}xl.fn=bl.prototype;function Al(...e){const t=yl(e.map((e=>e.split(" "))));this.forEach((e=>{e.classList.add(...t)}));return this}function _l(...e){const t=yl(e.map((e=>e.split(" "))));this.forEach((e=>{e.classList.remove(...t)}));return this}function kl(...e){const t=yl(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))}function Sl(...e){const t=yl(e.map((e=>e.split(" "))));return wl(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0}function jl(e,t){if(arguments.length===1&&typeof e==="string"){if(this[0])return this[0].getAttribute(e);return undefined}for(let r=0;r<this.length;r+=1){if(arguments.length===2){this[r].setAttribute(e,t)}else{for(const t in e){this[r][t]=e[t];this[r].setAttribute(t,e[t])}}}return this}function El(e){for(let t=0;t<this.length;t+=1){this[t].removeAttribute(e)}return this}function Ml(e){for(let t=0;t<this.length;t+=1){this[t].style.transform=e}return this}function Cl(e){for(let t=0;t<this.length;t+=1){this[t].style.transitionDuration=typeof e!=="string"?`${e}ms`:e}return this}function Ol(...e){let[t,r,i,n]=e;if(typeof e[1]==="function"){[t,i,n]=e;r=undefined}if(!n)n=false;function o(e){const t=e.target;if(!t)return;const n=e.target.dom7EventData||[];if(n.indexOf(e)<0){n.unshift(e)}if(xl(t).is(r))i.apply(t,n);else{const e=xl(t).parents();for(let t=0;t<e.length;t+=1){if(xl(e[t]).is(r))i.apply(e[t],n)}}}function s(e){const t=e&&e.target?e.target.dom7EventData||[]:[];if(t.indexOf(e)<0){t.unshift(e)}i.apply(this,t)}const a=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(!r){for(l=0;l<a.length;l+=1){const e=a[l];if(!t.dom7Listeners)t.dom7Listeners={};if(!t.dom7Listeners[e])t.dom7Listeners[e]=[];t.dom7Listeners[e].push({listener:i,proxyListener:s});t.addEventListener(e,s,n)}}else{for(l=0;l<a.length;l+=1){const e=a[l];if(!t.dom7LiveListeners)t.dom7LiveListeners={};if(!t.dom7LiveListeners[e])t.dom7LiveListeners[e]=[];t.dom7LiveListeners[e].push({listener:i,proxyListener:o});t.addEventListener(e,o,n)}}}return this}function $l(...e){let[t,r,i,n]=e;if(typeof e[1]==="function"){[t,i,n]=e;r=undefined}if(!n)n=false;const o=t.split(" ");for(let e=0;e<o.length;e+=1){const t=o[e];for(let e=0;e<this.length;e+=1){const o=this[e];let s;if(!r&&o.dom7Listeners){s=o.dom7Listeners[t]}else if(r&&o.dom7LiveListeners){s=o.dom7LiveListeners[t]}if(s&&s.length){for(let e=s.length-1;e>=0;e-=1){const r=s[e];if(i&&r.listener===i){o.removeEventListener(t,r.proxyListener,n);s.splice(e,1)}else if(i&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===i){o.removeEventListener(t,r.proxyListener,n);s.splice(e,1)}else if(!i){o.removeEventListener(t,r.proxyListener,n);s.splice(e,1)}}}}}return this}function Pl(...e){const t=hl();const r=e[0].split(" ");const i=e[1];for(let n=0;n<r.length;n+=1){const o=r[n];for(let r=0;r<this.length;r+=1){const n=this[r];if(t.CustomEvent){const r=new t.CustomEvent(o,{detail:i,bubbles:true,cancelable:true});n.dom7EventData=e.filter(((e,t)=>t>0));n.dispatchEvent(r);n.dom7EventData=[];delete n.dom7EventData}}}return this}function Il(e){const t=this;function r(i){if(i.target!==this)return;e.call(this,i);t.off("transitionend",r)}if(e){t.on("transitionend",r)}return this}function Bl(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function zl(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function Tl(){if(this.length>0){const e=hl();const t=dl();const r=this[0];const i=r.getBoundingClientRect();const n=t.body;const o=r.clientTop||n.clientTop||0;const s=r.clientLeft||n.clientLeft||0;const a=r===e?e.scrollY:r.scrollTop;const l=r===e?e.scrollX:r.scrollLeft;return{top:i.top+a-o,left:i.left+l-s}}return null}function Rl(){const e=hl();if(this[0])return e.getComputedStyle(this[0],null);return{}}function Fl(e,t){const r=hl();let i;if(arguments.length===1){if(typeof e==="string"){if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(i=0;i<this.length;i+=1){for(const t in e){this[i].style[t]=e[t]}}return this}}if(arguments.length===2&&typeof e==="string"){for(i=0;i<this.length;i+=1){this[i].style[e]=t}return this}return this}function Nl(e){if(!e)return this;this.forEach(((t,r)=>{e.apply(t,[t,r])}));return this}function Gl(e){const t=wl(this,e);return xl(t)}function Ll(e){if(typeof e==="undefined"){return this[0]?this[0].innerHTML:null}for(let t=0;t<this.length;t+=1){this[t].innerHTML=e}return this}function Dl(e){if(typeof e==="undefined"){return this[0]?this[0].textContent.trim():null}for(let t=0;t<this.length;t+=1){this[t].textContent=e}return this}function Yl(e){const t=hl();const r=dl();const i=this[0];let n;let o;if(!i||typeof e==="undefined")return false;if(typeof e==="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);n=xl(e);for(o=0;o<n.length;o+=1){if(n[o]===i)return true}return false}if(e===r){return i===r}if(e===t){return i===t}if(e.nodeType||e instanceof bl){n=e.nodeType?[e]:e;for(o=0;o<n.length;o+=1){if(n[o]===i)return true}return false}return false}function Wl(){let e=this[0];let t;if(e){t=0;while((e=e.previousSibling)!==null){if(e.nodeType===1)t+=1}return t}return undefined}function Ul(e){if(typeof e==="undefined")return this;const t=this.length;if(e>t-1){return xl([])}if(e<0){const r=t+e;if(r<0)return xl([]);return xl([this[r]])}return xl([this[e]])}function Hl(...e){let t;const r=dl();for(let i=0;i<e.length;i+=1){t=e[i];for(let e=0;e<this.length;e+=1){if(typeof t==="string"){const i=r.createElement("div");i.innerHTML=t;while(i.firstChild){this[e].appendChild(i.firstChild)}}else if(t instanceof bl){for(let r=0;r<t.length;r+=1){this[e].appendChild(t[r])}}else{this[e].appendChild(t)}}}return this}function ql(e){const t=dl();let r;let i;for(r=0;r<this.length;r+=1){if(typeof e==="string"){const n=t.createElement("div");n.innerHTML=e;for(i=n.childNodes.length-1;i>=0;i-=1){this[r].insertBefore(n.childNodes[i],this[r].childNodes[0])}}else if(e instanceof bl){for(i=0;i<e.length;i+=1){this[r].insertBefore(e[i],this[r].childNodes[0])}}else{this[r].insertBefore(e,this[r].childNodes[0])}}return this}function Zl(e){if(this.length>0){if(e){if(this[0].nextElementSibling&&xl(this[0].nextElementSibling).is(e)){return xl([this[0].nextElementSibling])}return xl([])}if(this[0].nextElementSibling)return xl([this[0].nextElementSibling]);return xl([])}return xl([])}function Vl(e){const t=[];let r=this[0];if(!r)return xl([]);while(r.nextElementSibling){const i=r.nextElementSibling;if(e){if(xl(i).is(e))t.push(i)}else t.push(i);r=i}return xl(t)}function Ql(e){if(this.length>0){const t=this[0];if(e){if(t.previousElementSibling&&xl(t.previousElementSibling).is(e)){return xl([t.previousElementSibling])}return xl([])}if(t.previousElementSibling)return xl([t.previousElementSibling]);return xl([])}return xl([])}function Kl(e){const t=[];let r=this[0];if(!r)return xl([]);while(r.previousElementSibling){const i=r.previousElementSibling;if(e){if(xl(i).is(e))t.push(i)}else t.push(i);r=i}return xl(t)}function Xl(e){const t=[];for(let r=0;r<this.length;r+=1){if(this[r].parentNode!==null){if(e){if(xl(this[r].parentNode).is(e))t.push(this[r].parentNode)}else{t.push(this[r].parentNode)}}}return xl(t)}function Jl(e){const t=[];for(let r=0;r<this.length;r+=1){let i=this[r].parentNode;while(i){if(e){if(xl(i).is(e))t.push(i)}else{t.push(i)}i=i.parentNode}}return xl(t)}function ec(e){let t=this;if(typeof e==="undefined"){return xl([])}if(!t.is(e)){t=t.parents(e).eq(0)}return t}function tc(e){const t=[];for(let r=0;r<this.length;r+=1){const i=this[r].querySelectorAll(e);for(let e=0;e<i.length;e+=1){t.push(i[e])}}return xl(t)}function rc(e){const t=[];for(let r=0;r<this.length;r+=1){const i=this[r].children;for(let r=0;r<i.length;r+=1){if(!e||xl(i[r]).is(e)){t.push(i[r])}}}return xl(t)}function ic(){for(let e=0;e<this.length;e+=1){if(this[e].parentNode)this[e].parentNode.removeChild(this[e])}return this}const nc={addClass:Al,removeClass:_l,hasClass:Sl,toggleClass:kl,attr:jl,removeAttr:El,transform:Ml,transition:Cl,on:Ol,off:$l,trigger:Pl,transitionEnd:Il,outerWidth:Bl,outerHeight:zl,styles:Rl,offset:Tl,css:Fl,each:Nl,html:Ll,text:Dl,is:Yl,index:Wl,eq:Ul,append:Hl,prepend:ql,next:Zl,nextAll:Vl,prev:Ql,prevAll:Kl,parent:Xl,parents:Jl,closest:ec,find:tc,children:rc,filter:Gl,remove:ic};Object.keys(nc).forEach((e=>{Object.defineProperty(xl.fn,e,{value:nc[e],writable:true})}));function oc(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function sc(e,t=0){return setTimeout(e,t)}function ac(){return Date.now()}function lc(e){const t=hl();let r;if(t.getComputedStyle){r=t.getComputedStyle(e,null)}if(!r&&e.currentStyle){r=e.currentStyle}if(!r){r=e.style}return r}function cc(e,t="x"){const r=hl();let i;let n;let o;const s=lc(e);if(r.WebKitCSSMatrix){n=s.transform||s.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((e=>e.replace(",","."))).join(", ")}o=new r.WebKitCSSMatrix(n==="none"?"":n)}else{o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");i=o.toString().split(",")}if(t==="x"){if(r.WebKitCSSMatrix)n=o.m41;else if(i.length===16)n=parseFloat(i[12]);else n=parseFloat(i[4])}if(t==="y"){if(r.WebKitCSSMatrix)n=o.m42;else if(i.length===16)n=parseFloat(i[13]);else n=parseFloat(i[5])}return n||0}function fc(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function uc(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function dc(...e){const t=Object(e[0]);const r=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const n=e[i];if(n!==undefined&&n!==null&&!uc(n)){const e=Object.keys(Object(n)).filter((e=>r.indexOf(e)<0));for(let r=0,i=e.length;r<i;r+=1){const i=e[r];const o=Object.getOwnPropertyDescriptor(n,i);if(o!==undefined&&o.enumerable){if(fc(t[i])&&fc(n[i])){if(n[i].__swiper__){t[i]=n[i]}else{dc(t[i],n[i])}}else if(!fc(t[i])&&fc(n[i])){t[i]={};if(n[i].__swiper__){t[i]=n[i]}else{dc(t[i],n[i])}}else{t[i]=n[i]}}}}}return t}function pc(e,t,r){e.style.setProperty(t,r)}function hc({swiper:e,targetPosition:t,side:r}){const i=hl();const n=-e.translate;let o=null;let s;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none";i.cancelAnimationFrame(e.cssModeFrameID);const l=t>n?"next":"prev";const c=(e,t)=>l==="next"&&e>=t||l==="prev"&&e<=t;const f=()=>{s=(new Date).getTime();if(o===null){o=s}const l=Math.max(Math.min((s-o)/a,1),0);const u=.5-Math.cos(l*Math.PI)/2;let d=n+u*(t-n);if(c(d,t)){d=t}e.wrapperEl.scrollTo({[r]:d});if(c(d,t)){e.wrapperEl.style.overflow="hidden";e.wrapperEl.style.scrollSnapType="";setTimeout((()=>{e.wrapperEl.style.overflow="";e.wrapperEl.scrollTo({[r]:d})}));i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(f)};f()}let mc;function bc(){const e=hl();const t=dl();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function t(){let r=false;try{const t=Object.defineProperty({},"passive",{get(){r=true}});e.addEventListener("testPassiveListener",null,t)}catch(e){}return r}(),gestures:function t(){return"ongesturestart"in e}()}}function yc(){if(!mc){mc=bc()}return mc}let wc;function gc({userAgent:e}={}){const t=yc();const r=hl();const i=r.navigator.platform;const n=e||r.navigator.userAgent;const o={ios:false,android:false};const s=r.screen.width;const a=r.screen.height;const l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const f=n.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const d=i==="Win32";let p=i==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!c&&p&&t.touch&&h.indexOf(`${s}x${a}`)>=0){c=n.match(/(Version)\/([\d.]+)/);if(!c)c=[0,1,"13_0_0"];p=false}if(l&&!d){o.os="android";o.android=true}if(c||u||f){o.os="ios";o.ios=true}return o}function vc(e={}){if(!wc){wc=gc(e)}return wc}let xc;function Ac(){const e=hl();function t(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function _c(){if(!xc){xc=Ac()}return xc}function kc({swiper:e,on:t,emit:r}){const i=hl();let n=null;let o=null;const s=()=>{if(!e||e.destroyed||!e.initialized)return;r("beforeResize");r("resize")};const a=()=>{if(!e||e.destroyed||!e.initialized)return;n=new ResizeObserver((t=>{o=i.requestAnimationFrame((()=>{const{width:r,height:i}=e;let n=r;let o=i;t.forEach((({contentBoxSize:t,contentRect:r,target:i})=>{if(i&&i!==e.el)return;n=r?r.width:(t[0]||t).inlineSize;o=r?r.height:(t[0]||t).blockSize}));if(n!==r||o!==i){s()}}))}));n.observe(e.el)};const l=()=>{if(o){i.cancelAnimationFrame(o)}if(n&&n.unobserve&&e.el){n.unobserve(e.el);n=null}};const c=()=>{if(!e||e.destroyed||!e.initialized)return;r("orientationchange")};t("init",(()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver!=="undefined"){a();return}i.addEventListener("resize",s);i.addEventListener("orientationchange",c)}));t("destroy",(()=>{l();i.removeEventListener("resize",s);i.removeEventListener("orientationchange",c)}))}function Sc({swiper:e,extendParams:t,on:r,emit:i}){const n=[];const o=hl();const s=(e,t={})=>{const r=o.MutationObserver||o.WebkitMutationObserver;const s=new r((e=>{if(e.length===1){i("observerUpdate",e[0]);return}const t=function t(){i("observerUpdate",e[0])};if(o.requestAnimationFrame){o.requestAnimationFrame(t)}else{o.setTimeout(t,0)}}));s.observe(e,{attributes:typeof t.attributes==="undefined"?true:t.attributes,childList:typeof t.childList==="undefined"?true:t.childList,characterData:typeof t.characterData==="undefined"?true:t.characterData});n.push(s)};const a=()=>{if(!e.params.observer)return;if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1){s(t[e])}}s(e.$el[0],{childList:e.params.observeSlideChildren});s(e.$wrapperEl[0],{attributes:false})};const l=()=>{n.forEach((e=>{e.disconnect()}));n.splice(0,n.length)};t({observer:false,observeParents:false,observeSlideChildren:false});r("init",a);r("destroy",l)}const jc={on(e,t,r){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof t!=="function")return i;const n=r?"unshift":"push";e.split(" ").forEach((e=>{if(!i.eventsListeners[e])i.eventsListeners[e]=[];i.eventsListeners[e][n](t)}));return i},once(e,t,r){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof t!=="function")return i;function n(...r){i.off(e,n);if(n.__emitterProxy){delete n.__emitterProxy}t.apply(i,r)}n.__emitterProxy=t;return i.on(e,n,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof e!=="function")return r;const i=t?"unshift":"push";if(r.eventsAnyListeners.indexOf(e)<0){r.eventsAnyListeners[i](e)}return r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);if(r>=0){t.eventsAnyListeners.splice(r,1)}return t},off(e,t){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(!r.eventsListeners)return r;e.split(" ").forEach((e=>{if(typeof t==="undefined"){r.eventsListeners[e]=[]}else if(r.eventsListeners[e]){r.eventsListeners[e].forEach(((i,n)=>{if(i===t||i.__emitterProxy&&i.__emitterProxy===t){r.eventsListeners[e].splice(n,1)}}))}}));return r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let r;let i;let n;if(typeof e[0]==="string"||Array.isArray(e[0])){r=e[0];i=e.slice(1,e.length);n=t}else{r=e[0].events;i=e[0].data;n=e[0].context||t}i.unshift(n);const o=Array.isArray(r)?r:r.split(" ");o.forEach((e=>{if(t.eventsAnyListeners&&t.eventsAnyListeners.length){t.eventsAnyListeners.forEach((t=>{t.apply(n,[e,...i])}))}if(t.eventsListeners&&t.eventsListeners[e]){t.eventsListeners[e].forEach((e=>{e.apply(n,i)}))}}));return t}};function Ec(){const e=this;let t;let r;const i=e.$el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=i[0].clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){r=e.params.height}else{r=i[0].clientHeight}if(t===0&&e.isHorizontal()||r===0&&e.isVertical()){return}t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10);r=r-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(r))r=0;Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r})}function Mc(){const e=this;function t(t){if(e.isHorizontal()){return t}return{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function r(e,r){return parseFloat(e.getPropertyValue(t(r))||0)}const i=e.params;const{$wrapperEl:n,size:o,rtlTranslate:s,wrongRTL:a}=e;const l=e.virtual&&i.virtual.enabled;const c=l?e.virtual.slides.length:e.slides.length;const f=n.children(`.${e.params.slideClass}`);const u=l?e.virtual.slides.length:f.length;let d=[];const p=[];const h=[];let m=i.slidesOffsetBefore;if(typeof m==="function"){m=i.slidesOffsetBefore.call(e)}let b=i.slidesOffsetAfter;if(typeof b==="function"){b=i.slidesOffsetAfter.call(e)}const y=e.snapGrid.length;const w=e.slidesGrid.length;let g=i.spaceBetween;let v=-m;let x=0;let A=0;if(typeof o==="undefined"){return}if(typeof g==="string"&&g.indexOf("%")>=0){g=parseFloat(g.replace("%",""))/100*o}e.virtualSize=-g;if(s)f.css({marginLeft:"",marginBottom:"",marginTop:""});else f.css({marginRight:"",marginBottom:"",marginTop:""});if(i.centeredSlides&&i.cssMode){pc(e.wrapperEl,"--swiper-centered-offset-before","");pc(e.wrapperEl,"--swiper-centered-offset-after","")}const _=i.grid&&i.grid.rows>1&&e.grid;if(_){e.grid.initSlides(u)}let k;const S=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>typeof i.breakpoints[e].slidesPerView!=="undefined")).length>0;for(let n=0;n<u;n+=1){k=0;const s=f.eq(n);if(_){e.grid.updateSlide(n,s,u,t)}if(s.css("display")==="none")continue;if(i.slidesPerView==="auto"){if(S){f[n].style[t("width")]=``}const o=getComputedStyle(s[0]);const a=s[0].style.transform;const l=s[0].style.webkitTransform;if(a){s[0].style.transform="none"}if(l){s[0].style.webkitTransform="none"}if(i.roundLengths){k=e.isHorizontal()?s.outerWidth(true):s.outerHeight(true)}else{const e=r(o,"width");const t=r(o,"padding-left");const i=r(o,"padding-right");const n=r(o,"margin-left");const a=r(o,"margin-right");const l=o.getPropertyValue("box-sizing");if(l&&l==="border-box"){k=e+n+a}else{const{clientWidth:r,offsetWidth:o}=s[0];k=e+t+i+n+a+(o-r)}}if(a){s[0].style.transform=a}if(l){s[0].style.webkitTransform=l}if(i.roundLengths)k=Math.floor(k)}else{k=(o-(i.slidesPerView-1)*g)/i.slidesPerView;if(i.roundLengths)k=Math.floor(k);if(f[n]){f[n].style[t("width")]=`${k}px`}}if(f[n]){f[n].swiperSlideSize=k}h.push(k);if(i.centeredSlides){v=v+k/2+x/2+g;if(x===0&&n!==0)v=v-o/2-g;if(n===0)v=v-o/2-g;if(Math.abs(v)<1/1e3)v=0;if(i.roundLengths)v=Math.floor(v);if(A%i.slidesPerGroup===0)d.push(v);p.push(v)}else{if(i.roundLengths)v=Math.floor(v);if((A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0)d.push(v);p.push(v);v=v+k+g}e.virtualSize+=k+g;x=k;A+=1}e.virtualSize=Math.max(e.virtualSize,o)+b;if(s&&a&&(i.effect==="slide"||i.effect==="coverflow")){n.css({width:`${e.virtualSize+i.spaceBetween}px`})}if(i.setWrapperSize){n.css({[t("width")]:`${e.virtualSize+i.spaceBetween}px`})}if(_){e.grid.updateWrapperSize(k,d,t)}if(!i.centeredSlides){const t=[];for(let r=0;r<d.length;r+=1){let n=d[r];if(i.roundLengths)n=Math.floor(n);if(d[r]<=e.virtualSize-o){t.push(n)}}d=t;if(Math.floor(e.virtualSize-o)-Math.floor(d[d.length-1])>1){d.push(e.virtualSize-o)}}if(d.length===0)d=[0];if(i.spaceBetween!==0){const r=e.isHorizontal()&&s?"marginLeft":t("marginRight");f.filter(((e,t)=>{if(!i.cssMode)return true;if(t===f.length-1){return false}return true})).css({[r]:`${g}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)}));e-=i.spaceBetween;const t=e-o;d=d.map((e=>{if(e<0)return-m;if(e>t)return t+b;return e}))}if(i.centerInsufficientSlides){let e=0;h.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)}));e-=i.spaceBetween;if(e<o){const t=(o-e)/2;d.forEach(((e,r)=>{d[r]=e-t}));p.forEach(((e,r)=>{p[r]=e+t}))}}Object.assign(e,{slides:f,snapGrid:d,slidesGrid:p,slidesSizesGrid:h});if(i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){pc(e.wrapperEl,"--swiper-centered-offset-before",`${-d[0]}px`);pc(e.wrapperEl,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const t=-e.snapGrid[0];const r=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t));e.slidesGrid=e.slidesGrid.map((e=>e+r))}if(u!==c){e.emit("slidesLengthChange")}if(d.length!==y){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(p.length!==w){e.emit("slidesGridLengthChange")}if(i.watchSlidesProgress){e.updateSlidesOffset()}if(!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const t=`${i.containerModifierClass}backface-hidden`;const r=e.$el.hasClass(t);if(u<=i.maxBackfaceHiddenSlides){if(!r)e.$el.addClass(t)}else if(r){e.$el.removeClass(t)}}}function Cc(e){const t=this;const r=[];const i=t.virtual&&t.params.virtual.enabled;let n=0;let o;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}const s=e=>{if(i){return t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]}return t.slides.eq(e)[0]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||xl([])).each((e=>{r.push(e)}))}else{for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const e=t.activeIndex+o;if(e>t.slides.length&&!i)break;r.push(s(e))}}}else{r.push(s(t.activeIndex))}for(o=0;o<r.length;o+=1){if(typeof r[o]!=="undefined"){const e=r[o].offsetHeight;n=e>n?e:n}}if(n||n===0)t.$wrapperEl.css("height",`${n}px`)}function Oc(){const e=this;const t=e.slides;for(let r=0;r<t.length;r+=1){t[r].swiperSlideOffset=e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop}}function $c(e=this&&this.translate||0){const t=this;const r=t.params;const{slides:i,rtlTranslate:n,snapGrid:o}=t;if(i.length===0)return;if(typeof i[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();let s=-e;if(n)s=e;i.removeClass(r.slideVisibleClass);t.visibleSlidesIndexes=[];t.visibleSlides=[];for(let e=0;e<i.length;e+=1){const a=i[e];let l=a.swiperSlideOffset;if(r.cssMode&&r.centeredSlides){l-=i[0].swiperSlideOffset}const c=(s+(r.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+r.spaceBetween);const f=(s-o[0]+(r.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+r.spaceBetween);const u=-(s-l);const d=u+t.slidesSizesGrid[e];const p=u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size;if(p){t.visibleSlides.push(a);t.visibleSlidesIndexes.push(e);i.eq(e).addClass(r.slideVisibleClass)}a.progress=n?-c:c;a.originalProgress=n?-f:f}t.visibleSlides=xl(t.visibleSlides)}function Pc(e){const t=this;if(typeof e==="undefined"){const r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}const r=t.params;const i=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:o,isEnd:s}=t;const a=o;const l=s;if(i===0){n=0;o=true;s=true}else{n=(e-t.minTranslate())/i;o=n<=0;s=n>=1}Object.assign(t,{progress:n,isBeginning:o,isEnd:s});if(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)t.updateSlidesProgress(e);if(o&&!a){t.emit("reachBeginning toEdge")}if(s&&!l){t.emit("reachEnd toEdge")}if(a&&!o||l&&!s){t.emit("fromEdge")}t.emit("progress",n)}function Ic(){const e=this;const{slides:t,params:r,$wrapperEl:i,activeIndex:n,realIndex:o}=e;const s=e.virtual&&r.virtual.enabled;t.removeClass(`${r.slideActiveClass} ${r.slideNextClass} ${r.slidePrevClass} ${r.slideDuplicateActiveClass} ${r.slideDuplicateNextClass} ${r.slideDuplicatePrevClass}`);let a;if(s){a=e.$wrapperEl.find(`.${r.slideClass}[data-swiper-slide-index="${n}"]`)}else{a=t.eq(n)}a.addClass(r.slideActiveClass);if(r.loop){if(a.hasClass(r.slideDuplicateClass)){i.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(r.slideDuplicateActiveClass)}else{i.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(r.slideDuplicateActiveClass)}}let l=a.nextAll(`.${r.slideClass}`).eq(0).addClass(r.slideNextClass);if(r.loop&&l.length===0){l=t.eq(0);l.addClass(r.slideNextClass)}let c=a.prevAll(`.${r.slideClass}`).eq(0).addClass(r.slidePrevClass);if(r.loop&&c.length===0){c=t.eq(-1);c.addClass(r.slidePrevClass)}if(r.loop){if(l.hasClass(r.slideDuplicateClass)){i.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass)}else{i.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass)}if(c.hasClass(r.slideDuplicateClass)){i.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass)}else{i.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass)}}e.emitSlidesClasses()}function Bc(e){const t=this;const r=t.rtlTranslate?t.translate:-t.translate;const{slidesGrid:i,snapGrid:n,params:o,activeIndex:s,realIndex:a,snapIndex:l}=t;let c=e;let f;if(typeof c==="undefined"){for(let e=0;e<i.length;e+=1){if(typeof i[e+1]!=="undefined"){if(r>=i[e]&&r<i[e+1]-(i[e+1]-i[e])/2){c=e}else if(r>=i[e]&&r<i[e+1]){c=e+1}}else if(r>=i[e]){c=e}}if(o.normalizeSlideIndex){if(c<0||typeof c==="undefined")c=0}}if(n.indexOf(r)>=0){f=n.indexOf(r)}else{const e=Math.min(o.slidesPerGroupSkip,c);f=e+Math.floor((c-e)/o.slidesPerGroup)}if(f>=n.length)f=n.length-1;if(c===s){if(f!==l){t.snapIndex=f;t.emit("snapIndexChange")}return}const u=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:f,realIndex:u,previousIndex:s,activeIndex:c});t.emit("activeIndexChange");t.emit("snapIndexChange");if(a!==u){t.emit("realIndexChange")}if(t.initialized||t.params.runCallbacksOnInit){t.emit("slideChange")}}function zc(e){const t=this;const r=t.params;const i=xl(e).closest(`.${r.slideClass}`)[0];let n=false;let o;if(i){for(let e=0;e<t.slides.length;e+=1){if(t.slides[e]===i){n=true;o=e;break}}}if(i&&n){t.clickedSlide=i;if(t.virtual&&t.params.virtual.enabled){t.clickedIndex=parseInt(xl(i).attr("data-swiper-slide-index"),10)}else{t.clickedIndex=o}}else{t.clickedSlide=undefined;t.clickedIndex=undefined;return}if(r.slideToClickedSlide&&t.clickedIndex!==undefined&&t.clickedIndex!==t.activeIndex){t.slideToClickedSlide()}}const Tc={updateSize:Ec,updateSlides:Mc,updateAutoHeight:Cc,updateSlidesOffset:Oc,updateSlidesProgress:$c,updateProgress:Pc,updateSlidesClasses:Ic,updateActiveIndex:Bc,updateClickedSlide:zc};function Rc(e=(this.isHorizontal()?"x":"y")){const t=this;const{params:r,rtlTranslate:i,translate:n,$wrapperEl:o}=t;if(r.virtualTranslate){return i?-n:n}if(r.cssMode){return n}let s=cc(o[0],e);if(i)s=-s;return s||0}function Fc(e,t){const r=this;const{rtlTranslate:i,params:n,$wrapperEl:o,wrapperEl:s,progress:a}=r;let l=0;let c=0;const f=0;if(r.isHorizontal()){l=i?-e:e}else{c=e}if(n.roundLengths){l=Math.floor(l);c=Math.floor(c)}if(n.cssMode){s[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-l:-c}else if(!n.virtualTranslate){o.transform(`translate3d(${l}px, ${c}px, ${f}px)`)}r.previousTranslate=r.translate;r.translate=r.isHorizontal()?l:c;let u;const d=r.maxTranslate()-r.minTranslate();if(d===0){u=0}else{u=(e-r.minTranslate())/d}if(u!==a){r.updateProgress(e)}r.emit("setTranslate",r.translate,t)}function Nc(){return-this.snapGrid[0]}function Gc(){return-this.snapGrid[this.snapGrid.length-1]}function Lc(e=0,t=this.params.speed,r=true,i=true,n){const o=this;const{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition){return false}const l=o.minTranslate();const c=o.maxTranslate();let f;if(i&&e>l)f=l;else if(i&&e<c)f=c;else f=e;o.updateProgress(f);if(s.cssMode){const e=o.isHorizontal();if(t===0){a[e?"scrollLeft":"scrollTop"]=-f}else{if(!o.support.smoothScroll){hc({swiper:o,targetPosition:-f,side:e?"left":"top"});return true}a.scrollTo({[e?"left":"top"]:-f,behavior:"smooth"})}return true}if(t===0){o.setTransition(0);o.setTranslate(f);if(r){o.emit("beforeTransitionStart",t,n);o.emit("transitionEnd")}}else{o.setTransition(t);o.setTranslate(f);if(r){o.emit("beforeTransitionStart",t,n);o.emit("transitionStart")}if(!o.animating){o.animating=true;if(!o.onTranslateToWrapperTransitionEnd){o.onTranslateToWrapperTransitionEnd=function e(t){if(!o||o.destroyed)return;if(t.target!==this)return;o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd);o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd);o.onTranslateToWrapperTransitionEnd=null;delete o.onTranslateToWrapperTransitionEnd;if(r){o.emit("transitionEnd")}}}o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd);o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd)}}return true}const Dc={getTranslate:Rc,setTranslate:Fc,minTranslate:Nc,maxTranslate:Gc,translateTo:Lc};function Yc(e,t){const r=this;if(!r.params.cssMode){r.$wrapperEl.transition(e)}r.emit("setTransition",e,t)}function Wc({swiper:e,runCallbacks:t,direction:r,step:i}){const{activeIndex:n,previousIndex:o}=e;let s=r;if(!s){if(n>o)s="next";else if(n<o)s="prev";else s="reset"}e.emit(`transition${i}`);if(t&&n!==o){if(s==="reset"){e.emit(`slideResetTransition${i}`);return}e.emit(`slideChangeTransition${i}`);if(s==="next"){e.emit(`slideNextTransition${i}`)}else{e.emit(`slidePrevTransition${i}`)}}}function Uc(e=true,t){const r=this;const{params:i}=r;if(i.cssMode)return;if(i.autoHeight){r.updateAutoHeight()}Wc({swiper:r,runCallbacks:e,direction:t,step:"Start"})}function Hc(e=true,t){const r=this;const{params:i}=r;r.animating=false;if(i.cssMode)return;r.setTransition(0);Wc({swiper:r,runCallbacks:e,direction:t,step:"End"})}const qc={setTransition:Yc,transitionStart:Uc,transitionEnd:Hc};function Zc(e=0,t=this.params.speed,r=true,i,n){if(typeof e!=="number"&&typeof e!=="string"){throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`)}if(typeof e==="string"){const t=parseInt(e,10);const r=isFinite(t);if(!r){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`)}e=t}const o=this;let s=e;if(s<0)s=0;const{params:a,snapGrid:l,slidesGrid:c,previousIndex:f,activeIndex:u,rtlTranslate:d,wrapperEl:p,enabled:h}=o;if(o.animating&&a.preventInteractionOnTransition||!h&&!i&&!n){return false}const m=Math.min(o.params.slidesPerGroupSkip,s);let b=m+Math.floor((s-m)/o.params.slidesPerGroup);if(b>=l.length)b=l.length-1;const y=-l[b];if(a.normalizeSlideIndex){for(let e=0;e<c.length;e+=1){const t=-Math.floor(y*100);const r=Math.floor(c[e]*100);const i=Math.floor(c[e+1]*100);if(typeof c[e+1]!=="undefined"){if(t>=r&&t<i-(i-r)/2){s=e}else if(t>=r&&t<i){s=e+1}}else if(t>=r){s=e}}}if(o.initialized&&s!==u){if(!o.allowSlideNext&&y<o.translate&&y<o.minTranslate()){return false}if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()){if((u||0)!==s)return false}}if(s!==(f||0)&&r){o.emit("beforeSlideChangeStart")}o.updateProgress(y);let w;if(s>u)w="next";else if(s<u)w="prev";else w="reset";if(d&&-y===o.translate||!d&&y===o.translate){o.updateActiveIndex(s);if(a.autoHeight){o.updateAutoHeight()}o.updateSlidesClasses();if(a.effect!=="slide"){o.setTranslate(y)}if(w!=="reset"){o.transitionStart(r,w);o.transitionEnd(r,w)}return false}if(a.cssMode){const e=o.isHorizontal();const r=d?y:-y;if(t===0){const t=o.virtual&&o.params.virtual.enabled;if(t){o.wrapperEl.style.scrollSnapType="none";o._immediateVirtual=true}p[e?"scrollLeft":"scrollTop"]=r;if(t){requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="";o._swiperImmediateVirtual=false}))}}else{if(!o.support.smoothScroll){hc({swiper:o,targetPosition:r,side:e?"left":"top"});return true}p.scrollTo({[e?"left":"top"]:r,behavior:"smooth"})}return true}o.setTransition(t);o.setTranslate(y);o.updateActiveIndex(s);o.updateSlidesClasses();o.emit("beforeTransitionStart",t,i);o.transitionStart(r,w);if(t===0){o.transitionEnd(r,w)}else if(!o.animating){o.animating=true;if(!o.onSlideToWrapperTransitionEnd){o.onSlideToWrapperTransitionEnd=function e(t){if(!o||o.destroyed)return;if(t.target!==this)return;o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd);o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd);o.onSlideToWrapperTransitionEnd=null;delete o.onSlideToWrapperTransitionEnd;o.transitionEnd(r,w)}}o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd);o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)}return true}function Vc(e=0,t=this.params.speed,r=true,i){if(typeof e==="string"){const t=parseInt(e,10);const r=isFinite(t);if(!r){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`)}e=t}const n=this;let o=e;if(n.params.loop){o+=n.loopedSlides}return n.slideTo(o,t,r,i)}function Qc(e=this.params.speed,t=true,r){const i=this;const{animating:n,enabled:o,params:s}=i;if(!o)return i;let a=s.slidesPerGroup;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){a=Math.max(i.slidesPerViewDynamic("current",true),1)}const l=i.activeIndex<s.slidesPerGroupSkip?1:a;if(s.loop){if(n&&s.loopPreventsSlide)return false;i.loopFix();i._clientLeft=i.$wrapperEl[0].clientLeft}if(s.rewind&&i.isEnd){return i.slideTo(0,e,t,r)}return i.slideTo(i.activeIndex+l,e,t,r)}function Kc(e=this.params.speed,t=true,r){const i=this;const{params:n,animating:o,snapGrid:s,slidesGrid:a,rtlTranslate:l,enabled:c}=i;if(!c)return i;if(n.loop){if(o&&n.loopPreventsSlide)return false;i.loopFix();i._clientLeft=i.$wrapperEl[0].clientLeft}const f=l?i.translate:-i.translate;function u(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}const d=u(f);const p=s.map((e=>u(e)));let h=s[p.indexOf(d)-1];if(typeof h==="undefined"&&n.cssMode){let e;s.forEach(((t,r)=>{if(d>=t){e=r}}));if(typeof e!=="undefined"){h=s[e>0?e-1:e]}}let m=0;if(typeof h!=="undefined"){m=a.indexOf(h);if(m<0)m=i.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){m=m-i.slidesPerViewDynamic("previous",true)+1;m=Math.max(m,0)}}if(n.rewind&&i.isBeginning){const n=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(n,e,t,r)}return i.slideTo(m,e,t,r)}function Xc(e=this.params.speed,t=true,r){const i=this;return i.slideTo(i.activeIndex,e,t,r)}function Jc(e=this.params.speed,t=true,r,i=.5){const n=this;let o=n.activeIndex;const s=Math.min(n.params.slidesPerGroupSkip,o);const a=s+Math.floor((o-s)/n.params.slidesPerGroup);const l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const e=n.snapGrid[a];const t=n.snapGrid[a+1];if(l-e>(t-e)*i){o+=n.params.slidesPerGroup}}else{const e=n.snapGrid[a-1];const t=n.snapGrid[a];if(l-e<=(t-e)*i){o-=n.params.slidesPerGroup}}o=Math.max(o,0);o=Math.min(o,n.slidesGrid.length-1);return n.slideTo(o,e,t,r)}function ef(){const e=this;const{params:t,$wrapperEl:r}=e;const i=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let n=e.clickedIndex;let o;if(t.loop){if(e.animating)return;o=parseInt(xl(e.clickedSlide).attr("data-swiper-slide-index"),10);if(t.centeredSlides){if(n<e.loopedSlides-i/2||n>e.slides.length-e.loopedSlides+i/2){e.loopFix();n=r.children(`.${t.slideClass}[data-swiper-slide-index="${o}"]:not(.${t.slideDuplicateClass})`).eq(0).index();sc((()=>{e.slideTo(n)}))}else{e.slideTo(n)}}else if(n>e.slides.length-i){e.loopFix();n=r.children(`.${t.slideClass}[data-swiper-slide-index="${o}"]:not(.${t.slideDuplicateClass})`).eq(0).index();sc((()=>{e.slideTo(n)}))}else{e.slideTo(n)}}else{e.slideTo(n)}}const tf={slideTo:Zc,slideToLoop:Vc,slideNext:Qc,slidePrev:Kc,slideReset:Xc,slideToClosest:Jc,slideToClickedSlide:ef};function rf(){const e=this;const t=dl();const{params:r,$wrapperEl:i}=e;const n=i.children().length>0?xl(i.children()[0].parentNode):i;n.children(`.${r.slideClass}.${r.slideDuplicateClass}`).remove();let o=n.children(`.${r.slideClass}`);if(r.loopFillGroupWithBlank){const e=r.slidesPerGroup-o.length%r.slidesPerGroup;if(e!==r.slidesPerGroup){for(let i=0;i<e;i+=1){const e=xl(t.createElement("div")).addClass(`${r.slideClass} ${r.slideBlankClass}`);n.append(e)}o=n.children(`.${r.slideClass}`)}}if(r.slidesPerView==="auto"&&!r.loopedSlides)r.loopedSlides=o.length;e.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10));e.loopedSlides+=r.loopAdditionalSlides;if(e.loopedSlides>o.length&&e.params.loopedSlidesLimit){e.loopedSlides=o.length}const s=[];const a=[];o.each(((e,t)=>{const r=xl(e);r.attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/o.length)*o.length;a.push(o.eq(e)[0]);s.unshift(o.eq(o.length-e-1)[0])}for(let e=0;e<a.length;e+=1){n.append(xl(a[e].cloneNode(true)).addClass(r.slideDuplicateClass))}for(let e=s.length-1;e>=0;e-=1){n.prepend(xl(s[e].cloneNode(true)).addClass(r.slideDuplicateClass))}}function nf(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:r,loopedSlides:i,allowSlidePrev:n,allowSlideNext:o,snapGrid:s,rtlTranslate:a}=e;let l;e.allowSlidePrev=true;e.allowSlideNext=true;const c=-s[t];const f=c-e.getTranslate();if(t<i){l=r.length-i*3+t;l+=i;const n=e.slideTo(l,0,false,true);if(n&&f!==0){e.setTranslate((a?-e.translate:e.translate)-f)}}else if(t>=r.length-i){l=-r.length+t+i;l+=i;const n=e.slideTo(l,0,false,true);if(n&&f!==0){e.setTranslate((a?-e.translate:e.translate)-f)}}e.allowSlidePrev=n;e.allowSlideNext=o;e.emit("loopFix")}function of(){const e=this;const{$wrapperEl:t,params:r,slides:i}=e;t.children(`.${r.slideClass}.${r.slideDuplicateClass},.${r.slideClass}.${r.slideBlankClass}`).remove();i.removeAttr("data-swiper-slide-index")}const sf={loopCreate:rf,loopFix:nf,loopDestroy:of};function af(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;r.style.cursor="move";r.style.cursor=e?"grabbing":"grab"}function lf(){const e=this;if(e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor=""}const cf={setGrabCursor:af,unsetGrabCursor:lf};function ff(e,t=this){function r(t){if(!t||t===dl()||t===hl())return null;if(t.assignedSlot)t=t.assignedSlot;const i=t.closest(e);if(!i&&!t.getRootNode){return null}return i||r(t.getRootNode().host)}return r(t)}function uf(e){const t=this;const r=dl();const i=hl();const n=t.touchEventsData;const{params:o,touches:s,enabled:a}=t;if(!a)return;if(t.animating&&o.preventInteractionOnTransition){return}if(!t.animating&&o.cssMode&&o.loop){t.loopFix()}let l=e;if(l.originalEvent)l=l.originalEvent;let c=xl(l.target);if(o.touchEventsTarget==="wrapper"){if(!c.closest(t.wrapperEl).length)return}n.isTouchEvent=l.type==="touchstart";if(!n.isTouchEvent&&"which"in l&&l.which===3)return;if(!n.isTouchEvent&&"button"in l&&l.button>0)return;if(n.isTouched&&n.isMoved)return;const f=!!o.noSwipingClass&&o.noSwipingClass!=="";const u=e.composedPath?e.composedPath():e.path;if(f&&l.target&&l.target.shadowRoot&&u){c=xl(u[0])}const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(p?ff(d,c[0]):c.closest(d)[0])){t.allowClick=true;return}if(o.swipeHandler){if(!c.closest(o.swipeHandler)[0])return}s.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX;s.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const h=s.currentX;const m=s.currentY;const b=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection;const y=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(b&&(h<=y||h>=i.innerWidth-y)){if(b==="prevent"){e.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});s.startX=h;s.startY=m;n.touchStartTime=ac();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(o.threshold>0)n.allowThresholdMove=false;if(l.type!=="touchstart"){let e=true;if(c.is(n.focusableElements)){e=false;if(c[0].nodeName==="SELECT"){n.isTouched=false}}if(r.activeElement&&xl(r.activeElement).is(n.focusableElements)&&r.activeElement!==c[0]){r.activeElement.blur()}const i=e&&t.allowTouchMove&&o.touchStartPreventDefault;if((o.touchStartForcePreventDefault||i)&&!c[0].isContentEditable){l.preventDefault()}}if(t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",l)}function df(e){const t=dl();const r=this;const i=r.touchEventsData;const{params:n,touches:o,rtlTranslate:s,enabled:a}=r;if(!a)return;let l=e;if(l.originalEvent)l=l.originalEvent;if(!i.isTouched){if(i.startMoving&&i.isScrolling){r.emit("touchMoveOpposite",l)}return}if(i.isTouchEvent&&l.type!=="touchmove")return;const c=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]);const f=l.type==="touchmove"?c.pageX:l.pageX;const u=l.type==="touchmove"?c.pageY:l.pageY;if(l.preventedByNestedSwiper){o.startX=f;o.startY=u;return}if(!r.allowTouchMove){if(!xl(l.target).is(i.focusableElements)){r.allowClick=false}if(i.isTouched){Object.assign(o,{startX:f,startY:u,currentX:f,currentY:u});i.touchStartTime=ac()}return}if(i.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop){if(r.isVertical()){if(u<o.startY&&r.translate<=r.maxTranslate()||u>o.startY&&r.translate>=r.minTranslate()){i.isTouched=false;i.isMoved=false;return}}else if(f<o.startX&&r.translate<=r.maxTranslate()||f>o.startX&&r.translate>=r.minTranslate()){return}}if(i.isTouchEvent&&t.activeElement){if(l.target===t.activeElement&&xl(l.target).is(i.focusableElements)){i.isMoved=true;r.allowClick=false;return}}if(i.allowTouchCallbacks){r.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;o.currentX=f;o.currentY=u;const d=o.currentX-o.startX;const p=o.currentY-o.startY;if(r.params.threshold&&Math.sqrt(d**2+p**2)<r.params.threshold)return;if(typeof i.isScrolling==="undefined"){let e;if(r.isHorizontal()&&o.currentY===o.startY||r.isVertical()&&o.currentX===o.startX){i.isScrolling=false}else{if(d*d+p*p>=25){e=Math.atan2(Math.abs(p),Math.abs(d))*180/Math.PI;i.isScrolling=r.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle}}}if(i.isScrolling){r.emit("touchMoveOpposite",l)}if(typeof i.startMoving==="undefined"){if(o.currentX!==o.startX||o.currentY!==o.startY){i.startMoving=true}}if(i.isScrolling){i.isTouched=false;return}if(!i.startMoving){return}r.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}if(!i.isMoved){if(n.loop&&!n.cssMode){r.loopFix()}i.startTranslate=r.getTranslate();r.setTransition(0);if(r.animating){r.$wrapperEl.trigger("webkitTransitionEnd transitionend")}i.allowMomentumBounce=false;if(n.grabCursor&&(r.allowSlideNext===true||r.allowSlidePrev===true)){r.setGrabCursor(true)}r.emit("sliderFirstMove",l)}r.emit("sliderMove",l);i.isMoved=true;let h=r.isHorizontal()?d:p;o.diff=h;h*=n.touchRatio;if(s)h=-h;r.swipeDirection=h>0?"prev":"next";i.currentTranslate=h+i.startTranslate;let m=true;let b=n.resistanceRatio;if(n.touchReleaseOnEdges){b=0}if(h>0&&i.currentTranslate>r.minTranslate()){m=false;if(n.resistance)i.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+i.startTranslate+h)**b}else if(h<0&&i.currentTranslate<r.maxTranslate()){m=false;if(n.resistance)i.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-i.startTranslate-h)**b}if(m){l.preventedByNestedSwiper=true}if(!r.allowSlideNext&&r.swipeDirection==="next"&&i.currentTranslate<i.startTranslate){i.currentTranslate=i.startTranslate}if(!r.allowSlidePrev&&r.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate){i.currentTranslate=i.startTranslate}if(!r.allowSlidePrev&&!r.allowSlideNext){i.currentTranslate=i.startTranslate}if(n.threshold>0){if(Math.abs(h)>n.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=true;o.startX=o.currentX;o.startY=o.currentY;i.currentTranslate=i.startTranslate;o.diff=r.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{i.currentTranslate=i.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&r.freeMode||n.watchSlidesProgress){r.updateActiveIndex();r.updateSlidesClasses()}if(r.params.freeMode&&n.freeMode.enabled&&r.freeMode){r.freeMode.onTouchMove()}r.updateProgress(i.currentTranslate);r.setTranslate(i.currentTranslate)}function pf(e){const t=this;const r=t.touchEventsData;const{params:i,touches:n,rtlTranslate:o,slidesGrid:s,enabled:a}=t;if(!a)return;let l=e;if(l.originalEvent)l=l.originalEvent;if(r.allowTouchCallbacks){t.emit("touchEnd",l)}r.allowTouchCallbacks=false;if(!r.isTouched){if(r.isMoved&&i.grabCursor){t.setGrabCursor(false)}r.isMoved=false;r.startMoving=false;return}if(i.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===true||t.allowSlidePrev===true)){t.setGrabCursor(false)}const c=ac();const f=c-r.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target);t.emit("tap click",l);if(f<300&&c-r.lastClickTime<300){t.emit("doubleTap doubleClick",l)}}r.lastClickTime=ac();sc((()=>{if(!t.destroyed)t.allowClick=true}));if(!r.isTouched||!r.isMoved||!t.swipeDirection||n.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=false;r.isMoved=false;r.startMoving=false;return}r.isTouched=false;r.isMoved=false;r.startMoving=false;let u;if(i.followFinger){u=o?t.translate:-t.translate}else{u=-r.currentTranslate}if(i.cssMode){return}if(t.params.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:u});return}let d=0;let p=t.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){const t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(typeof s[e+t]!=="undefined"){if(u>=s[e]&&u<s[e+t]){d=e;p=s[e+t]-s[e]}}else if(u>=s[e]){d=e;p=s[s.length-1]-s[s.length-2]}}let h=null;let m=null;if(i.rewind){if(t.isBeginning){m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else if(t.isEnd){h=0}}const b=(u-s[d])/p;const y=d<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(f>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}if(t.swipeDirection==="next"){if(b>=i.longSwipesRatio)t.slideTo(i.rewind&&t.isEnd?h:d+y);else t.slideTo(d)}if(t.swipeDirection==="prev"){if(b>1-i.longSwipesRatio){t.slideTo(d+y)}else if(m!==null&&b<0&&Math.abs(b)>i.longSwipesRatio){t.slideTo(m)}else{t.slideTo(d)}}}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}const e=t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl);if(!e){if(t.swipeDirection==="next"){t.slideTo(h!==null?h:d+y)}if(t.swipeDirection==="prev"){t.slideTo(m!==null?m:d)}}else if(l.target===t.navigation.nextEl){t.slideTo(d+y)}else{t.slideTo(d)}}}function hf(){const e=this;const{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;if(t.breakpoints){e.setBreakpoint()}const{allowSlideNext:i,allowSlidePrev:n,snapGrid:o}=e;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides){e.slideTo(e.slides.length-1,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.run()}e.allowSlidePrev=n;e.allowSlideNext=i;if(e.params.watchOverflow&&o!==e.snapGrid){e.checkOverflow()}}function mf(e){const t=this;if(!t.enabled)return;if(!t.allowClick){if(t.params.preventClicks)e.preventDefault();if(t.params.preventClicksPropagation&&t.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function bf(){const e=this;const{wrapperEl:t,rtlTranslate:r,enabled:i}=e;if(!i)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-t.scrollLeft}else{e.translate=-t.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();let n;const o=e.maxTranslate()-e.minTranslate();if(o===0){n=0}else{n=(e.translate-e.minTranslate())/o}if(n!==e.progress){e.updateProgress(r?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}let yf=false;function wf(){}const gf=(e,t)=>{const r=dl();const{params:i,touchEvents:n,el:o,wrapperEl:s,device:a,support:l}=e;const c=!!i.nested;const f=t==="on"?"addEventListener":"removeEventListener";const u=t;if(!l.touch){o[f](n.start,e.onTouchStart,false);r[f](n.move,e.onTouchMove,c);r[f](n.end,e.onTouchEnd,false)}else{const t=n.start==="touchstart"&&l.passiveListener&&i.passiveListeners?{passive:true,capture:false}:false;o[f](n.start,e.onTouchStart,t);o[f](n.move,e.onTouchMove,l.passiveListener?{passive:false,capture:c}:c);o[f](n.end,e.onTouchEnd,t);if(n.cancel){o[f](n.cancel,e.onTouchEnd,t)}}if(i.preventClicks||i.preventClicksPropagation){o[f]("click",e.onClick,true)}if(i.cssMode){s[f]("scroll",e.onScroll)}if(i.updateOnWindowResize){e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",hf,true)}else{e[u]("observerUpdate",hf,true)}};function vf(){const e=this;const t=dl();const{params:r,support:i}=e;e.onTouchStart=uf.bind(e);e.onTouchMove=df.bind(e);e.onTouchEnd=pf.bind(e);if(r.cssMode){e.onScroll=bf.bind(e)}e.onClick=mf.bind(e);if(i.touch&&!yf){t.addEventListener("touchstart",wf);yf=true}gf(e,"on")}function xf(){const e=this;gf(e,"off")}const Af={attachEvents:vf,detachEvents:xf};const _f=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function kf(){const e=this;const{activeIndex:t,initialized:r,loopedSlides:i=0,params:n,$el:o}=e;const s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=a in s?s[a]:undefined;const c=l||e.originalParams;const f=_f(e,n);const u=_f(e,c);const d=n.enabled;if(f&&!u){o.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`);e.emitContainerClasses()}else if(!f&&u){o.addClass(`${n.containerModifierClass}grid`);if(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&n.grid.fill==="column"){o.addClass(`${n.containerModifierClass}grid-column`)}e.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((t=>{const r=n[t]&&n[t].enabled;const i=c[t]&&c[t].enabled;if(r&&!i){e[t].disable()}if(!r&&i){e[t].enable()}}));const p=c.direction&&c.direction!==n.direction;const h=n.loop&&(c.slidesPerView!==n.slidesPerView||p);if(p&&r){e.changeDirection()}dc(e.params,c);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(d&&!m){e.disable()}else if(!d&&m){e.enable()}e.currentBreakpoint=a;e.emit("_beforeBreakpoint",c);if(h&&r){e.loopDestroy();e.loopCreate();e.updateSlides();e.slideTo(t-i+e.loopedSlides,0,false)}e.emit("breakpoint",c)}function Sf(e,t="window",r){if(!e||t==="container"&&!r)return undefined;let i=false;const n=hl();const o=t==="window"?n.innerHeight:r.clientHeight;const s=Object.keys(e).map((e=>{if(typeof e==="string"&&e.indexOf("@")===0){const t=parseFloat(e.substr(1));const r=o*t;return{value:r,point:e}}return{value:e,point:e}}));s.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<s.length;e+=1){const{point:o,value:a}=s[e];if(t==="window"){if(n.matchMedia(`(min-width: ${a}px)`).matches){i=o}}else if(a<=r.clientWidth){i=o}}return i||"max"}const jf={setBreakpoint:kf,getBreakpoint:Sf};function Ef(e,t){const r=[];e.forEach((e=>{if(typeof e==="object"){Object.keys(e).forEach((i=>{if(e[i]){r.push(t+i)}}))}else if(typeof e==="string"){r.push(t+e)}}));return r}function Mf(){const e=this;const{classNames:t,params:r,rtl:i,$el:n,device:o,support:s}=e;const a=Ef(["initialized",r.direction,{"pointer-events":!s.touch},{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:i},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...a);n.addClass([...t].join(" "));e.emitContainerClasses()}function Cf(){const e=this;const{$el:t,classNames:r}=e;t.removeClass(r.join(" "));e.emitContainerClasses()}const Of={addClasses:Mf,removeClasses:Cf};function $f(e,t,r,i,n,o){const s=hl();let a;function l(){if(o)o()}const c=xl(e).parent("picture")[0];if(!c&&(!e.complete||!n)){if(t){a=new s.Image;a.onload=l;a.onerror=l;if(i){a.sizes=i}if(r){a.srcset=r}if(t){a.src=t}}else{l()}}else{l()}}function Pf(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){if(typeof e==="undefined"||e===null||!e||e.destroyed)return;if(e.imagesLoaded!==undefined)e.imagesLoaded+=1;if(e.imagesLoaded===e.imagesToLoad.length){if(e.params.updateOnImagesReady)e.update();e.emit("imagesReady")}}for(let r=0;r<e.imagesToLoad.length;r+=1){const i=e.imagesToLoad[r];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),true,t)}}const If={loadImage:$f,preloadImages:Pf};function Bf(){const e=this;const{isLocked:t,params:r}=e;const{slidesOffsetBefore:i}=r;if(i){const t=e.slides.length-1;const r=e.slidesGrid[t]+e.slidesSizesGrid[t]+i*2;e.isLocked=e.size>r}else{e.isLocked=e.snapGrid.length===1}if(r.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(r.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(t&&t!==e.isLocked){e.isEnd=false}if(t!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}const zf={checkOverflow:Bf};const Tf={init:true,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:0,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,preloadImages:true,updateOnImagesReady:true,loop:false,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:true,loopFillGroupWithBlank:false,loopPreventsSlide:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:true,_emitClasses:false};function Rf(e,t){return function r(i={}){const n=Object.keys(i)[0];const o=i[n];if(typeof o!=="object"||o===null){dc(t,i);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&e[n]===true){e[n]={auto:true}}if(!(n in e&&"enabled"in o)){dc(t,i);return}if(e[n]===true){e[n]={enabled:true}}if(typeof e[n]==="object"&&!("enabled"in e[n])){e[n].enabled=true}if(!e[n])e[n]={enabled:false};dc(t,i)}}const Ff={eventsEmitter:jc,update:Tc,translate:Dc,transition:qc,slide:tf,loop:sf,grabCursor:cf,events:Af,breakpoints:jf,checkOverflow:zf,classes:Of,images:If};const Nf={};class Gf{constructor(...e){let t;let r;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"){r=e[0]}else{[t,r]=e}if(!r)r={};r=dc({},r);if(t&&!r.el)r.el=t;if(r.el&&xl(r.el).length>1){const e=[];xl(r.el).each((t=>{const i=dc({},r,{el:t});e.push(new Gf(i))}));return e}const i=this;i.__swiper__=true;i.support=yc();i.device=vc({userAgent:r.userAgent});i.browser=_c();i.eventsListeners={};i.eventsAnyListeners=[];i.modules=[...i.__modules__];if(r.modules&&Array.isArray(r.modules)){i.modules.push(...r.modules)}const n={};i.modules.forEach((e=>{e({swiper:i,extendParams:Rf(r,n),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const o=dc({},Tf,n);i.params=dc({},o,Nf,r);i.originalParams=dc({},i.params);i.passedParams=dc({},r);if(i.params&&i.params.on){Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])}))}if(i.params&&i.params.onAny){i.onAny(i.params.onAny)}i.$=xl;Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:xl(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function e(){const t=["touchstart","touchmove","touchend","touchcancel"];const r=["pointerdown","pointermove","pointerup"];i.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]};i.touchEventsDesktop={start:r[0],move:r[1],end:r[2]};return i.support.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:i.params.focusableElements,lastClickTime:ac(),clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined},allowClick:true,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});i.emit("_swiper");if(i.params.init){i.init()}return i}enable(){const e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")}disable(){const e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")}setProgress(e,t){const r=this;e=Math.min(Math.max(e,0),1);const i=r.minTranslate();const n=r.maxTranslate();const o=(n-i)*e+i;r.translateTo(o,typeof t==="undefined"?0:t);r.updateActiveIndex();r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>t.indexOf("swiper")===0||t.indexOf(e.params.containerModifierClass)===0));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;if(t.destroyed)return"";return e.className.split(" ").filter((e=>e.indexOf("swiper-slide")===0||e.indexOf(t.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((r=>{const i=e.getSlideClasses(r);t.push({slideEl:r,classNames:i});e.emit("_slideClass",r,i)}));e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=false){const r=this;const{params:i,slides:n,slidesGrid:o,slidesSizesGrid:s,size:a,activeIndex:l}=r;let c=1;if(i.centeredSlides){let e=n[l].swiperSlideSize;let t;for(let r=l+1;r<n.length;r+=1){if(n[r]&&!t){e+=n[r].swiperSlideSize;c+=1;if(e>a)t=true}}for(let r=l-1;r>=0;r-=1){if(n[r]&&!t){e+=n[r].swiperSlideSize;c+=1;if(e>a)t=true}}}else{if(e==="current"){for(let e=l+1;e<n.length;e+=1){const r=t?o[e]+s[e]-o[l]<a:o[e]-o[l]<a;if(r){c+=1}}}else{for(let e=l-1;e>=0;e-=1){const t=o[l]-o[e]<a;if(t){c+=1}}}}return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;if(r.breakpoints){e.setBreakpoint()}e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function i(){const t=e.rtlTranslate?e.translate*-1:e.translate;const r=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(r);e.updateActiveIndex();e.updateSlidesClasses()}let n;if(e.params.freeMode&&e.params.freeMode.enabled){i();if(e.params.autoHeight){e.updateAutoHeight()}}else{if((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides){n=e.slideTo(e.slides.length-1,0,false,true)}else{n=e.slideTo(e.activeIndex,0,false,true)}if(!n){i()}}if(r.watchOverflow&&t!==e.snapGrid){e.checkOverflow()}e.emit("update")}changeDirection(e,t=true){const r=this;const i=r.params.direction;if(!e){e=i==="horizontal"?"vertical":"horizontal"}if(e===i||e!=="horizontal"&&e!=="vertical"){return r}r.$el.removeClass(`${r.params.containerModifierClass}${i}`).addClass(`${r.params.containerModifierClass}${e}`);r.emitContainerClasses();r.params.direction=e;r.slides.each((t=>{if(e==="vertical"){t.style.width=""}else{t.style.height=""}}));r.emit("changeDirection");if(t)r.update();return r}changeLanguageDirection(e){const t=this;if(t.rtl&&e==="rtl"||!t.rtl&&e==="ltr")return;t.rtl=e==="rtl";t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl;if(t.rtl){t.$el.addClass(`${t.params.containerModifierClass}rtl`);t.el.dir="rtl"}else{t.$el.removeClass(`${t.params.containerModifierClass}rtl`);t.el.dir="ltr"}t.update()}mount(e){const t=this;if(t.mounted)return true;const r=xl(e||t.params.el);e=r[0];if(!e){return false}e.swiper=t;const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;const n=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=xl(e.shadowRoot.querySelector(i()));t.children=e=>r.children(e);return t}if(!r.children){return xl(r).children(i())}return r.children(i())};let o=n();if(o.length===0&&t.params.createElements){const e=dl();const i=e.createElement("div");o=xl(i);i.className=t.params.wrapperClass;r.append(i);r.children(`.${t.params.slideClass}`).each((e=>{o.append(e)}))}Object.assign(t,{$el:r,el:e,$wrapperEl:o,wrapperEl:o[0],mounted:true,rtl:e.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl"),wrongRTL:o.css("display")==="-webkit-box"});return true}init(e){const t=this;if(t.initialized)return t;const r=t.mount(e);if(r===false)return t;t.emit("beforeInit");if(t.params.breakpoints){t.setBreakpoint()}t.addClasses();if(t.params.loop){t.loopCreate()}t.updateSize();t.updateSlides();if(t.params.watchOverflow){t.checkOverflow()}if(t.params.grabCursor&&t.enabled){t.setGrabCursor()}if(t.params.preloadImages){t.preloadImages()}if(t.params.loop){t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,false,true)}else{t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,false,true)}t.attachEvents();t.initialized=true;t.emit("init");t.emit("afterInit");return t}destroy(e=true,t=true){const r=this;const{params:i,$el:n,$wrapperEl:o,slides:s}=r;if(typeof r.params==="undefined"||r.destroyed){return null}r.emit("beforeDestroy");r.initialized=false;r.detachEvents();if(i.loop){r.loopDestroy()}if(t){r.removeClasses();n.removeAttr("style");o.removeAttr("style");if(s&&s.length){s.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")}}r.emit("destroy");Object.keys(r.eventsListeners).forEach((e=>{r.off(e)}));if(e!==false){r.$el[0].swiper=null;oc(r)}r.destroyed=true;return null}static extendDefaults(e){dc(Nf,e)}static get extendedDefaults(){return Nf}static get defaults(){return Tf}static installModule(e){if(!Gf.prototype.__modules__)Gf.prototype.__modules__=[];const t=Gf.prototype.__modules__;if(typeof e==="function"&&t.indexOf(e)<0){t.push(e)}}static use(e){if(Array.isArray(e)){e.forEach((e=>Gf.installModule(e)));return Gf}Gf.installModule(e);return Gf}}Object.keys(Ff).forEach((e=>{Object.keys(Ff[e]).forEach((t=>{Gf.prototype[t]=Ff[e][t]}))}));Gf.use([kc,Sc]);function Lf(e,t,r,i){const n=dl();if(e.params.createElements){Object.keys(i).forEach((o=>{if(!r[o]&&r.auto===true){let s=e.$el.children(`.${i[o]}`)[0];if(!s){s=n.createElement("div");s.className=i[o];e.$el.append(s)}r[o]=s;t[o]=s}}))}return r}function Df({swiper:e,extendParams:t,on:r,emit:i}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}});e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function n(t){let r;if(t){r=xl(t);if(e.params.uniqueNavElements&&typeof t==="string"&&r.length>1&&e.$el.find(t).length===1){r=e.$el.find(t)}}return r}function o(t,r){const i=e.params.navigation;if(t&&t.length>0){t[r?"addClass":"removeClass"](i.disabledClass);if(t[0]&&t[0].tagName==="BUTTON")t[0].disabled=r;if(e.params.watchOverflow&&e.enabled){t[e.isLocked?"addClass":"removeClass"](i.lockClass)}}}function s(){if(e.params.loop)return;const{$nextEl:t,$prevEl:r}=e.navigation;o(r,e.isBeginning&&!e.params.rewind);o(t,e.isEnd&&!e.params.rewind)}function a(t){t.preventDefault();if(e.isBeginning&&!e.params.loop&&!e.params.rewind)return;e.slidePrev();i("navigationPrev")}function l(t){t.preventDefault();if(e.isEnd&&!e.params.loop&&!e.params.rewind)return;e.slideNext();i("navigationNext")}function c(){const t=e.params.navigation;e.params.navigation=Lf(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(t.nextEl||t.prevEl))return;const r=n(t.nextEl);const i=n(t.prevEl);if(r&&r.length>0){r.on("click",l)}if(i&&i.length>0){i.on("click",a)}Object.assign(e.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:i,prevEl:i&&i[0]});if(!e.enabled){if(r)r.addClass(t.lockClass);if(i)i.addClass(t.lockClass)}}function f(){const{$nextEl:t,$prevEl:r}=e.navigation;if(t&&t.length){t.off("click",l);t.removeClass(e.params.navigation.disabledClass)}if(r&&r.length){r.off("click",a);r.removeClass(e.params.navigation.disabledClass)}}r("init",(()=>{if(e.params.navigation.enabled===false){d()}else{c();s()}}));r("toEdge fromEdge lock unlock",(()=>{s()}));r("destroy",(()=>{f()}));r("enable disable",(()=>{const{$nextEl:t,$prevEl:r}=e.navigation;if(t){t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}if(r){r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}}));r("click",((t,r)=>{const{$nextEl:n,$prevEl:o}=e.navigation;const s=r.target;if(e.params.navigation.hideOnClick&&!xl(s).is(o)&&!xl(s).is(n)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;let t;if(n){t=n.hasClass(e.params.navigation.hiddenClass)}else if(o){t=o.hasClass(e.params.navigation.hiddenClass)}if(t===true){i("navigationShow")}else{i("navigationHide")}if(n){n.toggleClass(e.params.navigation.hiddenClass)}if(o){o.toggleClass(e.params.navigation.hiddenClass)}}}));const u=()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass);c();s()};const d=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass);f()};Object.assign(e.navigation,{enable:u,disable:d,update:s,init:c,destroy:f})}function Yf({swiper:e,extendParams:t,on:r}){t({controller:{control:undefined,inverse:false,by:"slide"}});e.controller={control:undefined};function i(e,t){const r=function e(){let t;let r;let i;return(e,n)=>{r=-1;t=e.length;while(t-r>1){i=t+r>>1;if(e[i]<=n){r=i}else{t=i}}return t}}();this.x=e;this.y=t;this.lastIndex=e.length-1;let i;let n;this.interpolate=function e(t){if(!t)return 0;n=r(this.x,t);i=n-1;return(t-this.x[i])*(this.y[n]-this.y[i])/(this.x[n]-this.x[i])+this.y[i]};return this}function n(t){if(!e.controller.spline){e.controller.spline=e.params.loop?new i(e.slidesGrid,t.slidesGrid):new i(e.snapGrid,t.snapGrid)}}function o(t,r){const i=e.controller.control;let o;let s;const a=e.constructor;function l(t){const r=e.rtlTranslate?-e.translate:e.translate;if(e.params.controller.by==="slide"){n(t);s=-e.controller.spline.interpolate(-r)}if(!s||e.params.controller.by==="container"){o=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate());s=(r-e.minTranslate())*o+t.minTranslate()}if(e.params.controller.inverse){s=t.maxTranslate()-s}t.updateProgress(s);t.setTranslate(s,e);t.updateActiveIndex();t.updateSlidesClasses()}if(Array.isArray(i)){for(let e=0;e<i.length;e+=1){if(i[e]!==r&&i[e]instanceof a){l(i[e])}}}else if(i instanceof a&&r!==i){l(i)}}function s(t,r){const i=e.constructor;const n=e.controller.control;let o;function s(r){r.setTransition(t,e);if(t!==0){r.transitionStart();if(r.params.autoHeight){sc((()=>{r.updateAutoHeight()}))}r.$wrapperEl.transitionEnd((()=>{if(!n)return;if(r.params.loop&&e.params.controller.by==="slide"){r.loopFix()}r.transitionEnd()}))}}if(Array.isArray(n)){for(o=0;o<n.length;o+=1){if(n[o]!==r&&n[o]instanceof i){s(n[o])}}}else if(n instanceof i&&r!==n){s(n)}}function a(){if(!e.controller.control)return;if(e.controller.spline){e.controller.spline=undefined;delete e.controller.spline}}r("beforeInit",(()=>{e.controller.control=e.params.controller.control}));r("update",(()=>{a()}));r("resize",(()=>{a()}));r("observerUpdate",(()=>{a()}));r("setTranslate",((t,r,i)=>{if(!e.controller.control)return;e.controller.setTranslate(r,i)}));r("setTransition",((t,r,i)=>{if(!e.controller.control)return;e.controller.setTransition(r,i)}));Object.assign(e.controller,{setTranslate:o,setTransition:s})}const Wf="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}:host{--swiper-theme-color:#007aff;--swiper-navigation-size:44px}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:100%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{content:\"\" !important;font-family:initial !important;font-size:0 !important;width:8px;height:8px;border-right:2px solid #232323;border-bottom:2px solid #232323;display:block}.slider-wrapper .mySwiper2 .swiper-button-next{right:45%}.slider-wrapper .mySwiper2 .swiper-button-next::after{transform:rotate(-45deg)}.slider-wrapper .mySwiper2 .swiper-button-prev{left:45%}.slider-wrapper .mySwiper2 .swiper-button-prev::after{transform:rotate(135deg)}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";const Uf=class{constructor(t){e(this,t);this.colorInteraction=()=>{Ai({event:"ColorInteraction",shop:this.shop,product:this.product,color:this.color})};this.slides=undefined;this.shop=undefined;this.product=undefined;this.color=undefined}initSwiper(){const e=this.modalEl.shadowRoot;if(!e)return;const t=e.querySelector(".mySwiper");const r=e.querySelector(".mySwiper2");const i=e.querySelector(".swiper-button-next");const n=e.querySelector(".swiper-button-prev");if(t){this.thumbs=new Gf(t,{modules:[Df,Yf],slideToClickedSlide:true,loop:true,freeMode:true,spaceBetween:5,slidesPerView:3,direction:"vertical",touchRatio:.2})}if(!r)return;this.swiper2=new Gf(r,{modules:[Df,Yf],navigation:i&&n?{nextEl:i,prevEl:n}:undefined,slideToClickedSlide:true,loop:true,freeMode:true,slidesPerView:1});if(this.swiper2){this.swiper2.controller.control=this.swiper2}}componentDidLoad(){this.initSwiper()}update(){var e,t;(e=this.thumbs)===null||e===void 0?void 0:e.update();(t=this.swiper2)===null||t===void 0?void 0:t.update()}render(){return r("div",{class:"slider-wrapper"},r("div",{class:"swiper mySwiper2"},r("div",{class:"swiper-wrapper"},this.slides&&this.slides.length>0&&this.slides.map((e=>r("div",{key:e.id,class:"swiper-slide"},r("img",{src:`${oi}/assets/${e.directus_files_id}?access_token=${si}`,alt:"room_image"}))))),this.slides&&this.slides.length>=2&&r("div",null,r("div",{onClick:this.colorInteraction,class:"swiper-button-next"}),r("div",{onClick:this.colorInteraction,class:"swiper-button-prev"}))))}get modalEl(){return n(this)}};Uf.style=Wf;export{gi as modal_header,xi as my_backdrop,ji as my_colorbox,Ei as my_colorinfo,Ji as my_component,il as my_modal,sl as my_search,ll as my_select,Uf as my_slider};
|
|
15
|
+
//# sourceMappingURL=p-2730a042.entry.js.map
|