/*! For license information please see back.js.LICENSE.txt */ (()=>{var t={612:t=>{self,t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.d(e,{default:()=>O});var n={};function r(t,e,n,r,o={}){e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);for(const i of e)for(const e of n)i[t](e,r,{capture:!1,...o});return Array.prototype.slice.call(arguments,1)}t.r(n),t.d(n,{adjustableInputNumbers:()=>u,createElementFromString:()=>a,createFromTemplate:()=>s,eventPath:()=>c,off:()=>i,on:()=>o,resolveElement:()=>l});const o=r.bind(null,"addEventListener"),i=r.bind(null,"removeEventListener");function a(t){const e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild}function s(t){const e=(t,e)=>{const n=t.getAttribute(e);return t.removeAttribute(e),n},n=(t,r={})=>{const o=e(t,":obj"),i=e(t,":ref"),a=o?r[o]={}:r;i&&(r[i]=t);for(const r of Array.from(t.children)){const t=e(r,":arr"),o=n(r,t?{}:a);t&&(a[t]||(a[t]=[])).push(Object.keys(o).length?o:r)}return r};return n(a(t))}function c(t){let e=t.path||t.composedPath&&t.composedPath();if(e)return e;let n=t.target.parentElement;for(e=[t.target,n];n=n.parentElement;)e.push(n);return e.push(document,window),e}function l(t){return t instanceof Element?t:"string"==typeof t?t.split(/>>/g).reduce(((t,e,n,r)=>(t=t.querySelector(e),nt)){function n(n){const r=[.001,.01,.1][Number(n.shiftKey||2*n.ctrlKey)]*(n.deltaY<0?1:-1);let o=0,i=t.selectionStart;t.value=t.value.replace(/[\d.]+/g,((t,n)=>n<=i&&n+t.length>=i?(i=n,e(Number(t),r,o)):(o++,t))),t.focus(),t.setSelectionRange(i,i),n.preventDefault(),t.dispatchEvent(new Event("input"))}o(t,"focus",(()=>o(window,"wheel",n,{passive:!1}))),o(t,"blur",(()=>i(window,"wheel",n)))}const{min:p,max:d,floor:f,round:v}=Math;function h(t,e,n){e/=100,n/=100;const r=f(t=t/360*6),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),c=r%6;return[255*[n,a,i,i,s,n][c],255*[s,n,n,a,i,i][c],255*[i,i,s,n,n,a][c]]}function m(t,e,n){const r=(2-(e/=100))*(n/=100)/2;return 0!==r&&(e=1===r?0:r<.5?e*n/(2*r):e*n/(2-2*r)),[t,100*e,100*r]}function g(t,e,n){const r=p(t/=255,e/=255,n/=255),o=d(t,e,n),i=o-r;let a,s;if(0===i)a=s=0;else{s=i/o;const r=((o-t)/6+i/2)/i,c=((o-e)/6+i/2)/i,l=((o-n)/6+i/2)/i;t===o?a=l-c:e===o?a=1/3+r-l:n===o&&(a=2/3+c-r),a<0?a+=1:a>1&&(a-=1)}return[360*a,100*s,100*o]}function y(t,e,n,r){return e/=100,n/=100,[...g(255*(1-p(1,(t/=100)*(1-(r/=100))+r)),255*(1-p(1,e*(1-r)+r)),255*(1-p(1,n*(1-r)+r)))]}function _(t,e,n){e/=100;const r=2*(e*=(n/=100)<.5?n:1-n)/(n+e)*100,o=100*(n+e);return[t,isNaN(r)?0:r,o]}function b(t){return g(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function $(t=0,e=0,n=0,r=1){const o=(t,e)=>(n=-1)=>e(~n?t.map((t=>Number(t.toFixed(n)))):t),i={h:t,s:e,v:n,a:r,toHSVA(){const t=[i.h,i.s,i.v,i.a];return t.toString=o(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toHSLA(){const t=[...m(i.h,i.s,i.v),i.a];return t.toString=o(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toRGBA(){const t=[...h(i.h,i.s,i.v),i.a];return t.toString=o(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${i.a})`)),t},toCMYK(){const t=function(t,e,n){const r=h(t,e,n),o=r[0]/255,i=r[1]/255,a=r[2]/255,s=p(1-o,1-i,1-a);return[100*(1===s?0:(1-o-s)/(1-s)),100*(1===s?0:(1-i-s)/(1-s)),100*(1===s?0:(1-a-s)/(1-s)),100*s]}(i.h,i.s,i.v);return t.toString=o(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,n){return h(t,e,n).map((t=>v(t).toString(16).padStart(2,"0")))}(i.h,i.s,i.v),e=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>$(i.h,i.s,i.v,i.a)};return i}const w=t=>Math.max(Math.min(t,1),0);function C(t){const e={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},t),_keyboard(t){const{options:n}=e,{type:r,key:o}=t;if(document.activeElement===n.wrapper){const{lock:n}=e.options,i="ArrowUp"===o,a="ArrowRight"===o,s="ArrowDown"===o,c="ArrowLeft"===o;if("keydown"===r&&(i||a||s||c)){let r=0,o=0;"v"===n?r=i||a?1:-1:"h"===n?r=i||a?-1:1:(o=i?-1:s?1:0,r=c?-1:a?1:0),e.update(w(e.cache.x+.01*r),w(e.cache.y+.01*o)),t.preventDefault()}else o.startsWith("Arrow")&&(e.options.onstop(),t.preventDefault())}},_tapstart(t){o(document,["mouseup","touchend","touchcancel"],e._tapstop),o(document,["mousemove","touchmove"],e._tapmove),t.cancelable&&t.preventDefault(),e._tapmove(t)},_tapmove(t){const{options:n,cache:r}=e,{lock:o,element:i,wrapper:a}=n,s=a.getBoundingClientRect();let c=0,l=0;if(t){const e=t&&t.touches&&t.touches[0];c=t?(e||t).clientX:0,l=t?(e||t).clientY:0,cs.left+s.width&&(c=s.left+s.width),ls.top+s.height&&(l=s.top+s.height),c-=s.left,l-=s.top}else r&&(c=r.x*s.width,l=r.y*s.height);"h"!==o&&(i.style.left=`calc(${c/s.width*100}% - ${i.offsetWidth/2}px)`),"v"!==o&&(i.style.top=`calc(${l/s.height*100}% - ${i.offsetHeight/2}px)`),e.cache={x:c/s.width,y:l/s.height};const u=w(c/s.width),p=w(l/s.height);switch(o){case"v":return n.onchange(u);case"h":return n.onchange(p);default:return n.onchange(u,p)}},_tapstop(){e.options.onstop(),i(document,["mouseup","touchend","touchcancel"],e._tapstop),i(document,["mousemove","touchmove"],e._tapmove)},trigger(){e._tapmove()},update(t=0,n=0){const{left:r,top:o,width:i,height:a}=e.options.wrapper.getBoundingClientRect();"h"===e.options.lock&&(n=t),e._tapmove({clientX:r+i*t,clientY:o+a*n})},destroy(){const{options:t,_tapstart:n,_keyboard:r}=e;i(document,["keydown","keyup"],r),i([t.wrapper,t.element],"mousedown",n),i([t.wrapper,t.element],"touchstart",n,{passive:!1})}},{options:n,_tapstart:r,_keyboard:a}=e;return o([n.wrapper,n.element],"mousedown",r),o([n.wrapper,n.element],"touchstart",r,{passive:!1}),o(document,["keydown","keyup"],a),e}function k(t={}){t=Object.assign({onchange:()=>0,className:"",elements:[]},t);const e=o(t.elements,"click",(e=>{t.elements.forEach((n=>n.classList[e.target===n?"add":"remove"](t.className))),t.onchange(e),e.stopPropagation()}));return{destroy:()=>i(...e)}}const A={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8};function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class O{constructor(t){x(this,"_initializingActive",!0),x(this,"_recalc",!0),x(this,"_nanopop",null),x(this,"_root",null),x(this,"_color",$()),x(this,"_lastColor",$()),x(this,"_swatchColors",[]),x(this,"_setupAnimationFrame",null),x(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=t=Object.assign({...O.DEFAULT_OPTIONS},t);const{swatches:e,components:n,theme:r,sliders:o,lockOpacity:i,padding:a}=t;["nano","monolith"].includes(r)&&!o&&(t.sliders="h"),n.interaction||(n.interaction={});const{preview:s,opacity:c,hue:l,palette:u}=n;n.opacity=!i&&c,n.palette=u||s||c||l,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),e&&e.length&&e.forEach((t=>this.addSwatch(t)));const{button:p,app:d}=this._root;this._nanopop=((t,e,n)=>{const r="object"!=typeof t||t instanceof HTMLElement?{reference:t,popper:e,...n}:t;return{update(t=r){const{reference:e,popper:n}=Object.assign(r,t);if(!n||!e)throw new Error("Popper- or reference-element missing.");return((t,e,n)=>{const{container:r,margin:o,position:i,variantFlipOrder:a,positionFlipOrder:s}={container:document.documentElement.getBoundingClientRect(),...A,...n},{left:c,top:l}=e.style;e.style.left="0",e.style.top="0";const u=t.getBoundingClientRect(),p=e.getBoundingClientRect(),d={t:u.top-p.height-o,b:u.bottom+o,r:u.right+o,l:u.left-p.width-o},f={vs:u.left,vm:u.left+u.width/2+-p.width/2,ve:u.left+u.width-p.width,hs:u.top,hm:u.bottom-u.height/2-p.height/2,he:u.bottom-p.height},[v,h="middle"]=i.split("-"),m=s[v],g=a[h],{top:y,left:_,bottom:b,right:$}=r;for(const t of m){const n="t"===t||"b"===t,r=d[t],[o,i]=n?["top","left"]:["left","top"],[a,s]=n?[p.height,p.width]:[p.width,p.height],[c,l]=n?[b,$]:[$,b],[u,v]=n?[y,_]:[_,y];if(!(rc))for(const a of g){const c=f[(n?"v":"h")+a];if(!(cl))return e.style[i]=c-p[i]+"px",e.style[o]=r-p[o]+"px",t+a}}return e.style.left=c,e.style.top=l,null})(e,n,r)}}})(p,d,{margin:a}),p.setAttribute("role","button"),p.setAttribute("aria-label",this._t("btn:toggle"));const f=this;this._setupAnimationFrame=requestAnimationFrame((function e(){if(!d.offsetWidth)return requestAnimationFrame(e);f.setColor(t.default),f._rePositioningPicker(),t.defaultRepresentation&&(f._representation=t.defaultRepresentation,f.setColorRepresentation(f._representation)),t.showAlways&&f.show(),f._initializingActive=!1,f._emit("init")}))}_preBuild(){const{options:t}=this;for(const e of["el","container"])t[e]=l(t[e]);this._root=(t=>{const{components:e,useAsButton:n,inline:r,appClass:o,theme:i,lockOpacity:a}=t.options,c=t=>t?"":'style="display:none" hidden',l=e=>t._t(e),u=s(`\n
\n\n ${n?"":''}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),p=u.interaction;return p.options.find((t=>!t.hidden&&!t.classList.add("active"))),p.type=()=>p.options.find((t=>t.classList.contains("active"))),u})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const n=t.el.parentElement;t.el.nextSibling?n.insertBefore(e.app,t.el.nextSibling):n.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,n=(t.options.sliders||"v").repeat(2),[r,o]=n.match(/^[vh]+$/g)?n:[],i=()=>this._color||(this._color=this._lastColor.clone()),a={palette:C({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(n,r){if(!e.palette)return;const o=i(),{_root:a,options:s}=t,{lastColor:c,currentColor:l}=a.preview;t._recalc&&(o.s=100*n,o.v=100-100*r,o.v<0&&(o.v=0),t._updateOutput("slider"));const u=o.toRGBA().toString(0);this.element.style.background=u,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${o.a}), transparent),\n linear-gradient(to left, hsla(${o.h}, 100%, 50%, ${o.a}), rgba(255, 255, 255, ${o.a}))\n `,s.comparison?s.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",u):(a.button.style.setProperty("--pcr-color",u),a.button.classList.remove("clear"));const p=o.toHEXA().toString();for(const{el:e,color:n}of t._swatchColors)e.classList[p===n.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",u)}}),hue:C({lock:"v"===o?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(n){if(!e.hue||!e.palette)return;const r=i();t._recalc&&(r.h=360*n),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,a.palette.trigger()}}),opacity:C({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(n){if(!e.opacity||!e.palette)return;const r=i();t._recalc&&(r.a=Math.round(100*n)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,a.palette.trigger()}}),selectable:k({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=a}_bindEvents(){const{_root:t,options:e}=this,n=[o(t.interaction.clear,"click",(()=>this._clearColor())),o([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),o(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),o(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),o(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),o([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;n.push(o(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),o(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),o(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};u(t.interaction.result,((t,n,r)=>{const o=e[this.getColorRepresentation().toLowerCase()];if(o){const e=o[r],i=t+(e>=100?1e3*n:n);return i<=0?0:Number((i{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=n}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:n,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof n[t]?n[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",n,t,this)}_clearColor(t=!1){const{_root:e,options:n}=this;n.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),n.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:n,a:r}=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const o in e){if(!(r=e[o].exec(t)))continue;const i=t=>!!r[2]==("number"==typeof t);switch(o){case"cmyk":{const[,t,e,i,a]=n(r);if(t>100||e>100||i>100||a>100)break t;return{values:y(t,e,i,a),type:o}}case"rgba":{const[,,,t,e,a,s]=n(r);if(t>255||e>255||a>255||s<0||s>1||!i(s))break t;return{values:[...g(t,e,a),s],a:s,type:o}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let n=t.substring(6);return n=n?parseInt(n,16)/255:void 0,{values:[...b(e),n],a:n,type:o}}case"hsla":{const[,,,t,e,a,s]=n(r);if(t>360||e>100||a>100||s<0||s>1||!i(s))break t;return{values:[..._(t,e,a),s],a:s,type:o}}case"hsva":{const[,,,t,e,a,s]=n(r);if(t>360||e>100||a>100||s<0||s>1||!i(s))break t;return{values:[t,e,a,s],a:s,type:o}}}}return{values:null,type:null}}(t),{lockOpacity:o}=this.options,i=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||o&&i?null:e,type:n}}_t(t){return this.options.i18n[t]||O.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const n=this._eventListener[t]||[],r=n.indexOf(e);return~r&&n.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:n}=this,r=$(...e),i=a(`