jodit-pro
Version:
PRO Version of Jodit Editor
1 lines • 1.12 MB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return function(){var e={43746:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){"use strict";var n=o(3);function r(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,o;return!1!==r(e)&&"function"==typeof(t=e.constructor)&&!1!==r(o=t.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.PALETTE_MATERIAL_CHROME=t.PALETTE_MATERIAL_500=t.COLOR_NAMES=t.getLuminance=t.intToRgb=t.rgbToInt=t.rgbToHsv=t.rgbToHsl=t.hslToRgb=t.rgbToHex=t.parseColor=t.parseColorToHsla=t.parseColorToHsl=t.parseColorToRgba=t.parseColorToRgb=t.from=t.createPicker=void 0;var n=function(){function e(e,t){for(var o=0;t.length>o;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!t||o.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=o(2),a=l(o(0)),s=l(o(4));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);e.length>t;t++)o[t]=e[t];return o}return Array.from(e)}var d="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="undefined"!=typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},h="COLOR",m="RGBA_USER",g="HSLA_USER";function v(e,t,o){return e?e instanceof HTMLElement?e:e instanceof NodeList?e[0]:"string"==typeof e?document.querySelector(e):e.jquery?e.get(0):o?t:null:t}function y(e){var t=e.getContext("2d"),o=+e.width,n=+e.height,a=t.createLinearGradient(1,1,1,n-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(e){var r=t.createLinearGradient(1,0,o-1,0);r.addColorStop(0,"hsla("+e+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+e+", 100%, 50%, 1)"),t.fillStyle=a,t.fillRect(0,0,o,n),t.fillStyle=r,t.globalCompositeOperation="multiply",t.fillRect(0,0,o,n),t.globalCompositeOperation="source-over"},grabColor:function(e,o){return t.getImageData(e,o,1,1).data},findColor:function(e,t,a){var s=(0,i.rgbToHsv)(e,t,a),l=r(s,3);return[l[1]*o,n-l[2]*n]}}}function b(e,t,o){return null===e?t:/^\s*$/.test(e)?o:!!/true|yes|1/i.test(e)||!/false|no|0/i.test(e)&&t}function _(e,t,o){if(null===e)return t;if(/^\s*$/.test(e))return o;var n=e.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:t}var w=function(){function e(t,o){if(c(this,e),o?(t=v(t),this.options=Object.assign({},f,o)):t&&(0,a.default)(t)?(this.options=Object.assign({},f,t),t=v(this.options.attachTo)):(this.options=Object.assign({},f),t=v((0,i.nvl)(t,this.options.attachTo))),!t)throw new Error("Container not found: "+this.options.attachTo);!function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(t.hasAttribute(o+"show-hsl")&&(e.showHSL=b(t.getAttribute(o+"show-hsl"),f.showHSL,!0)),t.hasAttribute(o+"show-rgb")&&(e.showRGB=b(t.getAttribute(o+"show-rgb"),f.showRGB,!0)),t.hasAttribute(o+"show-hex")&&(e.showHEX=b(t.getAttribute(o+"show-hex"),f.showHEX,!0)),t.hasAttribute(o+"show-alpha")&&(e.showAlpha=b(t.getAttribute(o+"show-alpha"),f.showAlpha,!0)),t.hasAttribute(o+"palette-editable")&&(e.paletteEditable=b(t.getAttribute(o+"palette-editable"),f.paletteEditable,!0)),t.hasAttribute(o+"sl-bar-size")&&(e.slBarSize=_(t.getAttribute(o+"sl-bar-size"),f.slBarSize,[232,150])),t.hasAttribute(o+"hue-bar-size")&&(e.hueBarSize=_(t.getAttribute(o+"hue-bar-size"),f.hueBarSize,[150,11]),e.alphaBarSize=e.hueBarSize),t.hasAttribute(o+"palette")){var n=t.getAttribute(o+"palette");switch(n){case"PALETTE_MATERIAL_500":e.palette=i.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":e.palette=i.PALETTE_MATERIAL_CHROME;break;default:e.palette=n.split(/[;|]/)}}t.hasAttribute(o+"color")&&(e.color=t.getAttribute(o+"color"))}(this.options,t),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=s.default,t.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=y(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(h,this.options.color)}return n(e,[{key:"setupHueCanvas",value:function(e){var t=this;e.width=this.options.hueBarSize[0],e.height=this.options.hueBarSize[1];for(var o=e.getContext("2d"),n=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;1>=r;r+=1/360)n.addColorStop(r,"hsl("+360*r+", 100%, 50%)");o.fillStyle=n,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(o){var n=(0,i.limit)(o.clientX-e.getBoundingClientRect().left,0,t.options.hueBarSize[0]),r=Math.round(360*n/t.options.hueBarSize[0]);t.huePointer.style.left=n-7+"px",t.onValueChanged("H",r)},s=function e(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",(function(e){a(e),document.addEventListener("mousemove",a),document.addEventListener("mouseup",s)}))}},{key:"setupSlCanvas",value:function(e){var t=this;e.width=this.options.slBarSize[0],e.height=this.options.slBarSize[1];var o=function(o){var n=(0,i.limit)(o.clientX-e.getBoundingClientRect().left,0,t.options.slBarSize[0]-1),r=(0,i.limit)(o.clientY-e.getBoundingClientRect().top,0,t.options.slBarSize[1]-1),a=t.slBarHelper.grabColor(n,r);t.slPointer.style.left=n-7+"px",t.slPointer.style.top=r-7+"px",t.onValueChanged("RGB",a)},n=function e(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",(function(e){o(e),document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}))}},{key:"setupAlphaCanvas",value:function(e){var t=this;e.width=this.options.alphaBarSize[0],e.height=this.options.alphaBarSize[1];var o=e.getContext("2d"),n=o.createLinearGradient(0,0,e.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=n,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(o){var n=(0,i.limit)(o.clientX-e.getBoundingClientRect().left,0,t.options.alphaBarSize[0]),r=+(n/t.options.alphaBarSize[0]).toFixed(2);t.alphaPointer.style.left=n-7+"px",t.onValueChanged("ALPHA",r)},a=function e(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",(function(e){r(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}))}},{key:"setupInput",value:function(e){var t=this,o=+e.min,n=+e.max,r=e.getAttribute("nameref");e.hasAttribute("select-on-focus")&&e.addEventListener("focus",(function(){e.select()})),"text"===e.type?e.addEventListener("change",(function(){t.onValueChanged(r,e.value)})):((d||p)&&e.addEventListener("keydown",(function(a){"Up"===a.key?(e.value=(0,i.limit)(+e.value+1,o,n),t.onValueChanged(r,e.value),a.returnValue=!1):"Down"===a.key&&(e.value=(0,i.limit)(+e.value-1,o,n),t.onValueChanged(r,e.value),a.returnValue=!1)})),e.addEventListener("change",(function(){t.onValueChanged(r,(0,i.limit)(+e.value,o,n))})))}},{key:"setupClipboard",value:function(e){var t=this;e.title="click to copy",e.addEventListener("click",(function(){e.value=(0,i.parseColor)([t.R,t.G,t.B,t.A],"hexcss4"),e.select(),document.execCommand("copy")}))}},{key:"setPalette",value:function(e){var t=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=i.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=i.PALETTE_MATERIAL_CHROME;break;default:n=(0,i.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var r=function(o,n,r){var i=e.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");i.className="a-color-picker-palette-color",i.style.backgroundColor=o,i.setAttribute("data-color",o),i.title=o,e.insertBefore(i,n),t.palette[o]=!0,r&&t.onPaletteColorAdd(o)},a=function(o,n){o?(e.removeChild(o),t.palette[o.getAttribute("data-color")]=!1,n&&t.onPaletteColorRemove(o.getAttribute("data-color"))):(e.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((function(t){e.removeChild(t)})),Object.keys(t.palette).forEach((function(e){t.palette[e]=!1})),n&&t.onPaletteColorRemove())};if(n.map((function(e){return(0,i.parseColor)(e,o?"rgbcss4":"hex")})).filter((function(e){return!!e})).forEach((function(e){return r(e)})),this.options.paletteEditable){var s=document.createElement("div");s.className="a-color-picker-palette-color a-color-picker-palette-add",s.innerHTML="+",e.appendChild(s),e.addEventListener("click",(function(e){/a-color-picker-palette-add/.test(e.target.className)?e.shiftKey?a(null,!0):r(o?(0,i.parseColor)([t.R,t.G,t.B,t.A],"rgbcss4"):(0,i.rgbToHex)(t.R,t.G,t.B),e.target,!0):/a-color-picker-palette-color/.test(e.target.className)&&(e.shiftKey?a(e.target,!0):t.onValueChanged(h,e.target.getAttribute("data-color")))}))}else e.addEventListener("click",(function(e){/a-color-picker-palette-color/.test(e.target.className)&&t.onValueChanged(h,e.target.getAttribute("data-color"))}))}else e.style.display="none"}},{key:"updatePalette",value:function(e){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=e,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(e){case"H":this.H=t;var n=(0,i.hslToRgb)(this.H,this.S,this.L),a=r(n,3);this.R=a[0],this.G=a[1],this.B=a[2],this.slBarHelper.setHue(t),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=t;var s=(0,i.hslToRgb)(this.H,this.S,this.L),l=r(s,3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=t;var c=(0,i.hslToRgb)(this.H,this.S,this.L),u=r(c,3);this.R=u[0],this.G=u[1],this.B=u[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=t;var d=(0,i.rgbToHsl)(this.R,this.G,this.B),p=r(d,3);this.H=p[0],this.S=p[1],this.L=p[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=t;var f=(0,i.rgbToHsl)(this.R,this.G,this.B),v=r(f,3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=t;var y=(0,i.rgbToHsl)(this.R,this.G,this.B),b=r(y,3);this.H=b[0],this.S=b[1],this.L=b[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var _=r(t,3);this.R=_[0],this.G=_[1],this.B=_[2];var w=(0,i.rgbToHsl)(this.R,this.G,this.B),S=r(w,3);this.H=S[0],this.S=S[1],this.L=S[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case m:var x=r(t,4);this.R=x[0],this.G=x[1],this.B=x[2],this.A=x[3];var k=(0,i.rgbToHsl)(this.R,this.G,this.B),C=r(k,3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case g:var j=r(t,4);this.H=j[0],this.S=j[1],this.L=j[2],this.A=j[3];var E=(0,i.hslToRgb)(this.H,this.S,this.L),I=r(E,3);this.R=I[0],this.G=I[1],this.B=I[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var P=(0,i.cssColorToRgb)(t)||[this.R,this.G,this.B],T=r(P,3);this.R=T[0],this.G=T[1],this.B=T[2];var M=(0,i.rgbToHsl)(this.R,this.G,this.B),O=r(M,3);this.H=O[0],this.S=O[1],this.L=O[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case h:var A=(0,i.parseColor)(t,"rgba")||[0,0,0,1],L=r(A,4);this.R=L[0],this.G=L[1],this.B=L[2],this.A=L[3];var D=(0,i.rgbToHsl)(this.R,this.G,this.B),z=r(D,3);this.H=z[0],this.S=z[1],this.L=z[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=t}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(e){this.oncoloradd&&this.oncoloradd(e)}},{key:"onPaletteColorRemove",value:function(e){this.oncolorremove&&this.oncolorremove(e)}},{key:"updateInputHSL",value:function(e,t,o){this.options.showHSL&&(this.inputH.value=e,this.inputS.value=t,this.inputL.value=o)}},{key:"updateInputRGB",value:function(e,t,o){this.options.showRGB&&(this.inputR.value=e,this.inputG.value=t,this.inputB.value=o)}},{key:"updateInputRGBHEX",value:function(e,t,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,i.rgbToHex)(e,t,o))}},{key:"updatePointerH",value:function(e){this.huePointer.style.left=this.options.hueBarSize[0]*e/360-7+"px"}},{key:"updatePointerSL",value:function(e,t,o){var n=(0,i.hslToRgb)(e,t,o),a=r(n,3),s=this.slBarHelper.findColor(a[0],a[1],a[2]),l=r(s,2),c=l[0],u=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=u-7+"px")}},{key:"updatePointerA",value:function(e){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*e-7+"px")}}]),e}(),S=function(){function e(t){c(this,e),this.name=t,this.listeners=[]}return n(e,[{key:"on",value:function(e){e&&this.listeners.push(e)}},{key:"off",value:function(e){this.listeners=e?this.listeners.filter((function(t){return t!==e})):[]}},{key:"emit",value:function(e,t){for(var o=this.listeners.slice(0),n=0;o.length>n;n++)o[n].apply(t,e)}}]),e}();function x(e,t){var o=new w(e,t),n={change:new S("change"),coloradd:new S("coloradd"),colorremove:new S("colorremove")},a=!0,s={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(e){var t=r(e,3),n=t[0],a=t[1],s=t[2],l=[(0,i.limit)(n,0,255),(0,i.limit)(a,0,255),(0,i.limit)(s,0,255)];o.onValueChanged(m,[n=l[0],a=l[1],s=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(e){var t=r(e,3),n=t[0],a=t[1],s=t[2],l=[(0,i.limit)(n,0,360),(0,i.limit)(a,0,100),(0,i.limit)(s,0,100)];o.onValueChanged(g,[n=l[0],a=l[1],s=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(e){var t=r(e,4),n=t[0],a=t[1],s=t[2],l=t[3],c=[(0,i.limit)(n,0,255),(0,i.limit)(a,0,255),(0,i.limit)(s,0,255),(0,i.limit)(l,0,1)];o.onValueChanged(m,[n=c[0],a=c[1],s=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(e){var t=r(e,4),n=t[0],a=t[1],s=t[2],l=t[3],c=[(0,i.limit)(n,0,360),(0,i.limit)(a,0,100),(0,i.limit)(s,0,100),(0,i.limit)(l,0,1)];o.onValueChanged(g,[n=c[0],a=c[1],s=c[2],l=c[3]])},get color(){return this.all.toString()},set color(e){o.onValueChanged(h,e)},setColor:function(e){o.onValueChanged(h,e,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(a){var e=[o.R,o.G,o.B,o.A],t=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":i.rgbToHex.apply(void 0,e);(s=(0,i.parseColor)(e,s)).toString=function(){return t},a=!1}return Object.assign({},s)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(o.palette).filter((function(e){return o.palette[e]}))},set palette(e){o.updatePalette(e)},show:function(){o.element.classList.remove("hidden")},hide:function(){o.element.classList.add("hidden")},toggle:function(){o.element.classList.toggle("hidden")},on:function(e,t){return e&&n[e]&&n[e].on(t),this},off:function(e,t){return e&&n[e]&&n[e].off(t),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),o.element.remove(),n=null,o=null}};return o.onchange=function(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];a=!0,n.change.emit([l].concat(t),l)},o.oncoloradd=function(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];n.coloradd.emit([l].concat(t),l)},o.oncolorremove=function(){for(var e=arguments.length,t=Array(e),o=0;e>o;o++)t[o]=arguments[o];n.colorremove.emit([l].concat(t),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var k=o(5).toString(),C=document.createElement("style");C.setAttribute("type","text/css"),C.setAttribute("data-source","a-color-picker"),C.innerHTML=k,document.querySelector("head").appendChild(C)}t.createPicker=x,t.from=function(e,t){var o=function(e){return e?Array.isArray(e)?e:e instanceof HTMLElement?[e]:e instanceof NodeList?[].concat(u(e)):"string"==typeof e?[].concat(u(document.querySelectorAll(e))):e.jquery?e.get():[]:[]}(e).map((function(e,o){var n=x(e,t);return n.index=o,n}));return o.on=function(e,t){return o.forEach((function(o){return o.on(e,t)})),this},o.off=function(e){return o.forEach((function(t){return t.off(e)})),this},o},t.parseColorToRgb=i.parseColorToRgb,t.parseColorToRgba=i.parseColorToRgba,t.parseColorToHsl=i.parseColorToHsl,t.parseColorToHsla=i.parseColorToHsla,t.parseColor=i.parseColor,t.rgbToHex=i.rgbToHex,t.hslToRgb=i.hslToRgb,t.rgbToHsl=i.rgbToHsl,t.rgbToHsv=i.rgbToHsv,t.rgbToInt=i.rgbToInt,t.intToRgb=i.intToRgb,t.getLuminance=i.getLuminance,t.COLOR_NAMES=i.COLOR_NAMES,t.PALETTE_MATERIAL_500=i.PALETTE_MATERIAL_500,t.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_CHROME,t.VERSION="1.2.1"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nvl=t.ensureArray=t.limit=t.getLuminance=t.parseColor=t.parseColorToHsla=t.parseColorToHsl=t.cssHslaToHsla=t.cssHslToHsl=t.parseColorToRgba=t.parseColorToRgb=t.cssRgbaToRgba=t.cssRgbToRgb=t.cssColorToRgba=t.cssColorToRgb=t.intToRgb=t.rgbToInt=t.rgbToHsv=t.rgbToHsl=t.hslToRgb=t.rgbToHex=t.PALETTE_MATERIAL_CHROME=t.PALETTE_MATERIAL_500=t.COLOR_NAMES=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!t||o.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(e){return e&&e.__esModule?e:{default:e}}(o(0));function i(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);e.length>t;t++)o[t]=e[t];return o}return Array.from(e)}var a={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",darkgrey:"#A9A9A9",darkgreen:"#006400",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",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",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",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",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"};function s(e,t,o){return e=+e,isNaN(e)||t>e?t:e>o?o:e}function l(e,t){return null==e?t:e}function c(e,t,o){var n=[s(e,0,255),s(t,0,255),s(o,0,255)];return"#"+("000000"+((e=n[0])<<16|(t=n[1])<<8|(o=n[2])).toString(16)).slice(-6)}function u(e,t,o){var n=void 0,r=void 0,i=void 0,a=[s(e,0,360)/360,s(t,0,100)/100,s(o,0,100)/100];if(e=a[0],o=a[2],0==(t=a[1]))n=r=i=o;else{var l=function(e,t,o){return 0>o&&(o+=1),o>1&&(o-=1),1/6>o?e+6*(t-e)*o:.5>o?t:2/3>o?e+(t-e)*(2/3-o)*6:e},c=.5>o?o*(1+t):o+t-o*t,u=2*o-c;n=l(u,c,e+1/3),r=l(u,c,e),i=l(u,c,e-1/3)}return[255*n,255*r,255*i].map(Math.round)}function d(e,t,o){var n=[s(e,0,255)/255,s(t,0,255)/255,s(o,0,255)/255];e=n[0],t=n[1],o=n[2];var r=Math.max(e,t,o),i=Math.min(e,t,o),a=void 0,l=void 0,c=(r+i)/2;if(r==i)a=l=0;else{var u=r-i;switch(l=c>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-o)/u+(o>t?6:0);break;case t:a=(o-e)/u+2;break;case o:a=(e-t)/u+4}a/=6}return[360*a,100*l,100*c].map(Math.round)}function p(e,t,o){return e<<16|t<<8|o}function f(e){if(e){var t=a[e.toString().toLowerCase()],o=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(t||e)||[],r=n(o,10),i=r[3],s=r[4],l=r[5],c=r[7],u=r[8],d=r[9];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function h(e){if(e){var t=a[e.toString().toLowerCase()],o=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(t||e)||[],r=n(o,12),i=r[3],s=r[4],l=r[5],c=r[6],u=r[8],d=r[9],p=r[10],f=r[11];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(p,16),f?+(parseInt(f,16)/255).toFixed(2):1]}}function m(e){if(e){var t=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e)||[],o=n(t,4),r=o[2],i=o[3];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255)]:void 0}}function g(e){if(e){var t=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e)||[],o=n(t,6),r=o[2],i=o[3],a=o[5];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255),s(l(a,1),0,1)]:void 0}}function v(e){if(Array.isArray(e))return[s(e[0],0,255),s(e[1],0,255),s(e[2],0,255),s(l(e[3],1),0,1)];var t=h(e)||g(e);return t&&3===t.length&&t.push(1),t}function y(e){if(e){var t=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e)||[],o=n(t,4),r=o[2],i=o[3];return o[0]?[s(o[1],0,360),s(r,0,100),s(i,0,100)]:void 0}}function b(e){if(e){var t=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e)||[],o=n(t,6),r=o[2],i=o[3],a=o[5];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255),s(l(a,1),0,1)]:void 0}}function _(e){if(Array.isArray(e))return[s(e[0],0,360),s(e[1],0,100),s(e[2],0,100),s(l(e[3],1),0,1)];var t=b(e);return t&&3===t.length&&t.push(1),t}function w(e,t){switch(t){case"rgb":default:return e.slice(0,3);case"rgbcss":return"rgb("+e[0]+", "+e[1]+", "+e[2]+")";case"rgbcss4":return"rgb("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")";case"rgba":return e;case"rgbacss":return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")";case"hsl":return d.apply(void 0,i(e));case"hslcss":return"hsl("+(e=d.apply(void 0,i(e)))[0]+", "+e[1]+", "+e[2]+")";case"hslcss4":var o=d.apply(void 0,i(e));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+e[3]+")";case"hsla":return[].concat(i(d.apply(void 0,i(e))),[e[3]]);case"hslacss":var n=d.apply(void 0,i(e));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+e[3]+")";case"hex":return c.apply(void 0,i(e));case"hexcss4":return c.apply(void 0,i(e))+("00"+parseInt(255*e[3]).toString(16)).slice(-2);case"int":return p.apply(void 0,i(e))}}t.COLOR_NAMES=a,t.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],t.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],t.rgbToHex=c,t.hslToRgb=u,t.rgbToHsl=d,t.rgbToHsv=function(e,t,o){var n=[s(e,0,255)/255,s(t,0,255)/255,s(o,0,255)/255];e=n[0],t=n[1],o=n[2];var r,i=Math.max(e,t,o),a=Math.min(e,t,o),l=void 0,c=i,u=i-a;if(r=0===i?0:u/i,i==a)l=0;else{switch(i){case e:l=(t-o)/u+(o>t?6:0);break;case t:l=(o-e)/u+2;break;case o:l=(e-t)/u+4}l/=6}return[l,r,c]},t.rgbToInt=p,t.intToRgb=function(e){return[e>>16&255,e>>8&255,255&e]},t.cssColorToRgb=f,t.cssColorToRgba=h,t.cssRgbToRgb=m,t.cssRgbaToRgba=g,t.parseColorToRgb=function(e){return Array.isArray(e)?e=[s(e[0],0,255),s(e[1],0,255),s(e[2],0,255)]:f(e)||m(e)},t.parseColorToRgba=v,t.cssHslToHsl=y,t.cssHslaToHsla=b,t.parseColorToHsl=function(e){return Array.isArray(e)?e=[s(e[0],0,360),s(e[1],0,100),s(e[2],0,100)]:y(e)},t.parseColorToHsla=_,t.parseColor=function(e,t){if(t=t||"rgb",null!=e){var o=void 0;if((o=v(e))||(o=_(e))&&(o=[].concat(i(u.apply(void 0,i(o))),[o[3]])))return(0,r.default)(t)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce((function(e,t){return e[t]=w(o,t),e}),t||{}):w(o,t.toString().toLowerCase())}},t.getLuminance=function(e,t,o){return.2126*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4))},t.limit=s,t.ensureArray=function(e){return e?Array.from(e):[]},t.nvl=l},function(e,t,o){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t){e.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(e,t,o){var n=o(6);e.exports="string"==typeof n?n:n.toString()},function(e,t,o){(e.exports=o(7)(!1)).push([e.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=function(e,t){var o=e[1]||"",n=e[3];if(!n)return o;if(t&&"function"==typeof btoa){var r=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(n),i=n.sources.map((function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"}));return[o].concat(i).concat([r]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o})).join("")},t.i=function(e,o){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;this.length>r;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;e.length>r;r++){var a=e[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),t.push(a))}},t}}])},88572:function(e,t,o){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(r)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var o=r.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return o},set:function(e){r=e,delete this[t]}}),i=!1,o},set:function(e){r=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var o=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof o.value&&Object.defineProperty(e.prototype,t,r(e,t,o))}})),e}function a(){return 1===arguments.length?i.apply(void 0,arguments):r.apply(void 0,arguments)}o.r(t),o.d(t,{boundClass:function(){return i},boundMethod:function(){return r},default:function(){return a}})},17114:function(e,t){"use strict";t.Z="[data-jodit-page-break] {\n\tdisplay: flex;\n\theight: 24px;\n\tbox-sizing: border-box;\n\n\talign-items: center;\n\tjustify-content: center;\n\n\tborder: 1px dashed #ccc;\n\n\tfont-size: 12px;\n\tpage-break-before: always;\n\ttext-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n\tborder-color: #818181;\n}\n"},71399:function(e,t){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function n(e,t,n){var r=n.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(r)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var o=r.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return o},set:function(e){r=e,delete this[t]}}),i=!1,o},set:function(e){r=e}}}function r(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var o=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof o.value&&Object.defineProperty(e.prototype,t,n(e,t,o))}})),e}Object.defineProperty(t,"__esModule",{value:!0}),t.boundClass=t.boundMethod=void 0,t.boundMethod=n,t.boundClass=r,t.default=function(){return 1===arguments.length?r.apply(void 0,arguments):n.apply(void 0,arguments)}},24998:function(){"use strict";"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var t="classList",o=e.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(e){for(var t=0,o=this.length;o>t;t++)if(t in this&&this[t]===e)return t;return-1},a=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(e,t)},l=function(e){for(var t=r.call(e.getAttribute("class")||""),o=t?t.split(/\s+/):[],n=0,i=o.length;i>n;n++)this.push(o[n]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l.prototype=[],u=function(){return new l(this)};if(a.prototype=Error.prototype,c.item=function(e){return this[e]||null},c.contains=function(e){return-1!==s(this,e+="")},c.add=function(){var e,t=arguments,o=0,n=t.length,r=!1;do{-1===s(this,e=t[o]+"")&&(this.push(e),r=!0)}while(++o<n);r&&this._updateClassName()},c.remove=function(){var e,t,o=arguments,n=0,r=o.length,i=!1;do{for(t=s(this,e=o[n]+"");-1!==t;)this.splice(t,1),i=!0,t=s(this,e)}while(++n<r);i&&this._updateClassName()},c.toggle=function(e,t){var o=this.contains(e+=""),n=o?!0!==t&&"remove":!1!==t&&"add";return n&&this[n](e),!0===t||!1===t?t:!o},c.toString=function(){return this.join(" ")},n.defineProperty){var d={get:u,enumerable:!0,configurable:!0};try{n.defineProperty(o,t,d)}catch(e){void 0!==e.number&&-2146823252!==e.number||(d.enumerable=!1,n.defineProperty(o,t,d))}}else n.prototype.__defineGetter__&&o.__defineGetter__(t,u)}}(window.self),function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var o,n=arguments.length;for(o=0;n>o;o++)t.call(this,e=arguments[o])}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:o.call(this,e)}}e=null}())},97760:function(e,t,o){"use strict";o(51050);var n=o(96287);e.exports=n("Array","findIndex")},39274:function(e,t,o){"use strict";o(6313),o(31826);var n=o(13071);e.exports=n.Array.from},13578:function(e,t,o){"use strict";o(13790),o(21562),o(52398),o(90979),o(46386),o(58294),o(98177),o(23544),o(44662),o(21882),o(69586),o(76171),o(11007),o(5053),o(48386),o(96565),o(13854),o(44185),o(41584),o(39818);var n=o(13071);e.exports=n.Symbol},77113:function(e,t,o){"use strict";var n=o(20927),r=o(98495),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(r(e)+" is not a function")}},51476:function(e,t,o){"use strict";var n=o(20927),r=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+r(e)+" as a prototype")}},60352:function(e,t,o){"use strict";var n=o(12304),r=o(44013),i=o(65132).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},29457:function(e,t,o){"use strict";var n=o(52160),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(r(e)+" is not an object")}},35416:function(e,t,o){"use strict";var n=o(98786),r=o(28236),i=o(63097),a=o(29538),s=o(36308),l=o(34136),c=o(68536),u=o(30980),d=o(14892),p=o(83884),f=Array;e.exports=function(e){var t=i(e),o=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,h>2?arguments[2]:void 0));var v,y,b,_,w,S,x=p(t),k=0;if(!x||this===f&&s(x))for(v=c(t),y=o?new this(v):f(v);v>k;k++)S=g?m(t[k],k):t[k],u(y,k,S);else for(w=(_=d(t,x)).next,y=o?new this:[];!(b=r(w,_)).done;k++)S=g?a(_,m,[b.value,k],!0):b.value,u(y,k,S);return y.length=k,y}},48675:function(e,t,o){"use strict";var n=o(57257),r=o(74475),i=o(68536),a=function(e){return function(t,o,a){var s,l=n(t),c=i(l),u=r(a,c);if(e&&o!=o){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===o)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},92796:function(e,t,o){"use strict";var n=o(98786),r=o(44352),i=o(62250),a=o(63097),s=o(68536),l=o(82624),c=r([].push),u=function(e){var t=1==e,o=2==e,r=3==e,u=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,g,v){for(var y,b,_=a(h),w=i(_),S=n(m,g),x=s(w),k=0,C=v||l,j=t?C(h,x):o||p?C(h,0):void 0;x>k;k++)if((f||k in w)&&(b=S(y=w[k],k,_),e))if(t)j[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:c(j,y)}else switch(e){case 4:return!1;case 7:c(j,y)}return d?-1:r||u?u:j}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},8890:function(e,t,o){"use strict";var n=o(43913),r=o(12304),i=o(46816),a=r("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},19912:function(e,t,o){"use strict";var n=o(74475),r=o(68536),i=o(30980),a=Array,s=Math.max;e.exports=function(e,t,o){for(var l=r(e),c=n(t,l),u=n(void 0===o?l:o,l),d=a(s(u-c,0)),p=0;u>c;c++,p++)i(d,p,e[c]);return d.length=p,d}},5731:function(e,t,o){"use strict";var n=o(44352);e.exports=n([].slice)},83932:function(e,t,o){"use strict";var n=o(9546),r=o(34136),i=o(52160),a=o(12304)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(r(t=e.constructor)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0),void 0===t?s:t}},82624:function(e,t,o){"use strict";var n=o(83932);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},29538:function(e,t,o){"use strict";var n=o(29457),r=o(37474);e.exports=function(e,t,o,i){try{return i?t(n(o)[0],o[1]):t(o)}catch(t){r(e,"throw",t)}}},66141:function(e,t,o){"use strict";var n=o(12304)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var o=!1;try{var i={};i[n]=function(){return{next:function(){return{done:o=!0}}}},e(i)}catch(e){}return o}},99364:function(e,t,o){"use strict";var n=o(91880),r=n({}.toString),i=n("".slice);e.exports=function(e){return i(r(e),8,-1)}},86829:function(e,t,o){"use strict";var n=o(75816),r=o(20927),i=o(99364),a=o(12304)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,o,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?o:l?i(t):"Object"==(n=i(t))&&r(t.callee)?"Arguments":n}},40793:function(e,t,o){"use strict";var n=o(57314),r=o(7097),i=o(42048),a=o(65132);e.exports=function(e,t,o){for(var s=r(t),l=a.f,c=i.f,u=0;s.length>u;u++){var d=s[u];n(e,d)||o&&n(o,d)||l(e,d,c(t,d))}}},68753:function(e,t,o){"use strict";var n=o(43913);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6672:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},13509:function(e,t,o){"use strict";var n=o(95753),r=o(65132),i=o(26875);e.exports=n?function(e,t,o){return r.f(e,t,i(1,o))}:function(e,t,o){return e[t]=o,e}},26875:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},30980:function(e,t,o){"use strict";var n=o(66591),r=o(65132),i=o(26875);e.exports=function(e,t,o){var a=n(t);a in e?r.f(e,a,i(0,o)):e[a]=o}},87395:function(e,t,o){"use strict";var n=o(20927),r=o(65132),i=o(10197),a=o(71695);e.exports=function(e,t,o,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(o)&&i(o,c,s),s.global)l?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},71695:function(e,t,o){"use strict";var n=o(87825),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(o){n[e]=t}return t}},95753:function(e,t,o){"use strict";var n=o(43913);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},42264:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},61740:function(e,t,o){"use strict";var n=o(87825),r=o(52160),i=n.document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},5