/*! For license information please see colorpickr.js.LICENSE.txt */
(()=>{var e={9612:e=>{self,e.exports=(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.d(t,{default:()=>z});var r={};function o(e,t,r,o,i={}){t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);for(const n of t)for(const t of r)n[e](t,o,{capture:!1,...i});return Array.prototype.slice.call(arguments,1)}e.r(r),e.d(r,{adjustableInputNumbers:()=>l,createElementFromString:()=>c,createFromTemplate:()=>a,eventPath:()=>p,off:()=>n,on:()=>i,resolveElement:()=>s});const i=o.bind(null,"addEventListener"),n=o.bind(null,"removeEventListener");function c(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild}function a(e){const t=(e,t)=>{const r=e.getAttribute(t);return e.removeAttribute(t),r},r=(e,o={})=>{const i=t(e,":obj"),n=t(e,":ref"),c=i?o[i]={}:o;n&&(o[n]=e);for(const o of Array.from(e.children)){const e=t(o,":arr"),i=r(o,e?{}:c);e&&(c[e]||(c[e]=[])).push(Object.keys(i).length?i:o)}return o};return r(c(e))}function p(e){let t=e.path||e.composedPath&&e.composedPath();if(t)return t;let r=e.target.parentElement;for(t=[e.target,r];r=r.parentElement;)t.push(r);return t.push(document,window),t}function s(e){return e instanceof Element?e:"string"==typeof e?e.split(/>>/g).reduce(((e,t,r,o)=>(e=e.querySelector(t),r<o.length-1?e.shadowRoot:e)),document):null}function l(e,t=(e=>e)){function r(r){const o=[.001,.01,.1][Number(r.shiftKey||2*r.ctrlKey)]*(r.deltaY<0?1:-1);let i=0,n=e.selectionStart;e.value=e.value.replace(/[\d.]+/g,((e,r)=>r<=n&&r+e.length>=n?(n=r,t(Number(e),o,i)):(i++,e))),e.focus(),e.setSelectionRange(n,n),r.preventDefault(),e.dispatchEvent(new Event("input"))}i(e,"focus",(()=>i(window,"wheel",r,{passive:!1}))),i(e,"blur",(()=>n(window,"wheel",r)))}const{min:u,max:d,floor:h,round:b}=Math;function f(e,t,r){t/=100,r/=100;const o=h(e=e/360*6),i=e-o,n=r*(1-t),c=r*(1-i*t),a=r*(1-(1-i)*t),p=o%6;return[255*[r,c,n,n,a,r][p],255*[a,r,r,c,n,n][p],255*[n,n,a,r,r,c][p]]}function m(e,t,r){const o=(2-(t/=100))*(r/=100)/2;return 0!==o&&(t=1===o?0:o<.5?t*r/(2*o):t*r/(2-2*o)),[e,100*t,100*o]}function g(e,t,r){const o=u(e/=255,t/=255,r/=255),i=d(e,t,r),n=i-o;let c,a;if(0===n)c=a=0;else{a=n/i;const o=((i-e)/6+n/2)/n,p=((i-t)/6+n/2)/n,s=((i-r)/6+n/2)/n;e===i?c=s-p:t===i?c=1/3+o-s:r===i&&(c=2/3+p-o),c<0?c+=1:c>1&&(c-=1)}return[360*c,100*a,100*i]}function v(e,t,r,o){return t/=100,r/=100,[...g(255*(1-u(1,(e/=100)*(1-(o/=100))+o)),255*(1-u(1,t*(1-o)+o)),255*(1-u(1,r*(1-o)+o)))]}function w(e,t,r){t/=100;const o=2*(t*=(r/=100)<.5?r:1-r)/(r+t)*100,i=100*(r+t);return[e,isNaN(o)?0:o,i]}function y(e){return g(...e.match(/.{2}/g).map((e=>parseInt(e,16))))}function k(e=0,t=0,r=0,o=1){const i=(e,t)=>(r=-1)=>t(~r?e.map((e=>Number(e.toFixed(r)))):e),n={h:e,s:t,v:r,a:o,toHSVA(){const e=[n.h,n.s,n.v,n.a];return e.toString=i(e,(e=>`hsva(${e[0]}, ${e[1]}%, ${e[2]}%, ${n.a})`)),e},toHSLA(){const e=[...m(n.h,n.s,n.v),n.a];return e.toString=i(e,(e=>`hsla(${e[0]}, ${e[1]}%, ${e[2]}%, ${n.a})`)),e},toRGBA(){const e=[...f(n.h,n.s,n.v),n.a];return e.toString=i(e,(e=>`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${n.a})`)),e},toCMYK(){const e=function(e,t,r){const o=f(e,t,r),i=o[0]/255,n=o[1]/255,c=o[2]/255,a=u(1-i,1-n,1-c);return[100*(1===a?0:(1-i-a)/(1-a)),100*(1===a?0:(1-n-a)/(1-a)),100*(1===a?0:(1-c-a)/(1-a)),100*a]}(n.h,n.s,n.v);return e.toString=i(e,(e=>`cmyk(${e[0]}%, ${e[1]}%, ${e[2]}%, ${e[3]}%)`)),e},toHEXA(){const e=function(e,t,r){return f(e,t,r).map((e=>b(e).toString(16).padStart(2,"0")))}(n.h,n.s,n.v),t=n.a>=1?"":Number((255*n.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return t&&e.push(t),e.toString=()=>`#${e.join("").toUpperCase()}`,e},clone:()=>k(n.h,n.s,n.v,n.a)};return n}const x=e=>Math.max(Math.min(e,1),0);function _(e){const t={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},e),_keyboard(e){const{options:r}=t,{type:o,key:i}=e;if(document.activeElement===r.wrapper){const{lock:r}=t.options,n="ArrowUp"===i,c="ArrowRight"===i,a="ArrowDown"===i,p="ArrowLeft"===i;if("keydown"===o&&(n||c||a||p)){let o=0,i=0;"v"===r?o=n||c?1:-1:"h"===r?o=n||c?-1:1:(i=n?-1:a?1:0,o=p?-1:c?1:0),t.update(x(t.cache.x+.01*o),x(t.cache.y+.01*i)),e.preventDefault()}else i.startsWith("Arrow")&&(t.options.onstop(),e.preventDefault())}},_tapstart(e){i(document,["mouseup","touchend","touchcancel"],t._tapstop),i(document,["mousemove","touchmove"],t._tapmove),e.cancelable&&e.preventDefault(),t._tapmove(e)},_tapmove(e){const{options:r,cache:o}=t,{lock:i,element:n,wrapper:c}=r,a=c.getBoundingClientRect();let p=0,s=0;if(e){const t=e&&e.touches&&e.touches[0];p=e?(t||e).clientX:0,s=e?(t||e).clientY:0,p<a.left?p=a.left:p>a.left+a.width&&(p=a.left+a.width),s<a.top?s=a.top:s>a.top+a.height&&(s=a.top+a.height),p-=a.left,s-=a.top}else o&&(p=o.x*a.width,s=o.y*a.height);"h"!==i&&(n.style.left=`calc(${p/a.width*100}% - ${n.offsetWidth/2}px)`),"v"!==i&&(n.style.top=`calc(${s/a.height*100}% - ${n.offsetHeight/2}px)`),t.cache={x:p/a.width,y:s/a.height};const l=x(p/a.width),u=x(s/a.height);switch(i){case"v":return r.onchange(l);case"h":return r.onchange(u);default:return r.onchange(l,u)}},_tapstop(){t.options.onstop(),n(document,["mouseup","touchend","touchcancel"],t._tapstop),n(document,["mousemove","touchmove"],t._tapmove)},trigger(){t._tapmove()},update(e=0,r=0){const{left:o,top:i,width:n,height:c}=t.options.wrapper.getBoundingClientRect();"h"===t.options.lock&&(r=e),t._tapmove({clientX:o+n*e,clientY:i+c*r})},destroy(){const{options:e,_tapstart:r,_keyboard:o}=t;n(document,["keydown","keyup"],o),n([e.wrapper,e.element],"mousedown",r),n([e.wrapper,e.element],"touchstart",r,{passive:!1})}},{options:r,_tapstart:o,_keyboard:c}=t;return i([r.wrapper,r.element],"mousedown",o),i([r.wrapper,r.element],"touchstart",o,{passive:!1}),i(document,["keydown","keyup"],c),t}function A(e={}){e=Object.assign({onchange:()=>0,className:"",elements:[]},e);const t=i(e.elements,"click",(t=>{e.elements.forEach((r=>r.classList[t.target===r?"add":"remove"](e.className))),e.onchange(t),t.stopPropagation()}));return{destroy:()=>n(...t)}}const S={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8};function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class z{constructor(e){C(this,"_initializingActive",!0),C(this,"_recalc",!0),C(this,"_nanopop",null),C(this,"_root",null),C(this,"_color",k()),C(this,"_lastColor",k()),C(this,"_swatchColors",[]),C(this,"_setupAnimationFrame",null),C(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=e=Object.assign({...z.DEFAULT_OPTIONS},e);const{swatches:t,components:r,theme:o,sliders:i,lockOpacity:n,padding:c}=e;["nano","monolith"].includes(o)&&!i&&(e.sliders="h"),r.interaction||(r.interaction={});const{preview:a,opacity:p,hue:s,palette:l}=r;r.opacity=!n&&p,r.palette=l||a||p||s,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),t&&t.length&&t.forEach((e=>this.addSwatch(e)));const{button:u,app:d}=this._root;this._nanopop=((e,t,r)=>{const o="object"!=typeof e||e instanceof HTMLElement?{reference:e,popper:t,...r}:e;return{update(e=o){const{reference:t,popper:r}=Object.assign(o,e);if(!r||!t)throw new Error("Popper- or reference-element missing.");return((e,t,r)=>{const{container:o,margin:i,position:n,variantFlipOrder:c,positionFlipOrder:a}={container:document.documentElement.getBoundingClientRect(),...S,...r},{left:p,top:s}=t.style;t.style.left="0",t.style.top="0";const l=e.getBoundingClientRect(),u=t.getBoundingClientRect(),d={t:l.top-u.height-i,b:l.bottom+i,r:l.right+i,l:l.left-u.width-i},h={vs:l.left,vm:l.left+l.width/2+-u.width/2,ve:l.left+l.width-u.width,hs:l.top,hm:l.bottom-l.height/2-u.height/2,he:l.bottom-u.height},[b,f="middle"]=n.split("-"),m=a[b],g=c[f],{top:v,left:w,bottom:y,right:k}=o;for(const e of m){const r="t"===e||"b"===e,o=d[e],[i,n]=r?["top","left"]:["left","top"],[c,a]=r?[u.height,u.width]:[u.width,u.height],[p,s]=r?[y,k]:[k,y],[l,b]=r?[v,w]:[w,v];if(!(o<l||o+c>p))for(const c of g){const p=h[(r?"v":"h")+c];if(!(p<b||p+a>s))return t.style[n]=p-u[n]+"px",t.style[i]=o-u[i]+"px",e+c}}return t.style.left=p,t.style.top=s,null})(t,r,o)}}})(u,d,{margin:c}),u.setAttribute("role","button"),u.setAttribute("aria-label",this._t("btn:toggle"));const h=this;this._setupAnimationFrame=requestAnimationFrame((function t(){if(!d.offsetWidth)return requestAnimationFrame(t);h.setColor(e.default),h._rePositioningPicker(),e.defaultRepresentation&&(h._representation=e.defaultRepresentation,h.setColorRepresentation(h._representation)),e.showAlways&&h.show(),h._initializingActive=!1,h._emit("init")}))}_preBuild(){const{options:e}=this;for(const t of["el","container"])e[t]=s(e[t]);this._root=(e=>{const{components:t,useAsButton:r,inline:o,appClass:i,theme:n,lockOpacity:c}=e.options,p=e=>e?"":'style="display:none" hidden',s=t=>e._t(t),l=a(`\n      <div :ref="root" class="pickr">\n\n        ${r?"":'<button type="button" :ref="button" class="pcr-button"></button>'}\n\n        <div :ref="app" class="pcr-app ${i||""}" data-theme="${n}" ${o?'style="position: unset"':""} aria-label="${s("ui:dialog")}" role="window">\n          <div class="pcr-selection" ${p(t.palette)}>\n            <div :obj="preview" class="pcr-color-preview" ${p(t.preview)}>\n              <button type="button" :ref="lastColor" class="pcr-last-color" aria-label="${s("btn:last-color")}"></button>\n              <div :ref="currentColor" class="pcr-current-color"></div>\n            </div>\n\n            <div :obj="palette" class="pcr-color-palette">\n              <div :ref="picker" class="pcr-picker"></div>\n              <div :ref="palette" class="pcr-palette" tabindex="0" aria-label="${s("aria:palette")}" role="listbox"></div>\n            </div>\n\n            <div :obj="hue" class="pcr-color-chooser" ${p(t.hue)}>\n              <div :ref="picker" class="pcr-picker"></div>\n              <div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="${s("aria:hue")}" role="slider"></div>\n            </div>\n\n            <div :obj="opacity" class="pcr-color-opacity" ${p(t.opacity)}>\n              <div :ref="picker" class="pcr-picker"></div>\n              <div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="${s("aria:opacity")}" role="slider"></div>\n            </div>\n          </div>\n\n          <div class="pcr-swatches ${t.palette?"":"pcr-last"}" :ref="swatches"></div>\n\n          <div :obj="interaction" class="pcr-interaction" ${p(Object.keys(t.interaction).length)}>\n            <input :ref="result" class="pcr-result" type="text" spellcheck="false" ${p(t.interaction.input)} aria-label="${s("aria:input")}">\n\n            <input :arr="options" class="pcr-type" data-type="HEXA" value="${c?"HEX":"HEXA"}" type="button" ${p(t.interaction.hex)}>\n            <input :arr="options" class="pcr-type" data-type="RGBA" value="${c?"RGB":"RGBA"}" type="button" ${p(t.interaction.rgba)}>\n            <input :arr="options" class="pcr-type" data-type="HSLA" value="${c?"HSL":"HSLA"}" type="button" ${p(t.interaction.hsla)}>\n            <input :arr="options" class="pcr-type" data-type="HSVA" value="${c?"HSV":"HSVA"}" type="button" ${p(t.interaction.hsva)}>\n            <input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ${p(t.interaction.cmyk)}>\n\n            <input :ref="save" class="pcr-save" value="${s("btn:save")}" type="button" ${p(t.interaction.save)} aria-label="${s("aria:btn:save")}">\n            <input :ref="cancel" class="pcr-cancel" value="${s("btn:cancel")}" type="button" ${p(t.interaction.cancel)} aria-label="${s("aria:btn:cancel")}">\n            <input :ref="clear" class="pcr-clear" value="${s("btn:clear")}" type="button" ${p(t.interaction.clear)} aria-label="${s("aria:btn:clear")}">\n          </div>\n        </div>\n      </div>\n    `),u=l.interaction;return u.options.find((e=>!e.hidden&&!e.classList.add("active"))),u.type=()=>u.options.find((e=>e.classList.contains("active"))),l})(this),e.useAsButton&&(this._root.button=e.el),e.container.appendChild(this._root.root)}_finalBuild(){const e=this.options,t=this._root;if(e.container.removeChild(t.root),e.inline){const r=e.el.parentElement;e.el.nextSibling?r.insertBefore(t.app,e.el.nextSibling):r.appendChild(t.app)}else e.container.appendChild(t.app);e.useAsButton?e.inline&&e.el.remove():e.el.parentNode.replaceChild(t.root,e.el),e.disabled&&this.disable(),e.comparison||(t.button.style.transition="none",e.useAsButton||(t.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const e=this,t=this.options.components,r=(e.options.sliders||"v").repeat(2),[o,i]=r.match(/^[vh]+$/g)?r:[],n=()=>this._color||(this._color=this._lastColor.clone()),c={palette:_({element:e._root.palette.picker,wrapper:e._root.palette.palette,onstop:()=>e._emit("changestop","slider",e),onchange(r,o){if(!t.palette)return;const i=n(),{_root:c,options:a}=e,{lastColor:p,currentColor:s}=c.preview;e._recalc&&(i.s=100*r,i.v=100-100*o,i.v<0&&(i.v=0),e._updateOutput("slider"));const l=i.toRGBA().toString(0);this.element.style.background=l,this.wrapper.style.background=`\n                        linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n                        linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n                    `,a.comparison?a.useAsButton||e._lastColor||p.style.setProperty("--pcr-color",l):(c.button.style.setProperty("--pcr-color",l),c.button.classList.remove("clear"));const u=i.toHEXA().toString();for(const{el:t,color:r}of e._swatchColors)t.classList[u===r.toHEXA().toString()?"add":"remove"]("pcr-active");s.style.setProperty("--pcr-color",l)}}),hue:_({lock:"v"===i?"h":"v",element:e._root.hue.picker,wrapper:e._root.hue.slider,onstop:()=>e._emit("changestop","slider",e),onchange(r){if(!t.hue||!t.palette)return;const o=n();e._recalc&&(o.h=360*r),this.element.style.backgroundColor=`hsl(${o.h}, 100%, 50%)`,c.palette.trigger()}}),opacity:_({lock:"v"===o?"h":"v",element:e._root.opacity.picker,wrapper:e._root.opacity.slider,onstop:()=>e._emit("changestop","slider",e),onchange(r){if(!t.opacity||!t.palette)return;const o=n();e._recalc&&(o.a=Math.round(100*r)/100),this.element.style.background=`rgba(0, 0, 0, ${o.a})`,c.palette.trigger()}}),selectable:A({elements:e._root.interaction.options,className:"active",onchange(t){e._representation=t.target.getAttribute("data-type").toUpperCase(),e._recalc&&e._updateOutput("swatch")}})};this._components=c}_bindEvents(){const{_root:e,options:t}=this,r=[i(e.interaction.clear,"click",(()=>this._clearColor())),i([e.interaction.cancel,e.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(e.interaction.save,"click",(()=>{!this.applyColor()&&!t.showAlways&&this.hide()})),i(e.interaction.result,["keyup","input"],(e=>{this.setColor(e.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),e.stopImmediatePropagation()})),i(e.interaction.result,["focus","blur"],(e=>{this._recalc="blur"===e.type,this._recalc&&this._updateOutput(null)})),i([e.palette.palette,e.palette.picker,e.hue.slider,e.hue.picker,e.opacity.slider,e.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!t.showAlways){const o=t.closeWithKey;r.push(i(e.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(e=>this.isOpen()&&(e.key===o||e.code===o)&&this.hide())),i(document,["touchstart","mousedown"],(t=>{this.isOpen()&&!p(t).some((t=>t===e.app||t===e.button))&&this.hide()}),{capture:!0}))}if(t.adjustableNumbers){const t={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};l(e.interaction.result,((e,r,o)=>{const i=t[this.getColorRepresentation().toLowerCase()];if(i){const t=i[o],n=e+(t>=100?1e3*r:r);return n<=0?0:Number((n<t?n:t).toPrecision(3))}return e}))}if(t.autoReposition&&!t.inline){let e=null;const o=this;r.push(i(window,["scroll","resize"],(()=>{o.isOpen()&&(t.closeOnScroll&&o.hide(),null===e?(e=setTimeout((()=>e=null),100),requestAnimationFrame((function t(){o._rePositioningPicker(),null!==e&&requestAnimationFrame(t)}))):(clearTimeout(e),e=setTimeout((()=>e=null),100)))}),{capture:!0}))}this._eventBindings=r}_rePositioningPicker(){const{options:e}=this;if(!e.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:e.position})){const e=this._root.app,t=e.getBoundingClientRect();e.style.top=(window.innerHeight-t.height)/2+"px",e.style.left=(window.innerWidth-t.width)/2+"px"}}_updateOutput(e){const{_root:t,_color:r,options:o}=this;if(t.interaction.type()){const e=`to${t.interaction.type().getAttribute("data-type")}`;t.interaction.result.value="function"==typeof r[e]?r[e]().toString(o.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",r,e,this)}_clearColor(e=!1){const{_root:t,options:r}=this;r.useAsButton||t.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),t.button.classList.add("clear"),r.showAlways||this.hide(),this._lastColor=null,this._initializingActive||e||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(e){const{values:t,type:r,a:o}=function(e){e=e.match(/^[a-zA-Z]+$/)?function(e){if("black"===e.toLowerCase())return"#000";const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,"#000"===t.fillStyle?null:t.fillStyle}(e):e;const t={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},r=e=>e.map((e=>/^(|\d+)\.\d+|\d+$/.test(e)?Number(e):void 0));let o;e:for(const i in t){if(!(o=t[i].exec(e)))continue;const n=e=>!!o[2]==("number"==typeof e);switch(i){case"cmyk":{const[,e,t,n,c]=r(o);if(e>100||t>100||n>100||c>100)break e;return{values:v(e,t,n,c),type:i}}case"rgba":{const[,,,e,t,c,a]=r(o);if(e>255||t>255||c>255||a<0||a>1||!n(a))break e;return{values:[...g(e,t,c),a],a,type:i}}case"hexa":{let[,e]=o;4!==e.length&&3!==e.length||(e=e.split("").map((e=>e+e)).join(""));const t=e.substring(0,6);let r=e.substring(6);return r=r?parseInt(r,16)/255:void 0,{values:[...y(t),r],a:r,type:i}}case"hsla":{const[,,,e,t,c,a]=r(o);if(e>360||t>100||c>100||a<0||a>1||!n(a))break e;return{values:[...w(e,t,c),a],a,type:i}}case"hsva":{const[,,,e,t,c,a]=r(o);if(e>360||t>100||c>100||a<0||a>1||!n(a))break e;return{values:[e,t,c,a],a,type:i}}}}return{values:null,type:null}}(e),{lockOpacity:i}=this.options,n=void 0!==o&&1!==o;return t&&3===t.length&&(t[3]=void 0),{values:!t||i&&n?null:t,type:r}}_t(e){return this.options.i18n[e]||z.I18N_DEFAULTS[e]}_emit(e,...t){this._eventListener[e].forEach((e=>e(...t,this)))}on(e,t){return this._eventListener[e].push(t),this}off(e,t){const r=this._eventListener[e]||[],o=r.indexOf(t);return~o&&r.splice(o,1),this}addSwatch(e){const{values:t}=this._parseLocalColor(e);if(t){const{_swatchColors:e,_root:r}=this,o=k(...t),n=c(`<button type="button" style="--pcr-color: ${o.toRGBA().toString(0)}" aria-label="${this._t("btn:swatch")}"/>`);return r.swatches.appendChild(n),e.push({el:n,color:o}),this._eventBindings.push(i(n,"click",(()=>{this.setHSVA(...o.toHSVA(),!0),this._emit("swatchselect",o),this._emit("change",o,"swatch",this)}))),!0}return!1}removeSwatch(e){const t=this._swatchColors[e];if(t){const{el:r}=t;return this._root.swatches.removeChild(r),this._swatchColors.splice(e,1),!0}return!1}applyColor(e=!1){const{preview:t,button:r}=this._root,o=this._color.toRGBA().toString(0);return t.lastColor.style.setProperty("--pcr-color",o),this.options.useAsButton||r.style.setProperty("--pcr-color",o),r.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||e||this._emit("save",this._color),this}destroy(){cancelAnimationFrame(this._setupAnimationFrame),this._eventBindings.forEach((e=>n(...e))),Object.keys(this._components).forEach((e=>this._components[e].destroy()))}destroyAndRemove(){this.destroy();const{root:e,app:t}=this._root;e.parentElement&&e.parentElement.removeChild(e),t.parentElement.removeChild(t),Object.keys(this).forEach((e=>this[e]=null))}hide(){return!!this.isOpen()&&(this._root.app.classList.remove("visible"),this._emit("hide"),!0)}show(){return!this.options.disabled&&!this.isOpen()&&(this._root.app.classList.add("visible"),this._rePositioningPicker(),this._emit("show",this._color),this)}isOpen(){return this._root.app.classList.contains("visible")}setHSVA(e=360,t=0,r=0,o=1,i=!1){const n=this._recalc;if(this._recalc=!1,e<0||e>360||t<0||t>100||r<0||r>100||o<0||o>1)return!1;this._color=k(e,t,r,o);const{hue:c,opacity:a,palette:p}=this._components;return c.update(e/360),a.update(o),p.update(t/100,1-r/100),i||this.applyColor(),n&&this._updateOutput(),this._recalc=n,!0}setColor(e,t=!1){if(null===e)return this._clearColor(t),!0;const{values:r,type:o}=this._parseLocalColor(e);if(r){const e=o.toUpperCase(),{options:i}=this._root.interaction,n=i.find((t=>t.getAttribute("data-type")===e));if(n&&!n.hidden)for(const e of i)e.classList[e===n?"add":"remove"]("active");return!!this.setHSVA(...r,t)&&this.setColorRepresentation(e)}return!1}setColorRepresentation(e){return e=e.toUpperCase(),!!this._root.interaction.options.find((t=>t.getAttribute("data-type").startsWith(e)&&!t.click()))}getColorRepresentation(){return this._representation}getColor(){return this._color}getSelectedColor(){return this._lastColor}getRoot(){return this._root}disable(){return this.hide(),this.options.disabled=!0,this._root.button.classList.add("disabled"),this}enable(){return this.options.disabled=!1,this._root.button.classList.remove("disabled"),this}}return C(z,"utils",r),C(z,"version","1.8.2"),C(z,"I18N_DEFAULTS",{"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"}),C(z,"DEFAULT_OPTIONS",{appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{},swatches:null,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape"}),C(z,"create",(e=>new z(e))),t.default})()},7240:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var o=r(8081),i=r.n(o),n=r(3645),c=r.n(n),a=r(1667),p=r.n(a),s=new URL(r(8945),r.b),l=new URL(r(4041),r.b),u=c()(i()),d=p()(s),h=p()(l);u.push([e.id,'/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */\n.pickr{position:relative;overflow:visible;transform:translateY(0)}.pickr *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr .pcr-button{position:relative;height:2em;width:2em;padding:0.5em;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;border-radius:.15em;background:url('+d+") no-repeat center;background-size:0;transition:all 0.3s}.pickr .pcr-button::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+');background-size:.5em;border-radius:.15em;z-index:-1}.pickr .pcr-button::before{z-index:initial}.pickr .pcr-button::after{position:absolute;content:\'\';top:0;left:0;height:100%;width:100%;transition:background 0.3s;background:var(--pcr-color);border-radius:.15em}.pickr .pcr-button.clear{background-size:70%}.pickr .pcr-button.clear::before{opacity:0}.pickr .pcr-button.clear:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-button.disabled{cursor:not-allowed}.pickr *,.pcr-app *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr input:focus,.pickr input.pcr-active,.pickr button:focus,.pickr button.pcr-active,.pcr-app input:focus,.pcr-app input.pcr-active,.pcr-app button:focus,.pcr-app button.pcr-active{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-palette,.pickr .pcr-slider,.pcr-app .pcr-palette,.pcr-app .pcr-slider{transition:box-shadow 0.3s}.pickr .pcr-palette:focus,.pickr .pcr-slider:focus,.pcr-app .pcr-palette:focus,.pcr-app .pcr-slider:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(0,0,0,0.25)}.pcr-app{position:fixed;display:flex;flex-direction:column;z-index:10000;border-radius:0.1em;background:#fff;opacity:0;visibility:hidden;transition:opacity 0.3s, visibility 0s 0.3s;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;box-shadow:0 0.15em 1.5em 0 rgba(0,0,0,0.1),0 0 1em 0 rgba(0,0,0,0.03);left:0;top:0}.pcr-app.visible{transition:opacity 0.3s;visibility:visible;opacity:1}.pcr-app .pcr-swatches{display:flex;flex-wrap:wrap;margin-top:0.75em}.pcr-app .pcr-swatches.pcr-last{margin:0}@supports (display: grid){.pcr-app .pcr-swatches{display:grid;align-items:center;grid-template-columns:repeat(auto-fit, 1.75em)}}.pcr-app .pcr-swatches>button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:0.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all 0.15s;overflow:hidden;background:transparent;z-index:1}.pcr-app .pcr-swatches>button::before{position:absolute;content:\'\';top:0;left:0;width:100%;height:100%;background:url('+h+");background-size:6px;border-radius:.15em;z-index:-1}.pcr-app .pcr-swatches>button::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--pcr-color);border:1px solid rgba(0,0,0,0.05);border-radius:0.15em;box-sizing:border-box}.pcr-app .pcr-swatches>button:hover{filter:brightness(1.05)}.pcr-app .pcr-swatches>button:not(.pcr-active){box-shadow:none}.pcr-app .pcr-interaction{display:flex;flex-wrap:wrap;align-items:center;margin:0 -0.2em 0 -0.2em}.pcr-app .pcr-interaction>*{margin:0 0.2em}.pcr-app .pcr-interaction input{letter-spacing:0.07em;font-size:0.75em;text-align:center;cursor:pointer;color:#75797e;background:#f1f3f4;border-radius:.15em;transition:all 0.15s;padding:0.45em 0.5em;margin-top:0.75em}.pcr-app .pcr-interaction input:hover{filter:brightness(0.975)}.pcr-app .pcr-interaction input:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(66,133,244,0.75)}.pcr-app .pcr-interaction .pcr-result{color:#75797e;text-align:left;flex:1 1 8em;min-width:8em;transition:all 0.2s;border-radius:.15em;background:#f1f3f4;cursor:text}.pcr-app .pcr-interaction .pcr-result::-moz-selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-result::selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-type.active{color:#fff;background:#4285f4}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff;width:auto}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff}.pcr-app .pcr-interaction .pcr-save:hover,.pcr-app .pcr-interaction .pcr-cancel:hover,.pcr-app .pcr-interaction .pcr-clear:hover{filter:brightness(0.925)}.pcr-app .pcr-interaction .pcr-save{background:#4285f4}.pcr-app .pcr-interaction .pcr-clear,.pcr-app .pcr-interaction .pcr-cancel{background:#f44250}.pcr-app .pcr-interaction .pcr-clear:focus,.pcr-app .pcr-interaction .pcr-cancel:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(244,66,80,0.75)}.pcr-app .pcr-selection .pcr-picker{position:absolute;height:18px;width:18px;border:2px solid #fff;border-radius:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pcr-app .pcr-selection .pcr-color-palette,.pcr-app .pcr-selection .pcr-color-chooser,.pcr-app .pcr-selection .pcr-color-opacity{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;cursor:grab;cursor:-webkit-grab}.pcr-app .pcr-selection .pcr-color-palette:active,.pcr-app .pcr-selection .pcr-color-chooser:active,.pcr-app .pcr-selection .pcr-color-opacity:active{cursor:grabbing;cursor:-webkit-grabbing}.pcr-app[data-theme='classic']{width:28.5em;max-width:95vw;padding:0.8em}.pcr-app[data-theme='classic'] .pcr-selection{display:flex;justify-content:space-between;flex-grow:1}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-preview{position:relative;z-index:1;width:2em;display:flex;flex-direction:column;justify-content:space-between;margin-right:0.75em}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-preview::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+");background-size:.5em;border-radius:.15em;z-index:-1}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-preview .pcr-last-color{cursor:pointer;border-radius:0.15em 0.15em 0 0;z-index:2}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-preview .pcr-current-color{border-radius:0 0 0.15em 0.15em}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-preview .pcr-last-color,.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-preview .pcr-current-color{background:var(--pcr-color);width:100%;height:50%}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-palette{width:100%;height:8em;z-index:1}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-palette .pcr-palette{flex-grow:1;border-radius:.15em}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-palette .pcr-palette::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+");background-size:.5em;border-radius:.15em;z-index:-1}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-chooser,.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-opacity{margin-left:0.75em}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-chooser .pcr-picker,.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-opacity .pcr-picker{left:50%;transform:translateX(-50%)}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-chooser .pcr-slider,.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-opacity .pcr-slider{width:8px;flex-grow:1;border-radius:50em}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-chooser .pcr-slider{background:linear-gradient(to bottom, red, #ff0, lime, cyan, blue, #f0f, red)}.pcr-app[data-theme='classic'] .pcr-selection .pcr-color-opacity .pcr-slider{background:linear-gradient(to bottom, transparent, black),url("+h+");background-size:100%, 50%}\n\n",""]);const b=u},7782:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var o=r(8081),i=r.n(o),n=r(3645),c=r.n(n),a=r(1667),p=r.n(a),s=new URL(r(8945),r.b),l=new URL(r(4041),r.b),u=c()(i()),d=p()(s),h=p()(l);u.push([e.id,'/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */\n.pickr{position:relative;overflow:visible;transform:translateY(0)}.pickr *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr .pcr-button{position:relative;height:2em;width:2em;padding:0.5em;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;border-radius:.15em;background:url('+d+") no-repeat center;background-size:0;transition:all 0.3s}.pickr .pcr-button::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+');background-size:.5em;border-radius:.15em;z-index:-1}.pickr .pcr-button::before{z-index:initial}.pickr .pcr-button::after{position:absolute;content:\'\';top:0;left:0;height:100%;width:100%;transition:background 0.3s;background:var(--pcr-color);border-radius:.15em}.pickr .pcr-button.clear{background-size:70%}.pickr .pcr-button.clear::before{opacity:0}.pickr .pcr-button.clear:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-button.disabled{cursor:not-allowed}.pickr *,.pcr-app *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr input:focus,.pickr input.pcr-active,.pickr button:focus,.pickr button.pcr-active,.pcr-app input:focus,.pcr-app input.pcr-active,.pcr-app button:focus,.pcr-app button.pcr-active{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-palette,.pickr .pcr-slider,.pcr-app .pcr-palette,.pcr-app .pcr-slider{transition:box-shadow 0.3s}.pickr .pcr-palette:focus,.pickr .pcr-slider:focus,.pcr-app .pcr-palette:focus,.pcr-app .pcr-slider:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(0,0,0,0.25)}.pcr-app{position:fixed;display:flex;flex-direction:column;z-index:10000;border-radius:0.1em;background:#fff;opacity:0;visibility:hidden;transition:opacity 0.3s, visibility 0s 0.3s;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;box-shadow:0 0.15em 1.5em 0 rgba(0,0,0,0.1),0 0 1em 0 rgba(0,0,0,0.03);left:0;top:0}.pcr-app.visible{transition:opacity 0.3s;visibility:visible;opacity:1}.pcr-app .pcr-swatches{display:flex;flex-wrap:wrap;margin-top:0.75em}.pcr-app .pcr-swatches.pcr-last{margin:0}@supports (display: grid){.pcr-app .pcr-swatches{display:grid;align-items:center;grid-template-columns:repeat(auto-fit, 1.75em)}}.pcr-app .pcr-swatches>button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:0.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all 0.15s;overflow:hidden;background:transparent;z-index:1}.pcr-app .pcr-swatches>button::before{position:absolute;content:\'\';top:0;left:0;width:100%;height:100%;background:url('+h+");background-size:6px;border-radius:.15em;z-index:-1}.pcr-app .pcr-swatches>button::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--pcr-color);border:1px solid rgba(0,0,0,0.05);border-radius:0.15em;box-sizing:border-box}.pcr-app .pcr-swatches>button:hover{filter:brightness(1.05)}.pcr-app .pcr-swatches>button:not(.pcr-active){box-shadow:none}.pcr-app .pcr-interaction{display:flex;flex-wrap:wrap;align-items:center;margin:0 -0.2em 0 -0.2em}.pcr-app .pcr-interaction>*{margin:0 0.2em}.pcr-app .pcr-interaction input{letter-spacing:0.07em;font-size:0.75em;text-align:center;cursor:pointer;color:#75797e;background:#f1f3f4;border-radius:.15em;transition:all 0.15s;padding:0.45em 0.5em;margin-top:0.75em}.pcr-app .pcr-interaction input:hover{filter:brightness(0.975)}.pcr-app .pcr-interaction input:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(66,133,244,0.75)}.pcr-app .pcr-interaction .pcr-result{color:#75797e;text-align:left;flex:1 1 8em;min-width:8em;transition:all 0.2s;border-radius:.15em;background:#f1f3f4;cursor:text}.pcr-app .pcr-interaction .pcr-result::-moz-selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-result::selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-type.active{color:#fff;background:#4285f4}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff;width:auto}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff}.pcr-app .pcr-interaction .pcr-save:hover,.pcr-app .pcr-interaction .pcr-cancel:hover,.pcr-app .pcr-interaction .pcr-clear:hover{filter:brightness(0.925)}.pcr-app .pcr-interaction .pcr-save{background:#4285f4}.pcr-app .pcr-interaction .pcr-clear,.pcr-app .pcr-interaction .pcr-cancel{background:#f44250}.pcr-app .pcr-interaction .pcr-clear:focus,.pcr-app .pcr-interaction .pcr-cancel:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(244,66,80,0.75)}.pcr-app .pcr-selection .pcr-picker{position:absolute;height:18px;width:18px;border:2px solid #fff;border-radius:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pcr-app .pcr-selection .pcr-color-palette,.pcr-app .pcr-selection .pcr-color-chooser,.pcr-app .pcr-selection .pcr-color-opacity{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;cursor:grab;cursor:-webkit-grab}.pcr-app .pcr-selection .pcr-color-palette:active,.pcr-app .pcr-selection .pcr-color-chooser:active,.pcr-app .pcr-selection .pcr-color-opacity:active{cursor:grabbing;cursor:-webkit-grabbing}.pcr-app[data-theme='monolith']{width:14.25em;max-width:95vw;padding:0.8em}.pcr-app[data-theme='monolith'] .pcr-selection{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-preview{position:relative;z-index:1;width:100%;height:1em;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:0.5em}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-preview::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+");background-size:.5em;border-radius:.15em;z-index:-1}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-preview .pcr-last-color{cursor:pointer;transition:background-color 0.3s, box-shadow 0.3s;border-radius:0.15em 0 0 0.15em;z-index:2}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-preview .pcr-current-color{border-radius:0 0.15em 0.15em 0}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-preview .pcr-last-color,.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-preview .pcr-current-color{background:var(--pcr-color);width:50%;height:100%}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-palette{width:100%;height:8em;z-index:1}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-palette .pcr-palette{border-radius:.15em;width:100%;height:100%}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-palette .pcr-palette::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+");background-size:.5em;border-radius:.15em;z-index:-1}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-chooser,.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-opacity{height:0.5em;margin-top:0.75em}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-chooser .pcr-picker,.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-opacity .pcr-picker{top:50%;transform:translateY(-50%)}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-chooser .pcr-slider,.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-opacity .pcr-slider{flex-grow:1;border-radius:50em}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-chooser .pcr-slider{background:linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red)}.pcr-app[data-theme='monolith'] .pcr-selection .pcr-color-opacity .pcr-slider{background:linear-gradient(to right, transparent, black),url("+h+");background-size:100%, 0.25em}\n\n",""]);const b=u},628:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var o=r(8081),i=r.n(o),n=r(3645),c=r.n(n),a=r(1667),p=r.n(a),s=new URL(r(8945),r.b),l=new URL(r(4041),r.b),u=c()(i()),d=p()(s),h=p()(l);u.push([e.id,'/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */\n.pickr{position:relative;overflow:visible;transform:translateY(0)}.pickr *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr .pcr-button{position:relative;height:2em;width:2em;padding:0.5em;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;border-radius:.15em;background:url('+d+") no-repeat center;background-size:0;transition:all 0.3s}.pickr .pcr-button::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+');background-size:.5em;border-radius:.15em;z-index:-1}.pickr .pcr-button::before{z-index:initial}.pickr .pcr-button::after{position:absolute;content:\'\';top:0;left:0;height:100%;width:100%;transition:background 0.3s;background:var(--pcr-color);border-radius:.15em}.pickr .pcr-button.clear{background-size:70%}.pickr .pcr-button.clear::before{opacity:0}.pickr .pcr-button.clear:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-button.disabled{cursor:not-allowed}.pickr *,.pcr-app *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr input:focus,.pickr input.pcr-active,.pickr button:focus,.pickr button.pcr-active,.pcr-app input:focus,.pcr-app input.pcr-active,.pcr-app button:focus,.pcr-app button.pcr-active{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-palette,.pickr .pcr-slider,.pcr-app .pcr-palette,.pcr-app .pcr-slider{transition:box-shadow 0.3s}.pickr .pcr-palette:focus,.pickr .pcr-slider:focus,.pcr-app .pcr-palette:focus,.pcr-app .pcr-slider:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(0,0,0,0.25)}.pcr-app{position:fixed;display:flex;flex-direction:column;z-index:10000;border-radius:0.1em;background:#fff;opacity:0;visibility:hidden;transition:opacity 0.3s, visibility 0s 0.3s;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;box-shadow:0 0.15em 1.5em 0 rgba(0,0,0,0.1),0 0 1em 0 rgba(0,0,0,0.03);left:0;top:0}.pcr-app.visible{transition:opacity 0.3s;visibility:visible;opacity:1}.pcr-app .pcr-swatches{display:flex;flex-wrap:wrap;margin-top:0.75em}.pcr-app .pcr-swatches.pcr-last{margin:0}@supports (display: grid){.pcr-app .pcr-swatches{display:grid;align-items:center;grid-template-columns:repeat(auto-fit, 1.75em)}}.pcr-app .pcr-swatches>button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:0.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all 0.15s;overflow:hidden;background:transparent;z-index:1}.pcr-app .pcr-swatches>button::before{position:absolute;content:\'\';top:0;left:0;width:100%;height:100%;background:url('+h+");background-size:6px;border-radius:.15em;z-index:-1}.pcr-app .pcr-swatches>button::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--pcr-color);border:1px solid rgba(0,0,0,0.05);border-radius:0.15em;box-sizing:border-box}.pcr-app .pcr-swatches>button:hover{filter:brightness(1.05)}.pcr-app .pcr-swatches>button:not(.pcr-active){box-shadow:none}.pcr-app .pcr-interaction{display:flex;flex-wrap:wrap;align-items:center;margin:0 -0.2em 0 -0.2em}.pcr-app .pcr-interaction>*{margin:0 0.2em}.pcr-app .pcr-interaction input{letter-spacing:0.07em;font-size:0.75em;text-align:center;cursor:pointer;color:#75797e;background:#f1f3f4;border-radius:.15em;transition:all 0.15s;padding:0.45em 0.5em;margin-top:0.75em}.pcr-app .pcr-interaction input:hover{filter:brightness(0.975)}.pcr-app .pcr-interaction input:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(66,133,244,0.75)}.pcr-app .pcr-interaction .pcr-result{color:#75797e;text-align:left;flex:1 1 8em;min-width:8em;transition:all 0.2s;border-radius:.15em;background:#f1f3f4;cursor:text}.pcr-app .pcr-interaction .pcr-result::-moz-selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-result::selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-type.active{color:#fff;background:#4285f4}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff;width:auto}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff}.pcr-app .pcr-interaction .pcr-save:hover,.pcr-app .pcr-interaction .pcr-cancel:hover,.pcr-app .pcr-interaction .pcr-clear:hover{filter:brightness(0.925)}.pcr-app .pcr-interaction .pcr-save{background:#4285f4}.pcr-app .pcr-interaction .pcr-clear,.pcr-app .pcr-interaction .pcr-cancel{background:#f44250}.pcr-app .pcr-interaction .pcr-clear:focus,.pcr-app .pcr-interaction .pcr-cancel:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(244,66,80,0.75)}.pcr-app .pcr-selection .pcr-picker{position:absolute;height:18px;width:18px;border:2px solid #fff;border-radius:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pcr-app .pcr-selection .pcr-color-palette,.pcr-app .pcr-selection .pcr-color-chooser,.pcr-app .pcr-selection .pcr-color-opacity{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;cursor:grab;cursor:-webkit-grab}.pcr-app .pcr-selection .pcr-color-palette:active,.pcr-app .pcr-selection .pcr-color-chooser:active,.pcr-app .pcr-selection .pcr-color-opacity:active{cursor:grabbing;cursor:-webkit-grabbing}.pcr-app[data-theme='nano']{width:14.25em;max-width:95vw}.pcr-app[data-theme='nano'] .pcr-swatches{margin-top:.6em;padding:0 .6em}.pcr-app[data-theme='nano'] .pcr-interaction{padding:0 .6em .6em .6em}.pcr-app[data-theme='nano'] .pcr-selection{display:grid;grid-gap:.6em;grid-template-columns:1fr 4fr;grid-template-rows:5fr auto auto;align-items:center;height:10.5em;width:100%;align-self:flex-start}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview{grid-area:2 / 1 / 4 / 1;height:100%;width:100%;display:flex;flex-direction:row;justify-content:center;margin-left:.6em}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-last-color{display:none}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-current-color{position:relative;background:var(--pcr-color);width:2em;height:2em;border-radius:50em;overflow:hidden}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-preview .pcr-current-color::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+");background-size:.5em;border-radius:.15em;z-index:-1}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette{grid-area:1 / 1 / 2 / 3;width:100%;height:100%;z-index:1}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette .pcr-palette{border-radius:.15em;width:100%;height:100%}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-palette .pcr-palette::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url("+h+");background-size:.5em;border-radius:.15em;z-index:-1}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser{grid-area:2 / 2 / 2 / 2}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity{grid-area:3 / 2 / 3 / 2}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser,.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity{height:0.5em;margin:0 .6em}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-picker,.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-picker{top:50%;transform:translateY(-50%)}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-slider,.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-slider{flex-grow:1;border-radius:50em}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-chooser .pcr-slider{background:linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red)}.pcr-app[data-theme='nano'] .pcr-selection .pcr-color-opacity .pcr-slider{background:linear-gradient(to right, transparent, black),url("+h+");background-size:100%, 0.25em}\n\n",""]);const b=u},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",o=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),o&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),o&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,o,i,n){"string"==typeof e&&(e=[[null,e,void 0]]);var c={};if(o)for(var a=0;a<this.length;a++){var p=this[a][0];null!=p&&(c[p]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);o&&c[l[0]]||(void 0!==n&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=n),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,o=0;o<t.length;o++)if(t[o].identifier===e){r=o;break}return r}function o(e,o){for(var n={},c=[],a=0;a<e.length;a++){var p=e[a],s=o.base?p[0]+o.base:p[0],l=n[s]||0,u="".concat(s," ").concat(l);n[s]=l+1;var d=r(u),h={css:p[1],media:p[2],sourceMap:p[3],supports:p[4],layer:p[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var b=i(h,o);o.byIndex=a,t.splice(a,0,{identifier:u,updater:b,references:1})}c.push(u)}return c}function i(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,i){var n=o(e=e||[],i=i||{});return function(e){e=e||[];for(var c=0;c<n.length;c++){var a=r(n[c]);t[a].references--}for(var p=o(e,i),s=0;s<n.length;s++){var l=r(n[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}n=p}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var o=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var o="";r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,i&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}");var n=r.sourceMap;n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4041:e=>{"use strict";e.exports='data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>'},8945:e=>{"use strict";e.exports='data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" stroke="%2342445A" stroke-width="5px" stroke-linecap="round"><path d="M45,45L5,5"></path><path d="M45,5L5,45"></path></svg>'}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={id:o,exports:{}};return e[o](n,n.exports,r),n.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.b=document.baseURI||self.location.href,r.nc=void 0,(()=>{"use strict";const e=jQuery;var t=r.n(e);Shiny;var o=r(3379),i=r.n(o),n=r(7795),c=r.n(n),a=r(569),p=r.n(a),s=r(3565),l=r.n(s),u=r(9216),d=r.n(u),h=r(4589),b=r.n(h),f=r(7240),m={};m.styleTagTransform=b(),m.setAttributes=l(),m.insert=p().bind(null,"head"),m.domAPI=c(),m.insertStyleElement=d(),i()(f.Z,m),f.Z&&f.Z.locals&&f.Z.locals;var g=r(7782),v={};v.styleTagTransform=b(),v.setAttributes=l(),v.insert=p().bind(null,"head"),v.domAPI=c(),v.insertStyleElement=d(),i()(g.Z,v),g.Z&&g.Z.locals&&g.Z.locals;var w=r(628),y={};y.styleTagTransform=b(),y.setAttributes=l(),y.insert=p().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=d(),i()(w.Z,y),w.Z&&w.Z.locals&&w.Z.locals;var k=r(9612),x=r.n(k);Shiny.InputBinding.prototype.store=[],Shiny.InputBinding.prototype.updateStore=function(e,t){this.store[e.id]=t};var _=new Shiny.InputBinding;function A(e){function t(e){return"#"==e.charAt(0)?e.substring(1,7):e}var r=parseInt(t(e).substring(0,2),16),o=parseInt(t(e).substring(2,4),16),i=function(e){return parseInt(t(e).substring(4,6),16)}(e);return(299*r+587*o+114*i)/1e3>130?"#000000":"#ffffff"}t().extend(_,{find:function(e){return t()(e).find(".pickr-color-container")},getId:function(e){return t()(e).attr("id")},getValue:function(e){return this.getPickr(e).getColor().toHEXA().toString(0)},setValue:function(e,t){this.getPickr(e).setColor(t)},subscribe:function(e,t){var r=this.getPickr(e);r.on("init",(function(e,r){t()}));var o=this.getUpdate(e),i=this.getHideOnSave(e);"change"==o?r.on(o,(function(e,r,o){t()})):(r.on(o,(function(e,r){!0===i&"changestop"!=o&&r.hide(),t()})),"changestop"==o&&r.on("swatchselect",(function(e,r){t()})))},unsubscribe:function(e){},receiveMessage:function(e,r){if(r.hasOwnProperty("label")){var o=t()("#"+e.id+"-label");!function(e,t){if(void 0!==e){if(1!==t.length)throw new Error("labelNode must be of length 1");Array.isArray(e)&&0===e.length?t.addClass("shiny-label-null"):(t.html(e),t.removeClass("shiny-label-null"))}}(r.label,o)}var i=this.getPickr(e);if(r.hasOwnProperty("swatches")){for(let e=i._swatchColors.length-1;e>-1;e--)i.removeSwatch(e);r.swatches.forEach((e=>i.addSwatch(e)))}r.hasOwnProperty("value")&&i.setColor(r.value),r.hasOwnProperty("action")&&("enable"==r.action&&i.enable(),"disable"==r.action&&i.disable(),"show"==r.action&&i.show(),"hide"==r.action&&i.hide())},getState:function(e){},initialize:function(e){var r=t()(e).find('script[data-for="'+e.id+'"]'),o=(r=JSON.parse(r.html())).options,i=e.querySelector("input");o.el=i,i.value=o.default,o.appClass="pickr-color";var n=new(x())(o);n.setColor(o.default);var c=n.getRoot();r.hasOwnProperty("width")&&(c.app.style.width=r.width),!1===o.useAsButton?(c.button.parentNode.style.display="inline",c.button.id=e.id+"_btn",c.button.classList.add("pickr-color"),r.inline&&(c.button.style.display="none")):(i.style.backgroundColor=o.default,i.style.color=A(o.default),"changestop"==r.update?n.on(r.update,(function(e,t){var r=t.getColor();i.value=r.toHEXA().toString(0),i.style.backgroundColor=r.toHEXA().toString(0),i.style.color=A(r.toHEXA().toString(0))})):n.on(r.update,(function(e){i.value=e.toHEXA().toString(0),i.style.backgroundColor=e.toHEXA().toString(0),i.style.color=A(e.toHEXA().toString(0))}))),n.options.color=o.default,n.options.inline=r.inline,n.options.update=r.update,n.options.hideOnSave=r.hideOnSave,this.updateStore(e,n)},getPickr:function(e){return this.store[e.id]},getUpdate:function(e){return this.store[e.id].options.update},getHideOnSave:function(e){return this.store[e.id].options.hideOnSave},getColor:function(e){return this.store[e.id].options.color},isInline:function(e){return this.store[e.id].options.inline}}),Shiny.inputBindings.register(_,"shinyWidgets.colorPickr")})()})();