📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 11:40:46
📂
/ (Root)
/
home
/
apkbfjox
/
joygame.com.pk
/
wp-content
/
plugins
/
kadence-blocks-pro
/
dist
📍 /home/apkbfjox/joygame.com.pk/wp-content/plugins/kadence-blocks-pro/dist
🔄 Refresh
✏️
Editing: blocks.js
Writable
(()=>{var e={20748(e,t,n){"use strict";var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=(o=n(51609))&&o.__esModule?o:{default:o};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,o=e.width,s=void 0===o?24:o,a=e.height,l=void 0===a?24:a,c=e.style,d=void 0===c?{}:c,u=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["fill","width","height","style"]);return r.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:s,height:l},d)},u),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},54657(e,t,n){"use strict";var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=(o=n(51609))&&o.__esModule?o:{default:o};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,o=e.width,s=void 0===o?24:o,a=e.height,l=void 0===a?24:a,c=e.style,d=void 0===c?{}:c,u=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["fill","width","height","style"]);return r.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:s,height:l},d)},u),r.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},1846(e,t){var n,o;(o=o||{}).stringify=(n={"visit_linear-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return n.visit_gradient(e)},"visit_radial-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return n.visit_gradient(e)},visit_gradient:function(e){var t=n.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+n.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,o=n.visit(e.at),i=n.visit(e.style);return i&&(t+=" "+i),o&&(t+=" at "+o),t},"visit_default-radial":function(e){var t="",o=n.visit(e.at);return o&&(t+=o),t},"visit_extent-keyword":function(e){var t=e.value,o=n.visit(e.at);return o&&(t+=" at "+o),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return n.visit(e.value.x)+" "+n.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_literal:function(e){return n.visit_color(e.value,e)},visit_hex:function(e){return n.visit_color("#"+e.value,e)},visit_rgb:function(e){return n.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return n.visit_color("rgba("+e.value.join(", ")+")",e)},visit_color:function(e,t){var o=e,i=n.visit(t.length);return i&&(o+=" "+i),o},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",o=e.length;return e.forEach(function(e,i){t+=n.visit(e),i<o-1&&(t+=", ")}),t},visit:function(e){if(!e)return"";if(e instanceof Array)return n.visit_array(e,"");if(e.type){var t=n["visit_"+e.type];if(t)return t(e);throw Error("Missing visitor visit_"+e.type)}throw Error("Invalid node.")}},function(e){return n.visit(e)}),(o=o||{}).parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,o=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,i=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,r=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,s=/^(left|center|right|top|bottom)/i,a=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,d=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,u=/^\(/,h=/^\)/,p=/^,/,g=/^\#([0-9a-fA-F]+)/,m=/^([a-zA-Z]+)/,f=/^rgb/i,b=/^rgba/i,v=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,y=/var\(([a-zA-Z-0-9_#,\s]+)\)/,k="";function x(e){var t=new Error(k+": "+e);throw t.source=k,t}function w(){return _("linear-gradient",e,S)||_("repeating-linear-gradient",t,S)||_("radial-gradient",n,E)||_("repeating-radial-gradient",o,E)}function _(e,t,n){return C(t,function(t){var o=n();return o&&(I(p)||x("Missing comma before color stops")),{type:e,orientation:o,colorStops:R(L)}})}function C(e,t){var n=I(e);if(n){I(u)||x("Missing (");var o=t(n);return I(h)||x("Missing )"),o}}function S(){return j("directional",i,1)||j("angular",d,1)}function E(){var e,t,n=M();return n&&((e=[]).push(n),t=k,I(p)&&((n=M())?e.push(n):k=t)),e}function M(){var e,t,n=((t=j("shape",/^(circle)/i,0))&&(t.style=N()||$()),t||((e=j("shape",/^(ellipse)/i,0))&&(e.style=D()||$()),e));if(n)n.at=A();else{var o=$();if(o){n=o;var i=A();i&&(n.at=i)}else{var r=T();r&&(n={type:"default-radial",at:r})}}return n}function $(){return j("extent-keyword",r,1)}function A(){if(j("position",/^at/,0)){var e=T();return e||x("Missing positioning value"),e}}function T(){var e={x:D(),y:D()};if(e.x||e.y)return{type:"position",value:e}}function R(e){var t=e(),n=[];if(t)for(n.push(t);I(p);)(t=e())?n.push(t):x("One extra comma");return n}function L(){var e=j("hex",g,1)||C(b,function(){return{type:"rgba",value:R(O)}})||C(f,function(){return{type:"rgb",value:R(O)}})||j("literal",y,0)||j("literal",m,0);return e||x("Expected color definition"),e.length=D(),e}function O(){return I(v)[1]}function D(){return j("%",l,1)||j("position-keyword",s,1)||N()}function N(){return j("px",a,1)||j("em",c,1)}function j(e,t,n){var o=I(t);if(o)return{type:e,value:o[n]}}function I(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(k))&&z(n[0].length),(t=e.exec(k))&&z(t[0].length),t}function z(e){k=k.substr(e)}return function(e){return k=e.toString(),t=R(w),k.length>0&&x("Invalid input not EOF"),t;var t}}(),t.parse=o.parse,t.stringify=o.stringify},80952(e,t,n){e=n.nmd(e),function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,o){"string"==typeof e?(2==arguments.length&&(o=n),t.modules[e]||(t.payloads[e]=o,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,o,i=function(e,t,n){if("string"==typeof t){var o=a(e,t);if(null!=o)return n&&n(),o}else if("[object Array]"===Object.prototype.toString.call(t)){for(var i=[],s=0,l=t.length;s<l;++s){var c=a(e,t[s]);if(null==c&&r.original)return;i.push(c)}return n&&n.apply(null,i)||!0}},r=function(e,t){var n=i("",e,t);return null==n&&r.original?r.original.apply(this,arguments):n},s=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return s(e,n[0])+"!"+s(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&o!=t;){var o=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},a=function(e,n){n=s(e,n);var o=t.modules[n];if(!o){if("function"==typeof(o=t.payloads[n])){var r={},a={id:n,uri:"",exports:r,packaged:!0};r=o(function(e,t){return i(n,e,t)},r,a)||a.exports,t.modules[n]=r,delete t.payloads[n]}o=t.modules[n]=r||o}return o};o=e,(n="ace")&&(e[n]||(e[n]={}),o=e[n]),o.define&&o.define.packaged||(t.original=o.define,o.define=t,o.define.packaged=!0),o.require&&o.require.packaged||(r.original=o.require,o.require=r,o.require.packaged=!0)}(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,t,n){function o(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||o(String.prototype,"startsWith",function(e,t){return t=t||0,this.lastIndexOf(e,t)===t}),String.prototype.endsWith||o(String.prototype,"endsWith",function(e,t){var n=this;(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),String.prototype.repeat||o(String.prototype,"repeat",function(e){for(var t="",n=this;e>0;)1&e&&(t+=n),(e>>=1)&&(n+=n);return t}),String.prototype.includes||o(String.prototype,"includes",function(e,t){return-1!=this.indexOf(e,t)}),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];null!=o&&Object.keys(o).forEach(function(e){t[e]=o[e]})}return t}),Object.values||(Object.values=function(e){return Object.keys(e).map(function(t){return e[t]})}),Array.prototype.find||o(Array.prototype,"find",function(e){for(var t=this.length,n=arguments[1],o=0;o<t;o++){var i=this[o];if(e.call(n,i,o,this))return i}}),Array.prototype.findIndex||o(Array.prototype,"findIndex",function(e){for(var t=this.length,n=arguments[1],o=0;o<t;o++){var i=this[o];if(e.call(n,i,o,this))return o}}),Array.prototype.includes||o(Array.prototype,"includes",function(e,t){return-1!=this.indexOf(e,t)}),Array.prototype.fill||o(Array.prototype,"fill",function(e){for(var t=this,n=t.length>>>0,o=0|arguments[1],i=o<0?Math.max(n+o,0):Math.min(o,n),r=arguments[2],s=void 0===r?n:0|r,a=s<0?Math.max(n+s,0):Math.min(s,n);i<a;)t[i]=e,i++;return t}),Array.of||o(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,t,n){"use strict";e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var o=0;o<t.length;o++)n[o]=e(t[o]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var o in n={},t)n[o]=e(t[o]);return n}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var o=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(o,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,o=e.length;n<o;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},o=function(e){return o.cancel(),t=setTimeout(n,e||0),o};return o.schedule=o,o.call=function(){return this.cancel(),e(),o},o.cancel=function(){return clearTimeout(t),t=null,o},o.isPending=function(){return t},o},t.delayedCall=function(e,t){var n=null,o=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(o,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(o,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&e.codePointAt(t)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var o="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(o.platform)||["other"])[0].toLowerCase(),r=o.userAgent||"",s=o.appName||"";t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==s||s.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=r.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isSafari=parseFloat(r.split(" Safari/")[1])&&!t.isChrome||void 0,t.isEdge=parseFloat(r.split(" Edge/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isAndroid=r.indexOf("Android")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,t,n){"use strict";var o,i=e("./useragent");t.buildDom=function e(t,n,o){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var r=[],s=0;s<t.length;s++){var a=e(t[s],n,o);a&&r.push(a)}return r}var l=document.createElement(t[0]),c=t[1],d=1;for(c&&"object"==typeof c&&!Array.isArray(c)&&(d=2),s=d;s<t.length;s++)e(t[s],l,o);return 2==d&&Object.keys(c).forEach(function(e){var t=c[e];"class"===e?l.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?l[e]=t:"ref"===e?o&&(o[t]=l):"style"===e?"string"==typeof t&&(l.style.cssText=t):null!=t&&l.setAttribute(e,t)}),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var o=n.indexOf(t);if(-1==o)break;n.splice(o,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),o=!0;;){var i=n.indexOf(t);if(-1==i)break;o=!1,n.splice(i,1)}return o&&n.push(t),e.className=n.join(" "),o},t.setCssClass=function(e,n,o){o?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,o=0;if(n=(t=t||document).querySelectorAll("style"))for(;o<n.length;)if(n[o++].id===e)return!0},t.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()};var r=[];function s(){var e=r;r=null,e&&e.forEach(function(e){a(e[0],e[1])})}function a(e,n,i){if("undefined"!=typeof document){if(r)if(i)s();else if(!1===i)return r.push([e,n]);if(!o){var a=i;i&&i.getRootNode&&(a=i.getRootNode())&&a!=i||(a=document);var l=a.ownerDocument||a;if(n&&t.hasCssString(n,a))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var c=t.createElement("style");c.appendChild(l.createTextNode(e)),n&&(c.id=n),a==l&&(a=t.getDocumentHead(l)),a.insertBefore(c,a.firstChild)}}}if(t.useStrictCSP=function(e){o=e,0==e?s():r||(r=[])},t.importCssString=a,t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.$fixPositionBug=function(e){var t=e.getBoundingClientRect();if(e.style.left){var n=parseFloat(e.style.left),o=+t.left;Math.abs(n-o)>1&&(e.style.left=2*n-o+"px")}e.style.right&&(n=parseFloat(e.style.right),o=window.innerWidth-t.right,Math.abs(n-o)>1&&(e.style.right=2*n-o+"px")),e.style.top&&(n=parseFloat(e.style.top),o=+t.top,Math.abs(n-o)>1&&(e.style.top=2*n-o+"px")),e.style.bottom&&(n=parseFloat(e.style.bottom),o=window.innerHeight-t.bottom,Math.abs(n-o)>1&&(e.style.bottom=2*n-o+"px"))},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var o=t.createElement("ace_outer"),i=o.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",o.appendChild(n);var r=e&&e.documentElement||document&&document.documentElement;if(!r)return 0;r.appendChild(o);var s=n.offsetWidth;i.overflow="scroll";var a=n.offsetWidth;return s===a&&(a=o.clientWidth),r.removeChild(o),s-a},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!i.isWin||"undefined"!=typeof window&&window.devicePixelRatio>=1.5,i.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document){var l=document.createElement("div");t.HI_DPI&&void 0!==l.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),i.isEdge||void 0===l.style.animationName||(t.HAS_CSS_ANIMATION=!0),l=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var o=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=o.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,n){"use strict";var o={},i=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};o._emit=o._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],o=this._defaultHandlers[e];if(n.length||o){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=r),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return o&&!t.defaultPrevented?o(t,this):void 0}},o._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var o=0;o<n.length;o++)n[o](t,this)}},o.once=function(e,t){var n=this;if(this.on(e,function o(){n.off(e,o),t.apply(null,arguments)}),!t)return new Promise(function(e){t=e})},o.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var o=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(o);var r=i.indexOf(t);-1!=r&&i.splice(r,1)}n[e]=t},o.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var o=n._disabled_[e];if(n[e]==t)o&&this.setDefaultHandler(e,o.pop());else if(o){var i=o.indexOf(t);-1!=i&&o.splice(i,1)}}},o.on=o.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[e];return o||(o=this._eventRegistry[e]=[]),-1==o.indexOf(t)&&o[n?"unshift":"push"](t),t},o.off=o.removeListener=o.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var o=n.indexOf(t);-1!==o&&n.splice(o,1)}},o.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=o}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,t,n){t.reportError=function(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout(function(){throw n})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,t,n){t.defaultEnglishMessages={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,t,n){var o,i,r=e("./oop"),s=e("./event_emitter").EventEmitter,a=e("./report_error").reportError,l=e("./default_english_messages").defaultEnglishMessages,c={setOptions:function(e){Object.keys(e).forEach(function(t){this.setOption(t,e[t])},this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(e=Object.keys(e));else{var n=this.$options;e=Object.keys(n).filter(function(e){return!n[e].hidden})}return e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return d('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:d('misspelled option "'+e+'"')}};function d(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}var u=function(){function e(){this.$defaultOptions={},o=l,i="dollarSigns"}return e.prototype.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach(function(t){var o=n[t];"string"==typeof o&&(o={forwardTo:o}),o.name||(o.name=t),e.$options[o.name]=o,"initialValue"in o&&(e["$"+o.name]=o.initialValue)}),r.implement(e,c),this},e.prototype.resetOptions=function(e){Object.keys(e.$options).forEach(function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)})},e.prototype.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var o=this.$defaultOptions[e]||(this.$defaultOptions[e]={});o[t]&&(o.forwardTo?this.setDefaultValue(o.forwardTo,t,n):o[t].value=n)},e.prototype.setDefaultValues=function(e,t){Object.keys(t).forEach(function(n){this.setDefaultValue(e,n,t[n])},this)},e.prototype.setMessages=function(e,t){o=e,t&&t.placeholders&&(i=t.placeholders)},e.prototype.nls=function(e,t,n){o[e]||(d("No message found for the key '"+e+"' in messages with id "+o.$id+", trying to find a translation for the default string '"+t+"'."),o[t]||d("No message found for the default string '"+t+"' in the provided messages. Falling back to the default English message."));var r=o[e]||o[t]||t;return n&&("dollarSigns"===i&&(r=r.replace(/\$(\$|[\d]+)/g,function(e,t){return"$"==t?"$":n[t]})),"curlyBrackets"===i&&(r=r.replace(/\{([^\}]+)\}/g,function(e,t){return n[t]}))),r},e}();u.prototype.warn=d,u.prototype.reportError=a,r.implement(u.prototype,s),t.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,t,n){n.exports='.ace-tm .ace_gutter {\n background: #f0f0f0;\n color: #333;\n}\n\n.ace-tm .ace_print-margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-tm .ace_fold {\n background-color: #6B72E6;\n}\n\n.ace-tm {\n background-color: #FFFFFF;\n color: black;\n}\n\n.ace-tm .ace_cursor {\n color: black;\n}\n \n.ace-tm .ace_invisible {\n color: rgb(191, 191, 191);\n}\n\n.ace-tm .ace_storage,\n.ace-tm .ace_keyword {\n color: blue;\n}\n\n.ace-tm .ace_constant {\n color: rgb(197, 6, 11);\n}\n\n.ace-tm .ace_constant.ace_buildin {\n color: rgb(88, 72, 246);\n}\n\n.ace-tm .ace_constant.ace_language {\n color: rgb(88, 92, 246);\n}\n\n.ace-tm .ace_constant.ace_library {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_invalid {\n background-color: rgba(255, 0, 0, 0.1);\n color: red;\n}\n\n.ace-tm .ace_support.ace_function {\n color: rgb(60, 76, 114);\n}\n\n.ace-tm .ace_support.ace_constant {\n color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_support.ace_type,\n.ace-tm .ace_support.ace_class {\n color: rgb(109, 121, 222);\n}\n\n.ace-tm .ace_keyword.ace_operator {\n color: rgb(104, 118, 135);\n}\n\n.ace-tm .ace_string {\n color: rgb(3, 106, 7);\n}\n\n.ace-tm .ace_comment {\n color: rgb(76, 136, 107);\n}\n\n.ace-tm .ace_comment.ace_doc {\n color: rgb(0, 102, 255);\n}\n\n.ace-tm .ace_comment.ace_doc.ace_tag {\n color: rgb(128, 159, 191);\n}\n\n.ace-tm .ace_constant.ace_numeric {\n color: rgb(0, 0, 205);\n}\n\n.ace-tm .ace_variable {\n color: rgb(49, 132, 149);\n}\n\n.ace-tm .ace_xml-pe {\n color: rgb(104, 104, 91);\n}\n\n.ace-tm .ace_entity.ace_name.ace_function {\n color: #0000A2;\n}\n\n\n.ace-tm .ace_heading {\n color: rgb(12, 7, 255);\n}\n\n.ace-tm .ace_list {\n color:rgb(185, 6, 144);\n}\n\n.ace-tm .ace_meta.ace_tag {\n color:rgb(0, 22, 142);\n}\n\n.ace-tm .ace_string.ace_regex {\n color: rgb(255, 0, 0)\n}\n\n.ace-tm .ace_marker-layer .ace_selection {\n background: rgb(181, 213, 255);\n}\n.ace-tm.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px white;\n}\n.ace-tm .ace_marker-layer .ace_step {\n background: rgb(252, 255, 0);\n}\n\n.ace-tm .ace_marker-layer .ace_stack {\n background: rgb(164, 229, 101);\n}\n\n.ace-tm .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-tm .ace_marker-layer .ace_active-line {\n background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-tm .ace_gutter-active-line {\n background-color : #dcdcdc;\n}\n\n.ace-tm .ace_marker-layer .ace_selected-word {\n background: rgb(250, 250, 255);\n border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-tm .ace_indent-guide {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-tm .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate-css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,t,n){var o=e("./lib/lang"),i=e("./lib/net"),r=e("./lib/dom"),s=e("./lib/app_config").AppConfig;n.exports=t=new s;var a,l={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};t.get=function(e){if(!l.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return l[e]},t.set=function(e,t){if(l.hasOwnProperty(e))l[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&r.useStrictCSP(t)},t.all=function(){return o.copyObject(l)},t.$modes={},t.moduleUrl=function(e,t){if(l.$moduleUrls[e])return l.$moduleUrls[e];var n=e.split("/"),o="snippets"==(t=t||n[n.length-2]||"")?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==o){var r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(r,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var s=l[t+"Path"];return null==s?s=l.basePath:"/"==o&&(t=o=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+o+i+this.get("suffix")},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.setLoader=function(e){a=e},t.dynamicModules=Object.create(null),t.$loading={},t.$loaded={},t.loadModule=function(n,o){var r;if(Array.isArray(n))var s=n[0],l=n[1];else"string"==typeof n&&(l=n);var d=function(n){if(n&&!t.$loading[l])return o&&o(n);if(t.$loading[l]||(t.$loading[l]=[]),t.$loading[l].push(o),!(t.$loading[l].length>1)){var r=function(){!function(t,n){"ace/theme/textmate"===t||"./theme/textmate"===t?n(0,e("./theme/textmate")):a?a(t,n):console.error("loader is not configured")}(l,function(e,n){n&&(t.$loaded[l]=n),t._emit("load.module",{name:l,module:n});var o=t.$loading[l];t.$loading[l]=null,o.forEach(function(e){e&&e(n)})})};if(!t.get("packaged"))return r();i.loadScript(t.moduleUrl(l,s),r),c()}};if(t.dynamicModules[l])t.dynamicModules[l]().then(function(e){e.default?d(e.default):d(e)});else{try{r=this.$require(l)}catch(e){}d(r||t.$loaded[l])}},t.$require=function(e){if("function"==typeof n.require)return n.require(e)},t.setModuleLoader=function(e,n){t.dynamicModules[e]=n};var c=function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};t.version="1.43.6"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,t,o){"use strict";e("./lib/fixoldbrowsers");var i=e("./config");i.setLoader(function(t,n){e([t],function(e){n(null,e)})});var r=function(){return this||"undefined"!=typeof window&&window}();function s(t){if(r&&r.document){i.set("packaged",t||e.packaged||o.packaged||r.define&&n.amdD.packaged);var s={},l="",c=document.currentScript||document._currentScript,d=c&&c.ownerDocument||document;c&&c.src&&(l=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var u=d.getElementsByTagName("script"),h=0;h<u.length;h++){var p=u[h],g=p.src||p.getAttribute("src");if(g){for(var m=p.attributes,f=0,b=m.length;f<b;f++){var v=m[f];0===v.name.indexOf("data-ace-")&&(s[a(v.name.replace(/^data-ace-/,""))]=v.value)}var y=g.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);y&&(l=y[1])}}for(var k in l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)void 0!==s[k]&&i.set(k,s[k])}}function a(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}o.exports=function(t){i.init=s,i.$require=e,t.require=e,t.define=n.amdD},s(!0)}),ace.define("ace/range",["require","exports","module"],function(e,t,n){"use strict";var o=function(){function e(e,t,n,o){this.start={row:e,column:t},this.end={row:n,column:o}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,o=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(o.row,o.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(o.row,o.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var o={row:n+1,column:0};else this.end.row<t&&(o={row:t,column:0});if(this.start.row>n)var i={row:n+1,column:0};else this.start.row<t&&(i={row:t,column:0});return e.fromPoints(i||this.start,o||this.end)},e.prototype.extend=function(t,n){var o=this.compare(t,n);if(0==o)return this;if(-1==o)var i={row:t,column:n};else var r={row:t,column:n};return e.fromPoints(i||this.start,r||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),o=t.documentToScreenPosition(this.end);return new e(n.row,n.column,o.row,o.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();o.fromPoints=function(e,t){return new o(e.row,e.column,t.row,t.column)},o.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=o}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t,n){"use strict";for(var o=e("./oop"),i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},r={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},s=0;s<10;s++)r["Digit"+s]=48+s,r["Numpad"+s]=96+s,i.PRINTABLE_KEYS[48+s]=""+s,i.FUNCTION_KEYS[96+s]="Numpad"+s;for(s=65;s<91;s++){var a=String.fromCharCode(s+32);r["Key"+a.toUpperCase()]=s,i.PRINTABLE_KEYS[s]=a}for(s=1;s<13;s++)r["F"+s]=111+s,i.FUNCTION_KEYS[111+s]="F"+s;var l={Shift:16,Control:17,Alt:18,Meta:224};for(var c in l)r[c]=r[c+"Left"]=r[c+"Right"]=l[c];for(var d in t.$codeToKeyCode=r,i.PRINTABLE_KEYS[173]="-",i.FUNCTION_KEYS){var u=i.FUNCTION_KEYS[d].toLowerCase();i[u]=parseInt(d,10)}for(var d in i.PRINTABLE_KEYS)u=i.PRINTABLE_KEYS[d].toLowerCase(),i[u]=parseInt(d,10);o.mixin(i,i.MODIFIER_KEYS),o.mixin(i,i.PRINTABLE_KEYS),o.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)i.KEY_MODS[t]=e.filter(function(e){return t&i.KEY_MODS[e]}).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",o.mixin(t,i),t.default=t,t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var o,i=e("./keys"),r=e("./useragent"),s=null,a=0;function l(){return null==o&&function(){o=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return o={passive:!1},!0}})}catch(e){}}(),o}function c(e,t,n){this.elem=e,this.type=t,this.callback=n}c.prototype.destroy=function(){u(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var d=t.addListener=function(e,t,n,o){e.addEventListener(t,n,l()),o&&o.$toDestroy.push(new c(e,t,n))},u=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};function h(e){return(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}function p(){s=Object.create(null)}if(t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var o=e&&e.ownerDocument||document;function i(e){t&&t(e),n&&n(e),u(o,"mousemove",t),u(o,"mouseup",i),u(o,"dragstart",i)}return d(o,"mousemove",t),d(o,"mouseup",i),d(o,"dragstart",i),i},t.addMouseWheelListener=function(e,t,n){d(e,"wheel",function(e){var n=e.deltaX||0,o=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.15*n,e.wheelY=.15*o;break;case e.DOM_DELTA_LINE:e.wheelX=15*n,e.wheelY=15*o;break;case e.DOM_DELTA_PAGE:e.wheelX=150*n,e.wheelY=150*o}t(e)},n)},t.addMultiMouseDownListener=function(e,n,o,i,s){var a,l,c,u=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};function p(e){if(0!==t.getButton(e)?u=0:e.detail>1?++u>4&&(u=1):u=1,r.isIE){var s=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;c&&!s||(u=1),c&&clearTimeout(c),c=setTimeout(function(){c=null},n[u-1]||600),1==u&&(a=e.clientX,l=e.clientY)}if(e._clicks=u,o[i]("mousedown",e),u>4)u=0;else if(u>1)return o[i](h[u],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){d(e,"mousedown",p,s)})},t.getModifierString=function(e){return i.KEY_MODS[h(e)]},t.addCommandKeyListener=function(e,n,o){var l=null;d(e,"keydown",function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=function(e,t,n){var o=h(t);if(!n&&t.code&&(n=i.$codeToKeyCode[t.code]||n),!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(o|=8),s.altGr){if(!(3&~o))return;s.altGr=0}if(18===n||17===n){var l=t.location;17===n&&1===l?1==s[n]&&(a=t.timeStamp):18===n&&3===o&&2===l&&t.timeStamp-a<50&&(s.altGr=!0)}}if(n in i.MODIFIER_KEYS&&(n=-1),o||13!==n||3!==t.location||(e(t,o,-n),!t.defaultPrevented)){if(r.isChromeOS&&8&o){if(e(t,o,n),t.defaultPrevented)return;o&=-9}return!!(o||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,o,n)}}(n,e,e.keyCode);return l=e.defaultPrevented,t},o),d(e,"keypress",function(e){l&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),l=null)},o),d(e,"keyup",function(e){s[e.keyCode]=null},o),s||(p(),d(window,"focus",p))},"object"==typeof window&&window.postMessage&&!r.isOldIE){var g=1;t.nextTick=function(e,n){n=n||window;var o="zero-timeout-message-"+g++,i=function(r){r.data==o&&(t.stopPropagation(r),u(n,"message",i),e())};d(n,"message",i),n.postMessage(o,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout(function n(){t.$idleBlocked?setTimeout(n,100):e()},n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout(function(){t.$idleBlocked=!1},e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,t,n){"use strict";var o;n.exports={lineMode:!1,pasteCancelled:function(){return!!(o&&o>Date.now()-50)||(o=!1)},cancel:function(){o=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,n){"use strict";var o=e("../lib/event"),i=e("../config").nls,r=e("../lib/useragent"),s=e("../lib/dom"),a=e("../lib/lang"),l=e("../clipboard"),c=r.isChrome<18,d=r.isIE,u=r.isChrome>63,h=400,p=e("../lib/keys"),g=p.KEY_MODS,m=r.isIOS,f=m?/\s/:/\n/,b=r.isMobile,v=function(){function e(e,t){var n=this;this.host=t,this.text=s.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",e.insertBefore(this.text,e.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",b||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch(e){}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),o.addListener(this.text,"blur",function(e){n.ignoreFocusEvents||(t.onBlur(e),n.$isFocused=!1)},t),o.addListener(this.text,"focus",function(e){if(!n.ignoreFocusEvents){if(n.$isFocused=!0,r.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),r.isEdge?setTimeout(n.resetSelection.bind(n)):n.resetSelection()}},t),this.$focusScroll=!1,t.on("beforeEndOperation",function(){var e=t.curOp,o=e&&e.command&&e.command.name;if("insertstring"!=o){var i=o&&(e.docChanged||e.selectionChanged);n.inComposition&&i&&(n.lastValue=n.text.value="",n.onCompositionEnd()),n.resetSelection()}}),t.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=m?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&t.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,o.addCommandKeyListener(this.text,function(e,o,i){if(!n.inComposition)return t.onCommandKey(e,o,i)},t),o.addListener(this.text,"select",this.onSelect.bind(this),t),o.addListener(this.text,"input",this.onInput.bind(this),t),o.addListener(this.text,"cut",this.onCut.bind(this),t),o.addListener(this.text,"copy",this.onCopy.bind(this),t),o.addListener(this.text,"paste",this.onPaste.bind(this),t),"oncut"in this.text&&"oncopy"in this.text&&"onpaste"in this.text||o.addListener(e,"keydown",function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:n.onCopy(e);break;case 86:n.onPaste(e);break;case 88:n.onCut(e)}},t),this.syncComposition=a.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),o.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),t),o.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),t),o.addListener(this.text,"keyup",this.onKeyup.bind(this),t),o.addListener(this.text,"keydown",this.syncComposition.bind(this),t),o.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),t),this.closeTimeout,o.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),t),o.addListener(this.text,"mousedown",function(e){e.preventDefault(),n.onContextMenuClose()},t),o.addListener(t.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),t),o.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),t),m&&this.addIosSelectionHandler(e,t,this.text)}return e.prototype.addIosSelectionHandler=function(e,t,n){var o=this,i=null,r=!1;n.addEventListener("keydown",function(e){i&&clearTimeout(i),r=!0},!0),n.addEventListener("keyup",function(e){i=setTimeout(function(){r=!1},100)},!0);var s=function(e){if(document.activeElement===n&&!(r||o.inComposition||t.$mouseHandler.isMousePressed||o.copied)){var i=n.selectionStart,s=n.selectionEnd,a=null,l=0;if(0==i?a=p.up:1==i?a=p.home:s>o.lastSelectionEnd&&"\n"==o.lastValue[s]?a=p.end:i<o.lastSelectionStart&&" "==o.lastValue[i-1]?(a=p.left,l=g.option):i<o.lastSelectionStart||i==o.lastSelectionStart&&o.lastSelectionEnd!=o.lastSelectionStart&&i==s?a=p.left:s>o.lastSelectionEnd&&o.lastValue.slice(0,s).split("\n").length>2?a=p.down:s>o.lastSelectionEnd&&" "==o.lastValue[s-1]?(a=p.right,l=g.option):(s>o.lastSelectionEnd||s==o.lastSelectionEnd&&o.lastSelectionEnd!=o.lastSelectionStart&&i==s)&&(a=p.right),i!==s&&(l|=g.shift),a){if(!t.onCommandKey({},l,a)&&t.commands){a=p.keyCodeToString(a);var c=t.commands.findKeyCommand(l,a);c&&t.execCommand(c)}o.lastSelectionStart=i,o.lastSelectionEnd=s,o.resetSelection("")}}};document.addEventListener("selectionchange",s),t.on("destroy",function(){document.removeEventListener("selectionchange",s)})},e.prototype.onContextMenuClose=function(){var e=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){e.tempStyle&&(e.text.style.cssText=e.tempStyle,e.tempStyle=""),e.host.renderer.$isMousePressed=!1,e.host.renderer.$keepTextAreaAtCursor&&e.host.renderer.$moveTextAreaToCursor()},0)},e.prototype.$onContextMenu=function(e){this.host.textInput.onContextMenu(e),this.onContextMenuClose()},e.prototype.onKeyup=function(e){27==e.keyCode&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},e.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},e.prototype.onCompositionStart=function(e){if(!this.inComposition&&this.host.onCompositionStart&&!this.host.$readOnly&&(this.inComposition={},!this.commandMode)){e.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var t=this.host.getSelectionRange();t.end.row=t.start.row,t.end.column=t.start.column,this.inComposition.markerRange=t,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},e.prototype.onCompositionUpdate=function(){if(this.inComposition&&this.host.onCompositionUpdate&&!this.host.$readOnly){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var e=this.text.value;this.sendText(e),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},e.prototype.onCompositionEnd=function(e){this.host.onCompositionEnd&&!this.host.$readOnly&&(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),e&&this.onInput())},e.prototype.onCut=function(e){this.doCopy(e,!0)},e.prototype.onCopy=function(e){this.doCopy(e,!1)},e.prototype.onPaste=function(e){var t=this.handleClipboardData(e);l.pasteCancelled()||("string"==typeof t?(t&&this.host.onPaste(t,e),r.isIE&&setTimeout(this.resetSelection),o.preventDefault(e)):(this.text.value="",this.pasted=!0))},e.prototype.doCopy=function(e,t){var n=this,i=this.host.getCopyText();if(!i)return o.preventDefault(e);this.handleClipboardData(e,i)?(m&&(this.resetSelection(i),this.copied=i,setTimeout(function(){n.copied=!1},10)),t?this.host.onCut():this.host.onCopy(),o.preventDefault(e)):(this.copied=!0,this.text.value=i,this.text.select(),setTimeout(function(){n.copied=!1,n.resetSelection(),t?n.host.onCut():n.host.onCopy()}))},e.prototype.handleClipboardData=function(e,t,n){var o=e.clipboardData||window.clipboardData;if(o&&!c){var i=d||n?"Text":"text/plain";try{return t?!1!==o.setData(i,t):o.getData(i)}catch(e){if(!n)return this.handleClipboardData(e,t,!0)}}},e.prototype.onInput=function(e){if(this.inComposition)return this.onCompositionUpdate();if(e&&e.inputType){if("historyUndo"==e.inputType)return this.host.execCommand("undo");if("historyRedo"==e.inputType)return this.host.execCommand("redo")}var t=this.text.value,n=this.sendText(t,!0);(t.length>500||f.test(n)||b&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},e.prototype.sendText=function(e,t){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),e&&this.host.onPaste(e),this.pasted=!1,"";for(var n=this.text.selectionStart,o=this.text.selectionEnd,i=this.lastSelectionStart,s=this.lastValue.length-this.lastSelectionEnd,a=e,l=e.length-n,c=e.length-o,d=0;i>0&&this.lastValue[d]==e[d];)d++,i--;for(a=a.slice(d),d=1;s>0&&this.lastValue.length-d>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-d]==e[e.length-d];)d++,s--;l-=d-1,c-=d-1;var u=a.length-d+1;if(u<0&&(i=-u,u=0),a=a.slice(0,u),!(t||a||l||i||s||c))return"";this.sendingText=!0;var h=!1;return r.isAndroid&&". "==a&&(a=" ",h=!0),a&&!i&&!s&&!l&&!c||this.commandMode?this.host.onTextInput(a):this.host.onTextInput(a,{extendLeft:i,extendRight:s,restoreStart:l,restoreEnd:c}),this.sendingText=!1,this.lastValue=e,this.lastSelectionStart=n,this.lastSelectionEnd=o,this.lastRestoreEnd=c,h?"\n":a},e.prototype.onSelect=function(e){var t,n=this;this.inComposition||(this.copied?this.copied=!1:0===(t=this.text).selectionStart&&t.selectionEnd>=n.lastValue.length&&t.value===n.lastValue&&n.lastValue&&t.selectionEnd!==n.lastSelectionEnd?(this.host.selectAll(),this.resetSelection()):b&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection())},e.prototype.$resetSelectionIOS=function(e){if(this.$isFocused&&(!this.copied||e)&&!this.sendingText){e||(e="");var t="\n ab"+e+"cde fg\n";t!=this.text.value&&(this.text.value=this.lastValue=t);var n=4+(e.length||(this.host.selection.isEmpty()?0:1));4==this.lastSelectionStart&&this.lastSelectionEnd==n||this.text.setSelectionRange(4,n),this.lastSelectionStart=4,this.lastSelectionEnd=n}},e.prototype.$resetSelection=function(){var e=this;if(!this.inComposition&&!this.sendingText&&(this.$isFocused||this.afterContextMenu)){this.inComposition=!0;var t=0,n=0,o="",i=function(t,n){for(var o=n,i=1;i<=t-e.rowStart&&i<2*e.numberOfExtraLines+1;i++)o+=e.host.session.getLine(t-i).length+1;return o};if(this.host.session){var r=this.host.selection,s=r.getRange(),a=r.cursor.row;a===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):a===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(a<this.rowStart-1||a>this.rowEnd+1)&&(this.rowStart=a>this.numberOfExtraLines?a-this.numberOfExtraLines:0,this.rowEnd=a>this.numberOfExtraLines?a+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var l=[],c=this.rowStart;c<=this.rowEnd;c++)l.push(this.host.session.getLine(c));if(o=l.join("\n"),t=i(s.start.row,s.start.column),n=i(s.end.row,s.end.column),s.start.row<this.rowStart){var d=this.host.session.getLine(this.rowStart-1);t=s.start.row<this.rowStart-1?0:t,n+=d.length+1,o=d+"\n"+o}else if(s.end.row>this.rowEnd){var u=this.host.session.getLine(this.rowEnd+1);n=s.end.row>this.rowEnd+1?u.length:s.end.column,n+=o.length+1,o=o+"\n"+u}else b&&a>0&&(o="\n"+o,n+=1,t+=1);o.length>h&&(t<h&&n<h?o=o.slice(0,h):(o="\n",t==n?t=n=0:(t=0,n=1)));var p=o+"\n\n";p!=this.lastValue&&(this.text.value=this.lastValue=p,this.lastSelectionStart=this.lastSelectionEnd=p.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=n||this.lastSelectionStart!=t||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(t,n),this.lastSelectionStart=t,this.lastSelectionEnd=n}catch(e){}this.inComposition=!1}},e.prototype.setHost=function(e){this.host=e},e.prototype.setNumberOfExtraLines=function(e){this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=e<0?0:e},e.prototype.setAriaLabel=function(){var e="";if(this.host.$textInputAriaLabel&&(e+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var t=this.host.session.selection.cursor.row;e+=i("text-input.aria-label","Cursor at row $0",[t+1])}this.text.setAttribute("aria-label",e)},e.prototype.setAriaOptions=function(e){e.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",e.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",e.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),e.role&&this.text.setAttribute("role",e.role),e.setLabel&&(this.text.setAttribute("aria-roledescription",i("text-input.aria-roledescription","editor")),this.setAriaLabel())},e.prototype.focus=function(){var e=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||u||"browser"==this.$focusScroll)return this.text.focus({preventScroll:!0});var t=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var n=0!=this.text.getBoundingClientRect().top}catch(e){return}var o=[];if(n)for(var i=this.text.parentElement;i&&1==i.nodeType;)o.push(i),i.setAttribute("ace_nocontext","true"),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;this.text.focus({preventScroll:!0}),n&&o.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){e.text.style.position="","0px"==e.text.style.top&&(e.text.style.top=t)},0)},e.prototype.blur=function(){this.text.blur()},e.prototype.isFocused=function(){return this.$isFocused},e.prototype.setInputHandler=function(e){this.inputHandler=e},e.prototype.getInputHandler=function(){return this.inputHandler},e.prototype.getElement=function(){return this.text},e.prototype.setCommandMode=function(e){this.commandMode=e,this.text.readOnly=!1},e.prototype.setReadOnly=function(e){this.commandMode||(this.text.readOnly=e)},e.prototype.setCopyWithEmptySelection=function(e){},e.prototype.onContextMenu=function(e){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:e}),this.moveToMouse(e,!0)},e.prototype.moveToMouse=function(e,t){var n=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(t?"z-index:100000;":"")+(r.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var i=this.host.container.getBoundingClientRect(),a=s.computedStyle(this.host.container),l=i.top+(parseInt(a.borderTopWidth)||0),c=i.left+(parseInt(a.borderLeftWidth)||0),d=i.bottom-l-this.text.clientHeight-2,u=function(e){s.translate(n.text,e.clientX-c-2,Math.min(e.clientY-l-2,d))};u(e),"mousedown"==e.type&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),r.isWin&&o.capture(this.host.container,u,this.onContextMenuClose.bind(this)))},e.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},e}();t.TextInput=v,t.$setUserAgentForTests=function(e,t){b=e,m=t}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,n){"use strict";var o=e("../lib/useragent"),i=function(){function e(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}return e.prototype.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,r=e.getButton();return 0!==r?((i.getSelectionRange().isEmpty()||1==r)&&i.selection.moveToPosition(n),void(2==r&&(i.textInput.onContextMenu(e.domEvent),o.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},e.prototype.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},e.prototype.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(n);if(-1==o)e=this.$clickSelection.end;else if(1==o)e=this.$clickSelection.start;else{var i=r(this.$clickSelection,n,t.session);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},e.prototype.extendSelectionBy=function(e){var t,n=this.editor,o=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](o.row,o.column);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==s&&a<=0)t=this.$clickSelection.end,i.end.row==o.row&&i.end.column==o.column||(o=i.start);else if(1==a&&s>=0)t=this.$clickSelection.start,i.start.row==o.row&&i.start.column==o.column||(o=i.end);else if(-1==s&&1==a)o=i.end,t=i.start;else{var l=r(this.$clickSelection,o,n.session);o=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(o),n.renderer.scrollCursorIntoView()},e.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},e.prototype.focusWait=function(){var e,t,n,o,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,o=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(o-t,2))),r=Date.now();(i>0||r-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},e.prototype.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,o=n.session.getBracketRange(t);o?(o.isEmpty()&&(o.start.column--,o.end.column++),this.setState("select")):(o=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=o,this.select()},e.prototype.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var o=n.getSelectionRange();o.isMultiLine()&&o.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(o.start.row),this.$clickSelection.end=n.selection.getLineRange(o.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},e.prototype.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},e.prototype.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,o=e.domEvent.timeStamp,i=o-n.t,r=i?e.wheelX/i:n.vx,s=i?e.wheelY/i:n.vy;i<550&&(r=(r+n.vx)/2,s=(s+n.vy)/2);var a=Math.abs(r/s),l=!1;return a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l?n.allowed=o:o-n.allowed<550&&(Math.abs(r)<=1.5*Math.abs(n.vx)&&Math.abs(s)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=o):n.allowed=0),n.t=o,n.vx=r,n.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},e}();function r(e,t,n){if(e.start.row==e.end.row)var o=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)o=2*t.row-e.start.row-e.end.row;else o=3*t.column-2*n.getLine(e.start.row).length;return o<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}i.prototype.selectEnd=i.prototype.selectByLinesEnd,i.prototype.selectAllEnd=i.prototype.selectByLinesEnd,i.prototype.selectByWordsEnd=i.prototype.selectByLinesEnd,t.DefaultHandlers=i}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var o=e("../lib/event"),i=e("../lib/useragent"),r=function(){function e(e,t){this.speed,this.wheelX,this.wheelY,this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return e.prototype.stopPropagation=function(){o.stopPropagation(this.domEvent),this.propagationStopped=!0},e.prototype.preventDefault=function(){o.preventDefault(this.domEvent),this.defaultPrevented=!0},e.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},e.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},e.prototype.getGutterRow=function(){var e=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(e,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},e.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},e.prototype.getButton=function(){return o.getButton(this.domEvent)},e.prototype.getShiftKey=function(){return this.domEvent.shiftKey},e.prototype.getAccelKey=function(){return i.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},e}();t.MouseEvent=r}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,t,n){t.preventParentScroll=function(e){e.stopPropagation();var t=e.currentTarget;t.scrollHeight>t.clientHeight||e.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("./lib/dom"),a=(e("./lib/event"),e("./range").Range),l=e("./lib/scroll").preventParentScroll,c="ace_tooltip",d=function(){function e(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}return e.prototype.$init=function(){return this.$element=s.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},e.prototype.getElement=function(){return this.$element||this.$init()},e.prototype.setText=function(e){this.getElement().textContent=e},e.prototype.setHtml=function(e){this.getElement().innerHTML=e},e.prototype.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},e.prototype.setClassName=function(e){s.addCssClass(this.getElement(),e)},e.prototype.setTheme=function(e){this.theme&&(this.theme.isDark&&s.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&s.removeCssClass(this.getElement(),this.theme.cssClass)),e.isDark&&s.addCssClass(this.getElement(),"ace_dark"),e.cssClass&&s.addCssClass(this.getElement(),e.cssClass),this.theme={isDark:e.isDark,cssClass:e.cssClass}},e.prototype.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},e.prototype.hide=function(e){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},e.prototype.getHeight=function(){return this.getElement().offsetHeight},e.prototype.getWidth=function(){return this.getElement().offsetWidth},e.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},e}(),u=new(function(){function e(){this.popups=[]}return e.prototype.addPopup=function(e){this.popups.push(e),this.updatePopups()},e.prototype.removePopup=function(e){var t=this.popups.indexOf(e);-1!==t&&(this.popups.splice(t,1),this.updatePopups())},e.prototype.updatePopups=function(){var e,t,n,o;this.popups.sort(function(e,t){return t.priority-e.priority});var i=[];try{for(var s=r(this.popups),a=s.next();!a.done;a=s.next()){var l=a.value,c=!0;try{for(var d=(n=void 0,r(i)),u=d.next();!u.done;u=d.next()){var h=u.value;if(this.doPopupsOverlap(h,l)){c=!1;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}c?i.push(l):l.hide()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},e.prototype.doPopupsOverlap=function(e,t){var n=e.getElement().getBoundingClientRect(),o=t.getElement().getBoundingClientRect();return n.left<o.right&&n.right>o.left&&n.top<o.bottom&&n.bottom>o.top},e}());t.popupManager=u,t.Tooltip=d;var h=function(e){function t(t){void 0===t&&(t=document.body);var n=e.call(this,t)||this;n.timeout=void 0,n.lastT=0,n.idleTime=350,n.lastEvent=void 0,n.onMouseOut=n.onMouseOut.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.waitForHover=n.waitForHover.bind(n),n.hide=n.hide.bind(n);var o=n.getElement();return o.style.whiteSpace="pre-wrap",o.style.pointerEvents="auto",o.addEventListener("mouseout",n.onMouseOut),o.tabIndex=-1,o.addEventListener("blur",function(){o.contains(document.activeElement)||this.hide()}.bind(n)),o.addEventListener("wheel",l),n}return i(t,e),t.prototype.addToEditor=function(e){e.on("mousemove",this.onMouseMove),e.on("mousedown",this.hide);var t=e.renderer.getMouseEventTarget();t&&"function"==typeof t.removeEventListener&&t.addEventListener("mouseout",this.onMouseOut,!0)},t.prototype.removeFromEditor=function(e){e.off("mousemove",this.onMouseMove),e.off("mousedown",this.hide);var t=e.renderer.getMouseEventTarget();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.onMouseMove=function(e,t){this.lastEvent=e,this.lastT=Date.now();var n=t.$mouseHandler.isMousePressed;if(this.isOpen){var o=this.lastEvent&&this.lastEvent.getDocumentPosition();this.range&&this.range.contains(o.row,o.column)&&!n&&!this.isOutsideOfText(this.lastEvent)||this.hide()}this.timeout||n||(this.lastEvent=e,this.timeout=setTimeout(this.waitForHover,this.idleTime))},t.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var e=Date.now()-this.lastT;this.idleTime-e>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-e):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},t.prototype.isOutsideOfText=function(e){var t=e.editor,n=e.getDocumentPosition(),o=t.session.getLine(n.row);if(n.column==o.length){var i=t.renderer.pixelToScreenCoordinates(e.clientX,e.clientY),r=t.session.documentToScreenPosition(n.row,n.column);if(r.column!=i.column||r.row!=i.row)return!0}return!1},t.prototype.setDataProvider=function(e){this.$gatherData=e},t.prototype.showForRange=function(e,t,n,o){if(!(o&&o!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var i=e.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(i.theme)),this.isOpen=!0,this.range=a.fromPoints(t.start,t.end);var r=i.textToScreenCoordinates(t.start.row,t.start.column),l=i.scroller.getBoundingClientRect();r.pageX<l.left&&(r.pageX=l.left);var c=this.getElement();c.innerHTML="",c.appendChild(n),c.style.maxHeight="",c.style.display="block",this.$setPosition(e,r,!0,t),s.$fixPositionBug(c)}},t.prototype.$setPosition=function(e,t,n,o){n&&this.addMarker(o,e.session);var i=e.renderer,r=this.getElement(),s=r.offsetHeight,a=r.offsetWidth,l=t.pageY,c=t.pageX,d=window.innerHeight-l-i.lineHeight,u=this.$shouldPlaceAbove(s,l,d-10);r.style.maxHeight=(u?l:d)-10+"px",r.style.top=u?"":l+i.lineHeight+"px",r.style.bottom=u?window.innerHeight-l+"px":"",r.style.left=Math.min(c,window.innerWidth-a-10)+"px"},t.prototype.$shouldPlaceAbove=function(e,t,n){return!(t-e<0&&t<n)},t.prototype.addMarker=function(e,t){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=t,this.marker=t&&t.addMarker(e,"ace_highlight-marker","text")},t.prototype.hide=function(e){e&&this.$fromKeyboard&&"keydown"==e.type&&"Escape"==e.code||(e||document.activeElement!=this.getElement())&&(e&&e.target&&("keydown"!=e.type||e.ctrlKey||e.metaKey)&&this.$element.contains(e.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this))))},t.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},t.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},t.prototype.onMouseOut=function(e){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&e.relatedTarget&&!this.getElement().contains(e.relatedTarget)&&(e&&e.currentTarget.contains(e.relatedTarget)||e.relatedTarget.classList.contains("ace_content")||this.hide())},t}(d);t.HoverTooltip=h}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("../lib/dom"),a=e("./mouse_event").MouseEvent,l=e("../tooltip").HoverTooltip,c=e("../config").nls,d=e("../range").Range;t.GutterHandler=function(e){var t=e.editor,n=t.renderer.$gutterLayer;e.$tooltip=new u(t),e.$tooltip.addToEditor(t),e.$tooltip.setDataProvider(function(t,n){var o=t.getDocumentPosition().row;e.$tooltip.showTooltip(o)}),e.editor.setDefaultHandler("guttermousedown",function(o){if(t.isFocused()&&0==o.getButton()&&"foldWidgets"!=n.getRegion(o)){var i=o.getDocumentPosition().row,r=t.session.selection;if(o.getShiftKey())r.selectTo(i,0);else{if(2==o.domEvent.detail)return t.selectAll(),o.preventDefault();e.$clickSelection=t.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(o),o.preventDefault()}})};var u=function(e){function t(n){var o=e.call(this,n.container)||this;o.id="gt"+ ++t.$uid,o.editor=n,o.visibleTooltipRow;var i=o.getElement();return i.setAttribute("role","tooltip"),i.setAttribute("id",o.id),i.style.pointerEvents="auto",o.idleTime=50,o.onDomMouseMove=o.onDomMouseMove.bind(o),o.onDomMouseOut=o.onDomMouseOut.bind(o),o.setClassName("ace_gutter-tooltip"),o}return i(t,e),t.prototype.onDomMouseMove=function(e){var t=new a(e,this.editor);this.onMouseMove(t,this.editor)},t.prototype.onDomMouseOut=function(e){var t=new a(e,this.editor);this.onMouseOut(t)},t.prototype.addToEditor=function(t){var n=t.renderer.$gutter;n.addEventListener("mousemove",this.onDomMouseMove),n.addEventListener("mouseout",this.onDomMouseOut),e.prototype.addToEditor.call(this,t)},t.prototype.removeFromEditor=function(t){var n=t.renderer.$gutter;n.removeEventListener("mousemove",this.onDomMouseMove),n.removeEventListener("mouseout",this.onDomMouseOut),e.prototype.removeFromEditor.call(this,t)},t.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),e.prototype.destroy.call(this)},Object.defineProperty(t,"annotationLabels",{get:function(){return{error:{singular:c("gutter-tooltip.aria-label.error.singular","error"),plural:c("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:c("gutter-tooltip.aria-label.security.singular","security finding"),plural:c("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:c("gutter-tooltip.aria-label.warning.singular","warning"),plural:c("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:c("gutter-tooltip.aria-label.info.singular","information message"),plural:c("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:c("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:c("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(e){var n,o,i=this.editor.renderer.$gutterLayer,r=i.$annotations[e];o=r?{displayText:Array.from(r.displayText),type:Array.from(r.type)}:{displayText:[],type:[]};var a=i.session.getFoldLine(e);if(a&&i.$showFoldedAnnotations){for(var l,c={error:[],security:[],warning:[],info:[],hint:[]},u={error:1,security:2,warning:3,info:4,hint:5},h=e+1;h<=a.end.row;h++)if(i.$annotations[h])for(var p=0;p<i.$annotations[h].text.length;p++){var g=i.$annotations[h].type[p];c[g].push(i.$annotations[h].text[p]),(!l||u[g]<u[l])&&(l=g)}if(["error","security","warning"].includes(l)){var m="".concat(t.annotationsToSummaryString(c)," in folded code.");o.displayText.push(m),o.type.push(l+"_fold")}}if(0===o.displayText.length)return this.hide();var f={error:[],security:[],warning:[],info:[],hint:[]},b=i.$useSvgGutterIcons?"ace_icon_svg":"ace_icon";for(h=0;h<o.displayText.length;h++){var v=s.createElement("span"),y=s.createElement("span");(n=y.classList).add.apply(n,["ace_".concat(o.type[h]),b]),y.setAttribute("aria-label","".concat(t.annotationLabels[o.type[h].replace("_fold","")].singular)),y.setAttribute("role","img"),y.appendChild(s.createTextNode(" ")),v.appendChild(y),v.appendChild(s.createTextNode(o.displayText[h])),v.appendChild(s.createElement("br")),f[o.type[h].replace("_fold","")].push(v)}var k=s.createElement("span");f.error.forEach(function(e){return k.appendChild(e)}),f.security.forEach(function(e){return k.appendChild(e)}),f.warning.forEach(function(e){return k.appendChild(e)}),f.info.forEach(function(e){return k.appendChild(e)}),f.hint.forEach(function(e){return k.appendChild(e)}),k.setAttribute("aria-live","polite");var x=this.$findLinkedAnnotationNode(e);x&&x.setAttribute("aria-describedby",this.id);var w=d.fromPoints({row:e,column:0},{row:e,column:0});this.showForRange(this.editor,w,k),this.visibleTooltipRow=e,this.editor._signal("showGutterTooltip",this)},t.prototype.$setPosition=function(t,n,o,i){var r=this.$findCellByRow(i.start.row);if(r){var s=r&&r.element,a=s&&s.querySelector(".ace_gutter_annotation");if(a){var l=a.getBoundingClientRect();if(l){var c={pageX:l.right,pageY:l.top};return e.prototype.$setPosition.call(this,t,c,!1,i)}}}},t.prototype.$shouldPlaceAbove=function(e,t,n){return n<e},t.prototype.$findLinkedAnnotationNode=function(e){var t=this.$findCellByRow(e);if(t){var n=t.element;if(n.childNodes.length>2)return n.childNodes[2]}},t.prototype.$findCellByRow=function(e){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(t){return t.row===e})},t.prototype.hide=function(t){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),null!=this.visibleTooltipRow){var n=this.$findLinkedAnnotationNode(this.visibleTooltipRow);n&&n.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),e.prototype.hide.call(this,t)}},t.annotationsToSummaryString=function(e){var n,o,i=[];try{for(var s=r(["error","security","warning","info","hint"]),a=s.next();!a.done;a=s.next()){var l=a.value;if(e[l].length){var c=1===e[l].length?t.annotationLabels[l].singular:t.annotationLabels[l].plural;i.push("".concat(e[l].length," ").concat(c))}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return i.join(", ")},t.prototype.isOutsideOfText=function(e){var t=e.editor.renderer.$gutter.getBoundingClientRect();return!(e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom)},t}(l);u.$uid=0,t.GutterTooltip=u}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var o=e("../lib/dom"),i=e("../lib/event"),r=e("../lib/useragent");function s(e){var t=e.editor,n=o.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(t){e[t]=this[t]},this),t.on("mousedown",this.onMouseDown.bind(e));var s,l,c,d,u,h,p,g,m,f,b,v=t.container,y=0;function k(){var e=h;(function(e,n){var o=Date.now(),i=!n||e.row!=n.row,r=!n||e.column!=n.column;!f||i||r?(t.moveCursorToPosition(e),f=o,b={x:l,y:c}):a(b.x,b.y,l,c)>5?f=null:o-f>=200&&(t.renderer.scrollCursorIntoView(),f=null)})(h=t.renderer.screenToTextCoordinates(l,c),e),function(e,n){var o=Date.now(),i=t.renderer.layerConfig.lineHeight,r=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),a={x:{left:l-s.left,right:s.right-l},y:{top:c-s.top,bottom:s.bottom-c}},d=Math.min(a.x.left,a.x.right),u=Math.min(a.y.top,a.y.bottom),h={row:e.row,column:e.column};d/r<=2&&(h.column+=a.x.left<a.x.right?-3:2),u/i<=1&&(h.row+=a.y.top<a.y.bottom?-1:1);var p=e.row!=h.row,g=e.column!=h.column,f=!n||e.row!=n.row;p||g&&!f?m?o-m>=200&&t.renderer.scrollCursorIntoView(h):m=o:m=null}(h,e)}function x(){u=t.selection.toOrientedRange(),s=t.session.addMarker(u,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(d),k(),d=setInterval(k,20),y=0,i.addListener(document,"mousemove",C)}function w(){clearInterval(d),t.session.removeMarker(s),s=null,t.selection.fromOrientedRange(u),t.isFocused()&&!g&&t.$resetCursorStyle(),u=null,h=null,y=0,m=null,f=null,i.removeListener(document,"mousemove",C)}this.onDragStart=function(e){if(this.cancelDrag||!v.draggable){var o=this;return setTimeout(function(){o.startSelect(),o.captureMouse(e)},0),e.preventDefault()}u=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),i.setDragImage&&i.setDragImage(n,0,0),setTimeout(function(){t.container.removeChild(n)}),i.clearData(),i.setData("Text",t.session.getTextRange()),g=!0,this.setState("drag")},this.onDragEnd=function(e){if(v.draggable=!1,g=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;p||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,c=e.clientY,s||x(),y++,e.dataTransfer.dropEffect=p=E(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return l=e.clientX,c=e.clientY,s||(x(),y++),null!==_&&(_=null),e.dataTransfer.dropEffect=p=E(e),i.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&s)return w(),p=null,i.preventDefault(e)},this.onDrop=function(e){if(h){var n=e.dataTransfer;if(g)switch(p){case"move":u=u.contains(h.row,h.column)?{start:h,end:h}:t.moveText(u,h);break;case"copy":u=t.moveText(u,h,!0)}else{var o=n.getData("Text");u={start:h,end:t.session.insert(h,o)},t.focus(),p=null}return w(),i.preventDefault(e)}},i.addListener(v,"dragstart",this.onDragStart.bind(e),t),i.addListener(v,"dragend",this.onDragEnd.bind(e),t),i.addListener(v,"dragenter",this.onDragEnter.bind(e),t),i.addListener(v,"dragover",this.onDragOver.bind(e),t),i.addListener(v,"dragleave",this.onDragLeave.bind(e),t),i.addListener(v,"drop",this.onDrop.bind(e),t);var _=null;function C(){null==_&&(_=setTimeout(function(){null!=_&&s&&w()},20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function E(e){var t=["copy","copymove","all","uninitialized"],n=r.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return n&&t.indexOf(o)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(o)>=0?i="move":t.indexOf(o)>=0&&(i="copy"),i}}function a(e,t,n,o){return Math.sqrt(Math.pow(n-e,2)+Math.pow(o-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=r.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;r.isIE&&"dragReady"==this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop(),"dragWait"===this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),o=e.getButton();if(1===(e.domEvent.detail||1)&&0===o&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=e.domEvent.target||e.domEvent.srcElement;"unselectable"in i&&(i.unselectable="on"),t.getDragDelay()?(r.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype),t.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,n){"use strict";var o=e("./mouse_event").MouseEvent,i=e("../lib/event"),r=e("../lib/dom");t.addTouchListeners=function(e,t){var n,s,a,l,c,d,u,h,p,g="scroll",m=0,f=0,b=0,v=0;function y(){if(t.getOption("enableMobileMenu")){p||(a=window.navigator&&window.navigator.clipboard,l=!1,c=function(e){return t.commands.canExecute(e,t)},d=function(e){var n,o,i=e.target.getAttribute("action");if("more"==i||!l)return l=!l,n=t.getCopyText(),o=t.session.getUndoManager().hasUndo(),void p.replaceChild(r.buildDom(l?["span",!n&&c("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],n&&c("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],n&&c("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],a&&c("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],o&&c("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],c("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],c("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),p.firstChild);"paste"==i?a.readText().then(function(e){t.execCommand(i,e)}):i&&("cut"!=i&&"copy"!=i||(a?a.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(i)),p.firstChild.style.display="none",l=!1,"openCommandPalette"!=i&&t.focus()},p=r.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){g="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),d(e)},onclick:d},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container));var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),o=t.renderer.textToScreenCoordinates(0,0).pageX,i=t.renderer.scrollLeft,s=t.container.getBoundingClientRect();p.style.top=n.pageY-s.top-3+"px",n.pageX-s.left<s.width-70?(p.style.left="",p.style.right="10px"):(p.style.right="",p.style.left=o+i-s.left+"px"),p.style.display="",p.firstChild.style.display="none",t.on("input",k)}else p&&k();var a,l,c,d}function k(e){p&&(p.style.display="none"),t.off("input",k)}function x(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(u.row,u.column);!e.isEmpty()&&n||(t.selection.moveToPosition(u),t.selection.selectWord()),g="wait",y()}i.addListener(e,"contextmenu",function(e){h&&t.textInput.getElement().focus()},t),i.addListener(e,"touchstart",function(e){var i=e.touches;if(c||i.length>1)return clearTimeout(c),c=null,a=-1,void(g="zoom");h=t.$mouseHandler.isMousePressed=!0;var r=t.renderer.layerConfig.lineHeight,d=t.renderer.layerConfig.lineHeight,p=e.timeStamp;l=p;var y=i[0],k=y.clientX,w=y.clientY;Math.abs(n-k)+Math.abs(s-w)>r&&(a=-1),n=e.clientX=k,s=e.clientY=w,b=v=0;var _=new o(e,t);if(u=_.getDocumentPosition(),p-a<500&&1==i.length&&!m)f++,e.preventDefault(),e.button=0,function(){c=null,clearTimeout(c),t.selection.moveToPosition(u);var e=f>=2?t.selection.getLineRange(u.row):t.session.getBracketRange(u);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),g="wait"}();else{f=0;var C=t.selection.cursor,S=t.selection.isEmpty()?C:t.selection.anchor,E=t.renderer.$cursorLayer.getPixelPosition(C,!0),M=t.renderer.$cursorLayer.getPixelPosition(S,!0),$=t.renderer.scroller.getBoundingClientRect(),A=t.renderer.layerConfig.offset,T=t.renderer.scrollLeft,R=function(e,t){return(e/=d)*e+(t=t/r-.75)*t};if(e.clientX<$.left)return void(g="zoom");var L=R(e.clientX-$.left-E.left+T,e.clientY-$.top-E.top+A),O=R(e.clientX-$.left-M.left+T,e.clientY-$.top-M.top+A);L<3.5&&O<3.5&&(g=L>O?"cursor":"anchor"),g=O<3.5?"anchor":L<3.5?"cursor":"scroll",c=setTimeout(x,450)}a=p},t),i.addListener(e,"touchend",function(e){h=t.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),"zoom"==g?(g="",m=0):c?(t.selection.moveToPosition(u),m=0,y()):"scroll"==g?(m+=60,d=setInterval(function(){m--<=0&&(clearInterval(d),d=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),m<20&&(b*=.9),m<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(m=0)},10),k()):y(),clearTimeout(c),c=null},t),i.addListener(e,"touchmove",function(e){c&&(clearTimeout(c),c=null);var i=e.touches;if(!(i.length>1||"zoom"==g)){var r=i[0],a=n-r.clientX,d=s-r.clientY;if("wait"==g){if(!(a*a+d*d>4))return e.preventDefault();g="cursor"}n=r.clientX,s=r.clientY,e.clientX=r.clientX,e.clientY=r.clientY;var u=e.timeStamp,h=u-l;if(l=u,"scroll"==g){var p=new o(e,t);p.speed=1,p.wheelX=a,p.wheelY=d,10*Math.abs(a)<Math.abs(d)&&(a=0),10*Math.abs(d)<Math.abs(a)&&(d=0),0!=h&&(b=a/h,v=d/h),t._emit("mousewheel",p),p.propagationStopped||(b=v=0)}else{var m=new o(e,t).getDocumentPosition();"cursor"==g?t.selection.moveCursorToPosition(m):"anchor"==g&&t.selection.setSelectionAnchor(m.row,m.column),t.renderer.scrollCursorIntoView(m),e.preventDefault()}}},t)}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,t,n){"use strict";var o=e("../lib/event"),i=e("../lib/useragent"),r=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,d=e("../config"),u=function(){function e(e){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var t=this;this.editor=e,new r(this),new s(this),new l(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus(),setTimeout(function(){e.isFocused()||e.focus()})},a=e.renderer.getMouseEventTarget();o.addListener(a,"click",this.onMouseEvent.bind(this,"click"),e),o.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),o.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),o.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),c(e.container,e);var d=e.renderer.$gutter;o.addListener(d,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),o.addListener(d,"click",this.onMouseEvent.bind(this,"gutterclick"),e),o.addListener(d,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),o.addListener(d,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),o.addListener(a,"mousedown",n,e),o.addListener(d,"mousedown",n,e),i.isIE&&e.renderer.scrollBarV&&(o.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),o.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var o=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),r=e.renderer;!i.isEmpty()&&i.insideStart(o.row,o.column)?r.setCursorStyle("default"):r.setCursorStyle("")}},e)}return e.prototype.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new a(t,this.editor))},e.prototype.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},e.prototype.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},e.prototype.setState=function(e){this.state=e},e.prototype.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,r=this.editor.renderer;r.$isMousePressed=!0;var s=this,l=!0,c=function(e){if(e){if(i.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new a(e,s.editor),s.$mouseMoved=!0}},d=function(e){n.off("beforeEndOperation",p),l=!1,n.session&&u(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",s.isMousePressed=r.$isMousePressed=!1,r.$keepTextAreaAtCursor&&r.$moveTextAreaToCursor(),s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e),n.endOperation()},u=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1},h=function(){l&&(u(),o.nextFrame(h))};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){d(e)});var p=function(e){s.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(s[s.state+"End"]&&s[s.state+"End"](),s.state="",s.releaseMouse())};n.on("beforeEndOperation",p),n.startOperation({command:{name:"mouse"}}),s.$onCaptureMouseMove=c,s.releaseMouse=o.capture(this.editor.container,c,d),h()},e.prototype.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&o.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},e.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},e}();u.prototype.releaseMouse=null,d.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),t.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var o=e("../lib/dom");t.FoldHandler=function(e){e.on("click",function(t){var n=t.getDocumentPosition(),i=e.session,r=i.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?i.removeFold(r):i.expandFold(r),t.stop());var s=t.domEvent&&t.domEvent.target;s&&o.hasCssClass(s,"ace_inline_button")&&o.hasCssClass(s,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),e.renderer.scrollCursorIntoView())}),e.on("gutterclick",function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,o=e.session;o.foldWidgets&&o.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}}),e.on("gutterdblclick",function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,o=e.session,i=o.getParentFoldRangeData(n,!0),r=i.range||i.firstRange;if(r){n=r.start.row;var s=o.getFoldAt(n,o.getLine(n).length,1);s?o.removeFold(s):(o.addFold("...",r),e.renderer.scrollCursorIntoView({row:r.start.row,column:0}))}t.stop()}})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,n){"use strict";var o=e("../lib/keys"),i=e("../lib/event"),r=function(){function e(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}return e.prototype.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},e.prototype.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},e.prototype.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},e.prototype.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},e.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},e.prototype.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map(function(n){return n.getStatusText&&n.getStatusText(t,e)||""}).filter(Boolean).join(" ")},e.prototype.$callKeyboardHandlers=function(e,t,n,o){for(var r,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((r=this.$handlers[l].handleKeyboard(this.$data,e,t,n,o))&&r.command&&((s="null"==r.command||a.exec(r.command,this.$editor,r.args,o))&&o&&-1!=e&&1!=r.passEvent&&1!=r.command.passEvent&&i.stopEvent(o),s)););return s||-1!=e||(r={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),s},e.prototype.onCommandKey=function(e,t,n){var i=o.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},e.prototype.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)},e}();t.KeyBinding=r}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,t,n){"use strict";var o=0,i=0,r=!1,s=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d=11,u=18,h=[u,u,u,u,u,u,u,u,u,6,5,6,8,5,u,u,u,u,u,u,u,u,u,u,u,u,u,u,5,5,5,6,8,4,4,d,d,d,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,u,u,u,u,u,u,5,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,9,4,d,d,d,d,4,4,4,4,0,4,4,u,4,4,d,d,2,2,4,0,4,4,4,2,0,4,4,4,4,4],p=[8,8,8,8,8,8,8,8,8,8,8,u,u,u,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,d,d,d,d,d,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function g(e,t,n){if(!(i<e))if(1!=e||1!=o||s)for(var r,a,l,c,d=n.length,u=0;u<d;){if(t[u]>=e){for(r=u+1;r<d&&t[r]>=e;)r++;for(a=u,l=r-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;u=r}u++}else n.reverse()}function m(e,t,n,i){var l,c,h,p,g=t[i];switch(g){case 0:case 1:r=!1;case 4:case 3:return g;case 2:return r?3:2;case 7:return r=!0,1;case 8:return 4;case 9:return i<1||i+1>=t.length||2!=(l=n[i-1])&&3!=l||2!=(c=t[i+1])&&3!=c?4:(r&&(c=3),c==l?c:4);case 10:return 2==(l=i>0?n[i-1]:5)&&i+1<t.length&&2==t[i+1]?2:4;case d:if(i>0&&2==n[i-1])return 2;if(r)return 4;for(p=i+1,h=t.length;p<h&&t[p]==d;)p++;return p<h&&2==t[p]?2:4;case 12:for(h=t.length,p=i+1;p<h&&12==t[p];)p++;if(p<h){var m=e[i],f=m>=1425&&m<=2303||64286==m;if(l=t[p],f&&(1==l||7==l))return 1}return i<1||5==(l=t[i-1])?4:n[i-1];case 5:return r=!1,s=!0,o;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:r=!1;case u:return 4}}function f(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:h[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?d:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?p[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,d){if(e.length<2)return{};var h=e.split(""),p=new Array(h.length),b=new Array(h.length),v=[];o=d?1:0,function(e,t,n,d){var u=o?c:l,h=null,p=null,g=null,b=0,v=null,y=-1,k=null,x=null,w=[];if(!d)for(k=0,d=[];k<n;k++)d[k]=f(e[k]);for(i=o,r=!1,s=!1,a=!1,x=0;x<n;x++){if(h=b,w[x]=p=m(e,d,w,x),v=240&(b=u[h][p]),b&=15,t[x]=g=u[b][5],v>0)if(16==v){for(k=y;k<x;k++)t[k]=1;y=-1}else y=-1;if(u[b][6])-1==y&&(y=x);else if(y>-1){for(k=y;k<x;k++)t[k]=g;y=-1}5==d[x]&&(t[x]=0),i|=g}if(a)for(k=0;k<n;k++)if(6==d[k]){t[k]=o;for(var _=k-1;_>=0&&8==d[_];_--)t[_]=o}}(h,v,h.length,n);for(var y=0;y<p.length;p[y]=y,y++);for(g(2,v,p),g(1,v,p),y=0;y<p.length-1;y++)3===n[y]?v[y]=t.AN:1===v[y]&&(n[y]>7&&n[y]<13||4===n[y]||n[y]===u)?v[y]=t.ON_R:y>0&&"ل"===h[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(h[y])&&(v[y-1]=v[y]=t.R_H,y++);for(h[h.length-1]===t.DOT&&(v[h.length-1]=t.B),""===h[0]&&(v[0]=t.RLE),y=0;y<p.length;y++)b[y]=v[p[y]];return{logicalFromVisual:p,bidiLevels:b}},t.hasBidiCharacters=function(e,t){for(var n=!1,o=0;o<e.length;o++)t[o]=f(e.charAt(o)),n||1!=t[o]&&7!=t[o]&&3!=t[o]||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,t,n){"use strict";var o=e("./lib/bidiutil"),i=e("./lib/lang"),r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(){function e(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=r.test(e.getValue())}return e.prototype.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},e.prototype.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&r.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},e.prototype.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},e.prototype.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,o=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===o;)o=n,e++;else e=this.currentRow;return e},e.prototype.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var r=this.session.$wrapData[e];r&&(void 0===t&&(t=this.getSplitIndex()),t>0&&r.length?(this.wrapIndent=r.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=t<r.length?this.line.substring(r[t-1],r[t]):this.line.substring(r[r.length-1])):this.line=this.line.substring(0,r[t]),t==r.length&&(this.line+=this.showInvisibles?n:o.DOT))}else this.line+=this.showInvisibles?n:o.DOT;var s,a=this.session,l=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||a.isFullWidth(e.charCodeAt(0))?(s="\t"===e?a.getScreenTabSize(t+l):2,l+=s-1,i.stringRepeat(o.DOT,s)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},e.prototype.updateBidiMap=function(){var e=[];o.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},e.prototype.markAsDirty=function(){this.currentRow=null},e.prototype.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=t,this.charWidths[o.R]=this.charWidths[o.AN]=n,this.charWidths[o.R_H]=.45*n,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null}},e.prototype.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},e.prototype.setEolChar=function(e){this.EOL=e},e.prototype.setContentWidth=function(e){this.contentWidth=e},e.prototype.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},e.prototype.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),o=e.selection.getSelectionAnchor().row;o<=n.row;o++)t||e.session.getLine(o).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(o).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:o},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(o,0,1)},e.prototype.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,i=o.getVisualFromLogicalIdx(n,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r[i]%2!=0&&i++;for(var a=0;a<i;a++)s+=this.charWidths[r[a]];return!this.session.getOverwrite()&&e>t&&r[i]%2==0&&(s+=this.charWidths[r[i]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},e.prototype.getSelections=function(e,t){var n,o=this.bidiMap,i=o.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,d=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,p=0;p<i.length;p++)h=o.logicalFromVisual[p],n=i[p],(c=h>=a&&h<l)&&!d?u=s:!c&&d&&r.push({left:u,width:s-u}),s+=this.charWidths[n],d=c;if(c&&p===i.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var g=0;g<r.length;g++)r[g].left+=this.rtlLineOffset;return r},e.prototype.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),o=0,i=this.bidiMap.bidiLevels,r=this.charWidths[i[o]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);e>n+r/2;){if(n+=r,o===i.length-1){r=0;break}r=this.charWidths[i[++o]]}return o>0&&i[o-1]%2!=0&&i[o]%2==0?(e<n&&o--,t=this.bidiMap.logicalFromVisual[o]):o>0&&i[o-1]%2==0&&i[o]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===i.length-1&&0===r&&i[o-1]%2==0||!this.isRtlDir&&0===o&&i[o]%2!=0?t=1+this.bidiMap.logicalFromVisual[o]:(o>0&&i[o-1]%2!=0&&0!==r&&o--,t=this.bidiMap.logicalFromVisual[o]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent},e}();t.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,n){"use strict";var o=e("./lib/oop"),i=e("./lib/lang"),r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(){function e(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})}return e.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},e.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},e.prototype.getCursor=function(){return this.lead.getPosition()},e.prototype.setAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},e.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},e.prototype.getSelectionLead=function(){return this.lead.getPosition()},e.prototype.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},e.prototype.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},e.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},e.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},e.prototype.setRange=function(e,t){var n=t?e.end:e.start,o=t?e.start:e.end;this.$setSelection(n.row,n.column,o.row,o.column)},e.prototype.$setSelection=function(e,t,n,o){if(!this.$silent){var i=this.$isEmpty,r=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,o),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||r)&&this._emit("changeSelection")}},e.prototype.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},e.prototype.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},e.prototype.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},e.prototype.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},e.prototype.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},e.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},e.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},e.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},e.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},e.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},e.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},e.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},e.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},e.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},e.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},e.prototype.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},e.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},e.prototype.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},e.prototype.getLineRange=function(e,t){var n,o="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(o);return i?(o=i.start.row,n=i.end.row):n=o,!0===t?new s(o,0,n,this.session.getLine(n).length):new s(o,0,n+1,0)},e.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},e.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},e.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},e.prototype.wouldMoveIntoSoftTab=function(e,t,n){var o=e.column,i=e.column+t;return n<0&&(o=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(o,i).split(" ").length-1==t},e.prototype.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},e.prototype.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead,this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},e.prototype.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),o=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,o.row,o.column).match(/^\s*/);i[0].length==t||this.session.$useEmacsStyleLineStart||(o.column+=i[0].length),this.moveCursorToPosition(o)},e.prototype.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var o=n.search(/\s+$/);o>0&&(t.column=o)}}this.moveCursorTo(t.row,t.column)},e.prototype.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},e.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},e.prototype.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),o=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(o)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(o)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},e.prototype.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var o=this.session.getFoldStringAt(t,n,-1);null==o&&(o=this.doc.getLine(t).substring(0,n));var r=i.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(r)&&(n-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(r)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},e.prototype.$shortWordEndIndex=function(e){var t,n=0,o=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&o.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,o.test(t)){if(n>2){n--;break}for(;(t=e[n])&&o.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},e.prototype.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),o=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var r=this.doc.getLength();do{e++,o=this.doc.getLine(e)}while(e<r&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),t=0}var s=this.$shortWordEndIndex(o);this.moveCursorTo(e,t+s)},e.prototype.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var o=this.session.getLine(t).substring(0,n);if(0===n){do{t--,o=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(o));n=o.length,/\s+$/.test(o)||(o="")}var r=i.stringReverse(o),s=this.$shortWordEndIndex(r);return this.moveCursorTo(t,n-s)},e.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},e.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},e.prototype.moveCursorBy=function(e,t){var n,o=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(o.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(o.column),o.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=o.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?o.column=this.$desiredColumn:this.$desiredColumn=o.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var r=this.session.screenToDocumentPosition(o.row+e,o.column,n);0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},e.prototype.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},e.prototype.moveCursorTo=function(e,t,n){var o=this.session.getFoldAt(e,t,1);o&&(e=o.start.row,t=o.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},e.prototype.moveCursorToScreen=function(e,t,n){var o=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(o.row,o.column,n)},e.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},e.prototype.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},e.prototype.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},e.prototype.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(e){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},e.prototype.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},e.prototype.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},e.prototype.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0},e}();a.prototype.setSelectionAnchor=a.prototype.setAnchor,a.prototype.getSelectionAnchor=a.prototype.getAnchor,a.prototype.setSelectionRange=a.prototype.setRange,o.implement(a.prototype,r),t.Selection=a}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,t,n){"use strict";var o=e("./lib/report_error").reportError,i=2e3,r=function(){function e(e){for(var t in this.splitRegex,this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],o=[],i=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&-1===s.indexOf("i")&&(s+="i"),c.unicode&&-1===s.indexOf("u")&&(s+="u"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),r[i]=l,i+=u,o.push(d),c.onMatch||(c.onMatch=null)}}o.length||(r[0]=0,o.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)},this),this.regExps[t]=new RegExp("("+o.join(")|(")+")|($)",s)}}return e.prototype.$setMaxTokenCount=function(e){i=0|e},e.prototype.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var o=[],i=0,r=n.length;i<r;i++)t[i]&&(o[o.length]={type:n[i],value:t[i]});return o},e.prototype.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],o=this.tokenArray,i=0,r=o.length;i<r;i++)t[i+1]&&(n[n.length]={type:o[i],value:t[i+1]});return n},e.prototype.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(e,t){return t?"(?:":e})},e.prototype.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,o=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,r,s,a,l){return o?o="]"!=a:a?o=!0:s?(n==i.stack&&(i.end=l+1,i.stack=-1),n--):r&&(n++,1!=r.length&&(i.stack=n,i.start=l)),e}),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},e.prototype.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var o=t||"start",r=this.states[o];r||(o="start",r=this.states[o]);var s=this.matchMappings[o],a=this.regExps[o];a.lastIndex=0;for(var l,c=[],d=0,u=0,h={type:null,value:""};l=a.exec(e);){var p=s.defaultToken,g=null,m=l[0],f=a.lastIndex;if(f-m.length>d){var b=e.substring(d,f-m.length);h.type==p?h.value+=b:(h.type&&c.push(h),h={type:p,value:b})}for(var v=0;v<l.length-2;v++)if(void 0!==l[v+1]){p=(g=r[s[v]]).onMatch?g.onMatch(m,o,n,e):g.token,g.next&&(o="string"==typeof g.next?g.next:g.next(o,n),(r=this.states[o])||(this.reportError("state doesn't exist",o),o="start",r=this.states[o]),s=this.matchMappings[o],d=f,(a=this.regExps[o]).lastIndex=f),g.consumeLineEnd&&(d=f);break}if(m)if("string"==typeof p)g&&!1===g.merge||h.type!==p?(h.type&&c.push(h),h={type:p,value:m}):h.value+=m;else if(p)for(h.type&&c.push(h),h={type:null,value:""},v=0;v<p.length;v++)c.push(p[v]);if(d==e.length)break;if(d=f,u++>i){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});d<e.length;)h.type&&c.push(h),h={value:e.substring(d,d+=500),type:"overflow"};o="start",n=[];break}}return h.type&&c.push(h),n.length>1&&n[0]!==o&&n.unshift("#tmp",o),{tokens:c,state:n.length?n:o}},e}();r.prototype.reportError=o,t.Tokenizer=r}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,t,n){"use strict";var o,i=e("../lib/deep_copy").deepCopy;(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var o=e[n],i=0;i<o.length;i++){var r=o[i];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=o}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,o,r){var s="function"==typeof e?(new e).getRules():e;if(o)for(var a=0;a<o.length;a++)o[a]=t+o[a];else for(var l in o=[],s)o.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype[r?"push":"unshift"];for(a=0;a<o.length;a++)c.apply(this.$rules[o[a]],i(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,o=this.$rules;Object.keys(o).forEach(function i(r){var s=o[r];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null;Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var d=l.next||l.push;if(d&&Array.isArray(d)){var u=l.stateName;u||("string"!=typeof(u=l.token)&&(u=u[0]||""),o[u]&&(u+=n++)),o[u]=d,l.next=u,i(u)}else"pop"==d&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)o[h]?o[h].push&&o[h].push.apply(o[h],l.rules[h]):o[h]=l.rules[h];var p="string"==typeof l?l:l.include;if(p&&("$self"===p&&(p="start"),c=Array.isArray(p)?p.map(function(e){return o[e]}):o[p]),c){var g=[a,1].concat(c);l.noEscape&&(g=g.filter(function(e){return!e.next})),s.splice.apply(s,g),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}},this)},this.createKeywordMapper=function(e,t,n,o){var i=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach(function(t){for(var r=e[t].split(o||"|"),s=r.length;s--;){var a=r[s];this.$keywordList.push(a),n&&(a=a.toLowerCase()),i[a]=t}},this),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call((o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}).prototype),t.TextHighlightRules=o}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t,n){"use strict";var o;(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call((o=function(){this.$behaviours={}}).prototype),t.Behaviour=o}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=e("./range").Range,i=function(){function e(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var o=e.getTokenAt(t,n);this.$tokenIndex=o?o.index:-1}return e.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},e.prototype.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentTokenRow=function(){return this.$row},e.prototype.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},e.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},e.prototype.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new o(this.$row,t,this.$row,t+e.value.length)},e}();t.TokenIterator=i}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,n){"use strict";var o,i,r=e("../../lib/oop"),s=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,l=e("../../lib/lang"),c=["text","paren.rparen","rparen","paren","punctuation.operator"],d=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u={},h={'"':'"',"'":"'"},p=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return o=u[t];o=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(e,t,n,o){var i=e.end.row-e.start.row;return{text:n+t+o,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}};(i=function(e){e=e||{},this.add("braces","insertion",function(t,n,r,s,a){var c=r.getCursorPosition(),d=s.doc.getLine(c.row);if("{"==a){p(r);var u=r.getSelectionRange(),h=s.doc.getTextRange(u),m=s.getTokenAt(c.row,c.column);if(""!==h&&"{"!==h&&r.getWrapBehavioursEnabled())return g(u,h,"{","}");if(m&&/(?:string)\.quasi|\.xml/.test(m.type)){if([/tag\-(?:open|name)/,/attribute\-name/].some(function(e){return e.test(m.type)})||/(string)\.quasi/.test(m.type)&&"$"!==m.value[c.column-m.start-1])return;return i.recordAutoInsert(r,s,"}"),{text:"{}",selection:[1,1]}}if(i.isSaneInsertion(r,s))return/[\]\}\)]/.test(d[c.column])||r.inMultiSelectMode||e.braces?(i.recordAutoInsert(r,s,"}"),{text:"{}",selection:[1,1]}):(i.recordMaybeInsert(r,s,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(p(r),"}"==d.substring(c.column,c.column+1)&&null!==s.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&i.isAutoInsertedClosing(c,d,a))return i.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){p(r);var f="";if(i.isMaybeInsertedClosing(c,d)&&(f=l.stringRepeat("}",o.maybeInsertedBrackets),i.clearMaybeInsertedClosing()),"}"===d.substring(c.column,c.column+1)){var b=s.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!b)return null;var v=this.$getIndent(s.getLine(b.row))}else{if(!f)return void i.clearMaybeInsertedClosing();v=this.$getIndent(d)}var y=v+s.getTabString();return{text:"\n"+y+"\n"+v+f,selection:[1,y.length,1,y.length]}}i.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&"{"==s){if(p(n),"}"==i.doc.getLine(r.start.row).substring(r.end.column,r.end.column+1))return r.end.column++,r;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,o,r){if("("==r){p(n);var s=n.getSelectionRange(),a=o.doc.getTextRange(s);if(""!==a&&n.getWrapBehavioursEnabled())return g(s,a,"(",")");if(i.isSaneInsertion(n,o))return i.recordAutoInsert(n,o,")"),{text:"()",selection:[1,1]}}else if(")"==r){p(n);var l=n.getCursorPosition(),c=o.doc.getLine(l.row);if(")"==c.substring(l.column,l.column+1)&&null!==o.$findOpeningBracket(")",{column:l.column+1,row:l.row})&&i.isAutoInsertedClosing(l,c,r))return i.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,n,o,i){var r=o.doc.getTextRange(i);if(!i.isMultiLine()&&"("==r&&(p(n),")"==o.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i}),this.add("brackets","insertion",function(e,t,n,o,r){if("["==r){p(n);var s=n.getSelectionRange(),a=o.doc.getTextRange(s);if(""!==a&&n.getWrapBehavioursEnabled())return g(s,a,"[","]");if(i.isSaneInsertion(n,o))return i.recordAutoInsert(n,o,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){p(n);var l=n.getCursorPosition(),c=o.doc.getLine(l.row);if("]"==c.substring(l.column,l.column+1)&&null!==o.$findOpeningBracket("]",{column:l.column+1,row:l.row})&&i.isAutoInsertedClosing(l,c,r))return i.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,n,o,i){var r=o.doc.getTextRange(i);if(!i.isMultiLine()&&"["==r&&(p(n),"]"==o.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i}),this.add("string_dquotes","insertion",function(e,t,n,o,i){var r=o.$mode.$quotes||h;if(1==i.length&&r[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;p(n);var s=i,a=n.getSelectionRange(),l=o.doc.getTextRange(a);if(!(""===l||1==l.length&&r[l])&&n.getWrapBehavioursEnabled())return g(a,l,s,s);if(!l){var c=n.getCursorPosition(),d=o.doc.getLine(c.row),u=d.substring(c.column-1,c.column),m=d.substring(c.column,c.column+1),f=o.getTokenAt(c.row,c.column),b=o.getTokenAt(c.row,c.column+1);if("\\"==u&&f&&/escape/.test(f.type))return null;var v,y=f&&/string|escape/.test(f.type),k=!b||/string|escape/.test(b.type);if(m==s)(v=y!==k)&&/string\.end/.test(b.type)&&(v=!1);else{if(y&&!k)return null;if(y&&k)return null;var x=o.$mode.tokenRe;x.lastIndex=0;var w=x.test(u);x.lastIndex=0;var _=x.test(m),C=o.$mode.$pairQuotesAfter;if(!(C&&C[s]&&C[s].test(u))&&w||_)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var S=d[c.column-2];if(u==s&&(S==s||x.test(S)))return null;v=!0}return{text:v?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,o,i){var r=o.$mode.$quotes||h,s=o.doc.getTextRange(i);if(!i.isMultiLine()&&r.hasOwnProperty(s)&&(p(n),o.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==s))return i.end.column++,i}),!1!==e.closeDocComment&&this.add("doc comment end","insertion",function(e,t,n,o,i){if("doc-start"===e&&("\n"===i||"\r\n"===i)&&n.selection.isEmpty()){var r=n.getCursorPosition();if(0===r.column)return;for(var s=o.doc.getLine(r.row),a=o.doc.getLine(r.row+1),l=o.getTokens(r.row),c=0,d=0;d<l.length;d++){c+=l[d].value.length;var u=l[d];if(c>=r.column){if(c===r.column){if(!/\.doc/.test(u.type))return;if(/\*\//.test(u.value)){var h=l[d+1];if(!h||!/\.doc/.test(h.type))return}}var p=r.column-(c-u.value.length),g=u.value.indexOf("*/"),m=u.value.indexOf("/**",g>-1?g+2:0);if(-1!==m&&p>m&&p<m+3)return;if(-1!==g&&-1!==m&&p>=g&&p<=m||!/\.doc/.test(u.type))return;break}}var f=this.$getIndent(s);if(/\s*\*/.test(a))return/^\s*\*/.test(s)?{text:i+f+"* ",selection:[1,2+f.length,1,2+f.length]}:{text:i+f+" * ",selection:[1,3+f.length,1,3+f.length]};if(/\/\*\*/.test(s.substring(0,r.column)))return{text:i+f+" * "+i+" "+f+"*/",selection:[1,4+f.length,1,4+f.length]}}})}).isSaneInsertion=function(e,t){var n=e.getCursorPosition(),o=new a(t,n.row,n.column);if(!this.$matchTokenType(o.getCurrentToken()||"text",c)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",c))return!1}return o.stepForward(),o.getCurrentTokenRow()!==n.row||this.$matchTokenType(o.getCurrentToken()||"text",d)},i.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},i.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),r=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,r,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=i.row,o.autoInsertedLineEnd=n+r.substr(i.column),o.autoInsertedBrackets++},i.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),r=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,r)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=i.row,o.maybeInsertedLineStart=r.substr(0,i.column)+n,o.maybeInsertedLineEnd=r.substr(i.column),o.maybeInsertedBrackets++},i.isAutoInsertedClosing=function(e,t,n){return o.autoInsertedBrackets>0&&e.row===o.autoInsertedRow&&n===o.autoInsertedLineEnd[0]&&t.substr(e.column)===o.autoInsertedLineEnd},i.isMaybeInsertedClosing=function(e,t){return o.maybeInsertedBrackets>0&&e.row===o.maybeInsertedRow&&t.substr(e.column)===o.maybeInsertedLineEnd&&t.substr(0,e.column)==o.maybeInsertedLineStart},i.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},i.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},r.inherits(i,s),t.CstyleBehaviour=i}),ace.define("ace/unicode",["require","exports","module"],function(e,t,n){"use strict";for(var o=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,r=[],s=0;s<o.length;s+=2)r.push(i+=o[s]),o[s+1]&&r.push(45,i+=o[s+1]);t.wordChars=String.fromCharCode.apply(null,r)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,n){"use strict";var o,i=e("../config"),r=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("../unicode"),c=e("../lib/lang"),d=e("../token_iterator").TokenIterator,u=e("../range").Range;(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new r(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,o){var i=t.doc,r=!0,s=!0,a=1/0,l=t.getTabSize(),d=!1;if(this.lineCommentStart){Array.isArray(this.lineCommentStart)?(m=this.lineCommentStart.map(c.escapeRegExp).join("|"),p=this.lineCommentStart[0]):(m=c.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart),m=new RegExp("^(\\s*)(?:"+m+") ?"),d=t.getUseSoftTabs(),v=function(e,t){var n=e.match(m);if(n){var o=n[1].length,r=n[0].length;h(e,o,r)||" "!=n[0][r-1]||r--,i.removeInLine(t,o,r)}};var u=p+" ",h=(b=function(e,t){r&&!/\S/.test(e)||(h(e,a,a)?i.insertInLine({row:t,column:a},u):i.insertInLine({row:t,column:a},p))},y=function(e,t){return m.test(e)},function(e,t,n){for(var o=0;t--&&" "==e.charAt(t);)o++;if(o%l!=0)return!1;for(o=0;" "==e.charAt(n++);)o++;return l>2?o%l!=l-1:o%l==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,g=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+c.escapeRegExp(p)+")"),f=new RegExp("(?:"+c.escapeRegExp(g)+")\\s*$"),b=function(e,t){y(e,t)||r&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},g),i.insertInLine({row:t,column:a},p))},v=function(e,t){var n;(n=e.match(f))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&i.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(m.test(e))return!0;for(var o=t.getTokens(n),i=0;i<o.length;i++)if("comment"===o[i].type)return!0}}function k(e){for(var t=n;t<=o;t++)e(i.getLine(t),t)}var x=1/0;k(function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!y(e,t)&&(s=!1)):x>e.length&&(x=e.length)}),a==1/0&&(a=x,r=!1,s=!1),d&&a%l!=0&&(a=Math.floor(a/l)*l),k(s?v:b)},this.toggleBlockComment=function(e,t,n,o){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var r,s,a=(m=new d(t,o.row,o.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var c,h;a&&/comment/.test(a.type);){if(-1!=(f=a.value.indexOf(i.start))){var p=m.getCurrentTokenRow(),g=m.getCurrentTokenColumn()+f;c=new u(p,g,p,g+i.start.length);break}a=m.stepBackward()}var m;for(a=(m=new d(t,o.row,o.column)).getCurrentToken();a&&/comment/.test(a.type);){var f;if(-1!=(f=a.value.indexOf(i.end))){p=m.getCurrentTokenRow(),g=m.getCurrentTokenColumn()+f,h=new u(p,g,p,g+i.end.length);break}a=m.stepForward()}h&&t.remove(h),c&&(t.remove(c),r=c.start.row,s=-i.start.length)}else s=i.start.length,r=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);l.start.row==r&&(l.start.column+=s),l.end.row==r&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,r=i.$modes[o];r||(i.$modes[o]=r=new n),i.$modes[t]||(i.$modes[t]=r),this.$embeds.push(t),this.$modes[t]=r}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],a=function(e){var t,n,o;o=(t=l)[n=s[e]],t[s[e]]=function(){return this.$delegator(n,arguments,o)}},l=this;for(t=0;t<s.length;t++)a(t)},this.$delegator=function(e,t,n){var o=t[0]||"start";if("string"!=typeof o){if(Array.isArray(o[2])){var i=o[2][o[2].length-1];if(s=this.$modes[i])return s[e].apply(s,[o[1]].concat([].slice.call(t,1)))}o=o[0]||"start"}for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var s,a=o.split(this.$embeds[r]);if(!a[0]&&a[1])return t[0]=a[1],(s=this.$modes[this.$embeds[r]])[e].apply(s,t)}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,o,i){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var o in t)for(var i=t[o],r=0,s=i.length;r<s;r++)if("string"==typeof i[r].token)/keyword|support|storage/.test(i[r].token)&&n.push(i[r].regex);else if("object"==typeof i[r].token)for(var a=0,l=i[r].token.length;a<l;a++)/keyword|support|storage/.test(i[r].token[a])&&(o=i[r].regex.match(/\(.+?\)/g)[a],n.push(o.substr(1,o.length-2)));this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,o){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call((o=function(){this.HighlightRules=s}).prototype),t.Mode=o}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var o=e("./lib/dom"),i=function(){function e(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return e.prototype.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},e.prototype.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},e.prototype.$onChangeEditor=function(e){this.attach(e.editor)},e.prototype.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},e.prototype.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},e.prototype.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var o=e.data,i=o.start.row,r=o.end.row,s="add"==e.action,a=i+1;a<r;a++)n[a]&&(n[a].hidden=s);n[r]&&(s?n[i]?n[r].hidden=s:n[i]=n[r]:(n[i]==n[r]&&(n[i]=void 0),n[r].hidden=s))}},e.prototype.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,o=e.end.row-n;if(0===o);else if("remove"==e.action){var i=t.splice(n+1,o);!t[n]&&i[i.length-1]&&(t[n]=i.pop()),i.forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var r=new Array(o);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},e.prototype.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach(function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget}),t&&(this.session.lineWidgets=null)}},e.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},e.prototype.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=o.createElement("div"),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=o.createElement("div"),e.el.textContent=e.text),e.el&&(o.addCssClass(e.el,"ace_lineWidgetContainer"),e.className&&o.addCssClass(e.el,e.className),e.el.style.position="absolute",e.el.style.zIndex="5",t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex="3"),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},e.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},e.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],o=[];n;)o.push(n),n=n.$oldWidget;return o},e.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},e.prototype.measureWidgets=function(e,t){var n=this.session._changedWidgets,o=t.layerConfig;if(n&&n.length){for(var i=1/0,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/o.characterWidth));var a=s.h/o.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<i&&(i=s.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},e.prototype.renderWidgets=function(e,t){var n=t.layerConfig,o=this.session.lineWidgets;if(o){for(var i=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,o.length);i>0&&!o[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=i;s<=r;s++){var a=o[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}},e}();t.LineWidgets=i}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var o=t.start.row,i=t.start.column,r=e[o]||"";switch(t.action){case"insert":if(1===t.lines.length)e[o]=r.substring(0,i)+t.lines[0]+r.substring(i);else{var s=[o,1].concat(t.lines);e.splice.apply(e,s),e[o]=r.substring(0,i)+e[o],e[o+t.lines.length-1]+=r.substring(i)}break;case"remove":var a=t.end.column,l=t.end.row;o===l?e[o]=r.substring(0,i)+r.substring(a):e.splice(o,l-o+1,r.substring(0,i)+e[l].substring(a))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"use strict";var o=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,r=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=function(e,t,n){var o="insert"==e.action,i=(o?1:-1)*(e.end.row-e.start.row),r=(o?1:-1)*(e.end.column-e.start.column),a=e.start,l=o?a:e.end;return s(t,a,n)?{row:t.row,column:t.column}:s(l,t,!n)?{row:t.row+i,column:t.column+(t.row==l.row?r:0)}:{row:a.row,column:a.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var o;if(o=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=o.row||this.column!=o.column){var i={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:i,value:o})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();function s(e,t,n){var o=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&o}r.prototype.$insertRight=!1,o.implement(r.prototype,i),t.Anchor=r}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,n){"use strict";var o=e("./lib/oop"),i=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(){function e(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new a(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},e.prototype.getLine=function(e){return this.$lines[e]||""},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),o=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:o,action:"insert",lines:[t]},!0),this.clonePos(o)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var o=this.getLine(e);return null==t&&(t=o.length),{row:e,column:t=Math.min(Math.max(t,0),o.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),o={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:o,action:"insert",lines:t}),this.clonePos(o)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var o=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:o,end:i,action:"remove",lines:this.getLinesForRange({start:o,end:i})},!0),this.clonePos(o)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,o=t<this.getLength()-1,i=n?e-1:e,r=n?this.getLine(i).length:0,a=o?t+1:t,l=o?0:this.getLine(a).length,c=new s(i,r,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},e.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,o=n.length-t+1,i=e.start.row,r=e.start.column,s=0,a=0;s<o;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(i+s,r),end:this.pos(i+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=i+s,e.start.column=r,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,i=t||0,r=n.length;i<r;i++)if((e-=n[i].length+o)<0)return{row:i,column:e+n[i].length+o};return{row:r-1,column:e+n[r-1].length+o}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,i=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)i+=n[s].length+o;return i+e.column},e.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},e}();l.prototype.$autoNewLine="",l.prototype.$newLineMode="auto",o.implement(l.prototype,r),t.Document=l}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"use strict";var o=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,r=function(){function e(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,o=-1,i=n.doc,r=t;n.lines[t];)t++;var s=i.getLength(),a=0;for(n.running=!1;t<s;){n.$tokenizeRow(t),o=t;do{t++}while(n.lines[t]);if(++a%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==o&&(o=t),r<=o&&n.fireUpdateEvent(r,o)}}}return e.prototype.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},e.prototype.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},e.prototype.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},e.prototype.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},e.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},e.prototype.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var o=Array(n+1);o.unshift(t,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},e.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},e.prototype.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},e.prototype.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},e.prototype.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],o=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=o.state+""?(this.states[e]=o.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=o.tokens},e.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},e}();o.implement(r.prototype,i),t.BackgroundTokenizer=r}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,t,n){"use strict";var o=e("./lib/lang"),i=e("./range").Range,r=function(){function e(e,t,n){void 0===n&&(n="text"),this.setRegexp(e),this.clazz=t,this.type=n,this.docLen=0}return e.prototype.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},e.prototype.update=function(e,t,n,r){if(this.regExp){for(var s=r.firstRow,a=r.lastRow,l={},c=n.$editor&&n.$editor.$search,d=c&&c.$isMultilineSearch(n.$editor.getLastSearchOptions()),u=s;u<=a;u++){var h=this.cache[u];if(null==h||n.getValue().length!=this.docLen){if(d){h=[];var p=c.$multiLineForward(n,this.regExp,u,a);if(p){var g=p.endRow<=a?p.endRow-1:a;g>u&&(u=g),h.push(new i(p.startRow,p.startCol,p.endRow,p.endCol))}h.length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES))}else(h=o.getMatchOffsets(n.getLine(u),this.regExp)).length>this.MAX_RANGES&&(h=h.slice(0,this.MAX_RANGES)),h=h.map(function(e){return new i(u,e.offset,u,e.offset+e.length)});this.cache[u]=h.length?h:""}if(0!==h.length)for(var m=h.length;m--;){var f=h[m].toScreenRange(n),b=f.toString();l[b]||(l[b]=!0,t.drawSingleLineMarker(e,f,this.clazz,r))}}this.docLen=n.getValue().length}},e}();r.prototype.MAX_RANGES=500,t.SearchHighlight=r}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=function(){function e(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return e.prototype.addSession=function(e){this.$session=e},e.prototype.add=function(e,t,n){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!this.lastDeltas){this.lastDeltas=[];var o=this.$undoStack.length;o>this.$undoDepth-1&&this.$undoStack.splice(0,o-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev}"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},e.prototype.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},e.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},e.prototype.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,o=n.length;o--;){var i=n[o][0];if(i.id<=e)break;i.id<t&&(i.ignore=!0)}this.lastDeltas=null},e.prototype.getSelection=function(e,t){for(var n=this.selections,o=n.length;o--;){var i=n[o];if(i.rev<e)return t&&(i=n[o+1]),i}},e.prototype.getRevision=function(){return this.$rev},e.prototype.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,o=null,i=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!o&&(o=r+1),s.id<=e){i=r+1;break}}return n.slice(i,o)},e.prototype.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(function(e,t){for(var n=t;n--;){var o=e[n];if(o&&!o[0].ignore){for(;n<t-1;){var i=d(e[n],e[n+1]);e[n]=i[0],e[n+1]=i[1],n++}return!0}}}(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var o=n.pop(),i=null;return o&&(i=e.undoChanges(o,t),this.$redoStack.push(o),this.$syncRev()),this.$fromUndo=!1,i}},e.prototype.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);!function(e,t){for(var n=0;n<t.length;n++)for(var o=t[n],i=0;i<o.length;i++)m(e,o[i])}(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var o=this.$redoStack.pop(),i=null;return o&&(i=e.redoChanges(o,t),this.$undoStack.push(o),this.$syncRev()),this.$fromUndo=!1,i},e.prototype.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},e.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},e.prototype.canUndo=function(){return this.$undoStack.length>0},e.prototype.canRedo=function(){return this.$redoStack.length>0},e.prototype.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},e.prototype.isAtBookmark=function(){return this.$rev===this.mark},e.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},e.prototype.fromJSON=function(e){this.reset(),this.$undoStack=e.$undoStack,this.$redoStack=e.$redoStack},e.prototype.$prettyPrint=function(e){return e?a(e):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)},e}();o.prototype.hasUndo=o.prototype.canUndo,o.prototype.hasRedo=o.prototype.canRedo,o.prototype.isClean=o.prototype.isAtBookmark,o.prototype.markClean=o.prototype.bookmark;var i=e("./range").Range,r=i.comparePoints;function s(e){return{row:e.row,column:e.column}}function a(e){if(e=e||this,Array.isArray(e))return e.map(a).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function c(e,t){var n="insert"==e.action,o="insert"==t.action;if(n&&o)if(r(t.start,e.end)>=0)h(t,e,-1);else{if(!(r(t.start,e.start)<=0))return null;h(e,t,1)}else if(n&&!o)if(r(t.start,e.end)>=0)h(t,e,-1);else{if(!(r(t.end,e.start)<=0))return null;h(e,t,-1)}else if(!n&&o)if(r(t.start,e.start)>=0)h(t,e,1);else{if(!(r(t.start,e.start)<=0))return null;h(e,t,1)}else if(!n&&!o)if(r(t.start,e.start)>=0)h(t,e,1);else{if(!(r(t.end,e.start)<=0))return null;h(e,t,-1)}return[t,e]}function d(e,t){for(var n=e.length;n--;)for(var o=0;o<t.length;o++)if(!c(e[n],t[o])){for(;n<e.length;){for(;o--;)c(t[o],e[n]);o=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function u(e,t){var n="insert"==e.action,o="insert"==t.action;if(n&&o)r(e.start,t.start)<0?h(t,e,1):h(e,t,1);else if(n&&!o)r(e.start,t.end)>=0?h(e,t,-1):(r(e.start,t.start)<=0||h(e,i.fromPoints(t.start,e.start),-1),h(t,e,1));else if(!n&&o)r(t.start,e.end)>=0?h(t,e,-1):(r(t.start,e.start)<=0||h(t,i.fromPoints(e.start,t.start),-1),h(e,t,1));else if(!n&&!o)if(r(t.start,e.end)>=0)h(t,e,-1);else{var s,a;if(!(r(t.end,e.start)<=0))return r(e.start,t.start)<0&&(s=e,e=g(e,t.start)),r(e.end,t.end)>0&&(a=g(e,t.end)),p(t.end,e.start,e.end,-1),a&&!s&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,s,a].filter(Boolean);h(e,t,-1)}return[t,e]}function h(e,t,n){p(e.start,t.start,t.end,n),p(e.end,t.start,t.end,n)}function p(e,t,n,o){e.row==(1==o?t:n).row&&(e.column+=o*(n.column-t.column)),e.row+=o*(n.row-t.row)}function g(e,t){var n=e.lines,o=e.end;e.end=s(t);var i=e.end.row-e.start.row,r=n.splice(i,n.length),a=i?t.column:t.column-e.start.column;return n.push(r[0].substring(0,a)),r[0]=r[0].substr(a),{start:s(t),end:o,lines:r,action:e.action}}function m(e,t){t=function(e){return{start:s(e.start),end:s(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var o=e[n],i=0;i<o.length;i++){var r=u(o[i],t);t=r[0],2!=r.length&&(r[2]?(o.splice(i+1,1,r[1],r[2]),i++):r[1]||(o.splice(i,1),i--))}o.length||e.splice(n,1)}return e}i.comparePoints,t.UndoManager=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=e("../range").Range,i=function(){function e(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new o(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}return e.prototype.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},e.prototype.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},e.prototype.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},e.prototype.walk=function(e,t,n){var o,i,r=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(i=(o=s[l]).range.compareStart(t,n)))return void e(null,t,n,r,a);if(!e(null,o.start.row,o.start.column,r,a)&&e(o.placeholder,o.start.row,o.start.column,r)||0===i)return;a=!o.sameRow,r=o.end.column}e(null,t,n,r,a)},e.prototype.getNextFoldTo=function(e,t){for(var n,o,i=0;i<this.folds.length;i++){if(-1==(o=(n=this.folds[i]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===o)return{fold:n,kind:"inside"}}return null},e.prototype.addRemoveChars=function(e,t,n){var o,i,r=this.getNextFoldTo(e,t);if(r)if(o=r.fold,"inside"==r.kind&&o.start.column!=t&&o.start.row!=e)window.console&&window.console.log(e,t,o);else if(o.start.row==e){var s=(i=this.folds).indexOf(o);for(0===s&&(this.start.column+=n);s<i.length;s++){if((o=i[s]).start.column+=n,!o.sameRow)return;o.end.column+=n}this.end.column+=n}},e.prototype.split=function(t,n){var o=this.getNextFoldTo(t,n);if(!o||"inside"==o.kind)return null;var i=o.fold,r=this.folds,s=this.foldData,a=r.indexOf(i),l=r[a-1];this.end.row=l.end.row,this.end.column=l.end.column;var c=new e(s,r=r.splice(a,r.length-a));return s.splice(s.indexOf(this)+1,0,c),c},e.prototype.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var o=this.foldData;o.splice(o.indexOf(e),1)},e.prototype.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach(function(t){e.push(" "+t.toString())}),e.push("]"),e.join("\n")},e.prototype.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var o=this.folds[n];if((e-=o.start.column-t)<0)return{row:o.start.row,column:o.start.column+e};if((e-=o.placeholder.length)<0)return o.start;t=o.end.column}return{row:this.end.row,column:this.end.column+e}},e}();t.FoldLine=i}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=e("./range").Range.comparePoints,i=function(){function e(){this.ranges=[],this.$bias=1}return e.prototype.pointIndex=function(e,t,n){for(var i=this.ranges,r=n||0;r<i.length;r++){var s=i[r],a=o(e,s.end);if(!(a>0)){var l=o(e,s.start);return 0===a?t&&0!==l?-r-2:r:l>0||0===l&&!t?r:-r-1}}return-r-1},e.prototype.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var o=this.pointIndex(e.end,t,n);return o<0?o=-o-1:o++,this.ranges.splice(n,o-n,e)},e.prototype.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},e.prototype.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},e.prototype.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort(function(e,t){return o(e.start,t.start)}))[0],r=1;r<n.length;r++){e=i,i=n[r];var s=o(e.end,i.start);s<0||(0!=s||e.isEmpty()||i.isEmpty())&&(o(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(r,1),t.push(i),i=e,r--)}return this.ranges=n,t},e.prototype.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},e.prototype.containsPoint=function(e){return this.pointIndex(e)>=0},e.prototype.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},e.prototype.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var o=this.pointIndex({row:e,column:0});o<0&&(o=-o-1);var i=this.pointIndex({row:t,column:0},o);i<0&&(i=-i-1);for(var r=[],s=o;s<i;s++)r.push(n[s]);return r},e.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},e.prototype.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},e.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},e.prototype.$onChange=function(e){for(var t=e.start,n=e.end,o=t.row,i=n.row,r=this.ranges,s=0,a=r.length;s<a&&!((d=r[s]).end.row>=o);s++);if("insert"==e.action){for(var l=i-o,c=-t.column+n.column;s<a&&!((d=r[s]).start.row>o);s++)if(d.start.row==o&&d.start.column>=t.column&&(d.start.column==t.column&&this.$bias<=0||(d.start.column+=c,d.start.row+=l)),d.end.row==o&&d.end.column>=t.column){if(d.end.column==t.column&&this.$bias<0)continue;d.end.column==t.column&&c>0&&s<a-1&&d.end.column>d.start.column&&d.end.column==r[s+1].start.column&&(d.end.column-=c),d.end.column+=c,d.end.row+=l}}else for(l=o-i,c=t.column-n.column;s<a&&!((d=r[s]).start.row>i);s++)d.end.row<i&&(o<d.end.row||o==d.end.row&&t.column<d.end.column)?(d.end.row=o,d.end.column=t.column):d.end.row==i?d.end.column<=n.column?(l||d.end.column>t.column)&&(d.end.column=t.column,d.end.row=t.row):(d.end.column+=c,d.end.row+=l):d.end.row>i&&(d.end.row+=l),d.start.row<i&&(o<d.start.row||o==d.start.row&&t.column<d.start.column)?(d.start.row=o,d.start.column=t.column):d.start.row==i?d.start.column<=n.column?(l||d.start.column>t.column)&&(d.start.column=t.column,d.start.row=t.row):(d.start.column+=c,d.start.row+=l):d.start.row>i&&(d.start.row+=l);if(0!=l&&s<a)for(;s<a;s++){var d;(d=r[s]).start.row+=l,d.end.row+=l}},e}();i.prototype.comparePoints=o,t.RangeList=i}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=function(e){function t(t,n){var o=e.call(this)||this;return o.foldLine=null,o.placeholder=n,o.range=t,o.start=t.start,o.end=t.end,o.sameRow=t.start.row==t.end.row,o.subFolds=o.ranges=[],o}return i(t,e),t.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},t.prototype.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach(function(t){t.setFoldLine(e)})},t.prototype.clone=function(){var e=new t(this.range.clone(),this.placeholder);return this.subFolds.forEach(function(t){e.subFolds.push(t.clone())}),e.collapseChildren=this.collapseChildren,e},t.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){var t,n;t=e,n=this.start,s(t.start,n),s(t.end,n);for(var o=e.start.row,i=e.start.column,r=0,a=-1;r<this.subFolds.length&&1==(a=this.subFolds[r].range.compare(o,i));r++);var l=this.subFolds[r],c=0;if(0==a){if(l.range.containsRange(e))return l.addSubFold(e);c=1}o=e.range.end.row,i=e.range.end.column;var d=r;for(a=-1;d<this.subFolds.length&&1==(a=this.subFolds[d].range.compare(o,i));d++);0==a&&d++;for(var u=this.subFolds.splice(r,d-r,e),h=0==a?u.length-1:u.length,p=c;p<h;p++)e.addSubFold(u[p]);return e.setFoldLine(this.foldLine),e}},t.prototype.restoreRange=function(e){return function(e,t){a(e.start,t),a(e.end,t)}(e,this.start)},t}(e("../range_list").RangeList);function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}t.Fold=r}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,t,n){"use strict";var o=e("../range").Range,i=e("./fold_line").FoldLine,r=e("./fold").Fold,s=e("../token_iterator").TokenIterator,a=e("../mouse/mouse_event").MouseEvent;t.Folding=function(){this.getFoldAt=function(e,t,n){var o=this.getFoldLine(e);if(!o)return null;for(var i=o.folds,r=0;r<i.length;r++){var s=i[r].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return i[r]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,o=this.$foldData,i=[];t.column+=1,n.column-=1;for(var r=0;r<o.length;r++){var s=o[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=o[r].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;i.push(c)}}}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var o=0;o<t[n].folds.length;o++)e.push(t[n].folds[o]);return e},this.getFoldStringAt=function(e,t,n,o){if(!(o=o||this.getFoldLine(e)))return null;for(var i,r,s={end:{column:0}},a=0;a<o.folds.length;a++){var l=(r=o.folds[a]).range.compareEnd(e,t);if(-1==l){i=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return i||(i=this.getLine(r.start.row).substring(s.end.column)),-1==n?i.substring(0,t-s.end.column):1==n?i.substring(t-s.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,o=0;for(t&&(o=n.indexOf(t)),-1==o&&(o=0);o<n.length;o++){var i=n[o];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,o=0;for(t&&(o=n.indexOf(t)),-1==o&&(o=0);o<n.length;o++){var i=n[o];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,o=t-e+1,i=0;i<n.length;i++){var r=n[i],s=r.end.row,a=r.start.row;if(s>=t){a<t&&(a>=e?o-=t-a:o=0);break}s>=e&&(o-=a>=e?s-a:s-e+1)}return o},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,o=this.$foldData,s=!1;e instanceof r?n=e:(n=new r(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,d=n.end.column,u=this.getFoldAt(a,l,1),h=this.getFoldAt(c,d,-1);if(u&&h==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),h&&!h.range.isEnd(c,d)&&this.removeFold(h);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),n.collapseChildren||p.forEach(function(e){n.addSubFold(e)}));for(var g=0;g<o.length;g++){var m=o[g];if(c==m.start.row){m.addFold(n),s=!0;break}if(a==m.end.row){if(m.addFold(n),s=!0,!n.sameRow){var f=o[g+1];if(f&&f.start.row==c){m.merge(f);break}}break}if(c<=m.start.row)break}return s||(m=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(m.start.row,m.start.row):this.$updateRowLengthCache(m.start.row,m.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,o=t.end.row,i=this.$foldData,r=t.folds;if(1==r.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(r=s.folds).shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,o):this.$updateRowLengthCache(n,o)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach(function(t){e.restoreRange(t),this.addFold(t)},this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,i;if(null==e)n=new o(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new o(e,0,e,this.getLine(e).length);else if("row"in e)n=o.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach(function(e){i=i.concat(this.unfold(e))},this),i;n=e}for(var r=i=this.getFoldsInRangeList(n);1==i.length&&o.comparePoints(i[0].start,n.start)<0&&o.comparePoints(i[0].end,n.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(i):this.expandFolds(i),r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,o,i){null==o&&(o=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var r=this.doc,s="";return e.walk(function(e,t,n,a){if(!(t<o)){if(t==o){if(n<i)return;a=Math.max(i,a)}s+=null!=e?e:r.getLine(t).substring(a,n)}},t,n),s},this.getDisplayLine=function(e,t,n,o){var i,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,o):(i=this.doc.getLine(e)).substring(o||0,t||i.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map(function(t){var n=t.folds.map(function(e){return e.clone()});return new i(e,n)})},this.toggleFold=function(e){var t,n,o=this.selection.getRange();if(o.isEmpty()){var i=o.start;if(t=this.getFoldAt(i.row,i.column))return void this.expandFold(t);if(e){var r=this.getFoldLine(i.row);return void(r&&this.expandFolds(r.folds))}(n=this.findMatchingBracket(i))?1==o.comparePoint(n)?o.end=n:(o.start=n,o.start.column++,o.end.column--):(n=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==o.comparePoint(n)?o.end=n:o.start=n,o.start.column++):o=this.getCommentFoldRange(i.row,i.column)||o}else{var s=this.getFoldsInRange(o);if(e&&s.length)return void this.expandFolds(s);1==s.length&&(t=s[0])}if(t||(t=this.getFoldAt(o.start.row,o.start.column)),t&&t.range.toString()==o.toString())this.expandFold(t);else{var a="...";if(!o.isMultiLine()){if((a=this.getTextRange(o)).length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,o)}},this.getCommentFoldRange=function(e,t,n){var i=new s(this,e,t),r=i.getCurrentToken(),a=r&&r.type;if(r&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start|\\.doc");var l=new RegExp(a),c=new o;if(1!=n){do{r=i.stepBackward()}while(r&&l.test(r.type));r=i.stepForward()}c.start.row=i.getCurrentTokenRow(),c.start.column=i.getCurrentTokenColumn()+r.value.length,i=new s(this,e,t);var d=this.getState(i.$row);if(-1!=n){var u=-1;do{if(r=i.stepForward(),-1==u){var h=this.getState(i.$row);d.toString()!==h.toString()&&(u=i.$row)}else if(i.$row>u)break}while(r&&l.test(r.type));r=i.stepBackward()}else r=i.getCurrentToken();if(c.end.row=i.getCurrentTokenRow(),c.end.column=i.getCurrentTokenColumn(),c.start.row==c.end.row&&c.start.column>c.end.column)return;return c}},this.foldAll=function(e,t,n,o){null==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var r=e=e||0;r<t;r++)if(null==i[r]&&(i[r]=this.getFoldWidget(r)),"start"==i[r]&&(!o||o(r))){var s=this.getFoldWidgetRange(r);s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(r=s.end.row,s.collapseChildren=n,this.addFold("...",s))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,function(t){for(var n=e.getTokens(t),o=0;o<n.length;o++){var i=n[o];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var o,i=e-1;i>=0;){var r=n[i];if(null==r&&(r=n[i]=this.getFoldWidget(i)),"start"==r){var s=this.getFoldWidgetRange(i);if(o||(o=s),s&&s.end.row>=e)break}i--}return{range:-1!==i&&s,firstRange:o}},this.onFoldWidgetClick=function(e,t){t instanceof a&&(t=t.domEvent);var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var o=t.target||t.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),o=this.getLine(e),i="end"===n?-1:1,r=this.getFoldAt(e,-1===i?0:o.length,i);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(r.range))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var o=this.getParentFoldRangeData(t,!0);if(n=o.range||o.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var o=Array(n+1);o.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,n){"use strict";var o=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var o=n.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],e):this.$findOpeningBracket(o[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),o=!0,r=n.charAt(e.column-1),s=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(s||(r=n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(/([\(\[\{])|([\)\]\}])/),o=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],e)))return null;t=i.fromPoints(e,a),o||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],e)))return null;t=i.fromPoints(a,e),o||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),o=/([\(\[\{])|([\)\]\}])/,r=!t&&n.charAt(e.column-1),s=r&&r.match(o);if(s||(r=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(o)),!s)return null;var a=new i(e.row,e.column-1,e.row,e.column),l=s[1]?this.$findClosingBracket(s[1],e):this.$findOpeningBracket(s[2],e);return l?[a,new i(l.row,l.column,l.row,l.column+1)]:[a]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],r=1,s=new o(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;;){for(;l>=0;){var d=c.charAt(l);if(d==i){if(0==(r-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(r+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;l=(c=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],r=1,s=new o(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var l=t.column-s.getCurrentTokenColumn();;){for(var c=a.value,d=c.length;l<d;){var u=c.charAt(l);if(u==i){if(0==(r-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(r+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}},this.getMatchingTags=function(e){var t=new o(this,e.row,e.column),n=this.$findTagName(t);if(n)return"<"===t.stepBackward().value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,o=!1;if(t&&-1===t.type.indexOf("tag-name"))do{(t=o?e.stepBackward():e.stepForward())&&("/>"===t.value?o=!0:-1!==t.type.indexOf("tag-name")&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,o=t.value,r=t.value,s=0,a=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),c=!1;do{if(-1!==(n=t).type.indexOf("tag-close")&&!c){var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);c=!0}if(t=e.stepForward())if(">"!==t.value||c||(d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),c=!0),-1!==t.type.indexOf("tag-name")){if(r===(o=t.value))if("<"===n.value)s++;else if("</"===n.value&&--s<0){e.stepBackward();var u=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var h=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(-1===t.type.indexOf("tag-close")&&(t=e.stepForward()),!t||">"!==t.value)return;var p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else r===o&&"/>"===t.value&&--s<0&&(p=h=u=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),d=new i(l.end.row,l.end.column,l.end.row,l.end.column+1))}while(t&&s>=0);if(a&&d&&u&&p&&l&&h)return{openTag:new i(a.start.row,a.start.column,d.end.row,d.end.column),closeTag:new i(u.start.row,u.start.column,p.end.row,p.end.column),openTagName:l,closeTagName:h}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),o=t.value,r=0,s=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+2,c=new i(s,a,s,l);e.stepForward();var d=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(-1===t.type.indexOf("tag-close")&&(t=e.stepForward()),t&&">"===t.value){var u=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,s=e.getCurrentTokenRow(),l=(a=e.getCurrentTokenColumn())+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(o===t.value)if("<"===n.value){if(++r>0){var h=new i(s,a,s,l),p=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&">"!==t.value);var g=new i(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&r--}else if("/>"===t.value){for(var m=0,f=n;f;){if(-1!==f.type.indexOf("tag-name")&&f.value===o){r--;break}if("<"===f.value)break;f=e.stepBackward(),m++}for(var b=0;b<m;b++)e.stepForward()}}while(n&&r<=0);return p&&g&&c&&u&&h&&d?{openTag:new i(p.start.row,p.start.column,g.end.row,g.end.column),closeTag:new i(c.start.row,c.start.column,u.end.row,u.end.column),openTagName:h,closeTagName:d}:void 0}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,n){"use strict";var o=e("./lib/oop"),i=e("./lib/lang"),r=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./line_widgets").LineWidgets,h=e("./document").Document,p=e("./background_tokenizer").BackgroundTokenizer,g=e("./search_highlight").SearchHighlight,m=e("./undomanager").UndoManager,f=function(){function e(t,n){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++e.$uid,this.$foldData.toString=function(){return this.join("\n")},this.$gutterCustomWidgets={},this.bgTokenizer=new p((new c).getTokenizer(),this);var o=this;this.bgTokenizer.on("update",function(e){o._signal("tokenizerUpdate",e)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new h(t)),this.setDocument(t),this.selection=new l(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new r(this),s.resetOptions(this),this.setMode(n),s._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return e.prototype.$initOperationListeners=function(){var e=this;this.curOp=null,this.on("change",function(){e.curOp||(e.startOperation(),e.curOp.selectionBefore=e.$lastSel),e.curOp.docChanged=!0},!0),this.on("changeSelection",function(){e.curOp||(e.startOperation(),e.curOp.selectionBefore=e.$lastSel),e.curOp.selectionChanged=!0},!0),this.$operationResetTimer=i.delayedCall(this.endOperation.bind(this,!0))},e.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(e={}),this.$operationResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",e)},e.prototype.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null,void this._signal("endOperation",e);if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;var t=this.selection.toJSON();this.curOp.selectionAfter=t,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(t),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",e)}},e.prototype.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},e.prototype.getDocument=function(){return this.doc},Object.defineProperty(e.prototype,"widgetManager",{get:function(){var e=new u(this);return this.widgetManager=e,this.$editor&&e.attach(this.$editor),e},set:function(e){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:e})},enumerable:!1,configurable:!0}),e.prototype.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},e.prototype.$getRowCacheIndex=function(e,t){for(var n=0,o=e.length-1;n<=o;){var i=n+o>>1,r=e[i];if(t>r)n=i+1;else{if(!(t<r))return i;o=i-1}}return n-1},e.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},e.prototype.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},e.prototype.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},e.prototype.onSelectionChange=function(){this._signal("changeSelection")},e.prototype.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},e.fromJSON=function(t){"string"==typeof t&&(t=JSON.parse(t));var n=new m;n.$undoStack=t.history.undo,n.$redoStack=t.history.redo,n.mark=t.history.mark,n.$rev=t.history.rev;var o=new e(t.value);return t.folds.forEach(function(e){o.addFold("...",d.fromPoints(e.start,e.end))}),o.setAnnotations(t.annotations),o.setBreakpoints(t.breakpoints),o.setMode(t.mode),o.setScrollLeft(t.scrollLeft),o.setScrollTop(t.scrollTop),o.setUndoManager(n),o.selection.fromJSON(t.selection),o},e.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(e){return e.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},e.prototype.toString=function(){return this.doc.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.getState=function(e){return this.bgTokenizer.getState(e)},e.prototype.getTokens=function(e){return this.bgTokenizer.getTokens(e)},e.prototype.getTokenAt=function(e,t){var n,o=this.bgTokenizer.getTokens(e),i=0;if(null==t){var r=o.length-1;i=this.getLine(e).length}else for(r=0;r<o.length&&!((i+=o[r].value.length)>=t);r++);return(n=o[r])?(n.index=r,n.start=i-n.value.length,n):null},e.prototype.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},e.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},e.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},e.prototype.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},e.prototype.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},e.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},e.prototype.setTabSize=function(e){this.setOption("tabSize",e)},e.prototype.getTabSize=function(){return this.$tabSize},e.prototype.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},e.prototype.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},e.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},e.prototype.setOverwrite=function(e){this.setOption("overwrite",e)},e.prototype.getOverwrite=function(){return this.$overwrite},e.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},e.prototype.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},e.prototype.removeGutterCustomWidget=function(e){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(e)},e.prototype.addGutterCustomWidget=function(e,t){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(e,t)},e.prototype.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},e.prototype.getBreakpoints=function(){return this.$breakpoints},e.prototype.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},e.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},e.prototype.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},e.prototype.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},e.prototype.addMarker=function(e,t,n,o){var i=this.$markerId++,r={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!o,id:i};return o?(this.$frontMarkers[i]=r,this._signal("changeFrontMarker")):(this.$backMarkers[i]=r,this._signal("changeBackMarker")),i},e.prototype.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},e.prototype.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},e.prototype.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},e.prototype.highlight=function(e){if(!this.$searchHighlight){var t=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},e.prototype.highlightLines=function(e,t,n,o){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new d(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",o),i},e.prototype.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},e.prototype.getAnnotations=function(){return this.$annotations||[]},e.prototype.clearAnnotations=function(){this.setAnnotations([])},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},e.prototype.getWordRange=function(e,t){var n=this.getLine(e),o=!1;if(t>0&&(o=!!n.charAt(t-1).match(this.tokenRe)),o||(o=!!n.charAt(t).match(this.tokenRe)),o)var i=this.tokenRe;else i=/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe;var r=t;if(r>0){do{r--}while(r>=0&&n.charAt(r).match(i));r++}for(var s=t;s<n.length&&n.charAt(s).match(i);)s++;return new d(e,r,e,s)},e.prototype.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),o=this.getLine(n.end.row);o.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},e.prototype.setNewLineMode=function(e){this.doc.setNewLineMode(e)},e.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},e.prototype.setUseWorker=function(e){this.setOption("useWorker",e)},e.prototype.getUseWorker=function(){return this.$useWorker},e.prototype.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},e.prototype.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,o=n.path}else o=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[o]&&!n)return this.$onChangeMode(this.$modes[o]),void(t&&t());this.$modeId=o,s.loadModule(["mode",o],function(e){if(!this.destroyed){if(this.$modeId!==o)return t&&t();this.$modes[o]&&!n?this.$onChangeMode(this.$modes[o]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[o]=e,e.$id=o),this.$onChangeMode(e)),t&&t()}}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},e.prototype.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var o=e.getTokenizer();if(void 0!==o.on){var i=this.onReloadTokenizer.bind(this);o.on("update",i)}this.bgTokenizer.setTokenizer(o),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},e.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},e.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},e.prototype.getMode=function(){return this.$mode},e.prototype.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},e.prototype.getScrollTop=function(){return this.$scrollTop},e.prototype.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},e.prototype.getScrollLeft=function(){return this.$scrollLeft},e.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},e.prototype.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e},e.prototype.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,o=0,i=0,r=this.$foldData[i],s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if((l=r.end.row+1)>=a)break;s=(r=this.$foldData[i++])?r.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>o&&(o=n[l])}this.screenWidth=o}},e.prototype.getLine=function(e){return this.doc.getLine(e)},e.prototype.getLines=function(e,t){return this.doc.getLines(e,t)},e.prototype.getLength=function(){return this.doc.getLength()},e.prototype.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},e.prototype.insert=function(e,t){return this.doc.insert(e,t)},e.prototype.remove=function(e){return this.doc.remove(e)},e.prototype.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},e.prototype.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var o=e[n];"insert"==o.action||"remove"==o.action?this.doc.revertDelta(o):o.folds&&this.addFolds(o.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},e.prototype.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var o=e[n];"insert"!=o.action&&"remove"!=o.action||this.doc.$safeApplyDelta(o)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},e.prototype.setUndoSelect=function(e){this.$undoSelect=e},e.prototype.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var o,i,r=0;r<e.length;r++){var s=e[r];s.start&&(o?n(s)?(i=s.start,-1==o.compare(i.row,i.column)&&o.setStart(i),i=s.end,1==o.compare(i.row,i.column)&&o.setEnd(i)):(i=s.start,-1==o.compare(i.row,i.column)&&(o=d.fromPoints(s.start,s.start))):o=n(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start))}return o},e.prototype.replace=function(e,t){return this.doc.replace(e,t)},e.prototype.moveText=function(e,t,n){var o=this.getTextRange(e),i=this.getFoldsInRange(e),r=d.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=c),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=c)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,o),i.length){var a=e.start,l=r.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(i.map(function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e}))}return r},e.prototype.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var o=e;o<=t;o++)this.doc.insertInLine({row:o,column:0},n)},e.prototype.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),o=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var r=this.getLine(i);n.start.row=i,n.end.row=i;for(var s=0;s<o&&" "==r.charAt(s);++s);s<o&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},e.prototype.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((i=this.getRowFoldStart(e+n))<0)return 0;var o=i-e}else if(n>0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;o=i-t}else e=this.$clipRowToDocument(e),o=(t=this.$clipRowToDocument(t))-e+1;var r=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=o,e.end.row+=o,e}),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+o,a),s.length&&this.addFolds(s),o},e.prototype.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},e.prototype.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},e.prototype.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},e.prototype.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},e.prototype.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},e.prototype.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},e.prototype.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},e.prototype.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},e.prototype.getUseWrapMode=function(){return this.$useWrapMode},e.prototype.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},e.prototype.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var o=this.$constrainWrapLimit(e,n.min,n.max);return o!=this.$wrapLimit&&o>1&&(this.$wrapLimit=o,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},e.prototype.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},e.prototype.getWrapLimit=function(){return this.$wrapLimit},e.prototype.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},e.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},e.prototype.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,o=e.start,i=e.end,r=o.row,s=i.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=0;if(m=this.getFoldLine(i.row)){m.addRemoveChars(i.row,i.column,o.column-i.column),m.shiftRow(-a);var u=this.getFoldLine(r);u&&u!==m&&(u.merge(m),m=u),d=c.indexOf(m)+1}for(;d<c.length;d++)(m=c[d]).start.row>=i.row&&m.shiftRow(-a);s=r}else{var h=Array(a);h.unshift(r,0);var p=t?this.$wrapData:this.$rowLengthCache;if(p.splice.apply(p,h),c=this.$foldData,d=0,m=this.getFoldLine(r)){var g=m.range.compareInside(o.row,o.column);0==g?(m=m.split(o.row,o.column))&&(m.shiftRow(a),m.addRemoveChars(s,0,i.column-o.column)):-1==g&&(m.addRemoveChars(r,0,i.column-o.column),m.shiftRow(a)),d=c.indexOf(m)+1}for(;d<c.length;d++){var m;(m=c[d]).start.row>=r&&m.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(m=this.getFoldLine(r))&&m.addRemoveChars(r,o.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},e.prototype.$updateRowLengthCache=function(e,t){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},e.prototype.$updateWrapData=function(e,t){var n,o,i=this.doc.getAllLines(),r=this.getTabSize(),s=this.$wrapData,a=this.$wrapLimit,l=e;for(t=Math.min(t,i.length-1);l<=t;)(o=this.getFoldLine(l,o))?(n=[],o.walk(function(e,t,o,r){var s;if(null!=e){(s=this.$getDisplayTokens(e,n.length))[0]=y;for(var a=1;a<s.length;a++)s[a]=k}else s=this.$getDisplayTokens(i[t].substring(r,o),n.length);n=n.concat(s)}.bind(this),o.end.row,i[o.end.row].length+1),s[o.start.row]=this.$computeWrapSplits(n,a,r),l=o.end.row+1):(n=this.$getDisplayTokens(i[l]),s[l]=this.$computeWrapSplits(n,a,r),l++)},e.prototype.$computeWrapSplits=function(e,t,n){if(0==e.length)return[];var o=[],i=e.length,r=0,s=0,a=this.$wrapAsCode,l=this.$indentedSoftWrap,c=t<=Math.max(2*n,8)||!1===l?0:Math.floor(t/2);function d(t){for(var i=t-r,d=r;d<t;d++){var h=e[d];12!==h&&2!==h||(i-=1)}o.length||(u=function(){var t=0;if(0===c)return t;if(l)for(var o=0;o<e.length;o++){var i=e[o];if(i==w)t+=1;else{if(i!=_){if(i==C)continue;break}t+=n}}return a&&!1!==l&&(t+=n),Math.min(t,c)}(),o.indent=u),s+=i,o.push(s),r=t}for(var u=0;i-r>t-u;){var h=r+t-u;if(e[h-1]>=w&&e[h]>=w)d(h);else if(e[h]!=y&&e[h]!=k){for(var p=Math.max(h-(t-(t>>2)),r-1);h>p&&e[h]<y;)h--;if(a){for(;h>p&&e[h]<y;)h--;for(;h>p&&e[h]==x;)h--}else for(;h>p&&e[h]<w;)h--;h>p?d(++h):(e[h=r+t]==v&&h--,d(h-u))}else{for(;h!=r-1&&e[h]!=y;h--);if(h>r){d(h);continue}for(h=r+t;h<e.length&&e[h]==k;h++);if(h==e.length)break;d(h)}}return o},e.prototype.$getDisplayTokens=function(e,t){var n,o=[];t=t||0;for(var i=0;i<e.length;i++){var r=e.charCodeAt(i);if(9==r){n=this.getScreenTabSize(o.length+t),o.push(_);for(var s=1;s<n;s++)o.push(C)}else 32==r?o.push(w):r>39&&r<48||r>57&&r<64?o.push(x):r>=4352&&S(r)?o.push(b,v):o.push(b)}return o},e.prototype.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var o,i;for(null==t&&(t=1/0),n=n||0,i=0;i<e.length&&(9==(o=e.charCodeAt(i))?n+=this.getScreenTabSize(n):o>=4352&&S(o)?n+=2:n+=1,!(n>t));i++);return[n,i]},e.prototype.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},e.prototype.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},e.prototype.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},e.prototype.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},e.prototype.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},e.prototype.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},e.prototype.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},e.prototype.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},e.prototype.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},e.prototype.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},e.prototype.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var o,i,r=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&d>=0){a=c[d],r=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;for(var p=this.getLength()-1,g=this.getNextFoldLine(r),m=g?g.start.row:1/0;a<=e&&!(a+(l=this.getRowLength(r))>e||r>=p);)a+=l,++r>m&&(r=g.end.row+1,m=(g=this.getNextFoldLine(r,g))?g.start.row:1/0),h&&(this.$docRowCache.push(r),this.$screenRowCache.push(a));if(g&&g.start.row<=r)o=this.getFoldDisplayLine(g),r=g.start.row;else{if(a+l<=e||r>p)return{row:p,column:this.getLine(p).length};o=this.getLine(r),g=null}var f=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[r];v&&(i=v[b],b>0&&v.length&&(f=v.indent,s=v[b-1]||v[v.length-1],o=o.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+b,r,b)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(o,t-f)[1],this.$useWrapMode&&s>=i&&(s=i-1),g?g.idxToPosition(s):{row:r,column:s}},e.prototype.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var o,i=0,r=null;(o=this.getFoldAt(e,t,1))&&(e=o.start.row,t=o.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&c>=0){a=l[c],i=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;for(var h=this.getNextFoldLine(a),p=h?h.start.row:1/0;a<e;){if(a>=p){if((s=h.end.row+1)>e)break;p=(h=this.getNextFoldLine(s,h))?h.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var g="";h&&a>=p?(g=this.getFoldDisplayLine(h,e,t),r=h.start.row):(g=this.getLine(e).substring(0,t),r=e);var m=0;if(this.$useWrapMode){var f=this.$wrapData[r];if(f){for(var b=0;g.length>=f[b];)i++,b++;g=g.substring(f[b-1]||0,g.length),m=b>0?f.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:m+this.$getStringScreenWidth(g)[0]}},e.prototype.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},e.prototype.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},e.prototype.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,o=0,i=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);o<n;){var r=this.$wrapData[o];e+=r?r.length+1:1,++o>i&&(o=t.end.row+1,i=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},e.prototype.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,o){if(0===n)return[0,0];var i,r;for(n||(n=1/0),o=o||0,r=0;r<t.length&&!((o+="\t"===(i=t.charAt(r))?this.getScreenTabSize(o):e.getCharacterWidth(i))>n);r++);return[o,r]})},e.prototype.getPrecedingCharacter=function(){var e=this.selection.getCursor();return 0===e.column?0===e.row?"":this.doc.getNewLineCharacter():this.getLine(e.row)[e.column-1]},e.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},e}();f.$uid=0,f.prototype.$modes=s.$modes,f.prototype.getValue=f.prototype.toString,f.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},f.prototype.$overwrite=!1,f.prototype.$mode=null,f.prototype.$modeId=null,f.prototype.$scrollTop=0,f.prototype.$scrollLeft=0,f.prototype.$wrapLimit=80,f.prototype.$useWrapMode=!1,f.prototype.$wrapLimitRange={min:null,max:null},f.prototype.lineWidgets=null,f.prototype.isFullWidth=S,o.implement(f.prototype,a);var b=1,v=2,y=3,k=4,x=9,w=10,_=11,C=12;function S(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),s.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=f}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var o=e("./lib/lang"),i=e("./lib/oop"),r=e("./range").Range,s=function(){function e(){this.$options={}}return e.prototype.set=function(e){return i.mixin(this.$options,e),this},e.prototype.getOptions=function(){return o.copyObject(this.$options)},e.prototype.setOptions=function(e){this.$options=e},e.prototype.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var o=null;return n.forEach(function(e,n,i,s){return o=new r(e,n,i,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&o.isEqual(t.start)&&(o=null,1))}),o},e.prototype.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,d=i.length-c;e:for(var u=a.offset||0;u<=d;u++){for(var h=0;h<c;h++)if(-1==i[u+h].search(a[h]))continue e;var p=i[u],g=i[u+c-1],m=p.length-p.match(a[0])[0].length,f=g.match(a[c-1])[0].length;l&&l.end.row===u&&l.end.column>m||(s.push(l=new r(u,m,u+c-1,f)),c>2&&(u=u+c-2))}}else for(var b,v=0;v<i.length;v++)if(this.$isMultilineSearch(t)){var y=i.length-1;if(b=this.$multiLineForward(e,a,v,y)){var k=b.endRow<=y?b.endRow-1:y;k>v&&(v=k),s.push(new r(b.startRow,b.startCol,b.endRow,b.endCol))}}else for(b=o.getMatchOffsets(i[v],a),h=0;h<b.length;h++){var x=b[h];s.push(new r(v,x.offset,v,x.offset+x.length))}if(n){var w=n.start.column,_=n.end.column;for(v=0,h=s.length-1;v<h&&s[v].start.column<w&&0==s[v].start.row;)v++;for(var C=n.end.row-n.start.row;v<h&&s[h].end.column>_&&s[h].end.row==C;)h--;for(s=s.slice(v,h+1),v=0,h=s.length;v<h;v++)s[v].start.row+=n.start.row,s[v].end.row+=n.start.row}return s},e.prototype.parseReplaceString=function(e){for(var t="",n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);if(92!==i){if(36===i){if(++n>=o){t+="$";break}var r=e.charCodeAt(n);if(36===r){t+="$$";continue}if(48===r||38===r){t+="$&";continue}if(49<=r&&r<=57){t+="$"+e[n];continue}}t+=e[n]}else{if(++n>=o){t+="\\";break}switch(e.charCodeAt(n)){case 92:t+="\\";break;case 110:t+="\n";break;case 116:t+="\t"}}}return t||e},e.prototype.replace=function(e,t){var n=this.$options,o=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(o){var i=this.$isMultilineSearch(n);i&&(e=e.replace(/\r\n|\r|\n/g,"\n"));var r=o.exec(e);if(!r||!i&&r[0].length!=e.length)return null;if(t=n.regExp?this.parseReplaceString(t):t.replace(/\$/g,"$$$$"),t=e.replace(o,t),n.preserveCase){t=t.split("");for(var s=Math.min(e.length,e.length);s--;){var a=e[s];a&&a.toLowerCase()!=a?t[s]=t[s].toUpperCase():t[s]=t[s].toLowerCase()}t=t.join("")}return t}},e.prototype.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=o.escapeRegExp(n));var i=e.caseSensitive?"gm":"gmi";try{new RegExp(n,"u"),e.$supportsUnicodeFlag=!0,i+="u"}catch(t){e.$supportsUnicodeFlag=!1}if(e.wholeWord&&(n=function(e,t){var n=o.supportsLookbehind();function i(e,o){return void 0===o&&(o=!0),(n&&t.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(e)||t.regExp?n&&t.$supportsUnicodeFlag?o?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var r=Array.from(e),s=r[0],a=r[r.length-1];return i(s)+e+i(a,!1)}(n,e)),e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var r=new RegExp(n,i)}catch(e){r=!1}return e.re=r},e.prototype.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),o=[],i=0;i<n.length;i++)try{o.push(new RegExp(n[i],t))}catch(e){return!1}return o},e.prototype.$isMultilineSearch=function(e){return e.re&&/\\r\\n|\\r|\\n/.test(e.re.source)&&e.regExp&&!e.$isMultiLine},e.prototype.$multiLineForward=function(e,t,n,o){for(var i,r=l(e,n),s=n;s<=o;){for(var a=0;a<r&&!(s>o);a++){var c=e.getLine(s++);i=null==i?c:i+"\n"+c}var d=t.exec(i);if(t.lastIndex=0,d){var u=i.slice(0,d.index).split("\n"),h=d[0].split("\n"),p=n+u.length-1,g=u[u.length-1].length;return{startRow:p,startCol:g,endRow:p+h.length-1,endCol:1==h.length?g+h[0].length:h[h.length-1].length}}}return null},e.prototype.$multiLineBackward=function(e,t,n,o,i){for(var r,s=l(e,o),c=e.getLine(o).length-n,d=o;d>=i;){for(var u=0;u<s&&d>=i;u++){var h=e.getLine(d--);r=null==r?h:h+"\n"+r}var p=a(r,t,c);if(p){var g=r.slice(0,p.index).split("\n"),m=p[0].split("\n"),f=d+g.length,b=g[g.length-1].length;return{startRow:f,startCol:b,endRow:f+m.length-1,endCol:1==m.length?b+m[0].length:m[m.length-1].length}}}return null},e.prototype.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=this.$isMultilineSearch(t),r=this.$multiLineForward,s=this.$multiLineBackward,a=1==t.backwards,l=0!=t.skipCurrent,c=n.unicode,d=t.range,u=t.start;u||(u=d?d[a?"end":"start"]:e.selection.getRange()),u.start&&(u=u[l!=a?"end":"start"]);var h=d?d.start.row:0,p=d?d.end.row:e.getLength()-1;if(a)var g=function(e){var n=u.row;if(!f(n,u.column,e)){for(n--;n>=h;n--)if(f(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=p,h=u.row;n>=h;n--)if(f(n,Number.MAX_VALUE,e))return}};else g=function(e){var n=u.row;if(!f(n,u.column,e)){for(n+=1;n<=p;n++)if(f(n,0,e))return;if(0!=t.wrap)for(n=h,p=u.row;n<=p;n++)if(f(n,0,e))return}};if(t.$isMultiLine)var m=n.length,f=function(t,o,i){var r=a?t-m+1:t;if(!(r<0||r+m>e.getLength())){var s=e.getLine(r),l=s.search(n[0]);if(!(!a&&l<o||-1===l)){for(var c=1;c<m;c++)if(-1==(s=e.getLine(r+c)).search(n[c]))return;var d=s.match(n[m-1])[0].length;if(!(a&&d>o))return!!i(r,l,r+m-1,d)||void 0}}};else f=a?function(t,r,a){if(i){var l=s(e,n,r,t,h);if(!l)return!1;if(a(l.startRow,l.startCol,l.endRow,l.endCol))return!0}else{var d,u=e.getLine(t),p=[],g=0;for(n.lastIndex=0;d=n.exec(u);){var m=d[0].length;if(g=d.index,!m){if(g>=u.length)break;n.lastIndex=g+=o.skipEmptyMatch(u,g,c)}if(d.index+m>r)break;p.push(d.index,m)}for(var f=p.length-1;f>=0;f-=2){var b=p[f-1];if(a(t,b,t,b+(m=p[f])))return!0}}}:function(t,s,a){if(n.lastIndex=s,i){var l=r(e,n,t,p);if(l){var d=l.endRow<=p?l.endRow-1:p;d>t&&(t=d)}if(!l)return!1;if(a(l.startRow,l.startCol,l.endRow,l.endCol))return!0}else for(var u,h,g=e.getLine(t);h=n.exec(g);){var m=h[0].length;if(a(t,u=h.index,t,u+m))return!0;if(!m&&(n.lastIndex=u+=o.skipEmptyMatch(g,u,c),u>=g.length))return!1}};return{forEach:g}},e}();function a(e,t,n){for(var o=null,i=0;i<=e.length;){t.lastIndex=i;var r=t.exec(e);if(!r)break;var s=r.index+r[0].length;if(s>e.length-n)break;(!o||s>o.index+o[0].length)&&(o=r),i=r.index+1}return o}function l(e,t){var n={row:t,column:0},o=e.doc.positionToIndex(n)+5e3;return e.doc.indexToPosition(o).row+1}t.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=e("../lib/keys"),s=e("../lib/useragent"),a=r.KEY_MODS,l=function(){function e(e,t){this.$init(e,t,!1)}return e.prototype.$init=function(e,t,n){this.platform=t||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=n},e.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},e.prototype.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var o=this.commandKeyBinding;for(var i in o){var r=o[i];if(r==e)delete o[i];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(o[i]=r[0]))}}},e.prototype.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach(function(e){var o="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach(function(e){var t=this.parseKeys(e),n=a[t.hashId]+t.key;o+=(o?" ":"")+n,this._addCommandToBinding(o,"chainKeys")},this),o+=" "}var r=this.parseKeys(e),s=a[r.hashId]+r.key;this._addCommandToBinding(o+s,t,n)},this)},e.prototype._addCommandToBinding=function(e,t,n){var o,i=this.commandKeyBinding;if(t)if(!i[e]||this.$singleCommand)i[e]=t;else{Array.isArray(i[e])?-1!=(o=i[e].indexOf(t))&&i[e].splice(o,1):i[e]=[i[e]],"number"!=typeof n&&(n=c(t));var r=i[e];for(o=0;o<r.length&&!(c(r[o])>n);o++);r.splice(o,0,t)}else delete i[e]},e.prototype.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}},this)},e.prototype.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},e.prototype.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},e.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},e.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),o=r[n];if(r.FUNCTION_KEYS[o])n=r.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var i=0,s=t.length;s--;){var a=r.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;i|=a}return{key:n,hashId:i}},e.prototype.findKeyCommand=function(e,t){var n=a[e]+t;return this.commandKeyBinding[n]},e.prototype.handleKeyboard=function(e,t,n,o){if(!(o<0)){var i=a[t]+n,r=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||o>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:r}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},e.prototype.getStatusText=function(e,t){return t.$keyChain||""},e}();function c(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}var d=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.$singleCommand=!0,o}return i(t,e),t}(l);d.call=function(e,t,n){l.prototype.$init.call(e,t,n,!0)},l.call=function(e,t,n){l.prototype.$init.call(e,t,n,!1)},t.HashHandler=d,t.MultiHashHandler=l}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,a=e("../lib/event_emitter").EventEmitter,l=function(e){function t(t,n){var o=e.call(this,n,t)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)}),o}return i(t,e),t.prototype.exec=function(e,t,n){if(Array.isArray(e)){for(var o=e.length;o--;)if(this.exec(e[o],t,n))return!0;return!1}"string"==typeof e&&(e=this.commands[e]);var i={editor:t,command:e,args:n};return this.canExecute(e,t)?(i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue):(this._signal("commandUnavailable",i),!1)},t.prototype.canExecute=function(e,t){return"string"==typeof e&&(e=this.commands[e]),!(!e||t&&t.$readOnly&&!e.readOnly||0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))},t.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},t.prototype.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},t.prototype.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})},t}(s);r.implement(l.prototype,a),t.CommandManager=l}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,n){"use strict";var o=e("../lib/lang"),i=e("../config"),r=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){i.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(o.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=i.row+1;c++){var d=o.stringTrimLeft(o.stringTrimRight(e.session.doc.getLine(c)));0!==d.length&&(d=" "+d),l+=d}i.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new r(n.row,0,i.row+2,0),l),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,o=e.selection.rangeList.ranges,i=[];o.length<1&&(o=[e.selection.getRange()]);for(var s=0;s<o.length;s++)s==o.length-1&&(o[s].end.row===t&&o[s].end.column===n||i.push(new r(o[s].end.row,o[s].end.column,t,n))),0===s?0===o[s].start.row&&0===o[s].start.column||i.push(new r(0,0,o[s].start.row,o[s].start.column)):i.push(new r(o[s-1].end.row,o[s-1].end.column,o[s].start.row,o[s].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),s=0;s<i.length;s++)e.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(e){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),e.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys"],function(e,t,n){"use strict";var o=e("../lib/keys"),i=function(){function e(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=this.editor.$mouseHandler.$tooltip}return e.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},e.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},e.prototype.$onGutterKeyDown=function(e){if(this.annotationTooltip.isOpen)return e.preventDefault(),void(e.keyCode===o.escape&&this.annotationTooltip.hide());if(e.target===this.element){if(e.keyCode!=o.enter)return;e.preventDefault();var t=this.editor.getCursorPosition().row;return this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),void setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldLaneWidget(e),n=this.$findNearestAnnotation(e);if(null!==t||null!==n)return this.$findClosestNumber(t,n,e)===t?(this.activeLane="fold",this.activeRowIndex=t,this.$isCustomWidgetVisible(t)?void this.$focusCustomWidget(this.activeRowIndex):void this.$focusFoldWidget(this.activeRowIndex)):(this.activeRowIndex=n,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex))}.bind(this),10)}this.$handleGutterKeyboardInteraction(e),setTimeout(function(){this.editor._signal("gutterkeydown",new r(e,this))}.bind(this),10)},e.prototype.$handleGutterKeyboardInteraction=function(e){if(e.keyCode!==o.tab){if(e.keyCode===o.escape)return e.preventDefault(),this.$blurGutter(),this.element.focus(),void(this.lane=null);if(e.keyCode!==o.up)if(e.keyCode!==o.down){if(e.keyCode===o.left)return e.preventDefault(),void this.$switchLane("annotation");if(e.keyCode===o.right)return e.preventDefault(),void this.$switchLane("fold");if(e.keyCode!==o.enter&&e.keyCode!==o.space);else switch(e.preventDefault(),this.activeLane){case"fold":var t=this.$rowIndexToRow(this.activeRowIndex),n=this.editor.session.$gutterCustomWidgets[t];if(n)n.callbacks&&n.callbacks.onClick&&n.callbacks.onClick(e,t);else{if("start"===this.gutterLayer.session.foldWidgets[t]){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),e),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==t&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(t),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}if("end"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)])break}return;case"annotation":this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex)),this.annotationTooltip.$fromKeyboard=!0}}else switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}}else e.preventDefault()},e.prototype.$blurGutter=function(){if(null!==this.activeRowIndex)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hide()},e.prototype.$isFoldWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n="none"!==this.$getFoldWidget(e).style.display;return t&&n},e.prototype.$isCustomWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n=!!this.$getCustomWidget(e);return t&&n},e.prototype.$isAnnotationVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n="none"!==this.$getAnnotation(e).style.display;return t&&n},e.prototype.$getFoldWidget=function(e){return this.lines.get(e).element.childNodes[1]},e.prototype.$getCustomWidget=function(e){return this.lines.get(e).element.childNodes[3]},e.prototype.$getAnnotation=function(e){return this.lines.get(e).element.childNodes[2]},e.prototype.$findNearestFoldLaneWidget=function(e){if(this.$isCustomWidgetVisible(e))return e;if(this.$isFoldWidgetVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isCustomWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(e+t))return e+t;if(e-t>=0&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},e.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},e.prototype.$focusFoldWidget=function(e){if(null!=e){var t=this.$getFoldWidget(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$focusCustomWidget=function(e){if(null!=e){var t=this.$getCustomWidget(e);t&&(t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus())}},e.prototype.$focusAnnotation=function(e){if(null!=e){var t=this.$getAnnotation(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$blurFoldWidget=function(e){var t=this.$getFoldWidget(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$blurCustomWidget=function(e){var t=this.$getCustomWidget(e);t&&(t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur())},e.prototype.$blurAnnotation=function(e){var t=this.$getAnnotation(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isFoldWidgetVisible(e)||this.$isCustomWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=e,void(this.$isFoldWidgetVisible(e)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex))},e.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isFoldWidgetVisible(e)||this.$isCustomWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=e,void(this.$isFoldWidgetVisible(e)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex))},e.prototype.$moveAnnotationUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$findClosestNumber=function(e,t,n){return null===e?t:null===t||Math.abs(n-e)<=Math.abs(n-t)?e:t},e.prototype.$switchLane=function(e){switch(e){case"annotation":if("annotation"===this.activeLane)break;var t=this.$findNearestAnnotation(this.activeRowIndex);if(null==t)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if("fold"===this.activeLane)break;var n=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(null===n)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=n,this.$isCustomWidgetVisible(n)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex)}},e.prototype.$rowIndexToRow=function(e){var t=this.lines.get(e);return t?t.row:null},e.prototype.$rowToRowIndex=function(e){for(var t=0;t<this.lines.getLength();t++)if(this.lines.get(t).row==e)return t;return null},e}();t.GutterKeyboardHandler=i;var r=function(){function e(e,t){this.gutterKeyboardHandler=t,this.domEvent=e}return e.prototype.getKey=function(){return o.keyCodeToString(this.domEvent.keyCode)},e.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},e.prototype.isInAnnotationLane=function(){return"annotation"===this.gutterKeyboardHandler.activeLane},e.prototype.isInFoldLane=function(){return"fold"===this.gutterKeyboardHandler.activeLane},e}();t.GutterKeyboardEvent=r}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(e,t,n){"use strict";var o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,d=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,p=e("./search").Search,g=e("./range").Range,m=e("./lib/event_emitter").EventEmitter,f=e("./commands/command_manager").CommandManager,b=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,k=e("./keyboard/gutter_handler").GutterKeyboardHandler,x=e("./config").nls,w=e("./clipboard"),_=e("./lib/keys"),C=e("./lib/event"),S=e("./tooltip").HoverTooltip,E=function(){function e(t,n,o){this.id="editor"+ ++e.$uid,this.session,this.$toDestroy=[];var i=t.getContainerElement();this.container=i,this.renderer=t,this.commands=new f(a.isMac?"mac":"win",b),"object"==typeof document&&(this.textInput=new l(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new d(this)),this.keyBinding=new u(this),this.$search=(new p).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(n||o&&o.session||new h("")),v.resetOptions(this),o&&this.setOptions(o),v._signal("editor",this)}return e.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},e.prototype.startOperation=function(e){this.session.startOperation(e)},e.prototype.endOperation=function(e){this.session.endOperation(e)},e.prototype.onStartOperation=function(e){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,e||(this.previousCommand=null)},e.prototype.onEndOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue)return void(this.curOp=null);if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var o=this.selection.getRange(),i=this.renderer.layerConfig;(o.start.row>=i.lastRow||o.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},e.prototype.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,o=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),o=o&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else o=o&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(o=!1),o?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},e.prototype.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],function(o){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(o&&o.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},e.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},e.prototype.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),t&&(t.$editor=null),e&&e._signal("changeEditor",{editor:this}),e&&(e.$editor=this),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},e.prototype.getSession=function(){return this.session},e.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},e.prototype.getValue=function(){return this.session.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.resize=function(e){this.renderer.onResize(e)},e.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},e.prototype.getTheme=function(){return this.renderer.getTheme()},e.prototype.setStyle=function(e,t){this.renderer.setStyle(e,t)},e.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},e.prototype.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container).fontSize},e.prototype.setFontSize=function(e){this.setOption("fontSize",e)},e.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach(function(e){t.removeMarker(e)}),t.$bracketHighlight=null);var n=e.getCursorPosition(),o=e.getKeyboardHandler(),i=o&&o.$getDirectionForHighlight&&o.$getDirectionForHighlight(e),r=t.getMatchingBracketRanges(n,i);if(!r){var s=new y(t,n.row,n.column).getCurrentToken();if(s&&/\b(?:tag-open|tag-name)/.test(s.type)){var a=t.getMatchingTags(n);a&&(r=[a.openTagName.isEmpty()?a.openTag:a.openTagName,a.closeTagName.isEmpty()?a.closeTag:a.closeTagName])}}if(!r&&t.$mode.getMatching&&(r=t.$mode.getMatching(e.session)),r){var l="ace_bracket";Array.isArray(r)?1==r.length&&(l="ace_error_bracket"):r=[r],2==r.length&&(0==g.comparePoints(r[0].end,r[1].start)?r=[g.fromPoints(r[0].start,r[1].end)]:0==g.comparePoints(r[0].start,r[1].end)&&(r=[g.fromPoints(r[1].start,r[0].end)])),t.$bracketHighlight={ranges:r,markerIds:r.map(function(e){return t.addMarker(e,l,"text")})},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}},50)}},e.prototype.focus=function(){this.textInput.focus()},e.prototype.isFocused=function(){return this.textInput.isFocused()},e.prototype.blur=function(){this.textInput.blur()},e.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},e.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},e.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},e.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},e.prototype.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},e.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},e.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},e.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},e.prototype.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new g(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},e.prototype.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),o=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",o)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},e.prototype.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,o=t.end.column,i=e.getLine(t.start.row),r=i.substring(n,o);if(!(r.length>5e3)&&/[\w\d]/.test(r)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=i.substring(n-1,o+1);if(s.test(a))return s}}},e.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},e.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},e.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},e.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},e.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},e.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},e.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},e.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},e.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},e.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var o=this.selection.getAllRanges(),i=0;i<o.length;i++){var r=o[i];i&&o[i-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),w.lineMode=!!n&&s.text,s.text},e.prototype.onCopy=function(){this.commands.exec("copy",this)},e.prototype.onCut=function(){this.commands.exec("cut",this)},e.prototype.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},e.prototype.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===w.lineMode,o=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?o.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach(function(e){o.insert({row:e.start.row,column:0},t)});else{var i=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,s=!(2!=i.length||i[0]&&i[1]);if(i.length!=r.length||s)return this.commands.exec("insertstring",this,t);for(var a=r.length;a--;){var l=r[a];l.isEmpty()||o.remove(l),o.insert(l.start,i[a])}}},e.prototype.execCommand=function(e,t){return this.commands.exec(e,this,t)},e.prototype.insert=function(e,t){var n=this.session,o=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=o.transformAction(n.getState(i.row),"insertion",this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty())this.session.getOverwrite()&&-1==e.indexOf("\n")&&((s=g.fromPoints(i,i)).end.column+=e.length,this.session.remove(s));else{var s=this.getSelectionRange();i=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(i.row);if(i.column>a.search(/\S|$/)){var l=a.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var c=i.column,d=n.getState(i.row),u=(a=n.getLine(i.row),o.checkOutdent(d,a,e));if(n.insert(i,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new g(i.row,c+r.selection[0],i.row,c+r.selection[1])):this.selection.setSelectionRange(new g(i.row+r.selection[0],r.selection[1],i.row+r.selection[2],r.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var h=o.getNextLineIndent(d,a.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},h)}u&&o.autoOutdent(d,n,i.row)}},e.prototype.autoIndent=function(){for(var e=this.session,t=e.getMode(),n=this.selection.isEmpty()?[new g(0,0,e.doc.getLength()-1,0)]:this.selection.getAllRanges(),o="",i="",r="",s=e.getTabString(),a=0;a<n.length;a++)for(var l=n[a].start.row,c=n[a].end.row,d=l;d<=c;d++){d>0&&(o=e.getState(d-1),i=e.getLine(d-1),r=t.getNextLineIndent(o,i,s));var u=e.getLine(d),h=t.$getIndent(u);if(r!==h){if(h.length>0){var p=new g(d,0,d,h.length);e.remove(p)}r.length>0&&e.insert({row:d,column:0},r)}t.autoOutdent(o,e,d)}},e.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},e.prototype.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},e.prototype.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},e.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},e.prototype.getOverwrite=function(){return this.session.getOverwrite()},e.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},e.prototype.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},e.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},e.prototype.setDragDelay=function(e){this.setOption("dragDelay",e)},e.prototype.getDragDelay=function(){return this.getOption("dragDelay")},e.prototype.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},e.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},e.prototype.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},e.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},e.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},e.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},e.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},e.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},e.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},e.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},e.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},e.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},e.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},e.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},e.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},e.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},e.prototype.setReadOnly=function(e){this.setOption("readOnly",e)},e.prototype.getReadOnly=function(){return this.getOption("readOnly")},e.prototype.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},e.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},e.prototype.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},e.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},e.prototype.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},e.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,o=n.getState(t.start.row),i=n.getMode().transformAction(o,"deletion",this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if("\n"==r[r.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},e.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},e.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},e.prototype.setGhostText=function(e,t){this.renderer.setGhostText(e,t)},e.prototype.removeGhostText=function(){this.renderer.removeGhostText()},e.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,o,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),o=new g(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),o=new g(e.row,t-2,e.row,t)),this.session.replace(o,n),this.session.selection.moveToPosition(o.end)}}},e.prototype.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},e.prototype.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},e.prototype.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n))return d=this.$getSelectedRows(),void e.indentRows(d.first,d.last,"\t")}var o=e.getLine(t.start.row),i=t.start,r=e.getTabSize(),a=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var l=r-a%r,c=s.stringRepeat(" ",l);else{for(l=a%r;" "==o[t.start.column-1]&&l;)t.start.column--,l--;this.selection.setSelectionRange(t),c="\t"}return this.insert(c)}var d=this.$getSelectedRows();e.indentRows(d.first,d.last,"\t")},e.prototype.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},e.prototype.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},e.prototype.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],o=e.first;o<=e.last;o++)n.push(t.getLine(o));n.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var i=new g(0,0,0,0);for(o=e.first;o<=e.last;o++){var r=t.getLine(o);i.start.row=o,i.end.row=o,i.end.column=r.length,t.replace(i,n[o-e.first])}},e.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},e.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},e.prototype.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var o=this.session.getLine(e);n.lastIndex<t;){var i=n.exec(o);if(i.index<=t&&i.index+i[0].length>=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},e.prototype.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,o=new g(t,n-1,t,n),i=this.session.getTextRange(o);if(!isNaN(parseFloat(i))&&isFinite(i)){var r=this.getNumberAt(t,n);if(r){var s=r.value.indexOf(".")>=0?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),d=new g(t,r.start,t,r.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},e.prototype.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),o=this.selection.getWordRange().start.column,i=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),r=t-o-1;r<0&&(r=0);var a=0,l=0,c=this;n.match(/[A-Za-z0-9_]+/)&&i.forEach(function(t,i){l=a+t.length,r>=a&&r<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+o),c.selection.selectTo(e,l+o)),a=l});for(var d,u=this.$toggleWordPairs,h=0;h<u.length;h++)for(var p=u[h],g=0;g<=1;g++){var m=+!g,f=n.match(new RegExp("^\\s?_?("+s.escapeRegExp(p[g])+")\\s?$","i"));f&&n.match(new RegExp("([_]|^|\\s)("+s.escapeRegExp(f[1])+")($|\\s)","g"))&&(d=n.replace(new RegExp(s.escapeRegExp(p[g]),"i"),function(e){var t=p[m];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+p[m].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(d),d="")}},e.prototype.findLinkAt=function(e,t){var n,i,r=this.session.getLine(e).split(/((?:https?|ftp):\/\/[\S]+)/),s=t;s<0&&(s=0);var a,l=0,c=0;try{for(var d=o(r),u=d.next();!u.done;u=d.next()){var h=u.value;if(c=l+h.length,s>=l&&s<=c&&h.match(/((?:https?|ftp):\/\/[\S]+)/)){a=h.replace(/[\s:.,'";}\]]+$/,"");break}l=c}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return a},e.prototype.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},e.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},e.prototype.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),o=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var r=o?n.start:n.end,s=t.insert(r,t.getTextRange(n));n.start=r,n.end=s,e.setSelectionRange(n,o)}},e.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},e.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},e.prototype.moveText=function(e,t,n){return this.session.moveText(e,t,n)},e.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},e.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},e.prototype.$moveLines=function(e,t){var n,o,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var r=i.toOrientedRange();n=this.$getSelectedRows(r),o=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(o=0),r.moveBy(o,0),i.fromOrientedRange(r)}else{var s=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0);for(var h=(n=this.$getSelectedRows(s[d])).first,p=n.last;++d<c;){l&&s[d].moveBy(l,0);var g=this.$getSelectedRows(s[d]);if(t&&g.first!=p)break;if(!t&&g.first>p+1)break;p=g.last}for(d--,a=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(u=d+1);u<=d;)s[u].moveBy(a,0),u++;t||(a=0),l+=a}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},e.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},e.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},e.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},e.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},e.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},e.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},e.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},e.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},e.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},e.prototype.$moveByPage=function(e,t){var n=this.renderer,o=this.renderer.layerConfig,i=e*Math.floor(o.height/o.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(i,0)}):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,i*o.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(r)},e.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},e.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},e.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},e.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},e.prototype.scrollPageDown=function(){this.$moveByPage(1)},e.prototype.scrollPageUp=function(){this.$moveByPage(-1)},e.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},e.prototype.scrollToLine=function(e,t,n,o){this.renderer.scrollToLine(e,t,n,o)},e.prototype.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},e.prototype.getCursorPosition=function(){return this.selection.getCursor()},e.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},e.prototype.getSelectionRange=function(){return this.selection.getRange()},e.prototype.selectAll=function(){this.selection.selectAll()},e.prototype.clearSelection=function(){this.selection.clearSelection()},e.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},e.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},e.prototype.jumpToMatching=function(e,t){var n=this.getCursorPosition(),o=new y(this.session,n.row,n.column),i=o.getCurrentToken(),r=0;i&&-1!==i.type.indexOf("tag-name")&&(i=o.stepBackward());var s=i||o.stepForward();if(s){var a,l,c=!1,d={},u=n.column-s.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;u<s.value.length&&!c;u++)if(h[s.value[u]])switch(l=h[s.value[u]]+"."+s.type.replace("rparen","lparen"),isNaN(d[l])&&(d[l]=0),s.value[u]){case"(":case"[":case"{":d[l]++;break;case")":case"]":case"}":d[l]--,-1===d[l]&&(a="bracket",c=!0)}}else-1!==s.type.indexOf("tag-name")&&(isNaN(d[s.value])&&(d[s.value]=0),"<"===i.value&&r>1?d[s.value]++:"</"===i.value&&d[s.value]--,-1===d[s.value]&&(a="tag",c=!0));c||(i=s,r++,s=o.stepForward(),u=0)}while(s&&!c);if(a){var p,m;if("bracket"===a)(p=this.session.getBracketRange(n))||(m=(p=new g(o.getCurrentTokenRow(),o.getCurrentTokenColumn()+u-1,o.getCurrentTokenRow(),o.getCurrentTokenColumn()+u-1)).start,(t||m.row===n.row&&Math.abs(m.column-n.column)<2)&&(p=this.session.getBracketRange(m)));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;if(0===(p=new g(o.getCurrentTokenRow(),o.getCurrentTokenColumn()-2,o.getCurrentTokenRow(),o.getCurrentTokenColumn()-2)).compare(n.row,n.column)){var f=this.session.getMatchingTags(n);f&&(f.openTag.contains(n.row,n.column)?m=(p=f.closeTag).start:(p=f.openTag,m=f.closeTag.start.row===n.row&&f.closeTag.start.column===n.column?p.end:p.start))}m=m||p.start}(m=p&&p.cursor||m)&&(e?p&&t?this.selection.setRange(p):p&&p.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(m.row,m.column):this.selection.moveTo(m.row,m.column))}}},e.prototype.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},e.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},e.prototype.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},e.prototype.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},e.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},e.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},e.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},e.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},e.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},e.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},e.prototype.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),o=0;return n?(this.$tryReplace(n,e)&&(o=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),o):o},e.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),o=0;if(!n.length)return o;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;r>=0;--r)this.$tryReplace(n[r],e)&&o++;return this.selection.setSelectionRange(i),o},e.prototype.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},e.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},e.prototype.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var r=this.$search.find(this.session);return t.preventScroll?r:r?(this.revealRange(r,n),r):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},e.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},e.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},e.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},e.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.destroy=function(){this.destroyed=!0,this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=[]),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},e.prototype.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,o=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var r=this.on("changeSelection",function(){o=!0}),s=this.renderer.on("beforeRender",function(){o&&(t=n.renderer.container.getBoundingClientRect())}),a=this.renderer.on("afterRender",function(){if(o&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,r=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=r.top-s.offset;null!=(o=r.top>=0&&a+t.top<0||!(r.top<s.height&&r.top+t.top+s.lineHeight>window.innerHeight)&&null)&&(i.style.top=a+"px",i.style.left=r.left+"px",i.style.height=s.lineHeight+"px",i.scrollIntoView(o)),o=t=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",r),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},e.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},e.prototype.prompt=function(e,t,n){var o=this;v.loadModule("ace/ext/prompt",function(i){i.prompt(o,e,t,n)})},Object.defineProperty(e.prototype,"hoverTooltip",{get:function(){return this.$hoverTooltip||(this.$hoverTooltip=new S(this.container))},set:function(e){this.$hoverTooltip&&this.$hoverTooltip.destroy(),this.$hoverTooltip=e},enumerable:!1,configurable:!0}),e}();E.$uid=0,E.prototype.curOp=null,E.prototype.prevOp={},E.prototype.$mergeableCommands=["backspace","del","insertstring"],E.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],i.implement(E.prototype,m),v.defineOptions(E.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){var t=this;if(this.textInput.setReadOnly(e),!this.destroyed){this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(e){var n=!1;if(e&&"keydown"==e.type){if(e&&e.key&&!e.ctrlKey&&!e.metaKey&&(" "==e.key&&e.preventDefault(),n=1==e.key.length),!n)return}else e&&"exec"!==e.type&&(n=!0);if(n){var o=r.createElement("div");o.textContent=x("editor.tooltip.disable-editing","Editing is disabled"),t.hoverTooltip.isOpen||t.hoverTooltip.showForRange(t,t.getSelectionRange(),o)}else t.hoverTooltip&&t.hoverTooltip.isOpen&&t.hoverTooltip.hide()});var n=this.textInput.getElement();e?(C.addListener(n,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(C.removeListener(n,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback))}},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?M.attach(this):M.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?M.attach(this):M.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder");var t=r.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){var t,n={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0},o=function(e){if(e.target==this.renderer.scroller&&e.keyCode===_.enter){e.preventDefault();var t=this.getCursorPosition().row;this.isRowVisible(t)||this.scrollToLine(t,!0,!0),this.focus()}};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(a.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",x("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",x("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",o.bind(this)),this.commands.addCommand(n),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",x("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",x("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),t||(t=new k(this)),t.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",o.bind(this)),this.commands.removeCommand(n),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),t&&t.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(e){this.$textInputAriaLabel=e},initialValue:""},enableMobileMenu:{set:function(e){this.$enableMobileMenu=e},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var M={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=E}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var o=e("../lib/dom"),i=function(){function e(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return e.prototype.moveContainer=function(e){o.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},e.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},e.prototype.computeLineTop=function(e,t,n){var o=t.firstRowScreen*t.lineHeight,i=Math.floor(o/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-i*this.canvasHeight},e.prototype.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},e.prototype.getLength=function(){return this.cells.length},e.prototype.get=function(e){return this.cells[e]},e.prototype.shift=function(){this.$cacheCell(this.cells.shift())},e.prototype.pop=function(){this.$cacheCell(this.cells.pop())},e.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=o.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},e.prototype.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=o.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},e.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},e.prototype.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},e.prototype.createCell=function(e,t,n,i){var r=this.cellCache.pop();if(!r){var s=o.createElement("div");i&&i(s),this.element.appendChild(s),r={element:s,text:"",row:e}}return r.row=e,r},e}();t.Lines=i}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,t,n){"use strict";var o=e("../lib/dom"),i=e("../lib/oop"),r=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=e("./lines").Lines,l=e("../config").nls,c=function(){function e(e){this.$showCursorMarker=null,this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1}return e.prototype.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},e.prototype.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},e.prototype.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],o=n.row,i=this.$annotations[o];i||(i=this.$annotations[o]={text:[],type:[],displayText:[]});var s=n.text,a=n.text,l=n.type;s=s?r.escapeHTML(s):n.html||"",a=a||n.html||"",-1===i.text.indexOf(s)&&(i.text.push(s),i.type.push(l),i.displayText.push(a));var c=n.className;c?i.className=c:"error"===l?i.className=" ace_error":"security"!==l||/\bace_error\b/.test(i.className)?"warning"!==l||/\bace_(error|security)\b/.test(i.className)?"info"!==l||i.className?"hint"!==l||i.className||(i.className=" ace_hint"):i.className=" ace_info":i.className=" ace_warning":i.className=" ace_security"}},e.prototype.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var o=new Array(n+1);o.unshift(t,1),this.$annotations.splice.apply(this.$annotations,o)}}},e.prototype.update=function(e){this.config=e;var t=this.session,n=e.firstRow,o=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=o,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var i=t.getNextFoldLine(n),r=i?i.start.row:1/0,s=null,a=-1,l=n;;){if(l>r&&(l=i.end.row+1,r=(i=t.getNextFoldLine(l,i))?i.start.row:1/0),l>o){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,e,this.session,d),this.$lines.push(s)),this.$renderCell(s,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e),this.$showCursorMarker&&this.$highlightGutterLine&&this.$updateCursorMarker()},e.prototype.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,o=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+o-1);var r=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();(r+=s.left+s.right)===this.gutterWidth||isNaN(r)||(this.gutterWidth=r,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",r))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},e.prototype.updateLineHighlight=function(){if(this.$showCursorMarker&&this.$updateCursorMarker(),this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var o=t[n];if(o.row>=this.$cursorRow){if(o.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;o=t[n-1]}o.element.className="ace_gutter-active-line "+o.element.className,this.$cursorCell=o;break}}}}},e.prototype.$updateCursorMarker=function(){if(this.session){var e=this.session;this.$highlightElement||(this.$highlightElement=o.createElement("div"),this.$highlightElement.className="ace_gutter-cursor",this.$highlightElement.style.pointerEvents="none",this.element.appendChild(this.$highlightElement));var t=e.selection.cursor,n=this.config,i=this.$lines,r=n.firstRowScreen*n.lineHeight,s=Math.floor(r/i.canvasHeight),a=e.documentToScreenRow(t)*n.lineHeight-s*i.canvasHeight;o.setStyle(this.$highlightElement.style,"height",n.lineHeight+"px"),o.setStyle(this.$highlightElement.style,"top",a+"px")}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),o=this.oldLastRow;if(this.oldLastRow=n,!t||o<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(o>n)for(i=this.session.getFoldedRowCount(n+1,o);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>o&&this.$lines.push(this.$renderLines(e,o+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$renderLines=function(e,t,n){for(var o=[],i=t,r=this.session.getNextFoldLine(i),s=r?r.start.row:1/0;i>s&&(i=r.end.row+1,s=(r=this.session.getNextFoldLine(i,r))?r.start.row:1/0),!(i>n);){var a=this.$lines.createCell(i,e,this.session,d);this.$renderCell(a,e,r,i),o.push(a),i++}return o},e.prototype.$renderCell=function(e,t,n,i){var r=e.element,s=this.session,a=r.childNodes[0],c=r.childNodes[1],d=r.childNodes[2],u=r.childNodes[3],h=d.firstChild,p=s.$firstLineNumber,g=s.$breakpoints,m=s.$decorations,f=s.gutterRenderer||this.$renderer,b=this.$showFoldWidgets&&s.foldWidgets,v=n?n.start.row:Number.MAX_VALUE,y=t.lineHeight+"px",k=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",x=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",w=(f?f.getText(s,i):i+p).toString();if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&i>=v&&this.$cursorRow<=n.end.row)&&(k+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),g[i]&&(k+=g[i]),m[i]&&(k+=m[i]),this.$annotations[i]&&i!==v&&(k+=this.$annotations[i].className),b){var _=b[i];null==_&&(_=b[i]=s.getFoldWidget(i))}if(_){var C="ace_fold-widget ace_"+_,S="start"==_&&i==v&&i<n.end.row;if(S){C+=" ace_closed";for(var E="",M=!1,$=i+1;$<=n.end.row;$++)if(this.$annotations[$]){if(" ace_error"===this.$annotations[$].className){M=!0,E=" ace_error_fold";break}" ace_security"===this.$annotations[$].className?(M=!0,E=" ace_security_fold"):" ace_warning"===this.$annotations[$].className&&" ace_security_fold"!==E&&(M=!0,E=" ace_warning_fold")}k+=E}else C+=" ace_open";c.className!=C&&(c.className=C),o.setStyle(c.style,"height",y),o.setStyle(c.style,"display","inline-block"),c.setAttribute("role","button"),c.setAttribute("tabindex","-1");var A=s.getFoldWidgetRange(i);A?c.setAttribute("aria-label",l("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[A.start.row+1,A.end.row+1])):n?c.setAttribute("aria-label",l("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[n.start.row+1,n.end.row+1])):c.setAttribute("aria-label",l("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[i+1])),S?(c.setAttribute("aria-expanded","false"),c.setAttribute("title",l("gutter.code-folding.closed.title","Unfold code"))):(c.setAttribute("aria-expanded","true"),c.setAttribute("title",l("gutter.code-folding.open.title","Fold code")))}else c&&(o.setStyle(c.style,"display","none"),c.setAttribute("tabindex","0"),c.removeAttribute("role"),c.removeAttribute("aria-label"));var T=this.session.$gutterCustomWidgets[i];if(T?this.$addCustomWidget(i,T,e):u&&this.$removeCustomWidget(i,e),M&&this.$showFoldedAnnotations){switch(d.className="ace_gutter_annotation",h.className=x,h.className+=E,o.setStyle(h.style,"height",y),o.setStyle(d.style,"display","block"),o.setStyle(d.style,"height",y),E){case" ace_error_fold":R=l("gutter.annotation.aria-label.error","Error, read annotations row $0",[w]);break;case" ace_security_fold":R=l("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[w]);break;case" ace_warning_fold":R=l("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[w])}d.setAttribute("aria-label",R),d.setAttribute("tabindex","-1"),d.setAttribute("role","button")}else if(this.$annotations[i]){var R;switch(d.className="ace_gutter_annotation",h.className=x,this.$useSvgGutterIcons?h.className+=this.$annotations[i].className:r.classList.add(this.$annotations[i].className.replace(" ","")),o.setStyle(h.style,"height",y),o.setStyle(d.style,"display","block"),o.setStyle(d.style,"height",y),this.$annotations[i].className){case" ace_error":R=l("gutter.annotation.aria-label.error","Error, read annotations row $0",[w]);break;case" ace_security":R=l("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[w]);break;case" ace_warning":R=l("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[w]);break;case" ace_info":R=l("gutter.annotation.aria-label.info","Info, read annotations row $0",[w]);break;case" ace_hint":R=l("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[w])}d.setAttribute("aria-label",R),d.setAttribute("tabindex","-1"),d.setAttribute("role","button")}else o.setStyle(d.style,"display","none"),d.removeAttribute("aria-label"),d.removeAttribute("role"),d.setAttribute("tabindex","0");return w!==a.data&&(a.data=w),r.className!=k&&(r.className=k),o.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,s)+"px"),o.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,s)+"px"),e.text=w,"none"!==d.style.display||"none"!==c.style.display||T?e.element.setAttribute("aria-hidden",!1):e.element.setAttribute("aria-hidden",!0),e},e.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e,!e&&this.$highlightElement&&(this.$highlightElement.remove(),this.$highlightElement=null)},e.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},e.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},e.prototype.setShowFoldWidgets=function(e){e?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},e.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},e.prototype.$hideFoldWidget=function(e,t){var n=t||this.$getGutterCell(e);if(n&&n.element){var i=n.element.childNodes[1];i&&o.setStyle(i.style,"display","none")}},e.prototype.$showFoldWidget=function(e,t){var n=t||this.$getGutterCell(e);if(n&&n.element){var i=n.element.childNodes[1];i&&this.session.foldWidgets&&this.session.foldWidgets[n.row]&&o.setStyle(i.style,"display","inline-block")}},e.prototype.$getGutterCell=function(e){var t=this.$lines.cells,n=0,o=t.length-1;if(!(e<t[0].row||e>t[o].row)){for(;n<=o;){var i=Math.floor((n+o)/2),r=t[i];if(r.row>e)o=i-1;else{if(!(r.row<e))return r;n=i+1}}return r}},e.prototype.$addCustomWidget=function(e,t,n){var i=t.className,r=t.label,s=t.title,a=t.callbacks;this.session.$gutterCustomWidgets[e]={className:i,label:r,title:s,callbacks:a},this.$hideFoldWidget(e,n);var l=n||this.$getGutterCell(e);if(l&&l.element){var c=l.element.querySelector(".ace_custom-widget");c&&c.remove(),(c=o.createElement("span")).className="ace_custom-widget ".concat(i),c.setAttribute("tabindex","-1"),c.setAttribute("role","button"),c.setAttribute("aria-label",r),c.setAttribute("title",s),o.setStyle(c.style,"display","inline-block"),o.setStyle(c.style,"height","inherit"),a&&a.onClick&&c.addEventListener("click",function(t){a.onClick(t,e),t.stopPropagation()}),l.element.appendChild(c)}},e.prototype.$removeCustomWidget=function(e,t){delete this.session.$gutterCustomWidgets[e],this.$showFoldWidget(e,t);var n=t||this.$getGutterCell(e);if(n&&n.element){var o=n.element.querySelector(".ace_custom-widget");o&&n.element.removeChild(o)}},e.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},e.prototype.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0},e}();function d(e){var t=document.createTextNode("");e.appendChild(t);var n=o.createElement("span");e.appendChild(n);var i=o.createElement("span");e.appendChild(i);var r=o.createElement("span");return i.appendChild(r),e}c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer=void 0,c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,i.implement(c.prototype,s),t.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,n){"use strict";var o=e("../range").Range,i=e("../lib/dom"),r=function(){function e(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}return e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setMarkers=function(e){this.markers=e},e.prototype.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},e.prototype.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var o=this.markers[n];if(o.range){var i=o.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),o.renderer){var r=this.$getTop(i.start.row,e),s=this.$padding+i.start.column*e.characterWidth;o.renderer(t,i,s,r,e)}else"fullLine"==o.type?this.drawFullLineMarker(t,i,o.clazz,e):"screenLine"==o.type?this.drawScreenLineMarker(t,i,o.clazz,e):i.isMultiLine()?"text"==o.type?this.drawTextMarker(t,i,o.clazz,e):this.drawMultiLineMarker(t,i,o.clazz,e):this.drawSingleLineMarker(t,i,o.clazz+" ace_start ace_br15",e)}else o.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},e.prototype.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},e.prototype.drawTextMarker=function(e,t,n,i,r){for(var a=this.session,l=t.start.row,c=t.end.row,d=l,u=0,h=0,p=a.getScreenLastRowColumn(d),g=new o(d,t.start.column,d,h);d<=c;d++)g.start.row=g.end.row=d,g.start.column=d==l?t.start.column:a.getRowWrapIndent(d),g.end.column=p,u=h,h=p,p=d+1<c?a.getScreenLastRowColumn(d+1):d==c?0:t.end.column,this.drawSingleLineMarker(e,g,n+(d==l?" ace_start":"")+" ace_br"+s(d==l||d==l+1&&t.start.column,u<h,h>p,d==c),i,d==c?0:1,r)},e.prototype.drawMultiLineMarker=function(e,t,n,o,i){var r=this.$padding,s=o.lineHeight,a=this.$getTop(t.start.row,o),l=r+t.start.column*o.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",o,null,i)):this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:"+r+"px;top:"+a+"px;left:"+l+"px;"+(i||"")),this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",o,null,i)}else{a=this.$getTop(t.end.row,o);var d=t.end.column*o.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+d+"px;top:"+a+"px;left:"+r+"px;"+(i||""))}if(!((s=(t.end.row-t.start.row-1)*o.lineHeight)<=0)){a=this.$getTop(t.start.row+1,o);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:"+r+"px;top:"+a+"px;left:"+r+"px;"+(i||""))}},e.prototype.drawSingleLineMarker=function(e,t,n,o,i,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,o,i,r);var s=o.lineHeight,a=(t.end.column+(i||0)-t.start.column)*o.characterWidth,l=this.$getTop(t.start.row,o),c=this.$padding+t.start.column*o.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(r||""))},e.prototype.drawBidiSingleLineMarker=function(e,t,n,o,i,r){var s=o.lineHeight,a=this.$getTop(t.start.row,o),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(n,"height:"+s+"px;width:"+(e.width+(i||0))+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))},this)},e.prototype.drawFullLineMarker=function(e,t,n,o,i){var r=this.$getTop(t.start.row,o),s=o.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,o)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(i||""))},e.prototype.drawScreenLineMarker=function(e,t,n,o,i){var r=this.$getTop(t.start.row,o),s=o.lineHeight;this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(i||""))},e}();function s(e,t,n,o){return(e?1:0)|(t?2:0)|(n?4:0)|(o?8:0)}r.prototype.$padding=0,t.Marker=r}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,t,n){var o=new Set(["text","rparen","lparen"]);t.isTextToken=function(e){return o.has(e)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("../lib/dom"),r=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=e("../config").nls,c=e("./text_util").isTextToken,d=function(){function e(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return e.prototype.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},e.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},e.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},e.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},e.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},e.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},e.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},e.prototype.setSession=function(e){this.session=e,e&&this.$computeTabString()},e.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},e.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showTabs?((o=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",o.textContent=r.stringRepeat(this.TAB_CHAR,n),t.push(o)):t.push(this.dom.createTextNode(r.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o,i="ace_indent-guide",s=this.showSpaces?" ace_invisible ace_invisible_space":"",a=this.showSpaces?r.stringRepeat(this.SPACE_CHAR,this.tabSize):r.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",c=this.showTabs?r.stringRepeat(this.TAB_CHAR,this.tabSize):a;(o=this.dom.createElement("span")).className=i+s,o.textContent=a,this.$tabStrings[" "]=o,(o=this.dom.createElement("span")).className=i+l,o.textContent=c,this.$tabStrings["\t"]=o}},e.prototype.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var o=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<o;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(o)){o=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,d=(a=o,(l=this.session.getNextFoldLine(a))?l.start.row:1/0);a>d&&(a=l.end.row+1,d=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>i);){var u=r[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==d&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var h=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=h&&(c=!0,u.style.height=h)}a++}if(c)for(;s<this.$lines.cells.length;){var p=this.$lines.cells[s++];p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+"px"}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,o=t?t.lastRow:-1;if(!t||o<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(e,t,n){for(var o=[],r=t,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;r>a&&(r=s.end.row+1,a=(s=this.session.getNextFoldLine(r,s))?s.start.row:1/0),!(r>n);){var l=this.$lines.createCell(r,e,this.session),c=l.element;this.dom.removeChildren(c),i.setStyle(c.style,"height",this.$lines.computeLineHeight(r,e,this.session)+"px"),i.setStyle(c.style,"top",this.$lines.computeLineTop(r,e,this.session)+"px"),this.$renderLine(c,r,r==a&&s),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",o.push(l),r++}return o},e.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,o=this.$lines;o.getLength();)o.pop();o.push(this.$renderLinesFragment(e,t,n))},e.prototype.$renderToken=function(e,t,n,o){for(var i,s=this,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,d=this.dom.createFragment(this.element),u=0;i=a.exec(o);){var h=i[1],p=i[2],g=i[3],m=i[4],f=i[5];if(s.showSpaces||!p){var b=u!=i.index?o.slice(u,i.index):"";if(u=i.index+i[0].length,b&&d.appendChild(this.dom.createTextNode(b,this.element)),h){var v=s.session.getScreenTabSize(t+i.index),y=s.$tabStrings[v].cloneNode(!0);y.charCount=1,d.appendChild(y),t+=v-1}else p?s.showSpaces?((x=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",x.textContent=r.stringRepeat(s.SPACE_CHAR,p.length),d.appendChild(x)):d.appendChild(this.dom.createTextNode(p,this.element)):g?((x=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",x.textContent=r.stringRepeat(s.SPACE_CHAR,g.length),d.appendChild(x)):m?(t+=1,(x=this.dom.createElement("span")).style.width=2*s.config.characterWidth+"px",x.className=s.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",x.textContent=s.showSpaces?s.SPACE_CHAR:m,d.appendChild(x)):f&&(t+=1,(x=this.dom.createElement("span")).style.width=2*s.config.characterWidth+"px",x.className="ace_cjk",x.textContent=f,d.appendChild(x))}}if(d.appendChild(this.dom.createTextNode(u?o.slice(u):o,this.element)),c(n.type))e.appendChild(d);else{var k="ace_"+n.type.replace(/\./g," ace_"),x=this.dom.createElement("span");"fold"==n.type&&(x.style.width=n.value.length*this.config.characterWidth+"px",x.setAttribute("title",l("inline-fold.closed.title","Unfold code"))),x.className=k,x.appendChild(d),e.appendChild(x)}return t+o.length},e.prototype.renderIndentGuide=function(e,t,n){var o=t.search(this.$indentGuideRe);if(o<=0||o>=n)return t;if(" "==t[0]){for(var i=(o-=o%this.tabSize)/this.tabSize,r=0;r<i;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(o)}if("\t"==t[0]){for(r=0;r<o;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(o)}return this.$highlightIndentGuide(),t},e.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,o=Math.floor(n/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:o,start:t.row},this.session.$bracketHighlight)for(var i=this.session.$bracketHighlight.ranges,r=0;r<i.length;r++)if(t.row!==i[r].start.row){this.$highlightIndentGuideMarker.end=i[r].start.row+1,t.row>i[r].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length)for(this.$highlightIndentGuideMarker.dir=1,r=t.row+1;r<e.length;r++){var s=e[r],a=/^\s*/.exec(s)[0].length;if(""!==s&&(this.$highlightIndentGuideMarker.end=r,a<=n))break}this.$renderHighlightIndentGuide()}}},e.prototype.$clearActiveIndentGuide=function(){for(var e=this.element.querySelectorAll(".ace_indent-guide-active"),t=0;t<e.length;t++)e[t].classList.remove("ace_indent-guide-active")},e.prototype.$setIndentGuideActive=function(e,t){if(""!==this.session.doc.getLine(e.row)){var n=e.element;if(e.element.classList&&e.element.classList.contains("ace_line_group")){if(!(e.element.childNodes.length>0))return;n=e.element.childNodes[0]}var o=n.childNodes;if(o){var i=o[t-1];i&&i.classList&&i.classList.contains("ace_indent-guide")&&i.classList.add("ace_indent-guide-active")}}},e.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var o=e[n];if(this.$highlightIndentGuideMarker.end&&o.row>=this.$highlightIndentGuideMarker.start+1){if(o.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(o,t)}}else for(n=e.length-1;n>=0;n--)if(o=e[n],this.$highlightIndentGuideMarker.end&&o.row<this.$highlightIndentGuideMarker.start){if(o.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(o,t)}}},e.prototype.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},e.prototype.$renderWrappedLine=function(e,t,n){var o=0,i=0,s=n[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var d=t[c],u=d.value;if(0==c&&this.displayIndentGuides){if(o=u.length,!(u=this.renderIndentGuide(l,u,s)))continue;o-=u.length}if(o+u.length<s)a=this.$renderToken(l,a,d,u),o+=u.length;else{for(;o+u.length>=s;){a=this.$renderToken(l,a,d,u.substring(0,s-o)),u=u.substring(s-o),o=s,l=this.$createLineElement(),e.appendChild(l);var h=this.dom.createTextNode(r.stringRepeat(" ",n.indent),this.element);h.charCount=0,l.appendChild(h),a=0,s=n[++i]||Number.MAX_VALUE}0!=u.length&&(o+=u.length,a=this.$renderToken(l,a,d,u))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},e.prototype.$renderSimpleLine=function(e,t){for(var n=0,o=0;o<t.length;o++){var i=t[o],r=i.value;if(0!=o||!this.displayIndentGuides||(r=this.renderIndentGuide(e,r))){if(n+r.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,r);n=this.$renderToken(e,n,i,r)}}},e.prototype.$renderOverflowMessage=function(e,t,n,o,i){n&&this.$renderToken(e,t,n,o.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement("span");r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=i?"<hide>":"<click to see more...>",e.appendChild(r)},e.prototype.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var o=this.$getFoldLineTokens(t,n);else o=this.session.getTokens(t);var i=e;if(o.length){var r=this.session.getRowSplitData(t);r&&r.length?(this.$renderWrappedLine(e,o,r),i=e.lastChild):(i=e,this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,o))}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(s)}},e.prototype.$getFoldLineTokens=function(e,t){var n=this.session,o=[],i=n.getTokens(e);return t.walk(function(e,t,r,s,a){null!=e?o.push({type:"fold",value:e}):(a&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,r=0;r+e[i].value.length<t;)if(r+=e[i].value.length,++i==e.length)return;for(r!=t&&((s=e[i].value.substring(t-r)).length>n-t&&(s=s.substring(0,n-t)),o.push({type:e[i].type,value:s}),r=t+s.length,i+=1);r<n&&i<e.length;){var s;(s=e[i].value).length+r>n?o.push({type:e[i].type,value:s.substring(0,n-r)}):o.push(e[i]),r+=s.length,i+=1}}(i,s,r))},t.end.row,this.session.getLine(t.end.row).length),o},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();d.prototype.EOF_CHAR="¶",d.prototype.EOL_CHAR_LF="¬",d.prototype.EOL_CHAR_CRLF="¤",d.prototype.EOL_CHAR=d.prototype.EOL_CHAR_LF,d.prototype.TAB_CHAR="—",d.prototype.SPACE_CHAR="·",d.prototype.$padding=0,d.prototype.MAX_LINE_LENGTH=1e4,d.prototype.showInvisibles=!1,d.prototype.showSpaces=!1,d.prototype.showTabs=!1,d.prototype.showEOL=!1,d.prototype.displayIndentGuides=!0,d.prototype.$highlightIndentGuides=!0,d.prototype.$tabStrings=[],d.prototype.destroy={},d.prototype.onChangeTabSize=d.prototype.$computeTabString,o.implement(d.prototype,a),t.Text=d}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var o=e("../lib/dom"),i=function(){function e(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),o.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return e.prototype.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)o.setStyle(t[n].style,"opacity",e?"":"0")},e.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&o.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},e.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,o.removeCssClass(this.element,"ace_animate-blinking")},e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},e.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},e.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,o.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},e.prototype.addCursor=function(){var e=o.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},e.prototype.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},e.prototype.hideCursor=function(){this.isVisible=!1,o.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.showCursor=function(){this.isVisible=!0,o.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,o.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&o.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),o.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}else this.$stopCssAnimation()},e.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},e.prototype.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},e.prototype.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]),n=0;for(var r=t.length;n<r;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var a=this.cursors[i++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,e,t[n],this.session):this.isCursorInView(s,e)?(o.setStyle(l,"display","block"),o.translate(a,s.left,s.top),o.setStyle(l,"width",Math.round(e.characterWidth)+"px"),o.setStyle(l,"height",e.lineHeight+"px")):o.setStyle(l,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=s,this.restartTimer()},e.prototype.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?o.addCssClass(this.element,"ace_overwrite-cursors"):o.removeCssClass(this.element,"ace_overwrite-cursors"))},e.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},e}();i.prototype.$padding=0,i.prototype.drawCursor=null,t.Cursor=i}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=e("./lib/oop"),s=e("./lib/dom"),a=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter,c=32768,d=function(){function e(e,t){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+t,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();r.implement(d.prototype,l);var u=function(e){function t(t,n){var o=e.call(this,t,"-v")||this;return o.scrollTop=0,o.scrollHeight=0,n.$scrollbarWidth=o.width=s.scrollbarWidth(t.ownerDocument),o.inner.style.width=o.element.style.width=(o.width||15)+5+"px",o.$minWidth=0,o}return i(t,e),t.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.element.style.height=e+"px"},t.prototype.setScrollHeight=function(e){this.scrollHeight=e,e>c?(this.coeff=c/e,e=c):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},t.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)},t}(d);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var h=function(e){function t(t,n){var o=e.call(this,t,"-h")||this;return o.scrollLeft=0,o.height=n.$scrollbarWidth,o.inner.style.height=o.element.style.height=(o.height||15)+5+"px",o}return i(t,e),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(e){this.element.style.width=e+"px"},t.prototype.setInnerWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)},t}(d);t.ScrollBar=u,t.ScrollBarV=u,t.ScrollBarH=h,t.VScrollBar=u,t.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=e("./lib/oop"),s=e("./lib/dom"),a=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter;s.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var c=function(){function e(e,t){this.element=s.createElement("div"),this.element.className="ace_sb"+t,this.inner=s.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();r.implement(c.prototype,l);var d=function(e){function t(t,n){var o=e.call(this,t,"-v")||this;return o.scrollTop=0,o.scrollHeight=0,o.parent=t,o.width=o.VScrollWidth,o.renderer=n,o.inner.style.width=o.element.style.width=(o.width||15)+"px",o.$minWidth=0,o}return i(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===a.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,o=t.clientY,i=t.clientY,r=this.thumbTop;a.capture(this.inner,function(e){o=e.clientY},function(){clearInterval(s)});var s=setInterval(function(){if(void 0!==o){var e=n.scrollTopFromThumbTop(r+o-i);e!==n.scrollTop&&n._emit("scroll",{data:e})}},20);return a.preventDefault(t)}var l=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(l)}),a.preventDefault(t)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t|=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},t.prototype.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},t}(c);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var u=function(e){function t(t,n){var o=e.call(this,t,"-h")||this;return o.scrollLeft=0,o.scrollWidth=0,o.height=o.HScrollHeight,o.inner.style.height=o.element.style.height=(o.height||12)+"px",o.renderer=n,o}return i(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===a.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,o=t.clientX,i=t.clientX,r=this.thumbLeft;a.capture(this.inner,function(e){o=e.clientX},function(){clearInterval(s)});var s=setInterval(function(){if(void 0!==o){var e=n.scrollLeftFromThumbLeft(r+o-i);e!==n.scrollLeft&&n._emit("scroll",{data:e})}},20);return a.preventDefault(t)}var l=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(l)}),a.preventDefault(t)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t|=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},t.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},t.prototype.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},t}(c);u.prototype.setInnerWidth=u.prototype.setScrollWidth,t.ScrollBar=d,t.ScrollBarV=d,t.ScrollBarH=u,t.VScrollBar=d,t.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,n){"use strict";var o=e("./lib/event"),i=function(){function e(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(o.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}}return e.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(o.nextFrame(this._flush),this.pending=!0)},e.prototype.clear=function(e){var t=this.changes;return this.changes=0,t},e}();t.RenderLoop=i}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,n){var o=e("../lib/oop"),i=e("../lib/dom"),r=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=512,d="function"==typeof ResizeObserver,u=200,h=function(){function e(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=r.stringRepeat("X",c),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()}return e.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},e.prototype.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},e.prototype.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},e.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=s.onIdle(function t(){e.checkForSizeChanges(),s.onIdle(t,500)},500)},e.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},e.prototype.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},e.prototype.$measureCharWidth=function(e){return this.$main.textContent=r.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},e.prototype.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},e.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.$getZoom=function(e){return e&&e.parentElement?(Number(window.getComputedStyle(e).zoom)||1)*this.$getZoom(e.parentElement):1},e.prototype.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},e.prototype.transformCoordinates=function(e,t){function n(e,t,n){var o=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/o,(+e[1]*n[0]-e[0]*n[1])/o]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function r(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=r(1/this.$getZoom(this.el),e)),this.els||this.$initTransformMeasureNodes();var a=s(this.els[0]),l=s(this.els[1]),c=s(this.els[2]),d=s(this.els[3]),h=n(o(d,l),o(d,c),o(i(l,c),i(d,a))),p=r(1+h[0],o(l,a)),g=r(1+h[1],o(c,a));if(t){var m=t,f=h[0]*m[0]/u+h[1]*m[1]/u+1,b=i(r(m[0],p),r(m[1],g));return i(r(1/f/u,b),a)}var v=o(e,a),y=n(o(p,r(h[0],v)),o(g,r(h[1],v)),v);return r(u,y)},e}();h.prototype.$characterSize={width:0,height:0},o.implement(h.prototype,l),t.FontMetrics=h}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,t,n){n.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n forced-color-adjust: none;\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n.ace_invisible {\n font-variant-ligatures: none;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_security {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n.ace_icon_svg.ace_hint {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");\n background-color: silver;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_security_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre-wrap;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n overflow: auto;\n max-width: min(33em, 66vw);\n overscroll-behavior: contain;\n}\n.ace_tooltip pre {\n white-space: pre-wrap;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget, .ace_custom-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_custom-widget {\n background: none;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n position: relative;\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n z-index: 1;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n}\n\n.ace_ghost_text_container > div {\n white-space: pre;\n}\n\n.ghost_text_line_wrapped::after {\n content: "↩";\n position: absolute;\n}\n\n.ace_lineWidgetContainer.ace_ghost_text {\n margin: 0px 4px\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}\n\n.ace_hidden_token {\n display: none;\n}'}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){"use strict";var o=e("../lib/dom"),i=e("../lib/oop"),r=e("../lib/event_emitter").EventEmitter,s=function(){function e(e,t){this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},this.setScrollBarV(e)}return e.prototype.$createCanvas=function(){this.canvas=o.createElement("canvas"),this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7",this.canvas.style.position="absolute"},e.prototype.setScrollBarV=function(e){this.$createCanvas(),this.scrollbarV=e,e.element.appendChild(this.canvas),this.setDimensions()},e.prototype.$updateDecorators=function(e){if("function"==typeof this.canvas.getContext){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;this.setDimensions(e);var n=this.canvas.getContext("2d"),o=this.renderer.session.$annotations;if(n.clearRect(0,0,this.canvas.width,this.canvas.height),o){var i={info:1,warning:2,error:3};o.forEach(function(e){e.priority=i[e.type]||null}),o=o.sort(function(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0});for(var r=0;r<o.length;r++){var s=o[r].row,a=this.getVerticalOffsetForRow(s),l=a+this.lineHeight,c=Math.round(this.heightRatio*a),d=Math.round(this.heightRatio*l),u=Math.round((c+d)/2),h=d-u;h<this.halfMinDecorationHeight&&(h=this.halfMinDecorationHeight),u-h<0&&(u=h),u+h>this.canvasHeight&&(u=this.canvasHeight-h);var p=u-h,g=u+h-p;n.fillStyle=t[o[r].type]||null,n.fillRect(0,p,Math.round(this.oneZoneWidth-1),g)}}var m=this.renderer.session.selection.getCursor();if(m){var f=Math.round(this.getVerticalOffsetForRow(m.row)*this.heightRatio);n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,f,this.canvasWidth,2)}}},e.prototype.getVerticalOffsetForRow=function(e){return e|=0,this.renderer.session.documentToScreenRow(e,0)*this.lineHeight},e.prototype.setDimensions=function(e){e=e||this.renderer.layerConfig,this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,this.canvasWidth=this.scrollbarV.width||this.canvasWidth,this.setZoneWidth(),this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight},e.prototype.setZoneWidth=function(){this.oneZoneWidth=this.canvasWidth},e.prototype.destroy=function(){this.canvas.parentNode.removeChild(this.canvas)},e}();i.implement(s.prototype,r),t.Decorator=s}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,t,n){"use strict";var o=e("./lib/oop"),i=e("./lib/dom"),r=e("./lib/lang"),s=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,d=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./scrollbar_custom").HScrollBar,g=e("./scrollbar_custom").VScrollBar,m=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,b=e("./lib/event_emitter").EventEmitter,v=e("./css/editor-css"),y=e("./layer/decorators").Decorator,k=e("./lib/useragent"),x=e("./layer/text_util").isTextToken;i.importCssString(v,"ace_editor.css",!1);var w=function(){function e(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==s.get("useStrictCSP")&&s.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var o=this.$textLayer=new c(this.content);this.canvas=o.element,this.$markerFront=new l(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!k.isIOS,this.$loop=new m(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return e.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},e.prototype.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},e.prototype.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},e.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},e.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},e.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},e.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},e.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},e.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},e.prototype.onResize=function(e,t,n,o){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;o||(o=i.clientHeight||i.scrollHeight),!o&&this.$maxLines&&this.lineHeight>1&&(i.style.height&&"0px"!=i.style.height||(i.style.height="1px",o=i.clientHeight||i.scrollHeight)),n||(n=i.clientWidth||i.scrollWidth);var r=this.$updateCachedSize(e,t,n,o);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!n&&!o)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},e.prototype.$updateCachedSize=function(e,t,n,o){o-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(o&&(e||s.height!=o)&&(s.height=o,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)){r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)}return s.$dirty=!n||!o,r&&this._signal("resize",a),r},e.prototype.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},e.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},e.prototype.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},e.prototype.getAnimatedScroll=function(){return this.$animatedScroll},e.prototype.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},e.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},e.prototype.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},e.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},e.prototype.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},e.prototype.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},e.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},e.prototype.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},e.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},e.prototype.getShowGutter=function(){return this.getOption("showGutter")},e.prototype.setShowGutter=function(e){return this.setOption("showGutter",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},e.prototype.getContainerElement=function(){return this.container},e.prototype.getMouseEventTarget=function(){return this.scroller},e.prototype.getTextAreaContainer=function(){return this.container},e.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var o=this.layerConfig,r=n.top,s=n.left;r-=o.offset;var a=t&&t.useTextareaForIME||k.isMobile?this.lineHeight:1;if(r<0||r>o.height-a)i.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var d=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(d)[0]}else r+=this.lineHeight+2;else r+=this.lineHeight;(s-=this.scrollLeft)>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",a+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(r,c))}}}else i.translate(this.textarea,-100,0)}},e.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},e.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},e.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},e.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},e.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},e.prototype.setScrollMargin=function(e,t,n,o){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|o,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},e.prototype.setMargin=function(e,t,n,o){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|o,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},e.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},e.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},e.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},e.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},e.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},e.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},e.prototype.freeze=function(){this.$frozen=!0},e.prototype.unfreeze=function(){this.$frozen=!1},e.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var o=this.scrollTop+(n.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;o>0&&(this.scrollTop=o,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var r=n.width+2*this.$padding+"px",s=n.minHeight+"px";i.setStyle(this.content.style,"width",r),i.setStyle(this.content.style,"height",s)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},e.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var o=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||o!=this.$vScroll){o!=this.$vScroll&&(this.$vScroll=o,this.scrollBarV.setVisible(o));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},e.prototype.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,o=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),r=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),s=this.$horizScroll!==r;s&&(this.$horizScroll=r,this.scrollBarH.setVisible(r));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),n=t.height<=2*this.lineHeight);var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;o+=c;var d=this.scrollMargin;this.session.setScrollTop(Math.max(-d.top,Math.min(this.scrollTop,o-t.scrollerHeight+d.bottom))),this.session.setScrollLeft(Math.max(-d.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+d.right)));var u=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-o+c<0||this.scrollTop>d.top),h=a!==u;h&&(this.$vScroll=u,this.scrollBarV.setVisible(u));var p,g,m=this.scrollTop%this.lineHeight,f=Math.ceil(l/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),v=b+f,y=this.lineHeight;b=e.screenToDocumentRow(b,0);var k=e.getFoldLine(b);k&&(b=k.start.row),p=e.documentToScreenRow(b,0),g=e.getRowLength(b)*y,v=Math.min(e.screenToDocumentRow(v,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(v)*y+g,(m=this.scrollTop-p*y)<0&&p>0&&(p=Math.max(0,p+Math.floor(m/y)),m=this.scrollTop-p*y);var x=0;return(this.layerConfig.width!=i||s)&&(x=this.CHANGE_H_SCROLL),(s||h)&&(x|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),h&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:b,firstRowScreen:p,lastRow:v,lineHeight:y,characterWidth:this.characterWidth,minHeight:l,maxHeight:o,offset:m,gutterOffset:y?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(i-this.$padding),x},e.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},e.prototype.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},e.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},e.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},e.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},e.prototype.updateBreakpoints=function(e){this._rows=e,this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},e.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},e.prototype.showCursor=function(){this.$cursorLayer.showCursor()},e.prototype.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},e.prototype.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var o=this.$cursorLayer.getPixelPosition(e),i=o.left,r=o.top,s=n&&n.top||0,a=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>r?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft,d=2*this.layerConfig.characterWidth;i-d<c?((i-=d)<this.$padding+d&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):(i+=d,c+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&i-c<this.characterWidth&&this.session.setScrollLeft(0))}},e.prototype.getScrollTop=function(){return this.session.getScrollTop()},e.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},e.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},e.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},e.prototype.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},e.prototype.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),o=this.$size.scrollerHeight-this.lineHeight,i=n.top-o*(t||0);return this.session.setScrollTop(i),i},e.prototype.$calcSteps=function(e,t){var n=0,o=this.STEPS,i=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<o;++n)i.push(r(n/this.STEPS,e,t-e));return i},e.prototype.scrollToLine=function(e,t,n,o){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(i-=this.$size.scrollerHeight/2);var r=this.scrollTop;this.session.setScrollTop(i),!1!==n&&this.animateScrolling(r,o)},e.prototype.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var o=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0])==n)return}var r=o.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),o.session.setScrollTop(r.shift()),o.session.$scrollTop=n,this.$timer=setInterval(function(){if(!o.$stopAnimation)return o.session?void(r.length?(o.session.setScrollTop(r.shift()),o.session.$scrollTop=n):null!=n?(o.session.$scrollTop=-1,o.session.setScrollTop(n),n=null):s()):clearInterval(o.$timer);s()},10)}}function s(){o.$timer=clearInterval(o.$timer),o.$scrollAnimation=null,o.$stopAnimation=!1,t&&t()}},e.prototype.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},e.prototype.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},e.prototype.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},e.prototype.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},e.prototype.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},e.prototype.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var o=this.$fontMetrics.transformCoordinates([e,t]);e=o[1]-this.gutterWidth-this.margin.left,t=o[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(r):Math.round(r);return{row:s,column:a,side:r-a>0?1:-1,offsetX:i}},e.prototype.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var o=this.$fontMetrics.transformCoordinates([e,t]);e=o[1]-this.gutterWidth-this.margin.left,t=o[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,s=this.$blockCursor?Math.floor(r):Math.round(r),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),i)},e.prototype.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),o=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,e)?this.session.$bidiHandler.getPosLeft(o.column):Math.round(o.column*this.characterWidth)),r=o.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+r-this.scrollTop}},e.prototype.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},e.prototype.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},e.prototype.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},e.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},e.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},e.prototype.setGhostText=function(e,t){var n=this.session.selection.cursor,o=t||{row:n.row,column:n.column};this.removeGhostText();var r=this.$calculateWrappedTextChunks(e,o);this.addToken(r[0].text,"ghost_text",o.row,o.column),this.$ghostText={text:e,position:{row:o.row,column:o.column}};var s=i.createElement("div");if(r.length>1){var a,l=this.hideTokensAfterPosition(o.row,o.column);r.slice(1).forEach(function(e){var t=i.createElement("div"),n=i.createElement("span");n.className="ace_ghost_text",e.wrapped&&(t.className="ghost_text_line_wrapped"),0===e.text.length&&(e.text=" "),n.appendChild(i.createTextNode(e.text)),t.appendChild(n),s.appendChild(t),a=t}),l.forEach(function(e){var t=i.createElement("span");x(e.type)||(t.className="ace_"+e.type.replace(/\./g," ace_")),t.appendChild(i.createTextNode(e.value)),a.appendChild(t)}),this.$ghostTextWidget={el:s,row:o.row,column:o.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var c=this.$cursorLayer.getPixelPosition(o,!0),d=this.container.getBoundingClientRect().height,u=r.length*this.lineHeight;if(u<d-c.top)return;u<d?this.scrollBy(0,(r.length-1)*this.lineHeight):this.scrollToRow(o.row)}},e.prototype.$calculateWrappedTextChunks=function(e,t){var n=this.$size.scrollerWidth-2*this.$padding,o=Math.floor(n/this.characterWidth)-2;o=o<=0?60:o;for(var i=e.split(/\r?\n/),r=[],s=0;s<i.length;s++){var a=this.session.$getDisplayTokens(i[s],t.column),l=this.session.$computeWrapSplits(a,o,this.session.$tabSize);if(l.length>0){var c=0;l.push(i[s].length);for(var d=0;d<l.length;d++){var u=i[s].slice(c,l[d]);r.push({text:u,wrapped:!0}),c=l[d]}}else r.push({text:i[s],wrapped:!1})}return r},e.prototype.removeGhostText=function(){if(this.$ghostText){var e=this.$ghostText.position;this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},e.prototype.addToken=function(e,t,n,o){var i=this.session;i.bgTokenizer.lines[n]=null;var r={type:t,value:e},s=i.getTokens(n);if(null!=o&&s.length)for(var a=0,l=0;l<s.length;l++){var c=s[l];if(o<=(a+=c.value.length)){var d=c.value.length-(a-o),u=c.value.slice(0,d),h=c.value.slice(d);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:h});break}}else s.push(r);this.updateLines(n,n)},e.prototype.hideTokensAfterPosition=function(e,t){for(var n=this.session.getTokens(e),o=0,i=!1,r=[],s=0;s<n.length;s++){var a=n[s];o+=a.value.length,"ghost_text"!==a.type&&(i?(r.push({type:a.type,value:a.value}),a.type="hidden_token"):o===t&&(i=!0))}return this.updateLines(e,e),r},e.prototype.removeExtraToken=function(e,t){this.session.bgTokenizer.lines[e]=null,this.updateLines(e,e)},e.prototype.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)r(e);else{var o=e||this.$options.theme.initialValue;s.loadModule(["theme",o],r)}function r(o){if(n.$themeId!=e)return t&&t();if(!o||!o.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");o.$id&&(n.$themeId=o.$id),i.importCssString(o.cssText,o.cssClass,n.container),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var r="padding"in o?o.padding:"padding"in(n.theme||{})?4:n.$padding;if(n.$padding&&r!=n.$padding&&n.setPadding(r),n.$gutterLayer){var s=o.$showGutterCursorMarker;s&&!n.$gutterLayer.$showCursorMarker?n.$gutterLayer.$showCursorMarker="theme":s||"theme"!=n.$gutterLayer.$showCursorMarker||(n.$gutterLayer.$showCursorMarker=null)}n.$theme=o.cssClass,n.theme=o,i.addCssClass(n.container,o.cssClass),i.setCssClass(n.container,"ace_dark",o.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:o}),t&&t(),k.isSafari&&n.scroller&&(n.scroller.style.background="red",n.scroller.style.background="")}},e.prototype.getTheme=function(){return this.$themeId},e.prototype.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},e.prototype.unsetStyle=function(e){i.removeCssClass(this.container,e)},e.prototype.setCursorStyle=function(e){i.setStyle(this.scroller.style,"cursor",e)},e.prototype.setMouseCursor=function(e){i.setStyle(this.scroller.style,"cursor",e)},e.prototype.attachToShadowRoot=function(){i.importCssString(v,"ace_editor.css",this.container)},e.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},e.prototype.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),!0===e?(this.scrollBarV=new g(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)}),this.$scrollDecorator?(this.$scrollDecorator.setScrollBarV(this.scrollBarV),this.$scrollDecorator.$updateDecorators()):(this.$scrollDecorator=new y(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators())):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)}))},e.prototype.$addResizeObserver=function(){if(window.ResizeObserver&&!this.$resizeObserver){var e=this;this.$resizeTimer=r.delayedCall(function(){e.destroyed||e.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(t){var n=t[0].contentRect.width,o=t[0].contentRect.height;Math.abs(e.$size.width-n)>1||Math.abs(e.$size.height-o)>1?e.$resizeTimer.delay():e.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},e}();w.prototype.CHANGE_CURSOR=1,w.prototype.CHANGE_MARKER=2,w.prototype.CHANGE_GUTTER=4,w.prototype.CHANGE_SCROLL=8,w.prototype.CHANGE_LINES=16,w.prototype.CHANGE_TEXT=32,w.prototype.CHANGE_SIZE=64,w.prototype.CHANGE_MARKER_BACK=128,w.prototype.CHANGE_MARKER_FRONT=256,w.prototype.CHANGE_FULL=512,w.prototype.CHANGE_H_SCROLL=1024,w.prototype.$changes=0,w.prototype.$padding=null,w.prototype.$frozen=!1,w.prototype.STEPS=8,o.implement(w.prototype,b),s.defineOptions(w.prototype,"renderer",{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!k.isMobile&&!k.isIE}}),t.VirtualRenderer=w}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("../lib/net"),r=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var t=function(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var l=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){o.implement(this,r),this.$createWorkerFromOldConfig=function(t,n,o,i,r){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)i=i||s.moduleUrl(n,"worker");else{var l=this.$normalizePath;i=i||l(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach(function(t){c[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(i),r&&this.send("importScripts",r),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:o}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var o=this.callbackId++;this.callbacks[o]=n,t.push(o)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype),t.UIWorkerClient=function(e,t,n){var o=null,i=!1,a=Object.create(r),c=[],d=new l({messageBuffer:c,terminate:function(){},postMessage:function(e){c.push(e),o&&(i?setTimeout(u):u())}});d.setEmitSync=function(e){i=e};var u=function(){var e=c.shift();e.command?o[e.command].apply(o,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){d.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],function(e){for(o=new e[n](a);c.length;)u()}),d},t.WorkerClient=l,t.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,n){"use strict";var o=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,r=e("./lib/oop"),s=function(){function e(e,t,n,o,i,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=o,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}return e.prototype.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new o(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var o=t.createAnchor(n.row,n.column);o.$insertRight=!0,o.detach(),e.others.push(o)}),n.setUndoSelect(!1)},e.prototype.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=e.addMarker(new o(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})}},e.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},e.prototype.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a={row:(l=this.others[s]).row,column:l.column+r};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){var l;a={row:(l=this.others[s]).row,column:l.column+r},this.doc.remove(new o(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},e.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},e.prototype.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new o(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},e.prototype.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},e.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},e.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},e}();r.implement(s.prototype,i),t.PlaceHolder=s}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){var o=e("../lib/event"),i=e("../lib/useragent");function r(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&i.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var d,u=e.editor,h=u.selection,p=u.inMultiSelectMode,g=e.getDocumentPosition(),m=h.getCursor(),f=e.inSelection()||h.isEmpty()&&r(g,m),b=e.x,v=e.y,y=u.session,k=u.renderer.pixelToScreenCoordinates(b,v),x=k;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?d=s?"block":"add":n&&u.$blockSelectEnabled&&(d="block");else if(l&&!n){if(d="add",!p&&s)return}else n&&u.$blockSelectEnabled&&(d="block");if(d&&i.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==d){if(!p&&f)return;if(!p){var w=h.toOrientedRange();u.addSelectionMarker(w)}var _=h.rangeList.rangeAtPoint(g);u.inVirtualSelectionMode=!0,s&&(_=null,w=h.ranges[0]||w,u.removeSelectionMarker(w)),u.once("mouseup",function(){var e=h.toOrientedRange();_&&e.isEmpty()&&r(_.cursor,e.cursor)?h.substractPoint(e.cursor):(s?h.substractPoint(w.cursor):w&&(u.removeSelectionMarker(w),h.addRange(w)),h.addRange(e)),u.inVirtualSelectionMode=!1})}else if("block"==d){var C;e.stop(),u.inVirtualSelectionMode=!0;var S=[],E=function(){var e=u.renderer.pixelToScreenCoordinates(b,v),t=y.screenToDocumentPosition(e.row,e.column,e.offsetX);r(x,e)&&r(t,h.lead)||(x=e,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(S),S=h.rectangularRangeBlock(x,k),u.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=u.$mouseHandler.$clickSelection.clone()),S.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers())};p&&!l?h.toSingleRange():!p&&l&&(C=h.toOrientedRange(),u.addSelectionMarker(C)),s?k=y.documentToScreenPosition(h.lead):h.moveToPosition(g),x={row:-1,column:-1};var M=E;o.capture(u.container,function(e){b=e.clientX,v=e.clientY},function(e){E(),clearInterval($),u.removeSelectionMarkers(S),S.length||(S=[h.toOrientedRange()]),C&&(u.removeSelectionMarker(C),h.toSingleRange(C));for(var t=0;t<S.length;t++)h.addRange(S[t]);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null});var $=setInterval(function(){M()},20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var o=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new o(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,n){var o=e("./range_list").RangeList,i=e("./range").Range,r=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=new(0,e("./search").Search),u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var o=this.rangeList.add(e);return this.$onAddRange(e),o.length&&this.$onRemoveRange(o),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var o=this.ranges.indexOf(e[n]);this.ranges.splice(o,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var o=e[n],r=o.start.row,s=o.end.row;if(r===s)t.push(o.clone());else{for(t.push(new i(r,o.start.column,r,this.session.getLine(r).length));++r<s;)t.push(this.getLineRange(r,!0));t.push(new i(s,0,s,o.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}for(this.toSingleRange(),n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var o=this.session.documentToScreenPosition(this.cursor),r=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(o,r).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var o=[],r=e.column<t.column;if(r)var s=e.column,a=t.column,l=e.offsetX,c=t.offsetX;else s=t.column,a=e.column,l=t.offsetX,c=e.offsetX;var d,u=e.row<t.row;if(u)var h=e.row,g=t.row;else h=t.row,g=e.row;s<0&&(s=0),h<0&&(h=0),h==g&&(n=!0);for(var m=h;m<=g;m++){var f=i.fromPoints(this.session.screenToDocumentPosition(m,s,l),this.session.screenToDocumentPosition(m,a,c));if(f.isEmpty()){if(d&&p(f.end,d))break;d=f.end}f.cursor=r?f.start:f.end,o.push(f)}if(u&&o.reverse(),!n){for(var b=o.length-1;o[b].isEmpty()&&b>0;)b--;if(b>0)for(var v=0;o[v].isEmpty();)v++;for(var y=b;y>=v;y--)o[y].isEmpty()&&o.splice(y,1)}return o}}.call(r.prototype);var h=e("./editor").Editor;function p(e,t){return e.row==t.row&&e.column==t.column}function g(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),function(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;a.addListener(t,"keydown",function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&o()},e),a.addListener(t,"keyup",o,e),a.addListener(t,"blur",o,e)}function o(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var o=e[n];if(o.marker){this.session.removeMarker(o.marker);var i=t.indexOf(o);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?o=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?o=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),o=t.exec(n,e.args||{})):o=t.multiSelectAction(n,e.args||{});else{var o=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return o}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var o,i=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(i?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var h=new r(a);this.inVirtualSelectionMode=!0;for(var p=d.length;p--;){if(s)for(;p>0&&d[p].start.row==d[p-1].end.row;)p--;h.fromOrientedRange(d[p]),h.index=p,this.selection=a.selection=h;var g=e.exec?e.exec(this,t||{}):e(this,t||{});o||void 0===g||(o=g),h.toOrientedRange(d[p])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),o}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],o=0;o<t.length;o++)n.push(this.session.getTextRange(t[o]));var i=this.session.getDocument().getNewLineCharacter();(e=n.join(i)).length==(n.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var o=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;o.row!=t.row||this.session.$clipPositionToDocument(o.row,o.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var o=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(o)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;var r=this.multiSelect;n||r.toSingleRange(i[0]);for(var s=i.length;s--;)r.addRange(i[s],!0);return o&&r.rangeList.rangeAtPoint(o.start)&&r.addRange(o,!0),i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),o=n.cursor==n.end,r=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var s,a=this.session.screenToDocumentPosition(r.row+e,r.column);if(n.isEmpty())c=a;else var l=this.session.documentToScreenPosition(o?n.end:n.start),c=this.session.screenToDocumentPosition(l.row+e,l.column);if(o?(s=i.fromPoints(a,c)).cursor=s.start:(s=i.fromPoints(c,a)).cursor=s.end,s.desiredColumn=r.column,this.selection.inMultiSelectMode){if(t)var d=n.cursor}else this.selection.addRange(n);this.selection.addRange(s),d&&this.selection.substractPoint(d)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,o=n.ranges,i=o.length;i--;)if((a=o[i]).isEmpty()){var r=t.getWordRange(a.start.row,a.start.column);a.start.row=r.start.row,a.start.column=r.start.column,a.end.row=r.end.row,a.end.column=r.end.column}n.mergeOverlappingRanges();var s=[];for(i=o.length;i--;){var a=o[i];s.unshift(t.getTextRange(a))}for(e<0?s.unshift(s.pop()):s.push(s.shift()),i=o.length;i--;){var l=(a=o[i]).clone();t.replace(a,s[i]),a.start.row=l.start.row,a.start.column=l.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var o=this.session,i=o.multiSelect.toOrientedRange();if(!i.isEmpty()||((i=o.getWordRange(i.start.row,i.start.column)).cursor=-1==e?i.start:i.end,this.multiSelect.addRange(i),!n)){var r=o.getTextRange(i),s=function(e,t,n){return d.$options.wrap=!0,d.$options.needle=t,d.$options.backwards=-1==n,d.find(e)}(o,r,e);s&&(s.cursor=-1==e?s.start:s.end,this.session.unfold(s),this.multiSelect.addRange(s),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(i.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,o=-1,r=n.filter(function(e){if(e.cursor.row==o)return!0;o=e.cursor.row});if(n.length&&r.length!=n.length-1){r.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=1/0,c=n.map(function(t){var n=t.cursor,o=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==o&&(o=0),n.column>s&&(s=n.column),o<a&&(a=o),o});n.forEach(function(t,n){var o=t.cursor,r=s-o.column,d=c[n]-a;r>d?e.insert(o,l.stringRepeat(" ",r-d)):e.remove(new i(o.row,o.column,o.row,o.column-r+d)),t.start.column=t.end.column=s,t.start.row=t.end.row=o.row,t.cursor=t.end}),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),u=d.start.row,h=d.end.row,p=u==h;if(p){var g,m=this.session.getLength();do{g=this.session.getLine(h)}while(/[=:]/.test(g)&&++h<m);do{g=this.session.getLine(u)}while(/[=:]/.test(g)&&--u>0);u<0&&(u=0),h>=m&&(h=m-1)}var f=this.session.removeFullLines(u,h);f=this.$reAlignText(f,p),this.session.insert({row:u,column:0},f.join("\n")+"\n"),p||(d.start.column=0,d.end.column=f[f.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,o,i,r=!0,s=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,o=t[2].length,i=t[3].length,t):(n+o+i!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(r=!1),n>t[1].length&&(n=t[1].length),o<t[2].length&&(o=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]}).map(t?c:r?s?function(e){return e[2]?a(n+o-e[2].length)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?a(n)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(o-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(h.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=g,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){g(this),e?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);return this.foldingStartMarker.test(o)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,r=e.getLine(t),s=r.search(i);if(-1!=s){for(var a=n||r.length,l=e.getLength(),c=t,d=t;++t<l;){var u=e.getLine(t).search(i);if(-1!=u){if(u<=s){var h=e.getTokenAt(t,0);if(!h||"string"!==h.type)break}d=t}}if(d>c){var p=e.getLine(d).length;return new o(c,a,d,p)}}},this.openingBracketBlock=function(e,t,n,i,r){var s={row:n,column:i+1},a=e.$findClosingBracket(t,s,r);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),o.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,i,r){var s={row:n,column:i},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,o.fromPoints(a,s)}}).call(i.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,t,n){"use strict";var o=e("../lib/dom"),i=e("../range").Range,r=e("../config").nls;t.showErrorMarker=function(e,t){var n=e.session,s=e.getCursorPosition(),a=s.row,l=n.widgetManager.getWidgetsAtRow(a).filter(function(e){return"errorMarker"==e.type})[0];l?l.destroy():a-=t;var c,d=function(e,t,n){var o=e.getAnnotations().sort(i.comparePoints);if(o.length){var r=function(e,t,n){for(var o=0,i=e.length-1;o<=i;){var r=o+i>>1,s=n(t,e[r]);if(s>0)o=r+1;else{if(!(s<0))return r;i=r-1}}return-(o+1)}(o,{row:t,column:-1},i.comparePoints);r<0&&(r=-r-1),r>=o.length?r=n>0?0:o.length-1:0===r&&n<0&&(r=o.length-1);var s=o[r];if(s&&n){if(s.row===t){do{s=o[r+=n]}while(s&&s.row===t);if(!s)return o.slice()}var a=[];t=s.row;do{a[n<0?"unshift":"push"](s),s=o[r+=n]}while(s&&s.row==t);return a.length&&a}}}(n,a,t);if(d){var u=d[0];s.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,s.row=u.row,c=e.renderer.$gutterLayer.$annotations[s.row]}else{if(l)return;c={displayText:[r("error-marker.good-state","Looks good!")],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var h={row:s.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},p=h.el.appendChild(o.createElement("div")),g=h.el.appendChild(o.createElement("div"));g.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(s).left;g.style.left=m+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",p.className="error_widget "+c.className,c.displayText.forEach(function(e,t){p.appendChild(o.createTextNode(e)),t<c.displayText.length-1&&p.appendChild(o.createElement("br"))}),p.appendChild(o.createElement("div"));var f=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(f),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(f),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},o.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,t,n){"use strict";e("./loader_build")(t);var o=e("./lib/dom"),i=e("./range").Range,r=e("./editor").Editor,s=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(e&&e.env&&e.env.editor instanceof r)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;s=a.value,e=o.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(s=e.textContent,e.innerHTML="");var c=t.createEditSession(s),d=new r(new l(e),c,n),u={document:c,editor:d,onResize:d.resize.bind(d,null)};return a&&(u.textarea=a),d.on("destroy",function(){u.editor.container.env=null}),d.container.env=d.env=u,d},t.createEditSession=function(e,t){var n=new s(e,t);return n.setUndoManager(new a),n},t.Range=i,t.Editor=r,t.EditSession=s,t.UndoManager=a,t.VirtualRenderer=l;var c=t.config.version;t.version=c}),ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var n=function(){return this}();for(var o in n||"undefined"==typeof window||(n=window),n||"undefined"==typeof self||(n=self),n.ace||(n.ace=t),t)t.hasOwnProperty(o)&&(n.ace[o]=t[o]);n.ace.default=n.ace,e&&(e.exports=n.ace)})},20009(e,t,n){e=n.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,n){"use strict";var o,i=e("./lib/oop"),r=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),s=e("./editor").Editor,a=e("./virtual_renderer").VirtualRenderer,l=e("./edit_session").EditSession;(function(){i.implement(this,r),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new s(new a(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new l(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var o=this.$editors.some(function(t){return t.session===e});return o&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var o=t/this.$splits,i=0;i<this.$splits;i++)(e=this.$editors[i]).container.style.width=o+"px",e.container.style.top="0px",e.container.style.left=i*o+"px",e.container.style.height=n+"px",e.resize();else{var r=n/this.$splits;for(i=0;i<this.$splits;i++)(e=this.$editors[i]).container.style.width=t+"px",e.container.style.top=i*r+"px",e.container.style.left="0px",e.container.style.height=r+"px",e.resize()}}}).call((o=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))}).prototype),t.Split=o}),ace.define("ace/ext/split",["require","exports","module","ace/ext/split","ace/split"],function(e,t,n){"use strict";n.exports=e("../split")}),ace.require(["ace/ext/split"],function(t){e&&(e.exports=t)})},43158(e,t,n){e=n.nmd(e),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:d},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+d+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};o.inherits(p,i),t.CssHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,r=e.findMatchingBracket({row:t,column:i});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new o(t,0,t,i-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,t,n){"use strict";var o={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});o.hasOwnProperty(n)||(o[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,o){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var i=t.getLine(n.row).substr(0,n.column),r=/\([^)]*$/.test(i);return r&&(i=i.substr(i.lastIndexOf("(")+1)),/:[^;]+$/.test(i)?(/([\w\-]+):[^:]*$/.test(i),this.getPropertyValueCompletions(e,t,n,o)):this.getPropertyCompletions(e,t,n,o,r)}return[]},this.getPropertyCompletions=function(e,t,n,i,r){return r=r||!1,Object.keys(o).map(function(e){return{caption:e,snippet:e+": $0"+(r?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(e,t,n,i){var r=t.getLine(n.row).substr(0,n.column),s=(/([\w\-]+):[^:]*$/.exec(r)||{})[1];if(!s)return[];var a=[];return s in o&&"object"==typeof o[s]&&(a=Object.keys(o[s])),a.map(function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}})}}).call(i.prototype),t.CssCompletions=i}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(i),this.add("colon","insertion",function(e,t,n,o,i){if(":"===i&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(o,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=o.doc.getLine(s.row);if(":"===c.substring(s.column,s.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(e,t,n,o,i){var s=o.doc.getTextRange(i);if(!i.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(o,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type&&";"===o.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i}}),this.add("semicolon","insertion",function(e,t,n,o,i){if(";"===i&&n.selection.isEmpty()){var r=n.getCursorPosition();if(";"===o.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(e,t,n,o,i){if("!"===i&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=o.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}})};o.inherits(s,i),t.CssBehaviour=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};o.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(o)?"start":i},this.getFoldWidgetRange=function(e,t,n,o){var i,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(i=r.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(o?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=r.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),o=n.search(/\S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(o>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(o==c)break}a=t}}return new i(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var o=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new i(s,o,n,t.length)}}.call(s.prototype)}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};o.inherits(u,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;return i.length&&"comment"==i[i.length-1].type||t.match(/^.*\{\s*$/)&&(o+=n),o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,o){return this.$completer.getCompletions(e,t,n,o)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u}),ace.require(["ace/mode/css"],function(t){e&&(e.exports=t)})},29072(e,t,n){e=n.nmd(e),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},r.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};o.inherits(r,i),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.JsDocCommentHighlightRules=r}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,r=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",a=function(e){var t={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},n=this.createKeywordMapper(t,"identifier"),o="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",r="(function)(\\s*)(\\*?)",a={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(t).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[i.getStartRule("doc-start"),c("no_regex"),a,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)"+r+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+r+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+r+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:n,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:r+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),c("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[c("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:o},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:o},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),e&&0==e.jsx||l.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=s.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var o="/"==e.charAt(1)?2:1;return 1==o?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==o&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==o?"":"end-")+"tag-open.xml",value:e.slice(0,o)},{type:"meta.tag.tag-name.xml",value:e.substr(o)}]},regex:"</?(?:"+e+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,c("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function c(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}o.inherits(a,r),t.JavaScriptHighlightRules=a}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var o=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,r=e.findMatchingBracket({row:t,column:i});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new o(t,0,t,i-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator;function s(e,t){return e&&e.type.lastIndexOf(t+".xml")>-1}var a=function(){this.add("string_dquotes","insertion",function(e,t,n,o,i){if('"'==i||"'"==i){var a=i,l=o.doc.getTextRange(n.getSelectionRange());if(""!==l&&"'"!==l&&'"'!=l&&n.getWrapBehavioursEnabled())return{text:a+l+a,selection:!1};var c=n.getCursorPosition(),d=o.doc.getLine(c.row).substring(c.column,c.column+1),u=new r(o,c.row,c.column),h=u.getCurrentToken();if(d==a&&(s(h,"attribute-value")||s(h,"string")))return{text:"",selection:[1,1]};if(h||(h=u.stepBackward()),!h)return;for(;s(h,"tag-whitespace")||s(h,"whitespace");)h=u.stepBackward();var p=!d||d.match(/\s/);if(s(h,"attribute-equals")&&(p||">"==d)||s(h,"decl-attribute-equals")&&(p||"?"==d))return{text:a+a,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(e,t,n,o,i){var r=o.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==r||"'"==r)&&o.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==r)return i.end.column++,i}),this.add("autoclosing","insertion",function(e,t,n,o,i){if(">"==i){var a=n.getSelectionRange().start,l=new r(o,a.row,a.column),c=l.getCurrentToken()||l.stepBackward();if(!c||!(s(c,"tag-name")||s(c,"tag-whitespace")||s(c,"attribute-name")||s(c,"attribute-equals")||s(c,"attribute-value")))return;if(s(c,"reference.attribute-value"))return;if(s(c,"attribute-value")){var d=l.getCurrentTokenColumn()+c.value.length;if(a.column<d)return;if(a.column==d){var u=l.stepForward();if(u&&s(u,"attribute-value"))return;l.stepBackward()}}if(/^\s*>/.test(o.getLine(a.row).slice(a.column)))return;for(;!s(c,"tag-name");)if("<"==(c=l.stepBackward()).value){c=l.stepForward();break}var h=l.getCurrentTokenRow(),p=l.getCurrentTokenColumn();if(s(l.stepBackward(),"end-tag-open"))return;var g=c.value;if(h==a.row&&(g=g.substring(0,a.column-p)),this.voidElements&&this.voidElements.hasOwnProperty(g.toLowerCase()))return;return{text:"></"+g+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(e,t,n,o,i){if("\n"==i){var a=n.getCursorPosition(),l=o.getLine(a.row),c=new r(o,a.row,a.column),d=c.getCurrentToken();if(s(d,"")&&-1!==d.type.indexOf("tag-close")){if("/>"==d.value)return;for(;d&&-1===d.type.indexOf("tag-name");)d=c.stepBackward();if(!d)return;var u=d.value,h=c.getCurrentTokenRow();if(!(d=c.stepBackward())||-1!==d.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[u]||!this.voidElements){var p=o.getTokenAt(a.row,a.column+1),g=(l=o.getLine(h),this.$getIndent(l)),m=g+o.getTabString();return p&&"</"===p.value?{text:"\n"+m+"\n"+g,selection:[1,m.length,1,m.length]}:{text:"\n"+m}}}}})};o.inherits(a,i),t.XmlBehaviour=a}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../../token_iterator").TokenIterator,r=e("../behaviour/cstyle").CstyleBehaviour,s=e("../behaviour/xml").XmlBehaviour,a=function(){var e=new s({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(e),this.inherit(r),this.add("autoclosing-fragment","insertion",function(e,t,n,o,r){if(">"==r){var s=n.getSelectionRange().start,a=new i(o,s.row,s.column),l=a.getCurrentToken()||a.stepBackward();if(!l)return;if("<"==l.value)return{text:"></>",selection:[1,1]}}})};o.inherits(a,r),t.JavaScriptBehaviour=a}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e,t){r.call(this),this.voidElements=e||{},this.optionalEndTags=o.mixin({},this.voidElements),t&&o.mixin(this.optionalEndTags,t)};o.inherits(s,r);var a=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(e,t){return e&&e.type&&e.type.lastIndexOf(t+".xml")>-1}(function(){this.getFoldWidget=function(e,t,n){var o=this._getFirstTagInLine(e,n);return o?o.closing||!o.tagName&&o.selfClosing?"markbeginend"===t?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(e,n,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),o=new a,i=0;i<n.length;i++){var r=n[i];if(l(r,"tag-open")){if(o.end.column=o.start.column+r.value.length,o.closing=l(r,"end-tag-open"),!(r=n[++i]))return null;if(o.tagName=r.value,""===r.value){if(!(r=n[++i]))return null;o.tagName=r.value}for(o.end.column+=r.value.length,i++;i<n.length;i++)if(r=n[i],o.end.column+=r.value.length,l(r,"tag-close")){o.selfClosing="/>"==r.value;break}return o}if(l(r,"tag-close"))return o.selfClosing="/>"==r.value,o;o.start.column+=r.value.length}return null},this._findEndTagInLine=function(e,t,n,o){for(var i=e.getTokens(t),r=0,s=0;s<i.length;s++){var a=i[s];if(!((r+=a.value.length)<o-1)&&l(a,"end-tag-open")&&(l(a=i[s+1],"tag-name")&&""===a.value&&(a=i[s+2]),a&&a.value==n))return!0}return!1},this.getFoldWidgetRange=function(e,t,n){if(!this._getFirstTagInLine(e,n))return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o=e.getMatchingTags({row:n,column:0});return o?new i(o.openTag.end.row,o.openTag.end.column,o.closeTag.start.row,o.closeTag.start.column):void 0}}).call(s.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};o.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(o)?"start":i},this.getFoldWidgetRange=function(e,t,n,o){var i,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(i=r.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(o?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=r.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),o=n.search(/\S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(o>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(o==c)break}a=t}}return new i(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var o=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new i(s,o,n,t.length)}}.call(s.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("./xml").FoldMode,r=e("./cstyle").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end))),this.xmlFoldMode=new i};o.inherits(s,r),function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){return this.getFoldWidgetBase(e,t,n)||this.xmlFoldMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n,o){return this.getFoldWidgetRangeBase(e,t,n,o)||this.xmlFoldMode.getFoldWidgetRange(e,t,n)}}.call(s.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,d=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};o.inherits(d,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),r=i.tokens,s=i.state;if(r.length&&"comment"==r[r.length-1].type)return o;if("start"==e||"no_regex"==e)t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/)&&(o+=n);else if("doc-start"==e&&("start"==s||"no_regex"==s))return"";return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(d.prototype),t.Mode=d}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:d},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+d+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};o.inherits(p,i),t.CssHighlightRules=p}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,t,n){"use strict";var o={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});o.hasOwnProperty(n)||(o[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,o){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var i=t.getLine(n.row).substr(0,n.column),r=/\([^)]*$/.test(i);return r&&(i=i.substr(i.lastIndexOf("(")+1)),/:[^;]+$/.test(i)?(/([\w\-]+):[^:]*$/.test(i),this.getPropertyValueCompletions(e,t,n,o)):this.getPropertyCompletions(e,t,n,o,r)}return[]},this.getPropertyCompletions=function(e,t,n,i,r){return r=r||!1,Object.keys(o).map(function(e){return{caption:e,snippet:e+": $0"+(r?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(e,t,n,i){var r=t.getLine(n.row).substr(0,n.column),s=(/([\w\-]+):[^:]*$/.exec(r)||{})[1];if(!s)return[];var a=[];return s in o&&"object"==typeof o[s]&&(a=Object.keys(o[s])),a.map(function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}})}}).call(i.prototype),t.CssCompletions=i}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(i),this.add("colon","insertion",function(e,t,n,o,i){if(":"===i&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(o,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=o.doc.getLine(s.row);if(":"===c.substring(s.column,s.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(e,t,n,o,i){var s=o.doc.getTextRange(i);if(!i.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(o,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type&&";"===o.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i}}),this.add("semicolon","insertion",function(e,t,n,o,i){if(";"===i&&n.selection.isEmpty()){var r=n.getCursorPosition();if(";"===o.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(e,t,n,o,i){if("!"===i&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=o.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}})};o.inherits(s,i),t.CssBehaviour=s}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};o.inherits(u,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;return i.length&&"comment"==i[i.length-1].type||t.match(/^.*\{\s*$/)&&(o+=n),o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,o){return this.$completer.getCompletions(e,t,n,o)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,r=function(e){var t="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+t+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:t},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+t+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+t+":)?"+t+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===r&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),o.inherits(r,i),t.XmlHighlightRules=r}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("../lib/lang"),r=e("./css_highlight_rules").CssHighlightRules,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./xml_highlight_rules").XmlHighlightRules,l=i.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),c=function(){a.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=l[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(r,"css-","style"),this.embedTagRules(new s({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};o.inherits(c,a),t.HtmlHighlightRules=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("./fold_mode").FoldMode,r=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};o.inherits(r,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,o){var i=this.$getMode(e);return i?i.getFoldWidget(t,n,o):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var o=this.$getMode(e.getState(n-1));return o&&o.getFoldWidget(e,t,n)||(o=this.$getMode(e.getState(n))),o&&o.getFoldWidget(e,t,n)||(o=this.defaultMode),o.getFoldWidgetRange(e,t,n)}}.call(r.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var o=e("../../lib/oop"),i=e("./mixed").FoldMode,r=e("./xml").FoldMode,s=e("./cstyle").FoldMode,a=t.FoldMode=function(e,t){i.call(this,new r(e,t),{"js-":new s,"css-":new s})};o.inherits(a,i)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,t,n){"use strict";var o=e("../token_iterator").TokenIterator,i=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"]),r={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},s=Object.keys(r);function a(e,t){return e.type.lastIndexOf(t+".xml")>-1}function l(e,t){for(var n=new o(e,t.row,t.column),i=n.getCurrentToken();i&&!a(i,"tag-name");)i=n.stepBackward();if(i)return i.value}var c=function(){};(function(){this.getCompletions=function(e,t,n,o){var i=t.getTokenAt(n.row,n.column);if(!i)return[];if(a(i,"tag-name")||a(i,"tag-open")||a(i,"end-tag-open"))return this.getTagCompletions(e,t,n,o);if(a(i,"tag-whitespace")||a(i,"attribute-name"))return this.getAttributeCompletions(e,t,n,o);if(a(i,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,o);var r=t.getLine(n.row).substr(0,n.column);return/&[a-z]*$/i.test(r)?this.getHTMLEntityCompletions(e,t,n,o):[]},this.getTagCompletions=function(e,t,n,o){return s.map(function(e){return{value:e,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(e,t,n,o){var s=l(t,n);if(!s)return[];var a=i;return s in r&&(a=a.concat(Object.keys(r[s]))),a.map(function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(e,t,n,i){var s=l(t,n),c=function(e,t){for(var n=new o(e,t.row,t.column),i=n.getCurrentToken();i&&!a(i,"attribute-name");)i=n.stepBackward();if(i)return i.value}(t,n);if(!s)return[];var d=[];return s in r&&c in r[s]&&"object"==typeof r[s][c]&&(d=Object.keys(r[s][c])),d.map(function(e){return{caption:e,snippet:e,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(e,t,n,o){return["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"].map(function(e){return{caption:e,snippet:e,meta:"html entity",score:1e6}})}}).call(c.prototype),t.HtmlCompletions=c}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,t,n){"use strict";var o=e("../lib/oop"),i=e("../lib/lang"),r=e("./text").Mode,s=e("./javascript").Mode,a=e("./css").Mode,l=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,d=e("./folding/html").FoldMode,u=e("./html_completions").HtmlCompletions,h=e("../worker/worker_client").WorkerClient,p=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],m=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=l,this.$behaviour=new c,this.$completer=new u,this.createModeDelegates({"js-":s,"css-":a}),this.foldingRules=new d(this.voidElements,i.arrayToMap(g))};o.inherits(m,r),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=i.arrayToMap(p),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,o){return this.$completer.getCompletions(e,t,n,o)},this.createWorker=function(e){if(this.constructor==m){var t=new h(["ace"],"ace/mode/html_worker","Worker");return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(m.prototype),t.Mode=m}),ace.require(["ace/mode/html"],function(t){e&&(e.exports=t)})},58457(e,t,n){e=n.nmd(e),ace.define("ace/snippets/css.snippets",["require","exports","module"],function(e,t,n){n.exports="snippet .\n\t${1} {\n\t\t${2}\n\t}\nsnippet !\n\t !important\nsnippet bdi:m+\n\t-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:m\n\t-moz-border-image: ${1};\nsnippet bdrz:m\n\t-moz-border-radius: ${1};\nsnippet bxsh:m+\n\t-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:m\n\t-moz-box-shadow: ${1};\nsnippet bdi:w+\n\t-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:w\n\t-webkit-border-image: ${1};\nsnippet bdrz:w\n\t-webkit-border-radius: ${1};\nsnippet bxsh:w+\n\t-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:w\n\t-webkit-box-shadow: ${1};\nsnippet @f\n\t@font-face {\n\t\tfont-family: ${1};\n\t\tsrc: url(${2});\n\t}\nsnippet @i\n\t@import url(${1});\nsnippet @m\n\t@media ${1:print} {\n\t\t${2}\n\t}\nsnippet bg+\n\tbackground: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\nsnippet bga\n\tbackground-attachment: ${1};\nsnippet bga:f\n\tbackground-attachment: fixed;\nsnippet bga:s\n\tbackground-attachment: scroll;\nsnippet bgbk\n\tbackground-break: ${1};\nsnippet bgbk:bb\n\tbackground-break: bounding-box;\nsnippet bgbk:c\n\tbackground-break: continuous;\nsnippet bgbk:eb\n\tbackground-break: each-box;\nsnippet bgcp\n\tbackground-clip: ${1};\nsnippet bgcp:bb\n\tbackground-clip: border-box;\nsnippet bgcp:cb\n\tbackground-clip: content-box;\nsnippet bgcp:nc\n\tbackground-clip: no-clip;\nsnippet bgcp:pb\n\tbackground-clip: padding-box;\nsnippet bgc\n\tbackground-color: #${1:FFF};\nsnippet bgc:t\n\tbackground-color: transparent;\nsnippet bgi\n\tbackground-image: url(${1});\nsnippet bgi:n\n\tbackground-image: none;\nsnippet bgo\n\tbackground-origin: ${1};\nsnippet bgo:bb\n\tbackground-origin: border-box;\nsnippet bgo:cb\n\tbackground-origin: content-box;\nsnippet bgo:pb\n\tbackground-origin: padding-box;\nsnippet bgpx\n\tbackground-position-x: ${1};\nsnippet bgpy\n\tbackground-position-y: ${1};\nsnippet bgp\n\tbackground-position: ${1:0} ${2:0};\nsnippet bgr\n\tbackground-repeat: ${1};\nsnippet bgr:n\n\tbackground-repeat: no-repeat;\nsnippet bgr:x\n\tbackground-repeat: repeat-x;\nsnippet bgr:y\n\tbackground-repeat: repeat-y;\nsnippet bgr:r\n\tbackground-repeat: repeat;\nsnippet bgz\n\tbackground-size: ${1};\nsnippet bgz:a\n\tbackground-size: auto;\nsnippet bgz:ct\n\tbackground-size: contain;\nsnippet bgz:cv\n\tbackground-size: cover;\nsnippet bg\n\tbackground: ${1};\nsnippet bg:ie\n\tfilter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\nsnippet bg:n\n\tbackground: none;\nsnippet bd+\n\tborder: ${1:1px} ${2:solid} #${3:000};\nsnippet bdb+\n\tborder-bottom: ${1:1px} ${2:solid} #${3:000};\nsnippet bdbc\n\tborder-bottom-color: #${1:000};\nsnippet bdbi\n\tborder-bottom-image: url(${1});\nsnippet bdbi:n\n\tborder-bottom-image: none;\nsnippet bdbli\n\tborder-bottom-left-image: url(${1});\nsnippet bdbli:c\n\tborder-bottom-left-image: continue;\nsnippet bdbli:n\n\tborder-bottom-left-image: none;\nsnippet bdblrz\n\tborder-bottom-left-radius: ${1};\nsnippet bdbri\n\tborder-bottom-right-image: url(${1});\nsnippet bdbri:c\n\tborder-bottom-right-image: continue;\nsnippet bdbri:n\n\tborder-bottom-right-image: none;\nsnippet bdbrrz\n\tborder-bottom-right-radius: ${1};\nsnippet bdbs\n\tborder-bottom-style: ${1};\nsnippet bdbs:n\n\tborder-bottom-style: none;\nsnippet bdbw\n\tborder-bottom-width: ${1};\nsnippet bdb\n\tborder-bottom: ${1};\nsnippet bdb:n\n\tborder-bottom: none;\nsnippet bdbk\n\tborder-break: ${1};\nsnippet bdbk:c\n\tborder-break: close;\nsnippet bdcl\n\tborder-collapse: ${1};\nsnippet bdcl:c\n\tborder-collapse: collapse;\nsnippet bdcl:s\n\tborder-collapse: separate;\nsnippet bdc\n\tborder-color: #${1:000};\nsnippet bdci\n\tborder-corner-image: url(${1});\nsnippet bdci:c\n\tborder-corner-image: continue;\nsnippet bdci:n\n\tborder-corner-image: none;\nsnippet bdf\n\tborder-fit: ${1};\nsnippet bdf:c\n\tborder-fit: clip;\nsnippet bdf:of\n\tborder-fit: overwrite;\nsnippet bdf:ow\n\tborder-fit: overwrite;\nsnippet bdf:r\n\tborder-fit: repeat;\nsnippet bdf:sc\n\tborder-fit: scale;\nsnippet bdf:sp\n\tborder-fit: space;\nsnippet bdf:st\n\tborder-fit: stretch;\nsnippet bdi\n\tborder-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:n\n\tborder-image: none;\nsnippet bdl+\n\tborder-left: ${1:1px} ${2:solid} #${3:000};\nsnippet bdlc\n\tborder-left-color: #${1:000};\nsnippet bdli\n\tborder-left-image: url(${1});\nsnippet bdli:n\n\tborder-left-image: none;\nsnippet bdls\n\tborder-left-style: ${1};\nsnippet bdls:n\n\tborder-left-style: none;\nsnippet bdlw\n\tborder-left-width: ${1};\nsnippet bdl\n\tborder-left: ${1};\nsnippet bdl:n\n\tborder-left: none;\nsnippet bdlt\n\tborder-length: ${1};\nsnippet bdlt:a\n\tborder-length: auto;\nsnippet bdrz\n\tborder-radius: ${1};\nsnippet bdr+\n\tborder-right: ${1:1px} ${2:solid} #${3:000};\nsnippet bdrc\n\tborder-right-color: #${1:000};\nsnippet bdri\n\tborder-right-image: url(${1});\nsnippet bdri:n\n\tborder-right-image: none;\nsnippet bdrs\n\tborder-right-style: ${1};\nsnippet bdrs:n\n\tborder-right-style: none;\nsnippet bdrw\n\tborder-right-width: ${1};\nsnippet bdr\n\tborder-right: ${1};\nsnippet bdr:n\n\tborder-right: none;\nsnippet bdsp\n\tborder-spacing: ${1};\nsnippet bds\n\tborder-style: ${1};\nsnippet bds:ds\n\tborder-style: dashed;\nsnippet bds:dtds\n\tborder-style: dot-dash;\nsnippet bds:dtdtds\n\tborder-style: dot-dot-dash;\nsnippet bds:dt\n\tborder-style: dotted;\nsnippet bds:db\n\tborder-style: double;\nsnippet bds:g\n\tborder-style: groove;\nsnippet bds:h\n\tborder-style: hidden;\nsnippet bds:i\n\tborder-style: inset;\nsnippet bds:n\n\tborder-style: none;\nsnippet bds:o\n\tborder-style: outset;\nsnippet bds:r\n\tborder-style: ridge;\nsnippet bds:s\n\tborder-style: solid;\nsnippet bds:w\n\tborder-style: wave;\nsnippet bdt+\n\tborder-top: ${1:1px} ${2:solid} #${3:000};\nsnippet bdtc\n\tborder-top-color: #${1:000};\nsnippet bdti\n\tborder-top-image: url(${1});\nsnippet bdti:n\n\tborder-top-image: none;\nsnippet bdtli\n\tborder-top-left-image: url(${1});\nsnippet bdtli:c\n\tborder-corner-image: continue;\nsnippet bdtli:n\n\tborder-corner-image: none;\nsnippet bdtlrz\n\tborder-top-left-radius: ${1};\nsnippet bdtri\n\tborder-top-right-image: url(${1});\nsnippet bdtri:c\n\tborder-top-right-image: continue;\nsnippet bdtri:n\n\tborder-top-right-image: none;\nsnippet bdtrrz\n\tborder-top-right-radius: ${1};\nsnippet bdts\n\tborder-top-style: ${1};\nsnippet bdts:n\n\tborder-top-style: none;\nsnippet bdtw\n\tborder-top-width: ${1};\nsnippet bdt\n\tborder-top: ${1};\nsnippet bdt:n\n\tborder-top: none;\nsnippet bdw\n\tborder-width: ${1};\nsnippet bd\n\tborder: ${1};\nsnippet bd:n\n\tborder: none;\nsnippet b\n\tbottom: ${1};\nsnippet b:a\n\tbottom: auto;\nsnippet bxsh+\n\tbox-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh\n\tbox-shadow: ${1};\nsnippet bxsh:n\n\tbox-shadow: none;\nsnippet bxz\n\tbox-sizing: ${1};\nsnippet bxz:bb\n\tbox-sizing: border-box;\nsnippet bxz:cb\n\tbox-sizing: content-box;\nsnippet cps\n\tcaption-side: ${1};\nsnippet cps:b\n\tcaption-side: bottom;\nsnippet cps:t\n\tcaption-side: top;\nsnippet cl\n\tclear: ${1};\nsnippet cl:b\n\tclear: both;\nsnippet cl:l\n\tclear: left;\nsnippet cl:n\n\tclear: none;\nsnippet cl:r\n\tclear: right;\nsnippet cp\n\tclip: ${1};\nsnippet cp:a\n\tclip: auto;\nsnippet cp:r\n\tclip: rect(${1:0} ${2:0} ${3:0} ${4:0});\nsnippet c\n\tcolor: #${1:000};\nsnippet ct\n\tcontent: ${1};\nsnippet ct:a\n\tcontent: attr(${1});\nsnippet ct:cq\n\tcontent: close-quote;\nsnippet ct:c\n\tcontent: counter(${1});\nsnippet ct:cs\n\tcontent: counters(${1});\nsnippet ct:ncq\n\tcontent: no-close-quote;\nsnippet ct:noq\n\tcontent: no-open-quote;\nsnippet ct:n\n\tcontent: normal;\nsnippet ct:oq\n\tcontent: open-quote;\nsnippet coi\n\tcounter-increment: ${1};\nsnippet cor\n\tcounter-reset: ${1};\nsnippet cur\n\tcursor: ${1};\nsnippet cur:a\n\tcursor: auto;\nsnippet cur:c\n\tcursor: crosshair;\nsnippet cur:d\n\tcursor: default;\nsnippet cur:ha\n\tcursor: hand;\nsnippet cur:he\n\tcursor: help;\nsnippet cur:m\n\tcursor: move;\nsnippet cur:p\n\tcursor: pointer;\nsnippet cur:t\n\tcursor: text;\nsnippet d\n\tdisplay: ${1};\nsnippet d:mib\n\tdisplay: -moz-inline-box;\nsnippet d:mis\n\tdisplay: -moz-inline-stack;\nsnippet d:b\n\tdisplay: block;\nsnippet d:cp\n\tdisplay: compact;\nsnippet d:ib\n\tdisplay: inline-block;\nsnippet d:itb\n\tdisplay: inline-table;\nsnippet d:i\n\tdisplay: inline;\nsnippet d:li\n\tdisplay: list-item;\nsnippet d:n\n\tdisplay: none;\nsnippet d:ri\n\tdisplay: run-in;\nsnippet d:tbcp\n\tdisplay: table-caption;\nsnippet d:tbc\n\tdisplay: table-cell;\nsnippet d:tbclg\n\tdisplay: table-column-group;\nsnippet d:tbcl\n\tdisplay: table-column;\nsnippet d:tbfg\n\tdisplay: table-footer-group;\nsnippet d:tbhg\n\tdisplay: table-header-group;\nsnippet d:tbrg\n\tdisplay: table-row-group;\nsnippet d:tbr\n\tdisplay: table-row;\nsnippet d:tb\n\tdisplay: table;\nsnippet ec\n\tempty-cells: ${1};\nsnippet ec:h\n\tempty-cells: hide;\nsnippet ec:s\n\tempty-cells: show;\nsnippet exp\n\texpression()\nsnippet fl\n\tfloat: ${1};\nsnippet fl:l\n\tfloat: left;\nsnippet fl:n\n\tfloat: none;\nsnippet fl:r\n\tfloat: right;\nsnippet f+\n\tfont: ${1:1em} ${2:Arial},${3:sans-serif};\nsnippet fef\n\tfont-effect: ${1};\nsnippet fef:eb\n\tfont-effect: emboss;\nsnippet fef:eg\n\tfont-effect: engrave;\nsnippet fef:n\n\tfont-effect: none;\nsnippet fef:o\n\tfont-effect: outline;\nsnippet femp\n\tfont-emphasize-position: ${1};\nsnippet femp:a\n\tfont-emphasize-position: after;\nsnippet femp:b\n\tfont-emphasize-position: before;\nsnippet fems\n\tfont-emphasize-style: ${1};\nsnippet fems:ac\n\tfont-emphasize-style: accent;\nsnippet fems:c\n\tfont-emphasize-style: circle;\nsnippet fems:ds\n\tfont-emphasize-style: disc;\nsnippet fems:dt\n\tfont-emphasize-style: dot;\nsnippet fems:n\n\tfont-emphasize-style: none;\nsnippet fem\n\tfont-emphasize: ${1};\nsnippet ff\n\tfont-family: ${1};\nsnippet ff:c\n\tfont-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\nsnippet ff:f\n\tfont-family: ${1:Capitals,Impact},fantasy;\nsnippet ff:m\n\tfont-family: ${1:Monaco,'Courier New'},monospace;\nsnippet ff:ss\n\tfont-family: ${1:Helvetica,Arial},sans-serif;\nsnippet ff:s\n\tfont-family: ${1:Georgia,'Times New Roman'},serif;\nsnippet fza\n\tfont-size-adjust: ${1};\nsnippet fza:n\n\tfont-size-adjust: none;\nsnippet fz\n\tfont-size: ${1};\nsnippet fsm\n\tfont-smooth: ${1};\nsnippet fsm:aw\n\tfont-smooth: always;\nsnippet fsm:a\n\tfont-smooth: auto;\nsnippet fsm:n\n\tfont-smooth: never;\nsnippet fst\n\tfont-stretch: ${1};\nsnippet fst:c\n\tfont-stretch: condensed;\nsnippet fst:e\n\tfont-stretch: expanded;\nsnippet fst:ec\n\tfont-stretch: extra-condensed;\nsnippet fst:ee\n\tfont-stretch: extra-expanded;\nsnippet fst:n\n\tfont-stretch: normal;\nsnippet fst:sc\n\tfont-stretch: semi-condensed;\nsnippet fst:se\n\tfont-stretch: semi-expanded;\nsnippet fst:uc\n\tfont-stretch: ultra-condensed;\nsnippet fst:ue\n\tfont-stretch: ultra-expanded;\nsnippet fs\n\tfont-style: ${1};\nsnippet fs:i\n\tfont-style: italic;\nsnippet fs:n\n\tfont-style: normal;\nsnippet fs:o\n\tfont-style: oblique;\nsnippet fv\n\tfont-variant: ${1};\nsnippet fv:n\n\tfont-variant: normal;\nsnippet fv:sc\n\tfont-variant: small-caps;\nsnippet fw\n\tfont-weight: ${1};\nsnippet fw:b\n\tfont-weight: bold;\nsnippet fw:br\n\tfont-weight: bolder;\nsnippet fw:lr\n\tfont-weight: lighter;\nsnippet fw:n\n\tfont-weight: normal;\nsnippet f\n\tfont: ${1};\nsnippet h\n\theight: ${1};\nsnippet h:a\n\theight: auto;\nsnippet l\n\tleft: ${1};\nsnippet l:a\n\tleft: auto;\nsnippet lts\n\tletter-spacing: ${1};\nsnippet lh\n\tline-height: ${1};\nsnippet lisi\n\tlist-style-image: url(${1});\nsnippet lisi:n\n\tlist-style-image: none;\nsnippet lisp\n\tlist-style-position: ${1};\nsnippet lisp:i\n\tlist-style-position: inside;\nsnippet lisp:o\n\tlist-style-position: outside;\nsnippet list\n\tlist-style-type: ${1};\nsnippet list:c\n\tlist-style-type: circle;\nsnippet list:dclz\n\tlist-style-type: decimal-leading-zero;\nsnippet list:dc\n\tlist-style-type: decimal;\nsnippet list:d\n\tlist-style-type: disc;\nsnippet list:lr\n\tlist-style-type: lower-roman;\nsnippet list:n\n\tlist-style-type: none;\nsnippet list:s\n\tlist-style-type: square;\nsnippet list:ur\n\tlist-style-type: upper-roman;\nsnippet lis\n\tlist-style: ${1};\nsnippet lis:n\n\tlist-style: none;\nsnippet mb\n\tmargin-bottom: ${1};\nsnippet mb:a\n\tmargin-bottom: auto;\nsnippet ml\n\tmargin-left: ${1};\nsnippet ml:a\n\tmargin-left: auto;\nsnippet mr\n\tmargin-right: ${1};\nsnippet mr:a\n\tmargin-right: auto;\nsnippet mt\n\tmargin-top: ${1};\nsnippet mt:a\n\tmargin-top: auto;\nsnippet m\n\tmargin: ${1};\nsnippet m:4\n\tmargin: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet m:3\n\tmargin: ${1:0} ${2:0} ${3:0};\nsnippet m:2\n\tmargin: ${1:0} ${2:0};\nsnippet m:0\n\tmargin: 0;\nsnippet m:a\n\tmargin: auto;\nsnippet mah\n\tmax-height: ${1};\nsnippet mah:n\n\tmax-height: none;\nsnippet maw\n\tmax-width: ${1};\nsnippet maw:n\n\tmax-width: none;\nsnippet mih\n\tmin-height: ${1};\nsnippet miw\n\tmin-width: ${1};\nsnippet op\n\topacity: ${1};\nsnippet op:ie\n\tfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\nsnippet op:ms\n\t-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\nsnippet orp\n\torphans: ${1};\nsnippet o+\n\toutline: ${1:1px} ${2:solid} #${3:000};\nsnippet oc\n\toutline-color: ${1:#000};\nsnippet oc:i\n\toutline-color: invert;\nsnippet oo\n\toutline-offset: ${1};\nsnippet os\n\toutline-style: ${1};\nsnippet ow\n\toutline-width: ${1};\nsnippet o\n\toutline: ${1};\nsnippet o:n\n\toutline: none;\nsnippet ovs\n\toverflow-style: ${1};\nsnippet ovs:a\n\toverflow-style: auto;\nsnippet ovs:mq\n\toverflow-style: marquee;\nsnippet ovs:mv\n\toverflow-style: move;\nsnippet ovs:p\n\toverflow-style: panner;\nsnippet ovs:s\n\toverflow-style: scrollbar;\nsnippet ovx\n\toverflow-x: ${1};\nsnippet ovx:a\n\toverflow-x: auto;\nsnippet ovx:h\n\toverflow-x: hidden;\nsnippet ovx:s\n\toverflow-x: scroll;\nsnippet ovx:v\n\toverflow-x: visible;\nsnippet ovy\n\toverflow-y: ${1};\nsnippet ovy:a\n\toverflow-y: auto;\nsnippet ovy:h\n\toverflow-y: hidden;\nsnippet ovy:s\n\toverflow-y: scroll;\nsnippet ovy:v\n\toverflow-y: visible;\nsnippet ov\n\toverflow: ${1};\nsnippet ov:a\n\toverflow: auto;\nsnippet ov:h\n\toverflow: hidden;\nsnippet ov:s\n\toverflow: scroll;\nsnippet ov:v\n\toverflow: visible;\nsnippet pb\n\tpadding-bottom: ${1};\nsnippet pl\n\tpadding-left: ${1};\nsnippet pr\n\tpadding-right: ${1};\nsnippet pt\n\tpadding-top: ${1};\nsnippet p\n\tpadding: ${1};\nsnippet p:4\n\tpadding: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet p:3\n\tpadding: ${1:0} ${2:0} ${3:0};\nsnippet p:2\n\tpadding: ${1:0} ${2:0};\nsnippet p:0\n\tpadding: 0;\nsnippet pgba\n\tpage-break-after: ${1};\nsnippet pgba:aw\n\tpage-break-after: always;\nsnippet pgba:a\n\tpage-break-after: auto;\nsnippet pgba:l\n\tpage-break-after: left;\nsnippet pgba:r\n\tpage-break-after: right;\nsnippet pgbb\n\tpage-break-before: ${1};\nsnippet pgbb:aw\n\tpage-break-before: always;\nsnippet pgbb:a\n\tpage-break-before: auto;\nsnippet pgbb:l\n\tpage-break-before: left;\nsnippet pgbb:r\n\tpage-break-before: right;\nsnippet pgbi\n\tpage-break-inside: ${1};\nsnippet pgbi:a\n\tpage-break-inside: auto;\nsnippet pgbi:av\n\tpage-break-inside: avoid;\nsnippet pos\n\tposition: ${1};\nsnippet pos:a\n\tposition: absolute;\nsnippet pos:f\n\tposition: fixed;\nsnippet pos:r\n\tposition: relative;\nsnippet pos:s\n\tposition: static;\nsnippet q\n\tquotes: ${1};\nsnippet q:en\n\tquotes: '\\201C' '\\201D' '\\2018' '\\2019';\nsnippet q:n\n\tquotes: none;\nsnippet q:ru\n\tquotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\nsnippet rz\n\tresize: ${1};\nsnippet rz:b\n\tresize: both;\nsnippet rz:h\n\tresize: horizontal;\nsnippet rz:n\n\tresize: none;\nsnippet rz:v\n\tresize: vertical;\nsnippet r\n\tright: ${1};\nsnippet r:a\n\tright: auto;\nsnippet tbl\n\ttable-layout: ${1};\nsnippet tbl:a\n\ttable-layout: auto;\nsnippet tbl:f\n\ttable-layout: fixed;\nsnippet tal\n\ttext-align-last: ${1};\nsnippet tal:a\n\ttext-align-last: auto;\nsnippet tal:c\n\ttext-align-last: center;\nsnippet tal:l\n\ttext-align-last: left;\nsnippet tal:r\n\ttext-align-last: right;\nsnippet ta\n\ttext-align: ${1};\nsnippet ta:c\n\ttext-align: center;\nsnippet ta:l\n\ttext-align: left;\nsnippet ta:r\n\ttext-align: right;\nsnippet td\n\ttext-decoration: ${1};\nsnippet td:l\n\ttext-decoration: line-through;\nsnippet td:n\n\ttext-decoration: none;\nsnippet td:o\n\ttext-decoration: overline;\nsnippet td:u\n\ttext-decoration: underline;\nsnippet te\n\ttext-emphasis: ${1};\nsnippet te:ac\n\ttext-emphasis: accent;\nsnippet te:a\n\ttext-emphasis: after;\nsnippet te:b\n\ttext-emphasis: before;\nsnippet te:c\n\ttext-emphasis: circle;\nsnippet te:ds\n\ttext-emphasis: disc;\nsnippet te:dt\n\ttext-emphasis: dot;\nsnippet te:n\n\ttext-emphasis: none;\nsnippet th\n\ttext-height: ${1};\nsnippet th:a\n\ttext-height: auto;\nsnippet th:f\n\ttext-height: font-size;\nsnippet th:m\n\ttext-height: max-size;\nsnippet th:t\n\ttext-height: text-size;\nsnippet ti\n\ttext-indent: ${1};\nsnippet ti:-\n\ttext-indent: -9999px;\nsnippet tj\n\ttext-justify: ${1};\nsnippet tj:a\n\ttext-justify: auto;\nsnippet tj:d\n\ttext-justify: distribute;\nsnippet tj:ic\n\ttext-justify: inter-cluster;\nsnippet tj:ii\n\ttext-justify: inter-ideograph;\nsnippet tj:iw\n\ttext-justify: inter-word;\nsnippet tj:k\n\ttext-justify: kashida;\nsnippet tj:t\n\ttext-justify: tibetan;\nsnippet to+\n\ttext-outline: ${1:0} ${2:0} #${3:000};\nsnippet to\n\ttext-outline: ${1};\nsnippet to:n\n\ttext-outline: none;\nsnippet tr\n\ttext-replace: ${1};\nsnippet tr:n\n\ttext-replace: none;\nsnippet tsh+\n\ttext-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet tsh\n\ttext-shadow: ${1};\nsnippet tsh:n\n\ttext-shadow: none;\nsnippet tt\n\ttext-transform: ${1};\nsnippet tt:c\n\ttext-transform: capitalize;\nsnippet tt:l\n\ttext-transform: lowercase;\nsnippet tt:n\n\ttext-transform: none;\nsnippet tt:u\n\ttext-transform: uppercase;\nsnippet tw\n\ttext-wrap: ${1};\nsnippet tw:no\n\ttext-wrap: none;\nsnippet tw:n\n\ttext-wrap: normal;\nsnippet tw:s\n\ttext-wrap: suppress;\nsnippet tw:u\n\ttext-wrap: unrestricted;\nsnippet t\n\ttop: ${1};\nsnippet t:a\n\ttop: auto;\nsnippet va\n\tvertical-align: ${1};\nsnippet va:bl\n\tvertical-align: baseline;\nsnippet va:b\n\tvertical-align: bottom;\nsnippet va:m\n\tvertical-align: middle;\nsnippet va:sub\n\tvertical-align: sub;\nsnippet va:sup\n\tvertical-align: super;\nsnippet va:tb\n\tvertical-align: text-bottom;\nsnippet va:tt\n\tvertical-align: text-top;\nsnippet va:t\n\tvertical-align: top;\nsnippet v\n\tvisibility: ${1};\nsnippet v:c\n\tvisibility: collapse;\nsnippet v:h\n\tvisibility: hidden;\nsnippet v:v\n\tvisibility: visible;\nsnippet whsc\n\twhite-space-collapse: ${1};\nsnippet whsc:ba\n\twhite-space-collapse: break-all;\nsnippet whsc:bs\n\twhite-space-collapse: break-strict;\nsnippet whsc:k\n\twhite-space-collapse: keep-all;\nsnippet whsc:l\n\twhite-space-collapse: loose;\nsnippet whsc:n\n\twhite-space-collapse: normal;\nsnippet whs\n\twhite-space: ${1};\nsnippet whs:n\n\twhite-space: normal;\nsnippet whs:nw\n\twhite-space: nowrap;\nsnippet whs:pl\n\twhite-space: pre-line;\nsnippet whs:pw\n\twhite-space: pre-wrap;\nsnippet whs:p\n\twhite-space: pre;\nsnippet wid\n\twidows: ${1};\nsnippet w\n\twidth: ${1};\nsnippet w:a\n\twidth: auto;\nsnippet wob\n\tword-break: ${1};\nsnippet wob:ba\n\tword-break: break-all;\nsnippet wob:bs\n\tword-break: break-strict;\nsnippet wob:k\n\tword-break: keep-all;\nsnippet wob:l\n\tword-break: loose;\nsnippet wob:n\n\tword-break: normal;\nsnippet wos\n\tword-spacing: ${1};\nsnippet wow\n\tword-wrap: ${1};\nsnippet wow:no\n\tword-wrap: none;\nsnippet wow:n\n\tword-wrap: normal;\nsnippet wow:s\n\tword-wrap: suppress;\nsnippet wow:u\n\tword-wrap: unrestricted;\nsnippet z\n\tz-index: ${1};\nsnippet z:a\n\tz-index: auto;\nsnippet zoo\n\tzoom: 1;\n"}),ace.define("ace/snippets/css",["require","exports","module","ace/snippets/css.snippets"],function(e,t,n){"use strict";t.snippetText=e("./css.snippets"),t.scope="css"}),ace.require(["ace/snippets/css"],function(t){e&&(e.exports=t)})},79289(e,t,n){e=n.nmd(e),ace.define("ace/snippets/html.snippets",["require","exports","module"],function(e,t,n){n.exports='# Some useful Unicode entities\n# Non-Breaking Space\nsnippet nbs\n\t \n# ←\nsnippet left\n\t←\n# →\nsnippet right\n\t→\n# ↑\nsnippet up\n\t↑\n# ↓\nsnippet down\n\t↓\n# ↩\nsnippet return\n\t↩\n# ⇤\nsnippet backtab\n\t⇤\n# ⇥\nsnippet tab\n\t⇥\n# ⇧\nsnippet shift\n\t⇧\n# ⌃\nsnippet ctrl\n\t⌃\n# ⌅\nsnippet enter\n\t⌅\n# ⌘\nsnippet cmd\n\t⌘\n# ⌥\nsnippet option\n\t⌥\n# ⌦\nsnippet delete\n\t⌦\n# ⌫\nsnippet backspace\n\t⌫\n# ⎋\nsnippet esc\n\t⎋\n# Generic Doctype\nsnippet doctype HTML 4.01 Strict\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\nsnippet doctype HTML 4.01 Transitional\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\nsnippet doctype HTML 5\n\t<!DOCTYPE HTML>\nsnippet doctype XHTML 1.0 Frameset\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Strict\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Transitional\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\nsnippet doctype XHTML 1.1\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# HTML Doctype 4.01 Strict\nsnippet docts\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\n# HTML Doctype 4.01 Transitional\nsnippet doct\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\n# HTML Doctype 5\nsnippet doct5\n\t<!DOCTYPE html>\n# XHTML Doctype 1.0 Frameset\nsnippet docxf\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\n# XHTML Doctype 1.0 Strict\nsnippet docxs\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n# XHTML Doctype 1.0 Transitional\nsnippet docxt\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n# XHTML Doctype 1.1\nsnippet docx\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# html5shiv\nsnippet html5shiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"><\/script>\n\t<![endif]--\x3e\nsnippet html5printshiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"><\/script>\n\t<![endif]--\x3e\n# Attributes\nsnippet attr\n\t${1:attribute}="${2:property}"\nsnippet attr+\n\t${1:attribute}="${2:property}" attr+${3}\nsnippet .\n\tclass="${1}"${2}\nsnippet #\n\tid="${1}"${2}\nsnippet alt\n\talt="${1}"${2}\nsnippet charset\n\tcharset="${1:utf-8}"${2}\nsnippet data\n\tdata-${1}="${2:$1}"${3}\nsnippet for\n\tfor="${1}"${2}\nsnippet height\n\theight="${1}"${2}\nsnippet href\n\thref="${1:#}"${2}\nsnippet lang\n\tlang="${1:en}"${2}\nsnippet media\n\tmedia="${1}"${2}\nsnippet name\n\tname="${1}"${2}\nsnippet rel\n\trel="${1}"${2}\nsnippet scope\n\tscope="${1:row}"${2}\nsnippet src\n\tsrc="${1}"${2}\nsnippet title=\n\ttitle="${1}"${2}\nsnippet type\n\ttype="${1}"${2}\nsnippet value\n\tvalue="${1}"${2}\nsnippet width\n\twidth="${1}"${2}\n# Elements\nsnippet a\n\t<a href="${1:#}">${2:$1}</a>\nsnippet a.\n\t<a class="${1}" href="${2:#}">${3:$1}</a>\nsnippet a#\n\t<a id="${1}" href="${2:#}">${3:$1}</a>\nsnippet a:ext\n\t<a href="http://${1:example.com}">${2:$1}</a>\nsnippet a:mail\n\t<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>\nsnippet abbr\n\t<abbr title="${1}">${2}</abbr>\nsnippet address\n\t<address>\n\t\t${1}\n\t</address>\nsnippet area\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\nsnippet area+\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\n\tarea+${5}\nsnippet area:c\n\t<area shape="circle" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:d\n\t<area shape="default" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:p\n\t<area shape="poly" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:r\n\t<area shape="rect" coords="${1}" href="${2}" alt="${3}" />\nsnippet article\n\t<article>\n\t\t${1}\n\t</article>\nsnippet article.\n\t<article class="${1}">\n\t\t${2}\n\t</article>\nsnippet article#\n\t<article id="${1}">\n\t\t${2}\n\t</article>\nsnippet aside\n\t<aside>\n\t\t${1}\n\t</aside>\nsnippet aside.\n\t<aside class="${1}">\n\t\t${2}\n\t</aside>\nsnippet aside#\n\t<aside id="${1}">\n\t\t${2}\n\t</aside>\nsnippet audio\n\t<audio src="${1}>${2}</audio>\nsnippet b\n\t<b>${1}</b>\nsnippet base\n\t<base href="${1}" target="${2}" />\nsnippet bdi\n\t<bdi>${1}</bdo>\nsnippet bdo\n\t<bdo dir="${1}">${2}</bdo>\nsnippet bdo:l\n\t<bdo dir="ltr">${1}</bdo>\nsnippet bdo:r\n\t<bdo dir="rtl">${1}</bdo>\nsnippet blockquote\n\t<blockquote>\n\t\t${1}\n\t</blockquote>\nsnippet body\n\t<body>\n\t\t${1}\n\t</body>\nsnippet br\n\t<br />${1}\nsnippet button\n\t<button type="${1:submit}">${2}</button>\nsnippet button.\n\t<button class="${1:button}" type="${2:submit}">${3}</button>\nsnippet button#\n\t<button id="${1}" type="${2:submit}">${3}</button>\nsnippet button:s\n\t<button type="submit">${1}</button>\nsnippet button:r\n\t<button type="reset">${1}</button>\nsnippet canvas\n\t<canvas id="${1:canvas}"></canvas>\nsnippet caption\n\t<caption>${1}</caption>\nsnippet cite\n\t<cite>${1}</cite>\nsnippet code\n\t<code>${1}</code>\nsnippet col\n\t<col />${1}\nsnippet col+\n\t<col />\n\tcol+${1}\nsnippet colgroup\n\t<colgroup>\n\t\t${1}\n\t</colgroup>\nsnippet colgroup+\n\t<colgroup>\n\t\t<col />\n\t\tcol+${1}\n\t</colgroup>\nsnippet command\n\t<command type="command" label="${1}" icon="${2}" />\nsnippet command:c\n\t<command type="checkbox" label="${1}" icon="${2}" />\nsnippet command:r\n\t<command type="radio" radiogroup="${1}" label="${2}" icon="${3}" />\nsnippet datagrid\n\t<datagrid>\n\t\t${1}\n\t</datagrid>\nsnippet datalist\n\t<datalist>\n\t\t${1}\n\t</datalist>\nsnippet datatemplate\n\t<datatemplate>\n\t\t${1}\n\t</datatemplate>\nsnippet dd\n\t<dd>${1}</dd>\nsnippet dd.\n\t<dd class="${1}">${2}</dd>\nsnippet dd#\n\t<dd id="${1}">${2}</dd>\nsnippet del\n\t<del>${1}</del>\nsnippet details\n\t<details>${1}</details>\nsnippet dfn\n\t<dfn>${1}</dfn>\nsnippet dialog\n\t<dialog>\n\t\t${1}\n\t</dialog>\nsnippet div\n\t<div>\n\t\t${1}\n\t</div>\nsnippet div.\n\t<div class="${1}">\n\t\t${2}\n\t</div>\nsnippet div#\n\t<div id="${1}">\n\t\t${2}\n\t</div>\nsnippet dl\n\t<dl>\n\t\t${1}\n\t</dl>\nsnippet dl.\n\t<dl class="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl#\n\t<dl id="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl+\n\t<dl>\n\t\t<dt>${1}</dt>\n\t\t<dd>${2}</dd>\n\t\tdt+${3}\n\t</dl>\nsnippet dt\n\t<dt>${1}</dt>\nsnippet dt.\n\t<dt class="${1}">${2}</dt>\nsnippet dt#\n\t<dt id="${1}">${2}</dt>\nsnippet dt+\n\t<dt>${1}</dt>\n\t<dd>${2}</dd>\n\tdt+${3}\nsnippet em\n\t<em>${1}</em>\nsnippet embed\n\t<embed src=${1} type="${2} />\nsnippet fieldset\n\t<fieldset>\n\t\t${1}\n\t</fieldset>\nsnippet fieldset.\n\t<fieldset class="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset#\n\t<fieldset id="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset+\n\t<fieldset>\n\t\t<legend><span>${1}</span></legend>\n\t\t${2}\n\t</fieldset>\n\tfieldset+${3}\nsnippet figcaption\n\t<figcaption>${1}</figcaption>\nsnippet figure\n\t<figure>${1}</figure>\nsnippet footer\n\t<footer>\n\t\t${1}\n\t</footer>\nsnippet footer.\n\t<footer class="${1}">\n\t\t${2}\n\t</footer>\nsnippet footer#\n\t<footer id="${1}">\n\t\t${2}\n\t</footer>\nsnippet form\n\t<form action="${1}" method="${2:get}" accept-charset="utf-8">\n\t\t${3}\n\t</form>\nsnippet form.\n\t<form class="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet form#\n\t<form id="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet h1\n\t<h1>${1}</h1>\nsnippet h1.\n\t<h1 class="${1}">${2}</h1>\nsnippet h1#\n\t<h1 id="${1}">${2}</h1>\nsnippet h2\n\t<h2>${1}</h2>\nsnippet h2.\n\t<h2 class="${1}">${2}</h2>\nsnippet h2#\n\t<h2 id="${1}">${2}</h2>\nsnippet h3\n\t<h3>${1}</h3>\nsnippet h3.\n\t<h3 class="${1}">${2}</h3>\nsnippet h3#\n\t<h3 id="${1}">${2}</h3>\nsnippet h4\n\t<h4>${1}</h4>\nsnippet h4.\n\t<h4 class="${1}">${2}</h4>\nsnippet h4#\n\t<h4 id="${1}">${2}</h4>\nsnippet h5\n\t<h5>${1}</h5>\nsnippet h5.\n\t<h5 class="${1}">${2}</h5>\nsnippet h5#\n\t<h5 id="${1}">${2}</h5>\nsnippet h6\n\t<h6>${1}</h6>\nsnippet h6.\n\t<h6 class="${1}">${2}</h6>\nsnippet h6#\n\t<h6 id="${1}">${2}</h6>\nsnippet head\n\t<head>\n\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\n\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t${2}\n\t</head>\nsnippet header\n\t<header>\n\t\t${1}\n\t</header>\nsnippet header.\n\t<header class="${1}">\n\t\t${2}\n\t</header>\nsnippet header#\n\t<header id="${1}">\n\t\t${2}\n\t</header>\nsnippet hgroup\n\t<hgroup>\n\t\t${1}\n\t</hgroup>\nsnippet hgroup.\n\t<hgroup class="${1}>\n\t\t${2}\n\t</hgroup>\nsnippet hr\n\t<hr />${1}\nsnippet html\n\t<html>\n\t${1}\n\t</html>\nsnippet xhtml\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t${1}\n\t</html>\nsnippet html5\n\t<!DOCTYPE html>\n\t<html>\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet xhtml5\n\t<!DOCTYPE html>\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet i\n\t<i>${1}</i>\nsnippet iframe\n\t<iframe src="${1}" frameborder="0"></iframe>${2}\nsnippet iframe.\n\t<iframe class="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet iframe#\n\t<iframe id="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet img\n\t<img src="${1}" alt="${2}" />${3}\nsnippet img.\n\t<img class="${1}" src="${2}" alt="${3}" />${4}\nsnippet img#\n\t<img id="${1}" src="${2}" alt="${3}" />${4}\nsnippet input\n\t<input type="${1:text/submit/hidden/button/image}" name="${2}" id="${3:$2}" value="${4}" />${5}\nsnippet input.\n\t<input class="${1}" type="${2:text/submit/hidden/button/image}" name="${3}" id="${4:$3}" value="${5}" />${6}\nsnippet input:text\n\t<input type="text" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:submit\n\t<input type="submit" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:hidden\n\t<input type="hidden" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:button\n\t<input type="button" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:image\n\t<input type="image" name="${1}" id="${2:$1}" src="${3}" alt="${4}" />${5}\nsnippet input:checkbox\n\t<input type="checkbox" name="${1}" id="${2:$1}" />${3}\nsnippet input:radio\n\t<input type="radio" name="${1}" id="${2:$1}" />${3}\nsnippet input:color\n\t<input type="color" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:date\n\t<input type="date" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime\n\t<input type="datetime" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime-local\n\t<input type="datetime-local" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:email\n\t<input type="email" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:file\n\t<input type="file" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:month\n\t<input type="month" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:number\n\t<input type="number" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:password\n\t<input type="password" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:range\n\t<input type="range" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:reset\n\t<input type="reset" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:search\n\t<input type="search" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:time\n\t<input type="time" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:url\n\t<input type="url" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:week\n\t<input type="week" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet ins\n\t<ins>${1}</ins>\nsnippet kbd\n\t<kbd>${1}</kbd>\nsnippet keygen\n\t<keygen>${1}</keygen>\nsnippet label\n\t<label for="${2:$1}">${1}</label>\nsnippet label:i\n\t<label for="${2:$1}">${1}</label>\n\t<input type="${3:text/submit/hidden/button}" name="${4:$2}" id="${5:$2}" value="${6}" />${7}\nsnippet label:s\n\t<label for="${2:$1}">${1}</label>\n\t<select name="${3:$2}" id="${4:$2}">\n\t\t<option value="${5}">${6:$5}</option>\n\t</select>\nsnippet legend\n\t<legend>${1}</legend>\nsnippet legend+\n\t<legend><span>${1}</span></legend>\nsnippet li\n\t<li>${1}</li>\nsnippet li.\n\t<li class="${1}">${2}</li>\nsnippet li+\n\t<li>${1}</li>\n\tli+${2}\nsnippet lia\n\t<li><a href="${2:#}">${1}</a></li>\nsnippet lia+\n\t<li><a href="${2:#}">${1}</a></li>\n\tlia+${3}\nsnippet link\n\t<link rel="${1}" href="${2}" title="${3}" type="${4}" />${5}\nsnippet link:atom\n\t<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />${2}\nsnippet link:css\n\t<link rel="stylesheet" href="${2:style.css}" type="text/css" media="${3:all}" />${4}\nsnippet link:favicon\n\t<link rel="shortcut icon" href="${1:favicon.ico}" type="image/x-icon" />${2}\nsnippet link:rss\n\t<link rel="alternate" href="${1:rss.xml}" title="RSS" type="application/atom+xml" />${2}\nsnippet link:touch\n\t<link rel="apple-touch-icon" href="${1:favicon.png}" />${2}\nsnippet map\n\t<map name="${1}">\n\t\t${2}\n\t</map>\nsnippet map.\n\t<map class="${1}" name="${2}">\n\t\t${3}\n\t</map>\nsnippet map#\n\t<map name="${1}" id="${2:$1}>\n\t\t${3}\n\t</map>\nsnippet map+\n\t<map name="${1}">\n\t\t<area shape="${2}" coords="${3}" href="${4}" alt="${5}" />${6}\n\t</map>${7}\nsnippet mark\n\t<mark>${1}</mark>\nsnippet menu\n\t<menu>\n\t\t${1}\n\t</menu>\nsnippet menu:c\n\t<menu type="context">\n\t\t${1}\n\t</menu>\nsnippet menu:t\n\t<menu type="toolbar">\n\t\t${1}\n\t</menu>\nsnippet meta\n\t<meta http-equiv="${1}" content="${2}" />${3}\nsnippet meta:compat\n\t<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />${3}\nsnippet meta:refresh\n\t<meta http-equiv="refresh" content="text/html;charset=UTF-8" />${3}\nsnippet meta:utf\n\t<meta http-equiv="content-type" content="text/html;charset=UTF-8" />${3}\nsnippet meter\n\t<meter>${1}</meter>\nsnippet nav\n\t<nav>\n\t\t${1}\n\t</nav>\nsnippet nav.\n\t<nav class="${1}">\n\t\t${2}\n\t</nav>\nsnippet nav#\n\t<nav id="${1}">\n\t\t${2}\n\t</nav>\nsnippet noscript\n\t<noscript>\n\t\t${1}\n\t</noscript>\nsnippet object\n\t<object data="${1}" type="${2}">\n\t\t${3}\n\t</object>${4}\n# Embed QT Movie\nsnippet movie\n\t<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"\n\t codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n\t\t<param name="src" value="$1" />\n\t\t<param name="controller" value="$4" />\n\t\t<param name="autoplay" value="$5" />\n\t\t<embed src="${1:movie.mov}"\n\t\t\twidth="${2:320}" height="${3:240}"\n\t\t\tcontroller="${4:true}" autoplay="${5:true}"\n\t\t\tscale="tofit" cache="true"\n\t\t\tpluginspage="http://www.apple.com/quicktime/download/" />\n\t</object>${6}\nsnippet ol\n\t<ol>\n\t\t${1}\n\t</ol>\nsnippet ol.\n\t<ol class="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol#\n\t<ol id="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol+\n\t<ol>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ol>\nsnippet opt\n\t<option value="${1}">${2:$1}</option>\nsnippet opt+\n\t<option value="${1}">${2:$1}</option>\n\topt+${3}\nsnippet optt\n\t<option>${1}</option>\nsnippet optgroup\n\t<optgroup>\n\t\t<option value="${1}">${2:$1}</option>\n\t\topt+${3}\n\t</optgroup>\nsnippet output\n\t<output>${1}</output>\nsnippet p\n\t<p>${1}</p>\nsnippet param\n\t<param name="${1}" value="${2}" />${3}\nsnippet pre\n\t<pre>\n\t\t${1}\n\t</pre>\nsnippet progress\n\t<progress>${1}</progress>\nsnippet q\n\t<q>${1}</q>\nsnippet rp\n\t<rp>${1}</rp>\nsnippet rt\n\t<rt>${1}</rt>\nsnippet ruby\n\t<ruby>\n\t\t<rp><rt>${1}</rt></rp>\n\t</ruby>\nsnippet s\n\t<s>${1}</s>\nsnippet samp\n\t<samp>\n\t\t${1}\n\t</samp>\nsnippet script\n\t<script type="text/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet scriptsrc\n\t<script src="${1}.js" type="text/javascript" charset="utf-8"><\/script>\nsnippet newscript\n\t<script type="application/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet newscriptsrc\n\t<script src="${1}.js" type="application/javascript" charset="utf-8"><\/script>\nsnippet section\n\t<section>\n\t\t${1}\n\t</section>\nsnippet section.\n\t<section class="${1}">\n\t\t${2}\n\t</section>\nsnippet section#\n\t<section id="${1}">\n\t\t${2}\n\t</section>\nsnippet select\n\t<select name="${1}" id="${2:$1}">\n\t\t${3}\n\t</select>\nsnippet select.\n\t<select name="${1}" id="${2:$1}" class="${3}>\n\t\t${4}\n\t</select>\nsnippet select+\n\t<select name="${1}" id="${2:$1}">\n\t\t<option value="${3}">${4:$3}</option>\n\t\topt+${5}\n\t</select>\nsnippet small\n\t<small>${1}</small>\nsnippet source\n\t<source src="${1}" type="${2}" media="${3}" />\nsnippet span\n\t<span>${1}</span>\nsnippet strong\n\t<strong>${1}</strong>\nsnippet style\n\t<style type="text/css" media="${1:all}">\n\t\t${2}\n\t</style>\nsnippet sub\n\t<sub>${1}</sub>\nsnippet summary\n\t<summary>\n\t\t${1}\n\t</summary>\nsnippet sup\n\t<sup>${1}</sup>\nsnippet table\n\t<table border="${1:0}">\n\t\t${2}\n\t</table>\nsnippet table.\n\t<table class="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet table#\n\t<table id="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet tbody\n\t<tbody>\n\t\t${1}\n\t</tbody>\nsnippet td\n\t<td>${1}</td>\nsnippet td.\n\t<td class="${1}">${2}</td>\nsnippet td#\n\t<td id="${1}">${2}</td>\nsnippet td+\n\t<td>${1}</td>\n\ttd+${2}\nsnippet textarea\n\t<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>${6}\nsnippet tfoot\n\t<tfoot>\n\t\t${1}\n\t</tfoot>\nsnippet th\n\t<th>${1}</th>\nsnippet th.\n\t<th class="${1}">${2}</th>\nsnippet th#\n\t<th id="${1}">${2}</th>\nsnippet th+\n\t<th>${1}</th>\n\tth+${2}\nsnippet thead\n\t<thead>\n\t\t${1}\n\t</thead>\nsnippet time\n\t<time datetime="${1}" pubdate="${2:$1}>${3:$1}</time>\nsnippet title\n\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\nsnippet tr\n\t<tr>\n\t\t${1}\n\t</tr>\nsnippet tr+\n\t<tr>\n\t\t<td>${1}</td>\n\t\ttd+${2}\n\t</tr>\nsnippet track\n\t<track src="${1}" srclang="${2}" label="${3}" default="${4:default}>${5}</track>${6}\nsnippet ul\n\t<ul>\n\t\t${1}\n\t</ul>\nsnippet ul.\n\t<ul class="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul#\n\t<ul id="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul+\n\t<ul>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ul>\nsnippet var\n\t<var>${1}</var>\nsnippet video\n\t<video src="${1}" height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}">${7}</video>${8}\nsnippet wbr\n\t<wbr />${1}\n'}),ace.define("ace/snippets/html",["require","exports","module","ace/snippets/html.snippets"],function(e,t,n){"use strict";t.snippetText=e("./html.snippets"),t.scope="html"}),ace.require(["ace/snippets/html"],function(t){e&&(e.exports=t)})},69073(e,t,n){e=n.nmd(e),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate-css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)}),ace.require(["ace/theme/textmate"],function(t){e&&(e.exports=t)})},40955(e,t,n){var o;e.exports=(o=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=o,t=e.lib.BlockCipher,n=e.algo,i=[],r=[],s=[],a=[],l=[],c=[],d=[],u=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,o=0;for(t=0;t<256;t++){var g=o^o<<1^o<<2^o<<3^o<<4;g=g>>>8^255&g^99,i[n]=g,r[g]=n;var m=e[n],f=e[m],b=e[f],v=257*e[g]^16843008*g;s[n]=v<<24|v>>>8,a[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*b^65537*f^257*m^16843008*n,d[g]=v<<24|v>>>8,u[g]=v<<16|v>>>16,h[g]=v<<8|v>>>24,p[g]=v,n?(n=m^e[e[e[b^m]]],o^=e[e[o]]):n=o=1}}();var g=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],s=0;s<o;s++)s<n?r[s]=t[s]:(c=r[s-1],s%n?n>6&&s%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=g[s/n|0]<<24),r[s]=r[s-n]^c);for(var a=this._invKeySchedule=[],l=0;l<o;l++){if(s=o-l,l%4)var c=r[s];else c=r[s-4];a[l]=l<4||s<=4?c:d[i[c>>>24]]^u[i[c>>>16&255]]^h[i[c>>>8&255]]^p[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,h,p,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,o,i,r,s,a){for(var l=this._nRounds,c=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],h=e[t+3]^n[3],p=4,g=1;g<l;g++){var m=o[c>>>24]^i[d>>>16&255]^r[u>>>8&255]^s[255&h]^n[p++],f=o[d>>>24]^i[u>>>16&255]^r[h>>>8&255]^s[255&c]^n[p++],b=o[u>>>24]^i[h>>>16&255]^r[c>>>8&255]^s[255&d]^n[p++],v=o[h>>>24]^i[c>>>16&255]^r[d>>>8&255]^s[255&u]^n[p++];c=m,d=f,u=b,h=v}m=(a[c>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[p++],f=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&c])^n[p++],b=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[c>>>8&255]<<8|a[255&d])^n[p++],v=(a[h>>>24]<<24|a[c>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^n[p++],e[t]=m,e[t+1]=f,e[t+2]=b,e[t+3]=v},keySize:8});e.AES=t._createHelper(m)}(),o.AES)},43128(e,t,n){var o;e.exports=(o=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=o,t=e.lib.BlockCipher,n=e.algo;const i=16,r=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,o=t>>16&255,i=t>>8&255,r=255&t,s=e.sbox[0][n]+e.sbox[1][o];return s^=e.sbox[2][i],s+=e.sbox[3][r],s}function c(e,t,n){let o,r=t,s=n;for(let t=0;t<i;++t)r^=e.pbox[t],s=l(e,r)^s,o=r,r=s,s=o;return o=r,r=s,s=o,s^=e.pbox[i],r^=e.pbox[17],{left:r,right:s}}var d=n.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;!function(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let o=0;for(let i=0;i<18;i++)e.pbox[i]=r[i]^t[o],o++,o>=n&&(o=0);let i=0,a=0,l=0;for(let t=0;t<18;t+=2)l=c(e,i,a),i=l.left,a=l.right,e.pbox[t]=i,e.pbox[t+1]=a;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=c(e,i,a),i=l.left,a=l.right,e.sbox[t][n]=i,e.sbox[t][n+1]=a}(a,t,n)}},encryptBlock:function(e,t){var n=c(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=function(e,t,n){let o,i=t,r=n;for(let t=17;t>1;--t)i^=e.pbox[t],r=l(e,i)^r,o=i,i=r,r=o;return o=i,i=r,r=o,r^=e.pbox[1],i^=e.pbox[0],{left:i,right:r}}(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(d)}(),o.Blowfish)},57165(e,t,n){var o,i,r,s,a,l,c,d,u,h,p,g,m,f,b,v,y,k,x;e.exports=(o=n(19021),n(39506),void(o.lib.Cipher||(i=o,r=i.lib,s=r.Base,a=r.WordArray,l=r.BufferedBlockAlgorithm,c=i.enc,c.Utf8,d=c.Base64,u=i.algo.EvpKDF,h=r.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:y}return function(t){return{encrypt:function(n,o,i){return e(o).encrypt(t,n,o,i)},decrypt:function(n,o,i){return e(o).decrypt(t,n,o,i)}}}}()}),r.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=i.mode={},g=r.BlockCipherMode=s.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=p.CBC=function(){var e=g.extend();function t(e,t,n){var o,i=this._iv;i?(o=i,this._iv=void 0):o=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=o[r]}return e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,i=o.blockSize;t.call(this,e,n,i),o.encryptBlock(e,n),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var o=this._cipher,i=o.blockSize,r=e.slice(n,n+i);o.decryptBlock(e,n),t.call(this,e,n,i),this._prevBlock=r}}),e}(),f=(i.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,o=n-e.sigBytes%n,i=o<<24|o<<16|o<<8|o,r=[],s=0;s<o;s+=4)r.push(i);var l=a.create(r,o);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:m,padding:f}),reset:function(){var e;h.reset.call(this);var t=this.cfg,n=t.iv,o=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=o.createEncryptor:(e=o.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(o,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),b=r.CipherParams=s.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(t):t).toString(d)},parse:function(e){var t,n=d.parse(e),o=n.words;return 1398893684==o[0]&&1701076831==o[1]&&(t=a.create(o.slice(2,4)),o.splice(0,4),n.sigBytes-=16),b.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=s.extend({cfg:s.extend({format:v}),encrypt:function(e,t,n,o){o=this.cfg.extend(o);var i=e.createEncryptor(n,o),r=i.finalize(t),s=i.cfg;return b.create({ciphertext:r,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,t,n,o){return o=this.cfg.extend(o),t=this._parse(t,o.format),e.createDecryptor(n,o).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),k=(i.kdf={}).OpenSSL={execute:function(e,t,n,o,i){if(o||(o=a.random(8)),i)r=u.create({keySize:t+n,hasher:i}).compute(e,o);else var r=u.create({keySize:t+n}).compute(e,o);var s=a.create(r.words.slice(t),4*n);return r.sigBytes=4*t,b.create({key:r,iv:s,salt:o})}},x=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:k}),encrypt:function(e,t,n,o){var i=(o=this.cfg.extend(o)).kdf.execute(n,e.keySize,e.ivSize,o.salt,o.hasher);o.iv=i.iv;var r=y.encrypt.call(this,e,t,i.key,o);return r.mixIn(i),r},decrypt:function(e,t,n,o){o=this.cfg.extend(o),t=this._parse(t,o.format);var i=o.kdf.execute(n,e.keySize,e.ivSize,t.salt,o.hasher);return o.iv=i.iv,y.decrypt.call(this,e,t,i.key,o)}}))))},19021(e,t,n){var o;e.exports=(o=o||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t)try{t=n(50477)}catch(e){}var o=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},s=r.lib={},a=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,i=e.sigBytes;if(this.clamp(),o%4)for(var r=0;r<i;r++){var s=n[r>>>2]>>>24-r%4*8&255;t[o+r>>>2]|=s<<24-(o+r)%4*8}else for(var a=0;a<i;a+=4)t[o+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new l.init(t,e)}}),c=r.enc={},d=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;o.push((r>>>4).toString(16)),o.push((15&r).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o+=2)n[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new l.init(n,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;o.push(String.fromCharCode(r))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new l.init(n,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,o=this._data,i=o.words,r=o.sigBytes,s=this.blockSize,a=r/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,d=e.min(4*c,r);if(c){for(var u=0;u<c;u+=s)this._doProcessBlock(i,u);n=i.splice(0,c),o.sigBytes-=d}return new l.init(n,d)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(s.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),o)},80754(e,t,n){var o,i,r;e.exports=(o=n(19021),r=(i=o).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,o=this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var s=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;a<4&&r+.75*a<n;a++)i.push(o.charAt(s>>>6*(3-a)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,n){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},64725(e,t,n){var o,i,r;e.exports=(o=n(19021),r=(i=o).lib.WordArray,i.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,o=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var r=[],s=0;s<o;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l<o;l++)r.push(i.charAt(a>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<o.length;s++)i[o.charCodeAt(s)]=s}var a=o.charAt(64);if(a){var l=e.indexOf(a);-1!==l&&(n=l)}return function(e,t,n){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},o.enc.Base64url)},45503(e,t,n){var o;e.exports=(o=n(19021),function(){var e=o,t=e.lib.WordArray,n=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i+=2){var r=t[i>>>2]>>>16-i%4*8&65535;o.push(String.fromCharCode(r))}return o.join("")},parse:function(e){for(var n=e.length,o=[],i=0;i<n;i++)o[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(o,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],r=0;r<n;r+=2){var s=i(t[r>>>2]>>>16-r%4*8&65535);o.push(String.fromCharCode(s))}return o.join("")},parse:function(e){for(var n=e.length,o=[],r=0;r<n;r++)o[r>>>1]|=i(e.charCodeAt(r)<<16-r%2*16);return t.create(o,2*n)}}}(),o.enc.Utf16)},39506(e,t,n){var o,i,r,s,a,l,c,d;e.exports=(d=n(19021),n(45471),n(51025),r=(i=(o=d).lib).Base,s=i.WordArray,l=(a=o.algo).MD5,c=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),r=s.create(),a=r.words,l=o.keySize,c=o.iterations;a.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var d=1;d<c;d++)n=i.finalize(n),i.reset();r.concat(n)}return r.sigBytes=4*l,r}}),o.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},d.EvpKDF)},70025(e,t,n){var o,i,r,s;e.exports=(s=n(19021),n(57165),i=(o=s).lib.CipherParams,r=o.enc.Hex,o.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return i.create({ciphertext:t})}},s.format.Hex)},51025(e,t,n){var o,i,r;e.exports=(i=(o=n(19021)).lib.Base,r=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,l=s.words,c=0;c<n;c++)a[c]^=1549556828,l[c]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},21396(e,t,n){var o;e.exports=(o=n(19021),n(43240),n(6440),n(45503),n(80754),n(64725),n(84636),n(45471),n(63009),n(36308),n(81380),n(89557),n(45953),n(78056),n(51025),n(70019),n(39506),n(57165),n(82169),n(96939),n(6372),n(73797),n(38454),n(42073),n(54905),n(10482),n(52155),n(58124),n(70025),n(40955),n(7628),n(77193),n(96298),n(22696),n(43128),o)},6440(e,t,n){var o;e.exports=(o=n(19021),function(){if("function"==typeof ArrayBuffer){var e=o.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,o=[],i=0;i<n;i++)o[i>>>2]|=e[i]<<24-i%4*8;t.call(this,o,n)}else t.apply(this,arguments)};n.prototype=e}}(),o.lib.WordArray)},84636(e,t,n){var o;e.exports=(o=n(19021),function(e){var t=o,n=t.lib,i=n.WordArray,r=n.Hasher,s=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=s.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,i=e[o];e[o]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,s=e[t+0],l=e[t+1],p=e[t+2],g=e[t+3],m=e[t+4],f=e[t+5],b=e[t+6],v=e[t+7],y=e[t+8],k=e[t+9],x=e[t+10],w=e[t+11],_=e[t+12],C=e[t+13],S=e[t+14],E=e[t+15],M=r[0],$=r[1],A=r[2],T=r[3];M=c(M,$,A,T,s,7,a[0]),T=c(T,M,$,A,l,12,a[1]),A=c(A,T,M,$,p,17,a[2]),$=c($,A,T,M,g,22,a[3]),M=c(M,$,A,T,m,7,a[4]),T=c(T,M,$,A,f,12,a[5]),A=c(A,T,M,$,b,17,a[6]),$=c($,A,T,M,v,22,a[7]),M=c(M,$,A,T,y,7,a[8]),T=c(T,M,$,A,k,12,a[9]),A=c(A,T,M,$,x,17,a[10]),$=c($,A,T,M,w,22,a[11]),M=c(M,$,A,T,_,7,a[12]),T=c(T,M,$,A,C,12,a[13]),A=c(A,T,M,$,S,17,a[14]),M=d(M,$=c($,A,T,M,E,22,a[15]),A,T,l,5,a[16]),T=d(T,M,$,A,b,9,a[17]),A=d(A,T,M,$,w,14,a[18]),$=d($,A,T,M,s,20,a[19]),M=d(M,$,A,T,f,5,a[20]),T=d(T,M,$,A,x,9,a[21]),A=d(A,T,M,$,E,14,a[22]),$=d($,A,T,M,m,20,a[23]),M=d(M,$,A,T,k,5,a[24]),T=d(T,M,$,A,S,9,a[25]),A=d(A,T,M,$,g,14,a[26]),$=d($,A,T,M,y,20,a[27]),M=d(M,$,A,T,C,5,a[28]),T=d(T,M,$,A,p,9,a[29]),A=d(A,T,M,$,v,14,a[30]),M=u(M,$=d($,A,T,M,_,20,a[31]),A,T,f,4,a[32]),T=u(T,M,$,A,y,11,a[33]),A=u(A,T,M,$,w,16,a[34]),$=u($,A,T,M,S,23,a[35]),M=u(M,$,A,T,l,4,a[36]),T=u(T,M,$,A,m,11,a[37]),A=u(A,T,M,$,v,16,a[38]),$=u($,A,T,M,x,23,a[39]),M=u(M,$,A,T,C,4,a[40]),T=u(T,M,$,A,s,11,a[41]),A=u(A,T,M,$,g,16,a[42]),$=u($,A,T,M,b,23,a[43]),M=u(M,$,A,T,k,4,a[44]),T=u(T,M,$,A,_,11,a[45]),A=u(A,T,M,$,E,16,a[46]),M=h(M,$=u($,A,T,M,p,23,a[47]),A,T,s,6,a[48]),T=h(T,M,$,A,v,10,a[49]),A=h(A,T,M,$,S,15,a[50]),$=h($,A,T,M,f,21,a[51]),M=h(M,$,A,T,_,6,a[52]),T=h(T,M,$,A,g,10,a[53]),A=h(A,T,M,$,x,15,a[54]),$=h($,A,T,M,l,21,a[55]),M=h(M,$,A,T,y,6,a[56]),T=h(T,M,$,A,E,10,a[57]),A=h(A,T,M,$,b,15,a[58]),$=h($,A,T,M,C,21,a[59]),M=h(M,$,A,T,m,6,a[60]),T=h(T,M,$,A,w,10,a[61]),A=h(A,T,M,$,p,15,a[62]),$=h($,A,T,M,k,21,a[63]),r[0]=r[0]+M|0,r[1]=r[1]+$|0,r[2]=r[2]+A|0,r[3]=r[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var r=e.floor(o/4294967296),s=o;n[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,o,i,r,s){var a=e+(t&n|~t&o)+i+s;return(a<<r|a>>>32-r)+t}function d(e,t,n,o,i,r,s){var a=e+(t&o|n&~o)+i+s;return(a<<r|a>>>32-r)+t}function u(e,t,n,o,i,r,s){var a=e+(t^n^o)+i+s;return(a<<r|a>>>32-r)+t}function h(e,t,n,o,i,r,s){var a=e+(n^(t|~o))+i+s;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(l),t.HmacMD5=r._createHmacHelper(l)}(Math),o.MD5)},82169(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.mode.CFB=function(){var e=o.lib.BlockCipherMode.extend();function t(e,t,n,o){var i,r=this._iv;r?(i=r.slice(0),this._iv=void 0):i=this._prevBlock,o.encryptBlock(i,0);for(var s=0;s<n;s++)e[t+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,i=o.blockSize;t.call(this,e,n,i,o),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var o=this._cipher,i=o.blockSize,r=e.slice(n,n+i);t.call(this,e,n,i,o),this._prevBlock=r}}),e}(),o.mode.CFB)},6372(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.mode.CTRGladman=function(){var e=o.lib.BlockCipherMode.extend();function t(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,o=255&e;255===t?(t=0,255===n?(n=0,255===o?o=0:++o):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=o}return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,i=o.blockSize,r=this._iv,s=this._counter;r&&(s=this._counter=r.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var a=s.slice(0);o.encryptBlock(a,0);for(var l=0;l<i;l++)e[n+l]^=a[l]}});return e.Decryptor=n,e}(),o.mode.CTRGladman)},96939(e,t,n){var o,i,r;e.exports=(r=n(19021),n(57165),r.mode.CTR=(i=(o=r.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0);var s=r.slice(0);n.encryptBlock(s,0),r[o-1]=r[o-1]+1|0;for(var a=0;a<o;a++)e[t+a]^=s[a]}}),o.Decryptor=i,o),r.mode.CTR)},38454(e,t,n){var o,i;e.exports=(i=n(19021),n(57165),i.mode.ECB=((o=i.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),o.Decryptor=o.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),o),i.mode.ECB)},73797(e,t,n){var o,i,r;e.exports=(r=n(19021),n(57165),r.mode.OFB=(i=(o=r.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,r=this._keystream;i&&(r=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(r,0);for(var s=0;s<o;s++)e[t+s]^=r[s]}}),o.Decryptor=i,o),r.mode.OFB)},42073(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,o=4*t,i=o-n%o,r=n+i-1;e.clamp(),e.words[r>>>2]|=i<<24-r%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.pad.Ansix923)},54905(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.pad.Iso10126={pad:function(e,t){var n=4*t,i=n-e.sigBytes%n;e.concat(o.lib.WordArray.random(i-1)).concat(o.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.pad.Iso10126)},10482(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.pad.Iso97971={pad:function(e,t){e.concat(o.lib.WordArray.create([2147483648],1)),o.pad.ZeroPadding.pad(e,t)},unpad:function(e){o.pad.ZeroPadding.unpad(e),e.sigBytes--}},o.pad.Iso97971)},58124(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding)},52155(e,t,n){var o;e.exports=(o=n(19021),n(57165),o.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},o.pad.ZeroPadding)},70019(e,t,n){var o,i,r,s,a,l,c,d,u;e.exports=(u=n(19021),n(63009),n(51025),r=(i=(o=u).lib).Base,s=i.WordArray,l=(a=o.algo).SHA256,c=a.HMAC,d=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:l,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=c.create(n.hasher,e),i=s.create(),r=s.create([1]),a=i.words,l=r.words,d=n.keySize,u=n.iterations;a.length<d;){var h=o.update(t).finalize(r);o.reset();for(var p=h.words,g=p.length,m=h,f=1;f<u;f++){m=o.finalize(m),o.reset();for(var b=m.words,v=0;v<g;v++)p[v]^=b[v]}i.concat(h),l[0]++}return i.sigBytes=4*d,i}}),o.PBKDF2=function(e,t,n){return d.create(n).compute(e,t)},u.PBKDF2)},22696(e,t,n){var o;e.exports=(o=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,i=[],r=[],s=[],a=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)o[i]^=n[i+4&7];if(t){var r=t.words,s=r[0],a=r[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=c>>>16|4294901760&d,h=d<<16|65535&c;for(o[0]^=c,o[1]^=u,o[2]^=d,o[3]^=h,o[4]^=c,o[5]^=u,o[6]^=d,o[7]^=h,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),e[t+o]^=i[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)r[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var o=e[n]+t[n],i=65535&o,a=o>>>16,l=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&o)*o|0)+((65535&o)*o|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(a)}(),o.RabbitLegacy)},96298(e,t,n){var o;e.exports=(o=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,i=[],r=[],s=[],a=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=o[n+4&7];if(t){var r=t.words,s=r[0],a=r[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=c>>>16|4294901760&d,h=d<<16|65535&c;for(i[0]^=c,i[1]^=u,i[2]^=d,i[3]^=h,i[4]^=c,i[5]^=u,i[6]^=d,i[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),e[t+o]^=i[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)r[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var o=e[n]+t[n],i=65535&o,a=o>>>16,l=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&o)*o|0)+((65535&o)*o|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(a)}(),o.Rabbit)},77193(e,t,n){var o;e.exports=(o=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,o=this._S=[],i=0;i<256;i++)o[i]=i;i=0;for(var r=0;i<256;i++){var s=i%n,a=t[s>>>2]>>>24-s%4*8&255;r=(r+o[i]+a)%256;var l=o[i];o[i]=o[r],o[r]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var e=this._S,t=this._i,n=this._j,o=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var r=e[t];e[t]=e[n],e[n]=r,o|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,o}e.RC4=t._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)r.call(this)}});e.RC4Drop=t._createHelper(s)}(),o.RC4)},78056(e,t,n){var o;e.exports=(o=n(19021),function(){var e=o,t=e.lib,n=t.WordArray,i=t.Hasher,r=e.algo,s=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=r.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,i=e[o];e[o]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r,h,y,k,x,w,_,C,S,E,M,$=this._hash.words,A=d.words,T=u.words,R=s.words,L=a.words,O=l.words,D=c.words;for(w=r=$[0],_=h=$[1],C=y=$[2],S=k=$[3],E=x=$[4],n=0;n<80;n+=1)M=r+e[t+R[n]]|0,M+=n<16?p(h,y,k)+A[0]:n<32?g(h,y,k)+A[1]:n<48?m(h,y,k)+A[2]:n<64?f(h,y,k)+A[3]:b(h,y,k)+A[4],M=(M=v(M|=0,O[n]))+x|0,r=x,x=k,k=v(y,10),y=h,h=M,M=w+e[t+L[n]]|0,M+=n<16?b(_,C,S)+T[0]:n<32?f(_,C,S)+T[1]:n<48?m(_,C,S)+T[2]:n<64?g(_,C,S)+T[3]:p(_,C,S)+T[4],M=(M=v(M|=0,D[n]))+E|0,w=E,E=S,S=v(C,10),C=_,_=M;M=$[1]+y+S|0,$[1]=$[2]+k+E|0,$[2]=$[3]+x+w|0,$[3]=$[4]+r+_|0,$[4]=$[0]+h+C|0,$[0]=M},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,r=i.words,s=0;s<5;s++){var a=r[s];r[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function f(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(Math),o.RIPEMD160)},45471(e,t,n){var o,i,r,s,a,l,c,d;e.exports=(i=(o=d=n(19021)).lib,r=i.WordArray,s=i.Hasher,a=o.algo,l=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],i=n[1],r=n[2],s=n[3],a=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(o<<5|o>>>27)+a+l[c];u+=c<20?1518500249+(i&r|~i&s):c<40?1859775393+(i^r^s):c<60?(i&r|i&s|r&s)-1894007588:(i^r^s)-899497514,a=s,s=r,r=i<<30|i>>>2,i=o,o=u}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(o+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.SHA1=s._createHelper(c),o.HmacSHA1=s._createHmacHelper(c),d.SHA1)},36308(e,t,n){var o,i,r,s,a,l;e.exports=(l=n(19021),n(63009),i=(o=l).lib.WordArray,r=o.algo,s=r.SHA256,a=r.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),o.SHA224=s._createHelper(a),o.HmacSHA224=s._createHmacHelper(a),l.SHA224)},63009(e,t,n){var o;e.exports=(o=n(19021),function(e){var t=o,n=t.lib,i=n.WordArray,r=n.Hasher,s=t.algo,a=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),o=2;o<=n;o++)if(!(t%o))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var o=2,i=0;i<64;)t(o)&&(i<8&&(a[i]=n(e.pow(o,.5))),l[i]=n(e.pow(o,1/3)),i++),o++}();var c=[],d=s.SHA256=r.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],i=n[1],r=n[2],s=n[3],a=n[4],d=n[5],u=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var g=c[p-15],m=(g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3,f=c[p-2],b=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[p]=m+c[p-7]+b+c[p-16]}var v=o&i^o&r^i&r,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),k=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&d^~a&u)+l[p]+c[p];h=u,u=d,d=a,a=s+k|0,s=r,r=i,i=o,o=k+(y+v)|0}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+d|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(o/4294967296),n[15+(i+64>>>9<<4)]=o,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(d),t.HmacSHA256=r._createHmacHelper(d)}(Math),o.SHA256)},45953(e,t,n){var o;e.exports=(o=n(19021),n(43240),function(e){var t=o,n=t.lib,i=n.WordArray,r=n.Hasher,s=t.x64.Word,a=t.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var o=(2*e+3*t)%5;e=t%5,t=o}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,r=0;r<24;r++){for(var a=0,u=0,h=0;h<7;h++){if(1&i){var p=(1<<h)-1;p<32?u^=1<<p:a^=1<<p-32}128&i?i=i<<1^113:i<<=1}d[r]=s.create(a,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=s.create()}();var h=a.SHA3=r.extend({cfg:r.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,o=this.blockSize/2,i=0;i<o;i++){var r=e[t+2*i],s=e[t+2*i+1];r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),($=n[i]).high^=s,$.low^=r}for(var a=0;a<24;a++){for(var h=0;h<5;h++){for(var p=0,g=0,m=0;m<5;m++)p^=($=n[h+5*m]).high,g^=$.low;var f=u[h];f.high=p,f.low=g}for(h=0;h<5;h++){var b=u[(h+4)%5],v=u[(h+1)%5],y=v.high,k=v.low;for(p=b.high^(y<<1|k>>>31),g=b.low^(k<<1|y>>>31),m=0;m<5;m++)($=n[h+5*m]).high^=p,$.low^=g}for(var x=1;x<25;x++){var w=($=n[x]).high,_=$.low,C=l[x];C<32?(p=w<<C|_>>>32-C,g=_<<C|w>>>32-C):(p=_<<C-32|w>>>64-C,g=w<<C-32|_>>>64-C);var S=u[c[x]];S.high=p,S.low=g}var E=u[0],M=n[0];for(E.high=M.high,E.low=M.low,h=0;h<5;h++)for(m=0;m<5;m++){var $=n[x=h+5*m],A=u[x],T=u[(h+1)%5+5*m],R=u[(h+2)%5+5*m];$.high=A.high^~T.high&R.high,$.low=A.low^~T.low&R.low}$=n[0];var L=d[a];$.high^=L.high,$.low^=L.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),r=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/r)*r>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],d=0;d<l;d++){var u=s[d],h=u.high,p=u.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new i.init(c,a)},clone:function(){for(var e=r.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=r._createHelper(h),t.HmacSHA3=r._createHmacHelper(h)}(Math),o.SHA3)},89557(e,t,n){var o,i,r,s,a,l,c,d;e.exports=(d=n(19021),n(43240),n(81380),i=(o=d).x64,r=i.Word,s=i.WordArray,a=o.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),o.SHA384=l._createHelper(c),o.HmacSHA384=l._createHmacHelper(c),d.SHA384)},81380(e,t,n){var o;e.exports=(o=n(19021),n(43240),function(){var e=o,t=e.lib.Hasher,n=e.x64,i=n.Word,r=n.WordArray,s=e.algo;function a(){return i.create.apply(i,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var d=s.SHA512=t.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],i=n[1],r=n[2],s=n[3],a=n[4],d=n[5],u=n[6],h=n[7],p=o.high,g=o.low,m=i.high,f=i.low,b=r.high,v=r.low,y=s.high,k=s.low,x=a.high,w=a.low,_=d.high,C=d.low,S=u.high,E=u.low,M=h.high,$=h.low,A=p,T=g,R=m,L=f,O=b,D=v,N=y,j=k,I=x,z=w,F=_,B=C,P=S,H=E,V=M,W=$,U=0;U<80;U++){var G,Z,q=c[U];if(U<16)Z=q.high=0|e[t+2*U],G=q.low=0|e[t+2*U+1];else{var K=c[U-15],Y=K.high,X=K.low,Q=(Y>>>1|X<<31)^(Y>>>8|X<<24)^Y>>>7,J=(X>>>1|Y<<31)^(X>>>8|Y<<24)^(X>>>7|Y<<25),ee=c[U-2],te=ee.high,ne=ee.low,oe=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),re=c[U-7],se=re.high,ae=re.low,le=c[U-16],ce=le.high,de=le.low;Z=(Z=(Z=Q+se+((G=J+ae)>>>0<J>>>0?1:0))+oe+((G+=ie)>>>0<ie>>>0?1:0))+ce+((G+=de)>>>0<de>>>0?1:0),q.high=Z,q.low=G}var ue,he=I&F^~I&P,pe=z&B^~z&H,ge=A&R^A&O^R&O,me=T&L^T&D^L&D,fe=(A>>>28|T<<4)^(A<<30|T>>>2)^(A<<25|T>>>7),be=(T>>>28|A<<4)^(T<<30|A>>>2)^(T<<25|A>>>7),ve=(I>>>14|z<<18)^(I>>>18|z<<14)^(I<<23|z>>>9),ye=(z>>>14|I<<18)^(z>>>18|I<<14)^(z<<23|I>>>9),ke=l[U],xe=ke.high,we=ke.low,_e=V+ve+((ue=W+ye)>>>0<W>>>0?1:0),Ce=be+me;V=P,W=H,P=F,H=B,F=I,B=z,I=N+(_e=(_e=(_e=_e+he+((ue+=pe)>>>0<pe>>>0?1:0))+xe+((ue+=we)>>>0<we>>>0?1:0))+Z+((ue+=G)>>>0<G>>>0?1:0))+((z=j+ue|0)>>>0<j>>>0?1:0)|0,N=O,j=D,O=R,D=L,R=A,L=T,A=_e+(fe+ge+(Ce>>>0<be>>>0?1:0))+((T=ue+Ce|0)>>>0<ue>>>0?1:0)|0}g=o.low=g+T,o.high=p+A+(g>>>0<T>>>0?1:0),f=i.low=f+L,i.high=m+R+(f>>>0<L>>>0?1:0),v=r.low=v+D,r.high=b+O+(v>>>0<D>>>0?1:0),k=s.low=k+j,s.high=y+N+(k>>>0<j>>>0?1:0),w=a.low=w+z,a.high=x+I+(w>>>0<z>>>0?1:0),C=d.low=C+B,d.high=_+F+(C>>>0<B>>>0?1:0),E=u.low=E+H,u.high=S+P+(E>>>0<H>>>0?1:0),$=h.low=$+W,h.high=M+V+($>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[30+(o+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(o+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),o.SHA512)},7628(e,t,n){var o;e.exports=(o=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=o,t=e.lib,n=t.WordArray,i=t.BlockCipher,r=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=r.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var o=s[n]-1;t[n]=e[o>>>5]>>>31-o%32&1}for(var i=this._subKeys=[],r=0;r<16;r++){var c=i[r]=[],d=l[r];for(n=0;n<24;n++)c[n/6|0]|=t[(a[n]-1+d)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(a[n+24]-1+d)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var o=0;o<16;o++){for(var i=n[o],r=this._lBlock,s=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((s^i[l])&d[l])>>>0];this._lBlock=s,this._rBlock=r^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=i._createHelper(u);var g=r.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(o)),this._des3=u.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(g)}(),o.TripleDES)},43240(e,t,n){var o,i,r,s,a,l;e.exports=(o=n(19021),r=(i=o).lib,s=r.Base,a=r.WordArray,(l=i.x64={}).Word=s.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],o=0;o<t;o++){var i=e[o];n.push(i.high),n.push(i.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=s.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),o)},2189(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,o,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var r=i;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===o&&(o=!0);var s=o,a=this.diff_commonPrefix(e,n),l=e.substring(0,a);e=e.substring(a),n=n.substring(a),a=this.diff_commonSuffix(e,n);var c=e.substring(e.length-a);e=e.substring(0,e.length-a),n=n.substring(0,n.length-a);var d=this.diff_compute_(e,n,s,r);return l&&d.unshift(new t.Diff(0,l)),c&&d.push(new t.Diff(0,c)),this.diff_cleanupMerge(d),d},t.prototype.diff_compute_=function(e,o,i,r){var s;if(!e)return[new t.Diff(1,o)];if(!o)return[new t.Diff(n,e)];var a=e.length>o.length?e:o,l=e.length>o.length?o:e,c=a.indexOf(l);if(-1!=c)return s=[new t.Diff(1,a.substring(0,c)),new t.Diff(0,l),new t.Diff(1,a.substring(c+l.length))],e.length>o.length&&(s[0][0]=s[2][0]=n),s;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,o)];var d=this.diff_halfMatch_(e,o);if(d){var u=d[0],h=d[1],p=d[2],g=d[3],m=d[4],f=this.diff_main(u,p,i,r),b=this.diff_main(h,g,i,r);return f.concat([new t.Diff(0,m)],b)}return i&&e.length>100&&o.length>100?this.diff_lineMode_(e,o,r):this.diff_bisect_(e,o,r)},t.prototype.diff_lineMode_=function(e,o,i){var r=this.diff_linesToChars_(e,o);e=r.chars1,o=r.chars2;var s=r.lineArray,a=this.diff_main(e,o,!1,i);this.diff_charsToLines_(a,s),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,c=0,d=0,u="",h="";l<a.length;){switch(a[l][0]){case 1:d++,h+=a[l][1];break;case n:c++,u+=a[l][1];break;case 0:if(c>=1&&d>=1){a.splice(l-c-d,c+d),l=l-c-d;for(var p=this.diff_main(u,h,!1,i),g=p.length-1;g>=0;g--)a.splice(l,0,p[g]);l+=p.length}d=0,c=0,u="",h=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(e,o,i){for(var r=e.length,s=o.length,a=Math.ceil((r+s)/2),l=a,c=2*a,d=new Array(c),u=new Array(c),h=0;h<c;h++)d[h]=-1,u[h]=-1;d[l+1]=0,u[l+1]=0;for(var p=r-s,g=p%2!=0,m=0,f=0,b=0,v=0,y=0;y<a&&!((new Date).getTime()>i);y++){for(var k=-y+m;k<=y-f;k+=2){for(var x=l+k,w=(M=k==-y||k!=y&&d[x-1]<d[x+1]?d[x+1]:d[x-1]+1)-k;M<r&&w<s&&e.charAt(M)==o.charAt(w);)M++,w++;if(d[x]=M,M>r)f+=2;else if(w>s)m+=2;else if(g&&(S=l+p-k)>=0&&S<c&&-1!=u[S]&&M>=(C=r-u[S]))return this.diff_bisectSplit_(e,o,M,w,i)}for(var _=-y+b;_<=y-v;_+=2){for(var C,S=l+_,E=(C=_==-y||_!=y&&u[S-1]<u[S+1]?u[S+1]:u[S-1]+1)-_;C<r&&E<s&&e.charAt(r-C-1)==o.charAt(s-E-1);)C++,E++;if(u[S]=C,C>r)v+=2;else if(E>s)b+=2;else if(!g){var M;if((x=l+p-_)>=0&&x<c&&-1!=d[x])if(w=l+(M=d[x])-x,M>=(C=r-C))return this.diff_bisectSplit_(e,o,M,w,i)}}}return[new t.Diff(n,e),new t.Diff(1,o)]},t.prototype.diff_bisectSplit_=function(e,t,n,o,i){var r=e.substring(0,n),s=t.substring(0,o),a=e.substring(n),l=t.substring(o),c=this.diff_main(r,s,!1,i),d=this.diff_main(a,l,!1,i);return c.concat(d)},t.prototype.diff_linesToChars_=function(e,t){var n=[],o={};function i(e){for(var t="",i=0,s=-1,a=n.length;s<e.length-1;){-1==(s=e.indexOf("\n",i))&&(s=e.length-1);var l=e.substring(i,s+1);(o.hasOwnProperty?o.hasOwnProperty(l):void 0!==o[l])?t+=String.fromCharCode(o[l]):(a==r&&(l=e.substring(i),s=e.length),t+=String.fromCharCode(a),o[l]=a,n[a++]=l),i=s+1}return t}n[0]="";var r=4e4,s=i(e);return r=65535,{chars1:s,chars2:i(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var o=e[n][1],i=[],r=0;r<o.length;r++)i[r]=t[o.charCodeAt(r)];e[n][1]=i.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),i=o,r=0;n<i;)e.substring(r,i)==t.substring(r,i)?r=n=i:o=i,i=Math.floor((o-n)/2+n);return i},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),i=o,r=0;n<i;)e.substring(e.length-i,e.length-r)==t.substring(t.length-i,t.length-r)?r=n=i:o=i,i=Math.floor((o-n)/2+n);return i},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,o=t.length;if(0==n||0==o)return 0;n>o?e=e.substring(n-o):n<o&&(t=t.substring(0,n));var i=Math.min(n,o);if(e==t)return i;for(var r=0,s=1;;){var a=e.substring(i-s),l=t.indexOf(a);if(-1==l)return r;s+=l,0!=l&&e.substring(i-s)!=t.substring(0,s)||(r=s,s++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;var i=this;function r(e,t,n){for(var o,r,s,a,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,d="";-1!=(c=t.indexOf(l,c+1));){var u=i.diff_commonPrefix(e.substring(n),t.substring(c)),h=i.diff_commonSuffix(e.substring(0,n),t.substring(0,c));d.length<h+u&&(d=t.substring(c-h,c)+t.substring(c,c+u),o=e.substring(0,n-h),r=e.substring(n+u),s=t.substring(0,c-h),a=t.substring(c+u))}return 2*d.length>=e.length?[o,r,s,a,d]:null}var s,a,l,c,d,u=r(n,o,Math.ceil(n.length/4)),h=r(n,o,Math.ceil(n.length/2));return u||h?(s=h?u&&u[4].length>h[4].length?u:h:u,e.length>t.length?(a=s[0],l=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],a=s[2],l=s[3]),[a,l,c,d,s[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var o=!1,i=[],r=0,s=null,a=0,l=0,c=0,d=0,u=0;a<e.length;)0==e[a][0]?(i[r++]=a,l=d,c=u,d=0,u=0,s=e[a][1]):(1==e[a][0]?d+=e[a][1].length:u+=e[a][1].length,s&&s.length<=Math.max(l,c)&&s.length<=Math.max(d,u)&&(e.splice(i[r-1],0,new t.Diff(n,s)),e[i[r-1]+1][0]=1,r--,a=--r>0?i[r-1]:-1,l=0,c=0,d=0,u=0,s=null,o=!0)),a++;for(o&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]==n&&1==e[a][0]){var h=e[a-1][1],p=e[a][1],g=this.diff_commonOverlap_(h,p),m=this.diff_commonOverlap_(p,h);g>=m?(g>=h.length/2||g>=p.length/2)&&(e.splice(a,0,new t.Diff(0,p.substring(0,g))),e[a-1][1]=h.substring(0,h.length-g),e[a+1][1]=p.substring(g),a++):(m>=h.length/2||m>=p.length/2)&&(e.splice(a,0,new t.Diff(0,h.substring(0,m))),e[a-1][0]=1,e[a-1][1]=p.substring(0,p.length-m),e[a+1][0]=n,e[a+1][1]=h.substring(m),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var o=e.charAt(e.length-1),i=n.charAt(0),r=o.match(t.nonAlphaNumericRegex_),s=i.match(t.nonAlphaNumericRegex_),a=r&&o.match(t.whitespaceRegex_),l=s&&i.match(t.whitespaceRegex_),c=a&&o.match(t.linebreakRegex_),d=l&&i.match(t.linebreakRegex_),u=c&&e.match(t.blanklineEndRegex_),h=d&&n.match(t.blanklineStartRegex_);return u||h?5:c||d?4:r&&!a&&l?3:a||l?2:r||s?1:0}for(var o=1;o<e.length-1;){if(0==e[o-1][0]&&0==e[o+1][0]){var i=e[o-1][1],r=e[o][1],s=e[o+1][1],a=this.diff_commonSuffix(i,r);if(a){var l=r.substring(r.length-a);i=i.substring(0,i.length-a),r=l+r.substring(0,r.length-a),s=l+s}for(var c=i,d=r,u=s,h=n(i,r)+n(r,s);r.charAt(0)===s.charAt(0);){i+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);var p=n(i,r)+n(r,s);p>=h&&(h=p,c=i,d=r,u=s)}e[o-1][1]!=c&&(c?e[o-1][1]=c:(e.splice(o-1,1),o--),e[o][1]=d,u?e[o+1][1]=u:(e.splice(o+1,1),o--))}o++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var o=!1,i=[],r=0,s=null,a=0,l=!1,c=!1,d=!1,u=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(d||u)?(i[r++]=a,l=d,c=u,s=e[a][1]):(r=0,s=null),d=u=!1):(e[a][0]==n?u=!0:d=!0,s&&(l&&c&&d&&u||s.length<this.Diff_EditCost/2&&l+c+d+u==3)&&(e.splice(i[r-1],0,new t.Diff(n,s)),e[i[r-1]+1][0]=1,r--,s=null,l&&c?(d=u=!0,r=0):(a=--r>0?i[r-1]:-1,d=u=!1),o=!0)),a++;o&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var o,i=0,r=0,s=0,a="",l="";i<e.length;)switch(e[i][0]){case 1:s++,l+=e[i][1],i++;break;case n:r++,a+=e[i][1],i++;break;case 0:r+s>1?(0!==r&&0!==s&&(0!==(o=this.diff_commonPrefix(l,a))&&(i-r-s>0&&0==e[i-r-s-1][0]?e[i-r-s-1][1]+=l.substring(0,o):(e.splice(0,0,new t.Diff(0,l.substring(0,o))),i++),l=l.substring(o),a=a.substring(o)),0!==(o=this.diff_commonSuffix(l,a))&&(e[i][1]=l.substring(l.length-o)+e[i][1],l=l.substring(0,l.length-o),a=a.substring(0,a.length-o))),i-=r+s,e.splice(i,r+s),a.length&&(e.splice(i,0,new t.Diff(n,a)),i++),l.length&&(e.splice(i,0,new t.Diff(1,l)),i++),i++):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,s=0,r=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),c=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),c=!0)),i++;c&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var o,i=0,r=0,s=0,a=0;for(o=0;o<e.length&&(1!==e[o][0]&&(i+=e[o][1].length),e[o][0]!==n&&(r+=e[o][1].length),!(i>t));o++)s=i,a=r;return e.length!=o&&e[o][0]===n?a:a+(t-s)},t.prototype.diff_prettyHtml=function(e){for(var t=[],o=/&/g,i=/</g,r=/>/g,s=/\n/g,a=0;a<e.length;a++){var l=e[a][0],c=e[a][1].replace(o,"&").replace(i,"<").replace(r,">").replace(s,"¶<br>");switch(l){case 1:t[a]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case n:t[a]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[a]="<span>"+c+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],o=0;o<e.length;o++)e[o][0]!==n&&(t[o]=e[o][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,o=0,i=0,r=0;r<e.length;r++){var s=e[r][0],a=e[r][1];switch(s){case 1:o+=a.length;break;case n:i+=a.length;break;case 0:t+=Math.max(o,i),o=0,i=0}}return t+Math.max(o,i)},t.prototype.diff_toDelta=function(e){for(var t=[],o=0;o<e.length;o++)switch(e[o][0]){case 1:t[o]="+"+encodeURI(e[o][1]);break;case n:t[o]="-"+e[o][1].length;break;case 0:t[o]="="+e[o][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,o){for(var i=[],r=0,s=0,a=o.split(/\t/g),l=0;l<a.length;l++){var c=a[l].substring(1);switch(a[l].charAt(0)){case"+":try{i[r++]=new t.Diff(1,decodeURI(c))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var d=parseInt(c,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+c);var u=e.substring(s,s+=d);"="==a[l].charAt(0)?i[r++]=new t.Diff(0,u):i[r++]=new t.Diff(n,u);break;default:if(a[l])throw new Error("Invalid diff operation in diff_fromDelta: "+a[l])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return i},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(t),i=this;function r(e,o){var r=e/t.length,s=Math.abs(n-o);return i.Match_Distance?r+s/i.Match_Distance:s?1:r}var s=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(s=Math.min(r(0,a),s),-1!=(a=e.lastIndexOf(t,n+t.length))&&(s=Math.min(r(0,a),s)));var l,c,d=1<<t.length-1;a=-1;for(var u,h=t.length+e.length,p=0;p<t.length;p++){for(l=0,c=h;l<c;)r(p,n+c)<=s?l=c:h=c,c=Math.floor((h-l)/2+l);h=c;var g=Math.max(1,n-c+1),m=Math.min(n+c,e.length)+t.length,f=Array(m+2);f[m+1]=(1<<p)-1;for(var b=m;b>=g;b--){var v=o[e.charAt(b-1)];if(f[b]=0===p?(f[b+1]<<1|1)&v:(f[b+1]<<1|1)&v|(u[b+1]|u[b])<<1|1|u[b+1],f[b]&d){var y=r(p,b-1);if(y<=s){if(s=y,!((a=b-1)>n))break;g=Math.max(1,2*n-a)}}}if(r(p+1,n)>s)break;u=f}return a},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var o=n.substring(e.start2,e.start2+e.length1),i=0;n.indexOf(o)!=n.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,o=n.substring(e.start2-i,e.start2+e.length1+i);i+=this.Patch_Margin;var r=n.substring(e.start2-i,e.start2);r&&e.diffs.unshift(new t.Diff(0,r));var s=n.substring(e.start2+e.length1,e.start2+e.length1+i);s&&e.diffs.push(new t.Diff(0,s)),e.start1-=r.length,e.start2-=r.length,e.length1+=r.length+s.length,e.length2+=r.length+s.length}},t.prototype.patch_make=function(e,o,i){var r,s;if("string"==typeof e&&"string"==typeof o&&void 0===i)r=e,(s=this.diff_main(r,o,!0)).length>2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(e&&"object"==typeof e&&void 0===o&&void 0===i)s=e,r=this.diff_text1(s);else if("string"==typeof e&&o&&"object"==typeof o&&void 0===i)r=e,s=o;else{if("string"!=typeof e||"string"!=typeof o||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");r=e,s=i}if(0===s.length)return[];for(var a=[],l=new t.patch_obj,c=0,d=0,u=0,h=r,p=r,g=0;g<s.length;g++){var m=s[g][0],f=s[g][1];switch(c||0===m||(l.start1=d,l.start2=u),m){case 1:l.diffs[c++]=s[g],l.length2+=f.length,p=p.substring(0,u)+f+p.substring(u);break;case n:l.length1+=f.length,l.diffs[c++]=s[g],p=p.substring(0,u)+p.substring(u+f.length);break;case 0:f.length<=2*this.Patch_Margin&&c&&s.length!=g+1?(l.diffs[c++]=s[g],l.length1+=f.length,l.length2+=f.length):f.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,h),a.push(l),l=new t.patch_obj,c=0,h=p,d=u)}1!==m&&(d+=f.length),m!==n&&(u+=f.length)}return c&&(this.patch_addContext_(l,h),a.push(l)),a},t.prototype.patch_deepCopy=function(e){for(var n=[],o=0;o<e.length;o++){var i=e[o],r=new t.patch_obj;r.diffs=[];for(var s=0;s<i.diffs.length;s++)r.diffs[s]=new t.Diff(i.diffs[s][0],i.diffs[s][1]);r.start1=i.start1,r.start2=i.start2,r.length1=i.length1,r.length2=i.length2,n[o]=r}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var o=this.patch_addPadding(e);t=o+t+o,this.patch_splitMax(e);for(var i=0,r=[],s=0;s<e.length;s++){var a,l,c=e[s].start2+i,d=this.diff_text1(e[s].diffs),u=-1;if(d.length>this.Match_MaxBits?-1!=(a=this.match_main(t,d.substring(0,this.Match_MaxBits),c))&&(-1==(u=this.match_main(t,d.substring(d.length-this.Match_MaxBits),c+d.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,d,c),-1==a)r[s]=!1,i-=e[s].length2-e[s].length1;else if(r[s]=!0,i=a-c,d==(l=-1==u?t.substring(a,a+d.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[s].diffs)+t.substring(a+d.length);else{var h=this.diff_main(d,l,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(h)/d.length>this.Patch_DeleteThreshold)r[s]=!1;else{this.diff_cleanupSemanticLossless(h);for(var p,g=0,m=0;m<e[s].diffs.length;m++){var f=e[s].diffs[m];0!==f[0]&&(p=this.diff_xIndex(h,g)),1===f[0]?t=t.substring(0,a+p)+f[1]+t.substring(a+p):f[0]===n&&(t=t.substring(0,a+p)+t.substring(a+this.diff_xIndex(h,g+f[1].length))),f[0]!==n&&(g+=f[1].length)}}}}return[t=t.substring(o.length,t.length-o.length),r]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,o="",i=1;i<=n;i++)o+=String.fromCharCode(i);for(i=0;i<e.length;i++)e[i].start1+=n,e[i].start2+=n;var r=e[0],s=r.diffs;if(0==s.length||0!=s[0][0])s.unshift(new t.Diff(0,o)),r.start1-=n,r.start2-=n,r.length1+=n,r.length2+=n;else if(n>s[0][1].length){var a=n-s[0][1].length;s[0][1]=o.substring(s[0][1].length)+s[0][1],r.start1-=a,r.start2-=a,r.length1+=a,r.length2+=a}return 0==(s=(r=e[e.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push(new t.Diff(0,o)),r.length1+=n,r.length2+=n):n>s[s.length-1][1].length&&(a=n-s[s.length-1][1].length,s[s.length-1][1]+=o.substring(0,a),r.length1+=a,r.length2+=a),o},t.prototype.patch_splitMax=function(e){for(var o=this.Match_MaxBits,i=0;i<e.length;i++)if(!(e[i].length1<=o)){var r=e[i];e.splice(i--,1);for(var s=r.start1,a=r.start2,l="";0!==r.diffs.length;){var c=new t.patch_obj,d=!0;for(c.start1=s-l.length,c.start2=a-l.length,""!==l&&(c.length1=c.length2=l.length,c.diffs.push(new t.Diff(0,l)));0!==r.diffs.length&&c.length1<o-this.Patch_Margin;){var u=r.diffs[0][0],h=r.diffs[0][1];1===u?(c.length2+=h.length,a+=h.length,c.diffs.push(r.diffs.shift()),d=!1):u===n&&1==c.diffs.length&&0==c.diffs[0][0]&&h.length>2*o?(c.length1+=h.length,s+=h.length,d=!1,c.diffs.push(new t.Diff(u,h)),r.diffs.shift()):(h=h.substring(0,o-c.length1-this.Patch_Margin),c.length1+=h.length,s+=h.length,0===u?(c.length2+=h.length,a+=h.length):d=!1,c.diffs.push(new t.Diff(u,h)),h==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(h.length))}l=(l=this.diff_text2(c.diffs)).substring(l.length-this.Patch_Margin);var p=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==p&&(c.length1+=p.length,c.length2+=p.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=p:c.diffs.push(new t.Diff(0,p))),d||e.splice(++i,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var o=[];if(!e)return o;for(var i=e.split("\n"),r=0,s=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<i.length;){var a=i[r].match(s);if(!a)throw new Error("Invalid patch string: "+i[r]);var l=new t.patch_obj;for(o.push(l),l.start1=parseInt(a[1],10),""===a[2]?(l.start1--,l.length1=1):"0"==a[2]?l.length1=0:(l.start1--,l.length1=parseInt(a[2],10)),l.start2=parseInt(a[3],10),""===a[4]?(l.start2--,l.length2=1):"0"==a[4]?l.length2=0:(l.start2--,l.length2=parseInt(a[4],10)),r++;r<i.length;){var c=i[r].charAt(0);try{var d=decodeURI(i[r].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+d)}if("-"==c)l.diffs.push(new t.Diff(n,d));else if("+"==c)l.diffs.push(new t.Diff(1,d));else if(" "==c)l.diffs.push(new t.Diff(0,d));else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+d)}r++}}return o},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[o+1]=e+encodeURI(this.diffs[o][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},4146(e,t,n){"use strict";var o=n(73404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return o.isMemo(e)?s:a[e.$$typeof]||i}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(g){var i=p(n);i&&i!==g&&e(t,i,o)}var s=d(n);u&&(s=s.concat(u(n)));for(var a=l(t),m=l(n),f=0;f<s.length;++f){var b=s[f];if(!(r[b]||o&&o[b]||m&&m[b]||a&&a[b])){var v=h(n,b);try{c(t,b,v)}catch(e){}}}}return t}},3072(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case r:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case f:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return x(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=h,t.Fragment=r,t.Lazy=f,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===r},t.isLazy=function(e){return x(e)===f},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===s||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===y||e.$$typeof===k||e.$$typeof===b)},t.typeOf=x},73404(e,t,n){"use strict";e.exports=n(3072)},16762(e){var t,n="__lodash_hash_undefined__",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,r=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,c="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),h=Array.prototype,p=Function.prototype,g=Object.prototype,m=u["__core-js_shared__"],f=(t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",b=p.toString,v=g.hasOwnProperty,y=g.toString,k=RegExp("^"+b.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=u.Symbol,w=h.splice,_=L(u,"Map"),C=L(Object,"create"),S=x?x.prototype:void 0,E=S?S.toString:void 0;function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function $(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function A(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function T(e,t){for(var n=e.length;n--;)if(j(e[n][0],t))return n;return-1}function R(e,t){var n,o,i=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function L(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!z(e)||f&&f in e)return!1;var t=function(e){var t=z(e)?y.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?k:l;return t.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}M.prototype.clear=function(){this.__data__=C?C(null):{}},M.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},M.prototype.get=function(e){var t=this.__data__;if(C){var o=t[e];return o===n?void 0:o}return v.call(t,e)?t[e]:void 0},M.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:v.call(t,e)},M.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?n:t,this},$.prototype.clear=function(){this.__data__=[]},$.prototype.delete=function(e){var t=this.__data__,n=T(t,e);return!(n<0||(n==t.length-1?t.pop():w.call(t,n,1),0))},$.prototype.get=function(e){var t=this.__data__,n=T(t,e);return n<0?void 0:t[n][1]},$.prototype.has=function(e){return T(this.__data__,e)>-1},$.prototype.set=function(e,t){var n=this.__data__,o=T(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new M,map:new(_||$),string:new M}},A.prototype.delete=function(e){return R(this,e).delete(e)},A.prototype.get=function(e){return R(this,e).get(e)},A.prototype.has=function(e){return R(this,e).has(e)},A.prototype.set=function(e,t){return R(this,e).set(e,t),this};var O=N(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(F(e))return E?E.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return r.test(e)&&n.push(""),e.replace(s,function(e,t,o,i){n.push(o?i.replace(a,"$1"):t||e)}),n});function D(e){if("string"==typeof e||F(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=e.apply(this,o);return n.cache=r.set(i,s),s};return n.cache=new(N.Cache||A),n}function j(e,t){return e===t||e!=e&&t!=t}N.Cache=A;var I=Array.isArray;function z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function F(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==y.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:function(e,t){var n;t=function(e,t){if(I(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!F(e))||i.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:I(n=t)?n:O(n);for(var r=0,s=t.length;null!=e&&r<s;)e=e[D(t[r++])];return r&&r==s?e:void 0}(e,t);return void 0===r?n:r}},8142(e,t,n){e=n.nmd(e);var o="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",u="[object Map]",h="[object Number]",p="[object Object]",g="[object Promise]",m="[object RegExp]",f="[object Set]",b="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",k="[object DataView]",x=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[r]=_[s]=_[y]=_[a]=_[k]=_[l]=_[c]=_[d]=_[u]=_[h]=_[p]=_[m]=_[f]=_[b]=_[v]=!1;var C="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,S="object"==typeof self&&self&&self.Object===Object&&self,E=C||S||Function("return this")(),M=t&&!t.nodeType&&t,$=M&&e&&!e.nodeType&&e,A=$&&$.exports===M,T=A&&C.process,R=function(){try{return T&&T.binding&&T.binding("util")}catch(e){}}(),L=R&&R.isTypedArray;function O(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}function N(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var j,I,z,F=Array.prototype,B=Function.prototype,P=Object.prototype,H=E["__core-js_shared__"],V=B.toString,W=P.hasOwnProperty,U=(j=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",G=P.toString,Z=RegExp("^"+V.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=A?E.Buffer:void 0,K=E.Symbol,Y=E.Uint8Array,X=P.propertyIsEnumerable,Q=F.splice,J=K?K.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=q?q.isBuffer:void 0,ne=(I=Object.keys,z=Object,function(e){return I(z(e))}),oe=$e(E,"DataView"),ie=$e(E,"Map"),re=$e(E,"Promise"),se=$e(E,"Set"),ae=$e(E,"WeakMap"),le=$e(Object,"create"),ce=Le(oe),de=Le(ie),ue=Le(re),he=Le(se),pe=Le(ae),ge=K?K.prototype:void 0,me=ge?ge.valueOf:void 0;function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function ke(e){var t=this.__data__=new be(e);this.size=t.size}function xe(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=W.call(e,J),n=e[J];try{e[J]=void 0;var o=!0}catch(e){}var i=G.call(e);return o&&(t?e[J]=n:delete e[J]),i}(e):function(e){return G.call(e)}(e)}function _e(e){return Be(e)&&we(e)==r}function Ce(e,t,n,o,i){return e===t||(null==e||null==t||!Be(e)&&!Be(t)?e!=e&&t!=t:function(e,t,n,o,i,d){var g=Ne(e),v=Ne(t),x=g?s:Te(e),w=v?s:Te(t),_=(x=x==r?p:x)==p,C=(w=w==r?p:w)==p,S=x==w;if(S&&je(e)){if(!je(t))return!1;g=!0,_=!1}if(S&&!_)return d||(d=new ke),g||Pe(e)?Se(e,t,n,o,i,d):function(e,t,n,o,i,r,s){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new Y(e),new Y(t)));case a:case l:case h:return Oe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case b:return e==t+"";case u:var d=D;case f:var p=1&o;if(d||(d=N),e.size!=t.size&&!p)return!1;var g=s.get(e);if(g)return g==t;o|=2,s.set(e,t);var v=Se(d(e),d(t),o,i,r,s);return s.delete(e),v;case"[object Symbol]":if(me)return me.call(e)==me.call(t)}return!1}(e,t,x,n,o,i,d);if(!(1&n)){var E=_&&W.call(e,"__wrapped__"),M=C&&W.call(t,"__wrapped__");if(E||M){var $=E?e.value():e,A=M?t.value():t;return d||(d=new ke),i($,A,n,o,d)}}return!!S&&(d||(d=new ke),function(e,t,n,o,i,r){var s=1&n,a=Ee(e),l=a.length;if(l!=Ee(t).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in t:W.call(t,d)))return!1}var u=r.get(e);if(u&&r.get(t))return u==t;var h=!0;r.set(e,t),r.set(t,e);for(var p=s;++c<l;){var g=e[d=a[c]],m=t[d];if(o)var f=s?o(m,g,d,t,e,r):o(g,m,d,e,t,r);if(!(void 0===f?g===m||i(g,m,n,o,r):f)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return r.delete(e),r.delete(t),h}(e,t,n,o,i,d))}(e,t,n,o,Ce,i))}function Se(e,t,n,o,i,r){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var d=-1,u=!0,h=2&n?new ye:void 0;for(r.set(e,t),r.set(t,e);++d<a;){var p=e[d],g=t[d];if(o)var m=s?o(g,p,d,t,e,r):o(p,g,d,e,t,r);if(void 0!==m){if(m)continue;u=!1;break}if(h){if(!O(t,function(e,t){if(s=t,!h.has(s)&&(p===e||i(p,e,n,o,r)))return h.push(t);var s})){u=!1;break}}else if(p!==g&&!i(p,g,n,o,r)){u=!1;break}}return r.delete(e),r.delete(t),u}function Ee(e){return function(e,t,n){var o=t(e);return Ne(e)?o:function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}(o,n(e))}(e,He,Ae)}function Me(e,t){var n,o,i=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function $e(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!U&&U in e}(e))&&(Ie(e)?Z:x).test(Le(e))}(n)?n:void 0}fe.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(le){var n=t[e];return n===o?void 0:n}return W.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:W.call(t,e)},fe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&void 0===t?o:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=xe(t,e);return!(n<0||(n==t.length-1?t.pop():Q.call(t,n,1),--this.size,0))},be.prototype.get=function(e){var t=this.__data__,n=xe(t,e);return n<0?void 0:t[n][1]},be.prototype.has=function(e){return xe(this.__data__,e)>-1},be.prototype.set=function(e,t){var n=this.__data__,o=xe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(ie||be),string:new fe}},ve.prototype.delete=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Me(this,e).get(e)},ve.prototype.has=function(e){return Me(this,e).has(e)},ve.prototype.set=function(e,t){var n=Me(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,o),this},ye.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.clear=function(){this.__data__=new be,this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof be){var o=n.__data__;if(!ie||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(o)}return n.set(e,t),this.size=n.size,this};var Ae=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,r=[];++n<o;){var s=e[n];t(s)&&(r[i++]=s)}return r}(ee(e),function(t){return X.call(e,t)}))}:function(){return[]},Te=we;function Re(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||w.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Oe(e,t){return e===t||e!=e&&t!=t}(oe&&Te(new oe(new ArrayBuffer(1)))!=k||ie&&Te(new ie)!=u||re&&Te(re.resolve())!=g||se&&Te(new se)!=f||ae&&Te(new ae)!=v)&&(Te=function(e){var t=we(e),n=t==p?e.constructor:void 0,o=n?Le(n):"";if(o)switch(o){case ce:return k;case de:return u;case ue:return g;case he:return f;case pe:return v}return t});var De=_e(function(){return arguments}())?_e:function(e){return Be(e)&&W.call(e,"callee")&&!X.call(e,"callee")},Ne=Array.isArray,je=te||function(){return!1};function Ie(e){if(!Fe(e))return!1;var t=we(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ze(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Be(e){return null!=e&&"object"==typeof e}var Pe=L?function(e){return function(t){return e(t)}}(L):function(e){return Be(e)&&ze(e.length)&&!!_[we(e)]};function He(e){return null!=(t=e)&&ze(t.length)&&!Ie(t)?function(e,t){var n=Ne(e),o=!n&&De(e),i=!n&&!o&&je(e),r=!n&&!o&&!i&&Pe(e),s=n||o||i||r,a=s?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],l=a.length;for(var c in e)!t&&!W.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Re(c,l))||a.push(c);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||P))return ne(e);var t,n,o=[];for(var i in Object(e))W.call(e,i)&&"constructor"!=i&&o.push(i);return o}(e);var t}e.exports=function(e,t){return Ce(e,t)}},55580(e,t,n){var o=n(56110)(n(9325),"DataView");e.exports=o},21549(e,t,n){var o=n(22032),i=n(63862),r=n(66721),s=n(12749),a=n(35749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=r,l.prototype.has=s,l.prototype.set=a,e.exports=l},80079(e,t,n){var o=n(63702),i=n(70080),r=n(24739),s=n(48655),a=n(31175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=r,l.prototype.has=s,l.prototype.set=a,e.exports=l},68223(e,t,n){var o=n(56110)(n(9325),"Map");e.exports=o},53661(e,t,n){var o=n(63040),i=n(17670),r=n(90289),s=n(4509),a=n(72949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=r,l.prototype.has=s,l.prototype.set=a,e.exports=l},32804(e,t,n){var o=n(56110)(n(9325),"Promise");e.exports=o},76545(e,t,n){var o=n(56110)(n(9325),"Set");e.exports=o},38859(e,t,n){var o=n(53661),i=n(31380),r=n(51459);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=r,e.exports=s},37217(e,t,n){var o=n(80079),i=n(51420),r=n(90938),s=n(63605),a=n(29817),l=n(80945);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=r,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},51873(e,t,n){var o=n(9325).Symbol;e.exports=o},37828(e,t,n){var o=n(9325).Uint8Array;e.exports=o},28303(e,t,n){var o=n(56110)(n(9325),"WeakMap");e.exports=o},91033(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},83729(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},79770(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,r=[];++n<o;){var s=e[n];t(s,n,e)&&(r[i++]=s)}return r}},70695(e,t,n){var o=n(78096),i=n(72428),r=n(56449),s=n(3656),a=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),d=!n&&i(e),u=!n&&!d&&s(e),h=!n&&!d&&!u&&l(e),p=n||d||u||h,g=p?o(e.length,String):[],m=g.length;for(var f in e)!t&&!c.call(e,f)||p&&("length"==f||u&&("offset"==f||"parent"==f)||h&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,m))||g.push(f);return g}},34932(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}},14528(e){e.exports=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},14248(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},87805(e,t,n){var o=n(43360),i=n(75288);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&o(e,t,n)}},16547(e,t,n){var o=n(43360),i=n(75288),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];r.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||o(e,t,n)}},26025(e,t,n){var o=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},74733(e,t,n){var o=n(21791),i=n(95950);e.exports=function(e,t){return e&&o(t,i(t),e)}},43838(e,t,n){var o=n(21791),i=n(37241);e.exports=function(e,t){return e&&o(t,i(t),e)}},43360(e,t,n){var o=n(93243);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999(e,t,n){var o=n(37217),i=n(83729),r=n(16547),s=n(74733),a=n(43838),l=n(93290),c=n(23007),d=n(92271),u=n(48948),h=n(50002),p=n(83349),g=n(5861),m=n(76189),f=n(77199),b=n(35529),v=n(56449),y=n(3656),k=n(87730),x=n(23805),w=n(38440),_=n(95950),C=n(37241),S="[object Arguments]",E="[object Function]",M="[object Object]",$={};$[S]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object DataView]"]=$["[object Boolean]"]=$["[object Date]"]=$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Map]"]=$["[object Number]"]=$[M]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object Symbol]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Error]"]=$[E]=$["[object WeakMap]"]=!1,e.exports=function e(t,n,A,T,R,L){var O,D=1&n,N=2&n,j=4&n;if(A&&(O=R?A(t,T,R,L):A(t)),void 0!==O)return O;if(!x(t))return t;var I=v(t);if(I){if(O=m(t),!D)return c(t,O)}else{var z=g(t),F=z==E||"[object GeneratorFunction]"==z;if(y(t))return l(t,D);if(z==M||z==S||F&&!R){if(O=N||F?{}:b(t),!D)return N?u(t,a(O,t)):d(t,s(O,t))}else{if(!$[z])return R?t:{};O=f(t,z,D)}}L||(L=new o);var B=L.get(t);if(B)return B;L.set(t,O),w(t)?t.forEach(function(o){O.add(e(o,n,A,o,t,L))}):k(t)&&t.forEach(function(o,i){O.set(i,e(o,n,A,i,t,L))});var P=I?void 0:(j?N?p:h:N?C:_)(t);return i(P||t,function(o,i){P&&(o=t[i=o]),r(O,i,e(o,n,A,i,t,L))}),O}},39344(e,t,n){var o=n(23805),i=Object.create,r=function(){function e(){}return function(t){if(!o(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=r},80909(e,t,n){var o=n(30641),i=n(38329)(o);e.exports=i},86649(e,t,n){var o=n(83221)();e.exports=o},30641(e,t,n){var o=n(86649),i=n(95950);e.exports=function(e,t){return e&&o(e,t,i)}},47422(e,t,n){var o=n(31769),i=n(77797);e.exports=function(e,t){for(var n=0,r=(t=o(t,e)).length;null!=e&&n<r;)e=e[i(t[n++])];return n&&n==r?e:void 0}},82199(e,t,n){var o=n(14528),i=n(56449);e.exports=function(e,t,n){var r=t(e);return i(e)?r:o(r,n(e))}},72552(e,t,n){var o=n(51873),i=n(659),r=n(59350),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):r(e)}},28077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},27534(e,t,n){var o=n(72552),i=n(40346);e.exports=function(e){return i(e)&&"[object Arguments]"==o(e)}},60270(e,t,n){var o=n(87068),i=n(40346);e.exports=function e(t,n,r,s,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:o(t,n,r,s,e,a))}},87068(e,t,n){var o=n(37217),i=n(25911),r=n(21986),s=n(50689),a=n(5861),l=n(56449),c=n(3656),d=n(37167),u="[object Arguments]",h="[object Array]",p="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,f,b){var v=l(e),y=l(t),k=v?h:a(e),x=y?h:a(t),w=(k=k==u?p:k)==p,_=(x=x==u?p:x)==p,C=k==x;if(C&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(C&&!w)return b||(b=new o),v||d(e)?i(e,t,n,m,f,b):r(e,t,k,n,m,f,b);if(!(1&n)){var S=w&&g.call(e,"__wrapped__"),E=_&&g.call(t,"__wrapped__");if(S||E){var M=S?e.value():e,$=E?t.value():t;return b||(b=new o),f(M,$,n,m,b)}}return!!C&&(b||(b=new o),s(e,t,n,m,f,b))}},29172(e,t,n){var o=n(5861),i=n(40346);e.exports=function(e){return i(e)&&"[object Map]"==o(e)}},41799(e,t,n){var o=n(37217),i=n(60270);e.exports=function(e,t,n,r){var s=n.length,a=s,l=!r;if(null==e)return!a;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var d=(c=n[s])[0],u=e[d],h=c[1];if(l&&c[2]){if(void 0===u&&!(d in e))return!1}else{var p=new o;if(r)var g=r(u,h,d,e,t,p);if(!(void 0===g?i(h,u,3,r,p):g))return!1}}return!0}},45083(e,t,n){var o=n(1882),i=n(87296),r=n(23805),s=n(47473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,h=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||i(e))&&(o(e)?h:a).test(s(e))}},16038(e,t,n){var o=n(5861),i=n(40346);e.exports=function(e){return i(e)&&"[object Set]"==o(e)}},4901(e,t,n){var o=n(72552),i=n(30294),r=n(40346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&i(e.length)&&!!s[o(e)]}},15389(e,t,n){var o=n(93663),i=n(87978),r=n(83488),s=n(56449),a=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?s(e)?i(e[0],e[1]):o(e):a(e)}},88984(e,t,n){var o=n(55527),i=n(3650),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))r.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903(e,t,n){var o=n(23805),i=n(55527),r=n(90181),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return r(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},5128(e,t,n){var o=n(80909),i=n(64894);e.exports=function(e,t){var n=-1,r=i(e)?Array(e.length):[];return o(e,function(e,o,i){r[++n]=t(e,o,i)}),r}},93663(e,t,n){var o=n(41799),i=n(10776),r=n(67197);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?r(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},87978(e,t,n){var o=n(60270),i=n(58156),r=n(80631),s=n(28586),a=n(30756),l=n(67197),c=n(77797);e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?r(n,e):o(t,s,3)}}},85250(e,t,n){var o=n(37217),i=n(87805),r=n(86649),s=n(42824),a=n(23805),l=n(37241),c=n(14974);e.exports=function e(t,n,d,u,h){t!==n&&r(n,function(r,l){if(h||(h=new o),a(r))s(t,n,l,d,e,u,h);else{var p=u?u(c(t,l),r,l+"",t,n,h):void 0;void 0===p&&(p=r),i(t,l,p)}},l)}},42824(e,t,n){var o=n(87805),i=n(93290),r=n(71961),s=n(23007),a=n(35529),l=n(72428),c=n(56449),d=n(83693),u=n(3656),h=n(1882),p=n(23805),g=n(11331),m=n(37167),f=n(14974),b=n(69884);e.exports=function(e,t,n,v,y,k,x){var w=f(e,n),_=f(t,n),C=x.get(_);if(C)o(e,n,C);else{var S=k?k(w,_,n+"",e,t,x):void 0,E=void 0===S;if(E){var M=c(_),$=!M&&u(_),A=!M&&!$&&m(_);S=_,M||$||A?c(w)?S=w:d(w)?S=s(w):$?(E=!1,S=i(_,!0)):A?(E=!1,S=r(_,!0)):S=[]:g(_)||l(_)?(S=w,l(w)?S=b(w):p(w)&&!h(w)||(S=a(_))):E=!1}E&&(x.set(_,S),y(S,_,v,k,x),x.delete(_)),o(e,n,S)}}},47237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255(e,t,n){var o=n(47422);e.exports=function(e){return function(t){return o(t,e)}}},69302(e,t,n){var o=n(83488),i=n(56757),r=n(32865);e.exports=function(e,t){return r(i(e,t,o),e+"")}},19570(e,t,n){var o=n(37334),i=n(93243),r=n(83488),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:r;e.exports=s},78096(e){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},77556(e,t,n){var o=n(51873),i=n(34932),r=n(56449),s=n(44394),a=o?o.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128(e,t,n){var o=n(31800),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},27301(e){e.exports=function(e){return function(t){return e(t)}}},19219(e){e.exports=function(e,t){return e.has(t)}},24066(e,t,n){var o=n(83488);e.exports=function(e){return"function"==typeof e?e:o}},31769(e,t,n){var o=n(56449),i=n(28586),r=n(61802),s=n(13222);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:r(s(e))}},49653(e,t,n){var o=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},93290(e,t,n){e=n.nmd(e);var o=n(9325),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,s=r&&r.exports===i?o.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=a?a(n):new e.constructor(n);return e.copy(o),o}},76169(e,t,n){var o=n(49653);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},73201(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},93736(e,t,n){var o=n(51873),i=o?o.prototype:void 0,r=i?i.valueOf:void 0;e.exports=function(e){return r?Object(r.call(e)):{}}},71961(e,t,n){var o=n(49653);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},23007(e){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},21791(e,t,n){var o=n(16547),i=n(43360);e.exports=function(e,t,n,r){var s=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],d=r?r(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?i(n,c,d):o(n,c,d)}return n}},92271(e,t,n){var o=n(21791),i=n(4664);e.exports=function(e,t){return o(e,i(e),t)}},48948(e,t,n){var o=n(21791),i=n(86375);e.exports=function(e,t){return o(e,i(e),t)}},55481(e,t,n){var o=n(9325)["__core-js_shared__"];e.exports=o},20999(e,t,n){var o=n(69302),i=n(36800);e.exports=function(e){return o(function(t,n){var o=-1,r=n.length,s=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(r--,s):void 0,a&&i(n[0],n[1],a)&&(s=r<3?void 0:s,r=1),t=Object(t);++o<r;){var l=n[o];l&&e(t,l,o,s)}return t})}},38329(e,t,n){var o=n(64894);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!o(n))return e(n,i);for(var r=n.length,s=t?r:-1,a=Object(n);(t?s--:++s<r)&&!1!==i(a[s],s,a););return n}}},83221(e){e.exports=function(e){return function(t,n,o){for(var i=-1,r=Object(t),s=o(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(r[l],l,r))break}return t}}},93243(e,t,n){var o=n(56110),i=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},25911(e,t,n){var o=n(38859),i=n(14248),r=n(19219);e.exports=function(e,t,n,s,a,l){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var g=-1,m=!0,f=2&n?new o:void 0;for(l.set(e,t),l.set(t,e);++g<d;){var b=e[g],v=t[g];if(s)var y=c?s(v,b,g,t,e,l):s(b,v,g,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(f){if(!i(t,function(e,t){if(!r(f,t)&&(b===e||a(b,e,n,s,l)))return f.push(t)})){m=!1;break}}else if(b!==v&&!a(b,v,n,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},21986(e,t,n){var o=n(51873),i=n(37828),r=n(75288),s=n(25911),a=n(20317),l=n(84247),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,u,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var g=1&o;if(p||(p=l),e.size!=t.size&&!g)return!1;var m=h.get(e);if(m)return m==t;o|=2,h.set(e,t);var f=s(p(e),p(t),o,c,u,h);return h.delete(e),f;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},50689(e,t,n){var o=n(50002),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,s,a){var l=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!l)return!1;for(var u=d;u--;){var h=c[u];if(!(l?h in t:i.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var f=l;++u<d;){var b=e[h=c[u]],v=t[h];if(r)var y=l?r(v,b,h,t,e,a):r(b,v,h,e,t,a);if(!(void 0===y?b===v||s(b,v,n,r,a):y)){m=!1;break}f||(f="constructor"==h)}if(m&&!f){var k=e.constructor,x=t.constructor;k==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof x&&x instanceof x||(m=!1)}return a.delete(e),a.delete(t),m}},34840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},50002(e,t,n){var o=n(82199),i=n(4664),r=n(95950);e.exports=function(e){return o(e,r,i)}},83349(e,t,n){var o=n(82199),i=n(86375),r=n(37241);e.exports=function(e){return o(e,r,i)}},12651(e,t,n){var o=n(74218);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},10776(e,t,n){var o=n(30756),i=n(95950);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,o(s)]}return t}},56110(e,t,n){var o=n(45083),i=n(10392);e.exports=function(e,t){var n=i(e,t);return o(n)?n:void 0}},28879(e,t,n){var o=n(74335)(Object.getPrototypeOf,Object);e.exports=o},659(e,t,n){var o=n(51873),i=Object.prototype,r=i.hasOwnProperty,s=i.toString,a=o?o.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),n=e[a];try{e[a]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(t?e[a]=n:delete e[a]),i}},4664(e,t,n){var o=n(79770),i=n(63345),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),o(s(e),function(t){return r.call(e,t)}))}:i;e.exports=a},86375(e,t,n){var o=n(14528),i=n(28879),r=n(4664),s=n(63345),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,r(e)),e=i(e);return t}:s;e.exports=a},5861(e,t,n){var o=n(55580),i=n(68223),r=n(32804),s=n(76545),a=n(28303),l=n(72552),c=n(47473),d="[object Map]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",g="[object DataView]",m=c(o),f=c(i),b=c(r),v=c(s),y=c(a),k=l;(o&&k(new o(new ArrayBuffer(1)))!=g||i&&k(new i)!=d||r&&k(r.resolve())!=u||s&&k(new s)!=h||a&&k(new a)!=p)&&(k=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case m:return g;case f:return d;case b:return u;case v:return h;case y:return p}return t}),e.exports=k},10392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},49326(e,t,n){var o=n(31769),i=n(72428),r=n(56449),s=n(30361),a=n(30294),l=n(77797);e.exports=function(e,t,n){for(var c=-1,d=(t=o(t,e)).length,u=!1;++c<d;){var h=l(t[c]);if(!(u=null!=e&&n(e,h)))break;e=e[h]}return u||++c!=d?u:!!(d=null==e?0:e.length)&&a(d)&&s(h,d)&&(r(e)||i(e))}},22032(e,t,n){var o=n(81042);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},63862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721(e,t,n){var o=n(81042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},12749(e,t,n){var o=n(81042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}},35749(e,t,n){var o=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},76189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},77199(e,t,n){var o=n(49653),i=n(76169),r=n(73201),s=n(93736),a=n(71961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return r(e);case"[object Symbol]":return s(e)}}},35529(e,t,n){var o=n(39344),i=n(28879),r=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:o(i(e))}},30361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},36800(e,t,n){var o=n(75288),i=n(64894),r=n(30361),s=n(23805);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?i(n)&&r(t,n.length):"string"==a&&t in n)&&o(n[t],e)}},28586(e,t,n){var o=n(56449),i=n(44394),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!r.test(e)||null!=t&&e in Object(t)}},74218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296(e,t,n){var o,i=n(55481),r=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!r&&r in e}},55527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30756(e,t,n){var o=n(23805);e.exports=function(e){return e==e&&!o(e)}},63702(e){e.exports=function(){this.__data__=[],this.size=0}},70080(e,t,n){var o=n(26025),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},24739(e,t,n){var o=n(26025);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},48655(e,t,n){var o=n(26025);e.exports=function(e){return o(this.__data__,e)>-1}},31175(e,t,n){var o=n(26025);e.exports=function(e,t){var n=this.__data__,i=o(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},63040(e,t,n){var o=n(21549),i=n(80079),r=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(r||i),string:new o}}},17670(e,t,n){var o=n(12651);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},90289(e,t,n){var o=n(12651);e.exports=function(e){return o(this,e).get(e)}},4509(e,t,n){var o=n(12651);e.exports=function(e){return o(this,e).has(e)}},72949(e,t,n){var o=n(12651);e.exports=function(e,t){var n=o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},20317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}},67197(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},62224(e,t,n){var o=n(50104);e.exports=function(e){var t=o(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},81042(e,t,n){var o=n(56110)(Object,"create");e.exports=o},3650(e,t,n){var o=n(74335)(Object.keys,Object);e.exports=o},90181(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009(e,t,n){e=n.nmd(e);var o=n(34840),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,s=r&&r.exports===i&&o.process,a=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},59350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},56757(e,t,n){var o=n(91033),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,s=-1,a=i(r.length-t,0),l=Array(a);++s<a;)l[s]=r[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=r[s];return c[t]=n(l),o(e,this,c)}}},9325(e,t,n){var o=n(34840),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();e.exports=r},14974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},31380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459(e){e.exports=function(e){return this.__data__.has(e)}},84247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},32865(e,t,n){var o=n(19570),i=n(51811)(o);e.exports=i},51811(e){var t=Date.now;e.exports=function(e){var n=0,o=0;return function(){var i=t(),r=16-(i-o);if(o=i,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51420(e,t,n){var o=n(80079);e.exports=function(){this.__data__=new o,this.size=0}},90938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605(e){e.exports=function(e){return this.__data__.get(e)}},29817(e){e.exports=function(e){return this.__data__.has(e)}},80945(e,t,n){var o=n(80079),i=n(68223),r=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(s)}return n.set(e,t),this.size=n.size,this}},61802(e,t,n){var o=n(62224),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,s=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,o,i){t.push(o?i.replace(r,"$1"):n||e)}),t});e.exports=s},77797(e,t,n){var o=n(44394);e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},31800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},88055(e,t,n){var o=n(9999);e.exports=function(e){return o(e,5)}},37334(e){e.exports=function(e){return function(){return e}}},38221(e,t,n){var o=n(23805),i=n(10124),r=n(99374),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,d,u,h,p,g=0,m=!1,f=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,o=c;return l=c=void 0,g=t,u=e.apply(o,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||f&&e-g>=d}function k(){var e=i();if(y(e))return x(e);h=setTimeout(k,function(e){var n=t-(e-p);return f?a(n,d-(e-g)):n}(e))}function x(e){return h=void 0,b&&l?v(e):(l=c=void 0,u)}function w(){var e=i(),n=y(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return g=e,h=setTimeout(k,t),m?v(e):u}(p);if(f)return clearTimeout(h),h=setTimeout(k,t),v(p)}return void 0===h&&(h=setTimeout(k,t)),u}return t=r(t)||0,o(n)&&(m=!!n.leading,d=(f="maxWait"in n)?s(r(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==h&&clearTimeout(h),g=0,l=p=c=h=void 0},w.flush=function(){return void 0===h?u:x(i())},w}},76135(e,t,n){e.exports=n(39754)},75288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},39754(e,t,n){var o=n(83729),i=n(80909),r=n(24066),s=n(56449);e.exports=function(e,t){return(s(e)?o:i)(e,r(t))}},33215(e,t,n){var o=n(30641),i=n(24066);e.exports=function(e,t){return e&&o(e,i(t))}},58156(e,t,n){var o=n(47422);e.exports=function(e,t,n){var i=null==e?void 0:o(e,t);return void 0===i?n:i}},80631(e,t,n){var o=n(28077),i=n(49326);e.exports=function(e,t){return null!=e&&i(e,t,o)}},83488(e){e.exports=function(e){return e}},72428(e,t,n){var o=n(27534),i=n(40346),r=Object.prototype,s=r.hasOwnProperty,a=r.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},56449(e){var t=Array.isArray;e.exports=t},64894(e,t,n){var o=n(1882),i=n(30294);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},83693(e,t,n){var o=n(64894),i=n(40346);e.exports=function(e){return i(e)&&o(e)}},3656(e,t,n){e=n.nmd(e);var o=n(9325),i=n(89935),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,a=s&&s.exports===r?o.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},1882(e,t,n){var o=n(72552),i=n(23805);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730(e,t,n){var o=n(29172),i=n(27301),r=n(86009),s=r&&r.isMap,a=s?i(s):o;e.exports=a},23805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},11331(e,t,n){var o=n(72552),i=n(28879),r=n(40346),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=o(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},38440(e,t,n){var o=n(16038),i=n(27301),r=n(86009),s=r&&r.isSet,a=s?i(s):o;e.exports=a},85015(e,t,n){var o=n(72552),i=n(56449),r=n(40346);e.exports=function(e){return"string"==typeof e||!i(e)&&r(e)&&"[object String]"==o(e)}},44394(e,t,n){var o=n(72552),i=n(40346);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},37167(e,t,n){var o=n(4901),i=n(27301),r=n(86009),s=r&&r.isTypedArray,a=s?i(s):o;e.exports=a},62216(e){e.exports=function(e){return void 0===e}},95950(e,t,n){var o=n(70695),i=n(88984),r=n(64894);e.exports=function(e){return r(e)?o(e):i(e)}},37241(e,t,n){var o=n(70695),i=n(72903),r=n(64894);e.exports=function(e){return r(e)?o(e,!0):i(e)}},55378(e,t,n){var o=n(34932),i=n(15389),r=n(5128),s=n(56449);e.exports=function(e,t){return(s(e)?o:r)(e,i(t,3))}},50104(e,t,n){var o=n(53661);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=e.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(i.Cache||o),n}i.Cache=o,e.exports=i},55364(e,t,n){var o=n(85250),i=n(20999)(function(e,t,n){o(e,t,n)});e.exports=i},10124(e,t,n){var o=n(9325);e.exports=function(){return o.Date.now()}},50583(e,t,n){var o=n(47237),i=n(17255),r=n(28586),s=n(77797);e.exports=function(e){return r(e)?o(s(e)):i(e)}},63345(e){e.exports=function(){return[]}},89935(e){e.exports=function(){return!1}},7350(e,t,n){var o=n(38221),i=n(23805);e.exports=function(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),o(e,t,{leading:r,maxWait:t,trailing:s})}},99374(e,t,n){var o=n(54128),i=n(23805),r=n(44394),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},69884(e,t,n){var o=n(21791),i=n(37241);e.exports=function(e){return o(e,i(e))}},13222(e,t,n){var o=n(77556);e.exports=function(e){return null==e?"":o(e)}},2694(e,t,n){"use strict";var o=n(6925);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},35549(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(80952),a=n(5556),l=n(51609),c=n(8142),d=n(95707),u=(0,d.getAceInstance)(),h=function(e){function t(t){var n=e.call(this,t)||this;return d.editorEvents.forEach(function(e){n[e]=n[e].bind(n)}),n.debounce=d.debounce,n}return i(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,o=t.onBeforeLoad,i=t.onValidate,r=t.mode,s=t.focus,a=t.theme,l=t.fontSize,c=t.lineHeight,h=t.value,p=t.defaultValue,g=t.showGutter,m=t.wrapEnabled,f=t.showPrintMargin,b=t.scrollMargin,v=void 0===b?[0,0,0,0]:b,y=t.keyboardHandler,k=t.onLoad,x=t.commands,w=t.annotations,_=t.markers,C=t.placeholder;this.editor=u.edit(this.refEditor),o&&o(u);for(var S=Object.keys(this.props.editorProps),E=0;E<S.length;E++)this.editor[S[E]]=this.props.editorProps[S[E]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("string"==typeof r?"ace/mode/".concat(r):r),a&&""!==a&&this.editor.setTheme("ace/theme/".concat(a)),this.editor.setFontSize("number"==typeof l?"".concat(l,"px"):l),c&&(this.editor.container.style.lineHeight="number"==typeof c?"".concat(c,"px"):"".concat(c),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(p||h||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(g),this.editor.getSession().setUseWrapMode(m),this.editor.setShowPrintMargin(f),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),C&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),i&&this.editor.getSession().on("changeAnnotation",function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(w||[]),_&&_.length>0&&this.handleMarkers(_);var M=this.editor.$options;d.editorOptions.forEach(function(t){M.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(x)&&x.forEach(function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)}),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),n&&(this.refEditor.className+=" "+n),k&&k(this.editor),this.editor.resize(),s&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,o=0;o<d.editorOptions.length;o++){var i=d.editorOptions[o];n[i]!==t[i]&&this.editor.setOption(i,n[i])}if(n.className!==t.className){var r=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach(function(e){var t=r.indexOf(e);r.splice(t,1)}),this.refEditor.className=" "+n.className+" "+r.join(" ")}var s=this.editor&&null!=n.value&&this.editor.getValue()!==n.value;if(s){this.silent=!0;var a=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(a),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("string"==typeof n.mode?"ace/mode/".concat(n.mode):n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof n.fontSize?"".concat(n.fontSize,"px"):n.fontSize),n.lineHeight!==t.lineHeight&&(this.editor.container.style.lineHeight="number"==typeof n.lineHeight?"".concat(n.lineHeight,"px"):n.lineHeight,this.editor.renderer.updateFontSize()),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),c(n.setOptions,t.setOptions)||this.handleOptions(n),!s&&c(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!c(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),c(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(e){if(this.editor&&this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])},t.prototype.handleMarkers=function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var o in n)n.hasOwnProperty(o)&&this.editor.getSession().removeMarker(n[o].id);for(var o in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(o)&&"ace_active-line"!==n[o].clazz&&"ace_selected-word"!==n[o].clazz&&this.editor.getSession().removeMarker(n[o].id);e.forEach(function(e){var n=e.startRow,o=e.startCol,i=e.endRow,r=e.endCol,a=e.className,l=e.type,c=e.inFront,d=void 0!==c&&c,u=new s.Range(n,o,i,r);t.editor.getSession().addMarker(u,a,l,d)})},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,o=e.renderer.placeholderNode;!n&&o?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!o?((o=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",o.className="ace_comment ace_placeholder",o.style.padding="0 9px",o.style.position="absolute",o.style.zIndex="3",e.renderer.scroller.appendChild(o)):n&&o&&(o.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,o=e.height,i=e.style,s=r({width:n,height:o},i);return l.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={mode:a.oneOfType([a.string,a.object]),focus:a.bool,theme:a.string,name:a.string,className:a.string,height:a.string,width:a.string,fontSize:a.oneOfType([a.number,a.string]),lineHeight:a.oneOfType([a.number,a.string]),showGutter:a.bool,onChange:a.func,onCopy:a.func,onPaste:a.func,onFocus:a.func,onInput:a.func,onBlur:a.func,onScroll:a.func,value:a.string,defaultValue:a.string,onLoad:a.func,onSelectionChange:a.func,onCursorChange:a.func,onBeforeLoad:a.func,onValidate:a.func,minLines:a.number,maxLines:a.number,readOnly:a.bool,highlightActiveLine:a.bool,tabSize:a.number,showPrintMargin:a.bool,cursorStart:a.number,debounceChangePeriod:a.number,editorProps:a.object,setOptions:a.object,style:a.object,scrollMargin:a.array,annotations:a.array,markers:a.array,keyboardHandler:a.string,wrapEnabled:a.bool,enableSnippets:a.bool,enableBasicAutocompletion:a.oneOfType([a.bool,a.array]),enableLiveAutocompletion:a.oneOfType([a.bool,a.array]),navigateToFileEnd:a.bool,commands:a.array,placeholder:a.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(l.Component);t.default=h},3091(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(5556),s=n(51609),a=n(34038),l=n(2189),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return i(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var o=e.diff_main(t,n);e.diff_cleanupSemantic(o);var i=this.generateDiffedLines(o);return this.setCodeMarkers(i)},t.prototype.generateDiffedLines=function(e){var t={left:[],right:[]},n={left:1,right:1};return e.forEach(function(e){var o=e[0],i=e[1],r=i.split("\n").length-1;if(0!==i.length){var s=i[0],a=i[i.length-1],l=0;switch(o){case 0:n.left+=r,n.right+=r;break;case-1:"\n"===s&&(n.left++,r--),0===(l=r)&&t.right.push({startLine:n.right,endLine:n.right}),"\n"===a&&(l-=1),t.left.push({startLine:n.left,endLine:n.left+l}),n.left+=r;break;case 1:"\n"===s&&(n.right++,r--),0===(l=r)&&t.left.push({startLine:n.left,endLine:n.left}),"\n"===a&&(l-=1),t.right.push({startLine:n.right,endLine:n.right+l}),n.right+=r;break;default:throw new Error("Diff type was not defined.")}}}),t},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],n={left:[],right:[]},o=0;o<e.left.length;o++){var i={startRow:e.left[o].startLine-1,endRow:e.left[o].endLine,type:"text",className:"codeMarker"};n.left.push(i)}for(o=0;o<e.right.length;o++)i={startRow:e.right[o].startLine-1,endRow:e.right[o].endLine,type:"text",className:"codeMarker"},n.right.push(i);return t[0]=n.left,t[1]=n.right,t},t.prototype.render=function(){var e=this.diff();return s.createElement(a.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:r.number,editorProps:r.object,enableBasicAutocompletion:r.bool,enableLiveAutocompletion:r.bool,focus:r.bool,fontSize:r.number,height:r.string,highlightActiveLine:r.bool,maxLines:r.number,minLines:r.number,mode:r.string,name:r.string,className:r.string,onLoad:r.func,onPaste:r.func,onScroll:r.func,onChange:r.func,orientation:r.string,readOnly:r.bool,scrollMargin:r.array,setOptions:r.object,showGutter:r.bool,showPrintMargin:r.bool,splits:r.number,style:r.object,tabSize:r.number,theme:r.string,value:r.array,width:r.string,wrapEnabled:r.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(s.Component);t.default=c},95707(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0,t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"],t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"],t.getAceInstance=function(){var e;return"undefined"==typeof window?(globalThis.window={},e=n(80952),delete globalThis.window):window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=n(80952),e},t.debounce=function(e,t){var n=null;return function(){var o=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(o,i)},t)}}},70470(e,t,n){"use strict";var o=n(35549);n(3091).default,n(34038).default,t.Ay=o.default},34038(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(95707),a=(0,s.getAceInstance)(),l=n(80952),c=n(20009),d=n(5556),u=n(51609),h=n(8142),p=n(16762),g=function(e){function t(t){var n=e.call(this,t)||this;return s.editorEvents.forEach(function(e){n[e]=n[e].bind(n)}),n.debounce=s.debounce,n}return i(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,o=t.onBeforeLoad,i=t.mode,r=t.focus,l=t.theme,d=t.fontSize,u=t.value,h=t.defaultValue,g=t.cursorStart,m=t.showGutter,f=t.wrapEnabled,b=t.showPrintMargin,v=t.scrollMargin,y=void 0===v?[0,0,0,0]:v,k=t.keyboardHandler,x=t.onLoad,w=t.commands,_=t.annotations,C=t.markers,S=t.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(l)),o&&o(a);var E=Object.keys(this.props.editorProps),M=new c.Split(this.editor.container,"ace/theme/".concat(l),S);this.editor.env.split=M,this.splitEditor=M.getEditor(0),this.split=M,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var $=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),M.forEach(function(t,n){for(var o=0;o<E.length;o++)t[E[o]]=e.props.editorProps[E[o]];var r=p(h,n),c=p(u,n,"");t.session.setUndoManager(new a.UndoManager),t.setTheme("ace/theme/".concat(l)),t.renderer.setScrollMargin(y[0],y[1],y[2],y[3]),t.getSession().setMode("ace/mode/".concat(i)),t.setFontSize(d),t.renderer.setShowGutter(m),t.getSession().setUseWrapMode(f),t.setShowPrintMargin(b),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===r?c:r,g);var v=p(_,n,[]),x=p(C,n,[]);for(t.getSession().setAnnotations(v),x&&x.length>0&&e.handleMarkers(x,t),o=0;o<s.editorOptions.length;o++){var S=s.editorOptions[o];$.hasOwnProperty(S)?t.setOption(S,e.props[S]):e.props[S]&&console.warn("ReaceAce: editor option ".concat(S," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(w)&&w.forEach(function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)}),k&&t.setKeyboardHandler("ace/keyboard/"+k)}),n&&(this.refEditor.className+=" "+n),r&&this.splitEditor.focus();var A=this.editor.env.split;A.setOrientation("below"===this.props.orientation?A.BELOW:A.BESIDE),A.resize(!0),x&&x(A)},t.prototype.componentDidUpdate=function(e){var t=this,n=e,o=this.props,i=this.editor.env.split;if(o.splits!==n.splits&&i.setSplits(o.splits),o.orientation!==n.orientation&&i.setOrientation("below"===o.orientation?i.BELOW:i.BESIDE),i.forEach(function(e,i){o.mode!==n.mode&&e.getSession().setMode("ace/mode/"+o.mode),o.keyboardHandler!==n.keyboardHandler&&(o.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+o.keyboardHandler):e.setKeyboardHandler(null)),o.fontSize!==n.fontSize&&e.setFontSize(o.fontSize),o.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(o.wrapEnabled),o.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(o.showPrintMargin),o.showGutter!==n.showGutter&&e.renderer.setShowGutter(o.showGutter);for(var r=0;r<s.editorOptions.length;r++){var a=s.editorOptions[r];o[a]!==n[a]&&e.setOption(a,o[a])}h(o.setOptions,n.setOptions)||t.handleOptions(o,e);var l=p(o.value,i,"");if(e.getValue()!==l){t.silent=!0;var c=e.session.selection.toJSON();e.setValue(l,o.cursorStart),e.session.selection.fromJSON(c),t.silent=!1}var d=p(o.annotations,i,[]),u=p(n.annotations,i,[]);h(d,u)||e.getSession().setAnnotations(d);var g=p(o.markers,i,[]),m=p(n.markers,i,[]);!h(g,m)&&Array.isArray(g)&&t.handleMarkers(g,e)}),o.className!==n.className){var r=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach(function(e){var t=r.indexOf(e);r.splice(t,1)}),this.refEditor.className=" "+o.className+" "+r.join(" ")}o.theme!==n.theme&&i.setTheme("ace/theme/"+o.theme),o.focus&&!n.focus&&this.splitEditor.focus(),o.height===this.props.height&&o.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getValue())}),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getSelection())}),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach(function(e){t.push(e.getSelection())}),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var n=Object.keys(e.setOptions),o=0;o<n.length;o++)t.setOption(n[o],e.setOptions[n[o]])},t.prototype.handleMarkers=function(e,t){var n=t.getSession().getMarkers(!0);for(var o in n)n.hasOwnProperty(o)&&t.getSession().removeMarker(n[o].id);for(var o in n=t.getSession().getMarkers(!1))n.hasOwnProperty(o)&&t.getSession().removeMarker(n[o].id);e.forEach(function(e){var n=e.startRow,o=e.startCol,i=e.endRow,r=e.endCol,s=e.className,a=e.type,c=e.inFront,d=void 0!==c&&c,u=new l.Range(n,o,i,r);t.getSession().addMarker(u,s,a,d)})},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,o=e.height,i=e.style,s=r({width:n,height:o},i);return u.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={className:d.string,debounceChangePeriod:d.number,defaultValue:d.arrayOf(d.string),focus:d.bool,fontSize:d.oneOfType([d.number,d.string]),height:d.string,mode:d.string,name:d.string,onBlur:d.func,onChange:d.func,onCopy:d.func,onFocus:d.func,onInput:d.func,onLoad:d.func,onPaste:d.func,onScroll:d.func,orientation:d.string,showGutter:d.bool,splits:d.number,theme:d.string,value:d.arrayOf(d.string),width:d.string,onSelectionChange:d.func,onCursorChange:d.func,onBeforeLoad:d.func,minLines:d.number,maxLines:d.number,readOnly:d.bool,highlightActiveLine:d.bool,tabSize:d.number,showPrintMargin:d.bool,cursorStart:d.number,editorProps:d.object,setOptions:d.object,style:d.object,scrollMargin:d.array,annotations:d.array,markers:d.array,keyboardHandler:d.string,wrapEnabled:d.bool,enableBasicAutocompletion:d.oneOfType([d.bool,d.array]),enableLiveAutocompletion:d.oneOfType([d.bool,d.array]),commands:d.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(u.Component);t.default=g},29537(e,t,n){"use strict";t.o$=void 0;var o=r(n(51609)),i=r(n(58527));function r(e){return e&&e.__esModule?e:{default:e}}t.o$=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.default.createElement("div",{style:e.picker})}},46617(e,t,n){"use strict";t.uy=void 0;var o=r(n(51609)),i=r(n(58527));function r(e){return e&&e.__esModule?e:{default:e}}t.uy=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.default.createElement("div",{style:e.picker})}},73477(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(51609),s=d(r),a=d(n(58527)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(46412)),c=d(n(25413));function d(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=t.Alpha=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),o.handleChange=function(e){var t=l.calculateChange(e,o.props.hsl,o.props.direction,o.props.a,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleChange),window.removeEventListener("mouseup",o.handleMouseUp)},u(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,a.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return s.default.createElement("div",{style:n.alpha},s.default.createElement("div",{style:n.checkboard},s.default.createElement(c.default,{renderers:this.props.renderers})),s.default.createElement("div",{style:n.gradient}),s.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.default.createElement("div",{style:n.pointer},this.props.pointer?s.default.createElement(this.props.pointer,this.props):s.default.createElement("div",{style:n.slider}))))}}]),t}(r.PureComponent||r.Component);t.default=h},25413(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=n(51609),r=l(i),s=l(n(58527)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(27218));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Checkboard=function(e){var t=e.white,n=e.grey,l=e.size,c=e.renderers,d=e.borderRadius,u=e.boxShadow,h=e.children,p=(0,s.default)({default:{grid:{borderRadius:d,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+a.get(t,n,l,c.canvas)+") center left"}}});return(0,i.isValidElement)(h)?r.default.cloneElement(h,o({},h.props,{style:o({},h.props.style,p.grid)})):r.default.createElement("div",{style:p.grid})};c.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=c},68582(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(51609),s=c(r),a=c(n(38221)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(26195));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(l.simpleCheckForValidColor(e)){var o=l.toState(e,e.h||t.state.oldHue);t.setState(o),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,o,n),t.props.onChange&&t.props.onChange(o,n)}},t.handleSwatchHover=function(e,n){if(l.simpleCheckForValidColor(e)){var o=l.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(o,n)}},t.state=o({},l.toState(e.color,0)),t.debounce=(0,a.default)(function(e,t,n){e(t,n)},100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),i(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),s.default.createElement(e,o({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return o({},l.toState(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=o({},e.propTypes),t.defaultProps=o({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=d},6593(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(51609),r=a(i),s=a(n(58527));function a(e){return e&&e.__esModule?e:{default:e}}var l=[38,40],c=1,d=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,o=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(o)&&(t=e.keyCode,l.indexOf(t)>-1)){var i=n.getArrowOffset(),r=38===e.keyCode?o+i:o-i;n.setUpdatedValue(r,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+c++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,s.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.default.createElement("div",{style:t.wrap},r.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(i.PureComponent||i.Component);t.default=d},64899(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(51609),r=l(i),s=l(n(58527)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(89278));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=t.Hue=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),o.handleChange=function(e){var t=a.calculateChange(e,o.props.direction,o.props.hsl,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},c(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,o=(0,s.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r.default.createElement("div",{style:o.hue},r.default.createElement("div",{className:"hue-"+n,style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r.default.createElement("div",{style:o.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:o.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=d},69657(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var o=a(n(51609)),i=a(n(5556)),r=a(n(58527)),s=a(n(55364));function a(e){return e&&e.__esModule?e:{default:e}}var l=t.Raised=function(e){var t=e.zDepth,n=e.radius,i=e.background,a=e.children,l=e.styles,c=void 0===l?{}:l,d=(0,r.default)((0,s.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},c),{"zDepth-1":1===t});return o.default.createElement("div",{style:d.wrap},o.default.createElement("div",{style:d.bg}),o.default.createElement("div",{style:d.content},a))};l.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},l.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=l},4749(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(51609),r=c(i),s=c(n(58527)),a=c(n(7350)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(98222));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,l.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,a.default)(function(e,t,n){e(t,n)},50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,o=t.white,i=t.black,a=t.pointer,l=t.circle,c=(0,s.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:l}},{custom:!!this.props.style});return r.default.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r.default.createElement("div",{style:c.white,className:"saturation-white"},r.default.createElement("div",{style:c.black,className:"saturation-black"}),r.default.createElement("div",{style:c.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:c.circle}))))}}]),t}(i.PureComponent||i.Component);t.default=d},28333(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=l(n(51609)),r=l(n(58527)),s=n(74572),a=l(n(25413));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Swatch=function(e){var t=e.color,n=e.style,s=e.onClick,l=void 0===s?function(){}:s,c=e.onHover,d=e.title,u=void 0===d?t:d,h=e.children,p=e.focus,g=e.focusStyle,m=void 0===g?{}:g,f="transparent"===t,b=(0,r.default)({default:{swatch:o({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,p?m:{})}}),v={};return c&&(v.onMouseOver=function(e){return c(t,e)}),i.default.createElement("div",o({style:b.swatch,onClick:function(e){return l(t,e)},title:u,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&l(t,e)}},v),h,f&&i.default.createElement(a.default,{borderRadius:b.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,s.handleFocus)(c)},2825(e,t,n){"use strict";var o=n(73477);Object.defineProperty(t,"ry",{enumerable:!0,get:function(){return l(o).default}});var i=n(25413);Object.defineProperty(t,"xu",{enumerable:!0,get:function(){return l(i).default}});var r=n(6593);Object.defineProperty(t,"jc",{enumerable:!0,get:function(){return l(r).default}});var s=n(64899);Object.defineProperty(t,"RG",{enumerable:!0,get:function(){return l(s).default}});n(69657);var a=n(4749);Object.defineProperty(t,"VI",{enumerable:!0,get:function(){return l(a).default}});n(68582),n(28333);function l(e){return e&&e.__esModule?e:{default:e}}},46412(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,o,i){var r=i.clientWidth,s=i.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=a-(i.getBoundingClientRect().left+window.pageXOffset),d=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var u;if(u=d<0?0:d>s?1:Math.round(100*d/s)/100,t.a!==u)return{h:t.h,s:t.s,l:t.l,a:u,source:"rgb"}}else{var h;if(o!==(h=c<0?0:c>r?1:Math.round(100*c/r)/100))return{h:t.h,s:t.s,l:t.l,a:h,source:"rgb"}}return null}},27218(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},o=t.render=function(e,t,n,o){if("undefined"==typeof document&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=2*n,i.height=2*n;var r=i.getContext("2d");return r?(r.fillStyle=e,r.fillRect(0,0,i.width,i.height),r.fillStyle=t,r.fillRect(0,0,n,n),r.translate(n,n),r.fillRect(0,0,n,n),i.toDataURL()):null};t.get=function(e,t,i,r){var s=e+"-"+t+"-"+i+(r?"-server":"");if(n[s])return n[s];var a=o(e,t,i,r);return n[s]=a,a}},26195(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isvalidColorString=t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var o=r(n(76135)),i=r(n(6535));function r(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,o.default)(["r","g","b","a","h","s","l","v"],function(o){e[o]&&(t+=1,isNaN(e[o])||(n+=1),"s"===o||"l"===o)&&/^\d+%$/.test(e[o])&&(n+=1)}),t===n&&e};var s=t.toState=function(e,t){var n=e.hex?(0,i.default)(e.hex):(0,i.default)(e),o=n.toHsl(),r=n.toHsv(),s=n.toRgb(),a=n.toHex();return 0===o.s&&(o.h=t||0,r.h=t||0),{hsl:o,hex:"000000"===a&&0===s.a?"transparent":"#"+a,rgb:s,hsv:r,oldHue:e.h||t||o.h,source:e.source}};t.isValidHex=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,i.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=s(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},t.isvalidColorString=function(e,t){var n=e.replace("°","");return(0,i.default)(t+" ("+n+")")._ok}},89278(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,o){var i=o.clientWidth,r=o.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,a="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(o.getBoundingClientRect().left+window.pageXOffset),c=a-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var d=void 0;if(d=c<0?359:c>r?0:360*(-100*c/r+100)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u=void 0;if(u=l<0?0:l>i?359:100*l/i*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},74572(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=(o=n(51609))&&o.__esModule?o:{default:o};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return t=n=a(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(r))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),r(o,[{key:"render",value:function(){return s.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},s.default.createElement(e,i({},this.props,this.state)))}}]),o}(s.default.Component)}},98222(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n){var o=n.getBoundingClientRect(),i=o.width,r=o.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,a="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=a-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),c<0?c=0:c>r&&(c=r);var d=l/i,u=1-c/r;return{h:t.h,s:d,v:u,a:t.a,source:"hsv"}}},21020(e,t,n){"use strict";var o=n(51609),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,r={},c=null,d=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:i,type:e,key:c,ref:d,props:r,_owner:a.current}}t.Fragment=r,t.jsx=c,t.jsxs=c},74848(e,t,n){"use strict";e.exports=n(21020)},26892(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var o,i=(o=n(33215))&&o.__esModule?o:{default:o},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},a=t.autoprefix=function(e){var t={};return(0,i.default)(e,function(e,n){var o={};(0,i.default)(e,function(e,t){var n=s[t];n?o=r({},o,n(e)):o[t]=e}),t[n]=o}),t};t.default=a},75268(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=(o=n(51609))&&o.__esModule?o:{default:o};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,a,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return a=l=s(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(d))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return r.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},r.default.createElement(e,i({},l.props,l.state)))},s(l,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o}(r.default.Component)};t.default=a},16686(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=(o=n(51609))&&o.__esModule?o:{default:o};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,a,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return a=l=s(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(d))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return r.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},r.default.createElement(e,i({},l.props,l.state)))},s(l,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o}(r.default.Component)};t.default=a},99265(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var o=a(n(85015)),i=a(n(33215)),r=a(n(11331)),s=a(n(55378));function a(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,s.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,r.default)(t)?(0,i.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,o.default)(t)&&n.push(t)}),n};t.default=l},58527(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var o=c(n(99265)),i=c(n(76203)),r=c(n(26892)),s=c(n(16686)),a=c(n(75268)),l=c(n(62693));function c(e){return e&&e.__esModule?e:{default:e}}t.hover=s.default,t.handleHover=s.default,t.handleActive=a.default,t.loop=l.default;var d=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=(0,o.default)(n),l=(0,i.default)(e,a);return(0,r.default)(l)};t.default=d},62693(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},o=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&o("first-child"),e===t-1&&o("last-child"),(0===e||e%2==0)&&o("even"),1===Math.abs(e%2)&&o("odd"),o("nth-child",e),n}},76203(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var o=s(n(33215)),i=s(n(88055)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function s(e){return e&&e.__esModule?e:{default:e}}var a=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map(function(t){var i=e[t];return i&&(0,o.default)(i,function(e,t){n[t]||(n[t]={}),n[t]=r({},n[t],i[t])}),t}),n};t.default=a},51609(e){"use strict";e.exports=window.React},50477(){},46942(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},6535(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}var t=/^\s+/,n=/\s+$/;function o(i,r){if(r=r||{},(i=i||"")instanceof o)return i;if(!(this instanceof o))return new o(i,r);var s=function(o){var i={r:0,g:0,b:0},r=1,s=null,a=null,l=null,c=!1,d=!1;return"string"==typeof o&&(o=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var o,i=!1;if(k[e])e=k[e],i=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(o=O.rgb.exec(e))?{r:o[1],g:o[2],b:o[3]}:(o=O.rgba.exec(e))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=O.hsl.exec(e))?{h:o[1],s:o[2],l:o[3]}:(o=O.hsla.exec(e))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=O.hsv.exec(e))?{h:o[1],s:o[2],v:o[3]}:(o=O.hsva.exec(e))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=O.hex8.exec(e))?{r:S(o[1]),g:S(o[2]),b:S(o[3]),a:A(o[4]),format:i?"name":"hex8"}:(o=O.hex6.exec(e))?{r:S(o[1]),g:S(o[2]),b:S(o[3]),format:i?"name":"hex"}:(o=O.hex4.exec(e))?{r:S(o[1]+""+o[1]),g:S(o[2]+""+o[2]),b:S(o[3]+""+o[3]),a:A(o[4]+""+o[4]),format:i?"name":"hex8"}:!!(o=O.hex3.exec(e))&&{r:S(o[1]+""+o[1]),g:S(o[2]+""+o[2]),b:S(o[3]+""+o[3]),format:i?"name":"hex"}}(o)),"object"==e(o)&&(D(o.r)&&D(o.g)&&D(o.b)?(u=o.r,h=o.g,p=o.b,i={r:255*_(u,255),g:255*_(h,255),b:255*_(p,255)},c=!0,d="%"===String(o.r).substr(-1)?"prgb":"rgb"):D(o.h)&&D(o.s)&&D(o.v)?(s=M(o.s),a=M(o.v),i=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var o=Math.floor(e),i=e-o,r=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=o%6;return{r:255*[n,s,r,r,a,n][l],g:255*[a,n,n,s,r,r][l],b:255*[r,r,a,n,n,s][l]}}(o.h,s,a),c=!0,d="hsv"):D(o.h)&&D(o.s)&&D(o.l)&&(s=M(o.s),l=M(o.l),i=function(e,t,n){var o,i,r;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)o=i=r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=s(l,a,e+1/3),i=s(l,a,e),r=s(l,a,e-1/3)}return{r:255*o,g:255*i,b:255*r}}(o.h,s,l),c=!0,d="hsl"),o.hasOwnProperty("a")&&(r=o.a)),r=w(r),{ok:c,format:o.format||d,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:r};var u,h,p}(i);this._originalInput=i,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||s.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=s.ok}function i(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var o,i,r=Math.max(e,t,n),s=Math.min(e,t,n),a=(r+s)/2;if(r==s)o=i=0;else{var l=r-s;switch(i=a>.5?l/(2-r-s):l/(r+s),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:i,l:a}}function r(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var o,i,r=Math.max(e,t,n),s=Math.min(e,t,n),a=r,l=r-s;if(i=0===r?0:l/r,r==s)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:i,v:a}}function s(e,t,n,o){var i=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function a(e,t,n,o){return[E($(o)),E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s-=t/100,n.s=C(n.s),o(n)}function c(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s+=t/100,n.s=C(n.s),o(n)}function d(e){return o(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l+=t/100,n.l=C(n.l),o(n)}function h(e,t){t=0===t?0:t||10;var n=o(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),o(n)}function p(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l-=t/100,n.l=C(n.l),o(n)}function g(e,t){var n=o(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,o(n)}function m(e){var t=o(e).toHsl();return t.h=(t.h+180)%360,o(t)}function f(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=o(e).toHsl(),i=[o(e)],r=360/t,s=1;s<t;s++)i.push(o({h:(n.h+s*r)%360,s:n.s,l:n.l}));return i}function b(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+72)%360,s:t.s,l:t.l}),o({h:(n+216)%360,s:t.s,l:t.l})]}function v(e,t,n){t=t||6,n=n||30;var i=o(e).toHsl(),r=360/n,s=[o(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,s.push(o(i));return s}function y(e,t){t=t||6;for(var n=o(e).toHsv(),i=n.h,r=n.s,s=n.v,a=[],l=1/t;t--;)a.push(o({h:i,s:r,v:s})),s=(s+l)%1;return a}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=w(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return s(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,i){var r=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16)),E($(o))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[s(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+a(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=o(e);n="#"+a(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(f,[3])},tetrad:function(){return this._applyCombination(f,[4])}},o.fromRatio=function(t,n){if("object"==e(t)){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]="a"===r?t[r]:M(t[r]));t=i}return o(t,n)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},o.mix=function(e,t,n){n=0===n?0:n||50;var i=o(e).toRgb(),r=o(t).toRgb(),s=n/100;return o({r:(r.r-i.r)*s+i.r,g:(r.g-i.g)*s+i.g,b:(r.b-i.b)*s+i.b,a:(r.a-i.a)*s+i.a})},o.readability=function(e,t){var n=o(e),i=o(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},o.isReadable=function(e,t,n){var i,r,s,a,l,c=o.readability(e,t);switch(r=!1,(s=n,"AA"!==(a=((s=s||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(l=(s.size||"small").toLowerCase())&&"large"!==l&&(l="small"),i={level:a,size:l}).level+i.size){case"AAsmall":case"AAAlarge":r=c>=4.5;break;case"AAlarge":r=c>=3;break;case"AAAsmall":r=c>=7}return r},o.mostReadable=function(e,t,n){var i,r,s,a,l=null,c=0;r=(n=n||{}).includeFallbackColors,s=n.level,a=n.size;for(var d=0;d<t.length;d++)(i=o.readability(e,t[d]))>c&&(c=i,l=o(t[d]));return o.isReadable(e,l,{level:s,size:a})||!r?l:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var k=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=o.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(k);function w(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function S(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function $(e){return Math.round(255*parseFloat(e)).toString(16)}function A(e){return S(e)/255}var T,R,L,O=(R="[\\s|\\(]+("+(T="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",L="[\\s|\\(]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",{CSS_UNIT:new RegExp(T),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+L),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+L),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+L),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function D(e){return!!O.CSS_UNIT.exec(e)}return o}()}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(51609),t=n.n(e);const o=window.wp.element,i=window.wp.blockEditor,r=window.wp.components,s=window.wp.compose,a=window.wp.i18n,l=window.wp.hooks,c=window.wp.data,d=window.wp.blocks,u=window.lodash,h=(e,t,n=!0)=>{const o=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};let i={};void 0!==o[t]&&"object"==typeof o[t]&&(i=o[t]);const r=kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin";return void 0===i[e]?n:"all"===i[e]||"contributor"===i[e]&&("contributor"===r||"author"===r||"editor"===r||"admin"===r)||"author"===i[e]&&("author"===r||"editor"===r||"admin"===r)||"editor"===i[e]&&("editor"===r||"admin"===r)||"admin"===i[e]&&"admin"===r},p=(0,s.createHigherOrderComponent)(t=>n=>{if(!n.isSelected)return(0,e.createElement)(t,{...n});const{hasAnimation:s,openTab:l}=(0,c.useSelect)(e=>{const t=e(d.store).hasBlockSupport(n.name,"ktanimate");let o="general";return t&&(o="function"==typeof e("kadenceblocks/data").getOpenSidebarTabKey?e("kadenceblocks/data").getOpenSidebarTabKey(n.name.replace("kadence/","")+e("core/block-editor").getSelectedBlockClientId()):"advanced"),{hasAnimation:t,openTab:o}},[]);if(s&&"advanced"==l&&h("show","kadence/aos")){const{attributes:{kadenceAOSOptions:s,kadenceAnimation:l,uniqueID:c},setAttributes:u}=n,h=(0,d.hasBlockSupport)(n.name,"ktanimatereveal"),p=(0,d.hasBlockSupport)(n.name,"ktanimateswipe"),g=(0,d.hasBlockSupport)(n.name,"ktanimateparts"),m=(0,d.hasBlockSupport)(n.name,"ktanimatepartsoptions"),f=(0,d.hasBlockSupport)(n.name,"ktanimatepreview"),b=["linear","ease","ease-in","ease-out","ease-in-out","ease-in-back","ease-out-back","ease-in-out-back","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart"],v=[{value:"",label:(0,a.__)("None","kadence-blocks-pro")},{value:"fade",label:(0,a.__)("Fade","kadence-blocks-pro")},{value:"fade-up",label:(0,a.__)("Fade Up","kadence-blocks-pro")},{value:"fade-down",label:(0,a.__)("Fade Down","kadence-blocks-pro")},{value:"fade-left",label:(0,a.__)("Fade Left","kadence-blocks-pro")},{value:"fade-right",label:(0,a.__)("Fade Right","kadence-blocks-pro")},{value:"fade-up-right",label:(0,a.__)("Fade Up Right","kadence-blocks-pro")},{value:"fade-up-left",label:(0,a.__)("Fade Up Left","kadence-blocks-pro")},{value:"fade-down-right",label:(0,a.__)("Fade Down Right","kadence-blocks-pro")},{value:"fade-down-left",label:(0,a.__)("Fade Down Left","kadence-blocks-pro")},{value:"flip-up",label:(0,a.__)("Flip Up","kadence-blocks-pro")},{value:"flip-down",label:(0,a.__)("Flip Down","kadence-blocks-pro")},{value:"flip-left",label:(0,a.__)("Flip Left","kadence-blocks-pro")},{value:"flip-right",label:(0,a.__)("Flip Right","kadence-blocks-pro")},{value:"slide-up",label:(0,a.__)("Slide Up","kadence-blocks-pro")},{value:"slide-down",label:(0,a.__)("Slide Down","kadence-blocks-pro")},{value:"slide-left",label:(0,a.__)("Slide Left","kadence-blocks-pro")},{value:"slide-right",label:(0,a.__)("Slide Right","kadence-blocks-pro")},{value:"zoom-in",label:(0,a.__)("Zoom In","kadence-blocks-pro")},{value:"zoom-in-up",label:(0,a.__)("Zoom In Up","kadence-blocks-pro")},{value:"zoom-in-down",label:(0,a.__)("Zoom In Down","kadence-blocks-pro")},{value:"zoom-in-left",label:(0,a.__)("Zoom In Left","kadence-blocks-pro")},{value:"zoom-in-right",label:(0,a.__)("Zoom In Right","kadence-blocks-pro")},{value:"zoom-out",label:(0,a.__)("Zoom Out","kadence-blocks-pro")},{value:"zoom-out-up",label:(0,a.__)("Zoom Out Up","kadence-blocks-pro")},{value:"zoom-out-down",label:(0,a.__)("Zoom Out Down","kadence-blocks-pro")},{value:"zoom-out-left",label:(0,a.__)("Zoom Out Left","kadence-blocks-pro")},{value:"zoom-out-right",label:(0,a.__)("Zoom Out Right","kadence-blocks-pro")}],y=[{value:"reveal-up",label:(0,a.__)("Slide Reveal Up","kadence-blocks-pro")},{value:"reveal-down",label:(0,a.__)("Slide Reveal Down","kadence-blocks-pro")},{value:"reveal-left",label:(0,a.__)("Slide Reveal Left","kadence-blocks-pro")},{value:"reveal-right",label:(0,a.__)("Slide Reveal Right","kadence-blocks-pro")}],k=[{value:"swipe-up",label:(0,a.__)("Cover Swipes Up","kadence-blocks-pro")},{value:"swipe-down",label:(0,a.__)("Cover Swipes Down","kadence-blocks-pro")},{value:"swipe-left",label:(0,a.__)("Cover Swipes Left","kadence-blocks-pro")},{value:"swipe-right",label:(0,a.__)("Cover Swipes Right","kadence-blocks-pro")}],x=[{value:"fade-out-in",label:(0,a.__)("Fade Opposite Sides In","kadence-blocks-pro")},{value:"fade-center-out",label:(0,a.__)("Fade Center Out","kadence-blocks-pro")},{value:"slide-out-in",label:(0,a.__)("Slide Opposite Sides In","kadence-blocks-pro")},{value:"slide-center-out",label:(0,a.__)("Slide Center Out","kadence-blocks-pro")}],w=h?v.concat(y):v,_=m?w.concat(x):w,C=p?_.concat(k):_,S=b.map(function(e){return{label:e,value:e}}),E=()=>{const e=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document;let t=e.getElementById("animate-id"+c);t||(t=e.getElementById("block-"+n.clientId)),t&&(!m||"fade-out-in"!==l&&"fade-center-out"!==l&&"slide-out-in"!==l&&"slide-center-out"!==l?(t.setAttribute("data-aos-duration",""),t.classList.remove("aos-animate"),setTimeout(function(){t.classList.add("aos-animate"),t.setAttribute("data-aos-duration",s[0].duration?s[0].duration:"400")},300)):t.querySelectorAll(".aos-animate").forEach(function(e){e.setAttribute("data-aos-duration",""),e.classList.remove("aos-animate"),setTimeout(function(){e.classList.add("aos-animate"),e.setAttribute("data-aos-duration",s[0].duration?s[0].duration:"400")},300)}))};S.unshift({label:(0,a.__)("Select","kadence-blocks-pro"),value:""});const M=e=>{const t=s.map((t,n)=>(0===n&&(t={...t,...e}),t));u({kadenceAOSOptions:t})};return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(i.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Animate on Scroll","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Animation","kadence-blocks-pro"),value:l,options:C,onChange:e=>u({kadenceAnimation:e})}),l&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Animation Duration","kadence-blocks-pro"),value:s&&s[0]&&s[0].duration?s[0].duration:"",onChange:e=>M({duration:e}),allowReset:!0,min:50,max:3e3,step:50}),(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Animation Ease","kadence-blocks-pro"),value:s&&s[0]&&s[0].easing?s[0].easing:"",options:S,onChange:e=>M({easing:e})}),(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Start Delay","kadence-blocks-pro"),value:s&&s[0]&&s[0].delay?s[0].delay:"",onChange:e=>M({delay:e}),min:50,allowReset:!0,max:3e3,step:50}),(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Only show once per page load?","kadence-blocks-pro"),value:s&&s[0]&&void 0!==s[0].once&&""!==s[0].once?s[0].once:"",options:[{value:"",label:(0,a.__)("Default")},{value:!0,label:(0,a.__)("True")},{value:!1,label:(0,a.__)("False")}],onChange:e=>M({once:e})}),(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Pixel offset for when animation triggers","kadence-blocks-pro"),value:s&&s[0]&&s[0].offset?s[0].offset:"",onChange:e=>M({offset:e}),allowReset:!0,min:-300,max:300,step:1}),l&&g&&(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Offset Delay for each part","kadence-blocks-pro"),value:s&&s[0]&&s[0].delayOffset?s[0].delayOffset:"",onChange:e=>M({delayOffset:e}),allowReset:!0,min:50,max:3e3,step:50}),l&&f&&(0,e.createElement)(r.IconButton,{className:"components-toolbar__control",label:(0,a.__)("Play Animation","kadence-blocks-pro"),icon:"controls-play",onClick:E})))))}return(0,e.createElement)(t,{...n})},"withInspectorControl");(0,l.addFilter)("editor.BlockEdit","kadence/animateonscroll",p),(0,l.addFilter)("blocks.getSaveContent.extraProps","kadence/animateonscroll",function(e,t,n){return(0,d.hasBlockSupport)(t,"ktanimateadd")&&n.kadenceAnimation&&((0,u.assign)(e,{"data-aos":n.kadenceAnimation}),n.kadenceAOSOptions&&n.kadenceAOSOptions[0]&&(n.kadenceAOSOptions[0].duration||n.kadenceAOSOptions[0].delay||n.kadenceAOSOptions[0].once||n.kadenceAOSOptions[0].easing||n.kadenceAOSOptions[0].offset)&&(0,u.assign)(e,{"data-aos-offset":n.kadenceAOSOptions[0].offset?n.kadenceAOSOptions[0].offset:void 0,"data-aos-duration":n.kadenceAOSOptions[0].duration?n.kadenceAOSOptions[0].duration:void 0,"data-aos-delay":n.kadenceAOSOptions[0].delay?n.kadenceAOSOptions[0].delay:void 0,"data-aos-easing":n.kadenceAOSOptions[0].easing?n.kadenceAOSOptions[0].easing:void 0,"data-aos-once":void 0!==n.kadenceAOSOptions[0].once&&""!==n.kadenceAOSOptions[0].once?n.kadenceAOSOptions[0].once:void 0})),e});const g=window.wp.apiFetch;var m=n.n(g),f=n(21396),b=n.n(f);const v={postId:"",fetchResponses:{}},y={*setContextPostID(e){if(!(yield{type:"SET_PREVIEW_POST_ID_FOR_KADENCE",postId:e}))return{type:"SET_PREVIEW_POST_ID",postId:e}},setFetchResponse:(e,t)=>({type:"SET_FETCH_RESPONSE",path:e,response:t}),setBatchResponses:e=>({type:"SET_BATCH_RESPONSES",responses:e}),fetchFromAPI:e=>({type:"FETCH_FROM_API",path:e})},k={SET_PREVIEW_POST_ID_FOR_KADENCE:(0,c.createRegistryControl)(e=>function({postId:t}){const n=e.dispatch("kadencewootemplates/data");if(n)return n.set_post(t),!0;const o=e.dispatch("kadence/elements-data");return!!o&&(o.set_post(t),!0)}),FETCH_FROM_API:e=>m()({path:e.path})},x=(0,c.createRegistrySelector)(e=>t=>{const n=e("kadencewootemplates/data");if(n)return n.getPostID();const o=e("kadence/elements-data");if(o)return o.getPostID();const i=e("core/editor");return i?i.getCurrentPostId():t.postId}),w=(0,c.createReduxStore)("kadenceblockspro/data",{reducer(e=v,t){switch(t.type){case"SET_PREVIEW_POST_ID":return{...e,postID:t.postId};case"SET_FETCH_RESPONSE":const n=b().MD5(t.path).toString();return{...e,fetchResponses:{...e.fetchResponses,[n]:t.response}};case"SET_BATCH_RESPONSES":return{...e,fetchResponses:{...e.fetchResponses,...t.responses}};default:return e}},actions:y,controls:k,selectors:{getContextPostID:x,storeFetch(e,t){const{fetchResponses:n}=e;return n[b().MD5(t).toString()]},getCachedResponse(e,t){const n=b().MD5(JSON.stringify(t)).toString();return e.fetchResponses[n]}},resolvers:{*storeFetch(e){const t=yield y.fetchFromAPI(e);return y.setFetchResponse(e,t)}}});(0,c.register)(w);var _=n(74848);const C=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,_.jsx)("path",{d:"M4 5.002s.003-.095.213-.288c.245-.225.671-.483 1.306-.73C7.018 3.399 9.34 3 12 3s4.982.399 6.482.984c.634.247 1.061.505 1.306.73.205.189.212.281.212.288 0 .003-.007.095-.213.284-.245.225-.671.483-1.306.73C16.982 6.601 14.66 7 12 7s-4.982-.399-6.482-.984c-.634-.247-1.061-.505-1.306-.73C4.004 5.094 4 5.002 4 5.002zm16 9.53v4.471a.779.779 0 01-.217.291c-.245.225-.671.482-1.303.728-1.495.582-3.809.978-6.48.978s-4.985-.396-6.48-.978c-.633-.246-1.058-.503-1.303-.728a.865.865 0 01-.199-.242l-.006-4.514c.248.126.51.242.782.348C6.591 15.585 9.171 16 12 16s5.409-.415 7.206-1.114c.277-.108.543-.225.794-.354zm0-7.005v4.476a.779.779 0 01-.217.291c-.245.225-.671.482-1.303.728-1.495.582-3.809.978-6.48.978s-4.985-.396-6.48-.978c-.633-.246-1.058-.503-1.303-.728a.865.865 0 01-.199-.242 1.109 1.109 0 00-.009-.117l-.005-4.407c.248.128.513.244.788.352C6.593 8.582 9.18 9 12 9s5.407-.418 7.208-1.12A8.69 8.69 0 0020 7.527zM2 5v14c0 .058.002.116.007.174.057.665.425 1.197.857 1.594.498.457 1.175.824 1.93 1.118C6.591 22.585 9.171 23 12 23s5.409-.415 7.206-1.114c.755-.294 1.432-.661 1.93-1.118.432-.397.8-.929.857-1.594.005-.058.007-.116.007-.174V5c0-.056-.002-.112-.007-.168-.055-.664-.422-1.195-.852-1.59-.498-.459-1.177-.827-1.933-1.122C17.407 1.418 14.82 1 12 1s-5.407.418-7.208 1.12c-.756.295-1.435.664-1.933 1.122-.43.395-.797.927-.852 1.59A1.887 1.887 0 002 5z"})});var S=n(46942),E=n.n(S);const{apiFetch:M}=wp,{addQueryArgs:$}=wp.url,{decodeEntities:A}=wp.htmlEntities,T=({text:e="",highlight:t=""})=>{const n=t.trim();if(!n)return e;const i=new RegExp(`(${(0,u.escapeRegExp)(n)})`,"gi");return(0,o.createInterpolateElement)(e.replace(i,"<mark>$&</mark>"),{mark:(0,_.jsx)("mark",{})})},R=window.wp.primitives,L=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),O=(0,e.createElement)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(R.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"})),{UP:D,DOWN:N,ENTER:j,TAB:I}=wp.keycodes,{withInstanceId:z,withSafeTimeout:F,compose:B}=wp.compose;class P extends o.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectPost=this.selectPost.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.autocompleteRef=e.autocompleteRef||(0,o.createRef)(),this.inputRef=(0,o.createRef)(),this.updateSuggestions=(0,u.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={search:"",suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:"",isEditing:!1}}updateSuggestions(e=""){this.setState({selectedSuggestion:null,loading:!0}),e||this.setState({showSuggestions:!1});const t=function(e,t=!1){const n=[];return n.push(M({path:$("/wp/v2/search",{search:e,per_page:20,type:"post"})}).catch(()=>[])),Promise.all(n).then(e=>{var n=(0,u.map)((0,u.flatten)(e).slice(0,20),e=>({id:e.id,url:e.url,title:A(e.title)||(0,a.__)("(no title)"),type:e.subtype||e.type}));if(t){const e={id:"options",url:"",title:"Options Table",type:"options"};n.splice(2,0,e)}return n})}(e,!!this.props.addOptionResult&&this.props.onChange);t.then(e=>{this.suggestionsRequest===t&&this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length})}).catch(()=>{this.suggestionsRequest===t&&this.setState({loading:!1})}),this.suggestionsRequest=t}onChange(e){const t=e.target.value;this.setState({search:t}),this.updateSuggestions(t.trim())}onFocus(){const{suggestions:e,search:t}=this.state;!t||this.loading||e&&e.length||this.updateSuggestions(t.trim())}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:i}=this.state;if(!t||!o.length||i){switch(e.keyCode){case D:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case N:this.state.search.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.state.search.length,this.state.search.length))}return}const r=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case D:{e.stopPropagation(),e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case N:{e.stopPropagation(),e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case I:null!==this.state.selectedSuggestion&&(this.selectPost(r),this.props.speak((0,a.__)("Link selected.")));break;case j:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectPost(r))}}selectPost(e){this.props.onChange(e.id,e),this.setState({isEditing:!1,selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectPost(e)}render(){return(0,e.createElement)(o.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:t,className:n,isFullWidth:i,instanceId:s,placeholder:l=(0,a.__)("Type to search","kadence-blocks-pro"),name:c=""}=this.props,{loading:d,showSuggestions:u,selectedSuggestion:h,suggestionsListboxId:p,suggestionOptionIdPrefix:g,isEditing:m}=this.state,f={id:`url-input-control-${s}`,label:t,className:"kb-dynamic-post-selection-name"},b={value:this.state.search,required:!0,className:"kb-dynamic-post-selection-input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-label":(0,a.__)("Post Search"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==h?`${g}-${h}`:void 0,ref:this.inputRef};return(0,e.createElement)(o.Fragment,null,!m&&(0,e.createElement)("div",{className:"kb-dynamic-post-selection-name"},(0,e.createElement)("span",{className:"kb-dynamic-post-selection-title"},c),(0,e.createElement)(r.Button,{icon:L,label:(0,a.__)("Edit","kadence-blocks-pro"),onClick:()=>{this.state.search&&this.updateSuggestions(this.state.search),this.setState({isEditing:!0})}})),m&&(0,e.createElement)(r.BaseControl,{...f},(0,e.createElement)("input",{...b}),d&&(0,e.createElement)(r.Spinner,null),(0,e.createElement)(r.Button,{icon:O,label:(0,a.__)("Clear","kadence-blocks-pro"),onClick:()=>{this.props.onChange("",""),this.setState({isEditing:!1,selectedSuggestion:null,showSuggestions:!1})}})))}renderSuggestions(){const{className:t}=this.props,{showSuggestions:n,suggestions:o,selectedSuggestion:i,suggestionsListboxId:s,suggestionOptionIdPrefix:a,loading:l,search:c}=this.state,d={id:s,ref:this.autocompleteRef,role:"listbox"},u=(e,t)=>({role:"option",tabIndex:"-1",id:`${a}-${t}`,"aria-selected":t===i});return n&&o.length?(0,e.createElement)("div",{className:"kb-dynamic-post-selection-list"},(0,e.createElement)("div",{...d,className:E()("kb-dynamic-post-selection-suggestions",`${t}__suggestions`)},o.map((t,n)=>(0,e.createElement)(r.Button,{...u(0,n),key:t.id,className:E()("kb-dynamic-post-selection-suggestion",{"is-selected":n===i}),onClick:()=>this.handleOnClick(t)},(0,e.createElement)("span",{className:"kb-dynamic-post-selection-search-item-header"},(0,e.createElement)(T,{text:t.title,highlight:c})),(0,e.createElement)("span",{className:"kb-dynamic-post-selection-search-item-type","data-type":t.type},"post_tag"===t.type?"tag":t.type))))):null}}const H=B(F,z)(P),V=(e,t=!0)=>{try{var n=JSON.parse(e);if(n&&"object"==typeof n)return n}catch(e){}return e&&"object"==typeof e?e:!!t&&{}},W=window.wp.url;function U(e,t){var n="";if(e&&"string"==typeof e&&e.includes("|")){const o=e.split("|");if(o&&(n=o?.[0]),!n)return t+e}return e||t}function G(e,t=null,n="",o=""){const{source:i,field:r,custom:s,para:a,before:l,after:c,fallback:d,type:u,relate:h,relcustom:p,showAll:g,useRepeaterContext:m}=e;let f=i||t;if(wp.data.select("core/editor")){const e=wp.data.select("core/editor").getCurrentPostId(),t=kbpData.isKadenceE&&kadenceElementParams.previewPostID;if(!f||f===e&&t)if(t){const e=V(kadenceElementParams.previewPostID);f=e&&e.id?e.id:""}else f||(f=e)}return o=U(o,f),{source:m?o:f,field:r||"",custom:s||"",para:a||"",before:l||"",after:c||"",fallback:d||"",type:u||"",relate:h||"",relcustom:p||"",ignore_source:g||!1,useRepeaterContext:m||!1,repeaterRow:n}}let Z={},q=null,K={};const Y=async()=>{q=null;const e={...Z},t={...K};Z={},K={};const n=Object.keys(e);if(0===n.length)return;const o=[];for(let e=0;e<n.length;e+=50)o.push(n.slice(e,e+50));for(const n of o){const o={};n.forEach(t=>{o[t]=e[t]});try{const e=await m()({path:"/kbp-dynamic/v1/batch",method:"POST",data:o}),i=(0,c.dispatch)("kadenceblockspro/data"),r={};n.forEach(n=>{const o=e[n];void 0!==o?(r[n]=o,t[n]&&t[n].resolve(o)):t[n]&&t[n].reject(new Error("No response for request"))}),Object.keys(r).length>0&&i.setBatchResponses(r)}catch(e){n.forEach(n=>{t[n]&&t[n].reject(e)});const o={};n.forEach(t=>{o[t]={error:e.message}}),(0,c.dispatch)("kadenceblockspro/data").setBatchResponses(o)}}};function X(e){const t=b().MD5(JSON.stringify(e)).toString(),n=(0,c.select)("kadenceblockspro/data").getCachedResponse(e);if(void 0!==n)return Promise.resolve(n);if(K[t])return K[t].promise;let o,i;const r=new Promise((e,t)=>{o=e,i=t});return Z[t]=e,K[t]={promise:r,resolve:o,reject:i},q||(q=setTimeout(Y,100)),r}const{dynamicRenderEndpoint:Q}=window.kadenceDynamicParams,{apiFetch:J}=wp,{decodeEntities:ee}=wp.htmlEntities,{store:te}=wp.coreData,{addQueryArgs:ne}=wp.url,{Component:oe,Fragment:ie}=wp.element,{Spinner:re}=wp.components,se=class extends oe{constructor(){super(...arguments),this.getContent=this.getContent.bind(this),this.state={content:"",loaded:!1},this.debouncedGetContent=(0,u.debounce)(this.getContent.bind(this),200)}componentDidMount(){this.getContent()}getContent(){const{contextPost:e,repeaterRow:t,dynamicSource:n}=this.props;X({...G(this.props,e,t,n),type:"text"}).then(e=>{this.setState({content:e,loaded:!0})}).catch(()=>{this.setState({content:"",loaded:!0})})}componentDidUpdate(e){const t=["after","before","custom","enable","fallback","field","para","relate","relcustom","source","useRepeaterContext"].reduce((t,n)=>t||this.props[n]!==e[n],!1),n=this.props.contextPost!==e.contextPost,o=this.props.dynamicSource!==e.dynamicSource;(t||n||o)&&(this.setState({loaded:!1}),this.debouncedGetContent())}render(){const{content:t,loaded:n}=this.state;return n?(0,e.createElement)(ie,null,t||(0,a.__)("No Content","kadence-blocks-pro")):(0,e.createElement)(re,null)}};function ae(e){return ae="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},ae(e)}function le(e){var t=function(e){if("object"!=ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ae(t)?t:t+""}function ce(e,t,n){return(t=le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function pe(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,s,a=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||pe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},be.apply(null,arguments)}function ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,le(o.key),o)}}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}function ke(e){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ke(e)}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}function we(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _e=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ce=Math.abs,Se=String.fromCharCode,Ee=Object.assign;function Me(e){return e.trim()}function $e(e,t,n){return e.replace(t,n)}function Ae(e,t){return e.indexOf(t)}function Te(e,t){return 0|e.charCodeAt(t)}function Re(e,t,n){return e.slice(t,n)}function Le(e){return e.length}function Oe(e){return e.length}function De(e,t){return t.push(e),e}var Ne=1,je=1,Ie=0,ze=0,Fe=0,Be="";function Pe(e,t,n,o,i,r,s){return{value:e,root:t,parent:n,type:o,props:i,children:r,line:Ne,column:je,length:s,return:""}}function He(e,t){return Ee(Pe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ve(){return Fe=ze>0?Te(Be,--ze):0,je--,10===Fe&&(je=1,Ne--),Fe}function We(){return Fe=ze<Ie?Te(Be,ze++):0,je++,10===Fe&&(je=1,Ne++),Fe}function Ue(){return Te(Be,ze)}function Ge(){return ze}function Ze(e,t){return Re(Be,e,t)}function qe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ke(e){return Ne=je=1,Ie=Le(Be=e),ze=0,[]}function Ye(e){return Be="",e}function Xe(e){return Me(Ze(ze-1,et(91===e?e+2:40===e?e+1:e)))}function Qe(e){for(;(Fe=Ue())&&Fe<33;)We();return qe(e)>2||qe(Fe)>3?"":" "}function Je(e,t){for(;--t&&We()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return Ze(e,Ge()+(t<6&&32==Ue()&&32==We()))}function et(e){for(;We();)switch(Fe){case e:return ze;case 34:case 39:34!==e&&39!==e&&et(Fe);break;case 40:41===e&&et(e);break;case 92:We()}return ze}function tt(e,t){for(;We()&&e+Fe!==57&&(e+Fe!==84||47!==Ue()););return"/*"+Ze(t,ze-1)+"*"+Se(47===e?e:We())}function nt(e){for(;!qe(Ue());)We();return Ze(e,ze)}var ot="-ms-",it="-moz-",rt="-webkit-",st="comm",at="rule",lt="decl",ct="@keyframes";function dt(e,t){for(var n="",o=Oe(e),i=0;i<o;i++)n+=t(e[i],i,e,t)||"";return n}function ut(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case lt:return e.return=e.return||e.value;case st:return"";case ct:return e.return=e.value+"{"+dt(e.children,o)+"}";case at:e.value=e.props.join(",")}return Le(n=dt(e.children,o))?e.return=e.value+"{"+n+"}":""}function ht(e){return Ye(pt("",null,null,null,[""],e=Ke(e),0,[0],e))}function pt(e,t,n,o,i,r,s,a,l){for(var c=0,d=0,u=s,h=0,p=0,g=0,m=1,f=1,b=1,v=0,y="",k=i,x=r,w=o,_=y;f;)switch(g=v,v=We()){case 40:if(108!=g&&58==Te(_,u-1)){-1!=Ae(_+=$e(Xe(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:_+=Xe(v);break;case 9:case 10:case 13:case 32:_+=Qe(g);break;case 92:_+=Je(Ge()-1,7);continue;case 47:switch(Ue()){case 42:case 47:De(mt(tt(We(),Ge()),t,n),l);break;default:_+="/"}break;case 123*m:a[c++]=Le(_)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+d:-1==b&&(_=$e(_,/\f/g,"")),p>0&&Le(_)-u&&De(p>32?ft(_+";",o,n,u-1):ft($e(_," ","")+";",o,n,u-2),l);break;case 59:_+=";";default:if(De(w=gt(_,t,n,c,d,i,a,y,k=[],x=[],u),r),123===v)if(0===d)pt(_,t,w,w,k,r,u,a,x);else switch(99===h&&110===Te(_,3)?100:h){case 100:case 108:case 109:case 115:pt(e,w,w,o&&De(gt(e,w,w,0,0,i,a,y,i,k=[],u),x),i,x,u,a,o?k:x);break;default:pt(_,w,w,w,[""],x,0,a,x)}}c=d=p=0,m=b=1,y=_="",u=s;break;case 58:u=1+Le(_),p=g;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Ve())continue;switch(_+=Se(v),v*m){case 38:b=d>0?1:(_+="\f",-1);break;case 44:a[c++]=(Le(_)-1)*b,b=1;break;case 64:45===Ue()&&(_+=Xe(We())),h=Ue(),d=u=Le(y=_+=nt(Ge())),v++;break;case 45:45===g&&2==Le(_)&&(m=0)}}return r}function gt(e,t,n,o,i,r,s,a,l,c,d){for(var u=i-1,h=0===i?r:[""],p=Oe(h),g=0,m=0,f=0;g<o;++g)for(var b=0,v=Re(e,u+1,u=Ce(m=s[g])),y=e;b<p;++b)(y=Me(m>0?h[b]+" "+v:$e(v,/&\f/g,h[b])))&&(l[f++]=y);return Pe(e,t,n,0===i?at:a,l,c,d)}function mt(e,t,n){return Pe(e,t,n,st,Se(Fe),Re(e,2,-2),0)}function ft(e,t,n,o){return Pe(e,t,n,lt,Re(e,0,o),Re(e,o+1,-1),o)}var bt=function(e,t,n){for(var o=0,i=0;o=i,i=Ue(),38===o&&12===i&&(t[n]=1),!qe(i);)We();return Ze(e,ze)},vt=new WeakMap,yt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||vt.get(n))&&!o){vt.set(e,!0);for(var i=[],r=function(e,t){return Ye(function(e,t){var n=-1,o=44;do{switch(qe(o)){case 0:38===o&&12===Ue()&&(t[n]=1),e[n]+=bt(ze-1,t,n);break;case 2:e[n]+=Xe(o);break;case 4:if(44===o){e[++n]=58===Ue()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Se(o)}}while(o=We());return e}(Ke(e),t))}(t,i),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},kt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function xt(e,t){switch(function(e,t){return 45^Te(e,0)?(((t<<2^Te(e,0))<<2^Te(e,1))<<2^Te(e,2))<<2^Te(e,3):0}(e,t)){case 5103:return rt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rt+e+it+e+ot+e+e;case 6828:case 4268:return rt+e+ot+e+e;case 6165:return rt+e+ot+"flex-"+e+e;case 5187:return rt+e+$e(e,/(\w+).+(:[^]+)/,rt+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return rt+e+ot+"flex-item-"+$e(e,/flex-|-self/,"")+e;case 4675:return rt+e+ot+"flex-line-pack"+$e(e,/align-content|flex-|-self/,"")+e;case 5548:return rt+e+ot+$e(e,"shrink","negative")+e;case 5292:return rt+e+ot+$e(e,"basis","preferred-size")+e;case 6060:return rt+"box-"+$e(e,"-grow","")+rt+e+ot+$e(e,"grow","positive")+e;case 4554:return rt+$e(e,/([^-])(transform)/g,"$1"+rt+"$2")+e;case 6187:return $e($e($e(e,/(zoom-|grab)/,rt+"$1"),/(image-set)/,rt+"$1"),e,"")+e;case 5495:case 3959:return $e(e,/(image-set\([^]*)/,rt+"$1$`$1");case 4968:return $e($e(e,/(.+:)(flex-)?(.*)/,rt+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rt+e+e;case 4095:case 3583:case 4068:case 2532:return $e(e,/(.+)-inline(.+)/,rt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Le(e)-1-t>6)switch(Te(e,t+1)){case 109:if(45!==Te(e,t+4))break;case 102:return $e(e,/(.+:)(.+)-([^]+)/,"$1"+rt+"$2-$3$1"+it+(108==Te(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ae(e,"stretch")?xt($e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Te(e,t+1))break;case 6444:switch(Te(e,Le(e)-3-(~Ae(e,"!important")&&10))){case 107:return $e(e,":",":"+rt)+e;case 101:return $e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rt+(45===Te(e,14)?"inline-":"")+"box$3$1"+rt+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return rt+e+ot+$e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rt+e+ot+$e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rt+e+ot+$e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rt+e+ot+e+e}return e}var wt=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case lt:e.return=xt(e.value,e.length);break;case ct:return dt([He(e,{value:$e(e.value,"@","@"+rt)})],o);case at:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return dt([He(e,{props:[$e(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return dt([He(e,{props:[$e(t,/:(plac\w+)/,":"+rt+"input-$1")]}),He(e,{props:[$e(t,/:(plac\w+)/,":-moz-$1")]}),He(e,{props:[$e(t,/:(plac\w+)/,ot+"input-$1")]})],o)}return""})}}],_t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,i,r=e.stylisPlugins||wt,s={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)});var l,c,d,u,h=[ut,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=(c=[yt,kt].concat(r,h),d=Oe(c),function(e,t,n,o){for(var i="",r=0;r<d;r++)i+=c[r](e,t,n,o)||"";return i});i=function(e,t,n,o){l=n,dt(ht(e?e+"{"+t.styles+"}":t.styles),p),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new _e({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(a),g},Ct=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},St={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Et(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Mt=/[A-Z]|^ms/g,$t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,At=function(e){return 45===e.charCodeAt(1)},Tt=function(e){return null!=e&&"boolean"!=typeof e},Rt=Et(function(e){return At(e)?e:e.replace(Mt,"-$&").toLowerCase()}),Lt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($t,function(e,t,n){return Dt={name:t,styles:n,next:Dt},t})}return 1===St[e]||At(e)||"number"!=typeof t||0===t?t:t+"px"};function Ot(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Dt={name:i.name,styles:i.styles,next:Dt},i.name;var r=n;if(void 0!==r.styles){var s=r.next;if(void 0!==s)for(;void 0!==s;)Dt={name:s.name,styles:s.styles,next:Dt},s=s.next;return r.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var i=0;i<n.length;i++)o+=Ot(e,t,n[i])+";";else for(var r in n){var s=n[r];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?o+=r+"{"+t[a]+"}":Tt(a)&&(o+=Rt(r)+":"+Lt(r,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=Ot(e,t,s);switch(r){case"animation":case"animationName":o+=Rt(r)+":"+l+";";break;default:o+=r+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Tt(s[c])&&(o+=Rt(r)+":"+Lt(r,s[c])+";")}return o}(e,t,n);case"function":if(void 0!==e){var a=Dt,l=n(e);return Dt=a,Ot(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var Dt,Nt=/label:\s*([^\s;{]+)\s*(;|$)/g;function jt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";Dt=void 0;var r=e[0];null==r||void 0===r.raw?(o=!1,i+=Ot(n,t,r)):i+=r[0];for(var s=1;s<e.length;s++)i+=Ot(n,t,e[s]),o&&(i+=r[s]);Nt.lastIndex=0;for(var a,l="";null!==(a=Nt.exec(i));)l+="-"+a[1];var c=function(e){for(var t,n=0,o=0,i=e.length;i>=4;++o,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Dt}}var It,zt,Ft=!!e.useInsertionEffect&&e.useInsertionEffect,Bt=Ft||function(e){return e()},Pt=(Ft||e.useLayoutEffect,e.createContext("undefined"!=typeof HTMLElement?_t({key:"css"}):null)),Ht=(Pt.Provider,function(t){return(0,e.forwardRef)(function(n,o){var i=(0,e.useContext)(Pt);return t(n,i,o)})}),Vt=e.createContext({}),Wt={}.hasOwnProperty,Ut="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gt=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Ct(t,n,o),Bt(function(){return function(e,t,n){Ct(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+o:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,o)}),null},Zt=Ht(function(t,n,o){var i=t.css;"string"==typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var r=t[Ut],s=[i],a="";"string"==typeof t.className?a=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")}),o}(n.registered,s,t.className):null!=t.className&&(a=t.className+" ");var l=jt(s,void 0,e.useContext(Vt));a+=n.key+"-"+l.name;var c={};for(var d in t)Wt.call(t,d)&&"css"!==d&&d!==Ut&&(c[d]=t[d]);return c.className=a,o&&(c.ref=o),e.createElement(e.Fragment,null,e.createElement(Gt,{cache:n,serialized:l,isStringTag:"string"==typeof r}),e.createElement(r,c))}),qt=Zt,Kt=(n(4146),function(t,n){var o=arguments;if(null==n||!Wt.call(n,"css"))return e.createElement.apply(void 0,o);var i=o.length,r=new Array(i);r[0]=qt,r[1]=function(e,t){var n={};for(var o in t)Wt.call(t,o)&&(n[o]=t[o]);return n[Ut]=e,n}(t,n);for(var s=2;s<i;s++)r[s]=o[s];return e.createElement.apply(null,r)});function Yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt(t)}It=Kt||(Kt={}),zt||(zt=It.JSX||(It.JSX={}));const Xt=window.ReactDOM,Qt=Math.min,Jt=Math.max,en=Math.round,tn=Math.floor,nn=e=>({x:e,y:e});function on(){return"undefined"!=typeof window}function rn(e){return ln(e)?(e.nodeName||"").toLowerCase():"#document"}function sn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function an(e){var t;return null==(t=(ln(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ln(e){return!!on()&&(e instanceof Node||e instanceof sn(e).Node)}function cn(e){return!!on()&&(e instanceof Element||e instanceof sn(e).Element)}function dn(e){return!!on()&&(e instanceof HTMLElement||e instanceof sn(e).HTMLElement)}function un(e){return!(!on()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof sn(e).ShadowRoot)}function hn(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=gn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&"inline"!==i&&"contents"!==i}let pn;function gn(e){return sn(e).getComputedStyle(e)}function mn(e){const t=function(e){if("html"===rn(e))return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||an(e);return un(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(rn(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&hn(t)?t:mn(t)}function fn(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=mn(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),s=sn(i);if(r){const e=bn(s);return t.concat(s,s.visualViewport||[],hn(i)?i:[],e&&n?fn(e):[])}return t.concat(i,fn(i,[],n))}function bn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vn(e){return cn(e)?e:e.contextElement}function yn(e){const t=vn(e);if(!dn(t))return nn(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=function(e){const t=gn(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=dn(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=en(n)!==r||en(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}(t);let s=(r?en(n.width):n.width)/o,a=(r?en(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const kn=nn(0);function xn(e){const t=sn(e);return null==pn&&(pn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),pn&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:kn}function wn(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),r=vn(e);let s=nn(1);t&&(o?cn(o)&&(s=yn(o)):s=yn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==sn(e))&&t}(r,n,o)?xn(r):nn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const e=sn(r),t=o&&cn(o)?sn(o):o;let n=e,i=bn(n);for(;i&&o&&t!==n;){const e=yn(i),t=i.getBoundingClientRect(),o=gn(i),r=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=s,n=sn(i),i=bn(n)}}return function(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}({width:d,height:u,x:l,y:c})}function Cn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Sn=e.useLayoutEffect,En=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mn=function(){};function $n(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function An(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&r.push("".concat($n(e,s)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Tn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===ae(e)&&null!==e?[e]:[];var t},Rn=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ue({},me(e,En))},Ln=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,s=e.className;return{css:i(t,e),className:o(null!=n?n:{},r(t,e),s)}};function On(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Dn(e){return On(e)?window.pageYOffset:e.scrollTop}function Nn(e,t){On(e)?window.scrollTo(0,t):e.scrollTop=t}function jn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mn,i=Dn(e),r=t-i,s=0;!function t(){var a=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(s+=10,i,r,n);Nn(e,a),s<n?window.requestAnimationFrame(t):o(e)}()}function In(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?Nn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&Nn(e,Math.max(t.offsetTop-i,0))}function zn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Fn=!1,Bn={get passive(){return Fn=!0}},Pn="undefined"!=typeof window?window:{};Pn.addEventListener&&Pn.removeEventListener&&(Pn.addEventListener("p",Mn,Bn),Pn.removeEventListener("p",Mn,!1));var Hn=Fn;function Vn(e){return null!=e}function Wn(e,t,n){return e?t:n}var Un=["children","innerProps"],Gn=["children","innerProps"];var Zn,qn=function(e){return"auto"===e?"bottom":e},Kn=(0,e.createContext)(null),Yn=function(t){var n=t.children,o=t.minMenuHeight,i=t.maxMenuHeight,r=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=((0,e.useContext)(Kn)||{}).setPortalPlacement,d=(0,e.useRef)(null),u=ge((0,e.useState)(i),2),h=u[0],p=u[1],g=ge((0,e.useState)(null),2),m=g[0],f=g[1],b=l.spacing.controlHeight;return Sn(function(){var e=d.current;if(e){var t="fixed"===s,n=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d,u=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,g=h.height,m=h.top,f=n.offsetParent.getBoundingClientRect().top,b=s||On(d=l)?window.innerHeight:d.clientHeight,v=Dn(l),y=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),x=f-k,w=b-m,_=x+v,C=u-v-m,S=p-b+v+y,E=v+m-k,M=160;switch(i){case"auto":case"bottom":if(w>=g)return{placement:"bottom",maxHeight:t};if(C>=g&&!s)return r&&jn(l,S,M),{placement:"bottom",maxHeight:t};if(!s&&C>=o||s&&w>=o)return r&&jn(l,S,M),{placement:"bottom",maxHeight:s?w-y:C-y};if("auto"===i||s){var $=t,A=s?x:_;return A>=o&&($=Math.min(A-y-a,t)),{placement:"top",maxHeight:$}}if("bottom"===i)return r&&Nn(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=g)return{placement:"top",maxHeight:t};if(_>=g&&!s)return r&&jn(l,E,M),{placement:"top",maxHeight:t};if(!s&&_>=o||s&&x>=o){var T=t;return(!s&&_>=o||s&&x>=o)&&(T=s?x-k:_-k),r&&jn(l,E,M),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:o,placement:r,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:b});p(n.maxHeight),f(n.placement),null==c||c(n.placement)}},[i,r,s,a,o,c,b]),n({ref:d,placerProps:ue(ue({},t),{},{placement:m||qn(r),maxHeight:h})})},Xn=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return ue({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Qn=Xn,Jn=Xn,eo=["size"],to=["innerProps","isRtl","size"],no={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},oo=function(e){var t=e.size,n=me(e,eo);return Kt("svg",be({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:no},n))},io=function(e){return Kt(oo,be({size:20},e),Kt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ro=function(e){return Kt(oo,be({size:20},e),Kt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},so=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return ue({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},ao=so,lo=so,co=function(){var e=Yt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Zn||(Zn=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),uo=function(e){var t=e.delay,n=e.offset;return Kt("span",{css:Yt({animation:"".concat(co," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ho=["data"],po=["innerRef","isDisabled","isHidden","inputClassName"],go={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},mo={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ue({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},go)},fo=function(e){return ue({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},go)},bo=function(e){var t=e.children,n=e.innerProps;return Kt("div",n,t)},vo={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Kt("div",be({},Ln(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Kt(io,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,s=e.menuIsOpen;return Kt("div",be({ref:i},Ln(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),r,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Kt("div",be({},Ln(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Kt(ro,null))},DownChevron:ro,CrossIcon:io,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return Kt("div",be({},Ln(e,"group",{group:!0}),a),Kt(r,be({},s,{selectProps:d,theme:c,getStyles:o,getClassNames:i,cx:n}),l),Kt("div",null,t))},GroupHeading:function(e){var t=Rn(e);t.data;var n=me(t,ho);return Kt("div",be({},Ln(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Kt("div",be({},Ln(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Kt("span",be({},t,Ln(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Rn(e),i=o.innerRef,r=o.isDisabled,s=o.isHidden,a=o.inputClassName,l=me(o,po);return Kt("div",be({},Ln(e,"input",{"input-container":!0}),{"data-value":n||""}),Kt("input",be({className:t({input:!0},a),ref:i,style:fo(s),disabled:r},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,r=me(e,to);return Kt("div",be({},Ln(ue(ue({},r),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Kt(uo,{delay:0,offset:n}),Kt(uo,{delay:160,offset:!0}),Kt(uo,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Kt("div",be({},Ln(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return Kt("div",be({},Ln(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(t){var n=t.appendTo,o=t.children,i=t.controlElement,r=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=(0,e.useRef)(null),c=(0,e.useRef)(null),d=ge((0,e.useState)(qn(s)),2),u=d[0],h=d[1],p=(0,e.useMemo)(function(){return{setPortalPlacement:h}},[]),g=ge((0,e.useState)(null),2),m=g[0],f=g[1],b=(0,e.useCallback)(function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||f({offset:n,rect:e})}},[i,a,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Sn(function(){b()},[b]);var v=(0,e.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),i&&l.current&&(c.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=vn(e),d=i||r?[...c?fn(c):[],...t?fn(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)});const u=c&&a?function(e,t){let n,o=null;const i=an(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const g={rootMargin:-tn(u)+"px "+-tn(i.clientWidth-(d+h))+"px "+-tn(i.clientHeight-(u+p))+"px "+-tn(d)+"px",threshold:Jt(0,Qt(1,l))||1};let m=!0;function f(t){const o=t[0].intersectionRatio;if(o!==l){if(!m)return s();o?s(!1,o):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==o||Cn(c,e.getBoundingClientRect())||s(),m=!1}try{o=new IntersectionObserver(f,{...g,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(f,g)}o.observe(e)}(!0),r}(c,n):null;let h,p=-1,g=null;s&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!l&&g.observe(c),t&&g.observe(t));let m=l?wn(e):null;return l&&function t(){const o=wn(e);m&&!Cn(m,o)&&n(),m=o,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(h)}}(i,l.current,b,{elementResize:"ResizeObserver"in window}))},[i,b]);Sn(function(){v()},[v]);var y=(0,e.useCallback)(function(e){l.current=e,v()},[v]);if(!n&&"fixed"!==a||!m)return null;var k=Kt("div",be({ref:y},Ln(ue(ue({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),r),o);return Kt(Kn.Provider,{value:p},n?(0,Xt.createPortal)(k,n):k)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=me(e,Gn);return Kt("div",be({},Ln(ue(ue({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=me(e,Un);return Kt("div",be({},Ln(ue(ue({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return Kt(l,{data:o,innerProps:ue(ue({},Ln(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:a},Kt(c,{data:o,innerProps:ue({},Ln(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Kt(d,{data:o,innerProps:ue(ue({},Ln(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:bo,MultiValueLabel:bo,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Kt("div",be({role:"button"},n),t||Kt(io,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,s=e.innerProps;return Kt("div",be({},Ln(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Kt("div",be({},Ln(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return Kt("div",be({},Ln(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Kt("div",be({},Ln(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return Kt("div",be({},Ln(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},yo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ko(e,t){return e===t||!(!yo(e)||!yo(t))}function xo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ko(e[n],t[n]))return!1;return!0}for(var wo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},_o=function(e){return Kt("span",be({css:wo},e))},Co={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,r=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(r," focused, ").concat(d(s,n),".");if("menu"===t&&c){var u=a?" disabled":"",h="".concat(l?" selected":"").concat(u);return"".concat(r).concat(h,", ").concat(d(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},So=function(t){var n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,r=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,d=t.isAppleDevice,u=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,f=l.isSearchable,b=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,k=l.tabSelectsValue,x=l.isLoading,w=l["aria-label"],_=l["aria-live"],C=(0,e.useMemo)(function(){return ue(ue({},Co),u||{})},[u]),S=(0,e.useMemo)(function(){var e,t="";if(n&&C.onChange){var o=n.option,i=n.options,r=n.removedValue,s=n.removedValues,l=n.value,c=r||o||(e=l,Array.isArray(e)?null:e),d=c?h(c):"",u=i||s||void 0,p=u?u.map(h):[],g=ue({isDisabled:c&&m(c,a),label:d,labels:p},n);t=C.onChange(g)}return t},[n,C,m,a,h]),E=(0,e.useMemo)(function(){var e="",t=o||i,n=!!(o&&a&&a.includes(o));if(t&&C.onFocus){var s={focused:t,label:h(t),isDisabled:m(t,a),isSelected:n,options:r,context:t===o?"menu":"value",selectValue:a,isAppleDevice:d};e=C.onFocus(s)}return e},[o,i,h,m,C,r,a,d]),M=(0,e.useMemo)(function(){var e="";if(b&&v.length&&!x&&C.onFilter){var t=y({count:r.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e},[r,p,b,C,v,y,x]),$="initial-input-focus"===(null==n?void 0:n.action),A=(0,e.useMemo)(function(){var e="";if(C.guidance){var t=i?"value":b?"menu":"input";e=C.guidance({"aria-label":w,context:t,isDisabled:o&&m(o,a),isMulti:g,isSearchable:f,tabSelectsValue:k,isInitialFocus:$})}return e},[w,o,i,g,m,f,b,C,a,k,$]),T=Kt(e.Fragment,null,Kt("span",{id:"aria-selection"},S),Kt("span",{id:"aria-focused"},E),Kt("span",{id:"aria-results"},M),Kt("span",{id:"aria-guidance"},A));return Kt(e.Fragment,null,Kt(_o,{id:c},$&&T),Kt(_o,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!$&&T))},Eo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Mo=new RegExp("["+Eo.map(function(e){return e.letters}).join("")+"]","g"),$o={},Ao=0;Ao<Eo.length;Ao++)for(var To=Eo[Ao],Ro=0;Ro<To.letters.length;Ro++)$o[To.letters[Ro]]=To.base;var Lo=function(e){return e.replace(Mo,function(e){return $o[e]})},Oo=function(e,t){void 0===t&&(t=xo);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}(Lo),Do=function(e){return e.replace(/^\s+|\s+$/g,"")},No=function(e){return"".concat(e.label," ").concat(e.value)},jo=["innerRef"];function Io(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=ge(e,1)[0];return!n.includes(t)});return i.reduce(function(e,t){var n=ge(t,2),o=n[0],i=n[1];return e[o]=i,e},{})}(me(e,jo),"onExited","in","enter","exit","appear");return Kt("input",be({ref:t},n,{css:Yt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var zo=["boxSizing","height","overflow","paddingRight","position"],Fo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Bo(e){e.cancelable&&e.preventDefault()}function Po(e){e.stopPropagation()}function Ho(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Vo(){return"ontouchstart"in window||navigator.maxTouchPoints}var Wo=!("undefined"==typeof window||!window.document||!window.document.createElement),Uo=0,Go={capture:!1,passive:!1},Zo=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},qo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ko(t){var n=t.children,o=t.lockEnabled,i=t.captureEnabled,r=function(t){var n=t.isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,s=t.onTopLeave,a=(0,e.useRef)(!1),l=(0,e.useRef)(!1),c=(0,e.useRef)(0),d=(0,e.useRef)(null),u=(0,e.useCallback)(function(e,t){if(null!==d.current){var n=d.current,c=n.scrollTop,u=n.scrollHeight,h=n.clientHeight,p=d.current,g=t>0,m=u-h-c,f=!1;m>t&&a.current&&(i&&i(e),a.current=!1),g&&l.current&&(s&&s(e),l.current=!1),g&&t>m?(o&&!a.current&&o(e),p.scrollTop=u,f=!0,a.current=!0):!g&&-t>c&&(r&&!l.current&&r(e),p.scrollTop=0,f=!0,l.current=!0),f&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[o,i,r,s]),h=(0,e.useCallback)(function(e){u(e,e.deltaY)},[u]),p=(0,e.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),g=(0,e.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;u(e,t)},[u]),m=(0,e.useCallback)(function(e){if(e){var t=!!Hn&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}},[g,p,h]),f=(0,e.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))},[g,p,h]);return(0,e.useEffect)(function(){if(n){var e=d.current;return m(e),function(){f(e)}}},[n,m,f]),function(e){d.current=e}}({isEnabled:void 0===i||i,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),s=function(t){var n=t.isEnabled,o=t.accountForScrollbars,i=void 0===o||o,r=(0,e.useRef)({}),s=(0,e.useRef)(null),a=(0,e.useCallback)(function(e){if(Wo){var t=document.body,n=t&&t.style;if(i&&zo.forEach(function(e){var t=n&&n[e];r.current[e]=t}),i&&Uo<1){var o=parseInt(r.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(Fo).forEach(function(e){var t=Fo[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&Vo()&&(t.addEventListener("touchmove",Bo,Go),e&&(e.addEventListener("touchstart",Ho,Go),e.addEventListener("touchmove",Po,Go))),Uo+=1}},[i]),l=(0,e.useCallback)(function(e){if(Wo){var t=document.body,n=t&&t.style;Uo=Math.max(Uo-1,0),i&&Uo<1&&zo.forEach(function(e){var t=r.current[e];n&&(n[e]=t)}),t&&Vo()&&(t.removeEventListener("touchmove",Bo,Go),e&&(e.removeEventListener("touchstart",Ho,Go),e.removeEventListener("touchmove",Po,Go)))}},[i]);return(0,e.useEffect)(function(){if(n){var e=s.current;return a(e),function(){l(e)}}},[n,a,l]),function(e){s.current=e}}({isEnabled:o});return Kt(e.Fragment,null,o&&Kt("div",{onClick:Zo,css:qo}),n(function(e){r(e),s(e)}))}var Yo={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Xo=function(e){var t=e.name,n=e.onFocus;return Kt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Yo,value:"",onChange:function(){}})};function Qo(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Jo(){return Qo(/^Mac/i)}var ei={clearIndicator:lo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,s=i.borderRadius;return ue({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:ao,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return ue({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return ue({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,s=i.colors;return ue(ue({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},mo),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,s=i.spacing.baseUnit;return ue({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*s})},loadingMessage:Jn,menu:function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,s=i.spacing,a=i.colors;return ue((ce(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),ce(n,"position","absolute"),ce(n,"width","100%"),ce(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return ue({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return ue({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return ue({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,s=e.isFocused;return ue({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:Qn,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,s=r.spacing,a=r.colors;return ue({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?a.primary:o?a.primary25:"transparent",color:n?a.neutral20:i?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return ue({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return ue({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return ue({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ti={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ni={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:zn(),captureMenuScroll:!zn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=ue({ignoreCase:!0,ignoreAccents:!0,stringify:No,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,i=n.ignoreAccents,r=n.stringify,s=n.trim,a=n.matchFrom,l=s?Do(t):t,c=s?Do(r(e)):r(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=Oo(l),c=Lo(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oi(e,t,n,o){return{type:"option",data:t,isDisabled:ui(e,t,n),isSelected:hi(e,t,n),label:ci(e,t),value:di(e,t),index:o}}function ii(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return oi(e,n,t,o)}).filter(function(t){return ai(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=oi(e,n,t,o);return ai(e,r)?r:void 0}).filter(Vn)}function ri(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,we(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function si(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,we(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function ai(e,t){var n=e.inputValue,o=void 0===n?"":n,i=t.data,r=t.isSelected,s=t.label,a=t.value;return(!gi(e)||!r)&&pi(e,{label:s,value:a,data:i},o)}var li=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},ci=function(e,t){return e.getOptionLabel(t)},di=function(e,t){return e.getOptionValue(t)};function ui(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function hi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=di(e,t);return n.some(function(t){return di(e,t)===o})}function pi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var gi=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},mi=1,fi=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(o,t);var n=function(e){var t=xe();return function(){var n,o=ke(e);if(t){var i=ke(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(o);function o(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,i=o.onChange,r=o.name;n.name=r,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,o){var i=t.props,r=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),r&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,i=n.isMulti,r=n.name,s=t.state.selectValue,a=i&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(a){var c=t.getOptionValue(e);t.setValue(s.filter(function(e){return t.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:r});i?t.setValue([].concat(we(s),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,i=t.getOptionValue(e),r=o.filter(function(e){return t.getOptionValue(e)!==i}),s=Wn(n,r,r[0]||null);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Wn(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],i=n.slice(0,n.length-1),r=Wn(e,i,i[0]||null);o&&t.onChange(r,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return li(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return si(ii(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return An.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ci(t.props,e)},t.getOptionValue=function(e){return di(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,i=ei[e](n,o);i.boxSizing="border-box";var r=t.props.styles[e];return r?r(i,n):i},t.getClassNames=function(e,n){var o,i;return null===(o=(i=t.props.classNames)[e])||void 0===o?void 0:o.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ue(ue({},vo),e.components);var e},t.buildCategorizedOptions=function(){return ii(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ri(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:ue({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&On(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var i=Math.abs(o.clientX-t.initialTouchX),r=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=i>5||r>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return gi(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,i=n.backspaceRemovesValue,r=n.escapeClearsValue,s=n.inputValue,a=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,d=n.onKeyDown,u=n.tabSelectsValue,h=n.openMenuOnFocus,p=t.state,g=p.focusedOption,m=p.focusedValue,f=p.selectValue;if(!(l||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||s)return;t.focusValue("previous");break;case"ArrowRight":if(!o||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)t.removeValue(m);else{if(!i)return;o?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!g||h&&t.isOptionSelected(g,f))return;t.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g)return;if(t.isComposing)return;t.selectOption(g);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):a&&r&&t.clearValue();break;case" ":if(s)return;if(!c){t.openMenu("first");break}if(!g)return;t.selectOption(g);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++mi),t.state.selectValue=Tn(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),s=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=r[s],t.state.focusedOptionId=li(i,r[s])}return t}return function(e,t,n){t&&ve(e.prototype,t),n&&ve(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&In(this.menuListRef,this.focusedOptionRef),(Jo()||Qo(/^iPhone/i)||Qo(/^iPad/i)||Jo()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(In(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),s="first"===e?0:r.length-1;if(!this.props.isMulti){var a=r.indexOf(o[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[s],focusedOptionId:this.getFocusedOptionId(r[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ti):ue(ue({},ti),this.props.theme):ti}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,c=a.isRtl,d=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:d,selectOption:r,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ui(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return hi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return pi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,o=t.isSearchable,i=t.inputId,r=t.inputValue,s=t.tabIndex,a=t.form,l=t.menuIsOpen,c=t.required,d=this.getComponents().Input,u=this.state,h=u.inputIsHidden,p=u.ariaSelection,g=this.commonProps,m=i||this.getElementId("input"),f=ue(ue(ue({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?e.createElement(d,be({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:n,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:r},f)):e.createElement(Io,be({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mn,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:a,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),o=n.MultiValue,i=n.MultiValueContainer,r=n.MultiValueLabel,s=n.MultiValueRemove,a=n.SingleValue,l=n.Placeholder,c=this.commonProps,d=this.props,u=d.controlShouldRenderValue,h=d.isDisabled,p=d.isMulti,g=d.inputValue,m=d.placeholder,f=this.state,b=f.selectValue,v=f.focusedValue,y=f.isFocused;if(!this.hasValue()||!u)return g?null:e.createElement(l,be({},c,{key:"placeholder",isDisabled:h,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return b.map(function(n,a){var l=n===v,d="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(o,be({},c,{components:{Container:i,Label:r,Remove:s},isFocused:l,isDisabled:h,key:d,index:a,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))});if(g)return null;var k=b[0];return e.createElement(a,be({},c,{data:k,isDisabled:h}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,i=o.isDisabled,r=o.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,be({},n,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,i=o.isDisabled,r=o.isLoading,s=this.state.isFocused;return t&&r?e.createElement(t,be({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,o=t.IndicatorSeparator;if(!n||!o)return null;var i=this.commonProps,r=this.props.isDisabled,s=this.state.isFocused;return e.createElement(o,be({},i,{isDisabled:r,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,be({},n,{innerProps:r,isDisabled:o,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),o=n.Group,i=n.GroupHeading,r=n.Menu,s=n.MenuList,a=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,u=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,m=p.inputValue,f=p.isLoading,b=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,k=p.menuIsOpen,x=p.menuPlacement,w=p.menuPosition,_=p.menuPortalTarget,C=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,E=p.noOptionsMessage,M=p.onMenuScrollToTop,$=p.onMenuScrollToBottom;if(!k)return null;var A,T=function(n,o){var i=n.type,r=n.data,s=n.isDisabled,a=n.isSelected,l=n.label,c=n.value,p=h===r,g=s?void 0:function(){return t.onOptionHover(r)},m=s?void 0:function(){return t.selectOption(r)},f="".concat(t.getElementId("option"),"-").concat(o),b={id:f,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:a};return e.createElement(d,be({},u,{innerProps:b,data:r,isDisabled:s,isSelected:a,key:f,label:l,type:i,value:c,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map(function(n){if("group"===n.type){var r=n.data,s=n.options,a=n.index,l="".concat(t.getElementId("group"),"-").concat(a),c="".concat(l,"-heading");return e.createElement(o,be({},u,{key:l,data:r,options:s,Heading:i,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map(function(e){return T(e,"".concat(a,"-").concat(e.index))}))}if("option"===n.type)return T(n,"".concat(n.index))});else if(f){var R=b({inputValue:m});if(null===R)return null;A=e.createElement(l,u,R)}else{var L=E({inputValue:m});if(null===L)return null;A=e.createElement(c,u,L)}var O={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:w,menuShouldScrollIntoView:S},D=e.createElement(Yn,be({},u,O),function(n){var o=n.ref,i=n.placerProps,a=i.placement,l=i.maxHeight;return e.createElement(r,be({},u,O,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:f,placement:a}),e.createElement(Ko,{captureEnabled:g,onTopArrive:M,onBottomArrive:$,lockEnabled:C},function(n){return e.createElement(s,be({},u,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:t.getElementId("listbox")},isLoading:f,maxHeight:l,focusedOption:h}),A)}))});return _||"fixed"===w?e.createElement(a,be({},u,{appendTo:_,controlElement:this.controlRef,menuPlacement:x,menuPosition:w}),D):D}},{key:"renderFormField",value:function(){var t=this,n=this.props,o=n.delimiter,i=n.isDisabled,r=n.isMulti,s=n.name,a=n.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!i)return e.createElement(Xo,{name:s,onFocus:this.onValueInputFocus});if(s&&!i){if(r){if(o){var c=l.map(function(e){return t.getOptionValue(e)}).join(o);return e.createElement("input",{name:s,type:"hidden",value:c})}var d=l.length>0?l.map(function(n,o){return e.createElement("input",{key:"i-".concat(o),name:s,type:"hidden",value:t.getOptionValue(n)})}):e.createElement("input",{name:s,type:"hidden",value:""});return e.createElement("div",null,d)}var u=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:s,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,o=n.ariaSelection,i=n.focusedOption,r=n.focusedValue,s=n.isFocused,a=n.selectValue,l=this.getFocusableOptions();return e.createElement(So,be({},t,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:i,focusedValue:r,isFocused:s,selectValue:a,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,o=t.IndicatorsContainer,i=t.SelectContainer,r=t.ValueContainer,s=this.props,a=s.className,l=s.id,c=s.isDisabled,d=s.menuIsOpen,u=this.state.isFocused,h=this.commonProps=this.getCommonProps();return e.createElement(i,be({},h,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),e.createElement(n,be({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),e.createElement(r,be({},h,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(o,be({},h,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,c=e.options,d=e.value,u=e.menuIsOpen,h=e.inputValue,p=e.isMulti,g=Tn(d),m={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||h!==n.inputValue)){var f=u?function(e,t){return ri(ii(e,t))}(e,g):[],b=u?si(ii(e,g),"".concat(l,"-option")):[],v=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,g):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);m={selectValue:g,focusedOption:y,focusedOptionId:li(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var k=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=r,w=s&&a;return s&&!w&&(x={value:Wn(p,g,g[0]||null),options:g,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==r?void 0:r.action)&&(x=null),ue(ue(ue({},m),k),{},{prevProps:e,ariaSelection:x,prevWasFocused:w})}}]),o}(e.Component);fi.defaultProps=ni;var bi=(0,e.forwardRef)(function(t,n){var o=function(t){var n=t.defaultInputValue,o=void 0===n?"":n,i=t.defaultMenuIsOpen,r=void 0!==i&&i,s=t.defaultValue,a=void 0===s?null:s,l=t.inputValue,c=t.menuIsOpen,d=t.onChange,u=t.onInputChange,h=t.onMenuClose,p=t.onMenuOpen,g=t.value,m=me(t,fe),f=ge((0,e.useState)(void 0!==l?l:o),2),b=f[0],v=f[1],y=ge((0,e.useState)(void 0!==c?c:r),2),k=y[0],x=y[1],w=ge((0,e.useState)(void 0!==g?g:a),2),_=w[0],C=w[1],S=(0,e.useCallback)(function(e,t){"function"==typeof d&&d(e,t),C(e)},[d]),E=(0,e.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)},[u]),M=(0,e.useCallback)(function(){"function"==typeof p&&p(),x(!0)},[p]),$=(0,e.useCallback)(function(){"function"==typeof h&&h(),x(!1)},[h]),A=void 0!==l?l:b,T=void 0!==c?c:k,R=void 0!==g?g:_;return ue(ue({},m),{},{inputValue:A,menuIsOpen:T,onChange:S,onInputChange:E,onMenuClose:$,onMenuOpen:M,value:R})}(t);return e.createElement(fi,be({ref:n},o))}),vi=bi;const yi=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,e.createElement)(R.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})),{Component:ki}=wp.element,{Button:xi,ToggleControl:wi,Popover:_i}=wp.components,Ci=class extends ki{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)()}toggle(){this.setState({open:!this.state.open})}render(){const{open:t}=this.state;return(0,e.createElement)(e.Fragment,null,t&&(0,e.createElement)(_i,{className:"kb-dynamic-popover",position:"bottom center",onClick:()=>{},expandOnMobile:!0,onClose:this.toggle,ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(wi,{label:(0,a.__)("Show fields from all post types","kadence-blocks-pro"),checked:this.props.value,onChange:()=>{this.props.onChange(!this.props.value)}}))),(0,e.createElement)(xi,{className:"kb-dynamic-custom-fields-settings",icon:yi,onClick:this.toggle,"aria-haspopup":"true","aria-expanded":t,label:(0,a.__)("Settings","kadence-blocks-pro"),showTooltip:!0}))}},{dynamicFieldsEndpoint:Si}=window.kadenceDynamicParams;function Ei(t){const{label:n,value:i,onChange:s,id:d,field:u,relate:h,relcustom:p,source:g="",onShowAll:m=!1,showAll:f=!1,contextPost:b=""}=t,[v,y]=(0,o.useState)([]),[k,x]=(0,o.useState)(!1),w=kadence_blocks_params.globalSettings?JSON.parse(kadence_blocks_params.globalSettings):{},_=[].concat.apply([],v.map(e=>e.options));(0,o.useEffect)(()=>{(()=>{const e=(0,l.applyFilters)("kadence.getCustomFieldsShowAll",!!w?.get_fields_show_all||f,t),n={...t,showAll:e};(0,c.resolveSelect)("kadenceblockspro/data").storeFetch((0,W.addQueryArgs)(Si,G(n,kbpData.isKadenceE?"":b,"",t?.context?.["kadence/dynamicSource"]?t.context["kadence/dynamicSource"]:""))).then(e=>{y(e),x(!0)}).catch(()=>{y([]),x(!0)})})()},[d,u,h,p,g,f]);let C="";const S=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document.body;return S&&(C='.kb-dynamic-select {\n\t\t\tposition: relative;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.kbp__control {\n\t\t\t-webkit-box-align: center;\n\t\t\talign-items: center;\n\t\t\tbackground-color: rgb(255, 255, 255);\n\t\t\tborder-color: rgb(204, 204, 204);\n\t\t\tborder-radius: 4px;\n\t\t\tborder-style: solid;\n\t\t\tborder-width: 1px;\n\t\t\tcursor: default;\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\t-webkit-box-pack: justify;\n\t\t\tjustify-content: space-between;\n\t\t\tmin-height: 38px;\n\t\t\tposition: relative;\n\t\t\ttransition: all 100ms ease 0s;\n\t\t\tbox-sizing: border-box;\n\t\t\toutline: 0px !important;\n\t\t}\n\t\t.kbp__placeholder {\n\t\t\t\tcolor: rgb(128, 128, 128);\n\t\t\tmargin-left: 2px;\n\t\t\tmargin-right: 2px;\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.kbp__indicators {\n\t\t\t\t-webkit-box-align: center;\n\t\t\talign-items: center;\n\t\t\talign-self: stretch;\n\t\t\tdisplay: flex;\n\t\t\tflex-shrink: 0;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t\n\t\t.kbp__value-container {\n\t\t\t-webkit-box-align: center;\n\t\t\talign-items: center;\n\t\t\tdisplay: flex;\n\t\t\tflex: 1 1 0%;\n\t\t\tflex-wrap: wrap;\n\t\t\tpadding: 2px 8px;\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t\n\t\t.kb-dynamic-select > span[aria-live="assertive"] {\n\t\t\tdisplay: none;\n\t\t}'),k?(0,e.createElement)("div",{className:"kb-custom-fields-select-control-wrap"+(n?" components-base-control":"")},C&&(0,e.createElement)("style",null,C),n&&(0,e.createElement)("div",{className:"kb-custom-fields-select-control-label-wrap"},(0,e.createElement)("span",{className:"kb-dynamic-title"},n),m&&!w?.get_fields_show_all&&(0,e.createElement)(Ci,{value:void 0!==f&&f,onChange:e=>{m(!!e)}})),(0,e.createElement)(vi,{options:v,className:"kb-dynamic-select",classNamePrefix:"kbp",value:""!==t.value?_.filter(({value:e})=>e===t.value):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("Select","kadence-blocks-pro"),onChange:e=>{s(e?e.value:"")}})):(0,e.createElement)(r.Spinner,null)}const{Component:Mi,Fragment:$i}=wp.element,{PanelBody:Ai,ToggleControl:Ti,TextControl:Ri}=wp.components,Li=class extends Mi{constructor(){super(...arguments),this.saveDynamicSettings=this.saveDynamicSettings.bind(this),this.state={tempContent:""},this.defaultOptions={enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}}saveDynamicSettings(e){let t=this.props.attributes.kadenceDynamic;t||(t={},t[this.props.slug]=this.defaultOptions),t=Object.assign({},t),t[this.props.slug]||(t[this.props.slug]=this.defaultOptions),t[this.props.slug]={...t[this.props.slug],...e};var n="";n="<span",t[this.props.slug].source&&(n+=` data-source="${t[this.props.slug].source}"`),t[this.props.slug].field&&(n+=` data-field="${t[this.props.slug].field}"`),t[this.props.slug].para&&(n+=` data-para="${t[this.props.slug].para}"`),t[this.props.slug].custom&&(n+=` data-custom="${t[this.props.slug].custom}"`),t[this.props.slug].fallback&&(n+=` data-fallback="${t[this.props.slug].fallback}"`),t[this.props.slug].before&&(n+=` data-before="${t[this.props.slug].before}"`),t[this.props.slug].after&&(n+=` data-after="${t[this.props.slug].after}"`),t[this.props.slug].relate&&(n+=` data-relate="${t[this.props.slug].relate}"`),t[this.props.slug].relcustom&&(n+=` data-relcustom="${t[this.props.slug].relcustom}"`),t[this.props.slug].useRepeaterContext&&(n+=` data-userepeatercontext="${t[this.props.slug].useRepeaterContext}"`),t[this.props.slug].showAll&&(n+=' data-showall="true"');let o=n+=' class="kb-inline-dynamic">dynamic text placeholder</span>',i=this.state.tempContent?this.state.tempContent:"",r=this.props.slug;if(this.props.slug.includes(":")){const e=this.props.slug.split(":");if(e[0]){r=e[0];const t=e[2];o=this.props.attributes[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:shortcode}),n)),i=this.props.attributes[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:""}),n))}}this.props.setAttributes({kadenceDynamic:t,[r]:t[this.props.slug].enable?o:i})}componentDidMount(){const{attributes:{kadenceDynamic:e}}=this.props,t=e&&e[this.props.slug]?e[this.props.slug]:this.defaultOptions;!this.props.context||void 0===this.props.context["kadence/repeaterRow"]||t?.field||t?.source||this.saveDynamicSettings({useRepeaterContext:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,n=[].concat.apply([],kadenceDynamicParams.textFields.map(e=>e.options)),o=t&&t[this.props.slug]?t[this.props.slug]:this.defaultOptions;let i=o.source?o.source:"";!i&&this.props.context&&this.props.context.postId&&(i=this.props.context.postId);let r={};return this.props.context&&this.props.context["kadence/repeaterRowData"]&&this.props.context["kadence/repeaterRowData"],(0,e.createElement)($i,null,(0,e.createElement)(Ti,{label:(0,a.__)("Enable Dynamic Content"),checked:void 0!==o.enable&&o.enable,onChange:e=>{e&&this.setState({tempContent:this.props.attributes[this.props.slug]}),this.saveDynamicSettings({enable:e})}}),void 0!==o.enable&&o.enable&&(0,e.createElement)($i,null,this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(0,e.createElement)($i,null,(0,e.createElement)(Ti,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==o.useRepeaterContext&&o.useRepeaterContext,onChange:e=>{this.saveDynamicSettings({useRepeaterContext:e})}}),o.useRepeaterContext&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(Ei,{label:(0,a.__)("Repeater Field","kadence-blocks-pro"),value:void 0!==o.field?o.field:"",onChange:e=>{e?this.saveDynamicSettings({field:e}):this.saveDynamicSettings({field:""})},source:o.source?o.source:"",useRepeaterContext:o.useRepeaterContext,context:this.props.context,contextPost:i,field:o.field,type:"text",showAll:!1})))),!o.useRepeaterContext&&(0,e.createElement)($i,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Content","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.textFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==o.field?n.filter(({value:e})=>e===o.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,maxMenuHeight:200,placeholder:(0,a.__)("None","kadence-blocks-pro"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}}))),void 0!==o.field&&("post"===o.field.split("|")[0]||"relationship"===o.field.split("|")[0]||"author"===o.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Content Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:o.source?(0,e.createElement)(se,{source:o.source,field:"post|post_title"}):(0,a.__)("Current Post"),onChange:e=>{this.saveDynamicSettings({source:e})}}),kbpData.isKadenceE&&!o.source&&(0,e.createElement)("span",{className:"kb-dynamic-subtitle"},(0,a.__)("*Previewing Latest Post","kadence-blocks-pro"))),void 0!==o.field&&"relationship"===o.field.split("|")[0]&&(0,e.createElement)($i,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==o.relate?o.relate:"",onChange:e=>{this.saveDynamicSettings({relate:e})},source:o.source?o.source:"",type:"relationship",showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.relate&&"kb_custom_input"===o.relate&&(0,e.createElement)(Ri,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.relcustom?o.relcustom:"",onChange:e=>{this.saveDynamicSettings({relcustom:e})}})),void 0!==o.field&&("post|post_custom_field"===o.field||"archive|archive_custom_field"===o.field||"media|media_custom_field"===o.field||"user|user_custom_field"===o.field||"author|author_custom_field"===o.field||"relationship|post_custom_field"===o.field)&&(0,e.createElement)($i,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==o.para?o.para:"",onChange:e=>{this.saveDynamicSettings({para:e})},source:o.source?o.source:"",relate:"relationship"===o.field.split("|")[0]&&void 0!==o.relate?o.relate:void 0,relcustom:"relationship"===o.field.split("|")[0]&&"kb_custom_input"===o.relate&&void 0!==o.relcustom?o.relcustom:void 0,contextPost:i,type:"text",showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})},field:o.field}),void 0!==o.para&&"kb_custom_input"===o.para&&(0,e.createElement)(Ri,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.custom?o.custom:"",onChange:e=>{this.saveDynamicSettings({custom:e})}})),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(Ai,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(Ri,{label:(0,a.__)("Before Content","kadence-blocks-pro"),value:void 0!==o.before?o.before:"",onChange:e=>{this.saveDynamicSettings({before:e})}}),(0,e.createElement)(Ri,{label:(0,a.__)("After Content","kadence-blocks-pro"),value:void 0!==o.after?o.after:"",onChange:e=>{this.saveDynamicSettings({after:e})}}),(0,e.createElement)(Ri,{label:(0,a.__)("Fallback Content","kadence-blocks-pro"),value:void 0!==o.fallback?o.fallback:"",onChange:e=>{this.saveDynamicSettings({fallback:e})}}))))))}},{Component:Oi,Fragment:Di}=wp.element,Ni=class extends Oi{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)()}toggle(){this.setState({open:!this.state.open})}render(){const{attributes:{kadenceDynamic:t},setAttributes:n}=this.props,{open:o}=this.state;return(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"kb-dynamic-menu",icon:C,onClick:this.toggle,isPressed:void 0!==t&&void 0!==t[this.props.slug]&&void 0!==t[this.props.slug].enable&&""!==t[this.props.slug].enable&&t[this.props.slug].enable,"aria-haspopup":"true","aria-expanded":o,label:(0,a.__)("Dynamic Content","kadence-blocks-pro"),showTooltip:!0}),o&&(0,e.createElement)(r.Popover,{className:"kb-dynamic-popover",position:"bottom center",onClick:()=>{},expandOnMobile:!0,onClose:this.toggle,ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(Li,{...this.props}))))}};function ji(e,t,n,o=""){if("link"==t){let t=n.attributes.kadenceDynamic;t||(t={},t[e]={enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:""}),t[e]||(t[e]={enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:""}),t[e]=o?{...t[e],...o}:t[e],t=JSON.parse(JSON.stringify(t));const r=!!n.editedPostId;n.context&&void 0!==n.context["kadence/repeaterRow"]&&n.context["kadence/repeaterRow"];var i="";n.context&&void 0!==n.context["kadence/dynamicSource"]&&(i=n.context["kadence/dynamicSource"]);let s="[kb-dynamic";t[e].useRepeaterContext&&!r?s+=" source='"+i+"'":t[e].source&&(s+=" source='"+t[e].source+"'"),t[e].field&&(s+=" field='"+t[e].field+"'"),t[e].para&&(s+=" para='"+t[e].para+"'"),t[e].custom&&(s+=" custom='"+t[e].custom+"'"),t[e].fallback&&(s+=" fallback='"+t[e].fallback+"'"),t[e].before&&(s+=" before='"+t[e].before+"'"),t[e].after&&(s+=" after='"+t[e].after+"'"),t[e].relate&&(s+=" relate='"+t[e].relate+"'"),t[e].relcustom&&(s+=" relcustom='"+t[e].relcustom+"'"),t[e].useRepeaterContext&&(s+=" useRepeaterContext='"+t[e].useRepeaterContext+"'"),s+=" type='url'",s+="]";let a=s,l=e;if(e.includes(":")){const t=e.split(":");if(t[0]){l=t[0];const e=t[2];a=n.attributes[t[0]].map((n,o)=>(Number(t[1])===o&&(n={...n,[e]:s}),n))}}return{options:t,newUpdate:a,attrName:l}}return null}const{Component:Ii,Fragment:zi}=wp.element,{PanelBody:Fi,ToggleControl:Bi,TextControl:Pi,RangeControl:Hi,SelectControl:Vi,Button:Wi,Popover:Ui,Toolbar:Gi}=wp.components,Zi=(0,s.compose)([(0,c.withSelect)((e,t)=>({editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}))])(class extends Ii{constructor(){super(...arguments),this.saveDynamicSettings=this.saveDynamicSettings.bind(this),this.state={tempContent:""},this.defaultOptions={enable:!1,useRepeaterContext:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:""}}saveDynamicSettings(e){let t=this.state.tempContent?this.state.tempContent:"";this.props.slug.includes(":")&&(t=this.props.attributes[slugs[0]].map((e,t)=>(Number(slugs[1])===t&&(e={...e,[updatePara]:""}),e)));const{options:n,newUpdate:o,attrName:i}=ji(this.props.slug,"link",this.props,e);this.props.setAttributes({kadenceDynamic:n,[i]:n[this.props.slug].enable?o:t})}componentDidMount(){const{attributes:{kadenceDynamic:e}}=this.props,t=e&&e[this.props.slug]?e[this.props.slug]:this.defaultOptions;!this.props.context||void 0===this.props.context["kadence/repeaterRow"]||t?.field||t?.source||this.saveDynamicSettings({useRepeaterContext:!0})}render(){const{attributes:{kadenceDynamic:t},editedPostId:n}=this.props,o=[].concat.apply([],kadenceDynamicParams.linkFields.map(e=>e.options)),i=t&&t[this.props.slug]?t[this.props.slug]:this.defaultOptions;let r=i.source?i.source:"";!r&&this.props.context&&this.props.context.postId&&(r=this.props.context.postId);let s={};return this.props.context&&void 0!==this.props.context["kadence/repeaterRowData"]&&(s=this.props.context["kadence/repeaterRowData"]),s&&Object.keys(s).map((e,t)=>({value:e,label:e})),(0,e.createElement)(zi,null,(0,e.createElement)(Bi,{label:(0,a.__)("Enable Dynamic Link","kadence-blocks-pro"),checked:void 0!==i.enable&&i.enable,onChange:e=>{e&&this.setState({tempContent:this.props.attributes[this.props.slug]?this.props.attributes[this.props.slug]:""}),this.saveDynamicSettings({enable:e})}}),void 0!==i.enable&&i.enable&&(0,e.createElement)(zi,null,this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(0,e.createElement)(zi,null,(0,e.createElement)(Bi,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==i.useRepeaterContext&&i.useRepeaterContext,onChange:e=>{this.saveDynamicSettings({useRepeaterContext:e})}}),i.useRepeaterContext&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(Ei,{label:(0,a.__)("Repeater Field","kadence-blocks-pro"),value:void 0!==i.field?i.field:"",onChange:e=>{e?this.saveDynamicSettings({field:e}):this.saveDynamicSettings({field:""})},source:i.source?i.source:"",useRepeaterContext:i.useRepeaterContext,context:this.props.context,contextPost:r,field:i.field,type:"url",showAll:!1})))),!i.useRepeaterContext&&(0,e.createElement)(zi,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Link","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.linkFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==i.field?o.filter(({value:e})=>e===i.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,maxMenuHeight:200,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},placeholder:(0,a.__)("None"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}}))),void 0!==i.field&&("post"===i.field.split("|")[0]||"relationship"===i.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Link Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:i.source?(0,e.createElement)(se,{source:i.source,field:"post|post_title"}):(0,a.__)("Current Post","kadence-blocks-pro"),onChange:e=>{this.saveDynamicSettings({source:e})}})),void 0!==i.field&&"relationship"===i.field.split("|")[0]&&(0,e.createElement)(zi,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==i.relate?i.relate:"",onChange:e=>{this.saveDynamicSettings({relate:e})},source:i.source?i.source:"",type:"relationship",contextPost:r,showAll:!!i.showAll&&i.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==i.relate&&"kb_custom_input"===i.relate&&(0,e.createElement)(Pi,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==i.relcustom?i.relcustom:"",onChange:e=>{this.saveDynamicSettings({relcustom:e})}})),void 0!==i.field&&("post|post_custom_field"===i.field||"media|media_custom_field"===i.field||"user|user_custom_field"===i.field||"author|author_custom_field"===i.field||"archive|archive_custom_field"===i.field||"relationship|post_custom_field"===i.field||"site|custom_setting"===i.field)&&(0,e.createElement)(zi,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==i.para?i.para:"",onChange:e=>{this.saveDynamicSettings({para:e})},source:i.source?i.source:"",field:i.field,relate:"relationship"===i.field.split("|")[0]&&void 0!==i.relate?i.relate:void 0,relcustom:"relationship"===i.field.split("|")[0]&&"kb_custom_input"===i.relate&&void 0!==i.relcustom?i.relcustom:void 0,type:"url",contextPost:r,showAll:!!i.showAll&&i.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==i.para&&"kb_custom_input"===i.para&&(0,e.createElement)(Pi,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==i.custom?i.custom:"",onChange:e=>{this.saveDynamicSettings({custom:e})}}))),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(Fi,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(Pi,{label:(0,a.__)("Before link","kadence-blocks-pro"),value:void 0!==i.before?i.before:"",onChange:e=>{this.saveDynamicSettings({before:e})}}),(0,e.createElement)(Pi,{label:(0,a.__)("After link","kadence-blocks-pro"),value:void 0!==i.after?i.after:"",onChange:e=>{this.saveDynamicSettings({after:e})}}),(0,e.createElement)(Pi,{label:(0,a.__)("Fallback Link","kadence-blocks-pro"),value:void 0!==i.fallback?i.fallback:"",onChange:e=>{this.saveDynamicSettings({fallback:e})}})))))}}),{Component:qi,Fragment:Ki}=wp.element,{Button:Yi,Popover:Xi}=wp.components,Qi=class extends qi{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}render(){const{attributes:{kadenceDynamic:t}}=this.props,{open:n}=this.state;return(0,e.createElement)(Ki,null,(0,e.createElement)(Yi,{className:"kb-dynamic-url-sidebar",icon:C,onClick:()=>this.debouncedToggle(),isPressed:void 0!==t&&void 0!==t[this.props.slug]&&void 0!==t[this.props.slug].enable&&""!==t[this.props.slug].enable&&t[this.props.slug].enable,"aria-haspopup":"true","aria-expanded":n,label:(0,a.__)("Dynamic Link","kadence-blocks-pro"),showTooltip:!0}),n&&(0,e.createElement)(Xi,{className:"kb-dynamic-popover",position:"bottom right",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(Zi,{...this.props}))))}},{Component:Ji,Fragment:er}=wp.element,{PanelBody:tr,ToggleControl:nr,TextControl:or,RangeControl:ir,SelectControl:rr,Button:sr,Popover:ar,Toolbar:lr}=wp.components,cr=(0,s.compose)([(0,c.withSelect)((e,t)=>({editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}))])(class extends Ji{constructor(){super(...arguments),this.saveDynamicSettings=this.saveDynamicSettings.bind(this),this.state={tempContent:""},this.defaultOptions={enable:!1,useRepeaterContext:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}}saveDynamicSettings(e){let t=this.props.attributes.kadenceDynamic;t||(t={},t[this.props.slug]=this.defaultOptions),t[this.props.slug]||(t[this.props.slug]=this.defaultOptions),t[this.props.slug]={...t[this.props.slug],...e},t=JSON.parse(JSON.stringify(t));const n=!!this.props.editedPostId;this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&this.props.context["kadence/repeaterRow"];var o="";this.props.context&&void 0!==this.props.context["kadence/dynamicSource"]&&(o=this.props.context["kadence/dynamicSource"],t[this.props.slug].source=o);let i="[kb-dynamic";t[this.props.slug].useRepeaterContext&&!n?i+=" source='"+o+"'":t[this.props.slug].source&&(i+=" source='"+t[this.props.slug].source+"'"),t[this.props.slug].field&&(i+=" field='"+t[this.props.slug].field+"'"),t[this.props.slug].para&&(i+=" para='"+t[this.props.slug].para+"'"),t[this.props.slug].custom&&(i+=" custom='"+t[this.props.slug].custom+"'"),t[this.props.slug].fallback&&(i+=" fallback='"+t[this.props.slug].fallback+"'"),t[this.props.slug].before&&(i+=" before='"+t[this.props.slug].before+"'"),t[this.props.slug].after&&(i+=" after='"+t[this.props.slug].after+"'"),t[this.props.slug].relate&&(i+=" relate='"+t[this.props.slug].relate+"'"),t[this.props.slug].relcustom&&(i+=" relcustom='"+t[this.props.slug].relcustom+"'"),t[this.props.slug].useRepeaterContext&&(i+=" useRepeaterContext='"+t[this.props.slug].useRepeaterContext+"'"),i+=" type='url'",i+="]";let r=i,s=this.state.tempContent?this.state.tempContent:"",a=this.props.slug;if(this.props.slug.includes(":")){const e=this.props.slug.split(":");if(e[0]){a=e[0];const t=e[2];r=this.props.attributes[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:i}),n)),s=this.props.attributes[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:""}),n))}}this.props.setAttributes({kadenceDynamic:t,[a]:t[this.props.slug].enable?r:s})}componentDidMount(){const{attributes:{kadenceDynamic:e}}=this.props,t=e&&e[this.props.slug]?e[this.props.slug]:this.defaultOptions;!this.props.context||void 0===this.props.context["kadence/repeaterRow"]||t?.field||t?.source||this.saveDynamicSettings({useRepeaterContext:!0})}render(){const{attributes:{kadenceDynamic:t},editedPostId:n}=this.props,o=[].concat.apply([],kadenceDynamicParams.linkFields.map(e=>e.options)),i=t&&t[this.props.slug]?t[this.props.slug]:this.defaultOptions;let r=i.source?i.source:"";!r&&this.props.context&&this.props.context.postId&&(r=this.props.context.postId);let s={};this.props.context&&this.props.context["kadence/repeaterRowData"]&&(s=this.props.context["kadence/repeaterRowData"]);const l=s?Object.keys(s).map((e,t)=>({value:e,label:e})):null,c={menuPortal:e=>({...e,zIndex:99999999})};return(0,e.createElement)(er,null,(0,e.createElement)(nr,{label:(0,a.__)("Enable Dynamic URL","kadence-blocks-pro"),checked:void 0!==i.enable&&i.enable,onChange:e=>{e&&this.setState({tempContent:this.props.attributes[this.props.slug]?this.props.attributes[this.props.slug]:""}),this.saveDynamicSettings({enable:e})}}),void 0!==i.enable&&i.enable&&(0,e.createElement)(er,null,this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(0,e.createElement)(er,null,(0,e.createElement)(nr,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==i.useRepeaterContext&&i.useRepeaterContext,onChange:e=>{this.saveDynamicSettings({useRepeaterContext:e})}}),i.useRepeaterContext&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Repeater Field","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:l,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==i.field?{value:i.field,label:i.field}:"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:c,maxMenuHeight:200,placeholder:(0,a.__)("None"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}})))),!i.useRepeaterContext&&(0,e.createElement)(er,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("URL","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.urlFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==i.field?o.filter(({value:e})=>e===i.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:c,maxMenuHeight:200,placeholder:(0,a.__)("None"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}}))),void 0!==i.field&&"post"===i.field.split("|")[0]&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Link Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:i.source?(0,e.createElement)(se,{source:i.source,field:"post|post_title"}):(0,a.__)("Current Post","kadence-blocks-pro"),onChange:e=>{this.saveDynamicSettings({source:e})}})),void 0!==i.field&&("post|post_custom_field"===i.field||"user|user_custom_field"===i.field||"author|author_custom_field"===i.field||"archive|archive_custom_field"===i.field||"media|media_custom_field"===i.field||"relationship|post_custom_field"===i.field||"site|custom_setting"===i.field)&&(0,e.createElement)(er,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==i.para?i.para:"",onChange:e=>{this.saveDynamicSettings({para:e})},source:i.source?i.source:"",field:i.field,contextPost:r,type:"url",showAll:!!i.showAll&&i.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==i.para&&"kb_custom_input"===i.para&&(0,e.createElement)(or,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==i.custom?i.custom:"",onChange:e=>{this.saveDynamicSettings({custom:e})}})),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(tr,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(or,{label:(0,a.__)("Before URL","kadence-blocks-pro"),value:void 0!==i.before?i.before:"",onChange:e=>{this.saveDynamicSettings({before:e})}}),(0,e.createElement)(or,{label:(0,a.__)("After URL","kadence-blocks-pro"),value:void 0!==i.after?i.after:"",onChange:e=>{this.saveDynamicSettings({after:e})}}),(0,e.createElement)(or,{label:(0,a.__)("Fallback URL","kadence-blocks-pro"),value:void 0!==i.fallback?i.fallback:"",onChange:e=>{this.saveDynamicSettings({fallback:e})}}))))))}}),{Component:dr,Fragment:ur}=wp.element,{Button:hr,Popover:pr}=wp.components,gr=class extends dr{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}render(){const{attributes:{kadenceDynamic:t}}=this.props,{open:n}=this.state;return(0,e.createElement)(ur,null,(0,e.createElement)(hr,{className:"kb-dynamic-url-sidebar",icon:C,onClick:()=>this.debouncedToggle(),isPressed:void 0!==t&&void 0!==t[this.props.slug]&&void 0!==t[this.props.slug].enable&&""!==t[this.props.slug].enable&&t[this.props.slug].enable,"aria-haspopup":"true","aria-expanded":n,label:(0,a.__)("Dynamic URL","kadence-blocks-pro"),showTooltip:!0}),n&&(0,e.createElement)(pr,{className:"kb-dynamic-popover",position:"bottom right",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(cr,{...this.props}))))}},{Component:mr,Fragment:fr}=wp.element,{PanelBody:br,ToggleControl:vr,TextControl:yr,RangeControl:kr,SelectControl:xr,Button:wr,Popover:_r,Toolbar:Cr}=wp.components,{dynamicBackgroundEndpoint:Sr,dynamicImageFallback:Er}=window.kadenceDynamicParams,{apiFetch:Mr}=wp,{addQueryArgs:$r}=wp.url,Ar=class extends mr{constructor(){super(...arguments),this.saveDynamicSettings=this.saveDynamicSettings.bind(this),this.getContent=this.getContent.bind(this),this.state={tempContent:!1,updateFailed:!1},this.debouncedGetContent=(0,u.debounce)(this.getContent.bind(this),200),this.debouncedSaveDynamicSettings=(0,u.debounce)(this.saveDynamicSettings.bind(this),200),this.defaultOptions={enable:!1,useRepeaterContext:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}}saveDynamicSettings(e){let t=this.props.attributes.kadenceDynamic;t||(t={},t[this.props.slug]=this.defaultOptions),t[this.props.slug]||(t[this.props.slug]=this.defaultOptions);let n=kadence_blocks_params.ajax_loader,o=this.props.slug,i="";this.state.tempContent&&(i=this.state.tempContent,this.state.tempContent[0].bgImg&&!t[this.props.slug].fallback&&(t[this.props.slug].fallback=this.state.tempContent[0].bgImg));let r=i;if(this.props.slug.includes(":")){const e=this.props.slug.split(":");if(e[0]){o=e[0];const t=e[2];n=this.props.attributes[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:kadence_blocks_params.ajax_loader}),n)),r=this.props.attributes[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:i}),n))}}if(t[this.props.slug]={...t[this.props.slug],...e},t=JSON.parse(JSON.stringify(t)),this.props.setAttributes({kadenceDynamic:t,[o]:t[this.props.slug].enable?n:r}),t[this.props.slug].enable){let e=null;!t[this.props.slug].source&&this.props.context&&this.props.context.postId&&(e=this.props.context.postId);let n="";this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(n=this.props.context["kadence/repeaterRow"]);let o="";this.props.context&&void 0!==this.props.context["kadence/dynamicSource"]&&(o=this.props.context["kadence/dynamicSource"]),this.debouncedGetContent(t[this.props.slug],e,n,o)}}getContent(e,t,n="",o=""){X({...G(e,t,n,o),type:"background"}).then(e=>{let t=e||Er,n=this.props.slug;if(this.props.slug.includes(":")){const o=this.props.slug.split(":");if(o[0]){n=o[0];const i=o[2];t=this.props.attributes[o[0]].map((t,n)=>(Number(o[1])===n&&(t={...t,[i]:e||Er}),t))}}this.props.setAttributes({[n]:t})}).catch(()=>{this.setState({updateFailed:!0})})}componentDidMount(){const{attributes:{kadenceDynamic:e}}=this.props,t=e&&e[this.props.slug]?e[this.props.slug]:this.defaultOptions;!this.props.context||void 0===this.props.context["kadence/repeaterRow"]||t?.field||t?.source||this.saveDynamicSettings({useRepeaterContext:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,n=[].concat.apply([],kadenceDynamicParams.backgroundFields.map(e=>e.options)),o=t&&t[this.props.slug]?t[this.props.slug]:this.defaultOptions;let i=o.source?o.source:"";return!i&&this.props.context&&this.props.context.postId&&(i=this.props.context.postId),(0,e.createElement)(fr,null,(0,e.createElement)(vr,{label:(0,a.__)("Enable Dynamic Background Image","kadence-blocks-pro"),checked:void 0!==o.enable&&o.enable,onChange:e=>{e?(this.setState({tempContent:this.props.attributes[this.props.slug]}),this.debouncedSaveDynamicSettings({enable:e})):this.saveDynamicSettings({enable:e})}}),void 0!==o.enable&&o.enable&&(0,e.createElement)(fr,null,this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(0,e.createElement)(fr,null,(0,e.createElement)(vr,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==o.useRepeaterContext&&o.useRepeaterContext,onChange:e=>{this.saveDynamicSettings({useRepeaterContext:e})}}),o.useRepeaterContext&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(Ei,{label:(0,a.__)("Repeater Field","kadence-blocks-pro"),value:void 0!==o.field?o.field:"",onChange:e=>{e?this.saveDynamicSettings({field:e}):this.saveDynamicSettings({field:""})},source:o.source?o.source:"",useRepeaterContext:o.useRepeaterContext,context:this.props.context,contextPost:i,field:o.field,type:"image",showAll:!1})))),!o.useRepeaterContext&&(0,e.createElement)(fr,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Background Image","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.backgroundFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==o.field?n.filter(({value:e})=>e===o.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("None"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}}))),void 0!==o.field&&("post"===o.field.split("|")[0]||"relationship"===o.field.split("|")[0]||"author"===o.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Image Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:o.source?(0,e.createElement)(se,{source:o.source,field:"post|post_title"}):(0,a.__)("Current Post","kadence-blocks-pro"),onChange:e=>{this.saveDynamicSettings({source:e})}}),kbpData.isKadenceE&&!o.source&&(0,e.createElement)("span",{className:"kb-dynamic-subtitle"},(0,a.__)("*Using Previewing Post","kadence-blocks-pro"))),void 0!==o.field&&"relationship"===o.field.split("|")[0]&&(0,e.createElement)(fr,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==o.relate?o.relate:"",onChange:e=>{this.saveDynamicSettings({relate:e})},source:o.source?o.source:"",type:"relationship",contextPost:i,showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.relate&&"kb_custom_input"===o.relate&&(0,e.createElement)(yr,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.relcustom?o.relcustom:"",onChange:e=>{this.saveDynamicSettings({relcustom:e})}})),void 0!==o.field&&("post|post_custom_field"===o.field||"user|user_custom_field"===o.field||"author|author_custom_field"===o.field||"archive|archive_custom_field"===o.field||"media|media_custom_field"===o.field||"relationship|post_custom_field"===o.field||"site|custom_setting"===o.field)&&(0,e.createElement)(fr,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==o.para?o.para:"",onChange:e=>{this.saveDynamicSettings({para:e})},source:o.source?o.source:"",relate:"relationship"===o.field.split("|")[0]&&void 0!==o.relate?o.relate:void 0,relcustom:"relationship"===o.field.split("|")[0]&&"kb_custom_input"===o.relate&&void 0!==o.relcustom?o.relcustom:void 0,field:o.field,type:"background",contextPost:i,showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.para&&"kb_custom_input"===o.para&&(0,e.createElement)(yr,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.custom?o.custom:"",onChange:e=>{this.saveDynamicSettings({custom:e})}}))),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(br,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(xr,{label:(0,a.__)("Image Size","kadence-blocks-pro"),value:void 0!==o.before?o.before:"",options:[{value:"",label:(0,a.__)("Full","kadence-blocks-pro")},{value:"large",label:(0,a.__)("Large","kadence-blocks-pro")},{value:"medium_large",label:(0,a.__)("Medium Large","kadence-blocks-pro")},{value:"medium",label:(0,a.__)("Medium","kadence-blocks-pro")},{value:"thumbnail",label:(0,a.__)("Thumbnail","kadence-blocks-pro")}],onChange:e=>{this.saveDynamicSettings({before:e})}}),(0,e.createElement)(yr,{label:(0,a.__)("Fallback Image URL","kadence-blocks-pro"),value:void 0!==o.fallback?o.fallback:"",onChange:e=>{this.saveDynamicSettings({fallback:e})}})))))}},{Component:Tr,Fragment:Rr}=wp.element,{Button:Lr,Popover:Or,Toolbar:Dr}=wp.components,Nr=class extends Tr{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}componentDidMount(){this.props.startOpen&&this.setState({open:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,{open:n}=this.state;return(0,e.createElement)("div",{className:"kb-dynamic-background-sidebar-wrap"},(0,e.createElement)(Lr,{className:"kb-dynamic-background-sidebar",isTertiary:!0,icon:C,onClick:()=>this.debouncedToggle(),isPressed:void 0!==t&&void 0!==t[this.props.slug]&&void 0!==t[this.props.slug].enable&&""!==t[this.props.slug].enable&&t[this.props.slug].enable,"aria-haspopup":"true","aria-expanded":n,label:(0,a.__)("Dynamic Background Image","kadence-blocks-pro"),showTooltip:!0}),n&&(0,e.createElement)(Or,{className:"kb-dynamic-popover",position:"bottom right",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(Ar,{...this.props}))))}},{Component:jr,Fragment:Ir}=wp.element,{PanelBody:zr,ToggleControl:Fr,TextControl:Br,SelectControl:Pr}=wp.components,{dynamicImageEndpoint:Hr,dynamicImageFallback:Vr}=window.kadenceDynamicParams,{apiFetch:Wr}=wp,{addQueryArgs:Ur}=wp.url,Gr=class extends jr{constructor(){super(...arguments),this.saveDynamicSettings=this.saveDynamicSettings.bind(this),this.getContent=this.getContent.bind(this),this.state={tempContent:!1,updateFailed:!1},this.debouncedGetContent=(0,u.debounce)(this.getContent.bind(this),200),this.debouncedSaveDynamicSettings=(0,u.debounce)(this.saveDynamicSettings.bind(this),200),this.defaultOptions={enable:!1,useRepeaterContext:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}}saveDynamicSettings(e){let t=this.props.attributes.kadenceDynamic;t||(t={},t[this.props.slug]=this.defaultOptions),t[this.props.slug]||(t[this.props.slug]=this.defaultOptions);let n=kadence_blocks_params.ajax_loader,o=this.props.slug,i="";this.state.tempContent&&(i=this.state.tempContent,this.state.tempContent[0].bgImg&&!t[this.props.slug].fallback&&(t[this.props.slug].fallback=this.state.tempContent[0].bgImg));let r=i,s={},a={},l="";if(this.props.slug.includes(":")){const e=this.props.slug.split(":");e[0]&&(o=e[0],"background"===o?(l=e[2],s={[l]:kadence_blocks_params.ajax_loader,imgID:"",imgAlt:"",imgWidth:192,imageHeight:192},a={[l]:i,imgID:"",imgAlt:"",imgWidth:"",imageHeight:""}):(l=e[2],s={id:"",[l]:kadence_blocks_params.ajax_loader,width:192,height:192,subtype:""},a={[l]:i,id:"",width:"",height:"",subtype:""}),n=this.props.attributes[e[0]].map((t,n)=>(Number(e[1])===n&&(t={...t,...s}),t)),r=this.props.attributes[e[0]].map((t,n)=>(Number(e[1])===n&&(t={...t,...a}),t)))}if(t[this.props.slug]={...t[this.props.slug],...e},t=JSON.parse(JSON.stringify(t)),this.props.setAttributes({kadenceDynamic:t,[o]:t[this.props.slug].enable?n:r}),t[this.props.slug].enable){let e=null;!t[this.props.slug].source&&this.props.context&&this.props.context.postId&&(e=this.props.context.postId);let n="";this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(n=this.props.context["kadence/repeaterRow"]);let o="";this.props.context&&this.props.context["kadence/dynamicSource"]&&(o=this.props.context["kadence/dynamicSource"]),this.debouncedGetContent(t[this.props.slug],e,n,o)}}getContent(e,t,n="",o=""){X({...G(e,t,n,o),type:"image"}).then(e=>{const t=e||[Vr,1080,1080];let n={},o=t[0];const i=t[1],r=t[2];let s=this.props.slug,a="";if(this.props.slug.includes(":")){const e=this.props.slug.split(":");e[0]&&(s=e[0],"background"===s?(a=e[2],n={img:o,imgID:"",imgAlt:"",imgWidth:i,imageHeight:r}):(a=e[2],n={id:"",url:o,alt:"",width:i,height:r,maxWidth:this.props.attributes[e[0]][e[1]].maxWidth?this.props.attributes[e[0]][e[1]].maxWidth:i,subtype:""}),o=this.props.attributes[e[0]].map((t,o)=>(Number(e[1])===o&&(t={...t,...n}),t)))}this.props.slug.includes(":")?this.props.setAttributes({[s]:o}):this.props.slug.includes("media")?this.props.setAttributes({[s]:o,mediaWidth:i,mediaHeight:r}):"url"===this.props.slug?this.props.setAttributes({[s]:o,id:void 0,width:void 0,height:void 0,sizeSlug:"full"}):this.props.setAttributes({[s]:o,imgWidth:i,imgHeight:r})}).catch(()=>{this.setState({updateFailed:!0})})}componentDidMount(){const{attributes:{kadenceDynamic:e}}=this.props,t=e&&e[this.props.slug]?e[this.props.slug]:this.defaultOptions;!this.props.context||void 0===this.props.context["kadence/repeaterRow"]||t?.field||t?.source||this.saveDynamicSettings({useRepeaterContext:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,n=[].concat.apply([],kadenceDynamicParams.imageFields.map(e=>e.options)),o=t&&t[this.props.slug]?t[this.props.slug]:this.defaultOptions;let i=o.source?o.source:"";!i&&this.props.context&&this.props.context.postId&&(i=this.props.context.postId);let r={};return this.props.context&&this.props.context["kadence/repeaterRowData"]&&this.props.context["kadence/repeaterRowData"],(0,e.createElement)(Ir,null,(0,e.createElement)(Fr,{label:(0,a.__)("Enable Dynamic Image","kadence-blocks-pro"),checked:void 0!==o.enable&&o.enable,onChange:e=>{e?(this.setState({tempContent:this.props.attributes[this.props.slug]}),this.debouncedSaveDynamicSettings({enable:e})):this.saveDynamicSettings({enable:e})}}),void 0!==o.enable&&o.enable&&(0,e.createElement)(Ir,null,this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(0,e.createElement)(Ir,null,(0,e.createElement)(Fr,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==o.useRepeaterContext&&o.useRepeaterContext,onChange:e=>{this.saveDynamicSettings({useRepeaterContext:e})}}),o.useRepeaterContext&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(Ei,{label:(0,a.__)("Repeater Field","kadence-blocks-pro"),value:void 0!==o.field?o.field:"",onChange:e=>{e?this.saveDynamicSettings({field:e}):this.saveDynamicSettings({field:""})},source:o.source?o.source:"",useRepeaterContext:o.useRepeaterContext,context:this.props.context,contextPost:i,field:o.field,type:"image",showAll:!1})))),!o.useRepeaterContext&&(0,e.createElement)(Ir,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Image","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.imageFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==o.field?n.filter(({value:e})=>e===o.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("None"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}}))),void 0!==o.field&&("post"===o.field.split("|")[0]||"relationship"===o.field.split("|")[0]||"author"===o.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Image Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:o.source?(0,e.createElement)(se,{source:o.source,field:"post|post_title"}):(0,a.__)("Current Post"),onChange:e=>{this.saveDynamicSettings({source:e})}}),kbpData.isKadenceE&&!o.source&&(0,e.createElement)("span",{className:"kb-dynamic-subtitle"},(0,a.__)("*Previewing Latest Post","kadence-blocks-pro"))),void 0!==o.field&&"relationship"===o.field.split("|")[0]&&(0,e.createElement)(Ir,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==o.relate?o.relate:"",onChange:e=>{this.saveDynamicSettings({relate:e})},source:o.source?o.source:"",type:"relationship",contextPost:i,showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.relate&&"kb_custom_input"===o.relate&&(0,e.createElement)(Br,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.relcustom?o.relcustom:"",onChange:e=>{this.saveDynamicSettings({relcustom:e})}})),void 0!==o.field&&("post|post_custom_field"===o.field||"user|user_custom_field"===o.field||"author|author_custom_field"===o.field||"archive|archive_custom_field"===o.field||"media|media_custom_field"===o.field||"relationship|post_custom_field"===o.field||"site|custom_setting"===o.field)&&(0,e.createElement)(Ir,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==o.para?o.para:"",onChange:e=>{this.saveDynamicSettings({para:e})},source:o.source?o.source:"",field:o.field,type:"image",relate:"relationship"===o.field.split("|")[0]&&void 0!==o.relate?o.relate:void 0,relcustom:"relationship"===o.field.split("|")[0]&&"kb_custom_input"===o.relate&&void 0!==o.relcustom?o.relcustom:void 0,contextPost:i,showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.para&&"kb_custom_input"===o.para&&(0,e.createElement)(Br,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.custom?o.custom:"",onChange:e=>{this.saveDynamicSettings({custom:e})}}))),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(zr,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(Pr,{label:(0,a.__)("Image Size","kadence-blocks-pro"),value:void 0!==o.before?o.before:"",options:kadenceDynamicParams.imageSizes,onChange:e=>{this.saveDynamicSettings({before:e})}}),(0,e.createElement)(Br,{label:(0,a.__)("Fallback Image URL","kadence-blocks-pro"),value:void 0!==o.fallback?o.fallback:"",onChange:e=>{this.saveDynamicSettings({fallback:e})}})))))}},{Component:Zr,Fragment:qr}=wp.element,{Button:Kr,Popover:Yr,Toolbar:Xr}=wp.components,Qr=class extends Zr{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}componentDidMount(){this.props.startOpen&&this.setState({open:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,{open:n}=this.state;return(0,e.createElement)("div",{className:"kb-dynamic-image-sidebar-wrap kb-dynamic-background-sidebar-wrap"},(0,e.createElement)(Kr,{className:"kb-dynamic-image-sidebar kb-dynamic-background-sidebar",isTertiary:!0,icon:C,onClick:()=>this.debouncedToggle(),isPressed:void 0!==t&&void 0!==t[this.props.slug]&&void 0!==t[this.props.slug].enable&&""!==t[this.props.slug].enable&&t[this.props.slug].enable,"aria-haspopup":"true","aria-expanded":n,label:(0,a.__)("Dynamic Image","kadence-blocks-pro"),showTooltip:!0}),n&&(0,e.createElement)(Yr,{className:"kb-dynamic-popover",position:"bottom right",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(Gr,{...this.props}))))}},{Component:Jr,Fragment:es}=wp.element,{PanelBody:ts,ToggleControl:ns,TextControl:os,SelectControl:is}=wp.components,{dynamicGalleryEndpoint:rs,dynamicGalleryFallback:ss}=window.kadenceDynamicParams,{apiFetch:as}=wp,{addQueryArgs:ls}=wp.url,cs=class extends Jr{constructor(){super(...arguments),this.saveDynamicSettings=this.saveDynamicSettings.bind(this),this.getContent=this.getContent.bind(this),this.state={tempContent:!1,updateFailed:!1},this.debouncedGetContent=(0,u.debounce)(this.getContent.bind(this),200),this.debouncedSaveDynamicSettings=(0,u.debounce)(this.saveDynamicSettings.bind(this),200),this.defaultOptions={enable:!1,useRepeaterContext:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}}saveDynamicSettings(e){let t=this.props.attributes.kadenceDynamic;t||(t={},t[this.props.slug]=this.defaultOptions),t[this.props.slug]||(t[this.props.slug]=this.defaultOptions);const n=[{url:kadence_blocks_params.ajax_loader}],o=this.props.slug+"Dynamic";let i=[];if(this.state.tempContent&&(i=this.state.tempContent),t[this.props.slug]={...t[this.props.slug],...e},t=JSON.parse(JSON.stringify(t)),this.props.setAttributes({kadenceDynamic:t,[o]:t[this.props.slug].enable?n:i}),t[this.props.slug].enable){let e=null;!t[this.props.slug].source&&this.props.context&&this.props.context.postId&&(e=this.props.context.postId);let n="";this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(n=this.props.context["kadence/repeaterRow"]);let o="";this.props.context&&this.props.context["kadence/dynamicSource"]&&(o=this.props.context["kadence/dynamicSource"]),this.debouncedGetContent(t[this.props.slug],e,n,o)}}getContent(e,t,n="",o=""){X({...G(e,t,n,o),type:"gallery"}).then(e=>{const t=e||ss,n=this.props.slug+"Dynamic";this.props.setAttributes({[n]:t})}).catch(()=>{this.setState({updateFailed:!0})})}componentDidMount(){const{attributes:{kadenceDynamic:e}}=this.props,t=e&&e[this.props.slug]?e[this.props.slug]:this.defaultOptions;!this.props.context||void 0===this.props.context["kadence/repeaterRow"]||t?.field||t?.source||this.saveDynamicSettings({useRepeaterContext:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,n=[].concat.apply([],kadenceDynamicParams.galleryFields.map(e=>e.options)),o=t&&t[this.props.slug]?t[this.props.slug]:this.defaultOptions;let i=o.source?o.source:"";!i&&this.props.context&&this.props.context.postId&&(i=this.props.context.postId);let r={};return this.props.context&&this.props.context["kadence/repeaterRowData"]&&this.props.context["kadence/repeaterRowData"],(0,e.createElement)(es,null,(0,e.createElement)(ns,{label:(0,a.__)("Enable Dynamic Gallery","kadence-blocks-pro"),checked:void 0!==o.enable&&o.enable,onChange:e=>{e?(this.setState({tempContent:this.props.attributes[this.props.slug]}),this.debouncedSaveDynamicSettings({enable:e})):this.saveDynamicSettings({enable:e})}}),void 0!==o.enable&&o.enable&&(0,e.createElement)(es,null,this.props.context&&void 0!==this.props.context["kadence/repeaterRow"]&&(0,e.createElement)(es,null,(0,e.createElement)(ns,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==o.useRepeaterContext&&o.useRepeaterContext,onChange:e=>{this.saveDynamicSettings({useRepeaterContext:e})}}),o.useRepeaterContext&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(Ei,{label:(0,a.__)("Repeater Field","kadence-blocks-pro"),value:void 0!==o.field?o.field:"",onChange:e=>{e?this.saveDynamicSettings({field:e}):this.saveDynamicSettings({field:""})},source:o.source?o.source:"",useRepeaterContext:o.useRepeaterContext,context:this.props.context,contextPost:i,field:o.field,type:"gallery",showAll:!1})))),!o.useRepeaterContext&&(0,e.createElement)(es,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Gallery","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.galleryFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==o.field?n.filter(({value:e})=>e===o.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("None"),onChange:e=>{e?this.saveDynamicSettings({field:e.value}):this.saveDynamicSettings({field:""})}}))),void 0!==o.field&&("post"===o.field.split("|")[0]||"relationship"===o.field.split("|")[0]||"author"===o.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Gallery Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:o.source?(0,e.createElement)(se,{source:o.source,field:"post|post_title"}):(0,a.__)("Current Post"),onChange:e=>{this.saveDynamicSettings({source:e})}}),kbpData.isKadenceE&&!o.source&&(0,e.createElement)("span",{className:"kb-dynamic-subtitle"},(0,a.__)("*Previewing Latest Post","kadence-blocks-pro"))),void 0!==o.field&&"relationship"===o.field.split("|")[0]&&(0,e.createElement)(es,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==o.relate?o.relate:"",onChange:e=>{this.saveDynamicSettings({relate:e})},source:o.source?o.source:"",type:"relationship",contextPost:i,showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.relate&&"kb_custom_input"===o.relate&&(0,e.createElement)(os,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.relcustom?o.relcustom:"",onChange:e=>{this.saveDynamicSettings({relcustom:e})}})),void 0!==o.field&&("post|post_custom_field"===o.field||"user|user_custom_field"===o.field||"author|author_custom_field"===o.field||"archive|archive_custom_field"===o.field||"media|media_custom_field"===o.field||"relationship|post_custom_field"===o.field||"site|custom_setting"===o.field)&&(0,e.createElement)(es,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==o.para?o.para:"",onChange:e=>{this.saveDynamicSettings({para:e})},source:o.source?o.source:"",field:o.field,type:"gallery",relate:"relationship"===o.field.split("|")[0]&&void 0!==o.relate?o.relate:void 0,relcustom:"relationship"===o.field.split("|")[0]&&"kb_custom_input"===o.relate&&void 0!==o.relcustom?o.relcustom:void 0,contextPost:i,showAll:!!o.showAll&&o.showAll,onShowAll:e=>{this.saveDynamicSettings({showAll:e})}}),void 0!==o.para&&"kb_custom_input"===o.para&&(0,e.createElement)(os,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==o.custom?o.custom:"",onChange:e=>{this.saveDynamicSettings({custom:e})}}))),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(ts,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(is,{label:(0,a.__)("Images Size","kadence-blocks-pro"),value:void 0!==o.before?o.before:"",options:kadenceDynamicParams.imageSizes,onChange:e=>{this.saveDynamicSettings({before:e})}})))))}},{Component:ds}=wp.element,{Button:us,Popover:hs}=wp.components,ps=class extends ds{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}componentDidMount(){this.props.startOpen&&this.setState({open:!0})}render(){const{attributes:{kadenceDynamic:t}}=this.props,{open:n}=this.state;return(0,e.createElement)("div",{className:"kb-dynamic-image-sidebar-wrap kb-dynamic-background-sidebar-wrap"},(0,e.createElement)(us,{className:"kb-dynamic-image-sidebar kb-dynamic-background-sidebar",isTertiary:!0,icon:C,onClick:()=>this.debouncedToggle(),isPressed:void 0!==t&&void 0!==t[this.props.slug]&&void 0!==t[this.props.slug].enable&&""!==t[this.props.slug].enable&&t[this.props.slug].enable,"aria-haspopup":"true","aria-expanded":n,label:(0,a.__)("Dynamic Gallery","kadence-blocks-pro"),showTooltip:!0}),n&&(0,e.createElement)(hs,{className:"kb-dynamic-popover",position:"bottom right",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(cs,{...this.props}))))}};function gs({slug:t,attributes:n,setAttributes:i,context:s,name:l}){const[c,d]=(0,o.useState)(),{kadenceDynamic:u}=n,h=[].concat.apply([],kadenceDynamicParams.inputFields.map(e=>e.options)),p=u&&u[t]?u[t]:{enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""};let g=p.source?p.source:"";!g&&s&&s.postId&&(g=s.postId);const m="kadence/rowlayout"==l?"url":"text",f=e=>{let o=n?.kadenceDynamic;o||(o={},o[t]={enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}),o[t]||(o[t]={enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:""}),o[t]={...o[t],...e},o=JSON.parse(JSON.stringify(o));let r="[kb-dynamic";o[t].source&&(r+=" source='"+o[t].source+"'"),o[t].field&&(r+=" field='"+o[t].field+"'"),o[t].para&&(r+=" para='"+o[t].para+"'"),o[t].custom&&(r+=" custom='"+o[t].custom+"'"),o[t].fallback&&(r+=" fallback='"+o[t].fallback+"'"),o[t].before&&(r+=" before='"+o[t].before+"'"),o[t].after&&(r+=" after='"+o[t].after+"'"),o[t].relate&&(r+=" relate='"+o[t].relate+"'"),o[t].relcustom&&(r+=" relcustom='"+o[t].relcustom+"'"),r+=" type='input'",r+="]";let s=r,a=c||"",l=t;if(t.includes(":")){const e=t.split(":");if(e[0]){l=e[0];const t=e[2];s=n[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:r}),n)),a=n[e[0]].map((n,o)=>(Number(e[1])===o&&(n={...n,[t]:""}),n))}}i({kadenceDynamic:o,[l]:o[t].enable?s:a})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Enable Dynamic Content","kadence-blocks-pro"),checked:void 0!==p.enable&&p.enable,onChange:e=>{e&&d(n[t]?n[t]:""),f({enable:e})}}),void 0!==p.enable&&p.enable&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Content","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.inputFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==p.field?h.filter(({value:e})=>e===p.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("None"),onChange:e=>{f(e?{field:e.value}:{field:""})}}))),void 0!==p.field&&("post"===p.field.split("|")[0]||"relationship"===p.field.split("|")[0]||"author"===p.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Content Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:p.source?(0,e.createElement)(se,{source:p.source,field:"post|post_title"}):(0,a.__)("Current Post"),onChange:e=>{f({source:e})}}),kbpData.isKadenceE&&!p.source&&(0,e.createElement)("span",{className:"kb-dynamic-subtitle"},(0,a.__)("*Previewing Latest Post","kadence-blocks-pro"))),void 0!==p.field&&"relationship"===p.field.split("|")[0]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==p.relate?p.relate:"",onChange:e=>{f({relate:e})},source:p.source?p.source:"",type:"relationship",showAll:!!p.showAll&&p.showAll,onShowAll:e=>{f({showAll:e})}}),void 0!==p.relate&&"kb_custom_input"===p.relate&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==p.relcustom?p.relcustom:"",onChange:e=>{f({relcustom:e})}})),void 0!==p.field&&("post|post_custom_field"===p.field||"user|user_custom_field"===p.field||"author|author_custom_field"===p.field||"archive|archive_custom_field"===p.field||"media|media_custom_field"===p.field||"relationship|post_custom_field"===p.field||"site|custom_setting"===p.field)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==p.para?p.para:"",onChange:e=>{f({para:e})},source:p.source?p.source:"",relate:"relationship"===p.field.split("|")[0]&&void 0!==p.relate?p.relate:void 0,relcustom:"relationship"===p.field.split("|")[0]&&"kb_custom_input"===p.relate&&void 0!==p.relcustom?p.relcustom:void 0,contextPost:g,type:m,showAll:!!p.showAll&&p.showAll,onShowAll:e=>{f({showAll:e})}}),void 0!==p.para&&"kb_custom_input"===p.para&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==p.custom?p.custom:"",onChange:e=>{f({custom:e})}})),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Before Content","kadence-blocks-pro"),value:void 0!==p.before?p.before:"",onChange:e=>{f({before:e})}}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("After Content","kadence-blocks-pro"),value:void 0!==p.after?p.after:"",onChange:e=>{f({after:e})}}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Fallback Content","kadence-blocks-pro"),value:void 0!==p.fallback?p.fallback:"",onChange:e=>{f({fallback:e})}})))))}var ms=n(38221),fs=n.n(ms);const{Component:bs,Fragment:vs}=wp.element,{Button:ys,Popover:ks}=wp.components;function xs({attributes:t,setAttributes:n,slug:i,context:r,name:s}){const{kadenceDynamic:l}=t,[c,d]=(0,o.useState)(),[u,h]=(0,o.useState)(!1),p=fs()(()=>{h(!u)},100);return(0,e.createElement)("div",{className:"kb-dynamic-form-input-sidebar-wrap"},(0,e.createElement)(ys,{className:"kb-dynamic-form-input-sidebar",icon:C,onClick:()=>p(),ref:d,isPressed:void 0!==l&&void 0!==l[i]&&void 0!==l[i].enable&&""!==l[i].enable&&l[i].enable,"aria-haspopup":"true","aria-expanded":u,label:(0,a.__)("Dynamic Content","kadence-blocks"),showTooltip:!0}),u&&(0,e.createElement)(ks,{headerTitle:(0,a.__)("Select Dynamic Source","kadence-blocks"),noArrow:!1,onClose:p,placement:"bottom-end",anchor:c,className:"kb-dynamic-popover"},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(gs,{slug:i,attributes:t,setAttributes:n,context:r,name:s}))))}const{dynamicBackgroundEndpoint:ws,dynamicImageFallback:_s}=window.kadenceDynamicParams,{apiFetch:Cs}=wp,{addQueryArgs:Ss}=wp.url,{addFilter:Es}=wp.hooks;Es("kadence.dynamicBackground","kadence/dynamic",function(e,t,n,o,i,r=()=>{},s=!1,a=()=>{},l=()=>{}){let c=null;i&&i.postId&&(c=i.postId);let d="";i&&void 0!==typeof i["kadence/repeaterRow"]&&(d=i["kadence/repeaterRow"]);let u="";if(i&&void 0!==typeof i["kadence/dynamicSource"]&&(u=i["kadence/dynamicSource"]),n&&""!==n&&void 0!==t?.kadenceDynamic?.[n]?.enable&&t.kadenceDynamic[n].enable){const i={source:void 0!==t?.kadenceDynamic?.[n]?.source?t.kadenceDynamic[n].source:"",field:void 0!==t?.kadenceDynamic?.[n]?.field?t.kadenceDynamic[n].field:"",custom:void 0!==t?.kadenceDynamic?.[n]?.custom?t.kadenceDynamic[n].custom:"",para:void 0!==t?.kadenceDynamic?.[n]?.para?t.kadenceDynamic[n].para:"",before:void 0!==t?.kadenceDynamic?.[n]?.before?t.kadenceDynamic[n].before:"",after:void 0!==t?.kadenceDynamic?.[n]?.after?t.kadenceDynamic[n].after:"",fallback:void 0!==t?.kadenceDynamic?.[n]?.fallback?t.kadenceDynamic[n].fallback:"",relate:void 0!==t?.kadenceDynamic?.[n]?.relate?t.kadenceDynamic[n].relate:"",relcustom:void 0!==t?.kadenceDynamic?.[n]?.relcustom?t.kadenceDynamic[n].relcustom:"",useRepeaterContext:void 0!==t?.kadenceDynamic?.[n]?.useRepeaterContext&&t.kadenceDynamic[n].useRepeaterContext};return a(),X({...G(i,c,d,u),type:"background"}).then(e=>{let i=e||_s,a=n;if(n.includes(":")){const o=n.split(":");if(o[0]){a=o[0];const n=o[2];i=t[o[0]].map((t,i)=>(Number(o[1])===i&&(t={...t,[n]:e||_s}),t))}}r(i),s&&o({[a]:i})}).catch(()=>{}),l(),e}return l(),e});const{dynamicImageEndpoint:Ms,dynamicImageFallback:$s}=window.kadenceDynamicParams,{apiFetch:As}=wp,{addQueryArgs:Ts}=wp.url,{addFilter:Rs}=wp.hooks;function Ls(e,t=null,n="",o=""){const{source:i,field:r,custom:s,para:a,before:l,after:c,fallback:d,relate:u,relcustom:h,showAll:p,useRepeaterContext:g}=e;let m=i||t;if(wp.data.select("core/editor")&&!m)if(kbpData.isKadenceE&&kadenceElementParams.previewPostID){const e=V(kadenceElementParams.previewPostID);m=e&&e.id?e.id:""}else m=wp.data.select("core/editor").getCurrentPostId();return o=U(o,m),{source:g?o:m,current:i||"current",field:r||"",custom:s||"",para:a||"",before:l||"",after:c||"",fallback:d||"",relate:u||"",relcustom:h||"",ignore_source:p||!1,useRepeaterContext:g||!1,repeaterRow:n}}Rs("kadence.dynamicImage","kadence/dynamic",function(e,t,n,o,i,r=()=>{},s=!1,a=()=>{},l=()=>{}){let c=null;i&&i.postId&&(c=i.postId);let d=null;i&&void 0!==i["kadence/repeaterRow"]&&(d=i["kadence/repeaterRow"]);let u=null;if(i&&void 0!==typeof i["kadence/dynamicSource"]&&i["kadence/dynamicSource"]&&(u=i["kadence/dynamicSource"]),n&&""!==n&&void 0!==t?.kadenceDynamic?.[n]?.enable&&t.kadenceDynamic[n].enable){const i={source:void 0!==t?.kadenceDynamic?.[n]?.source?t.kadenceDynamic[n].source:"",field:void 0!==t?.kadenceDynamic?.[n]?.field?t.kadenceDynamic[n].field:"",custom:void 0!==t?.kadenceDynamic?.[n]?.custom?t.kadenceDynamic[n].custom:"",para:void 0!==t?.kadenceDynamic?.[n]?.para?t.kadenceDynamic[n].para:"",before:void 0!==t?.kadenceDynamic?.[n]?.before?t.kadenceDynamic[n].before:"",after:void 0!==t?.kadenceDynamic?.[n]?.after?t.kadenceDynamic[n].after:"",fallback:void 0!==t?.kadenceDynamic?.[n]?.fallback?t.kadenceDynamic[n].fallback:"",relate:void 0!==t?.kadenceDynamic?.[n]?.relate?t.kadenceDynamic[n].relate:"",relcustom:void 0!==t?.kadenceDynamic?.[n]?.relcustom?t.kadenceDynamic[n].relcustom:"",useRepeaterContext:void 0!==t?.kadenceDynamic?.[n]?.useRepeaterContext&&t.kadenceDynamic[n].useRepeaterContext};return a(),X({...G(i,c,d,u),type:"image"}).then(e=>{const i=e&&("object"===e||Array.isArray(e)&&null!==e)?e:e?[e,1080,1080]:[$s,1080,1080];let a=i[0];const l=i[1],c=i[2];let d={},u="",h=n;if(n.includes(":")){const e=n.split(":");e[0]&&(h=e[0],"background"===h?(u=e[2],d={[u]:a,imgWidth:l,imageHeight:c}):(h=e[0],u=e[2],d={id:"",url:a,alt:"",width:l,height:c,maxWidth:t[e[0]][e[1]].maxWidth?t[e[0]][e[1]].maxWidth:l,subtype:""}),a=t[e[0]].map((t,n)=>(Number(e[1])===n&&(t={...t,...d}),t))),i[0]!==t[e[0]][e[1]][e[2]]&&(r(a),s&&o({[h]:a}))}else n.includes("media")?i[0]!==t[h]&&(r(a),s&&o({[h]:a,mediaWidth:l,mediaHeight:c})):"url"===h&&i[0]!==t[h]?(r(a),s&&o({[h]:a})):i[0]!==t[h]&&(r(a),s&&o({[h]:a,imgWidth:l,imgHeight:c}))}).catch(()=>{}),l(),e}return l(),e});const{dynamicLinkLabelEndpoint:Os}=window.kadenceDynamicParams,{apiFetch:Ds}=wp,{addQueryArgs:Ns}=wp.url,{Component:js,Fragment:Is}=wp.element,{Spinner:zs}=wp.components,Fs=class extends js{constructor(){super(...arguments),this.getContent=this.getContent.bind(this),this.state={content:"",loaded:!1},this.debouncedGetContent=(0,u.debounce)(this.getContent.bind(this),200)}componentDidMount(){this.getContent()}getContent(){const{contextPost:e,repeaterRow:t,dynamicSource:n}=this.props;X({...Ls(this.props,e,t,n),type:"link_label"}).then(e=>{this.setState({content:e,loaded:!0})}).catch(()=>{this.setState({content:"",loaded:!0})})}componentDidUpdate(e){const t=["source","field","custom","para","before","after","fallback","relate","relcustom"].reduce((t,n)=>t||e[n]!==this.props[n],!1),n=this.props.contextPost!==e.contextPost,o=this.props.dynamicSource!==e.dynamicSource;(t||n||o)&&(this.setState({loaded:!1}),this.debouncedGetContent())}render(){const{content:t,loaded:n}=this.state;return n?(0,e.createElement)("div",{className:"block-editor-url-popover__link-viewer block-editor-format-toolbar__link-container-content"},(0,e.createElement)("div",{className:"kb-dynamic-link-label"},C,(0,e.createElement)("span",{className:"kb-dynamic-link-inner-label",dangerouslySetInnerHTML:{__html:t||(0,a.__)("No Link","kadence-blocks-pro")}}))):(0,e.createElement)("div",{className:"block-editor-url-popover__link-viewer block-editor-format-toolbar__link-container-content"},(0,e.createElement)("div",{className:"kb-dynamic-link-label"},(0,e.createElement)(zs,null)))}},{dynamicInputLabelEndpoint:Bs}=window.kadenceDynamicParams,{apiFetch:Ps}=wp,{addQueryArgs:Hs}=wp.url,{Component:Vs,Fragment:Ws}=wp.element,{Spinner:Us}=wp.components,Gs=class extends Vs{constructor(){super(...arguments),this.getContent=this.getContent.bind(this),this.state={content:"",loaded:!1},this.debouncedGetContent=(0,u.debounce)(this.getContent.bind(this),200)}componentDidMount(){let e=null;this.props.context&&this.props.context.postId&&(e=this.props.context.postId),this.getContent(e)}getContent(e=null){X({...Ls(this.props,e),type:"input_label"}).then(e=>{this.setState({content:e,loaded:!0})}).catch(()=>{this.setState({content:"",loaded:!0})})}componentDidUpdate(e){const t=["source","field","custom","para","before","after","fallback","relate","relcustom"].reduce((t,n)=>t||e[n]!==this.props[n],!1),n=!(!this.props.context||!this.props.context.postId)&&this.props.context.postId!==e.context.postId;if(t||n){this.setState({loaded:!1});let e=null;this.props.context&&this.props.context.postId&&(e=this.props.context.postId),this.debouncedGetContent(e)}}render(){const{content:t,loaded:n}=this.state;return n?(0,e.createElement)("div",{className:"block-editor-url-popover__link-viewer block-editor-format-toolbar__link-container-content"},(0,e.createElement)("div",{className:"kb-dynamic-link-label"},C,(0,e.createElement)("span",{className:"kb-dynamic-link-inner-label",dangerouslySetInnerHTML:{__html:t||(0,a.__)("No Content","kadence-blocks-pro")}}))):(0,e.createElement)("div",{className:"block-editor-url-popover__link-viewer block-editor-format-toolbar__link-container-content"},(0,e.createElement)("div",{className:"kb-dynamic-link-label"},(0,e.createElement)(Us,null)))}},Zs=window.wp.richText,{dynamicRenderEndpoint:qs}=window.kadenceDynamicParams;class Ks extends o.Component{constructor(){super(...arguments),this.getContent=this.getContent.bind(this),this.toggle=this.toggle.bind(this),this.toggleOpen=this.toggleOpen.bind(this),this.state={open:!1,hasInit:!1,useRepeaterContext:!1,source:"",field:"",custom:"",para:"",fallback:"",relate:"",relcustom:"",showAll:!1,forceClose:!1,loading:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}componentDidUpdate(e){this.state.hasInit&&["source","useRepeaterContext","field","custom","para","before","after","fallback","relate","relcustom","showAll"].reduce((t,n)=>t||e.activeAttributes[n]!==this.props.activeAttributes[n],!1)&&this.setState({hasInit:!1})}toggle(){this.setState({open:!this.state.open})}toggleOpen(){this.setState({hasInit:!0}),this.toggle()}getContent(){const{useRepeaterContext:e,source:t,field:n,custom:o,para:i,fallback:r,relate:s,relcustom:l,showAll:c}=this.state;X({...G({source:t,field:n,custom:o,para:i,fallback:r,relate:s,relcustom:l,useRepeaterContext:e},this.props.previewPostID),type:"text"}).then(d=>{""===(d=d.toString())&&(d=(0,a.__)("No Content","kadence-blocks-pro"));let h=this.props.value.start,p=this.props.value.end;if(this.props.activeAttributes&&this.props.activeAttributes.field&&h===p){const e=this.props.value.formats.slice(),t=(0,u.find)(e[h],{type:"kadence/insert-dynamic"});if(t){for(;(0,u.find)(e[h],t);)h--;for(h++,p++;(0,u.find)(e[p],t);)p++}}let g='<span class="kb-inline-dynamic"';t&&(g+=` data-source="${t}"`),n&&(g+=` data-field="${n}"`),i&&(g+=` data-para="${i}"`),o&&(g+=` data-custom="${o}"`),r&&(g+=` data-fallback="${r}"`),s&&(g+=` data-relate="${s}"`),l&&(g+=` data-relcustom="${l}"`),e&&(g+=` data-useRepeaterContext="${e}"`),c&&(g+=' data-showall="true"'),g+=`>${d}</span>`;const m=(0,Zs.create)({html:g});this.props.onChange((0,Zs.insert)(this.props.value,m,h,p)),this.setState({open:!1,loading:!1,hasInit:!1,source:"",field:"",custom:"",para:"",fallback:"",relate:"",relcustom:"",useRepeaterContext:!1,showAll:!1})}).catch(()=>{let e='<span class="kb-inline-dynamic"';t&&(e+=` data-source="${t}"`),n&&(e+=` data-field="${n}"`),i&&(e+=` data-para="${i}"`),o&&(e+=` data-custom="${o}"`),r&&(e+=` data-fallback="${r}"`),s&&(e+=` data-relate="${s}"`),l&&(e+=` data-relcustom="${l}"`),c&&(e+=' data-showall="true"'),e+=`>${(0,a.__)("No Content","kadence-blocks-pro")}</span>`;const d=(0,Zs.create)({html:e});this.props.onChange((0,Zs.insert)(this.props.value,d)),this.setState({open:!1,loading:!1,hasInit:!1,source:"",field:"",custom:"",para:"",fallback:"",relate:"",relcustom:"",showAll:!1})})}render(){const{isActive:t}=this.props,{hasInit:n,open:s,source:l,field:c,custom:d,para:u,fallback:h,loading:p,forceClose:g,showAll:m,relate:f,relcustom:b,useRepeaterContext:v}=this.state;t&&!n&&this.props.activeAttributes&&this.props.activeAttributes.field&&this.setState({hasInit:!0,field:this.props.activeAttributes.field,source:this.props.activeAttributes.source,custom:this.props.activeAttributes.custom,para:this.props.activeAttributes.para,fallback:this.props.activeAttributes.fallback,relate:this.props.activeAttributes.relate,relcustom:this.props.activeAttributes.relcustom,showAll:!!this.props.activeAttributes.showAll});const y=[].concat.apply([],kadenceDynamicParams.textFields.map(e=>e.options));return(0,e.createElement)(i.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"kb-dynamic-menu",icon:C,onClick:this.toggleOpen,isPressed:t,"aria-haspopup":"true","aria-expanded":s,label:(0,a.__)("Dynamic Content","kadence-blocks-pro"),showTooltip:!0}),(s||t&&this.props.activeAttributes&&this.props.activeAttributes.field)&&(0,e.createElement)(r.Popover,{className:"kb-dynamic-popover",position:"bottom right",onClick:()=>{},expandOnMobile:!0,onClose:this.toggle,ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)(o.Fragment,null,!v&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Content","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.textFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:""!==c?y.filter(({value:e})=>e===c):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("None","kadence-blocks-pro"),onChange:e=>{e?this.setState({field:e.value}):this.setState({field:""})}}))),""!==c&&("post"===c.split("|")[0]||"author"===c.split("|")[0]||"relationship"===c.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title"},(0,a.__)("Content Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:l?(0,e.createElement)(se,{source:l,field:"post|post_title"}):(0,a.__)("Current Post"),onChange:e=>{this.setState({source:e})}})),void 0!==c&&"relationship"===c.split("|")[0]&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(Ei,{label:(0,a.__)("Relationship Source","kadence-blocks-pro"),value:void 0!==f?f:"",onChange:e=>{this.setState({relate:e})},source:l||this.props.previewPostID,type:"relationship",showAll:m||!1,onShowAll:e=>{this.setState({showAll:e})}}),void 0!==f&&"kb_custom_input"===f&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==b?b:"",onChange:e=>{this.setState({relcustom:e})}})),""!==c&&("post|post_custom_field"===c||"user|user_custom_field"===c||"author|author_custom_field"===c||"archive|archive_custom_field"===c||"media|media_custom_field"===c||"relationship|post_custom_field"===c||"site|custom_setting"===c)&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:u,onChange:e=>{this.setState({para:e})},source:l||this.props.previewPostID,relate:"relationship"===c.split("|")[0]&&void 0!==f?f:void 0,relcustom:"relationship"===c.split("|")[0]&&"kb_custom_input"===f&&void 0!==b?b:void 0,field:c,type:"text",showAll:m||!1,onShowAll:e=>{this.setState({showAll:e})}}),""!==u&&"kb_custom_input"===u&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:d,onChange:e=>{this.setState({custom:e})}})),""!==c&&("post|post_custom_field"===c||"relationship|post_custom_field"===c||"author|author_custom_field"===c||"archive|archive_custom_field"===c||"media|media_custom_field"===c)&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Advanced","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Fallback Content","kadence-blocks-pro"),value:h,onChange:e=>{this.setState({fallback:e})}})))),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Use Repeater Context","kadence-blocks-pro"),checked:void 0!==v&&v,onChange:e=>{this.setState({useRepeaterContext:e})}}),v&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Repeater Sub Field Key","kadence-blocks-pro"),value:c,onChange:e=>{this.setState({field:e})}}),(0,e.createElement)(r.Button,{isPrimary:!0,onClick:()=>{this.setState({loading:!0}),this.getContent()}},this.props.activeAttributes&&this.props.activeAttributes.field?(0,a.__)("Update Dynamic Content","kadence-blocks-pro"):(0,a.__)("Add Dynamic Content","kadence-blocks-pro"),p&&(0,e.createElement)(r.Spinner,null)))))))}}const Ys=(0,s.compose)([(0,c.withSelect)((e,t)=>{let n="";const o=e("core/editor");return o&&o.getCurrentPostId&&(n=o.getCurrentPostId()),{previewPostID:n}})])(Ks);function Xs(t){const{attributes:n,setAttributes:s,slug:l}=t,{kadenceDynamic:c,inQueryBlock:d}=n,u=c&&c[l]?c[l]:{enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:"",shouldReplace:null},h=e=>{let t=c;const n={enable:!1,source:"",field:"",custom:"",para:"",before:"",after:"",fallback:"",relate:"",relcustom:"",shouldReplace:null};t||(t={},t[l]=n),t[l]||(t[l]=n),t[l]={...t[l],...e},t=JSON.parse(JSON.stringify(t)),s({kadenceDynamic:t})};return(0,o.useEffect)(()=>{const e=wp.data.select("core/editor").getCurrentPostType();!d&&"kadence_element"!==e&&"kadence_wootemplate"!==e||void 0!==u.shouldReplace&&null!==u.shouldReplace||h({shouldReplace:1})},[d]),(0,e.createElement)(i.InspectorAdvancedControls,null,(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Dynamic Replace Mode","kadence-blocks"),help:(0,a.__)("Sets the dynamic content to replace the blocks content, rather than inserting it inline.","kadence-blocks"),checked:u.shouldReplace,onChange:e=>h({enable:e?u.enable:e,shouldReplace:u.shouldReplace?0:1})}))}const{Fragment:Qs}=wp.element,{registerFormatType:Js}=wp.richText,{createHigherOrderComponent:ea}=wp.compose,{addFilter:ta,addAction:na}=wp.hooks,{hasBlockSupport:oa}=wp.blocks;ta("kadence.URLInputDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(Qi,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicLinkControl")),ta("kadence.FormInputDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(xs,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicFormInputControl")),ta("kadence.URLInputExternalDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(gr,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicExternalLinkControl"));ta("kadence.TextDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(Ni,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicTextControl")),ta("kadence.InlineReplaceDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(Xs,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicInlineReplaceControl")),ta("kadence.BackgroundDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(Nr,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicBackgroundControl"));const ia=ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(Qr,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicBackgroundControl");ta("kadence.ImageDynamicControl","kadence/dynamic",ia),ta("kadence.GalleryDynamicControl","kadence/dynamic",ea(t=>n=>oa(n.name,"ktdynamic")&&n.isSelected&&n.dynamicAttribute?(0,e.createElement)(ps,{slug:n.dynamicAttribute,...n}):(0,e.createElement)(t,{...n}),"dynamicBackgroundControl"));const ra={title:(0,a.__)("Insert Dynamic Content","kadence-blocks-pro"),tagName:"span",className:"kb-inline-dynamic",attributes:{source:"data-source",field:"data-field",para:"data-para",fallback:"data-fallback",custom:"data-custom",relate:"data-relate",relcustom:"data-relcustom",showAll:"data-showall"},edit:({isActive:t,value:n,onChange:o,activeAttributes:i,contentRef:r})=>(0,e.createElement)(Ys,{isActive:t,value:n,onChange:o,activeAttributes:i})};function sa({value:e,onChange:t,source:n,isMulti:i=!1,termOnly:s=!1}){const[l,c]=(0,o.useState)(!0),[d,u]=(0,o.useState)([]),[h,p]=(0,o.useState)(1),[g,f]=(0,o.useState)(!1),b=e,v="array"==typeof e||"object"==typeof e?e.map(e=>({value:n+"|"+e.value,label:e.label})):e;return(0,o.useEffect)(()=>{if(n&&void 0!==window.kadence_blocks_params.taxonomies[n]&&window.kadence_blocks_params.taxonomies[n])u(Array.from(window.kadence_blocks_params.taxonomies[n])),c(!1);else{const e={source:n,page:h,per_page:50};c(!0),m()({path:(0,W.addQueryArgs)(window.kadence_blocks_params.termEndpoint,e)}).then(e=>{e?(u(e),window.kadence_blocks_params.taxonomies[n]=e):(u([]),window.kadence_blocks_params.taxonomies[n]=[]),c(!1)}).catch(()=>{c(!1),u([]),window.kadence_blocks_params.taxonomies[n]=[]})}},[n]),l?(0,_.jsx)(r.Spinner,{}):(0,_.jsx)("div",{className:"kb-inner-term-select-wrap",children:(0,_.jsx)(vi,{options:d,className:"kb-dynamic-select",classNamePrefix:"kbp",value:i?s?v:e:""!==e?d.filter(({value:e})=>e===b):"",isMulti:i,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("Select Term","kadence-blocks-pro"),onChange:e=>{if(e)if(i){var n=e;s&&(n=e.map(e=>{const t=e.value.split("|")?.[1];return{value:t,label:e.label}})),t(n)}else s&&t(e.value.split("|")?.[1]),t(e.value);else t("")}})})}function aa({label:e,value:t,onChange:n,source:i,contextPost:l=null,className:c=null,termIsMulti:d=!1,taxOnly:h=!1,termIsOptional:p=!1}){const g=`inspector-taxonomy-select-control-${(0,s.useInstanceId)(aa)}`,[f,b]=(0,o.useState)(!0),[v,y]=(0,o.useState)([]);let k="";k=h||p&&"string"==typeof t?t:(0,u.isArrayLike)(t)&&(0,u.has)(t,[0,"value"])&&!(0,u.isEmpty)(t)?t[0].value.split("|"):t&&!(0,u.isEmpty)(t)?t.split("|"):[""];const[x,w]=(0,o.useState)("object"==typeof k?k[0]:k);return(0,o.useEffect)(()=>{let e=i||l;if(wp.data.select("core/editor")&&!e)if(kbpData.isKadenceE&&kadenceElementParams.previewPostID){const t=function(e,t=!0){try{var n=JSON.parse(e);if(n&&"object"==typeof n)return n}catch(e){}return e&&"object"==typeof e?e:!!t&&{}}(kadenceElementParams.previewPostID);e=t&&t.id?t.id:""}else e=wp.data.select("core/editor").getCurrentPostId();const t={source:e};b(!0),m()({path:(0,W.addQueryArgs)(window.kadence_blocks_params.taxonomiesEndpoint,t)}).then(e=>{y(e||[]),b(!1)}).catch(()=>{b(!1),y([])})},[i]),f?(0,_.jsx)(r.Spinner,{}):(0,_.jsxs)("div",{className:"components-base-control kb-taxonomy-select-control"+(c?" "+c:""),children:[e&&(0,_.jsx)("label",{htmlFor:g,className:"components-taxonomy-select-control__label kb-dynamic-components-label",children:e}),(0,_.jsx)(vi,{options:v,id:g,className:"kb-dynamic-select",classNamePrefix:"kbp",value:""!==x?v.filter(({value:e})=>e===x):"",isMulti:!1,isSearchable:!0,isClearable:!0,menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:99999999})},maxMenuHeight:200,placeholder:(0,a.__)("Select Taxonomy","kadence-blocks-pro"),onChange:e=>{h||p?e?(w(e.value),n(e.value)):(w(""),n("")):w(e?e.value:"")}}),""!==x&&!h&&(0,_.jsx)(sa,{source:x,value:t,isMulti:d,onChange:e=>{e&&!(0,u.isEmpty)(e)?n(e):n(p&&x?x:"")}})]})}kadence_blocks_params.dynamic_enabled&&Js("kadence/insert-dynamic",ra),ta("kadence.dynamicContent","kadence/dynamic",function(t,n,o,i,r,s,a){if(o&&""!==o&&void 0!==n?.kadenceDynamic?.[o]?.enable&&n.kadenceDynamic[o].enable){let t=null;r&&r.postId&&(t=r.postId);let i=null;r&&void 0!==r["kadence/repeaterRow"]&&(i=r["kadence/repeaterRow"]);let s=null;r&&void 0!==typeof r["kadence/dynamicSource"]&&r["kadence/dynamicSource"]&&(s=r["kadence/dynamicSource"]);const a={source:void 0!==n?.kadenceDynamic?.[o]?.source?n.kadenceDynamic[o].source:"",field:void 0!==n?.kadenceDynamic?.[o]?.field?n.kadenceDynamic[o].field:"",custom:void 0!==n?.kadenceDynamic?.[o]?.custom?n.kadenceDynamic[o].custom:"",para:void 0!==n?.kadenceDynamic?.[o]?.para?n.kadenceDynamic[o].para:"",before:void 0!==n?.kadenceDynamic?.[o]?.before?n.kadenceDynamic[o].before:"",after:void 0!==n?.kadenceDynamic?.[o]?.after?n.kadenceDynamic[o].after:"",fallback:void 0!==n?.kadenceDynamic?.[o]?.fallback?n.kadenceDynamic[o].fallback:"",relate:void 0!==n?.kadenceDynamic?.[o]?.relate?n.kadenceDynamic[o].relate:"",relcustom:void 0!==n?.kadenceDynamic?.[o]?.relcustom?n.kadenceDynamic[o].relcustom:"",useRepeaterContext:void 0!==n?.kadenceDynamic?.[o]?.useRepeaterContext&&n.kadenceDynamic[o].useRepeaterContext};return(0,e.createElement)(se,{...a,contextPost:t,repeaterRow:i,dynamicSource:s})}return t}),ta("kadence.linkDisplay","kadence/dynamic",function(t,n,o,i,r,s,a){if(o&&""!==o&&void 0!==n?.kadenceDynamic?.[o]?.enable&&n.kadenceDynamic[o].enable){let t=null;r&&r.postId&&(t=r.postId);let i=null;r&&void 0!==r["kadence/repeaterRow"]&&(i=r["kadence/repeaterRow"]);let s=null;r&&void 0!==typeof r["kadence/dynamicSource"]&&r["kadence/dynamicSource"]&&(s=r["kadence/dynamicSource"]);const a={source:void 0!==n?.kadenceDynamic?.[o]?.source?n.kadenceDynamic[o].source:"",field:void 0!==n?.kadenceDynamic?.[o]?.field?n.kadenceDynamic[o].field:"",custom:void 0!==n?.kadenceDynamic?.[o]?.custom?n.kadenceDynamic[o].custom:"",para:void 0!==n?.kadenceDynamic?.[o]?.para?n.kadenceDynamic[o].para:"",before:void 0!==n?.kadenceDynamic?.[o]?.before?n.kadenceDynamic[o].before:"",after:void 0!==n?.kadenceDynamic?.[o]?.after?n.kadenceDynamic[o].after:"",fallback:void 0!==n?.kadenceDynamic?.[o]?.fallback?n.kadenceDynamic[o].fallback:"",relate:void 0!==n?.kadenceDynamic?.[o]?.relate?n.kadenceDynamic[o].relate:"",relcustom:void 0!==n?.kadenceDynamic?.[o]?.relcustom?n.kadenceDynamic[o].relcustom:"",useRepeaterContext:void 0!==n?.kadenceDynamic?.[o]?.useRepeaterContext?n.kadenceDynamic[o].useRepeaterContext:"",repeaterRow:i};return(0,e.createElement)(Fs,{...a,contextPost:t,repeaterRow:i,dynamicSource:s})}return t}),ta("kadence.formInputDisplay","kadence/dynamic",function(t,n,o){if(o&&""!==o&&void 0!==n?.kadenceDynamic?.[o]?.enable&&n.kadenceDynamic[o].enable){const t={source:void 0!==n?.kadenceDynamic?.[o]?.source?n.kadenceDynamic[o].source:"",field:void 0!==n?.kadenceDynamic?.[o]?.field?n.kadenceDynamic[o].field:"",custom:void 0!==n?.kadenceDynamic?.[o]?.custom?n.kadenceDynamic[o].custom:"",para:void 0!==n?.kadenceDynamic?.[o]?.para?n.kadenceDynamic[o].para:"",before:void 0!==n?.kadenceDynamic?.[o]?.before?n.kadenceDynamic[o].before:"",after:void 0!==n?.kadenceDynamic?.[o]?.after?n.kadenceDynamic[o].after:"",fallback:void 0!==n?.kadenceDynamic?.[o]?.fallback?n.kadenceDynamic[o].fallback:"",relate:void 0!==n?.kadenceDynamic?.[o]?.relate?n.kadenceDynamic[o].relate:"",relcustom:void 0!==n?.kadenceDynamic?.[o]?.relcustom?n.kadenceDynamic[o].relcustom:""};return(0,e.createElement)(Gs,{...t})}return t}),na("kadence.triggerDynamicUpdate","kadence/dynamic",function(e,t,n){const{options:o,newUpdate:i,attr_name:r}=ji(e,t,n,"");o[e].enable&&n.setAttributes({kadenceDynamic:o,[r]:i})});const la=(0,s.createHigherOrderComponent)(t=>n=>{if(!n.isSelected)return(0,e.createElement)(t,{...n});const{hasBlockConditional:s,openTab:l,previewPostID:u}=(0,c.useSelect)(e=>{const t=e(d.store).hasBlockSupport(n.name,"ktdynamic"),o=e(d.store).hasBlockSupport(n.name,"ktfieldconditional");let i="general",r="";return t&&!o&&(i="function"==typeof e("kadenceblocks/data").getOpenSidebarTabKey?e("kadenceblocks/data").getOpenSidebarTabKey(n.name.replace("kadence/","")+e("core/block-editor").getSelectedBlockClientId()):"advanced",r=e("kadenceblockspro/data").getContextPostID()),{hasBlockConditional:t,openTab:i,previewPostID:r}},[]);if(s&&"advanced"==l&&h("show","kadence/conditional")){const{attributes:{kadenceConditional:s},setAttributes:l}=n,c=e=>{let t=s;t||(t={},t.postData={enable:!1,logic:"AND",conditions:[{source:"",field:"",custom:"",para:"",compare:"not_empty",condition:""}]}),t.postData||(t.postData={enable:!1,logic:"AND",conditions:[{source:"",field:"",custom:"",para:"",compare:"not_empty",condition:""}]}),t.postData.field&&!t.postData.conditions&&(t.postData={enable:t.postData.enable,logic:"AND",conditions:[{source:t.postData.source||"",field:t.postData.field||"",custom:t.postData.custom||"",para:t.postData.para||"",compare:t.postData.compare||"not_empty",condition:t.postData.condition||""}]}),t.postData={...t.postData,...e},t=JSON.parse(JSON.stringify(t)),l({kadenceConditional:t})},d=[].concat.apply([],kadenceDynamicParams.conditionalFields.map(e=>e.options)),h={enable:!1,logic:"AND",conditions:[{source:"",field:"",custom:"",para:"",compare:"not_empty",condition:""}]},p=[{value:"not_empty",label:(0,a.__)("Not Empty","kadence-blocks-pro")},{value:"is_empty",label:(0,a.__)("Empty","kadence-blocks-pro")},{value:"is_true",label:(0,a.__)("True","kadence-blocks-pro")},{value:"is_false",label:(0,a.__)("False","kadence-blocks-pro")},{value:"equals",label:"="},{value:"not_equals",label:"!="},{value:"equals_or_greater",label:">="},{value:"equals_or_less",label:"<="},{value:"greater",label:">"},{value:"less",label:"<"},{value:"contains",label:(0,a.__)("Contains","kadence-blocks-pro")},{value:"not_contains",label:(0,a.__)("Doesn't Contain","kadence-blocks-pro")}];let g=s&&s.postData?s.postData:h;g&&g.field&&!g.conditions&&(g={enable:g.enable,logic:"AND",conditions:[{source:g.source||"",field:g.field||"",custom:g.custom||"",para:g.para||"",compare:g.compare||"not_empty",condition:g.condition||""}]});const m=()=>{const e=[...g.conditions||[],{source:"",field:"",custom:"",para:"",compare:"not_empty",condition:""}];c({conditions:e})},f=e=>{const t=g.conditions||[];if(t.length>1){const n=t.filter((t,n)=>n!==e);c({conditions:n})}},b=(e,t)=>{const n=[...g.conditions||[]];n[e]={...n[e],...t},c({conditions:n})},v=["contains","not_contains"],y=["equals","not_equals","equals_or_greater","equals_or_less","greater","less","contains","not_contains"];return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(i.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Conditional Display","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Enable Conditional Display","kadence-blocks-pro"),checked:void 0!==g.enable&&g.enable,onChange:e=>{c({enable:e})}}),void 0!==g.enable&&g.enable&&(0,e.createElement)(o.Fragment,null,(g.conditions||[]).length>1&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Logic Operator","kadence-blocks-pro"),value:g.logic||"AND",options:[{value:"AND",label:(0,a.__)("AND","kadence-blocks-pro")},{value:"OR",label:(0,a.__)("OR","kadence-blocks-pro")}],onChange:e=>{c({logic:e})}})),(g.conditions||[]).map((t,n)=>{const i=(g.conditions||[]).length>1;return(0,e.createElement)("div",{key:n,className:i?"kb-conditional-group":""},i&&(0,e.createElement)("div",{className:"kb-conditional-group-header"},(0,e.createElement)("h4",{className:"kb-conditional-group-title"},(0,a.__)("Condition","kadence-blocks-pro")," ",n+1),(g.conditions||[]).length>1&&(0,e.createElement)("button",{type:"button",className:"components-button is-destructive is-small",onClick:()=>f(n)},(0,a.__)("Remove","kadence-blocks-pro"))),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title kb-dynamic-components-label"},(0,a.__)("Conditional","kadence-blocks-pro")),(0,e.createElement)("div",{className:"kb-dynamic-select-wrap"},(0,e.createElement)(vi,{options:kadenceDynamicParams.conditionalFields,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==t.field?d.filter(({value:e})=>e===t.field):"",isMulti:!1,isSearchable:!0,isClearable:!0,maxMenuHeight:200,placeholder:(0,a.__)("None","kadence-blocks-pro"),onChange:e=>{b(n,{field:e?e.value:"",source:"",custom:"",para:"",condition:""})}}))),void 0!==t.field&&("post"===t.field.split("|")[0]||"comments"===t.field.split("|")[0])&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kb-dynamic-title kb-dynamic-components-label"},(0,a.__)("Conditional Source","kadence-blocks-pro")),(0,e.createElement)(H,{name:t.source?(0,e.createElement)(se,{source:t.source,field:"post|post_title"}):(0,a.__)("Current Post","kadence-blocks-pro"),onChange:e=>{b(n,{source:e})}})),void 0!==t.field&&"post|has_taxonomy"===t.field&&(0,e.createElement)(aa,{label:(0,a.__)("Select Taxonomy","kadence-blocks-pro"),value:t.para?t.para:"",source:t.source?t.source:u,onChange:e=>{b(n,{para:e})}}),void 0!==t.field&&("post|post_custom_field"===t.field||"author|author_custom_field"===t.field||"archive|archive_custom_field"===t.field||"user|user_custom_field"===t.field)&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(Ei,{label:(0,a.__)("Custom Field","kadence-blocks-pro"),value:void 0!==t.para?t.para:"",onChange:e=>{b(n,{para:e})},source:t.source?t.source:u,field:t.field,type:"conditional",showAll:!!t.showAll&&t.showAll,onShowAll:e=>{b(n,{showAll:e})}}),void 0!==t.para&&"kb_custom_input"===t.para&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Custom Meta Key","kadence-blocks-pro"),value:void 0!==t.custom?t.custom:"",onChange:e=>{b(n,{custom:e})}})),void 0!==t.field&&"repeater|repeater_custom_field"===t.field&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Repeater Sub Field Key","kadence-blocks-pro"),value:void 0!==t.custom?t.custom:"",onChange:e=>{b(n,{custom:e})}}),void 0!==t.field&&"url|url_query_param"===t.field&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Query Param","kadence-blocks-pro"),value:void 0!==t.custom?t.custom:"",onChange:e=>{b(n,{custom:e})}}),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Compare Type","kadence-blocks-pro"),value:void 0!==t.compare?t.compare:"not_empty",options:p,onChange:e=>{b(n,{compare:e})}})),void 0!==t.compare&&("equals"===t.compare||"not_equals"===t.compare||"equals_or_greater"===t.compare||"equals_or_less"===t.compare||"greater"===t.compare||"less"===t.compare||"contains"===t.compare||"not_contains"===t.compare)&&(0,e.createElement)(r.TextControl,{label:(0,a.__)("Compare Value","kadence-blocks-pro"),value:void 0!==t.condition?t.condition:"",onChange:e=>{b(n,{condition:e})}}))}),(0,e.createElement)("div",{className:"kb-conditional-add-button"},(0,e.createElement)("button",{type:"button",className:"components-button is-secondary",onClick:m},(0,a.__)("Add Condition","kadence-blocks-pro"))),(0,e.createElement)("div",{className:"readable-conditional"},(0,a.__)("Show Block if","kadence-blocks-pro")," ",(g.conditions||[]).map((t,n)=>{const o=void 0!==t.field&&""!==t.field?d.filter(({value:e})=>e===t.field):"",i=void 0!==t.compare&&""!==t.compare?p.find(({value:e})=>e===t.compare):"";let r=(0,a.__)("Conditional Type","kadence-blocks-pro");o&&o[0]&&(r=o[0].label);const s=i?.label?i.label:(0,a.__)("Not Empty","kadence-blocks-pro");let l="";return"repeater|repeater_custom_field"!=t.field&&"url|url_query_param"!=t.field||(l='"'+t.custom+'"'),(0,e.createElement)("span",{key:n},n>0&&(0,e.createElement)("b",{className:"kb-conditional-logic-operator"}," "+g.logic+" "),r," ",l," ",v.includes(t.compare)?s:"is "+s,void 0!==t.compare&&y.includes(t.compare)&&void 0!==t.condition&&t.condition&&(0,e.createElement)("span",null,' "',t.condition,'"'))}))))))}return(0,e.createElement)(t,{...n})},"ConditionalDisplayControls");(0,l.addFilter)("editor.BlockEdit","kadence/conditionalControls",la,100);const ca=(0,s.createHigherOrderComponent)(t=>n=>{const{attributes:o}=n;if(o.kadenceConditional&&o.kadenceConditional.postData&&o.kadenceConditional.postData.enable){const o={...n.wrapperProps,className:"kadence-has-conditional-display"};return(0,e.createElement)(t,{...n,wrapperProps:o})}return(0,e.createElement)(t,{...n})},"BlockWrapperConditionalIndicators");(0,l.addFilter)("editor.BlockListBlock","kadence/conditionalIndicators",ca);const da=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),ua=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),ha=window.wp.coreData,pa=function e(t,n){if(Array.isArray(t)&&t.length)for(let o=0;o<t.length;o++){const i=t[o];let r;if(n==i?.attributes?.uniqueID)return i;if(void 0!==i.innerBlocks&&Array.isArray(i.innerBlocks)&&i.innerBlocks.length&&(r=e(i.innerBlocks,n),r&&n==r?.attributes?.uniqueID))return r}},ga=function({props:e,formPostID:t,setAttributes:n,combine:i}){const{attributes:s,attributes:{kadenceFieldConditional:l}}=e,c=l&&l.conditionalData?l.conditionalData:{enable:!1,rules:[]},[d]=function(e){const[t,n]=(0,ha.useEntityProp)("postType","kadence_form","meta");return[t[e],(0,o.useCallback)(o=>{n({...t,[e]:o})},[e,n])]}("_kad_form_fields");let h=[];const[p]=(0,ha.useEntityBlockEditor)("postType","kadence_form",t),g=(0,u.get)(p,[0,"innerBlocks"],[]);d&&(h=d.reduce(function(e,t){return void 0!==t.uniqueID&&t.uniqueID!=s.uniqueID&&e.push({label:t.label,value:t.uniqueID}),e},[]),h.unshift({label:(0,a.__)("Select Field","kadence-blocks-pro"),value:""}));const m=[],f=["number","date","time"],b=["select","radio","accept"],v=["checkbox"],y=["file"],k={text:[{value:"not_empty",label:(0,a.__)("Not Empty","kadence-blocks-pro")},{value:"is_empty",label:(0,a.__)("Empty","kadence-blocks-pro")},{value:"equals",label:"="},{value:"not_equals",label:"!="},{value:"contains",label:(0,a.__)("Contains","kadence-blocks-pro")},{value:"doesnotcontain",label:(0,a.__)("Does Not Contain","kadence-blocks-pro")},{value:"beginswith",label:(0,a.__)("Begins With","kadence-blocks-pro")},{value:"doesnotbeginwith",label:(0,a.__)("Does Not Begin With","kadence-blocks-pro")},{value:"endswith",label:(0,a.__)("Ends With","kadence-blocks-pro")},{value:"doesnotendwith",label:(0,a.__)("Does Not End With","kadence-blocks-pro")}],number:[{value:"not_empty",label:(0,a.__)("Not Empty","kadence-blocks-pro")},{value:"is_empty",label:(0,a.__)("Empty","kadence-blocks-pro")},{value:"equals",label:"="},{value:"not_equals",label:"!="},{value:"equals_or_greater",label:">="},{value:"equals_or_less",label:"<="},{value:"greater",label:">"},{value:"less",label:"<"}],option:[{value:"equals",label:"="},{value:"not_equals",label:"!="}],optionMulti:[{value:"equals",label:"="},{value:"not_equals",label:"!="},{value:"contains",label:(0,a.__)("Contains","kadence-blocks-pro")}],fill:[{value:"not_empty",label:(0,a.__)("Not Empty","kadence-blocks-pro")},{value:"is_empty",label:(0,a.__)("Empty","kadence-blocks-pro")}]},x={field:"",compare:"",value:""},w=(e,t)=>{let o=l;(0,u.isEmpty)(o.conditionalData.rules[t])&&(o.conditionalData.rules[t]=x),o.conditionalData.rules[t]={...o.conditionalData.rules[t],...e},o=JSON.parse(JSON.stringify(o)),n({kadenceFieldConditional:o})},C=e=>{let t=l;delete t.conditionalData.rules[e],t=JSON.parse(JSON.stringify(t)),n({kadenceFieldConditional:t})},S=e=>{let t=[];if("accept"==e?.type)t=[,{label:"not checked",value:""},{label:"checked",value:"accept"}];else{const n=pa(g,e?.uniqueID);t=[...n?.attributes?.options],t=t.map(e=>({label:e.label,value:e?.value?e.value:e.label})),t.unshift({label:(0,a.__)("Select Option","kadence-blocks-pro"),value:""})}return t};var E=Object.entries(c.rules).length;for(const[e,t]of Object.entries(c.rules)){const t=c.rules[e].field?d.find(t=>t.uniqueID===c.rules[e].field):{};let n="text",o=[];f.includes(t?.type)&&(n="number"),b.includes(t?.type)&&(n="option"),v.includes(t?.type)&&(n="optionMulti"),y.includes(t?.type)&&(n="fill"),"option"!=n&&"optionMulti"!=n||(o=S(t));const s=c.rules[e].field,l=c.rules[e].compare,u=c.rules[e].value,p=k[n][0].value,g=!("not_empty"==l||"is_empty"==l||""==l);if(t?.type&&""==l&&w({compare:p},e),t?.type&&("date"==t.type||"time"==t.type)&&""==u&&g){const t=new Date((new Date).toUTCString());w({value:t},e)}const x=()=>{if(g)return"option"==n||"optionMulti"==n?(0,_.jsx)("div",{className:"components-base-control",children:(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Compare Value","kadence-blocks-pro"),options:o,className:"kb-dynamic-select",classNamePrefix:"kbp",value:u,onChange:t=>{w(t?{value:t}:{value:""},e)}})}):"date"==t?.type?(0,_.jsx)("div",{className:"components-base-control",children:(0,_.jsx)(r.DatePicker,{currentDate:u,onChange:t=>{w(t?{value:t}:{value:""},e)}})}):"time"==t?.type?(0,_.jsx)("div",{className:"components-base-control kb-time-only",children:(0,_.jsx)(r.TimePicker,{currentTime:u,onChange:t=>{w(t?{value:t}:{value:""},e)},is12Hour:!0})}):(0,_.jsx)("div",{className:"components-base-control",children:(0,_.jsx)(r.TextControl,{label:(0,a.__)("Compare Value","kadence-blocks-pro"),placeholder:(0,a.__)("Compare to...","kadence-blocks-pro"),value:u,onChange:t=>{w(t?{value:t}:{value:""},e)}})})};m.push((0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"kb-field-rule",children:[(0,_.jsx)(r.Button,{label:(0,a.__)("Remove Rule","kadence-blocks-pro"),icon:da,size:"small",onClick:()=>C(e),className:"kb-field-rule-remove"}),(0,_.jsx)("div",{className:"components-base-control",children:(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Field","kadence-blocks-pro"),options:h,className:"kb-dynamic-select",classNamePrefix:"kbp",value:void 0!==s?s:"",onChange:t=>{w(t?{field:t,compare:"",value:""}:{field:"",compare:"",value:""},e)}})}),s&&(0,_.jsx)("div",{className:"components-base-control",children:(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Compare Type","kadence-blocks-pro"),options:k[n],className:"kb-dynamic-select",classNamePrefix:"kbp",value:l,onChange:t=>{w(t?{compare:t}:{compare:""},e)}})}),x()]}),E>1&&(0,_.jsx)("div",{class:"combine",children:(0,_.jsx)("i",{children:i||""})})]})),E--}return(0,_.jsxs)("div",{className:"kb-field-rules",children:[m,(0,_.jsx)(r.Button,{text:(0,a.__)("Add Rule","kadence-blocks-pro"),variant:"primary",icon:ua,onClick:()=>{const e=Math.random().toString(16).slice(2);let t=l;t.conditionalData.rules[e]=x,t=JSON.parse(JSON.stringify(t)),n({kadenceFieldConditional:t})},className:"kb-field-rule-add"})]})},ma=(0,s.createHigherOrderComponent)(t=>n=>{if(!n.isSelected)return(0,e.createElement)(t,{...n});const{hasBlockConditional:s,openTab:l,currentPostType:u,postID:h,formBlockID:p}=(0,c.useSelect)(e=>{const t=e(d.store).hasBlockSupport(n.name,"ktfieldconditional"),{getBlockParentsByBlockName:o,getBlockAttributes:r}=e(i.store);let s="general",a="",l="",c="";return t&&(s="function"==typeof e("kadenceblocks/data").getOpenSidebarTabKey?e("kadenceblocks/data").getOpenSidebarTabKey(n.name.replace("kadence/","")+e("core/block-editor").getSelectedBlockClientId()):"advanced",a=e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",l=e("core/editor")?.getCurrentPostType()?e("core/editor")?.getCurrentPostType():"",c=r(o(n.clientId,"kadence/advanced-form").slice(-1)[0])),{hasBlockConditional:t,openTab:s,postID:a,formBlockID:c?.id,currentPostType:l}},[]),g=[{value:"or",label:(0,a.__)("Or","kadence-blocks-pro")},{value:"and",label:(0,a.__)("And","kadence-blocks-pro")}],m=[{value:"hide",label:(0,a.__)("Hide","kadence-blocks-pro")},{value:"show",label:(0,a.__)("Show","kadence-blocks-pro")}];if(s&&"advanced"==l){const{attributes:{kadenceFieldConditional:s},setAttributes:l}=n,c=e=>{let t=s;t&&t.conditionalData||(t={},t.conditionalData={enable:!1,combine:"or",action:"hide",rules:{andhrn23najd:{field:"",compare:"",value:""}}}),t.conditionalData={...t.conditionalData,...e},t=JSON.parse(JSON.stringify(t)),l({kadenceFieldConditional:t})},d={enable:!1,rules:[]},f=s&&s.conditionalData?s.conditionalData:d;return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(i.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Conditional Field","kadence-blocks-pro"),initialOpen:!1,className:"kb-conditional-field"},(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Enable Conditional Field","kadence-blocks-pro"),checked:void 0!==f.enable&&f.enable,onChange:e=>{c({enable:e})}}),void 0!==f.enable&&f.enable&&(0,e.createElement)(o.Fragment,null,Object.keys(f.rules).length>1&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Combine Logic","kadence-blocks-pro"),options:g,value:void 0!==f.combine?f.combine:"or",onChange:e=>{c({combine:e})}})),(0,e.createElement)("div",{className:"components-base-control action"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Action","kadence-blocks-pro"),options:m,value:void 0!==f.action?f.action:"hide",onChange:e=>{c({action:e})}}),(0,e.createElement)("div",null,(0,e.createElement)("i",null,(0,a.__)("this field if...","kadence-blocks-pro")))),(0,e.createElement)(ga,{props:n,formPostID:"kadence_form"===u?h:p,setAttributes:l,combine:void 0!==f.combine?f.combine:"or"})))))}return(0,e.createElement)(t,{...n})},"ConditionalFieldDisplayControls");(0,l.addFilter)("editor.BlockEdit","kadence/conditionalFieldControls",ma,101);const fa=(0,s.createHigherOrderComponent)(t=>n=>{if(!n.isSelected)return(0,e.createElement)(t,{...n});const{openTab:s,currentPostType:l,postID:d,formBlockID:u}=(0,c.useSelect)(e=>{const{getBlockParentsByBlockName:t,getBlockAttributes:o}=e(i.store);let r="general",s="",a="",l="";return r="function"==typeof e("kadenceblocks/data").getOpenSidebarTabKey?e("kadenceblocks/data").getOpenSidebarTabKey(n.name.replace("kadence/","")+n.clientId):"advanced",s=e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",a=e("core/editor")?.getCurrentPostType()?e("core/editor")?.getCurrentPostType():"",l=o(t(n.clientId,"kadence/advanced-form").slice(-1)[0]),{openTab:r,postID:s,formBlockID:l?.id,currentPostType:a}},[]),h=[{value:"or",label:(0,a.__)("Or","kadence-blocks-pro")},{value:"and",label:(0,a.__)("And","kadence-blocks-pro")}],p=[{value:"hide",label:(0,a.__)("Hide","kadence-blocks-pro")},{value:"show",label:(0,a.__)("Show","kadence-blocks-pro")}];if("advanced"==s){const{attributes:{kadenceFieldConditional:t},setAttributes:s}=n,c=e=>{let n=t;n&&n.conditionalData||(n={},n.conditionalData={enable:!1,combine:"or",action:"hide",formID:"kadence_form"===l?d:u,rules:{andhrn23najd:{field:"",compare:"",value:""}}}),n.conditionalData.formID="kadence_form"===l?d:u,n.conditionalData={...n.conditionalData,...e},n=JSON.parse(JSON.stringify(n)),s({kadenceFieldConditional:n})},g={enable:!1,rules:[]},m=t&&t.conditionalData?t.conditionalData:g;return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(i.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Conditional Field","kadence-blocks-pro"),initialOpen:!1,className:"kb-conditional-field"},(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Enable Conditional Field","kadence-blocks-pro"),checked:void 0!==m.enable&&m.enable,onChange:e=>{c({enable:e})}}),void 0!==m.enable&&m.enable&&(0,e.createElement)(o.Fragment,null,Object.keys(m.rules).length>1&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Combine Logic","kadence-blocks-pro"),options:h,value:void 0!==m.combine?m.combine:"or",onChange:e=>{c({combine:e})}})),(0,e.createElement)("div",{className:"components-base-control action"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Action","kadence-blocks-pro"),options:p,value:void 0!==m.action?m.action:"hide",onChange:e=>{c({action:e})}}),(0,e.createElement)("div",null,(0,e.createElement)("i",null,(0,a.__)("this field if...","kadence-blocks-pro")))),(0,e.createElement)(ga,{props:n,formPostID:"kadence_form"===l?d:u,setAttributes:s,combine:void 0!==m.combine?m.combine:"or"})))))}return(0,e.createElement)(t,{...n})},"ColumnFieldDisplayControls");(0,l.addFilter)("kadence.FormConditionals","kadence/conditionalFieldControls",fa,101);const ba=(0,s.createHigherOrderComponent)(t=>n=>{const{attributes:o}=n;if(o.kadenceFieldConditional&&o.kadenceFieldConditional.conditionalData&&o.kadenceFieldConditional.conditionalData.enable){const o={...n.wrapperProps,className:"kadence-has-conditional-display"};return(0,e.createElement)(t,{...n,wrapperProps:o})}return(0,e.createElement)(t,{...n})},"BlockWrapperConditionalFieldIndicators");(0,l.addFilter)("editor.BlockListBlock","kadence/conditionalFieldIndicators",ba);var va=n(70470);n(43158),n(29072),n(58457),n(79289),n(69073);const ya=(0,e.createElement)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(R.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),{Component:ka,Fragment:xa}=wp.element,{compose:wa}=wp.compose,{withSelect:_a,withDispatch:Ca}=wp.data,{Button:Sa,Tooltip:Ea,Icon:Ma,Modal:$a,PanelBody:Aa}=wp.components,Ta=wa([_a(e=>{const t=e("core/editor").getEditedPostAttribute("meta"),n=e("core/editor").getCurrentPostAttribute("meta"),o=e("core/editor").getCurrentPostType();return{meta:{...n,...t},postType:o,postTypeObject:e("core").getPostType(o)}}),Ca(e=>({onUpdateCode(t){e("core/editor").editPost({meta:t})}}))])(class extends ka{constructor(){super(...arguments),this.saveConfig=this.saveConfig.bind(this);const{meta:e={}}=this.props;this.state={isOpen:!1,isSaving:!1,customCSS:e._kad_blocks_custom_css,customHeadJS:e._kad_blocks_head_custom_js,customBodyJS:e._kad_blocks_body_custom_js,customFooterJS:e._kad_blocks_footer_custom_js}}saveConfig(){this.setState({isSaving:!0});const e=this.props.meta||{},t={};this.state.customCSS!==e._kad_blocks_custom_css&&(t._kad_blocks_custom_css=this.state.customCSS),this.state.customHeadJS!==e._kad_blocks_head_custom_js&&(t._kad_blocks_head_custom_js=this.state.customHeadJS),this.state.customBodyJS!==e._kad_blocks_body_custom_js&&(t._kad_blocks_body_custom_js=this.state.customBodyJS),this.state.customFooterJS!==e._kad_blocks_footer_custom_js&&(t._kad_blocks_footer_custom_js=this.state.customFooterJS),Object.keys(t).length&&this.props.onUpdateCode(t),this.setState({isSaving:!1,isOpen:!1})}render(){const{customCSS:t,customHeadJS:n,customBodyJS:o,customFooterJS:i,isOpen:r}=this.state,{postTypeObject:s}=this.props;return["kadence_wootemplate"].includes(s?.slug)||s&&void 0!==s.viewable&&s.viewable?(0,e.createElement)(Aa,{title:(0,a.__)("Page Scripts","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)("div",{className:"kt-blocks-control-wrap"},(0,e.createElement)(Sa,{isTertiary:!0,className:"kt-block-defaults",icon:ya,onClick:()=>this.setState({isOpen:!0})},(0,a.__)("Custom CSS and JS","kadence-blocks-pro")),r?(0,e.createElement)($a,{className:"kt-block-defaults-modal kb-post-specific-code",title:(0,a.__)("Custom CSS and JS","kadence-blocks-pro"),onRequestClose:()=>{this.saveConfig()}},(0,e.createElement)("h2",null,(0,a.__)("Post Specific CSS","kadence-blocks-pro")),(0,e.createElement)(va.Ay,{mode:"css",theme:"textmate",name:"kb-ace-css",onLoad:e=>{e.renderer.setScrollMargin(16,16,16,16),e.renderer.setPadding(16)},onChange:e=>{this.setState({customCSS:e})},showPrintMargin:!1,highlightActiveLine:!1,showGutter:!0,fontSize:12,value:t,maxLines:20,minLines:3,width:"100%",height:"300px",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2}}),(0,e.createElement)("h2",null,(0,a.__)("Post Specific Scripts","kadence-blocks-pro")),(0,e.createElement)("pre",null,(0,a.__)("<head>","kadence-blocks-pro")),(0,e.createElement)(va.Ay,{mode:"html",theme:"textmate",name:"kb-ace-head",onLoad:e=>{e.renderer.setScrollMargin(16,16,16,16),e.renderer.setPadding(16)},onChange:e=>{this.setState({customHeadJS:e})},showPrintMargin:!1,highlightActiveLine:!1,showGutter:!0,fontSize:12,value:n,maxLines:20,minLines:3,width:"100%",height:"300px",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2}}),(0,e.createElement)("pre",null,(0,a.__)("<body>","kadence-blocks-pro")),(0,e.createElement)(va.Ay,{name:"kb-ace-body",mode:"html",theme:"textmate",onLoad:e=>{e.renderer.setScrollMargin(16,16,16,16),e.renderer.setPadding(16)},onChange:e=>{this.setState({customBodyJS:e})},showPrintMargin:!1,highlightActiveLine:!1,showGutter:!0,fontSize:12,value:o,maxLines:20,minLines:3,width:"100%",height:"300px",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2}}),(0,e.createElement)("pre",null,(0,a.__)("<footer>","kadence-blocks-pro")),(0,e.createElement)(va.Ay,{name:"kb-ace-footer",mode:"html",theme:"textmate",onLoad:e=>{e.renderer.setScrollMargin(16,16,16,16),e.renderer.setPadding(16)},onChange:e=>{this.setState({customFooterJS:e})},showPrintMargin:!1,highlightActiveLine:!1,showGutter:!0,fontSize:12,value:i,maxLines:20,minLines:3,width:"100%",height:"300px",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2}}),(0,e.createElement)("p",{style:{marginBottom:20}}),(0,e.createElement)(Sa,{isPrimary:!0,onClick:()=>{this.saveConfig()}},(0,a.__)("Save/Close","kadence-blocks-pro"))):null)):null}}),{addFilter:Ra}=wp.hooks;Ra("kadence.block_panels_sidebar","kadence-blocks-pro/scripts",function(e){if("admin"===kadence_blocks_params.userrole||"editor"===kadence_blocks_params.userrole){const t=[{Panel:Ta}];return e.concat(t)}return e});const La={};La.imageoverlayblock=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("g",{fillRule:"nonzero"},(0,e.createElement)("path",{d:"M46.53,6.719l-45.06,0c-0.485,0 -0.883,0.399 -0.883,0.884l0,32.794c0,0.485 0.398,0.884 0.883,0.884l45.06,0c0.485,0 0.883,-0.399 0.883,-0.884l0,-32.802c-0.004,-0.482 -0.401,-0.876 -0.883,-0.876Z",fill:"#0058b0"}),(0,e.createElement)("path",{d:"M32.895,36.279l10.067,0l-10.832,-13.792l-5.034,6.409l-8.13,-10.353l-13.928,17.736l27.857,0Z",fill:"#fff"}),(0,e.createElement)("path",{d:"M35.945,21.904c2.811,-0.002 5.122,-2.316 5.122,-5.127c0,-2.813 -2.314,-5.127 -5.127,-5.127c-2.813,0 -5.127,2.314 -5.127,5.127c0.004,2.813 2.319,5.126 5.132,5.127Zm0,-8.488c1.842,0.003 3.356,1.519 3.356,3.361c0,1.844 -1.517,3.361 -3.361,3.361c-1.844,0 -3.361,-1.517 -3.361,-3.361c0.001,-1.844 1.519,-3.361 3.364,-3.361c0,0 0.001,0 0.002,0Z",fill:"#fff"}))),La.modal=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M46.538,6.714l-45.076,0c-0.484,0 -0.883,0.399 -0.883,0.883l0,32.806c0,0.484 0.399,0.883 0.883,0.883l45.076,0c0.484,0 0.883,-0.399 0.883,-0.883l0,-32.813c-0.004,-0.482 -0.402,-0.876 -0.883,-0.876Zm-44.192,32.798l0,-25.024l43.308,0l0,25.024l-43.308,0Z"}),(0,e.createElement)("path",{d:"M34.377,26.18l-20.754,0c-0.484,0 -0.883,0.398 -0.883,0.883c0,0.485 0.399,0.883 0.883,0.883l20.754,0c0.484,0 0.883,-0.398 0.883,-0.883c0,-0.485 -0.399,-0.883 -0.883,-0.883Z"}),(0,e.createElement)("path",{d:"M28.319,32.417l-8.638,0c-0.484,0 -0.883,0.398 -0.883,0.883c0,0.485 0.399,0.883 0.883,0.883l8.638,0c0.484,0 0.883,-0.398 0.883,-0.883c0,-0.485 -0.399,-0.883 -0.883,-0.883Z"}),(0,e.createElement)("path",{d:"M19.681,21.672l8.638,0c0.484,0 0.883,-0.399 0.883,-0.884c0,-0.485 -0.399,-0.883 -0.883,-0.883l-8.638,0c-0.484,0 -0.883,0.398 -0.883,0.883c0,0.485 0.399,0.884 0.883,0.884Z"}))),La.videopop=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M46.53,6.719l-45.06,0c-0.485,0 -0.883,0.399 -0.883,0.884l0,32.794c0,0.485 0.398,0.884 0.883,0.884l45.06,0c0.485,0 0.883,-0.399 0.883,-0.884l0,-32.802c-0.004,-0.482 -0.401,-0.876 -0.883,-0.876Z",fill:"#fff",fillRule:"nonzero"}),(0,e.createElement)("path",{d:"M28.951,26.669l-9.902,6.938l0,-13.875l9.902,6.937Z",fill:"#0058b0"}),(0,e.createElement)("path",{d:"M46.538,6.714l-45.076,0c-0.484,0 -0.883,0.399 -0.883,0.883l0,32.806c0,0.484 0.399,0.883 0.883,0.883l45.076,0c0.484,0 0.883,-0.399 0.883,-0.883l0,-32.813c-0.004,-0.482 -0.402,-0.876 -0.883,-0.876Zm-44.192,32.798l0,-25.024l43.308,0l0,25.024l-43.308,0Z",fill:"#0058b0",fillRule:"nonzero"})),La.postbold=(0,e.createElement)("svg",{viewBox:"0 0 300 540",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{id:"Artboard1",width:"300",height:"539.959",fill:"none"}),(0,e.createElement)("path",{d:"M294.961,245l-289.961,0l0,-240l289.961,0.144l0,239.856Z",fill:"#797979",fillRule:"nonzero"}),(0,e.createElement)("ellipse",{cx:"234.432",cy:"44.995",rx:"22.514",ry:"22.503",fill:"#e0e0e0"}),(0,e.createElement)("g",{fillRule:"nonzero"},(0,e.createElement)("path",{d:"M127.077,81.235l-83.344,129.482l167.476,0l-84.132,-129.482Z",fill:"#373737"}),(0,e.createElement)("path",{d:"M194.685,120.497l-60.894,90.22l121.787,0l-60.893,-90.22Z",fill:"#565656"})),(0,e.createElement)("rect",{x:"20",y:"211.2",width:"260",height:"308.992",fill:"#fff"}),(0,e.createElement)("rect",{x:"40",y:"230.918",width:"180.929",height:"30",fill:"#454545"}),(0,e.createElement)("path",{d:"M128.604,500.793l-88.604,0l0,-30l88.604,0l0,30Zm-85.604,-27l0,24l82.604,0l0,-24l-82.604,0Z",fill:"#454545"}),(0,e.createElement)("rect",{x:"40",y:"282.653",width:"220",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"40",y:"311.728",width:"220",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"40",y:"340.803",width:"220",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"40",y:"369.878",width:"220",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"40",y:"398.404",width:"220",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"40",y:"428.773",width:"171.554",height:"15.846",fill:"#7b7b7b"})),La.postlist=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 540 300"},(0,e.createElement)("path",{fill:"#797979",fillRule:"nonzero",d:"M244.958 294.013H5V5l239.958.173v288.84z"}),(0,e.createElement)("ellipse",{cx:"194.438",cy:"67.378",fill:"#e0e0e0",rx:"22.514",ry:"22.503"}),(0,e.createElement)("g",{fillRule:"nonzero"},(0,e.createElement)("path",{fill:"#373737",d:"M101.171 115.719L17.826 245.2h167.476l-84.131-129.481z"}),(0,e.createElement)("path",{fill:"#565656",d:"M168.778 154.981L107.884 245.2h121.787l-60.893-90.219z"})),(0,e.createElement)("path",{fill:"#454545",d:"M272.186 24.808H487.505V54.808H272.186z"}),(0,e.createElement)("path",{fill:"#c5c5c5",d:"M272.186 69.674H416.129V85.9H272.186z"}),(0,e.createElement)("path",{fill:"#7b7b7b",d:"M272.186 114.342H519.12V130.188H272.186z"}),(0,e.createElement)("path",{fill:"#7b7b7b",d:"M272.186 143.417H519.12V159.263H272.186z"}),(0,e.createElement)("path",{fill:"#7b7b7b",d:"M272.186 172.492H519.12V188.338H272.186z"}),(0,e.createElement)("path",{fill:"#7b7b7b",d:"M272.186 201.567H519.12V217.413H272.186z"}),(0,e.createElement)("path",{fill:"#7b7b7b",d:"M272.186 230.093H519.12V245.939H272.186z"}),(0,e.createElement)("path",{fill:"#7b7b7b",d:"M272.186 260.462H464.74199999999996V276.308H272.186z"})),La.postascend=(0,e.createElement)("svg",{viewBox:"0 0 300 540",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{id:"Artboard1",width:"300",height:"539.959",fill:"none"}),(0,e.createElement)("path",{d:"M280,245l-260,0l0,-240l260,0.144l0,239.856Z",fill:"#797979",fillRule:"nonzero"}),(0,e.createElement)("ellipse",{cx:"234.432",cy:"44.995",rx:"22.514",ry:"22.503",fill:"#e0e0e0"}),(0,e.createElement)("g",{fillRule:"nonzero"},(0,e.createElement)("path",{d:"M127.077,81.235l-83.344,129.482l167.476,0l-84.132,-129.482Z",fill:"#373737"}),(0,e.createElement)("path",{d:"M194.685,120.497l-60.894,90.22l121.787,0l-60.893,-90.22Z",fill:"#565656"})),(0,e.createElement)("rect",{x:"20",y:"287.736",width:"213.855",height:"30",fill:"#454545"}),(0,e.createElement)("rect",{x:"20",y:"263.86",width:"150.012",height:"10",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"20",y:"508.538",width:"120.365",height:"10.299",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"262.007",y:"508.538",width:"17.034",height:"10.299",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"240.969",y:"508.538",width:"17.034",height:"10.299",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"20",y:"495.409",width:"259.984",height:"3.551",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"20",y:"339.47",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"368.545",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"397.62",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"426.695",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"455.77",width:"202.773",height:"15.846",fill:"#7b7b7b"})),La.postvirtue=(0,e.createElement)("svg",{viewBox:"0 0 300 540",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{id:"Artboard1",width:"300",height:"539.959",fill:"none"}),(0,e.createElement)("path",{d:"M295,245l-290,0l0,-240l290,0.144l0,239.856Z",fill:"#797979",fillRule:"nonzero"}),(0,e.createElement)("ellipse",{cx:"234.432",cy:"44.995",rx:"22.514",ry:"22.503",fill:"#e0e0e0"}),(0,e.createElement)("g",{fillRule:"nonzero"},(0,e.createElement)("path",{d:"M127.077,81.235l-83.344,129.482l167.476,0l-84.132,-129.482Z",fill:"#373737"}),(0,e.createElement)("path",{d:"M194.685,120.497l-60.894,90.22l121.787,0l-60.893,-90.22Z",fill:"#565656"})),(0,e.createElement)("rect",{x:"20",y:"264.262",width:"213.855",height:"30",fill:"#454545"}),(0,e.createElement)("rect",{x:"20",y:"301.768",width:"226.963",height:"10",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"20",y:"498.538",width:"120.365",height:"10.299",fill:"#a6a6a6"}),(0,e.createElement)("rect",{x:"20",y:"339.47",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"368.545",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"397.62",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"426.695",width:"260.035",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("rect",{x:"20",y:"455.77",width:"202.773",height:"15.846",fill:"#7b7b7b"}),(0,e.createElement)("path",{d:"M296,534l-292,0l0,-530l292,0l0,530Zm-290.5,-528.5l0,527l289,0l0,-527l-289,0Z",fill:"#bababa"})),La.postgrid=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M46.49,6.608l-44.98,0c-0.001,0 -0.002,0 -0.003,0c-0.486,0 -0.886,0.4 -0.886,0.886c0,0.001 0,0.002 0,0.003l0,33.006c0,0.001 0,0.002 0,0.003c0,0.486 0.4,0.886 0.886,0.886c0.001,0 0.002,0 0.003,0l44.98,0c0.001,0 0.002,0 0.003,0c0.486,0 0.886,-0.4 0.886,-0.886c0,-0.001 0,-0.002 0,-0.003l0,-33.014c-0.003,-0.485 -0.403,-0.883 -0.889,-0.881Zm-0.889,32.999l-43.202,0l0,-31.221l43.202,0l0,31.221Z"}),(0,e.createElement)("path",{d:"M39.42,20.636l3.535,0l-3.804,-4.843l-1.768,2.25l-2.857,-3.636l-4.891,6.229l9.785,0Z"}),(0,e.createElement)("path",{d:"M30.349,25.652l11.555,0c0.487,0 0.889,-0.401 0.889,-0.889c0,-0.487 -0.402,-0.889 -0.889,-0.889l-11.555,0c-0.488,0 -0.889,0.402 -0.889,0.889c0,0.488 0.401,0.889 0.889,0.889Z"}),(0,e.createElement)("path",{d:"M42.069,28.001l-11.547,0c-0.488,0 -0.889,0.401 -0.889,0.889c0,0.488 0.401,0.889 0.889,0.889c0,0 11.547,0 11.547,0c0.487,0 0.889,-0.401 0.889,-0.889c0,-0.488 -0.402,-0.889 -0.889,-0.889Z"}),(0,e.createElement)("path",{d:"M30.273,34.474l11.547,0c0.488,0 0.889,-0.401 0.889,-0.888c0,-0.488 -0.401,-0.889 -0.889,-0.889l-11.547,0c-0.488,0 -0.889,0.401 -0.889,0.889c0,0.487 0.401,0.888 0.889,0.888Z"}),(0,e.createElement)("path",{d:"M14.787,20.636l3.535,0l-3.805,-4.843l-1.767,2.25l-2.857,-3.636l-4.891,6.229l9.785,0Z"}),(0,e.createElement)("path",{d:"M5.715,25.652l11.555,0c0.488,0 0.889,-0.401 0.889,-0.889c0,-0.487 -0.401,-0.889 -0.889,-0.889l-11.555,0c-0.487,0 -0.889,0.402 -0.889,0.889c0,0.488 0.402,0.889 0.889,0.889Z"}),(0,e.createElement)("path",{d:"M17.435,28.001l-11.547,0c-0.488,0 -0.889,0.401 -0.889,0.889c0,0.488 0.401,0.889 0.889,0.889c0,0 11.547,0 11.547,0c0.488,0 0.889,-0.401 0.889,-0.889c0,-0.488 -0.401,-0.889 -0.889,-0.889Z"}),(0,e.createElement)("path",{d:"M5.639,34.474l11.547,0c0.488,0 0.889,-0.401 0.889,-0.888c0,-0.488 -0.401,-0.889 -0.889,-0.889l-11.547,0c-0.488,0 -0.889,0.401 -0.889,0.889c0,0.487 0.401,0.888 0.889,0.888Z"}),(0,e.createElement)("path",{d:"M21.46,37.921c0.488,0 0.889,-0.402 0.889,-0.889l0,-26.071c0,-0.488 -0.401,-0.889 -0.889,-0.889c-0.487,0 -0.888,0.401 -0.888,0.889l0,26.071c0,0.487 0.401,0.889 0.888,0.889Z"}),(0,e.createElement)("path",{d:"M26.54,37.921c0.487,0 0.888,-0.402 0.888,-0.889l0,-26.071c0,-0.488 -0.401,-0.889 -0.888,-0.889c-0.488,0 -0.889,0.401 -0.889,0.889l0,26.071c0,0.487 0.401,0.889 0.889,0.889Z"}))),La.splitcontent=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M19.394,10.615l-13.579,0c-0.603,0.002 -1.099,0.498 -1.099,1.102l0,24.538c0,0.007 0,0.014 0,0.021c0,0.603 0.496,1.1 1.099,1.101l13.579,0c0.604,0 1.101,-0.497 1.101,-1.101l0,-24.549c0,-0.003 0,-0.007 0,-0.01c0,-0.605 -0.497,-1.102 -1.101,-1.102c0,0 0,0 0,0Zm-3.52,16.832l-10.239,0l5.121,-6.521l2.987,3.806l1.85,-2.354l3.981,5.069l-3.7,0Z"}),(0,e.createElement)("path",{d:"M46.789,6.377l-45.578,0c0,0 -0.001,0 -0.002,0c-0.493,0 -0.898,0.406 -0.898,0.898c0,0.001 0,0.002 0,0.003l0,33.444c0,0.001 0,0.002 0,0.003c0,0.492 0.405,0.898 0.898,0.898c0.001,0 0.002,0 0.002,0l45.578,0c0,0 0.001,0 0.002,0c0.493,0 0.898,-0.406 0.898,-0.898c0,-0.001 0,-0.002 0,-0.003l0,-33.452c-0.003,-0.492 -0.409,-0.894 -0.9,-0.893Zm-44.677,1.801l20.987,0l0,31.636l-20.987,0l0,-31.636Zm43.776,31.636l-20.987,0l0,-31.636l20.987,0l0,31.636Z"}),(0,e.createElement)("path",{d:"M28.632,20.7l13.046,0c0.494,0 0.901,-0.407 0.901,-0.901c0,-0.494 -0.407,-0.9 -0.901,-0.9l-13.046,0c-0.494,0 -0.901,0.406 -0.901,0.9c0,0.494 0.407,0.901 0.901,0.901Z"}),(0,e.createElement)("path",{d:"M41.866,23.556l-13.036,0c-0.494,0 -0.901,0.407 -0.901,0.901c0,0.494 0.407,0.9 0.901,0.9l13.036,0c0.494,0 0.901,-0.406 0.901,-0.9c0,-0.494 -0.407,-0.901 -0.901,-0.901Z"}),(0,e.createElement)("path",{d:"M28.549,30.658l13.036,0c0.495,0 0.901,-0.406 0.901,-0.9c0,-0.494 -0.406,-0.901 -0.901,-0.901l-13.036,0c-0.494,0 -0.9,0.407 -0.9,0.901c0,0.494 0.406,0.9 0.9,0.9Z"}))),La.user=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"currentColor",viewBox:"0 0 32 32"},(0,e.createElement)("path",{d:"M18 22.082v-1.649c2.203-1.241 4-4.337 4-7.432 0-4.971 0-9-6-9s-6 4.029-6 9c0 3.096 1.797 6.191 4 7.432v1.649c-6.784 0.555-12 3.888-12 7.918h28c0-4.030-5.216-7.364-12-7.918z"})),La.tags=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"32",fill:"currentColor",viewBox:"0 0 36 32"},(0,e.createElement)("path",{d:"M34.939 19.939l-8.879-8.879c-0.583-0.583-1.736-1.061-2.561-1.061h-18c-0.825 0-1.5 0.675-1.5 1.5v19c0 0.825 0.675 1.5 1.5 1.5h18c0.825 0 1.977-0.477 2.561-1.061l8.879-8.879c0.583-0.583 0.583-1.538-0-2.121zM25 24c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"}),(0,e.createElement)("path",{d:"M2 8h21l-0.939-0.939c-0.583-0.583-1.736-1.061-2.561-1.061h-18c-0.825 0-1.5 0.675-1.5 1.5v19c0 0.825 0.675 1.5 1.5 1.5h0.5v-20z"})),La.comments=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"32",fill:"currentColor",viewBox:"0 0 36 32"},(0,e.createElement)("path",{d:"M15 4c-1.583 0-3.112 0.248-4.543 0.738-1.341 0.459-2.535 1.107-3.547 1.926-1.876 1.518-2.91 3.463-2.91 5.474 0 1.125 0.315 2.217 0.935 3.247 0.646 1.073 1.622 2.056 2.821 2.842 0.951 0.624 1.592 1.623 1.761 2.748 0.028 0.187 0.051 0.375 0.068 0.564 0.085-0.079 0.169-0.16 0.254-0.244 0.754-0.751 1.771-1.166 2.823-1.166 0.167 0 0.335 0.011 0.503 0.032 0.605 0.077 1.223 0.116 1.836 0.116 1.583 0 3.112-0.248 4.543-0.738 1.341-0.459 2.535-1.107 3.547-1.926 1.876-1.518 2.91-3.463 2.91-5.474s-1.033-3.956-2.91-5.474c-1.012-0.819-2.206-1.467-3.547-1.926-1.431-0.49-2.96-0.738-4.543-0.738zM15 0v0c8.284 0 15 5.435 15 12.139s-6.716 12.139-15 12.139c-0.796 0-1.576-0.051-2.339-0.147-3.222 3.209-6.943 3.785-10.661 3.869v-0.785c2.008-0.98 3.625-2.765 3.625-4.804 0-0.285-0.022-0.564-0.063-0.837-3.392-2.225-5.562-5.625-5.562-9.434 0-6.704 6.716-12.139 15-12.139zM31.125 27.209c0 1.748 1.135 3.278 2.875 4.118v0.673c-3.223-0.072-6.181-0.566-8.973-3.316-0.661 0.083-1.337 0.126-2.027 0.126-2.983 0-5.732-0.805-7.925-2.157 4.521-0.016 8.789-1.464 12.026-4.084 1.631-1.32 2.919-2.87 3.825-4.605 0.961-1.84 1.449-3.799 1.449-5.825 0-0.326-0.014-0.651-0.039-0.974 2.268 1.873 3.664 4.426 3.664 7.24 0 3.265-1.88 6.179-4.82 8.086-0.036 0.234-0.055 0.474-0.055 0.718z"})),La.categories=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",fill:"currentColor",height:"32",viewBox:"0 0 32 32"},(0,e.createElement)("path",{d:"M0 10h32l-2 20h-28l-2-20zM29 6l1 2h-28l2-4h11l1 2h13z"})),La.row=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"60.000",height:"30.000",fill:"#d5dadf"})),La.collapserow=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"60.000",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"16.000",width:"60.000",height:"14.000",fill:"#d5dadf"})),La.collapserowthree=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"60.000",height:"9.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"10.500",width:"60.000",height:"9.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"21.000",width:"60.000",height:"9.000",fill:"#d5dadf"})),La.collapserowfour=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"60.000",height:"6.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"8.000",width:"60.000",height:"6.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"16.000",width:"60.000",height:"6.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"24.000",width:"60.000",height:"6.000",fill:"#d5dadf"})),La.collapserowfive=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"60.000",height:"5.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"6.000",width:"60.000",height:"5.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"12.000",width:"60.000",height:"5.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"18.000",width:"60.000",height:"5.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"24.000",width:"60.000",height:"5.000",fill:"#d5dadf"})),La.collapserowsix=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"60.000",height:"4.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"5.000",width:"60.000",height:"4.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"10.000",width:"60.000",height:"4.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"15.000",width:"60.000",height:"4.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"20.000",width:"60.000",height:"4.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"25.000",width:"60.000",height:"4.000",fill:"#d5dadf"})),La.twocol=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"31.000",y:"0.000",width:"29.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"29.000",height:"30.000",fill:"#d5dadf"})),La.grid=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"31.000",y:"0.000",width:"29.000",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"29.000",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"31.000",y:"16.000",width:"29.000",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"16.000",width:"29.000",height:"14.000",fill:"#d5dadf"})),La.threecol=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"18.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"20.500",y:"0.000",width:"19.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"41.500",y:"0.000",width:"18.500",height:"30.000",fill:"#d5dadf"})),La.threegrid=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"18.500",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"20.500",y:"0.000",width:"19.000",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"41.500",y:"0.000",width:"18.500",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"16.000",width:"18.500",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"20.500",y:"16.000",width:"19.000",height:"14.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"41.500",y:"16.000",width:"18.500",height:"14.000",fill:"#d5dadf"})),La.twoleftgolden=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"41.000",y:"0.000",width:"19.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"39.000",height:"30.000",fill:"#d5dadf"})),La.tworightgolden=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"21.000",y:"0.000",width:"39.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"19.000",height:"30.000",fill:"#d5dadf"})),La.lefthalf=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"29.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"31",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"46.500",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"})),La.righthalf=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"15.500",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"31.000",y:"0.000",width:"29.000",height:"30.000",fill:"#d5dadf"})),La.centerhalf=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"15.500",y:"0.000",width:"29.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"46.500",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"})),La.widecenter=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"11.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"13.000",y:"0.000",width:"34.000",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"49.000",y:"0.000",width:"11.000",height:"30.000",fill:"#d5dadf"})),La.exwidecenter=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"7.200",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"9.200",y:"0.000",width:"41.600",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"52.800",y:"0.000",width:"7.200",height:"30.000",fill:"#d5dadf"})),La.fourcol=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"15.500",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"31.000",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"46.500",y:"0.000",width:"13.500",height:"30.000",fill:"#d5dadf"})),La.lfourforty=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"21.600",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"23.600",y:"0.000",width:"10.800",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"36.400",y:"0.000",width:"10.800",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"49.200",y:"0.000",width:"10.800",height:"30.000",fill:"#d5dadf"})),La.rfourforty=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"10.800",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"12.800",y:"0.000",width:"10.800",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"25.600",y:"0.000",width:"10.800",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"38.400",y:"0.000",width:"21.600",height:"30.000",fill:"#d5dadf"})),La.fivecol=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"10.400",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"12.400",y:"0.000",width:"10.400",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"24.800",y:"0.000",width:"10.400",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"37.200",y:"0.000",width:"10.400",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"49.600",y:"0.000",width:"10.400",height:"30.000",fill:"#d5dadf"})),La.sixcol=(0,e.createElement)("svg",{viewBox:"0 0 60 30",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.000",y:"0.000",width:"8.350",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"10.330",y:"0.000",width:"8.350",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"20.660",y:"0.000",width:"8.350",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"30.990",y:"0.000",width:"8.350",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"41.320",y:"0.000",width:"8.350",height:"30.000",fill:"#d5dadf"}),(0,e.createElement)("rect",{x:"51.650",y:"0.000",width:"8.350",height:"30.000",fill:"#d5dadf"})),La.aligntop=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z",fillRule:"nonzero"}),(0,e.createElement)("rect",{x:"4.489",y:"4.545",width:"11.022",height:"2.512"})),La.alignmiddle=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z",fillRule:"nonzero"}),(0,e.createElement)("rect",{x:"4.489",y:"8.744",width:"11.022",height:"2.512"})),La.alignbottom=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z",fillRule:"nonzero"}),(0,e.createElement)("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"})),La.blockColumn=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M47.612,40.008l-19.999,0l0,-32.016l13.566,0l6.433,0.023l0,31.993Z",fill:"#97eaff",fillRule:"nonzero"}),(0,e.createElement)("path",{d:"M20.383,40l-20.036,0l0,-32l20.036,0.019l0,31.981Z",fill:"#00b5e2",fillRule:"nonzero"})),La.outlinetop=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"2.714",y:"5.492",width:"1.048",height:"9.017",fill:"#555d66"}),(0,e.createElement)("rect",{x:"16.265",y:"5.498",width:"1.023",height:"9.003",fill:"#555d66"}),(0,e.createElement)("rect",{x:"5.518",y:"2.186",width:"8.964",height:"2.482",fill:"#272b2f"}),(0,e.createElement)("rect",{x:"5.487",y:"16.261",width:"9.026",height:"1.037",fill:"#555d66"})),La.outlineright=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"2.714",y:"5.492",width:"1.046",height:"9.017",fill:"#555d66"}),(0,e.createElement)("rect",{x:"15.244",y:"5.498",width:"2.518",height:"9.003",fill:"#272b2f"}),(0,e.createElement)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.954",fill:"#555d66"}),(0,e.createElement)("rect",{x:"5.487",y:"16.308",width:"9.026",height:"0.99",fill:"#555d66"})),La.outlinebottom=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"2.714",y:"5.492",width:"1",height:"9.017",fill:"#555d66"}),(0,e.createElement)("rect",{x:"16.261",y:"5.498",width:"1.027",height:"9.003",fill:"#555d66"}),(0,e.createElement)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.968",fill:"#555d66"}),(0,e.createElement)("rect",{x:"5.487",y:"15.28",width:"9.026",height:"2.499",fill:"#272b2f"})),La.outlineleft=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"2.202",y:"5.492",width:"2.503",height:"9.017",fill:"#272b2f"}),(0,e.createElement)("rect",{x:"16.276",y:"5.498",width:"1.012",height:"9.003",fill:"#555d66"}),(0,e.createElement)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.966",fill:"#555d66"}),(0,e.createElement)("rect",{x:"5.487",y:"16.303",width:"9.026",height:"0.995",fill:"#555d66"})),La.blocktabs=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"0.01",y:"15.018",width:"47.979",height:"27.952",fill:"#c0f3ff"}),(0,e.createElement)("path",{d:"M47.99,42.971l-47.98,0l0,-27.953l47.98,0l0,27.953Zm-45.98,-25.953l0,23.953l43.98,0l0,-23.953l-43.98,0Z",fill:"#00b5e2"}),(0,e.createElement)("rect",{y:"4.976",width:"14.985",height:"11.038",fill:"#00b5e2"}),(0,e.createElement)("rect",{x:"16.469",y:"4.975",width:"15.01",height:"8.607",fill:"#73e2ff"}),(0,e.createElement)("rect",{x:"32.97",y:"4.968",width:"15.03",height:"8.558",fill:"#73e2ff"}),(0,e.createElement)("rect",{x:"2.027",y:"7.103",width:"10.956",height:"10.848",fill:"#c0f3ff"})),La.tabs=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.294,15.966l-14.588,0l0,-11.932l4.122,0.001l-0.002,3.473l10.468,0.007c0,4.339 0,4.112 0,8.451Zm-13.738,-0.76l12.888,0l0,-6.932l-10.448,0l-0.008,-3.541l-2.432,0.003c0,3.832 0,6.638 0,10.47Z",fill:"#555d66",fillRule:"nonzero"}),(0,e.createElement)("rect",{x:"7.919",y:"4.042",width:"4.152",height:"2.669",fill:"#555d66"}),(0,e.createElement)("rect",{x:"13.135",y:"4.045",width:"4.152",height:"2.657",fill:"#555d66"})),La.vtabs=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.227,17.294l0,-14.588l-14.454,0l0.002,3.319l3.473,-0.003l0.006,11.272c4.339,0 6.634,0 10.973,0Zm-0.759,-13.738l0,12.888l-9.455,0l0.001,-11.251l-3.542,-0.008l0.002,-1.629c3.833,0 9.161,0 12.994,0Z",fill:"#555d66",fillRule:"nonzero"}),(0,e.createElement)("path",{d:"M2.82,9.846l0,-3.033l2.669,0l0,3.033l-2.669,0Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M2.823,13.676l0,-3.011l2.656,0l0,3.011l-2.656,0Z",fill:"#555d66"})),La.accordion=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.275,9.664l-14.607,0l0,-3.036l14.607,0l0,3.036Zm-13.807,-2.236l0,1.436l13.007,0l0,-1.436l-13.007,0Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M17.305,6.28l-14.607,0l0,-3.036l14.607,0l0,3.036Zm-13.807,-2.236l0,1.436l13.007,0l0,-1.436l-13.007,0Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M17.316,16.771l-14.608,0l0,-3.036l14.608,0l0,3.036Zm-13.808,-2.236l0,1.436l13.008,0l0,-1.436l-13.008,0Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M16.392,13.423l-12.815,0l0,-4.553l12.815,0l0,4.553Zm-12.015,-3.753l0,2.953l11.215,0l0,-2.953l-11.215,0Z",fill:"#555d66"})),La.linked=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M17.888,17.895l-15.776,0l0,-15.79l15.776,0l0,15.79Zm-13.276,-13.29l0,10.79l10.776,0l0,-10.79l-10.776,0Z"})),La.individual=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("rect",{x:"2.024",y:"5.486",width:"2.61",height:"9.027"}),(0,e.createElement)("rect",{x:"15.379",y:"5.497",width:"2.56",height:"9.007"}),(0,e.createElement)("rect",{x:"5.509",y:"1.999",width:"8.983",height:"2.582"}),(0,e.createElement)("rect",{x:"5.51",y:"15.36",width:"8.979",height:"2.563"})),La.radiuslinked=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,7.881l-0.001,0.102l-0.004,0.101l-0.006,0.1l-0.009,0.1l-0.011,0.098l-0.014,0.099l-0.016,0.097l-0.019,0.097l-0.021,0.095l-0.023,0.095l-0.025,0.094l-0.028,0.093l-0.03,0.092l-0.032,0.091l-0.034,0.09l-0.037,0.089l-0.038,0.088l-0.041,0.087l-0.042,0.085l-0.045,0.085l-0.046,0.083l-0.049,0.082l-0.05,0.08l-0.052,0.079l-0.054,0.078l-0.056,0.077l-0.058,0.075l-0.059,0.074l-0.061,0.072l-0.063,0.071l-0.064,0.069l-0.066,0.068l-0.068,0.066l-0.069,0.064l-0.071,0.063l-0.072,0.061l-0.074,0.06l-0.075,0.057l-0.077,0.056l-0.078,0.054l-0.079,0.052l-0.081,0.051l-0.082,0.048l-0.083,0.047l-0.084,0.044l-0.086,0.043l-0.086,0.04l-0.088,0.039l-0.089,0.036l-0.09,0.034l-0.091,0.032l-0.092,0.03l-0.093,0.028l-0.094,0.025l-0.095,0.023l-0.096,0.021l-0.096,0.019l-0.098,0.016l-0.098,0.014l-0.099,0.011l-0.099,0.009l-0.101,0.006l-0.101,0.004l-0.101,0.001l-7.905,0l-0.101,-0.001l-0.101,-0.004l-0.101,-0.006l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.019l-0.096,-0.021l-0.095,-0.023l-0.094,-0.025l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.067,-0.066l-0.067,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.077l-0.054,-0.078l-0.052,-0.079l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.095l-0.021,-0.095l-0.019,-0.097l-0.016,-0.097l-0.014,-0.099l-0.011,-0.098l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-7.881l0.001,-0.102l0.004,-0.101l0.006,-0.1l0.009,-0.1l0.011,-0.099l0.014,-0.098l0.016,-0.097l0.019,-0.097l0.021,-0.096l0.023,-0.094l0.025,-0.094l0.028,-0.093l0.03,-0.092l0.032,-0.091l0.034,-0.09l0.037,-0.089l0.038,-0.088l0.041,-0.087l0.042,-0.085l0.045,-0.085l0.046,-0.083l0.049,-0.082l0.05,-0.08l0.052,-0.08l0.054,-0.078l0.056,-0.076l0.058,-0.075l0.059,-0.074l0.061,-0.072l0.063,-0.071l0.064,-0.069l0.067,-0.068l0.067,-0.066l0.069,-0.064l0.071,-0.063l0.072,-0.061l0.074,-0.06l0.075,-0.057l0.077,-0.056l0.078,-0.054l0.079,-0.052l0.081,-0.051l0.082,-0.048l0.083,-0.047l0.084,-0.044l0.086,-0.043l0.086,-0.04l0.088,-0.039l0.089,-0.036l0.09,-0.034l0.091,-0.032l0.092,-0.03l0.093,-0.028l0.094,-0.026l0.095,-0.023l0.096,-0.021l0.096,-0.018l0.098,-0.016l0.098,-0.014l0.099,-0.011l0.099,-0.009l0.101,-0.007l0.101,-0.003l0.101,-0.002l7.905,0l0.101,0.002Zm-7.99,2.498l-0.054,0.001l-0.038,0.001l-0.037,0.003l-0.036,0.003l-0.037,0.004l-0.035,0.005l-0.036,0.006l-0.035,0.007l-0.034,0.007l-0.034,0.009l-0.034,0.009l-0.034,0.01l-0.033,0.011l-0.033,0.011l-0.032,0.013l-0.032,0.013l-0.032,0.014l-0.032,0.014l-0.031,0.016l-0.03,0.016l-0.031,0.017l-0.03,0.018l-0.029,0.018l-0.029,0.019l-0.029,0.02l-0.028,0.021l-0.028,0.021l-0.027,0.022l-0.027,0.022l-0.026,0.024l-0.026,0.023l-0.025,0.025l-0.024,0.025l-0.024,0.026l-0.023,0.026l-0.023,0.026l-0.022,0.028l-0.021,0.027l-0.02,0.029l-0.02,0.028l-0.019,0.029l-0.019,0.03l-0.018,0.03l-0.017,0.03l-0.016,0.031l-0.015,0.031l-0.015,0.031l-0.014,0.032l-0.013,0.032l-0.012,0.033l-0.012,0.033l-0.011,0.033l-0.01,0.033l-0.009,0.034l-0.008,0.034l-0.008,0.035l-0.006,0.035l-0.006,0.035l-0.005,0.036l-0.004,0.036l-0.004,0.037l-0.002,0.037l-0.002,0.038l0,0.054l0,7.849l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.034l0.008,0.035l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.032l0.013,0.033l0.014,0.031l0.015,0.032l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.019,0.029l0.019,0.03l0.02,0.028l0.02,0.028l0.021,0.028l0.022,0.027l0.023,0.027l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.024l0.026,0.024l0.026,0.023l0.027,0.023l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.034,0.009l0.034,0.008l0.034,0.008l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.002l0.038,0.002l0.054,0l7.873,0l0.054,0l0.038,-0.002l0.037,-0.002l0.036,-0.003l0.037,-0.004l0.035,-0.005l0.036,-0.006l0.035,-0.007l0.034,-0.008l0.034,-0.008l0.034,-0.009l0.034,-0.01l0.033,-0.011l0.033,-0.011l0.032,-0.013l0.032,-0.013l0.032,-0.014l0.032,-0.014l0.031,-0.016l0.03,-0.016l0.031,-0.017l0.03,-0.018l0.029,-0.018l0.029,-0.019l0.029,-0.02l0.028,-0.021l0.028,-0.021l0.027,-0.022l0.027,-0.023l0.026,-0.023l0.026,-0.024l0.025,-0.024l0.024,-0.025l0.024,-0.026l0.023,-0.026l0.023,-0.027l0.022,-0.027l0.021,-0.028l0.021,-0.028l0.019,-0.028l0.02,-0.03l0.018,-0.029l0.018,-0.03l0.017,-0.03l0.016,-0.031l0.015,-0.031l0.015,-0.032l0.014,-0.031l0.013,-0.033l0.012,-0.032l0.012,-0.033l0.011,-0.033l0.01,-0.033l0.009,-0.034l0.008,-0.035l0.008,-0.034l0.006,-0.035l0.006,-0.035l0.005,-0.036l0.004,-0.036l0.004,-0.037l0.002,-0.037l0.002,-0.038l0,-0.054l0,-7.849l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-7.873,0Z",fill:"#555d66"})),La.radiusindividual=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,1.273l-5.531,-5.214l1.591,0l0.101,0.002Zm-1.692,-0.002l5.531,5.214l-2.5,-0.012l0,-1.245l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-1.57,0l-0.005,-2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M14.044,17.873l0.101,-0.003l0.101,-0.007l0.099,-0.009l0.099,-0.011l0.098,-0.014l0.098,-0.016l0.096,-0.018l0.096,-0.021l0.095,-0.023l0.094,-0.026l0.093,-0.028l0.092,-0.03l0.091,-0.032l0.09,-0.034l0.089,-0.036l0.088,-0.039l0.086,-0.04l0.086,-0.043l0.084,-0.044l0.083,-0.047l0.082,-0.048l0.081,-0.051l0.079,-0.052l0.078,-0.054l0.077,-0.056l0.075,-0.057l0.074,-0.06l0.072,-0.061l0.071,-0.063l0.069,-0.064l0.068,-0.066l0.066,-0.068l0.064,-0.069l0.063,-0.071l0.061,-0.072l0.059,-0.074l0.058,-0.075l0.056,-0.076l0.054,-0.078l0.052,-0.08l0.05,-0.08l0.049,-0.082l0.046,-0.083l0.045,-0.085l0.042,-0.085l0.041,-0.087l0.038,-0.088l0.037,-0.089l0.034,-0.09l0.032,-0.091l0.03,-0.092l0.028,-0.093l0.025,-0.094l0.023,-0.094l0.021,-0.096l0.019,-0.097l0.016,-0.097l0.014,-0.098l0.011,-0.099l0.009,-0.1l0.006,-0.1l0.004,-0.101l0.001,-0.102l0,-1.272l-5.531,5.213l1.591,0l0.101,-0.002Zm-1.692,0.002l5.531,-5.213l-2.5,0.012l0,1.244l0,0.054l-0.002,0.038l-0.002,0.037l-0.004,0.037l-0.004,0.036l-0.005,0.036l-0.006,0.035l-0.006,0.035l-0.008,0.035l-0.008,0.034l-0.009,0.034l-0.01,0.033l-0.011,0.033l-0.012,0.033l-0.012,0.033l-0.013,0.032l-0.014,0.032l-0.015,0.031l-0.015,0.031l-0.016,0.031l-0.017,0.03l-0.018,0.03l-0.018,0.03l-0.02,0.029l-0.019,0.028l-0.021,0.029l-0.021,0.027l-0.022,0.028l-0.023,0.026l-0.023,0.026l-0.024,0.026l-0.024,0.025l-0.025,0.025l-0.026,0.023l-0.026,0.024l-0.027,0.022l-0.027,0.022l-0.028,0.021l-0.028,0.021l-0.029,0.02l-0.029,0.019l-0.029,0.018l-0.03,0.018l-0.031,0.017l-0.03,0.016l-0.031,0.016l-0.032,0.014l-0.032,0.014l-0.032,0.013l-0.032,0.013l-0.033,0.011l-0.033,0.011l-0.034,0.01l-0.033,0.009l-0.035,0.009l-0.034,0.007l-0.035,0.007l-0.036,0.006l-0.035,0.005l-0.037,0.004l-0.036,0.003l-0.037,0.003l-0.038,0.001l-0.054,0.001l-1.57,0l-0.005,2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.077,17.873l-0.101,-0.003l-0.101,-0.007l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.018l-0.096,-0.021l-0.095,-0.023l-0.094,-0.026l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.068,-0.066l-0.066,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.076l-0.054,-0.078l-0.052,-0.08l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.094l-0.021,-0.096l-0.019,-0.097l-0.016,-0.097l-0.014,-0.098l-0.011,-0.099l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-1.272l5.531,5.213l-1.591,0l-0.101,-0.002Zm1.692,0.002l-5.531,-5.213l2.5,0.012l0,1.244l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.035l0.008,0.034l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.033l0.013,0.032l0.014,0.032l0.015,0.031l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.018,0.03l0.02,0.029l0.019,0.028l0.021,0.029l0.021,0.027l0.022,0.028l0.023,0.026l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.025l0.026,0.023l0.026,0.024l0.027,0.022l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.033,0.009l0.035,0.009l0.034,0.007l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.003l0.038,0.001l0.054,0.001l1.569,0l0.006,2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.077,2.124l-0.101,0.003l-0.101,0.007l-0.099,0.009l-0.099,0.011l-0.098,0.014l-0.098,0.016l-0.096,0.018l-0.096,0.021l-0.095,0.023l-0.094,0.026l-0.093,0.028l-0.092,0.03l-0.091,0.032l-0.09,0.034l-0.089,0.036l-0.088,0.039l-0.086,0.04l-0.086,0.043l-0.084,0.044l-0.083,0.047l-0.082,0.048l-0.081,0.051l-0.079,0.052l-0.078,0.054l-0.077,0.056l-0.075,0.057l-0.074,0.06l-0.072,0.061l-0.071,0.063l-0.069,0.064l-0.068,0.066l-0.066,0.068l-0.064,0.069l-0.063,0.071l-0.061,0.072l-0.059,0.074l-0.058,0.075l-0.056,0.076l-0.054,0.078l-0.052,0.08l-0.05,0.08l-0.049,0.082l-0.046,0.083l-0.045,0.085l-0.042,0.085l-0.041,0.087l-0.038,0.088l-0.037,0.089l-0.034,0.09l-0.032,0.091l-0.03,0.092l-0.028,0.093l-0.025,0.094l-0.023,0.094l-0.021,0.096l-0.019,0.097l-0.016,0.097l-0.014,0.098l-0.011,0.099l-0.009,0.1l-0.006,0.1l-0.004,0.101l-0.001,0.102l0,1.272l5.531,-5.213l-1.591,0l-0.101,0.002Zm1.692,-0.002l-5.531,5.213l2.5,-0.011l0,-1.245l0,-0.054l0.002,-0.038l0.002,-0.037l0.004,-0.037l0.004,-0.036l0.005,-0.036l0.006,-0.035l0.006,-0.035l0.008,-0.035l0.008,-0.034l0.009,-0.034l0.01,-0.033l0.011,-0.033l0.012,-0.033l0.012,-0.033l0.013,-0.032l0.014,-0.032l0.015,-0.031l0.015,-0.031l0.016,-0.031l0.017,-0.03l0.018,-0.03l0.018,-0.03l0.02,-0.029l0.019,-0.028l0.021,-0.029l0.021,-0.027l0.022,-0.028l0.023,-0.026l0.023,-0.026l0.024,-0.026l0.024,-0.025l0.025,-0.025l0.026,-0.023l0.026,-0.024l0.027,-0.022l0.027,-0.022l0.028,-0.021l0.028,-0.021l0.029,-0.02l0.029,-0.019l0.029,-0.018l0.03,-0.018l0.031,-0.017l0.03,-0.016l0.031,-0.016l0.032,-0.014l0.032,-0.014l0.032,-0.013l0.032,-0.013l0.033,-0.011l0.033,-0.011l0.034,-0.01l0.033,-0.009l0.035,-0.009l0.034,-0.007l0.035,-0.007l0.036,-0.006l0.035,-0.005l0.037,-0.004l0.036,-0.003l0.037,-0.003l0.038,-0.001l0.054,-0.001l1.569,0l0.006,-2.5Z",fill:"#555d66"})),La.topright=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,1.273l-5.531,-5.214l1.591,0l0.101,0.002Zm-1.692,-0.002l5.531,5.214l-2.5,-0.012l0,-1.245l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-1.57,0l-0.005,-2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})),La.topleft=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M6.077,2.124l-0.101,0.003l-0.101,0.007l-0.099,0.009l-0.099,0.011l-0.098,0.014l-0.098,0.016l-0.096,0.018l-0.096,0.021l-0.095,0.023l-0.094,0.026l-0.093,0.028l-0.092,0.03l-0.091,0.032l-0.09,0.034l-0.089,0.036l-0.088,0.039l-0.086,0.04l-0.086,0.043l-0.084,0.044l-0.083,0.047l-0.082,0.048l-0.081,0.051l-0.079,0.052l-0.078,0.054l-0.077,0.056l-0.075,0.057l-0.074,0.06l-0.072,0.061l-0.071,0.063l-0.069,0.064l-0.068,0.066l-0.066,0.068l-0.064,0.069l-0.063,0.071l-0.061,0.072l-0.059,0.074l-0.058,0.075l-0.056,0.076l-0.054,0.078l-0.052,0.08l-0.05,0.08l-0.049,0.082l-0.046,0.083l-0.045,0.085l-0.042,0.085l-0.041,0.087l-0.038,0.088l-0.037,0.089l-0.034,0.09l-0.032,0.091l-0.03,0.092l-0.028,0.093l-0.025,0.094l-0.023,0.094l-0.021,0.096l-0.019,0.097l-0.016,0.097l-0.014,0.098l-0.011,0.099l-0.009,0.1l-0.006,0.1l-0.004,0.101l-0.001,0.102l0,1.272l5.531,-5.213l-1.591,0l-0.101,0.002Zm1.692,-0.002l-5.531,5.213l2.5,-0.011l0,-1.245l0,-0.054l0.002,-0.038l0.002,-0.037l0.004,-0.037l0.004,-0.036l0.005,-0.036l0.006,-0.035l0.006,-0.035l0.008,-0.035l0.008,-0.034l0.009,-0.034l0.01,-0.033l0.011,-0.033l0.012,-0.033l0.012,-0.033l0.013,-0.032l0.014,-0.032l0.015,-0.031l0.015,-0.031l0.016,-0.031l0.017,-0.03l0.018,-0.03l0.018,-0.03l0.02,-0.029l0.019,-0.028l0.021,-0.029l0.021,-0.027l0.022,-0.028l0.023,-0.026l0.023,-0.026l0.024,-0.026l0.024,-0.025l0.025,-0.025l0.026,-0.023l0.026,-0.024l0.027,-0.022l0.027,-0.022l0.028,-0.021l0.028,-0.021l0.029,-0.02l0.029,-0.019l0.029,-0.018l0.03,-0.018l0.031,-0.017l0.03,-0.016l0.031,-0.016l0.032,-0.014l0.032,-0.014l0.032,-0.013l0.032,-0.013l0.033,-0.011l0.033,-0.011l0.034,-0.01l0.033,-0.009l0.035,-0.009l0.034,-0.007l0.035,-0.007l0.036,-0.006l0.035,-0.005l0.037,-0.004l0.036,-0.003l0.037,-0.003l0.038,-0.001l0.054,-0.001l1.569,0l0.006,-2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})),La.bottomleft=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M6.077,17.873l-0.101,-0.003l-0.101,-0.007l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.018l-0.096,-0.021l-0.095,-0.023l-0.094,-0.026l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.068,-0.066l-0.066,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.076l-0.054,-0.078l-0.052,-0.08l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.094l-0.021,-0.096l-0.019,-0.097l-0.016,-0.097l-0.014,-0.098l-0.011,-0.099l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-1.272l5.531,5.213l-1.591,0l-0.101,-0.002Zm1.692,0.002l-5.531,-5.213l2.5,0.012l0,1.244l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.035l0.008,0.034l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.033l0.013,0.032l0.014,0.032l0.015,0.031l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.018,0.03l0.02,0.029l0.019,0.028l0.021,0.029l0.021,0.027l0.022,0.028l0.023,0.026l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.025l0.026,0.023l0.026,0.024l0.027,0.022l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.033,0.009l0.035,0.009l0.034,0.007l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.003l0.038,0.001l0.054,0.001l1.569,0l0.006,2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"})),La.bottomright=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M14.044,17.873l0.101,-0.003l0.101,-0.007l0.099,-0.009l0.099,-0.011l0.098,-0.014l0.098,-0.016l0.096,-0.018l0.096,-0.021l0.095,-0.023l0.094,-0.026l0.093,-0.028l0.092,-0.03l0.091,-0.032l0.09,-0.034l0.089,-0.036l0.088,-0.039l0.086,-0.04l0.086,-0.043l0.084,-0.044l0.083,-0.047l0.082,-0.048l0.081,-0.051l0.079,-0.052l0.078,-0.054l0.077,-0.056l0.075,-0.057l0.074,-0.06l0.072,-0.061l0.071,-0.063l0.069,-0.064l0.068,-0.066l0.066,-0.068l0.064,-0.069l0.063,-0.071l0.061,-0.072l0.059,-0.074l0.058,-0.075l0.056,-0.076l0.054,-0.078l0.052,-0.08l0.05,-0.08l0.049,-0.082l0.046,-0.083l0.045,-0.085l0.042,-0.085l0.041,-0.087l0.038,-0.088l0.037,-0.089l0.034,-0.09l0.032,-0.091l0.03,-0.092l0.028,-0.093l0.025,-0.094l0.023,-0.094l0.021,-0.096l0.019,-0.097l0.016,-0.097l0.014,-0.098l0.011,-0.099l0.009,-0.1l0.006,-0.1l0.004,-0.101l0.001,-0.102l0,-1.272l-5.531,5.213l1.591,0l0.101,-0.002Zm-1.692,0.002l5.531,-5.213l-2.5,0.012l0,1.244l0,0.054l-0.002,0.038l-0.002,0.037l-0.004,0.037l-0.004,0.036l-0.005,0.036l-0.006,0.035l-0.006,0.035l-0.008,0.035l-0.008,0.034l-0.009,0.034l-0.01,0.033l-0.011,0.033l-0.012,0.033l-0.012,0.033l-0.013,0.032l-0.014,0.032l-0.015,0.031l-0.015,0.031l-0.016,0.031l-0.017,0.03l-0.018,0.03l-0.018,0.03l-0.02,0.029l-0.019,0.028l-0.021,0.029l-0.021,0.027l-0.022,0.028l-0.023,0.026l-0.023,0.026l-0.024,0.026l-0.024,0.025l-0.025,0.025l-0.026,0.023l-0.026,0.024l-0.027,0.022l-0.027,0.022l-0.028,0.021l-0.028,0.021l-0.029,0.02l-0.029,0.019l-0.029,0.018l-0.03,0.018l-0.031,0.017l-0.03,0.016l-0.031,0.016l-0.032,0.014l-0.032,0.014l-0.032,0.013l-0.032,0.013l-0.033,0.011l-0.033,0.011l-0.034,0.01l-0.033,0.009l-0.035,0.009l-0.034,0.007l-0.035,0.007l-0.036,0.006l-0.035,0.005l-0.037,0.004l-0.036,0.003l-0.037,0.003l-0.038,0.001l-0.054,0.001l-1.57,0l-0.005,2.5Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,e.createElement)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})),La.productCarousel=(0,e.createElement)("svg",{width:"20px",height:"20px",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"bevel",strokeMiterlimit:"1.414"},(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M46.604,6.624l-45.109,0c-0.001,0 -0.001,0 -0.002,0c-0.488,0 -0.889,0.402 -0.889,0.889c0,0.001 0,0.002 0,0.003l0,33.1c0,0.001 0,0.002 0,0.003c0,0.487 0.401,0.888 0.889,0.888c0.001,0 0.001,0 0.002,0l45.109,0c0,0 0.001,0 0.002,0c0.488,0 0.889,-0.401 0.889,-0.888c0,-0.001 0,-0.002 0,-0.003l0,-33.108c-0.003,-0.487 -0.405,-0.885 -0.891,-0.884Zm-0.892,33.093l-43.325,0l0,-31.31l43.325,0l0,31.31Z"}),(0,e.createElement)("path",{d:"M16.019,16.431c0.353,0 0.659,-0.242 0.74,-0.585l0.599,-2.527c0.12,-0.48 -0.243,-0.945 -0.738,-0.945l-6.843,0c-0.28,0 -0.507,0.227 -0.507,0.507c0,0.28 0.227,0.507 0.507,0.507l0.507,0l0,4.311c0,0.421 0.34,0.761 0.76,0.761l5.323,0c0.28,0 0.507,-0.227 0.507,-0.507c0,-0.28 -0.227,-0.507 -0.507,-0.507l-5.069,0l0,-1.015l4.721,0Zm-4.721,-3.043l5.002,0l-0.481,2.029l-4.521,0l0,-2.029Zm0.253,5.579c-0.42,0 -0.76,0.34 -0.76,0.761c0,0.42 0.34,0.76 0.76,0.76c0.421,0 0.761,-0.34 0.761,-0.76c0,-0.421 -0.34,-0.761 -0.761,-0.761Zm4.055,0c-0.42,0 -0.76,0.34 -0.76,0.761c0,0.42 0.34,0.76 0.76,0.76c0.42,0 0.761,-0.34 0.761,-0.76c0,-0.421 -0.34,-0.761 -0.761,-0.761Z",stroke:"#0058b0",strokeWidth:"0.25"}),(0,e.createElement)("path",{d:"M36.433,16.431c0.353,0 0.659,-0.242 0.74,-0.585l0.599,-2.527c0.12,-0.48 -0.243,-0.945 -0.738,-0.945l-6.843,0c-0.28,0 -0.507,0.227 -0.507,0.507c0,0.28 0.227,0.507 0.507,0.507l0.507,0l0,4.311c0,0.421 0.34,0.761 0.76,0.761l5.323,0c0.28,0 0.507,-0.227 0.507,-0.507c0,-0.28 -0.227,-0.507 -0.507,-0.507l-5.069,0l0,-1.015l4.721,0Zm-4.721,-3.043l5.002,0l-0.481,2.029l-4.521,0l0,-2.029Zm0.253,5.579c-0.42,0 -0.76,0.34 -0.76,0.761c0,0.42 0.34,0.76 0.76,0.76c0.421,0 0.761,-0.34 0.761,-0.76c0,-0.421 -0.34,-0.761 -0.761,-0.761Zm4.055,0c-0.419,0 -0.76,0.34 -0.76,0.761c0,0.42 0.341,0.76 0.76,0.76c0.42,0 0.761,-0.34 0.761,-0.76c0,-0.421 -0.34,-0.761 -0.761,-0.761Z",stroke:"#0058b0",strokeWidth:"0.3",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9.903,25.723l7.398,0c0.489,0 0.891,-0.403 0.891,-0.892c0,-0.489 -0.402,-0.891 -0.891,-0.891l-7.398,0c-0.489,0 -0.892,0.402 -0.892,0.891c0,0.489 0.403,0.892 0.892,0.892Z"}),(0,e.createElement)("path",{d:"M42.376,23.653l-1.39,2.409c-0.245,0.423 -0.098,0.973 0.326,1.217c0.423,0.245 0.973,0.098 1.218,-0.326l1.39,-2.408c0.245,-0.424 0.097,-0.973 -0.326,-1.218c-0.424,-0.244 -0.973,-0.097 -1.218,0.326Z"}),(0,e.createElement)("path",{d:"M43.937,23.579l-1.391,-2.408c-0.244,-0.423 -0.794,-0.571 -1.217,-0.326c-0.424,0.244 -0.571,0.794 -0.327,1.217l1.391,2.409c0.244,0.423 0.794,0.57 1.217,0.326c0.424,-0.245 0.571,-0.794 0.327,-1.218Z"}),(0,e.createElement)("path",{d:"M5.822,24.471l1.39,-2.409c0.245,-0.423 0.098,-0.973 -0.326,-1.217c-0.423,-0.245 -0.973,-0.097 -1.218,0.326l-1.39,2.408c-0.244,0.424 -0.097,0.973 0.326,1.218c0.424,0.244 0.973,0.097 1.218,-0.326Z"}),(0,e.createElement)("path",{d:"M4.261,24.545l1.391,2.408c0.244,0.424 0.794,0.571 1.217,0.326c0.424,-0.244 0.571,-0.794 0.327,-1.217l-1.391,-2.409c-0.244,-0.423 -0.794,-0.57 -1.217,-0.326c-0.424,0.245 -0.571,0.794 -0.327,1.218Z"}),(0,e.createElement)("path",{d:"M30.446,25.723l7.398,0c0.489,0 0.891,-0.403 0.891,-0.892c0,-0.489 -0.402,-0.891 -0.891,-0.891l-7.398,0c-0.489,0 -0.891,0.402 -0.891,0.891c0,0.489 0.402,0.892 0.891,0.892Z"}),(0,e.createElement)("path",{d:"M30.446,29.865l7.398,0c0.489,0 0.891,-0.403 0.891,-0.892c0,-0.489 -0.402,-0.891 -0.891,-0.891l-7.398,0c-0.489,0 -0.891,0.402 -0.891,0.891c0,0.489 0.402,0.892 0.891,0.892Z"}),(0,e.createElement)("path",{d:"M30.446,34.527l7.398,0c0.489,0 0.891,-0.402 0.891,-0.891c0,-0.489 -0.402,-0.892 -0.891,-0.892l-7.398,0c-0.489,0 -0.891,0.403 -0.891,0.892c0,0.489 0.402,0.891 0.891,0.891Z"}),(0,e.createElement)("path",{d:"M9.903,29.827l7.398,0c0.489,0 0.891,-0.403 0.891,-0.892c0,-0.489 -0.402,-0.891 -0.891,-0.891l-7.398,0c-0.489,0 -0.892,0.402 -0.892,0.891c0,0.489 0.403,0.892 0.892,0.892Z"}),(0,e.createElement)("path",{d:"M9.903,34.581l7.398,0c0.489,0 0.891,-0.403 0.891,-0.892c0,-0.489 -0.402,-0.891 -0.891,-0.891l-7.398,0c-0.489,0 -0.892,0.402 -0.892,0.891c0,0.489 0.403,0.892 0.892,0.892Z"}),(0,e.createElement)("path",{d:"M21.503,38.026c0.489,0 0.891,-0.402 0.891,-0.891l0,-26.145c0,-0.489 -0.402,-0.892 -0.891,-0.892c-0.489,0 -0.892,0.403 -0.892,0.892l0,26.145c0,0.489 0.403,0.891 0.892,0.891Z"}),(0,e.createElement)("path",{d:"M26.596,38.026c0.489,0 0.892,-0.402 0.892,-0.891l0,-26.145c0,-0.489 -0.403,-0.892 -0.892,-0.892c-0.489,0 -0.891,0.403 -0.891,0.892l0,26.145c0,0.489 0.402,0.891 0.891,0.891Z"}))),La.gallery=(0,e.createElement)("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M46.652,11.743l-38.504,0c-0.414,0 -0.755,0.341 -0.755,0.755l0,28.023c0,0.414 0.341,0.755 0.755,0.755l38.504,0c0.414,0 0.755,-0.341 0.755,-0.755l0,-28.029c-0.003,-0.412 -0.344,-0.749 -0.755,-0.749Zm-0.754,28.017l-36.995,0l0,-26.508l36.995,0l0,26.508Z"}),(0,e.createElement)("path",{d:"M1.53,5.125l38.504,0c0.412,0 0.752,0.337 0.755,0.749l0,4.421l-1.509,0l0,-3.66l-36.995,0l0,26.507l3.772,0l0,1.516l-4.527,0c-0.414,0 -0.755,-0.341 -0.755,-0.755l0,-28.023c0,-0.414 0.341,-0.755 0.755,-0.755Z"}),(0,e.createElement)("path",{d:"M35,37.002l8.603,0l-9.256,-11.785l-4.302,5.476l-6.946,-8.846l-11.902,15.155l23.803,0Z"}),(0,e.createElement)("path",{d:"M37.607,24.719c2.402,-0.003 4.378,-1.98 4.378,-4.382c0,-2.403 -1.978,-4.381 -4.382,-4.381c-2.403,0 -4.381,1.978 -4.381,4.381c0.003,2.404 1.981,4.381 4.385,4.382Zm0,-7.254c1.574,0.003 2.868,1.299 2.868,2.872c0,1.576 -1.297,2.872 -2.872,2.872c-1.576,0 -2.872,-1.296 -2.872,-2.872c0.001,-1.575 1.299,-2.872 2.874,-2.872l0.002,0Z"}))),La.galCarousel=(0,e.createElement)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M22.456,10.263l-20.191,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.191,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.18,-0.393 -0.396,-0.393Zm-0.395,14.692l-19.401,0l0,-13.9l19.401,0l0,13.9Z"}),(0,e.createElement)("path",{d:"M16.346,23.509l4.512,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.242,7.947l12.483,0Z"}),(0,e.createElement)("path",{d:"M17.713,17.068c1.26,-0.001 2.296,-1.038 2.296,-2.298c0,-1.26 -1.038,-2.297 -2.298,-2.297c-1.26,0 -2.298,1.037 -2.298,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.504,0.681 1.504,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.827,0 -1.506,-0.68 -1.506,-1.506c0,-0.826 0.681,-1.506 1.507,-1.506l0.001,0Z"})),(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M45.661,10.263l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.18,-0.393 -0.396,-0.393Zm-0.396,14.692l-19.4,0l0,-13.9l19.4,0l0,13.9Z"}),(0,e.createElement)("path",{d:"M39.551,23.509l4.511,0l-4.854,-6.18l-2.256,2.872l-3.642,-4.639l-6.242,7.947l12.483,0Z"}),(0,e.createElement)("path",{d:"M40.918,17.068c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.297,-2.297c-1.261,0 -2.298,1.037 -2.298,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.504,0.681 1.504,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.827,0 -1.507,-0.68 -1.507,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})),(0,e.createElement)("circle",{cx:"21.053",cy:"27.427",r:"0.518",fill:"#3a3a3a"}),(0,e.createElement)("circle",{cx:"24.053",cy:"27.427",r:"0.518",fill:"#3a3a3a"}),(0,e.createElement)("circle",{cx:"27.053",cy:"27.427",r:"0.518",fill:"#3a3a3a"})),La.galFluid=(0,e.createElement)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M10.287,17.068c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.503,0.681 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,e.createElement)("path",{d:"M0.871,17.863l1.807,-2.301l3.643,4.639l2.256,-2.872l4.854,6.18l-12.56,0l0,-5.646Z"}),(0,e.createElement)("path",{d:"M15.03,10.263c0.215,0 0.394,0.177 0.396,0.393l0,14.699c0,0.217 -0.179,0.396 -0.396,0.396l-14.159,0l0,-0.796l13.763,0l0,-13.9l-13.763,0l0,-0.792l14.159,0Z"})),(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M47.053,12.922l0,1.2c-0.095,0.197 -0.149,0.417 -0.149,0.648c0,0.232 0.053,0.452 0.149,0.649l0,1.199c-0.568,-0.42 -0.94,-1.094 -0.941,-1.848c0,-0.754 0.372,-1.428 0.941,-1.848Z"}),(0,e.createElement)("path",{d:"M47.053,23.509l-12.491,0l6.242,-7.947l3.643,4.639l2.256,-2.872l0.35,0.446l0,5.734Z"}),(0,e.createElement)("path",{d:"M32.964,10.263l14.089,0l0,0.792l-13.694,0l0,13.9l13.694,0l0,0.796l-14.089,0c-0.217,0 -0.396,-0.179 -0.396,-0.396l0,-14.696c0,-0.217 0.179,-0.396 0.396,-0.396Z"})),(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M30.712,10.263l-13.451,0c-0.217,0 -0.395,0.179 -0.395,0.396l0,14.696c0,0.217 0.178,0.396 0.395,0.396l13.451,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.18,-0.393 -0.396,-0.393Zm-0.395,14.692l-12.66,0l0,-13.9l12.66,0l0,13.9Z"}),(0,e.createElement)("path",{d:"M26.263,23.458l2.443,0l-2.628,-3.347l-1.222,1.555l-1.973,-2.512l-3.38,4.304l6.76,0Z"}),(0,e.createElement)("path",{d:"M26.836,17.145c0.837,-0.001 1.527,-0.691 1.527,-1.529c0,-0.838 -0.69,-1.528 -1.529,-1.528c-0.838,0 -1.528,0.69 -1.528,1.528c0.001,0.839 0.691,1.529 1.53,1.529Zm0,-2.531c0.548,0.001 1,0.453 1,1.002c0,0.55 -0.452,1.002 -1.002,1.002c-0.55,0 -1.002,-0.452 -1.002,-1.002c0,-0.549 0.453,-1.002 1.003,-1.002l0.001,0Z"})),(0,e.createElement)("circle",{cx:"21.053",cy:"27.427",r:"0.518",fill:"#3a3a3a"}),(0,e.createElement)("circle",{cx:"24.053",cy:"27.427",r:"0.518",fill:"#3a3a3a"}),(0,e.createElement)("circle",{cx:"27.053",cy:"27.427",r:"0.518",fill:"#3a3a3a"})),La.galGrid=(0,e.createElement)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M45.54,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.395 0.396,0.395l20.192,0c0.217,0 0.396,-0.178 0.396,-0.395l0,-14.699c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,14.692l-19.4,0l0,-13.9l19.4,0l0,13.9Z"}),(0,e.createElement)("path",{d:"M39.43,14.702l4.511,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.241,7.947l12.483,0Z"}),(0,e.createElement)("path",{d:"M40.797,8.261c1.259,-0.002 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,e.createElement)("path",{d:"M22.626,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.395 0.396,0.395l20.192,0c0.217,0 0.396,-0.178 0.396,-0.395l0,-14.699c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,14.692l-19.4,0l0,-13.9l19.4,0l0,13.9Z"}),(0,e.createElement)("path",{d:"M16.515,14.702l4.512,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.241,7.947l12.482,0Z"}),(0,e.createElement)("path",{d:"M17.883,8.261c1.259,-0.002 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M45.54,19.071l-20.192,0c-0.217,0 -0.396,0.178 -0.396,0.395l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.181,-0.392 -0.396,-0.392Zm-0.396,14.692l-19.4,0l0,-13.901l19.4,0l0,13.901Z"}),(0,e.createElement)("path",{d:"M39.43,32.317l4.511,0l-4.854,-6.181l-2.256,2.872l-3.643,-4.639l-6.241,7.948l12.483,0Z"}),(0,e.createElement)("path",{d:"M40.797,25.875c1.259,-0.001 2.295,-1.038 2.295,-2.297c0,-1.261 -1.037,-2.298 -2.298,-2.298c-1.26,0 -2.297,1.037 -2.297,2.298c0.002,1.26 1.039,2.297 2.3,2.297Zm0,-3.803c0.825,0.001 1.503,0.68 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.827 0.681,-1.506 1.507,-1.506l0.002,0Z"})),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M22.626,19.071l-20.192,0c-0.217,0 -0.396,0.178 -0.396,0.395l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.181,-0.392 -0.396,-0.392Zm-0.396,14.692l-19.4,0l0,-13.901l19.4,0l0,13.901Z"}),(0,e.createElement)("path",{d:"M16.515,32.317l4.512,0l-4.854,-6.181l-2.256,2.872l-3.643,-4.639l-6.241,7.948l12.482,0Z"}),(0,e.createElement)("path",{d:"M17.883,25.875c1.259,-0.001 2.295,-1.038 2.295,-2.297c0,-1.261 -1.037,-2.298 -2.298,-2.298c-1.26,0 -2.297,1.037 -2.297,2.298c0.002,1.26 1.039,2.297 2.3,2.297Zm0,-3.803c0.825,0.001 1.503,0.68 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.827 0.681,-1.506 1.507,-1.506l0.002,0Z"})))),La.galMasonry=(0,e.createElement)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M45.54,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,11.139c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-11.142c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,11.136l-19.4,0l0,-10.344l19.4,0l0,10.344Z"}),(0,e.createElement)("path",{d:"M36.728,11.438l3.535,0l-3.803,-4.843l-1.768,2.25l-2.854,-3.635l-4.891,6.228l9.781,0Z"}),(0,e.createElement)("path",{d:"M40.797,8.261c1.259,-0.002 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})),(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M22.626,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,21.375c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-21.378c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,21.372l-19.4,0l0,-20.58l19.4,0l0,20.58Z"}),(0,e.createElement)("path",{d:"M16.515,19.869l4.512,0l-4.854,-6.18l-2.256,2.871l-3.643,-4.639l-6.241,7.948l12.482,0Z"}),(0,e.createElement)("path",{d:"M17.883,9.509c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.002 1.503,0.681 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})),(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M45.54,15.418l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,18.143c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-18.146c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,18.14l-19.4,0l0,-17.348l19.4,0l0,17.348Z"}),(0,e.createElement)("path",{d:"M39.43,31.64l4.511,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.241,7.947l12.483,0Z"}),(0,e.createElement)("path",{d:"M40.797,23.21c1.259,-0.002 2.295,-1.039 2.295,-2.298c0,-1.26 -1.037,-2.298 -2.298,-2.298c-1.26,0 -2.297,1.038 -2.297,2.298c0.002,1.26 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})),(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M2.434,25.752l20.192,0c0.215,0.001 0.394,0.177 0.396,0.393l0,8.438l-0.792,0l0,-8.039l-19.4,0l0,8.039l-0.792,0l0,-8.435c0,-0.217 0.179,-0.395 0.396,-0.396Z"}),(0,e.createElement)("path",{d:"M13.048,34.583l-5.548,0l2.774,-3.532l2.774,3.532Zm4.511,0l-2.772,0l1.386,-1.765l1.386,1.765Z"}),(0,e.createElement)("path",{d:"M17.883,32.557c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.503,0.681 1.503,1.506c0,0.827 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.679 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}))),La.galSlider=(0,e.createElement)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M40.817,5.098l-33.661,0c-0.361,0 -0.659,0.298 -0.659,0.66l0,24.498c0,0.362 0.298,0.66 0.659,0.66l33.661,0c0.362,0 0.66,-0.298 0.66,-0.66l0,-24.503c-0.003,-0.361 -0.3,-0.655 -0.66,-0.655Zm-0.659,24.493l-32.342,0l0,-23.173l32.342,0l0,23.173Z"}),(0,e.createElement)("path",{d:"M30.631,27.18l7.521,0l-8.092,-10.303l-3.76,4.788l-6.073,-7.734l-10.405,13.249l20.809,0Z"}),(0,e.createElement)("path",{d:"M32.91,16.442c2.1,-0.003 3.827,-1.731 3.827,-3.831c0,-2.101 -1.729,-3.83 -3.831,-3.83c-2.101,0 -3.83,1.729 -3.83,3.83c0.003,2.102 1.732,3.83 3.834,3.831Zm0,-6.341c1.376,0.002 2.507,1.135 2.507,2.51c0,1.377 -1.133,2.511 -2.511,2.511c-1.377,0 -2.51,-1.134 -2.51,-2.511c0.001,-1.377 1.135,-2.51 2.512,-2.51l0.002,0Z"})),(0,e.createElement)("circle",{cx:"21.053",cy:"32.743",r:"0.518",fill:"#3a3a3a"}),(0,e.createElement)("circle",{cx:"24.053",cy:"32.743",r:"0.518",fill:"#3a3a3a"}),(0,e.createElement)("circle",{cx:"27.053",cy:"32.743",r:"0.518",fill:"#3a3a3a"})),La.galtiles=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 48 37"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M45.54 1.456H31.111a.398.398 0 00-.396.396v14.696c0 .217.179.395.396.395H45.54a.397.397 0 00.396-.395V1.849a.399.399 0 00-.396-.393zm-.396 14.692H31.507v-13.9h13.637v13.9z"}),(0,e.createElement)("path",{d:"M41.123 14.376h3.023l-3.253-4.143-1.513 1.926-2.442-3.11-4.183 5.327h8.368zM41.598 6.658a1.504 1.504 0 001.494-1.496c0-.821-.675-1.496-1.496-1.496S40.1 4.341 40.1 5.162a1.506 1.506 0 001.498 1.496zm0-2.477a.985.985 0 01.978.981c0 .537-.442.98-.98.98a.986.986 0 01-.981-.98.987.987 0 01.981-.981h.002zM28.89 1.456H2.434a.398.398 0 00-.396.396v14.696c0 .217.179.395.396.395H28.89a.397.397 0 00.396-.395V1.849a.399.399 0 00-.396-.393zm-.396 14.692H2.83v-13.9h25.664v13.9z"}),(0,e.createElement)("path",{d:"M19.501 14.702h4.512l-4.854-6.18-2.256 2.872-3.643-4.639-6.241 7.947h12.482zM21.245 8.261a2.31 2.31 0 002.295-2.298 2.308 2.308 0 00-2.298-2.297 2.308 2.308 0 00-2.297 2.297 2.312 2.312 0 002.3 2.298zm0-3.804a1.513 1.513 0 011.503 1.506c0 .826-.68 1.506-1.506 1.506s-1.506-.68-1.506-1.506a1.515 1.515 0 011.507-1.506h.002z"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M45.54 19.071H16.57a.397.397 0 00-.396.395v14.696c0 .217.179.396.396.396h28.97a.398.398 0 00.396-.396V19.463a.398.398 0 00-.396-.392zm-.396 14.692H16.966V19.862h28.178v13.901z"}),(0,e.createElement)("path",{d:"M34.842 32.317h4.511l-4.854-6.181-2.256 2.872-3.643-4.639-6.241 7.948h12.483zM38.68 25.875a2.308 2.308 0 002.295-2.297 2.309 2.309 0 00-2.298-2.298 2.308 2.308 0 00-2.297 2.298 2.311 2.311 0 002.3 2.297zm0-3.803c.825.001 1.503.68 1.503 1.506s-.679 1.506-1.506 1.506c-.826 0-1.506-.68-1.506-1.506a1.514 1.514 0 011.507-1.506h.002z"})),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M14.099 19.071H2.434a.397.397 0 00-.396.395v14.696c0 .217.179.396.396.396h11.665a.398.398 0 00.396-.396V19.463a.398.398 0 00-.396-.392zm-.396 14.692H2.83V19.862h10.873v13.901z"}),(0,e.createElement)("path",{d:"M10.271 32.317h2.255L10.1 29.228l-1.127 1.435-1.821-2.318-3.119 3.972h6.238zM10.674 24.896a1.288 1.288 0 001.28-1.281c0-.703-.579-1.282-1.282-1.282-.702 0-1.281.579-1.281 1.282a1.29 1.29 0 001.283 1.281zm0-2.121c.46.001.838.379.838.84 0 .461-.379.84-.84.84a.844.844 0 01-.84-.84.845.845 0 01.841-.84h.001z"})))),La.thumbslider=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 48 37"},(0,e.createElement)("g",{fill:"#3a3a3a",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M40.856 2.066H7.195a.663.663 0 00-.659.66v24.498c0 .362.298.66.659.66h33.661c.362 0 .66-.298.66-.66V2.721a.663.663 0 00-.66-.655zm-.659 24.493H7.855V3.386h32.342v23.173z"}),(0,e.createElement)("path",{d:"M30.67 24.148h7.521l-8.092-10.303-3.76 4.788-6.073-7.734L9.861 24.148H30.67zM32.949 13.41c2.1-.003 3.827-1.731 3.827-3.831 0-2.101-1.729-3.83-3.831-3.83a3.848 3.848 0 00-3.83 3.83 3.854 3.854 0 003.834 3.831zm0-6.341a2.523 2.523 0 012.507 2.51 2.523 2.523 0 01-2.511 2.511 2.523 2.523 0 01-2.51-2.511 2.524 2.524 0 012.512-2.51h.002zM14.706 28.741H6.631a.16.16 0 00-.158.159v5.876c0 .087.072.158.158.158h8.075a.159.159 0 00.158-.158v-5.878a.16.16 0 00-.158-.157zm-.159 5.875H6.79v-5.558h7.757v5.558z"}),(0,e.createElement)("path",{d:"M12.262 34.038h1.804l-1.941-2.471-.902 1.148-1.456-1.855-2.496 3.178h4.991zM12.809 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M23.535 28.741H15.46a.16.16 0 00-.158.159v5.876c0 .087.072.158.158.158h8.075a.159.159 0 00.158-.158v-5.878a.16.16 0 00-.158-.157zm-.158 5.875h-7.758v-5.558h7.758v5.558z"}),(0,e.createElement)("path",{d:"M21.091 34.038h1.804l-1.941-2.471-.902 1.148-1.456-1.855-2.496 3.178h4.991zM21.638 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"})),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M32.452 28.741h-8.074a.16.16 0 00-.158.159v5.876c0 .087.071.158.158.158h8.074a.16.16 0 00.159-.158v-5.878a.16.16 0 00-.159-.157zm-.158 5.875h-7.758v-5.558h7.758v5.558z"}),(0,e.createElement)("path",{d:"M30.009 34.038h1.804l-1.941-2.471-.902 1.148-1.457-1.855-2.495 3.178h4.991zM30.556 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"})),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M41.369 28.741h-8.075a.16.16 0 00-.158.159v5.876c0 .087.072.158.158.158h8.075a.159.159 0 00.158-.158v-5.878a.16.16 0 00-.158-.157zm-.159 5.875h-7.757v-5.558h7.757v5.558z"}),(0,e.createElement)("path",{d:"M38.925 34.038h1.804l-1.941-2.471-.902 1.148-1.456-1.855-2.496 3.178h4.991zM39.472 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"})))),La.advancedSlider=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 48 48",width:"20px",height:"20px"},(0,e.createElement)("path",{fill:"#0058b0",fillRule:"nonzero",d:"M40.731 11.167H7.269a.659.659 0 00-.656.656v24.354c0 .36.296.656.656.656h33.462c.36 0 .656-.296.656-.656V11.818a.66.66 0 00-.656-.651z"}),(0,e.createElement)("path",{fill:"#fff",fillRule:"nonzero",d:"M30.605 33.118h7.476l-8.044-10.242-3.738 4.76-6.037-7.688-10.343 13.17h20.686zM32.87 22.443a3.824 3.824 0 003.804-3.807 3.824 3.824 0 00-3.807-3.807c-2.089 0-3.808 1.718-3.808 3.807.003 2.089 1.722 3.807 3.811 3.807zm0-6.303a2.508 2.508 0 012.493 2.496 2.508 2.508 0 01-2.496 2.496 2.507 2.507 0 01-2.496-2.496 2.51 2.51 0 012.498-2.496h.001z"}),(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M44.566 23.653l-1.39 2.409a.894.894 0 00.326 1.217.895.895 0 001.218-.326l1.39-2.408a.896.896 0 00-.326-1.218.897.897 0 00-1.218.326z"}),(0,e.createElement)("path",{d:"M46.127 23.579l-1.391-2.408a.895.895 0 00-1.217-.326.895.895 0 00-.327 1.217l1.391 2.409a.896.896 0 001.217.326.896.896 0 00.327-1.218z"})),(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M3.575 24.471l1.39-2.409a.894.894 0 00-.326-1.217.896.896 0 00-1.218.326l-1.39 2.408a.897.897 0 00.326 1.218.897.897 0 001.218-.326z"}),(0,e.createElement)("path",{d:"M2.014 24.545l1.391 2.408a.894.894 0 001.217.326.895.895 0 00.327-1.217l-1.391-2.409a.896.896 0 00-1.217-.326.896.896 0 00-.327 1.218z"})),(0,e.createElement)("circle",{cx:"24",cy:"39.26",r:"0.628",fill:"#0058b0"}),(0,e.createElement)("circle",{cx:"21.407",cy:"39.26",r:"0.628",fill:"#0058b0"}),(0,e.createElement)("circle",{cx:"26.468",cy:"39.26",r:"0.628",fill:"#0058b0"})),La.formBlock=(0,e.createElement)("svg",{viewBox:"0 0 48 48",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",width:"20px",height:"20px",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M45.073 15.23l.052.002.051.003.05.005.05.005.05.007.05.009.049.009.048.011.049.011.047.013.048.014.046.015.047.017.045.017.045.019.045.019.044.021.044.021.042.023.043.024.041.024.041.026.041.026.039.028.039.028.038.029.038.031.036.031.036.032.035.032.035.034.033.034.033.035.032.036.031.037.03.037.03.039.028.039.027.039.027.04.025.041.025.042.024.042.022.043.022.044.021.044.019.044.019.045.017.046.016.046.015.047.014.047.013.048.012.048.011.049.009.049.008.049.007.05.006.051.005.05.003.051.002.051v16.075l-.002.051-.003.051-.005.051-.006.05-.007.05-.008.05-.009.049-.011.048-.012.049-.013.047-.014.048-.015.046-.016.047-.017.045-.019.045-.019.045-.021.044-.022.044-.022.042-.024.043-.025.041-.025.041-.027.04-.027.04-.028.039-.03.038-.03.038-.031.036-.032.036-.033.035-.033.035-.035.033-.035.033-.036.032-.036.031-.038.03-.038.029-.039.029-.039.027-.041.027-.041.025-.041.025-.043.024-.042.022-.044.022-.044.02-.045.02-.045.018-.045.018-.047.016-.046.015-.048.014-.047.013-.049.012-.048.011-.049.009-.05.008-.05.007-.05.006-.05.005-.051.003-.052.002H2.975l-.052-.002-.051-.003-.05-.005-.051-.006-.049-.007-.05-.008-.049-.009-.049-.011-.048-.012-.048-.013-.047-.014-.047-.015-.046-.016-.046-.018-.045-.018-.044-.02-.044-.02-.044-.022-.043-.022-.042-.024-.042-.025-.04-.025-.041-.027-.039-.027-.039-.029-.038-.029-.038-.03-.037-.031-.036-.032-.035-.033-.034-.033-.034-.035-.032-.035-.032-.036-.031-.036-.03-.038-.03-.038-.028-.039-.028-.04-.026-.04-.026-.041-.024-.041-.024-.043-.023-.042-.021-.044-.021-.044-.019-.045-.019-.045-.017-.045-.016-.047-.016-.046-.014-.048-.013-.047-.011-.049-.011-.048-.009-.049-.009-.05-.007-.05-.005-.05-.005-.051-.003-.051-.002-.051-.001-.052V17.231l.001-.052.002-.051.003-.051.005-.05.005-.051.007-.05.009-.049.009-.049.011-.049.011-.048.013-.048.014-.047.016-.047.016-.046.017-.046.019-.045.019-.044.021-.044.021-.044.023-.043.024-.042.024-.042.026-.041.026-.04.028-.039.028-.039.03-.039.03-.037.031-.037.032-.036.032-.035.034-.034.034-.034.035-.032.036-.032.037-.031.038-.031.038-.029.039-.028.039-.028.041-.026.04-.026.042-.024.042-.024.043-.023.044-.021.044-.021.044-.019.045-.019.046-.017.046-.017.047-.015.047-.014.048-.013.048-.011.049-.011.049-.009.05-.009.049-.007.051-.005.05-.005.051-.003.052-.002.051-.001h41.996l.051.001zM3.524 17.729v14.975h40.999V17.729H3.524zM46.281 5.839l.04.003.039.005.038.007.038.008.037.011.037.012.035.014.035.016.034.017.032.019.032.021.031.021.03.024.028.024.027.026.026.027.025.029.023.029.022.031.02.032.019.033.017.033.016.035.014.036.012.036.011.037.009.038.006.038.005.04.003.039.001.041v6.244l-.001.041-.003.039-.005.04-.006.038-.009.038-.011.037-.012.036-.014.036-.016.035-.017.033-.019.033-.02.032-.022.031-.023.029-.025.029-.026.027-.027.026-.028.024-.03.024-.031.021-.032.021-.032.019-.034.017-.035.016-.035.014-.037.012-.037.01-.038.009-.038.007-.039.005-.04.003-.04.001H1.807l-.04-.001-.04-.003-.039-.005-.039-.007-.037-.009-.038-.01-.036-.012-.035-.014-.035-.016-.034-.017-.033-.019-.031-.021-.031-.021-.03-.024-.028-.024-.027-.026-.026-.027-.025-.029-.023-.029-.022-.031-.02-.032-.019-.033-.017-.033-.016-.035-.014-.036-.012-.036-.011-.037-.009-.038-.007-.038-.005-.04-.003-.039-.001-.041V6.621l.001-.041.003-.039.005-.04.007-.038.009-.038.011-.037.012-.036.014-.036.016-.035.017-.033.019-.033.02-.032.022-.031.023-.029.025-.029.026-.027.027-.026.028-.024.03-.024.031-.021.031-.021.033-.019.034-.017.035-.016.035-.014.036-.012.038-.011.037-.008.039-.007.039-.005.04-.003.04-.001h44.434l.04.001zM3.524 8.338v2.81h40.999v-2.81H3.524zM22.012 38.096c0-.748-.607-1.355-1.355-1.355H2.332c-.748 0-1.355.607-1.355 1.355v2.711c0 .748.607 1.355 1.355 1.355h18.325c.748 0 1.355-.607 1.355-1.355v-2.711z",fill:"#0058b0"})),La.portfolioBlock=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 48 48",width:"20px",height:"20px"},(0,e.createElement)("path",{fill:"#0058b0",fillRule:"nonzero",d:"M45.553 7.449H25.361a.398.398 0 00-.396.396v14.696c0 .217.179.395.396.395h20.192a.397.397 0 00.396-.395V7.842a.399.399 0 00-.396-.393z"}),(0,e.createElement)("path",{fill:"#fff",d:"M41.76 13.869a.344.344 0 00-.343-.343H29.476a.343.343 0 00-.343.343v.685c0 .189.153.343.343.343h11.941a.344.344 0 00.343-.343v-.685zM40.234 16.55a.267.267 0 00-.266-.267h-8.795a.267.267 0 00-.266.267v.532c0 .147.119.267.266.267h8.795c.147 0 .266-.12.266-.267v-.532z"}),(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M22.639 7.449H2.447a.398.398 0 00-.396.396v14.696c0 .217.179.395.396.395h20.192a.397.397 0 00.396-.395V7.842a.399.399 0 00-.396-.393zm-.396 14.692h-19.4v-13.9h19.4v13.9z"}),(0,e.createElement)("path",{d:"M16.528 20.695h4.512l-4.854-6.18-2.256 2.872-3.643-4.639-6.241 7.947h12.482zM17.896 14.254a2.31 2.31 0 002.295-2.298 2.308 2.308 0 00-2.298-2.297 2.308 2.308 0 00-2.297 2.297 2.312 2.312 0 002.3 2.298zm0-3.804a1.513 1.513 0 011.503 1.506c0 .826-.68 1.506-1.506 1.506s-1.506-.68-1.506-1.506a1.515 1.515 0 011.507-1.506h.002z"})),(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M45.553 25.064H25.361a.397.397 0 00-.396.395v14.696c0 .217.179.396.396.396h20.192a.398.398 0 00.396-.396V25.456a.398.398 0 00-.396-.392zm-.396 14.692h-19.4V25.855h19.4v13.901z"}),(0,e.createElement)("path",{d:"M39.443 38.31h4.511L39.1 32.129l-2.256 2.872-3.643-4.639-6.241 7.948h12.483zM40.81 31.868a2.308 2.308 0 002.295-2.297 2.309 2.309 0 00-2.298-2.298 2.308 2.308 0 00-2.297 2.298 2.311 2.311 0 002.3 2.297zm0-3.803c.825.001 1.503.68 1.503 1.506s-.679 1.506-1.506 1.506c-.826 0-1.506-.68-1.506-1.506a1.514 1.514 0 011.507-1.506h.002z"})),(0,e.createElement)("g",{fill:"#0058b0",fillRule:"nonzero"},(0,e.createElement)("path",{d:"M22.639 25.064H2.447a.397.397 0 00-.396.395v14.696c0 .217.179.396.396.396h20.192a.398.398 0 00.396-.396V25.456a.398.398 0 00-.396-.392zm-.396 14.692h-19.4V25.855h19.4v13.901z"}),(0,e.createElement)("path",{d:"M16.528 38.31h4.512l-4.854-6.181-2.256 2.872-3.643-4.639-6.241 7.948h12.482zM17.896 31.868a2.308 2.308 0 002.295-2.297 2.309 2.309 0 00-2.298-2.298 2.308 2.308 0 00-2.297 2.298 2.311 2.311 0 002.3 2.297zm0-3.803c.825.001 1.503.68 1.503 1.506s-.68 1.506-1.506 1.506-1.506-.68-1.506-1.506a1.514 1.514 0 011.507-1.506h.002z"}))),La.aos=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 100 100",width:"20px",height:"20px"},(0,e.createElement)("g",{fillRule:"nonzero"},(0,e.createElement)("path",{d:"M29.396 39.698v20.604c0 11.333 9.272 20.605 20.604 20.605 11.332 0 20.604-9.272 20.604-20.605V39.698c0-11.333-9.272-20.605-20.604-20.605-11.332 0-20.604 9.272-20.604 20.605zM50 23.672c8.814 0 16.026 7.212 16.026 16.026v20.604c0 8.814-7.212 16.026-16.026 16.026s-16.026-7.212-16.026-16.026V39.698c0-8.814 7.212-16.026 16.026-16.026z",fill:"#0058b0","fill-rule":"nonzero"}),(0,e.createElement)("path",{d:"M50 43.132a2.296 2.296 0 002.289-2.29v-6.868A2.296 2.296 0 0050 31.685a2.296 2.296 0 00-2.289 2.289v6.868c0 1.26 1.03 2.29 2.289 2.29zM48.397 98.535a2.261 2.261 0 001.603.687c.572 0 1.145-.229 1.603-.687l5.723-5.723c.916-.916.916-2.29 0-3.206-.916-.915-2.289-.915-3.205 0L50 93.727l-4.121-4.121c-.916-.915-2.289-.915-3.205 0-.916.916-.916 2.29 0 3.206l5.723 5.723zM48.397 1.465l-5.723 5.723c-.916.916-.916 2.29 0 3.206.458.458 1.03.686 1.603.686.572 0 1.144-.228 1.602-.686L50 6.273l4.121 4.121c.458.458 1.03.686 1.602.686.573 0 1.145-.228 1.603-.686.916-.916.916-2.29 0-3.206l-5.723-5.723c-.916-.916-2.29-.916-3.206 0z",fill:"#0058b0","fill-rule":"nonzero"})));const Oa=La,{Component:Da,Fragment:Na}=wp.element,{ColorPalette:ja}=wp.blockEditor,{ToggleControl:Ia,RangeControl:za,TabPanel:Fa,Dashicon:Ba,SelectControl:Pa,Button:Ha,Tooltip:Va,Modal:Wa}=wp.components,Ua=class extends Da{constructor(){super(...arguments),this.state={isOpen:!1,isSaving:!1,configuration:kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):{},settings:kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{}}}componentDidMount(){if(!this.state.configuration["kadence/aos"]){const e=kadence_blocks_params.config["kadence/aos"];void 0!==e&&"object"==typeof e&&Object.keys(e).map(t=>{this.saveConfigState(t,e[t])})}}saveSettingState(e,t){const n=this.state.settings;n["kadence/aos"]||(n["kadence/aos"]={}),n["kadence/aos"][e]=t,this.setState({settings:n})}saveSetting(e,t){this.setState({isSaving:!0});const n=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};n[e]||(n[e]={}),n[e]=t,new wp.api.models.Settings({kadence_blocks_settings_blocks:JSON.stringify(n)}).save().then(e=>{this.setState({isSaving:!1,settings:n,isOpen:!1}),kadence_blocks_params.settings=JSON.stringify(n)})}saveConfig(e,t){this.setState({isSaving:!0});const n=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):{};n[e]||(n[e]={}),n[e]=t,new wp.api.models.Settings({kadence_blocks_config_blocks:JSON.stringify(n)}).save().then(e=>{this.setState({isSaving:!1,configuration:n,isOpen:!1}),kadence_blocks_params.configuration=JSON.stringify(n)})}saveConfigState(e,t){const n=this.state.configuration;n["kadence/aos"]||(n["kadence/aos"]={}),n["kadence/aos"][e]=t,this.setState({configuration:n})}render(){const{configuration:t,isOpen:n,settings:o}=this.state,i=t&&t["kadence/aos"]?t["kadence/aos"]:{},r=o&&o["kadence/aos"]?o["kadence/aos"]:{},s=["linear","ease","ease-in","ease-out","ease-in-out","ease-in-back","ease-out-back","ease-in-out-back","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart"].map(function(e){return{label:e,value:e}});return(0,e.createElement)(Na,null,(0,e.createElement)(Ha,{tooltip:(0,a.__)("Animate On Scroll Defaults","kadence-blocks-pro"),className:"kb-pro-block-defaults",onClick:()=>this.setState({isOpen:!0})},(0,e.createElement)("span",{className:"kt-block-icon"},Oa.aos),(0,a.__)("Animate On Scroll","kadence-blocks-pro")),n?(0,e.createElement)(Wa,{className:"kt-block-defaults-modal",title:(0,a.__)("Animate On Scroll","kadence-blocks-pro"),onRequestClose:()=>{this.saveConfig("kadence/aos",i),this.saveSetting("kadence/aos",r)}},(0,e.createElement)(Pa,{label:(0,a.__)("Show Settings For"),value:r.show?r.show:"all",options:[{value:"all",label:(0,a.__)("All Users","kadence-blocks-pro")},{value:"contributor",label:(0,a.__)("Minimum User Role Contributor","kadence-blocks-pro")},{value:"author",label:(0,a.__)("Minimum User Role Author","kadence-blocks-pro")},{value:"editor",label:(0,a.__)("Minimum User Role Editor","kadence-blocks-pro")},{value:"admin",label:(0,a.__)("Minimum User Role Admin","kadence-blocks-pro")},{value:"none",label:(0,a.__)("No Users","kadence-blocks-pro")}],onChange:e=>this.saveSettingState("show",e)}),(0,e.createElement)("h2",null,(0,a.__)("Default Animation Settings","kadence-blocks-pro")),(0,e.createElement)(za,{label:(0,a.__)("Animation Duration","kadence-blocks-pro"),value:void 0!==i.duration&&""!==i.duration?i.duration:400,onChange:e=>this.saveConfigState("duration",e),min:50,max:3e3,step:50}),(0,e.createElement)(Pa,{label:(0,a.__)("Animation Ease","kadence-blocks-pro"),value:i.easing?i.easing:"ease",options:s,onChange:e=>this.saveConfigState("easing",e)}),(0,e.createElement)(za,{label:(0,a.__)("Start Delay","kadence-blocks-pro"),value:void 0!==i.delay&&""!==i.delay?i.delay:0,onChange:e=>this.saveConfigState("delay",e),min:0,max:3e3,step:50}),(0,e.createElement)(Ia,{label:(0,a.__)("Only show once per page load?","kadence-blocks-pro"),checked:!!i.once&&i.once,onChange:e=>this.saveConfigState("once",e)}),(0,e.createElement)(za,{label:(0,a.__)("Pixel offset for when animation triggers","kadence-blocks-pro"),value:void 0!==i.offset&&""!==i.offset?i.offset:120,onChange:e=>this.saveConfigState("offset",e),min:-300,max:300,step:1}),(0,e.createElement)(Ha,{isDefault:!0,isPrimary:!0,onClick:()=>{this.saveConfig("kadence/aos",i),this.saveSetting("kadence/aos",r)}},(0,a.__)("Save/Close"))):null)}},{Component:Ga,Fragment:Za}=wp.element,{ColorPalette:qa}=wp.blockEditor,{ToggleControl:Ka,RangeControl:Ya,TabPanel:Xa,Dashicon:Qa,SelectControl:Ja,Button:el,Tooltip:tl,Modal:nl}=wp.components,ol=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 200 200",width:"20px",height:"20px"},(0,e.createElement)("path",{fill:"none",d:"M0 0H200V200H0z"}),(0,e.createElement)("path",{fill:"#0058b0",d:"M195 99.534c-.069 52.23-42.593 94.382-95.468 94.531C47.488 193.916 4.966 151.764 5 99.534 4.966 47.739 47.488 5.579 99.532 5.938c52.875-.36 95.4 41.801 95.468 93.596zM87.365 74.261c.257.434.518.989.937.937h8.424s-11.044 43.83-13.104 52.414c-2.902 11.448-7.357 22.813-10.294 27.143-3.082 3.295-4.979 4.407-6.55 4.68-3.043-.273-4.445-2.231-5.619-5.614-.114-2.163-1.611-5.346-4.68-5.622-3.728.274-8.478 4.232-8.424 9.362-.054 6.101 10.663 7.552 14.041 7.488 7.262.064 16.4-4.46 22.462-11.228 7.914-9.231 12.255-20.397 15.912-36.506l10.295-42.117h10.298c1.001.055 1.379-.541 1.869-.937l.938-3.743c.224-.649-.012-1.207-.938-.935H112.64c2.38-9.318 6.238-22.666 13.1-29.952 1.086-.72 2.909-2.297 4.681-1.872 2.811-.47 3.631 1.209 4.678 3.744 1.361 2.846 1.159 7.431 5.618 7.487 4.221-.056 7.721-5.291 7.487-9.359.234-4.448-8.217-7.618-14.972-7.487-7.939-.131-15.522 3.279-20.592 8.424-8.364 8.511-11.998 20.481-14.043 29.014h-8.42c-.614-.383-1.078.093-.937.935l-1.875 3.744zM64.904 102.34l7.487-17.783c1.168-3.918 3.015-8.592 2.807-11.231.209-4.46-2.815-5.433-4.676-5.615-10.313.182-21.045 11.941-25.274 16.846-.213.178-.418.755 0 .937l1.874 1.872c.559.674 1.196.693 1.87 0 0 0 4.643-5.131 6.55-6.551.369-.277 1.135-.772 1.874-.936.35.164.662 1.124.937 1.873-.275 1.447-1.951 5.443-2.811 7.487l-7.487 19.656c-2.823 6.569-4.082 10.061-3.744 13.105-.339 3.278 1.527 5.925 6.553 5.613 10.287.316 23.788-15.908 23.4-15.911.918-.603.655-1.189 0-1.873l-1.874-1.872c-.126.003-.739-.113-.937 0 0 0-7.514 8.48-10.295 8.423-.788.057-.762-1.313-.937-1.87.175-.852.91-3.035.937-3.747l3.746-8.423zm64.582 16.846c-.046 1.69-1.252 7.744-7.491 7.488-4.303.256-7.046-2.294-6.552-6.551-.104-4.753 3.12-8.469 7.488-8.424 3.221-.155 6.83 1.866 6.555 7.487zm23.399 0c-.294 1.69-1.508 7.744-8.423 7.488-3.623.256-6.365-2.294-6.554-6.551.583-4.753 3.808-8.469 8.423-8.424 2.972-.155 6.581 1.866 6.554 7.487zm23.398 0c-.538 1.69-1.747 7.744-8.423 7.488-3.866.256-6.607-2.294-6.553-6.551.336-4.753 3.558-8.469 8.423-8.424 2.727-.155 6.336 1.866 6.553 7.487zM76.136 39.63c-4.731.331-8.227 4.286-8.424 9.359-.385 4.536 2.483 7.256 6.554 7.49 7.16-.234 8.561-6.684 8.423-9.362.613-5.121-3.184-7.267-6.553-7.487z"})),il=class extends Ga{constructor(){super(...arguments),this.state={isOpen:!1,isSaving:!1,configuration:kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):{},settings:kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{}}}componentDidMount(){if(!this.state.configuration["kadence/conditional"]){const e=kadence_blocks_params.config["kadence/conditional"];void 0!==e&&"object"==typeof e&&Object.keys(e).map(t=>{this.saveConfigState(t,e[t])})}}saveSettingState(e,t){const n=this.state.settings;n["kadence/conditional"]||(n["kadence/conditional"]={}),n["kadence/conditional"][e]=t,this.setState({settings:n})}saveSetting(e,t){this.setState({isSaving:!0});const n=kadence_blocks_params.settings?JSON.parse(kadence_blocks_params.settings):{};n[e]||(n[e]={}),n[e]=t,new wp.api.models.Settings({kadence_blocks_settings_blocks:JSON.stringify(n)}).save().then(e=>{this.setState({isSaving:!1,settings:n,isOpen:!1}),kadence_blocks_params.settings=JSON.stringify(n)})}saveConfig(e,t){this.setState({isSaving:!0});const n=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):{};n[e]||(n[e]={}),n[e]=t,new wp.api.models.Settings({kadence_blocks_config_blocks:JSON.stringify(n)}).save().then(e=>{this.setState({isSaving:!1,configuration:n,isOpen:!1}),kadence_blocks_params.configuration=JSON.stringify(n)})}saveConfigState(e,t){const n=this.state.configuration;n["kadence/conditional"]||(n["kadence/conditional"]={}),n["kadence/conditional"][e]=t,this.setState({configuration:n})}render(){const{configuration:t,isOpen:n,settings:o}=this.state,i=(t&&t["kadence/conditional"]&&t["kadence/conditional"],o&&o["kadence/conditional"]?o["kadence/conditional"]:{});return(0,e.createElement)(Za,null,(0,e.createElement)(el,{tooltip:(0,a.__)("Conditional Display Defaults","kadence-blocks-pro"),className:"kb-pro-block-defaults",onClick:()=>this.setState({isOpen:!0})},(0,e.createElement)("span",{className:"kt-block-icon"},ol),(0,a.__)("Conditional Display","kadence-blocks-pro")),n?(0,e.createElement)(nl,{className:"kt-block-defaults-modal",title:(0,a.__)("Conditional Display","kadence-blocks-pro"),onRequestClose:()=>{this.saveSetting("kadence/conditional",i)}},(0,e.createElement)(Ja,{label:(0,a.__)("Show Settings For"),value:i.show?i.show:"all",options:[{value:"all",label:(0,a.__)("All Users","kadence-blocks-pro")},{value:"contributor",label:(0,a.__)("Minimum User Role Contributor","kadence-blocks-pro")},{value:"author",label:(0,a.__)("Minimum User Role Author","kadence-blocks-pro")},{value:"editor",label:(0,a.__)("Minimum User Role Editor","kadence-blocks-pro")},{value:"admin",label:(0,a.__)("Minimum User Role Admin","kadence-blocks-pro")},{value:"none",label:(0,a.__)("No Users","kadence-blocks-pro")}],onChange:e=>this.saveSettingState("show",e)}),(0,e.createElement)(el,{isDefault:!0,isPrimary:!0,onClick:()=>{this.saveSetting("kadence/conditional",i)}},(0,a.__)("Save/Close"))):null)}},{addFilter:rl}=wp.hooks;rl("kadence.block_controls_sidebar","kadence-blocks-pro/defaults",function(e){const t=[{Control:Ua},{Control:il}];return e.concat(t)});const sl=(0,_.jsxs)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",children:[(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M45.54,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,11.139c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-11.142c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,11.136l-19.4,0l0,-10.344l19.4,0l0,10.344Z"}),(0,_.jsx)("path",{d:"M36.728,11.438l3.535,0l-3.803,-4.843l-1.768,2.25l-2.854,-3.635l-4.891,6.228l9.781,0Z"}),(0,_.jsx)("path",{d:"M40.797,8.261c1.259,-0.002 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})]}),(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M22.626,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,21.375c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-21.378c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,21.372l-19.4,0l0,-20.58l19.4,0l0,20.58Z"}),(0,_.jsx)("path",{d:"M16.515,19.869l4.512,0l-4.854,-6.18l-2.256,2.871l-3.643,-4.639l-6.241,7.948l12.482,0Z"}),(0,_.jsx)("path",{d:"M17.883,9.509c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.002 1.503,0.681 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})]}),(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M45.54,15.418l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,18.143c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-18.146c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,18.14l-19.4,0l0,-17.348l19.4,0l0,17.348Z"}),(0,_.jsx)("path",{d:"M39.43,31.64l4.511,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.241,7.947l12.483,0Z"}),(0,_.jsx)("path",{d:"M40.797,23.21c1.259,-0.002 2.295,-1.039 2.295,-2.298c0,-1.26 -1.037,-2.298 -2.298,-2.298c-1.26,0 -2.297,1.038 -2.297,2.298c0.002,1.26 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})]}),(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M2.434,25.752l20.192,0c0.215,0.001 0.394,0.177 0.396,0.393l0,8.438l-0.792,0l0,-8.039l-19.4,0l0,8.039l-0.792,0l0,-8.435c0,-0.217 0.179,-0.395 0.396,-0.396Z"}),(0,_.jsx)("path",{d:"M13.048,34.583l-5.548,0l2.774,-3.532l2.774,3.532Zm4.511,0l-2.772,0l1.386,-1.765l1.386,1.765Z"}),(0,_.jsx)("path",{d:"M17.883,32.557c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.503,0.681 1.503,1.506c0,0.827 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.679 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"})]})]}),al=(0,_.jsx)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",children:(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M45.54,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.395 0.396,0.395l20.192,0c0.217,0 0.396,-0.178 0.396,-0.395l0,-14.699c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,14.692l-19.4,0l0,-13.9l19.4,0l0,13.9Z"}),(0,_.jsx)("path",{d:"M39.43,14.702l4.511,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.241,7.947l12.483,0Z"}),(0,_.jsx)("path",{d:"M40.797,8.261c1.259,-0.002 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,_.jsx)("path",{d:"M22.626,1.456l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.395 0.396,0.395l20.192,0c0.217,0 0.396,-0.178 0.396,-0.395l0,-14.699c-0.002,-0.216 -0.181,-0.393 -0.396,-0.393Zm-0.396,14.692l-19.4,0l0,-13.9l19.4,0l0,13.9Z"}),(0,_.jsx)("path",{d:"M16.515,14.702l4.512,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.241,7.947l12.482,0Z"}),(0,_.jsx)("path",{d:"M17.883,8.261c1.259,-0.002 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.297 2.3,2.298Zm0,-3.804c0.825,0.001 1.503,0.681 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M45.54,19.071l-20.192,0c-0.217,0 -0.396,0.178 -0.396,0.395l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.181,-0.392 -0.396,-0.392Zm-0.396,14.692l-19.4,0l0,-13.901l19.4,0l0,13.901Z"}),(0,_.jsx)("path",{d:"M39.43,32.317l4.511,0l-4.854,-6.181l-2.256,2.872l-3.643,-4.639l-6.241,7.948l12.483,0Z"}),(0,_.jsx)("path",{d:"M40.797,25.875c1.259,-0.001 2.295,-1.038 2.295,-2.297c0,-1.261 -1.037,-2.298 -2.298,-2.298c-1.26,0 -2.297,1.037 -2.297,2.298c0.002,1.26 1.039,2.297 2.3,2.297Zm0,-3.803c0.825,0.001 1.503,0.68 1.503,1.506c0,0.826 -0.679,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.827 0.681,-1.506 1.507,-1.506l0.002,0Z"})]}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M22.626,19.071l-20.192,0c-0.217,0 -0.396,0.178 -0.396,0.395l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.181,-0.392 -0.396,-0.392Zm-0.396,14.692l-19.4,0l0,-13.901l19.4,0l0,13.901Z"}),(0,_.jsx)("path",{d:"M16.515,32.317l4.512,0l-4.854,-6.181l-2.256,2.872l-3.643,-4.639l-6.241,7.948l12.482,0Z"}),(0,_.jsx)("path",{d:"M17.883,25.875c1.259,-0.001 2.295,-1.038 2.295,-2.297c0,-1.261 -1.037,-2.298 -2.298,-2.298c-1.26,0 -2.297,1.037 -2.297,2.298c0.002,1.26 1.039,2.297 2.3,2.297Zm0,-3.803c0.825,0.001 1.503,0.68 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.827 0.681,-1.506 1.507,-1.506l0.002,0Z"})]})]})}),ll=(0,_.jsxs)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",children:[(0,_.jsx)("path",{d:"M22.456,10.263l-20.191,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.191,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.18,-0.393 -0.396,-0.393Zm-0.395,14.692l-19.401,0l0,-13.9l19.401,0l0,13.9Z"}),(0,_.jsx)("path",{d:"M16.346,23.509l4.512,0l-4.854,-6.18l-2.256,2.872l-3.643,-4.639l-6.242,7.947l12.483,0Z"}),(0,_.jsx)("path",{d:"M17.713,17.068c1.26,-0.001 2.296,-1.038 2.296,-2.298c0,-1.26 -1.038,-2.297 -2.298,-2.297c-1.26,0 -2.298,1.037 -2.298,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.504,0.681 1.504,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.827,0 -1.506,-0.68 -1.506,-1.506c0,-0.826 0.681,-1.506 1.507,-1.506l0.001,0Z"}),(0,_.jsx)("path",{d:"M45.661,10.263l-20.192,0c-0.217,0 -0.396,0.179 -0.396,0.396l0,14.696c0,0.217 0.179,0.396 0.396,0.396l20.192,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.18,-0.393 -0.396,-0.393Zm-0.396,14.692l-19.4,0l0,-13.9l19.4,0l0,13.9Z"}),(0,_.jsx)("path",{d:"M39.551,23.509l4.511,0l-4.854,-6.18l-2.256,2.872l-3.642,-4.639l-6.242,7.947l12.483,0Z"}),(0,_.jsx)("path",{d:"M40.918,17.068c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.297,-2.297c-1.261,0 -2.298,1.037 -2.298,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.504,0.681 1.504,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.827,0 -1.507,-0.68 -1.507,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,_.jsx)("circle",{cx:"21.053",cy:"27.427",r:"0.518"}),(0,_.jsx)("circle",{cx:"24.053",cy:"27.427",r:"0.518"}),(0,_.jsx)("circle",{cx:"27.053",cy:"27.427",r:"0.518"})]}),cl=(0,_.jsxs)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",children:[(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M10.287,17.068c1.259,-0.001 2.295,-1.038 2.295,-2.298c0,-1.26 -1.037,-2.297 -2.298,-2.297c-1.26,0 -2.297,1.037 -2.297,2.297c0.002,1.261 1.039,2.298 2.3,2.298Zm0,-3.804c0.825,0.002 1.503,0.681 1.503,1.506c0,0.826 -0.68,1.506 -1.506,1.506c-0.826,0 -1.506,-0.68 -1.506,-1.506c0.001,-0.826 0.681,-1.506 1.507,-1.506l0.002,0Z"}),(0,_.jsx)("path",{d:"M0.871,17.863l1.807,-2.301l3.643,4.639l2.256,-2.872l4.854,6.18l-12.56,0l0,-5.646Z"}),(0,_.jsx)("path",{d:"M15.03,10.263c0.215,0 0.394,0.177 0.396,0.393l0,14.699c0,0.217 -0.179,0.396 -0.396,0.396l-14.159,0l0,-0.796l13.763,0l0,-13.9l-13.763,0l0,-0.792l14.159,0Z"})]}),(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M47.053,12.922l0,1.2c-0.095,0.197 -0.149,0.417 -0.149,0.648c0,0.232 0.053,0.452 0.149,0.649l0,1.199c-0.568,-0.42 -0.94,-1.094 -0.941,-1.848c0,-0.754 0.372,-1.428 0.941,-1.848Z"}),(0,_.jsx)("path",{d:"M47.053,23.509l-12.491,0l6.242,-7.947l3.643,4.639l2.256,-2.872l0.35,0.446l0,5.734Z"}),(0,_.jsx)("path",{d:"M32.964,10.263l14.089,0l0,0.792l-13.694,0l0,13.9l13.694,0l0,0.796l-14.089,0c-0.217,0 -0.396,-0.179 -0.396,-0.396l0,-14.696c0,-0.217 0.179,-0.396 0.396,-0.396Z"})]}),(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M30.712,10.263l-13.451,0c-0.217,0 -0.395,0.179 -0.395,0.396l0,14.696c0,0.217 0.178,0.396 0.395,0.396l13.451,0c0.217,0 0.396,-0.179 0.396,-0.396l0,-14.699c-0.002,-0.216 -0.18,-0.393 -0.396,-0.393Zm-0.395,14.692l-12.66,0l0,-13.9l12.66,0l0,13.9Z"}),(0,_.jsx)("path",{d:"M26.263,23.458l2.443,0l-2.628,-3.347l-1.222,1.555l-1.973,-2.512l-3.38,4.304l6.76,0Z"}),(0,_.jsx)("path",{d:"M26.836,17.145c0.837,-0.001 1.527,-0.691 1.527,-1.529c0,-0.838 -0.69,-1.528 -1.529,-1.528c-0.838,0 -1.528,0.69 -1.528,1.528c0.001,0.839 0.691,1.529 1.53,1.529Zm0,-2.531c0.548,0.001 1,0.453 1,1.002c0,0.55 -0.452,1.002 -1.002,1.002c-0.55,0 -1.002,-0.452 -1.002,-1.002c0,-0.549 0.453,-1.002 1.003,-1.002l0.001,0Z"})]}),(0,_.jsx)("circle",{cx:"21.053",cy:"27.427",r:"0.518"}),(0,_.jsx)("circle",{cx:"24.053",cy:"27.427",r:"0.518"}),(0,_.jsx)("circle",{cx:"27.053",cy:"27.427",r:"0.518"})]}),dl=(0,_.jsxs)("svg",{viewBox:"0 0 48 37",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",children:[(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M40.817,5.098l-33.661,0c-0.361,0 -0.659,0.298 -0.659,0.66l0,24.498c0,0.362 0.298,0.66 0.659,0.66l33.661,0c0.362,0 0.66,-0.298 0.66,-0.66l0,-24.503c-0.003,-0.361 -0.3,-0.655 -0.66,-0.655Zm-0.659,24.493l-32.342,0l0,-23.173l32.342,0l0,23.173Z"}),(0,_.jsx)("path",{d:"M30.631,27.18l7.521,0l-8.092,-10.303l-3.76,4.788l-6.073,-7.734l-10.405,13.249l20.809,0Z"}),(0,_.jsx)("path",{d:"M32.91,16.442c2.1,-0.003 3.827,-1.731 3.827,-3.831c0,-2.101 -1.729,-3.83 -3.831,-3.83c-2.101,0 -3.83,1.729 -3.83,3.83c0.003,2.102 1.732,3.83 3.834,3.831Zm0,-6.341c1.376,0.002 2.507,1.135 2.507,2.51c0,1.377 -1.133,2.511 -2.511,2.511c-1.377,0 -2.51,-1.134 -2.51,-2.511c0.001,-1.377 1.135,-2.51 2.512,-2.51l0.002,0Z"})]}),(0,_.jsx)("circle",{cx:"21.053",cy:"32.743",r:"0.518"}),(0,_.jsx)("circle",{cx:"24.053",cy:"32.743",r:"0.518"}),(0,_.jsx)("circle",{cx:"27.053",cy:"32.743",r:"0.518"})]}),ul=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 48 37",children:(0,_.jsxs)("g",{fill:"#3a3a3a",fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M40.856 2.066H7.195a.663.663 0 00-.659.66v24.498c0 .362.298.66.659.66h33.661c.362 0 .66-.298.66-.66V2.721a.663.663 0 00-.66-.655zm-.659 24.493H7.855V3.386h32.342v23.173z"}),(0,_.jsx)("path",{d:"M30.67 24.148h7.521l-8.092-10.303-3.76 4.788-6.073-7.734L9.861 24.148H30.67zM32.949 13.41c2.1-.003 3.827-1.731 3.827-3.831 0-2.101-1.729-3.83-3.831-3.83a3.848 3.848 0 00-3.83 3.83 3.854 3.854 0 003.834 3.831zm0-6.341a2.523 2.523 0 012.507 2.51 2.523 2.523 0 01-2.511 2.511 2.523 2.523 0 01-2.51-2.511 2.524 2.524 0 012.512-2.51h.002zM14.706 28.741H6.631a.16.16 0 00-.158.159v5.876c0 .087.072.158.158.158h8.075a.159.159 0 00.158-.158v-5.878a.16.16 0 00-.158-.157zm-.159 5.875H6.79v-5.558h7.757v5.558z"}),(0,_.jsx)("path",{d:"M12.262 34.038h1.804l-1.941-2.471-.902 1.148-1.456-1.855-2.496 3.178h4.991zM12.809 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M23.535 28.741H15.46a.16.16 0 00-.158.159v5.876c0 .087.072.158.158.158h8.075a.159.159 0 00.158-.158v-5.878a.16.16 0 00-.158-.157zm-.158 5.875h-7.758v-5.558h7.758v5.558z"}),(0,_.jsx)("path",{d:"M21.091 34.038h1.804l-1.941-2.471-.902 1.148-1.456-1.855-2.496 3.178h4.991zM21.638 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"})]}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M32.452 28.741h-8.074a.16.16 0 00-.158.159v5.876c0 .087.071.158.158.158h8.074a.16.16 0 00.159-.158v-5.878a.16.16 0 00-.159-.157zm-.158 5.875h-7.758v-5.558h7.758v5.558z"}),(0,_.jsx)("path",{d:"M30.009 34.038h1.804l-1.941-2.471-.902 1.148-1.457-1.855-2.495 3.178h4.991zM30.556 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"})]}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M41.369 28.741h-8.075a.16.16 0 00-.158.159v5.876c0 .087.072.158.158.158h8.075a.159.159 0 00.158-.158v-5.878a.16.16 0 00-.158-.157zm-.159 5.875h-7.757v-5.558h7.757v5.558z"}),(0,_.jsx)("path",{d:"M38.925 34.038h1.804l-1.941-2.471-.902 1.148-1.456-1.855-2.496 3.178h4.991zM39.472 31.462a.923.923 0 00.918-.919.923.923 0 00-.919-.918.923.923 0 00-.919.918.924.924 0 00.92.919zm0-1.521c.33.001.601.273.601.602a.605.605 0 01-.602.603.605.605 0 01-.602-.603c0-.33.272-.602.602-.602h.001z"})]})]})}),hl=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 48 37",children:(0,_.jsxs)("g",{fillRule:"nonzero",children:[(0,_.jsx)("path",{d:"M45.54 1.456H31.111a.398.398 0 00-.396.396v14.696c0 .217.179.395.396.395H45.54a.397.397 0 00.396-.395V1.849a.399.399 0 00-.396-.393zm-.396 14.692H31.507v-13.9h13.637v13.9z"}),(0,_.jsx)("path",{d:"M41.123 14.376h3.023l-3.253-4.143-1.513 1.926-2.442-3.11-4.183 5.327h8.368zM41.598 6.658a1.504 1.504 0 001.494-1.496c0-.821-.675-1.496-1.496-1.496S40.1 4.341 40.1 5.162a1.506 1.506 0 001.498 1.496zm0-2.477a.985.985 0 01.978.981c0 .537-.442.98-.98.98a.986.986 0 01-.981-.98.987.987 0 01.981-.981h.002zM28.89 1.456H2.434a.398.398 0 00-.396.396v14.696c0 .217.179.395.396.395H28.89a.397.397 0 00.396-.395V1.849a.399.399 0 00-.396-.393zm-.396 14.692H2.83v-13.9h25.664v13.9z"}),(0,_.jsx)("path",{d:"M19.501 14.702h4.512l-4.854-6.18-2.256 2.872-3.643-4.639-6.241 7.947h12.482zM21.245 8.261a2.31 2.31 0 002.295-2.298 2.308 2.308 0 00-2.298-2.297 2.308 2.308 0 00-2.297 2.297 2.312 2.312 0 002.3 2.298zm0-3.804a1.513 1.513 0 011.503 1.506c0 .826-.68 1.506-1.506 1.506s-1.506-.68-1.506-1.506a1.515 1.515 0 011.507-1.506h.002z"}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M45.54 19.071H16.57a.397.397 0 00-.396.395v14.696c0 .217.179.396.396.396h28.97a.398.398 0 00.396-.396V19.463a.398.398 0 00-.396-.392zm-.396 14.692H16.966V19.862h28.178v13.901z"}),(0,_.jsx)("path",{d:"M34.842 32.317h4.511l-4.854-6.181-2.256 2.872-3.643-4.639-6.241 7.948h12.483zM38.68 25.875a2.308 2.308 0 002.295-2.297 2.309 2.309 0 00-2.298-2.298 2.308 2.308 0 00-2.297 2.298 2.311 2.311 0 002.3 2.297zm0-3.803c.825.001 1.503.68 1.503 1.506s-.679 1.506-1.506 1.506c-.826 0-1.506-.68-1.506-1.506a1.514 1.514 0 011.507-1.506h.002z"})]}),(0,_.jsxs)("g",{children:[(0,_.jsx)("path",{d:"M14.099 19.071H2.434a.397.397 0 00-.396.395v14.696c0 .217.179.396.396.396h11.665a.398.398 0 00.396-.396V19.463a.398.398 0 00-.396-.392zm-.396 14.692H2.83V19.862h10.873v13.901z"}),(0,_.jsx)("path",{d:"M10.271 32.317h2.255L10.1 29.228l-1.127 1.435-1.821-2.318-3.119 3.972h6.238zM10.674 24.896a1.288 1.288 0 001.28-1.281c0-.703-.579-1.282-1.282-1.282-.702 0-1.281.579-1.281 1.282a1.29 1.29 0 001.283 1.281zm0-2.121c.46.001.838.379.838.84 0 .461-.379.84-.84.84a.844.844 0 01-.84-.84.845.845 0 01.841-.84h.001z"})]})]})}),pl=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"b",viewBox:"0 0 21.26 16.5",children:(0,_.jsxs)("g",{id:"c",strokeWidth:"0",children:[(0,_.jsx)("path",{d:"M21.08 0h-9.16c-.1 0-.18.08-.18.18v5.06c0 .1.08.18.18.18h9.16c.1 0 .18-.08.18-.18V.18c0-.1-.08-.18-.18-.18m-.18 5.05h-8.8V.36h8.8z"}),(0,_.jsx)("path",{d:"M17.08 4.53h1.6l-1.73-2.2-.8 1.02-1.3-1.65-2.22 2.83h4.44ZM18.92 3.09c.57 0 1.04-.47 1.04-1.04s-.47-1.04-1.04-1.04-1.04.47-1.04 1.04.47 1.04 1.04 1.04m0-1.73c.37 0 .68.31.68.68s-.31.68-.68.68-.68-.31-.68-.68.31-.68.68-.68M21.08 6.15h-9.16c-.1 0-.18.08-.18.18v9.98c0 .1.08.18.18.18h9.16c.1 0 .18-.08.18-.18V6.34c0-.1-.08-.18-.18-.18Zm-.18 9.98h-8.8V6.52h8.8z"}),(0,_.jsx)("path",{d:"M18.3 14.8h2.05l-2.2-2.8-1.02 1.3-1.65-2.11-2.83 3.61h5.66ZM18.92 10.09c.57 0 1.04-.47 1.04-1.04s-.47-1.04-1.04-1.04-1.04.47-1.04 1.04.47 1.04 1.04 1.04m0-1.72c.37 0 .68.31.68.68s-.31.68-.68.68-.68-.31-.68-.68.31-.68.68-.68M10.73.02H.31C.2.02.1.1.1.18v7.28c0 .09.09.16.2.16h10.42c.11 0 .2-.07.2-.16V.18c0-.09-.09-.16-.2-.16Zm-.21 7.28H.51V.34h10.01z"}),(0,_.jsx)("path",{d:"M7.53 6.41h2.15L7.36 3.46 6.28 4.83 4.54 2.62 1.56 6.41h5.96ZM8.73 3.56c.57 0 1.04-.47 1.04-1.04S9.3 1.48 8.73 1.48s-1.04.47-1.04 1.04.47 1.04 1.04 1.04m0-1.73c.37 0 .68.31.68.68s-.31.68-.68.68-.68-.31-.68-.68.31-.68.68-.68M4.88 8.42H.18c-.1 0-.18.08-.18.18v7.61c0 .1.08.18.18.18h4.7c.1 0 .18-.08.18-.18V8.6c0-.1-.08-.18-.18-.18m-.18 7.6H.36V8.78H4.7z"}),(0,_.jsx)("path",{d:"M3.4 14.95h.98l-1.06-1.34-.49.62-.79-1.01-1.36 1.73zM3.25 12.53c.57 0 1.04-.47 1.04-1.04s-.47-1.04-1.04-1.04-1.04.47-1.04 1.04.47 1.04 1.04 1.04m0-1.73c.37 0 .68.31.68.68s-.31.68-.68.68-.68-.31-.68-.68.31-.68.68-.68M10.76 8.42h-4.7c-.1 0-.18.08-.18.18v7.61c0 .1.08.18.18.18h4.7c.1 0 .18-.08.18-.18V8.6c0-.1-.08-.18-.18-.18m-.18 7.6H6.24V8.78h4.34z"}),(0,_.jsx)("path",{d:"M9.28 14.95h.98L9.2 13.61l-.49.62-.79-1.01-1.36 1.73zM9.14 12.53c.57 0 1.04-.47 1.04-1.04s-.47-1.04-1.04-1.04-1.04.47-1.04 1.04.47 1.04 1.04 1.04m0-1.73c.37 0 .68.31.68.68s-.31.68-.68.68-.68-.31-.68-.68.31-.68.68-.68"})]})}),gl=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})),ml=((0,a.__)("None","kadence-blocks-pro"),(0,a.__)("None","kadence-blocks-pro"),(0,a.__)("XXS","kadence-blocks-pro"),(0,a.__)("2X Small","kadence-blocks-pro"),(0,a.__)("XS","kadence-blocks-pro"),(0,a.__)("X Small","kadence-blocks-pro"),(0,a.__)("SM","kadence-blocks-pro"),(0,a.__)("Small","kadence-blocks-pro"),(0,a.__)("MD","kadence-blocks-pro"),(0,a.__)("Medium","kadence-blocks-pro"),(0,a.__)("LG","kadence-blocks-pro"),(0,a.__)("Large","kadence-blocks-pro"),(0,a.__)("XL","kadence-blocks-pro"),(0,a.__)("X Large","kadence-blocks-pro"),(0,a.__)("XXL","kadence-blocks-pro"),(0,a.__)("2X Large","kadence-blocks-pro"),(0,a.__)("3XL","kadence-blocks-pro"),(0,a.__)("3X Large","kadence-blocks-pro"),(0,a.__)("4XL","kadence-blocks-pro"),(0,a.__)("4X Large","kadence-blocks-pro"),(0,a.__)("5XL","kadence-blocks-pro"),(0,a.__)("5X Large","kadence-blocks-pro"),[{value:"sm",output:"var(--global-kb-font-size-sm, 0.9rem)",size:14,label:(0,a.__)("SM","kadence-blocks-pro"),name:(0,a.__)("Small","kadence-blocks-pro")},{value:"md",output:"var(--global-kb-font-size-md, 1.25rem)",size:20,label:(0,a.__)("MD","kadence-blocks-pro"),name:(0,a.__)("Medium","kadence-blocks-pro")},{value:"lg",output:"var(--global-kb-font-size-lg, 2rem)",size:32,label:(0,a.__)("LG","kadence-blocks-pro"),name:(0,a.__)("Large","kadence-blocks-pro")},{value:"xl",output:"var(--global-kb-font-size-xl, 3rem)",size:48,label:(0,a.__)("XL","kadence-blocks-pro"),name:(0,a.__)("X Large","kadence-blocks-pro")},{value:"xxl",output:"var(--global-kb-font-size-xxl, 4rem)",size:64,label:(0,a.__)("2XL","kadence-blocks-pro"),name:(0,a.__)("2X Large","kadence-blocks-pro")},{value:"3xl",output:"var(--global-kb-font-size-xxxl, 5rem)",size:80,label:(0,a.__)("3XL","kadence-blocks-pro"),name:(0,a.__)("3X Large","kadence-blocks-pro")}]),fl=[{value:"none",output:"var(--global-kb-gap-none, 0px)",size:0,label:(0,a.__)("None","kadence-blocks-pro"),name:(0,a.__)("None","kadence-blocks-pro")},{value:"xs",output:"var(--global-kb-gap-xs, 0.5rem)",size:8,label:(0,a.__)("XS","kadence-blocks-pro"),name:(0,a.__)("X Small","kadence-blocks-pro")},{value:"sm",output:"var(--global-kb-gap-sm, 1rem)",size:16,label:(0,a.__)("SM","kadence-blocks-pro"),name:(0,a.__)("Small","kadence-blocks-pro")},{value:"md",output:"var(--global-kb-gap-md, 2rem)",size:32,label:(0,a.__)("MD","kadence-blocks-pro"),name:(0,a.__)("Medium","kadence-blocks-pro")},{value:"lg",output:"var(--global-kb-gap-lg, 4rem)",size:64,label:(0,a.__)("LG","kadence-blocks-pro"),name:(0,a.__)("Large","kadence-blocks-pro")}],bl=document.body?.classList.contains("rtl");function vl(e,t){if(!t)return"";if(!e)return"";if("0"===t)return 0;const n=e.find(e=>e.value===t);return n?n.size:""}function yl({label:e,onChange:t,value:n="",className:i="",options:s=ml,step:l=1,max:c=200,min:d=0,defaultValue:h="",unit:p="px",onUnit:g,units:m=["px","em","rem"],disableCustomSizes:f=!1,customControl:b=!1,setCustomControl:v=null,parentLabel:y=null,reset:k=!0,radio:x=!0}){const[w,C]=(0,o.useState)(!1);(0,o.useEffect)(()=>{C(function(e,t){return!!t&&!!e&&!e.find(e=>e.value===t)}(s,n))},[]);const S=v?b:w,E=v||C,M=m.map(e=>({value:e,label:e})),$=S?n:function(e,t){if(!t)return"";if(!e)return"";if("0"===t)return 0;const n=e.find(e=>e.value===t);return n?n.value:""}(s,n),A=[{value:"",output:"",size:"",label:(0,a.__)("Inherit","kadence-blocks-pro"),name:(0,a.__)("Inherit","kadence-blocks-pro")},...s];return[t&&(0,_.jsxs)("div",{className:"components-base-control component-font-size-control kadence-font-size-control"+(i?" "+i:""),children:[!v&&e&&(0,_.jsx)("div",{className:"kadence-font-size-control__header kadence-component__header",children:(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(h,n),icon:gl,onClick:()=>{"function"==typeof k?k():t(h)}})})]})}),!S&&x&&(0,_.jsx)("div",{className:"kadence-controls-content",children:(0,_.jsxs)(r.ButtonGroup,{className:"kadence-radio-container-control",children:[s.map((e,n)=>(0,_.jsx)(r.Button,{isTertiary:$!==e.value,className:"kadence-radio-item radio-"+e.value,isPrimary:$===e.value,icon:void 0!==e.icon?e.icon:void 0,"aria-pressed":$===e.value,onClick:()=>{$==e.value&&""==h?t(""):t(e.value)},children:e.label},`${e.label}-${e.value}-${n}`)),!f&&(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,onClick:()=>{$&&"px"===p&&t(vl(s,$)),E(!0)},isPressed:!1,isTertiary:!0})]})}),!S&&!x&&(0,_.jsxs)("div",{className:"kadence-controls-content kadence-font-size-select-control-wrap",children:[(0,_.jsx)(r.SelectControl,{className:"kadence-font-size-select-control",value:$,options:A,onChange:e=>{t($==e&&""==h?"":e)}}),!f&&(0,_.jsx)(r.ButtonGroup,{className:"kadence-radio-container-control",children:(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,onClick:()=>{$&&"px"===p&&t(vl(s,$)),E(!0)},isPressed:!1,isTertiary:!0})})]}),S&&(0,_.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,_.jsx)(r.__experimentalUnitControl,{label:y&&e?e:void 0,labelPosition:"top",min:d,max:c,step:l,units:M,value:n,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e)}),(0,_.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{g(e.target.value)},value:p,children:m.map(e=>(0,_.jsx)("option",{value:e,selected:p===e||void 0,children:e},e))})}),!f&&(0,_.jsx)(r.ButtonGroup,{className:"kadence-radio-container-control",children:(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Use size preset","kadence-blocks-pro"),icon:yi,isPrimary:!0,onClick:()=>{n&&"px"===p&&t(function(e,t){if(!t)return"";if(!e)return"";if("0"===t)return"";const n=e.find(e=>e.size===t);return n?n.value:""}(s,n)),E(!1)},isPressed:!0})})]})]})]}const kl=e=>e.charAt(0).toUpperCase()+e.slice(1);function xl({label:e,onChange:t,onChangeTablet:n,onChangeMobile:i,mobileValue:s,tabletValue:l,value:d,units:h=["px","em","rem"],onUnit:p,options:g=ml,step:m=1,max:f=200,min:b=0,unit:v="px",defaultValue:y=["","",""],reset:k=!0,radio:x=!0,compressedDevice:w=!1}){const C=(0,o.useRef)(),[S,E]=(0,o.useState)("Desktop"),M=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);M!==S&&E(M);const{setPreviewDeviceType:$}=(0,c.useDispatch)("kadenceblocks/data"),A=e=>{$(kl(e)),E(kl(e))},T=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],R=[d,l,s],L={};L.Mobile=(0,_.jsx)(yl,{value:s||void 0,onChange:e=>i(e),options:g,onUnit:p,defaultValue:y[2],units:h,step:m,max:f,min:b,unit:v,radio:x}),L.Tablet=(0,_.jsx)(yl,{value:l||void 0,onChange:e=>n(e),options:g,onUnit:p,defaultValue:y[1],units:h,step:m,max:f,min:b,unit:v,radio:x}),L.Desktop=(0,_.jsx)(yl,{value:d||void 0,onChange:e=>t(e),options:g,onUnit:p,defaultValue:y[0],units:h,step:m,max:f,min:b,unit:v,radio:x});const O={Desktop:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),Tablet:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),Mobile:(0,_.jsx)(r.Dashicon,{icon:"smartphone"})};return[t&&n&&i&&(0,_.jsxs)("div",{ref:C,className:"components-base-control kb-responsive-font-size-control kadence-font-size-control",children:[(0,_.jsxs)("div",{className:"kadence-font-size-control__header kadence-component__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-font-size__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(y,R),icon:gl,onClick:()=>{"function"==typeof k?k():"Mobile"===S?i(y[2]):"Tablet"===S?n(y[1]):t(y[0])}})})]}),!w&&(0,_.jsx)(r.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(T,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===S?" is-active":""}`,isSmall:!0,"aria-pressed":S===e,onClick:()=>A(e),children:n},t))}),w&&(0,_.jsx)(r.DropdownMenu,{className:"kb-responsive-options-dropdown",icon:O[S]?O[S]:O.Desktop,label:(0,a.__)("Target Device","kadence-blocks-pro"),controls:T.map(e=>{return[{title:(t=e).name,icon:t.title,isActive:S===t.name,onClick:()=>{A(t.name)}}];var t})})]}),(0,_.jsx)("div",{className:"kb-responsive-border-control-inner",children:L[S]?L[S]:L.Desktop})]})]}const wl=[{value:"0",label:(0,a.__)("None","kadence-blocks-pro"),size:0,name:(0,a.__)("None","kadence-blocks-pro")},{value:"xxs",output:"var(--global-kb-spacing-xxs, 0.5rem)",size:8,label:(0,a.__)("XXS","kadence-blocks-pro"),name:(0,a.__)("2X Small","kadence-blocks-pro")},{value:"xs",output:"var(--global-kb-spacing-xs, 1rem)",size:16,label:(0,a.__)("XS","kadence-blocks-pro"),name:(0,a.__)("X Small","kadence-blocks-pro")},{value:"sm",output:"var(--global-kb-spacing-sm, 1.5rem)",size:24,label:(0,a.__)("SM","kadence-blocks-pro"),name:(0,a.__)("Small","kadence-blocks-pro")},{value:"md",output:"var(--global-kb-spacing-md, 2rem)",size:32,label:(0,a.__)("MD","kadence-blocks-pro"),name:(0,a.__)("Medium","kadence-blocks-pro")},{value:"lg",output:"var(--global-kb-spacing-lg, 3rem)",size:48,label:(0,a.__)("LG","kadence-blocks-pro"),name:(0,a.__)("Large","kadence-blocks-pro")},{value:"xl",output:"var(--global-kb-spacing-xl, 4rem)",size:64,label:(0,a.__)("XL","kadence-blocks-pro"),name:(0,a.__)("X Large","kadence-blocks-pro")},{value:"xxl",output:"var(--global-kb-spacing-xxl, 5rem)",size:80,label:(0,a.__)("XXL","kadence-blocks-pro"),name:(0,a.__)("2X Large","kadence-blocks-pro")},{value:"3xl",output:"var(--global-kb-spacing-3xl, 6.5rem)",size:104,label:(0,a.__)("3XL","kadence-blocks-pro"),name:(0,a.__)("3X Large","kadence-blocks-pro")},{value:"4xl",output:"var(--global-kb-spacing-4xl, 8rem)",size:128,label:(0,a.__)("4XL","kadence-blocks-pro"),name:(0,a.__)("4X Large","kadence-blocks-pro")},{value:"5xl",output:"var(--global-kb-spacing-5xl, 10rem)",size:160,label:(0,a.__)("5XL","kadence-blocks-pro"),name:(0,a.__)("5X Large","kadence-blocks-pro")}];function _l(e,t){if(!t)return;if(!e)return;if("0"===t||"default"===t)return 0;return e.findIndex(e=>e.value===t)||void 0}function Cl({label:e,onChange:t,value:n="",placeholder:i="",className:s="",options:l=wl,step:c=1,max:d=200,min:u=0,beforeIcon:h="",help:p="",defaultValue:g=0,unit:m="",onUnit:f,units:b=["px","em","rem"],disableCustomSizes:v=!1,customControl:y=!1,setCustomControl:k=null,isPopover:x=!1,isSingle:w=!1,parentLabel:C=null,onMouseOver:S,onMouseOut:E,allowAuto:M=!1}){const[$,A]=(0,o.useState)(!1),[T,R]=(0,o.useState)(!1),L=JSON.parse(JSON.stringify(l));L.push({value:"ss-auto",output:"var(--global-kb-spacing-auto, auto)",label:(0,a.__)("Auto","kadence-blocks-pro"),size:0,name:(0,a.__)("Auto","kadence-blocks-pro")}),(0,o.useEffect)(()=>{A(function(e,t){return!!t&&!!e&&!e.find(e=>e.value===t)}(L,n))},[]);const O=k?y:$,D=k||A,N=l.map((e,t)=>({value:t,label:void 0})),j=b.map(e=>({value:e,label:e})),I=O?Number(n):_l(L,n),z=O?Number(i):_l(L,i),F=L[I]?.label?L[I]?.label:(0,a.__)("Unset","kadence-blocks-pro"),B=L[I]?.name?L[I]?.name+" "+L[I]?.size+"px":(0,a.__)("Unset","kadence-blocks-pro"),P=C?C+" ":"";let H=e;w?H=B:e&&P&&(H=P+e+" "+F);const V=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.RangeControl,{label:H||void 0,className:"components-spacing-sizes-control__range-control",beforeIcon:h,value:"ss-auto"==n?"":I,onChange:e=>{var n;t(void 0===e?g:void 0===(n=e)?"":0===parseInt(n,10)?"0":`${l[n]?.value}`)},min:0,max:l.length-1,marks:N,step:1,help:p,withInputField:!1,"aria-valuenow":I,"aria-valuetext":l[I]?.label,renderTooltipContent:e=>L[e]?.label,initialPosition:g||0,allowReset:!!w,hideLabelFromVision:!x&&!w,onMouseOver:S,onMouseOut:E,onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===n&&t("0")}}),!v&&(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,onClick:()=>D(!0),isPressed:!1,isTertiary:!0})]});return[t&&(0,_.jsxs)("div",{className:"components-base-control component-spacing-sizes-control kadence-single-measure-range-control"+(s?" "+s:""),children:[!k&&e&&(0,_.jsx)(r.Flex,{justify:"space-between",className:"kadence-radio-range__header",children:(0,_.jsx)(r.FlexItem,{children:(0,_.jsx)("label",{className:"components-base-control__label",children:e})})}),!O&&(0,_.jsxs)("div",{className:"kadence-controls-content",children:[x&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(r.Button,{className:"kadence-popover-spacing-btn",disabled:!(!n||"auto"!=n),tabIndex:"-1",onClick:n&&"auto"==n?"":function(){R(!T)},onMouseOver:S,onMouseOut:E,children:[C&&e&&(0,_.jsx)("span",{className:"kadence-placement-label",children:e}),(0,_.jsxs)("span",{className:"kadence-spacing-btn-val",children:[L[I]?.label,!L[I]?.label&&(0,_.jsx)("span",{className:"kadence-spacing-btn-placeholder",children:L?.[z]?.label?L?.[z]?.label:i})]})]}),T&&(0,_.jsx)(r.Popover,{onClose:function(){R(!1)},className:"kadence-range-popover-settings",children:(0,_.jsxs)("div",{className:"kadence-range-popover-settings-inner",children:[V,M&&(0,_.jsx)(r.Button,{className:"custom-auto-button",variant:"secondary",isSmall:!0,text:(0,a.__)("Auto","kadence-blocks-pro"),onClick:()=>t("ss-auto"),isPressed:!(!n||"ss-auto"!=n)}),(0,_.jsx)(r.Button,{className:"custom-reset-button",variant:"secondary",isSmall:!0,text:(0,a.__)("Reset","kadence-blocks-pro"),onClick:()=>t("")})]})})]}),!x&&(0,_.jsx)(_.Fragment,{children:V})]}),O&&(0,_.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,_.jsx)(r.__experimentalUnitControl,{label:C&&e?e:void 0,labelPosition:"top",min:u,max:d,disabled:!(!n||"auto"!=n),step:c,units:j,value:n,placeholder:i||void 0,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e),onMouseOver:S,onMouseOut:E}),!C&&(0,_.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{f(e.target.value)},value:m,children:b.map(e=>(0,_.jsx)("option",{value:e,selected:m===e||void 0,children:e},e))})}),!v&&(0,_.jsx)(r.ButtonGroup,{className:"kadence-radio-container-control",children:(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Use size preset","kadence-blocks-pro"),icon:yi,isPrimary:!0,onClick:()=>D(!1),isPressed:!0})})]})]})]}const Sl=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("rect",{x:"2.714",y:"5.492",width:"1.048",height:"9.017",fill:"#555d66"}),(0,_.jsx)("rect",{x:"16.265",y:"5.498",width:"1.023",height:"9.003",fill:"#555d66"}),(0,_.jsx)("rect",{x:"5.518",y:"2.186",width:"8.964",height:"2.482",fill:"#272b2f"}),(0,_.jsx)("rect",{x:"5.487",y:"16.261",width:"9.026",height:"1.037",fill:"#555d66"})]}),El=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("rect",{x:"2.714",y:"5.492",width:"1.046",height:"9.017",fill:"#555d66"}),(0,_.jsx)("rect",{x:"15.244",y:"5.498",width:"2.518",height:"9.003",fill:"#272b2f"}),(0,_.jsx)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.954",fill:"#555d66"}),(0,_.jsx)("rect",{x:"5.487",y:"16.308",width:"9.026",height:"0.99",fill:"#555d66"})]}),Ml=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("rect",{x:"2.714",y:"5.492",width:"1",height:"9.017",fill:"#555d66"}),(0,_.jsx)("rect",{x:"16.261",y:"5.498",width:"1.027",height:"9.003",fill:"#555d66"}),(0,_.jsx)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.968",fill:"#555d66"}),(0,_.jsx)("rect",{x:"5.487",y:"15.28",width:"9.026",height:"2.499",fill:"#272b2f"})]}),$l=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("rect",{x:"2.202",y:"5.492",width:"2.503",height:"9.017",fill:"#272b2f"}),(0,_.jsx)("rect",{x:"16.276",y:"5.498",width:"1.012",height:"9.003",fill:"#555d66"}),(0,_.jsx)("rect",{x:"5.518",y:"2.719",width:"8.964",height:"0.966",fill:"#555d66"}),(0,_.jsx)("rect",{x:"5.487",y:"16.303",width:"9.026",height:"0.995",fill:"#555d66"})]}),Al=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("path",{d:"M6.077,2.124l-0.101,0.003l-0.101,0.007l-0.099,0.009l-0.099,0.011l-0.098,0.014l-0.098,0.016l-0.096,0.018l-0.096,0.021l-0.095,0.023l-0.094,0.026l-0.093,0.028l-0.092,0.03l-0.091,0.032l-0.09,0.034l-0.089,0.036l-0.088,0.039l-0.086,0.04l-0.086,0.043l-0.084,0.044l-0.083,0.047l-0.082,0.048l-0.081,0.051l-0.079,0.052l-0.078,0.054l-0.077,0.056l-0.075,0.057l-0.074,0.06l-0.072,0.061l-0.071,0.063l-0.069,0.064l-0.068,0.066l-0.066,0.068l-0.064,0.069l-0.063,0.071l-0.061,0.072l-0.059,0.074l-0.058,0.075l-0.056,0.076l-0.054,0.078l-0.052,0.08l-0.05,0.08l-0.049,0.082l-0.046,0.083l-0.045,0.085l-0.042,0.085l-0.041,0.087l-0.038,0.088l-0.037,0.089l-0.034,0.09l-0.032,0.091l-0.03,0.092l-0.028,0.093l-0.025,0.094l-0.023,0.094l-0.021,0.096l-0.019,0.097l-0.016,0.097l-0.014,0.098l-0.011,0.099l-0.009,0.1l-0.006,0.1l-0.004,0.101l-0.001,0.102l0,1.272l5.531,-5.213l-1.591,0l-0.101,0.002Zm1.692,-0.002l-5.531,5.213l2.5,-0.011l0,-1.245l0,-0.054l0.002,-0.038l0.002,-0.037l0.004,-0.037l0.004,-0.036l0.005,-0.036l0.006,-0.035l0.006,-0.035l0.008,-0.035l0.008,-0.034l0.009,-0.034l0.01,-0.033l0.011,-0.033l0.012,-0.033l0.012,-0.033l0.013,-0.032l0.014,-0.032l0.015,-0.031l0.015,-0.031l0.016,-0.031l0.017,-0.03l0.018,-0.03l0.018,-0.03l0.02,-0.029l0.019,-0.028l0.021,-0.029l0.021,-0.027l0.022,-0.028l0.023,-0.026l0.023,-0.026l0.024,-0.026l0.024,-0.025l0.025,-0.025l0.026,-0.023l0.026,-0.024l0.027,-0.022l0.027,-0.022l0.028,-0.021l0.028,-0.021l0.029,-0.02l0.029,-0.019l0.029,-0.018l0.03,-0.018l0.031,-0.017l0.03,-0.016l0.031,-0.016l0.032,-0.014l0.032,-0.014l0.032,-0.013l0.032,-0.013l0.033,-0.011l0.033,-0.011l0.034,-0.01l0.033,-0.009l0.035,-0.009l0.034,-0.007l0.035,-0.007l0.036,-0.006l0.035,-0.005l0.037,-0.004l0.036,-0.003l0.037,-0.003l0.038,-0.001l0.054,-0.001l1.569,0l0.006,-2.5Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})]}),Tl=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,1.273l-5.531,-5.214l1.591,0l0.101,0.002Zm-1.692,-0.002l5.531,5.214l-2.5,-0.012l0,-1.245l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-1.57,0l-0.005,-2.5Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})]}),Rl=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("path",{d:"M14.044,17.873l0.101,-0.003l0.101,-0.007l0.099,-0.009l0.099,-0.011l0.098,-0.014l0.098,-0.016l0.096,-0.018l0.096,-0.021l0.095,-0.023l0.094,-0.026l0.093,-0.028l0.092,-0.03l0.091,-0.032l0.09,-0.034l0.089,-0.036l0.088,-0.039l0.086,-0.04l0.086,-0.043l0.084,-0.044l0.083,-0.047l0.082,-0.048l0.081,-0.051l0.079,-0.052l0.078,-0.054l0.077,-0.056l0.075,-0.057l0.074,-0.06l0.072,-0.061l0.071,-0.063l0.069,-0.064l0.068,-0.066l0.066,-0.068l0.064,-0.069l0.063,-0.071l0.061,-0.072l0.059,-0.074l0.058,-0.075l0.056,-0.076l0.054,-0.078l0.052,-0.08l0.05,-0.08l0.049,-0.082l0.046,-0.083l0.045,-0.085l0.042,-0.085l0.041,-0.087l0.038,-0.088l0.037,-0.089l0.034,-0.09l0.032,-0.091l0.03,-0.092l0.028,-0.093l0.025,-0.094l0.023,-0.094l0.021,-0.096l0.019,-0.097l0.016,-0.097l0.014,-0.098l0.011,-0.099l0.009,-0.1l0.006,-0.1l0.004,-0.101l0.001,-0.102l0,-1.272l-5.531,5.213l1.591,0l0.101,-0.002Zm-1.692,0.002l5.531,-5.213l-2.5,0.012l0,1.244l0,0.054l-0.002,0.038l-0.002,0.037l-0.004,0.037l-0.004,0.036l-0.005,0.036l-0.006,0.035l-0.006,0.035l-0.008,0.035l-0.008,0.034l-0.009,0.034l-0.01,0.033l-0.011,0.033l-0.012,0.033l-0.012,0.033l-0.013,0.032l-0.014,0.032l-0.015,0.031l-0.015,0.031l-0.016,0.031l-0.017,0.03l-0.018,0.03l-0.018,0.03l-0.02,0.029l-0.019,0.028l-0.021,0.029l-0.021,0.027l-0.022,0.028l-0.023,0.026l-0.023,0.026l-0.024,0.026l-0.024,0.025l-0.025,0.025l-0.026,0.023l-0.026,0.024l-0.027,0.022l-0.027,0.022l-0.028,0.021l-0.028,0.021l-0.029,0.02l-0.029,0.019l-0.029,0.018l-0.03,0.018l-0.031,0.017l-0.03,0.016l-0.031,0.016l-0.032,0.014l-0.032,0.014l-0.032,0.013l-0.032,0.013l-0.033,0.011l-0.033,0.011l-0.034,0.01l-0.033,0.009l-0.035,0.009l-0.034,0.007l-0.035,0.007l-0.036,0.006l-0.035,0.005l-0.037,0.004l-0.036,0.003l-0.037,0.003l-0.038,0.001l-0.054,0.001l-1.57,0l-0.005,2.5Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M6.191,17.518l-0.096,-0.003l-0.096,-0.006l-0.094,-0.009l-0.094,-0.01l-0.093,-0.014l-0.093,-0.015l-0.091,-0.017l-0.092,-0.02l-0.09,-0.022l-0.089,-0.024l-0.088,-0.027l-0.088,-0.029l-0.086,-0.03l-0.086,-0.032l-0.084,-0.034l-0.084,-0.038l-0.082,-0.038l-0.081,-0.04l-0.08,-0.042l-0.079,-0.045l-0.078,-0.045l-0.077,-0.049l-0.075,-0.049l-0.074,-0.052l-0.073,-0.053l-0.071,-0.054l-0.071,-0.057l-0.068,-0.058l-0.067,-0.06l-0.066,-0.06l-0.064,-0.063l-0.063,-0.065l-0.061,-0.065l-0.06,-0.068l-0.058,-0.068l-0.056,-0.07l-0.055,-0.072l-0.053,-0.072l-0.051,-0.074l-0.05,-0.076l-0.047,-0.076l-0.047,-0.078l-0.044,-0.079l-0.042,-0.08l-0.04,-0.081l-0.039,-0.083l-0.036,-0.083l-0.035,-0.085l-0.033,-0.085l-0.03,-0.087l-0.029,-0.087l-0.026,-0.089l-0.024,-0.089l-0.022,-0.089l-0.02,-0.091l-0.018,-0.092l-0.015,-0.093l-0.013,-0.093l-0.011,-0.094l-0.008,-0.095l-0.006,-0.095l-0.004,-0.096l-0.001,-0.096l0,-1.043l5.125,4.786l-1.382,0l-0.096,-0.002Zm1.478,0.002l-5.125,-4.786l0.95,0.003l0,1.034l0.001,0.078l0.003,0.072l0.004,0.071l0.006,0.071l0.009,0.07l0.01,0.07l0.011,0.068l0.013,0.069l0.014,0.067l0.017,0.068l0.018,0.066l0.02,0.066l0.021,0.065l0.022,0.064l0.025,0.064l0.026,0.063l0.026,0.062l0.029,0.062l0.03,0.06l0.031,0.059l0.034,0.059l0.034,0.058l0.036,0.057l0.037,0.057l0.038,0.055l0.04,0.054l0.041,0.054l0.042,0.052l0.043,0.051l0.045,0.05l0.046,0.05l0.047,0.048l0.048,0.047l0.049,0.045l0.05,0.045l0.052,0.044l0.052,0.042l0.053,0.041l0.054,0.039l0.056,0.039l0.056,0.037l0.057,0.035l0.058,0.035l0.059,0.033l0.06,0.031l0.061,0.031l0.06,0.028l0.063,0.028l0.063,0.025l0.063,0.024l0.065,0.023l0.065,0.021l0.065,0.02l0.067,0.018l0.067,0.016l0.068,0.015l0.068,0.013l0.069,0.012l0.07,0.009l0.07,0.008l0.07,0.007l0.071,0.004l0.073,0.003l0.079,0.001l1.392,0l-0.017,0.95Z",fill:"#555d66"})]}),Ll=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("path",{d:"M6.077,17.873l-0.101,-0.003l-0.101,-0.007l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.018l-0.096,-0.021l-0.095,-0.023l-0.094,-0.026l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.068,-0.066l-0.066,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.076l-0.054,-0.078l-0.052,-0.08l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.094l-0.021,-0.096l-0.019,-0.097l-0.016,-0.097l-0.014,-0.098l-0.011,-0.099l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-1.272l5.531,5.213l-1.591,0l-0.101,-0.002Zm1.692,0.002l-5.531,-5.213l2.5,0.012l0,1.244l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.035l0.008,0.034l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.033l0.013,0.032l0.014,0.032l0.015,0.031l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.018,0.03l0.02,0.029l0.019,0.028l0.021,0.029l0.021,0.027l0.022,0.028l0.023,0.026l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.025l0.026,0.023l0.026,0.024l0.027,0.022l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.033,0.009l0.035,0.009l0.034,0.007l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.003l0.038,0.001l0.054,0.001l1.569,0l0.006,2.5Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M13.85,2.516l0.096,0.003l0.096,0.006l0.094,0.009l0.094,0.01l0.093,0.014l0.093,0.015l0.092,0.017l0.091,0.02l0.09,0.022l0.089,0.024l0.089,0.027l0.087,0.029l0.087,0.03l0.085,0.032l0.085,0.034l0.083,0.037l0.082,0.038l0.082,0.041l0.079,0.042l0.079,0.045l0.078,0.045l0.077,0.049l0.075,0.049l0.074,0.051l0.073,0.054l0.072,0.054l0.07,0.057l0.068,0.058l0.068,0.06l0.065,0.06l0.065,0.063l0.062,0.065l0.061,0.065l0.06,0.068l0.058,0.068l0.056,0.07l0.055,0.072l0.053,0.072l0.052,0.074l0.049,0.076l0.048,0.076l0.046,0.078l0.044,0.079l0.043,0.08l0.039,0.081l0.039,0.083l0.036,0.083l0.036,0.085l0.032,0.085l0.03,0.087l0.029,0.087l0.026,0.088l0.024,0.09l0.022,0.089l0.02,0.091l0.018,0.092l0.015,0.093l0.013,0.093l0.011,0.094l0.008,0.095l0.006,0.095l0.004,0.096l0.001,0.096l0,1.043l-5.125,-4.786l1.382,0l0.096,0.002Zm-1.478,-0.002l5.125,4.786l-0.95,-0.004l0,-1.033l-0.001,-0.078l-0.003,-0.072l-0.004,-0.071l-0.006,-0.071l-0.009,-0.07l-0.009,-0.07l-0.012,-0.068l-0.013,-0.069l-0.014,-0.067l-0.016,-0.068l-0.018,-0.066l-0.02,-0.066l-0.021,-0.065l-0.023,-0.064l-0.025,-0.064l-0.025,-0.063l-0.027,-0.062l-0.028,-0.062l-0.031,-0.06l-0.031,-0.059l-0.033,-0.059l-0.035,-0.058l-0.036,-0.057l-0.037,-0.057l-0.038,-0.055l-0.04,-0.054l-0.041,-0.054l-0.041,-0.052l-0.044,-0.051l-0.045,-0.051l-0.045,-0.049l-0.048,-0.048l-0.047,-0.047l-0.05,-0.045l-0.05,-0.045l-0.051,-0.044l-0.053,-0.042l-0.053,-0.041l-0.054,-0.039l-0.056,-0.039l-0.056,-0.037l-0.057,-0.035l-0.058,-0.035l-0.059,-0.033l-0.06,-0.031l-0.06,-0.031l-0.061,-0.028l-0.063,-0.028l-0.063,-0.025l-0.063,-0.024l-0.065,-0.023l-0.064,-0.021l-0.066,-0.02l-0.066,-0.018l-0.068,-0.016l-0.067,-0.015l-0.069,-0.013l-0.069,-0.012l-0.069,-0.009l-0.071,-0.008l-0.07,-0.007l-0.071,-0.004l-0.072,-0.003l-0.079,-0.001l-1.393,0l0.017,-0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M6.136,2.516l-0.096,0.003l-0.096,0.006l-0.094,0.009l-0.094,0.01l-0.093,0.014l-0.093,0.015l-0.091,0.017l-0.091,0.02l-0.09,0.022l-0.09,0.024l-0.088,0.027l-0.087,0.029l-0.087,0.03l-0.085,0.032l-0.085,0.034l-0.084,0.037l-0.081,0.038l-0.082,0.041l-0.08,0.042l-0.079,0.045l-0.077,0.045l-0.077,0.049l-0.075,0.049l-0.075,0.051l-0.073,0.054l-0.071,0.054l-0.07,0.057l-0.069,0.058l-0.067,0.06l-0.066,0.06l-0.064,0.063l-0.063,0.065l-0.061,0.065l-0.059,0.068l-0.058,0.068l-0.056,0.07l-0.056,0.072l-0.053,0.072l-0.051,0.074l-0.049,0.076l-0.048,0.076l-0.046,0.078l-0.044,0.079l-0.043,0.08l-0.04,0.081l-0.039,0.083l-0.036,0.083l-0.035,0.085l-0.032,0.085l-0.031,0.087l-0.028,0.087l-0.027,0.088l-0.024,0.09l-0.021,0.089l-0.02,0.091l-0.018,0.092l-0.016,0.093l-0.013,0.093l-0.01,0.094l-0.009,0.095l-0.006,0.095l-0.003,0.096l-0.001,0.096l0,1.043l5.124,-4.786l-1.382,0l-0.096,0.002Zm1.478,-0.002l-5.124,4.786l0.95,-0.004l0,-1.033l0.001,-0.078l0.002,-0.072l0.004,-0.071l0.007,-0.071l0.008,-0.07l0.01,-0.07l0.011,-0.068l0.014,-0.069l0.014,-0.067l0.016,-0.068l0.018,-0.066l0.02,-0.066l0.021,-0.065l0.023,-0.064l0.024,-0.064l0.026,-0.063l0.027,-0.062l0.028,-0.062l0.03,-0.06l0.032,-0.059l0.033,-0.059l0.034,-0.058l0.036,-0.057l0.037,-0.057l0.038,-0.055l0.04,-0.054l0.041,-0.054l0.042,-0.052l0.044,-0.051l0.044,-0.051l0.046,-0.049l0.047,-0.048l0.048,-0.047l0.049,-0.045l0.051,-0.045l0.051,-0.044l0.052,-0.042l0.053,-0.041l0.054,-0.039l0.057,-0.039l0.056,-0.037l0.057,-0.035l0.057,-0.035l0.059,-0.033l0.06,-0.031l0.061,-0.031l0.061,-0.028l0.063,-0.028l0.062,-0.025l0.064,-0.024l0.064,-0.023l0.065,-0.021l0.066,-0.02l0.066,-0.018l0.068,-0.016l0.067,-0.015l0.068,-0.013l0.07,-0.012l0.069,-0.009l0.07,-0.008l0.071,-0.007l0.071,-0.004l0.072,-0.003l0.079,-0.001l1.392,0l-0.017,-0.95Z",fill:"#555d66"}),(0,_.jsx)("path",{d:"M13.856,17.518l0.096,-0.003l0.096,-0.006l0.094,-0.009l0.094,-0.01l0.093,-0.014l0.094,-0.015l0.091,-0.017l0.091,-0.02l0.09,-0.022l0.089,-0.024l0.089,-0.027l0.087,-0.029l0.087,-0.03l0.085,-0.032l0.085,-0.034l0.083,-0.038l0.082,-0.038l0.082,-0.04l0.079,-0.042l0.079,-0.045l0.078,-0.045l0.077,-0.049l0.075,-0.049l0.074,-0.052l0.073,-0.053l0.072,-0.054l0.07,-0.057l0.068,-0.058l0.068,-0.06l0.065,-0.06l0.065,-0.063l0.063,-0.065l0.06,-0.065l0.06,-0.068l0.058,-0.068l0.056,-0.07l0.055,-0.072l0.053,-0.072l0.052,-0.074l0.049,-0.076l0.048,-0.076l0.046,-0.078l0.044,-0.079l0.043,-0.08l0.039,-0.081l0.039,-0.083l0.037,-0.083l0.035,-0.085l0.032,-0.085l0.03,-0.087l0.029,-0.087l0.026,-0.089l0.024,-0.089l0.022,-0.089l0.02,-0.091l0.018,-0.092l0.015,-0.093l0.014,-0.093l0.01,-0.094l0.009,-0.095l0.005,-0.095l0.004,-0.096l0.001,-0.096l0,-1.043l-5.125,4.786l1.382,0l0.096,-0.002Zm-1.478,0.002l5.125,-4.786l-0.95,0.003l0,1.034l-0.001,0.078l-0.003,0.072l-0.004,0.071l-0.006,0.071l-0.009,0.07l-0.009,0.07l-0.012,0.068l-0.013,0.069l-0.014,0.067l-0.016,0.068l-0.018,0.066l-0.02,0.066l-0.021,0.065l-0.023,0.064l-0.025,0.064l-0.025,0.063l-0.027,0.062l-0.028,0.062l-0.031,0.06l-0.031,0.059l-0.033,0.059l-0.035,0.058l-0.036,0.057l-0.037,0.057l-0.038,0.055l-0.04,0.054l-0.04,0.054l-0.042,0.052l-0.044,0.051l-0.045,0.05l-0.045,0.05l-0.048,0.048l-0.047,0.047l-0.05,0.045l-0.05,0.045l-0.051,0.044l-0.052,0.042l-0.054,0.041l-0.054,0.039l-0.056,0.039l-0.056,0.037l-0.057,0.035l-0.058,0.035l-0.059,0.033l-0.06,0.031l-0.06,0.031l-0.061,0.028l-0.063,0.028l-0.063,0.025l-0.063,0.024l-0.065,0.023l-0.064,0.021l-0.066,0.02l-0.066,0.018l-0.068,0.016l-0.067,0.015l-0.069,0.013l-0.069,0.012l-0.069,0.009l-0.071,0.008l-0.07,0.007l-0.071,0.004l-0.072,0.003l-0.079,0.001l-1.393,0l0.017,0.95Z",fill:"#555d66"})]}),Ol=(0,_.jsx)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:(0,_.jsx)("path",{d:"M14.044,2.12l0.101,0.003l0.101,0.007l0.099,0.009l0.099,0.011l0.098,0.014l0.098,0.016l0.096,0.018l0.096,0.021l0.095,0.023l0.094,0.026l0.093,0.028l0.092,0.03l0.091,0.032l0.09,0.034l0.089,0.036l0.088,0.039l0.086,0.04l0.086,0.043l0.084,0.044l0.083,0.047l0.082,0.048l0.081,0.051l0.079,0.052l0.078,0.054l0.077,0.056l0.075,0.057l0.074,0.06l0.072,0.061l0.071,0.063l0.069,0.064l0.068,0.066l0.066,0.068l0.064,0.069l0.063,0.071l0.061,0.072l0.059,0.074l0.058,0.075l0.056,0.076l0.054,0.078l0.052,0.08l0.05,0.08l0.049,0.082l0.046,0.083l0.045,0.085l0.042,0.085l0.041,0.087l0.038,0.088l0.037,0.089l0.034,0.09l0.032,0.091l0.03,0.092l0.028,0.093l0.025,0.094l0.023,0.094l0.021,0.096l0.019,0.097l0.016,0.097l0.014,0.098l0.011,0.099l0.009,0.1l0.006,0.1l0.004,0.101l0.001,0.102l0,7.881l-0.001,0.102l-0.004,0.101l-0.006,0.1l-0.009,0.1l-0.011,0.098l-0.014,0.099l-0.016,0.097l-0.019,0.097l-0.021,0.095l-0.023,0.095l-0.025,0.094l-0.028,0.093l-0.03,0.092l-0.032,0.091l-0.034,0.09l-0.037,0.089l-0.038,0.088l-0.041,0.087l-0.042,0.085l-0.045,0.085l-0.046,0.083l-0.049,0.082l-0.05,0.08l-0.052,0.079l-0.054,0.078l-0.056,0.077l-0.058,0.075l-0.059,0.074l-0.061,0.072l-0.063,0.071l-0.064,0.069l-0.066,0.068l-0.068,0.066l-0.069,0.064l-0.071,0.063l-0.072,0.061l-0.074,0.06l-0.075,0.057l-0.077,0.056l-0.078,0.054l-0.079,0.052l-0.081,0.051l-0.082,0.048l-0.083,0.047l-0.084,0.044l-0.086,0.043l-0.086,0.04l-0.088,0.039l-0.089,0.036l-0.09,0.034l-0.091,0.032l-0.092,0.03l-0.093,0.028l-0.094,0.025l-0.095,0.023l-0.096,0.021l-0.096,0.019l-0.098,0.016l-0.098,0.014l-0.099,0.011l-0.099,0.009l-0.101,0.006l-0.101,0.004l-0.101,0.001l-7.905,0l-0.101,-0.001l-0.101,-0.004l-0.101,-0.006l-0.099,-0.009l-0.099,-0.011l-0.098,-0.014l-0.098,-0.016l-0.096,-0.019l-0.096,-0.021l-0.095,-0.023l-0.094,-0.025l-0.093,-0.028l-0.092,-0.03l-0.091,-0.032l-0.09,-0.034l-0.089,-0.036l-0.088,-0.039l-0.086,-0.04l-0.086,-0.043l-0.084,-0.044l-0.083,-0.047l-0.082,-0.048l-0.081,-0.051l-0.079,-0.052l-0.078,-0.054l-0.077,-0.056l-0.075,-0.057l-0.074,-0.06l-0.072,-0.061l-0.071,-0.063l-0.069,-0.064l-0.067,-0.066l-0.067,-0.068l-0.064,-0.069l-0.063,-0.071l-0.061,-0.072l-0.059,-0.074l-0.058,-0.075l-0.056,-0.077l-0.054,-0.078l-0.052,-0.079l-0.05,-0.08l-0.049,-0.082l-0.046,-0.083l-0.045,-0.085l-0.042,-0.085l-0.041,-0.087l-0.038,-0.088l-0.037,-0.089l-0.034,-0.09l-0.032,-0.091l-0.03,-0.092l-0.028,-0.093l-0.025,-0.094l-0.023,-0.095l-0.021,-0.095l-0.019,-0.097l-0.016,-0.097l-0.014,-0.099l-0.011,-0.098l-0.009,-0.1l-0.006,-0.1l-0.004,-0.101l-0.001,-0.102l0,-7.881l0.001,-0.102l0.004,-0.101l0.006,-0.1l0.009,-0.1l0.011,-0.099l0.014,-0.098l0.016,-0.097l0.019,-0.097l0.021,-0.096l0.023,-0.094l0.025,-0.094l0.028,-0.093l0.03,-0.092l0.032,-0.091l0.034,-0.09l0.037,-0.089l0.038,-0.088l0.041,-0.087l0.042,-0.085l0.045,-0.085l0.046,-0.083l0.049,-0.082l0.05,-0.08l0.052,-0.08l0.054,-0.078l0.056,-0.076l0.058,-0.075l0.059,-0.074l0.061,-0.072l0.063,-0.071l0.064,-0.069l0.067,-0.068l0.067,-0.066l0.069,-0.064l0.071,-0.063l0.072,-0.061l0.074,-0.06l0.075,-0.057l0.077,-0.056l0.078,-0.054l0.079,-0.052l0.081,-0.051l0.082,-0.048l0.083,-0.047l0.084,-0.044l0.086,-0.043l0.086,-0.04l0.088,-0.039l0.089,-0.036l0.09,-0.034l0.091,-0.032l0.092,-0.03l0.093,-0.028l0.094,-0.026l0.095,-0.023l0.096,-0.021l0.096,-0.018l0.098,-0.016l0.098,-0.014l0.099,-0.011l0.099,-0.009l0.101,-0.007l0.101,-0.003l0.101,-0.002l7.905,0l0.101,0.002Zm-7.99,2.498l-0.054,0.001l-0.038,0.001l-0.037,0.003l-0.036,0.003l-0.037,0.004l-0.035,0.005l-0.036,0.006l-0.035,0.007l-0.034,0.007l-0.034,0.009l-0.034,0.009l-0.034,0.01l-0.033,0.011l-0.033,0.011l-0.032,0.013l-0.032,0.013l-0.032,0.014l-0.032,0.014l-0.031,0.016l-0.03,0.016l-0.031,0.017l-0.03,0.018l-0.029,0.018l-0.029,0.019l-0.029,0.02l-0.028,0.021l-0.028,0.021l-0.027,0.022l-0.027,0.022l-0.026,0.024l-0.026,0.023l-0.025,0.025l-0.024,0.025l-0.024,0.026l-0.023,0.026l-0.023,0.026l-0.022,0.028l-0.021,0.027l-0.02,0.029l-0.02,0.028l-0.019,0.029l-0.019,0.03l-0.018,0.03l-0.017,0.03l-0.016,0.031l-0.015,0.031l-0.015,0.031l-0.014,0.032l-0.013,0.032l-0.012,0.033l-0.012,0.033l-0.011,0.033l-0.01,0.033l-0.009,0.034l-0.008,0.034l-0.008,0.035l-0.006,0.035l-0.006,0.035l-0.005,0.036l-0.004,0.036l-0.004,0.037l-0.002,0.037l-0.002,0.038l0,0.054l0,7.849l0,0.054l0.002,0.038l0.002,0.037l0.004,0.037l0.004,0.036l0.005,0.036l0.006,0.035l0.006,0.035l0.008,0.034l0.008,0.035l0.009,0.034l0.01,0.033l0.011,0.033l0.012,0.033l0.012,0.032l0.013,0.033l0.014,0.031l0.015,0.032l0.015,0.031l0.016,0.031l0.017,0.03l0.018,0.03l0.019,0.029l0.019,0.03l0.02,0.028l0.02,0.028l0.021,0.028l0.022,0.027l0.023,0.027l0.023,0.026l0.024,0.026l0.024,0.025l0.025,0.024l0.026,0.024l0.026,0.023l0.027,0.023l0.027,0.022l0.028,0.021l0.028,0.021l0.029,0.02l0.029,0.019l0.029,0.018l0.03,0.018l0.031,0.017l0.03,0.016l0.031,0.016l0.032,0.014l0.032,0.014l0.032,0.013l0.032,0.013l0.033,0.011l0.033,0.011l0.034,0.01l0.034,0.009l0.034,0.008l0.034,0.008l0.035,0.007l0.036,0.006l0.035,0.005l0.037,0.004l0.036,0.003l0.037,0.002l0.038,0.002l0.054,0l7.873,0l0.054,0l0.038,-0.002l0.037,-0.002l0.036,-0.003l0.037,-0.004l0.035,-0.005l0.036,-0.006l0.035,-0.007l0.034,-0.008l0.034,-0.008l0.034,-0.009l0.034,-0.01l0.033,-0.011l0.033,-0.011l0.032,-0.013l0.032,-0.013l0.032,-0.014l0.032,-0.014l0.031,-0.016l0.03,-0.016l0.031,-0.017l0.03,-0.018l0.029,-0.018l0.029,-0.019l0.029,-0.02l0.028,-0.021l0.028,-0.021l0.027,-0.022l0.027,-0.023l0.026,-0.023l0.026,-0.024l0.025,-0.024l0.024,-0.025l0.024,-0.026l0.023,-0.026l0.023,-0.027l0.022,-0.027l0.021,-0.028l0.021,-0.028l0.019,-0.028l0.02,-0.03l0.018,-0.029l0.018,-0.03l0.017,-0.03l0.016,-0.031l0.015,-0.031l0.015,-0.032l0.014,-0.031l0.013,-0.033l0.012,-0.032l0.012,-0.033l0.011,-0.033l0.01,-0.033l0.009,-0.034l0.008,-0.035l0.008,-0.034l0.006,-0.035l0.006,-0.035l0.005,-0.036l0.004,-0.036l0.004,-0.037l0.002,-0.037l0.002,-0.038l0,-0.054l0,-7.849l0,-0.054l-0.002,-0.038l-0.002,-0.037l-0.004,-0.037l-0.004,-0.036l-0.005,-0.036l-0.006,-0.035l-0.006,-0.035l-0.008,-0.035l-0.008,-0.034l-0.009,-0.034l-0.01,-0.033l-0.011,-0.033l-0.012,-0.033l-0.012,-0.033l-0.013,-0.032l-0.014,-0.032l-0.015,-0.031l-0.015,-0.031l-0.016,-0.031l-0.017,-0.03l-0.018,-0.03l-0.018,-0.03l-0.02,-0.029l-0.019,-0.028l-0.021,-0.029l-0.021,-0.027l-0.022,-0.028l-0.023,-0.026l-0.023,-0.026l-0.024,-0.026l-0.024,-0.025l-0.025,-0.025l-0.026,-0.023l-0.026,-0.024l-0.027,-0.022l-0.027,-0.022l-0.028,-0.021l-0.028,-0.021l-0.029,-0.02l-0.029,-0.019l-0.029,-0.018l-0.03,-0.018l-0.031,-0.017l-0.03,-0.016l-0.031,-0.016l-0.032,-0.014l-0.032,-0.014l-0.032,-0.013l-0.032,-0.013l-0.033,-0.011l-0.033,-0.011l-0.034,-0.01l-0.033,-0.009l-0.035,-0.009l-0.034,-0.007l-0.035,-0.007l-0.036,-0.006l-0.035,-0.005l-0.037,-0.004l-0.036,-0.003l-0.037,-0.003l-0.038,-0.001l-0.054,-0.001l-7.873,0Z",fill:"#555d66"})}),Dl=(0,_.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",children:[(0,_.jsx)("rect",{x:"2.024",y:"5.486",width:"2.61",height:"9.027"}),(0,_.jsx)("rect",{x:"15.379",y:"5.497",width:"2.56",height:"9.007"}),(0,_.jsx)("rect",{x:"5.509",y:"1.999",width:"8.983",height:"2.582"}),(0,_.jsx)("rect",{x:"5.51",y:"15.36",width:"8.979",height:"2.563"})]}),Nl=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),jl=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));function Il(e,t){return!(!t||!e||!(void 0===t[0]||""!==t[0]||void 0===t[1]||""!==t[1]&&"auto"!==t[1]||void 0===t[2]||""!==t[2]||void 0===t[3]||""!==t[3]&&"auto"!==t[3])||(void 0!==t[0]&&""!==t[0]?e.find(e=>e.value===t[0]):void 0!==t[1]&&""!==t[1]&&"auto"!==t[1]?e.find(e=>e.value===t[1]):void 0!==t[2]&&""!==t[2]?e.find(e=>e.value===t[2]):void 0!==t[3]&&""!==t[3]&&"auto"!==t[3]?e.find(e=>e.value===t[3]):e.find(e=>e.value===t)))}function zl(e,t,n){if(!t)return"";if(!e)return"";if("0"===t)return 0;if("px"!==n)return"";const o=e.find(e=>e.value===t);return o?o.size:""}function Fl(e,t,n){if(!t)return"";if(!e)return"";if(0===t)return"0";if("px"!==n)return"";const o=e.find(e=>e.size.toString()===t.toString());return o?o.value:""}function Bl({label:e,onChange:t,onControl:n,value:i="",className:s="",options:l=wl,step:c=1,max:d=200,min:h=0,beforeIcon:p="",help:g="",placeholder:m=["","","",""],defaultValue:f=["","","",""],control:b="individual",unit:v="",onUnit:y,units:k=["px","em","rem"],disableCustomSizes:x=!1,isBorderRadius:w=!1,firstIcon:C=Sl,secondIcon:S=El,thirdIcon:E=Ml,fourthIcon:M=$l,linkIcon:$=Nl,unlinkIcon:A=jl,customControl:T=!1,setCustomControl:R=null,parentLabel:L=null,reset:O,onMouseOver:D,onMouseOut:N,allowAuto:j=!1}){const I={first:w?Al:C,second:w?Tl:S,third:w?Rl:E,fourth:w?Ll:M,link:w?Ol:$,unlink:w?Dl:A},[z,F]=(0,o.useState)(!1),[B,P]=(0,o.useState)(b),H=JSON.parse(JSON.stringify(l));H.push({value:"ss-auto",output:"var(--global-kb-spacing-auto, auto)",label:(0,a.__)("Auto","kadence-blocks-pro"),size:0,name:(0,a.__)("Auto","kadence-blocks-pro")}),(0,o.useEffect)(()=>{F(Il(H,i))},[]);const V=R?T:z,W=R||F,U=n?b:B,G=n||P;return[t&&(0,_.jsxs)("div",{className:"components-base-control component-spacing-sizes-control kadence-measure-range-control "+(s?" "+s:""),children:[e&&(0,_.jsxs)(r.Flex,{justify:"space-between",className:"kadence-component__header kadence-radio-range__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),O&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(f,i),icon:gl,onClick:()=>{"function"==typeof O?O():t(f)}})})]}),!x&&(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:V?(0,a.__)("Use size preset","kadence-blocks-pro"):(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,isSmall:!0,onClick:()=>{if(V){const e=[Fl(l,i?i[0]:"",v),Fl(l,i?i[1]:"",v),Fl(l,i?i[2]:"",v),Fl(l,i?i[3]:"",v)];t(e)}else{const e=[zl(l,i?i[0]:"",v),zl(l,i?i[1]:"",v),zl(l,i?i[2]:"",v),zl(l,i?i[3]:"",v)];t(e)}W(!V)},isPressed:!!V,isTertiary:!V}),G&&(0,_.jsx)(r.Button,{isSmall:!0,className:"kadence-radio-item radio-custom is-single only-icon",label:"individual"!==U?(0,a.__)("Individual","kadence-blocks-pro"):(0,a.__)("Linked","kadence-blocks-pro"),icon:"individual"!==U?I.link:I.unlink,onClick:()=>G("individual"!==U?"individual":"linked"),isPressed:"individual"!==U,isTertiary:"individual"===U})]}),(0,_.jsxs)("div",{className:"kadence-controls-content",children:["individual"!==U&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Cl,{value:i?i[0]:"",onChange:e=>t([e,e,e,e]),className:"kb-measure-input-all-inputs",min:h,max:d,options:l,step:c,help:g,unit:v,units:k,onUnit:y,defaultValue:f[0],placeholder:m?.[0]?m?.[0]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:W,customControl:V,isPopover:!1,isSingle:!0,onMouseOver:D,onMouseOut:N,allowAuto:j})}),"individual"===U&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Cl,{parentLabel:L||e,label:(0,a.__)("Top","kadence-blocks-pro"),className:"kb-measure-box-top",value:i?i[0]:"",onChange:e=>{t([e,i&&void 0!==i[1]?i[1]:"",i&&void 0!==i[2]?i[2]:"",i&&void 0!==i[3]?i[3]:""])},min:h,max:d,options:l,step:c,help:g,unit:v,units:k,onUnit:y,defaultValue:f[0],placeholder:m?.[0]?m?.[0]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:W,customControl:V,isPopover:!0,onMouseOver:D,onMouseOut:N,allowAuto:j}),(0,_.jsx)(Cl,{parentLabel:L||e,label:(0,a.__)("Right","kadence-blocks-pro"),className:"kb-measure-box-right",value:i?i[1]:"",onChange:e=>t([i&&void 0!==i[0]?i[0]:"",e,i&&void 0!==i[2]?i[2]:"",i&&void 0!==i[3]?i[3]:""]),min:h,max:d,options:l,step:c,help:g,unit:v,units:k,onUnit:y,defaultValue:f[1],placeholder:m?.[1]?m?.[1]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:W,customControl:V,isPopover:!0,onMouseOver:D,onMouseOut:N,allowAuto:j}),(0,_.jsx)(Cl,{parentLabel:L||e,label:(0,a.__)("Bottom","kadence-blocks-pro"),className:"kb-measure-box-bottom",value:i?i[2]:"",onChange:e=>t([i&&void 0!==i[0]?i[0]:"",i&&void 0!==i[1]?i[1]:"",e,i&&void 0!==i[3]?i[3]:""]),min:h,max:d,options:l,step:c,help:g,unit:v,units:k,onUnit:y,defaultValue:f[2],placeholder:m?.[2]?m?.[2]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:W,customControl:V,isPopover:!0,onMouseOver:D,onMouseOut:N,allowAuto:j}),(0,_.jsx)(Cl,{parentLabel:L||e,label:(0,a.__)("Left","kadence-blocks-pro"),className:"kb-measure-box-left",value:i?i[3]:"",onChange:e=>t([i&&void 0!==i[0]?i[0]:"",i&&void 0!==i[1]?i[1]:"",i&&void 0!==i[2]?i[2]:"",e]),min:h,max:d,options:l,step:c,help:g,unit:v,units:k,onUnit:y,defaultValue:f[3],placeholder:m?.[3]?m?.[3]:"",allowReset:!1,disableCustomSizes:!0,setCustomControl:W,customControl:V,isPopover:!0,onMouseOver:D,onMouseOut:N,allowAuto:j}),V&&(0,_.jsx)("div",{className:"kadence-units kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{y(e.target.value)},value:v,disabled:1===k.length,children:k.map(e=>(0,_.jsx)("option",{value:e,selected:v===e||void 0,children:e},e))})})]})]})]})]}function Pl(e,t){if("object"!=typeof e||"object"!=typeof t)return!1;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],i=t[n];if(o&&!i||!o&&i)return!1}return!0}function Hl(e,t){if("object"!=typeof e||"object"!=typeof t)return t;if(e.length!=t.length)return t;let n=null;for(let o=0;o<e.length;o++){const i=e[o],r=t[o];i!==r&&(n=r)}return n?t.map(e=>typeof e==typeof n?e:""):t}function Vl({label:e,subLabel:t,onChange:n,onChangeTablet:i,onChangeMobile:s,mobileValue:l,tabletValue:d,value:h,onControl:p,control:g="individual",options:m=wl,step:f=1,max:b=100,min:v=0,unit:y="",onUnit:k,showUnit:x=!1,units:w=["px","em","rem"],isBorderRadius:C=!1,disableCustomSizes:S=!1,firstIcon:E=Sl,secondIcon:M=El,thirdIcon:$=Ml,fourthIcon:A=$l,linkIcon:T=Nl,unlinkIcon:R=jl,deskDefault:L=["","","",""],tabletDefault:O=["","","",""],mobileDefault:D=["","","",""],reset:N=!0,setCustomControl:j=null,onMouseOver:I,onMouseOut:z,allowAuto:F=!1}){const B=(0,o.useRef)(),P={first:C?Al:E,second:C?Tl:M,third:C?Rl:$,fourth:C?Ll:A,link:C?Ol:T,unlink:C?Dl:R},[H,V]=(0,o.useState)(!1),[W,U]=(0,o.useState)(g),G=j?customControl:H,Z=j||V,q=JSON.parse(JSON.stringify(m));q.push({value:"ss-auto",output:"var(--global-kb-spacing-auto, auto)",label:(0,a.__)("Auto","kadence-blocks-pro"),size:0,name:(0,a.__)("Auto","kadence-blocks-pro")});const K=e=>{let t=[];return t=G?[Fl(m,e?e[0]:"",y),Fl(m,e?e[1]:"",y),Fl(m,e?e[2]:"",y),Fl(m,e?e[3]:"",y)]:[zl(m,e?e[0]:"",y),zl(m,e?e[1]:"",y),zl(m,e?e[2]:"",y),zl(m,e?e[3]:"",y)],t},Y=p?g:W,X=p||U,[Q,J]=(0,o.useState)("Desktop"),ee=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);ee!==Q&&J(ee),(0,o.useEffect)(()=>{let e=h;"Tablet"==ee?e=d:"Mobile"==ee&&(e=l),V(Il(q,e))},[ee]);const{setPreviewDeviceType:te}=(0,c.useDispatch)("kadenceblocks/data"),ne=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let oe=h||["","","",""];"Tablet"===Q?oe=d||["","","",""]:"Mobile"===Q&&(oe=l||["","","",""]);let ie=d?JSON.parse(JSON.stringify(d)):["","","",""];ie?.[0]||(ie[0]=h?.[0]?h[0]:""),ie?.[1]||(ie[1]=h?.[1]?h[1]:""),ie?.[2]||(ie[2]=h?.[2]?h[2]:""),ie?.[3]||(ie[3]=h?.[3]?h[3]:"");const re={};re.Mobile=(0,_.jsx)(Bl,{className:"measure-mobile-size",parentLabel:e,label:t?(0,a.__)("Mobile:","kadence-blocks-pro")+t:void 0,value:l||["","","",""],placeholder:ie,onChange:e=>s(Hl(l,e)),control:Y,onControl:e=>X(e),setCustomControl:Z,customControl:G,options:m,defaultValue:D,min:v,max:b,step:f,unit:y,onUnit:k||void 0,showUnit:!0,units:[y],isBorderRadius:C,firstIcon:E,secondIcon:M,thirdIcon:$,fourthIcon:A,linkIcon:T,unlinkIcon:R,onMouseOver:I,onMouseOut:z,allowAuto:F},2),re.Tablet=(0,_.jsx)(Bl,{className:"measure-tablet-size",parentLabel:e,label:t?(0,a.__)("Tablet:","kadence-blocks-pro")+t:void 0,value:d||["","","",""],placeholder:h||["","","",""],onChange:e=>i(Hl(d,e)),control:Y,onControl:e=>X(e),setCustomControl:Z,customControl:G,options:m,defaultValue:O,min:v,max:b,step:f,unit:y,onUnit:k||void 0,showUnit:!0,units:[y],isBorderRadius:C,firstIcon:E,secondIcon:M,thirdIcon:$,fourthIcon:A,linkIcon:T,unlinkIcon:R,onMouseOver:I,onMouseOut:z,allowAuto:F},1),re.Desktop=(0,_.jsx)(Bl,{className:"measure-desktop-size",parentLabel:e,label:t||void 0,value:h||["","","",""],onChange:e=>n(Hl(h,e)),control:Y,onControl:e=>X(e),setCustomControl:Z,customControl:G,options:m,defaultValue:L,min:v,max:b,step:f,unit:y,onUnit:k||void 0,showUnit:x,units:w,isBorderRadius:C,firstIcon:E,secondIcon:M,thirdIcon:$,fourthIcon:A,linkIcon:T,unlinkIcon:R,onMouseOver:I,onMouseOut:z,allowAuto:F},0);let se=L;return"Mobile"===Q?se=D:"Mobile"===Q&&(se=O),[n&&i&&s&&(0,_.jsxs)("div",{ref:B,className:"components-base-control kb-responsive-measure-control kadence-measure-range-control",children:[(0,_.jsxs)(r.Flex,{justify:"space-between",className:"kadence-title-bar kadence-component__header kadence-measure-range__header kadence-radio-range__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),N&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(se,oe),icon:gl,onClick:()=>{"Tablet"===Q?i(O):"Mobile"===Q?s(D):n(L)}})})]}),(0,_.jsx)(r.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(ne,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===Q?" is-active":""}`,isSmall:!0,"aria-pressed":Q===e,onClick:()=>{return te(kl(t=e)),void J(kl(t));var t},children:n},t))}),!S&&!t&&(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:G?(0,a.__)("Use size preset","kadence-blocks-pro"):(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,isSmall:!0,onClick:()=>{(()=>{if("Mobile"==Q){const e=K(l);Pl(l,e)&&s(e)}else if("Tablet"==Q){const e=K(d);Pl(d,e)&&i(e)}else{const e=K(h);Pl(h,e)&&n(e)}})(),Z(!G)},isPressed:!!G,isTertiary:!G}),X&&!t&&(0,_.jsx)(r.Button,{isSmall:!0,className:"kadence-radio-item radio-custom is-single only-icon",label:"individual"!==Y?(0,a.__)("Individual","kadence-blocks-pro"):(0,a.__)("Linked","kadence-blocks-pro"),icon:"individual"!==Y?P.link:P.unlink,onClick:()=>X("individual"!==Y?"individual":"linked"),isPressed:"individual"!==Y,isTertiary:"individual"===Y})]}),(0,_.jsx)("div",{className:"kb-responsive-measure-control-inner",children:re[Q]?re[Q]:re.Desktop})]})]}(0,l.addFilter)("kadence.galleryTypes","kadence/gallerypro",function(e){return[{value:"masonry",label:(0,a.__)("Masonry"),icon:sl,isDisabled:!1},{value:"grid",label:(0,a.__)("Grid"),icon:al,isDisabled:!1},{value:"carousel",label:(0,a.__)("Carousel"),icon:ll,isDisabled:!1},{value:"fluidcarousel",label:(0,a.__)("Fluid Carousel"),icon:cl,isDisabled:!1},{value:"slider",label:(0,a.__)("Slider"),icon:dl,isDisabled:!1},{value:"thumbslider",label:(0,a.__)("Thumbnail Slider"),icon:ul,isDisabled:!1},{value:"tiles",label:(0,a.__)("Tiles"),icon:hl,isDisabled:!1},{value:"mosaic",label:(0,a.__)("Mosaic"),icon:pl,isDisabled:!1}]}),(0,l.addFilter)("kadence.galleryArrowsPosition","kadence/gallerypro",function(e){return[{label:(0,a.__)("Center","kadence-blocks-pro"),value:"center"},{label:(0,a.__)("Bottom Left","kadence-blocks-pro"),value:"bottom-left"},{label:(0,a.__)("Bottom Right","kadence-blocks-pro"),value:"bottom-right"},{label:(0,a.__)("Top Left","kadence-blocks-pro"),value:"top-left"},{label:(0,a.__)("Top Right","kadence-blocks-pro"),value:"top-right"},{label:(0,a.__)("Outside Top","kadence-blocks-pro"),value:"outside-top"},{label:(0,a.__)("Outside Top Left","kadence-blocks-pro"),value:"outside-top-left"},{label:(0,a.__)("Outside Top Right","kadence-blocks-pro"),value:"outside-top-right"},{label:(0,a.__)("Outside Bottom","kadence-blocks-pro"),value:"outside-bottom"},{label:(0,a.__)("Outside Bottom Left","kadence-blocks-pro"),value:"outside-bottom-left"},{label:(0,a.__)("Outside Bottom Right","kadence-blocks-pro"),value:"outside-bottom-right"}]}),(0,l.addFilter)("kadence.galleryArrowsStyle","kadence/gallerypro",function(e){return[{label:(0,a.__)("White on Dark","kadence-blocks-pro"),value:"whiteondark"},{label:(0,a.__)("Black on Light","kadence-blocks-pro"),value:"blackonlight"},{label:(0,a.__)("Outline Black","kadence-blocks-pro"),value:"outlineblack"},{label:(0,a.__)("Outline White","kadence-blocks-pro"),value:"outlinewhite"},{label:(0,a.__)("Custom","kadence-blocks-pro"),value:"custom"},{label:(0,a.__)("None","kadence-blocks-pro"),value:"none"}]}),(0,l.addFilter)("kadence.galleryArrowsBlockOptions","kadence/gallerypro",function(t,n){return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(xl,{label:(0,a.__)("Arrow Size","kadence-blocks-pro"),value:void 0!==t.arrowSize?.[0]?t.arrowSize[0]:"",onChange:e=>n({arrowSize:[e,void 0!==t.arrowSize[1]?t.arrowSize[1]:"",void 0!==t.arrowSize[2]?t.arrowSize[2]:""]}),tabletValue:void 0!==t.arrowSize?.[1]?t.arrowSize[1]:"",onChangeTablet:e=>n({arrowSize:[void 0!==t.arrowSize[0]?t.arrowSize[0]:"",e,void 0!==t.arrowSize[2]?t.arrowSize[2]:""]}),mobileValue:void 0!==t.arrowSize?.[2]?t.arrowSize[2]:"",onChangeMobile:e=>n({arrowSize:[void 0!==t.arrowSize[0]?t.arrowSize[0]:"",void 0!==t.arrowSize[1]?t.arrowSize[1]:"",e]}),min:0,max:"px"===t.arrowSizeUnit?200:12,step:"px"===t.arrowSizeUnit?1:.001,unit:t.arrowSizeUnit?t.arrowSizeUnit:"px",onUnit:e=>{n({arrowSizeUnit:e})},units:["px","em","rem","vw"]}),(0,e.createElement)(Vl,{label:(0,a.__)("Arrow Margin","kadence-blocks-pro"),value:t.arrowMargin,tabletValue:t.tabletArrowMargin,mobileValue:t.mobileArrowMargin,onChange:e=>{n({arrowMargin:e})},onChangeTablet:e=>{n({tabletArrowMargin:e})},onChangeMobile:e=>{n({mobileArrowMargin:e})},min:("em"===t.arrowMarginUnit||t.arrowMarginUnit,-400),max:"em"===t.arrowMarginUnit||"rem"===t.arrowMarginUnit?12:400,step:"em"===t.arrowMarginUnit||"rem"===t.arrowMarginUnit?.1:1,unit:t.arrowMarginUnit,units:["px","em","rem","%"],onUnit:e=>n({arrowMarginUnit:e})}))}),(0,l.addFilter)("kadence.galleryDotStyle","kadence/gallerypro",function(e){return[{label:(0,a.__)("Dark","kadence-blocks-pro"),value:"dark"},{label:(0,a.__)("Light","kadence-blocks-pro"),value:"light"},{label:(0,a.__)("Outline Dark","kadence-blocks-pro"),value:"outlinedark"},{label:(0,a.__)("Outline Light","kadence-blocks-pro"),value:"outlinelight"},{label:(0,a.__)("Custom","kadence-blocks-pro"),value:"custom"},{label:(0,a.__)("None","kadence-blocks-pro"),value:"none"}]});const{addQueryArgs:Wl}=wp.url,{apiFetch:Ul}=wp,{Component:Gl,Fragment:Zl}=wp.element,{PanelBody:ql,TextControl:Kl,Button:Yl,Spinner:Xl,SelectControl:Ql,ToggleControl:Jl,ExternalLink:ec}=wp.components,tc=class extends Gl{constructor(e,t,n){super(...arguments),this.getSendInBlueList=this.getSendInBlueList.bind(this),this.getSendInBlueAttributes=this.getSendInBlueAttributes.bind(this),this.removeAPI=this.removeAPI.bind(this),this.saveAPI=this.saveAPI.bind(this),this.state={api:"",isSavedAPI:!1,isSaving:!1,list:!1,isFetching:!1,listsLoaded:!1,isFetchingAttributes:!1,listAttr:!1,listAttrLoaded:!1}}componentDidMount(){let e;wp.api.loadPromise.then(()=>{e=new wp.api.models.Settings,e.fetch().then(e=>{this.setState({api:e.kadence_blocks_send_in_blue_api}),""!==this.state.api&&this.setState({isSavedAPI:!0})})})}getSendInBlueList(){this.state.api?(this.setState({isFetching:!0}),Ul({path:Wl("/kb-sendinblue/v1/get",{apikey:this.state.api,endpoint:"contacts/lists",queryargs:["limit=50","offset=0"]})}).then(e=>{const t=[];e.lists.map(e=>{t.push({value:e.id,label:e.name})}),this.setState({list:t,listsLoaded:!0,isFetching:!1})}).catch(()=>{this.setState({list:[],listsLoaded:!0,isFetching:!1})})):this.setState({list:[],listsLoaded:!0})}getSendInBlueAttributes(){if(!this.state.api){const e=[];return e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),void this.setState({listAttr:e,listAttrLoaded:!0})}this.setState({isFetchingAttributes:!0}),Ul({path:Wl("/kb-sendinblue/v1/get",{apikey:this.state.api,endpoint:"contacts/attributes"})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.attributes.map((e,n)=>{"normal"===e.category&&t.push({value:e.name,label:e.name})}),this.setState({listAttr:t,listAttrLoaded:!0,isFetchingAttributes:!1})}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),this.setState({listAttr:e,listAttrLoaded:!0,isFetchingAttributes:!1})})}removeAPI(){this.setState({api:""}),this.state.isSavedAPI&&(this.setState({isSaving:!0}),new wp.api.models.Settings({kadence_blocks_send_in_blue_api:""}).save().then(()=>{this.setState({isSavedAPI:!1,isSaving:!1})}))}saveAPI(){this.setState({isSaving:!0}),new wp.api.models.Settings({kadence_blocks_send_in_blue_api:this.state.api}).save().then(e=>{this.setState({isSaving:!1,isSavedAPI:!0})})}render(){const{list:t,listsLoaded:n,isFetching:o,isSavedAPI:i,listAttr:r,isFetchingAttributes:s,listAttrLoaded:l}=this.state,c=Array.isArray(t)&&t.length,d=Array.isArray(this.state.listAttr)&&this.state.listAttr.length;return(0,e.createElement)(ql,{title:(0,a.__)("Brevo (SendInBlue) Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)("p",null,(0,e.createElement)(Zl,null,(0,e.createElement)(ec,{href:"https://account.sendinblue.com/advanced/api/"},(0,a.__)("Get API Key","kadence-blocks-pro")),"| ",(0,e.createElement)(ec,{href:"https://help.sendinblue.com/hc/en-us/articles/209467485-What-s-an-API-key-and-how-can-I-get-mine-"},(0,a.__)("Get help","kadence-blocks-pro")))),(0,e.createElement)(Kl,{label:(0,a.__)("API Key (v3)","kadence-blocks-pro"),value:this.state.api,onChange:e=>this.setState({api:e})}),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(Yl,{isPrimary:!0,onClick:this.saveAPI,disabled:""===this.state.api},this.state.isSaving?(0,a.__)("Saving","kadence-blocks-pro"):(0,a.__)("Save","kadence-blocks-pro")),this.state.isSavedKey&&(0,e.createElement)(Zl,null," ",(0,e.createElement)(Yl,{isDefault:!0,onClick:this.removeAPI},(0,a.__)("Remove","kadence-blocks-pro")))),i&&(0,e.createElement)(Zl,null,o&&(0,e.createElement)(Xl,null),!o&&!c&&(0,e.createElement)(Zl,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select List","kadence-blocks-pro")),n?"":this.getSendInBlueList(),Array.isArray(t)?(0,a.__)("No list found.","kadence-blocks-pro"):(0,e.createElement)(Xl,null)),!o&&c&&(0,e.createElement)(Zl,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select List","kadence-blocks-pro")),(0,e.createElement)(vi,{value:void 0!==this.props.settings[0].list?this.props.settings[0].list:"",onChange:e=>{this.props.save({list:e||[]})},id:"snb-list-selection",options:t,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select List")}),!this.props.settings[0].list&&(0,e.createElement)("div",{style:{height:"100px"}}),this.props.settings[0].list&&(0,e.createElement)(Zl,null,s&&(0,e.createElement)(Xl,null),!s&&!d&&(0,e.createElement)(Zl,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),l?"":this.getSendInBlueAttributes(),Array.isArray(r)?(0,a.__)("No Fields found.","kadence-blocks-pro"):(0,e.createElement)(Xl,null)),!s&&d&&(0,e.createElement)(Zl,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),this.props.fields&&this.props.fields.map((t,n)=>(0,e.createElement)("div",{key:n,className:"kb-field-map-item"},(0,e.createElement)("div",{className:"kb-field-map-item-form"},(0,e.createElement)("p",{className:"kb-field-map-item-label"},(0,a.__)("Form Field","kadence-blocks-pro")),(0,e.createElement)("p",{className:"kb-field-map-item-name"},t.label)),(0,e.createElement)(Ql,{label:(0,a.__)("Select Field:"),options:r,value:void 0!==this.props.settings[0].map&&void 0!==this.props.settings[0].map[n]&&this.props.settings[0].map[n]?this.props.settings[0].map[n]:"",onChange:e=>{this.props.saveMap(e,n)}}))))))))}},{addQueryArgs:nc}=wp.url,{apiFetch:oc}=wp,{Component:ic,Fragment:rc}=wp.element,{PanelBody:sc,TextControl:ac,Button:lc,Spinner:cc,ToggleControl:dc,SelectControl:uc,ExternalLink:hc}=wp.components,pc=class extends ic{constructor(e,t,n){super(...arguments),this.getMailChimpAudience=this.getMailChimpAudience.bind(this),this.getMailChimpGroups=this.getMailChimpGroups.bind(this),this.getMailChimpAttributes=this.getMailChimpAttributes.bind(this),this.getMailChimpTags=this.getMailChimpTags.bind(this),this.removeAPI=this.removeAPI.bind(this),this.saveAPI=this.saveAPI.bind(this),this.state={api:"",isSavedAPI:!1,isSaving:!1,list:!1,isFetching:!1,listsLoaded:!1,isFetchingAttributes:!1,listAttr:!1,listAttrLoaded:!1,isFetchingGroups:!1,listGroups:!1,listGroupLoaded:!1,isFetchingTags:!1,listTags:!1,listTagsLoaded:!1}}componentDidMount(){let e;wp.api.loadPromise.then(()=>{e=new wp.api.models.Settings,e.fetch().then(e=>{this.setState({api:e.kadence_blocks_mail_chimp_api}),""!==this.state.api&&this.setState({isSavedAPI:!0})})})}getMailChimpAudience(){this.state.api&&this.state.api.split("-")[1]?(this.setState({isFetching:!0}),oc({path:nc("/kb-mailchimp/v1/get",{apikey:this.state.api,endpoint:"lists/",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];e.lists.map(e=>{t.push({value:e.id,label:e.name})}),this.setState({list:t,listsLoaded:!0,isFetching:!1})}).catch(()=>{this.setState({list:[],listsLoaded:!0,isFetching:!1})})):this.setState({list:[],listsLoaded:!0})}getMailChimpGroups(){this.state.api&&this.props.settings[0].list.value?(this.setState({isFetchingGroups:!0}),oc({path:nc("/kb-mailchimp/v1/get",{apikey:this.state.api,endpoint:"lists/"+this.props.settings[0].list.value+"/interest-categories/",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.title})}),this.setState({listGroups:t,listGroupLoaded:!0,isFetchingGroups:!1})}).catch(()=>{this.setState({listGroups:[],listGroupLoaded:!0,isFetchingGroups:!1})})):this.setState({listGroups:[],listGroupLoaded:!0})}getMailChimpTags(){this.state.api&&this.props.settings[0].list.value?(this.setState({isFetchingTags:!0}),oc({path:nc("/kb-mailchimp/v1/get",{apikey:this.state.api,endpoint:"lists/"+this.props.settings[0].list.value+"/tag-search/",queryargs:["count=500","offset=0"]})}).then(e=>{const t=[];e.tags&&e.tags.map(e=>{t.push({value:e.id,label:e.name})}),this.setState({listTags:t,listTagsLoaded:!0,isFetchingTags:!1})}).catch(()=>{this.setState({listTags:[],listTagsLoaded:!0,isFetchingTags:!1})})):this.setState({listTags:[],listTagsLoaded:!0})}getMailChimpAttributes(){if(!this.state.api||!this.props.settings[0].list.value){const e=[];return e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),void this.setState({listAttr:e,listAttrLoaded:!0})}this.setState({isFetchingAttributes:!0}),oc({path:nc("/kb-mailchimp/v1/get",{apikey:this.state.api,endpoint:"lists/"+this.props.settings[0].list.value+"/merge-fields/",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.merge_fields.map((e,n)=>{t.push({value:e.tag,label:e.name})}),this.setState({listAttr:t,listAttrLoaded:!0,isFetchingAttributes:!1})}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),this.setState({listAttr:e,listAttrLoaded:!0,isFetchingAttributes:!1})})}removeAPI(){this.setState({api:""}),this.state.isSavedAPI&&(this.setState({isSaving:!0}),new wp.api.models.Settings({kadence_blocks_mail_chimp_api:""}).save().then(()=>{this.setState({isSavedAPI:!1,isSaving:!1})}))}saveAPI(){this.setState({isSaving:!0}),new wp.api.models.Settings({kadence_blocks_mail_chimp_api:this.state.api}).save().then(e=>{this.setState({isSaving:!1,isSavedAPI:!0})})}render(){const{list:t,listsLoaded:n,isFetching:o,isSavedAPI:i,listAttr:r,isFetchingAttributes:s,listAttrLoaded:l,isFetchingGroups:c,listGroups:d,listGroupLoaded:u,isFetchingTags:h,listTags:p,listTagsLoaded:g}=this.state,m=Array.isArray(t)&&t.length,f=Array.isArray(this.state.listAttr)&&this.state.listAttr.length,b=Array.isArray(this.state.listGroups)&&this.state.listGroups.length,v=Array.isArray(this.state.listTags)&&this.state.listTags.length;return(0,e.createElement)(sc,{title:(0,a.__)("MailChimp Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)("p",null,(0,e.createElement)(rc,null,(0,e.createElement)(hc,{href:"https://mailchimp.com/help/about-api-keys/"},(0,a.__)("Get help","kadence-blocks-pro")))),(0,e.createElement)(ac,{label:(0,a.__)("API Key","kadence-blocks-pro"),value:this.state.api,onChange:e=>this.setState({api:e})}),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(lc,{isPrimary:!0,onClick:this.saveAPI,disabled:""===this.state.api},this.state.isSaving?(0,a.__)("Saving","kadence-blocks-pro"):(0,a.__)("Save","kadence-blocks-pro")),this.state.isSavedKey&&(0,e.createElement)(rc,null," ",(0,e.createElement)(lc,{isDefault:!0,onClick:this.removeAPI},(0,a.__)("Remove","kadence-blocks-pro")))),i&&(0,e.createElement)(rc,null,o&&(0,e.createElement)(cc,null),!o&&!m&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Audience","kadence-blocks-pro")),n?"":this.getMailChimpAudience(),Array.isArray(t)?(0,a.__)("No Audience found.","kadence-blocks-pro"):(0,e.createElement)(cc,null)),!o&&m&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Audience","kadence-blocks-pro")),(0,e.createElement)(vi,{value:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].list?this.props.settings[0].list:"",onChange:e=>{this.props.save({list:e||[]})},id:"mc-list-selection",isClearable:!0,options:t,isMulti:!1,maxMenuHeight:200,placeholder:(0,a.__)("Select Audience")}),(void 0===this.props.settings||void 0===this.props.settings[0]||!this.props.settings[0].list||!this.props.settings[0].list.value)&&(0,e.createElement)("div",{style:{height:"100px"}}),void 0!==this.props.settings&&void 0!==this.props.settings[0]&&this.props.settings[0].list&&this.props.settings[0].list.value&&(0,e.createElement)(rc,null,c&&(0,e.createElement)(cc,null),!c&&!b&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Groups","kadence-blocks-pro")),u?"":this.getMailChimpGroups(),Array.isArray(d)?(0,a.__)("No Groups found.","kadence-blocks-pro"):(0,e.createElement)(cc,null)),!c&&b&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Groups","kadence-blocks-pro")),(0,e.createElement)(vi,{value:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].groups?this.props.settings[0].groups:"",onChange:e=>{this.props.save({groups:e||[]})},id:"mc-group-selection",isClearable:!0,options:d,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Groups")})),h&&(0,e.createElement)(cc,null),!h&&!v&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Tags","kadence-blocks-pro")),g?"":this.getMailChimpTags(),Array.isArray(p)?(0,a.__)("No Tags found.","kadence-blocks-pro"):(0,e.createElement)(cc,null)),!h&&v&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Tags","kadence-blocks-pro")),(0,e.createElement)(vi,{value:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].tags?this.props.settings[0].tags:"",onChange:e=>{this.props.save({tags:e||[]})},id:"mc-tag-selection",isClearable:!0,options:p,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Tags")})),s&&(0,e.createElement)(cc,null),!s&&!f&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),l?"":this.getMailChimpAttributes(),Array.isArray(r)?(0,a.__)("No Fields found.","kadence-blocks-pro"):(0,e.createElement)(cc,null)),!s&&f&&(0,e.createElement)(rc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),this.props.fields&&this.props.fields.map((t,n)=>(0,e.createElement)("div",{key:n,className:"kb-field-map-item"},(0,e.createElement)("div",{className:"kb-field-map-item-form"},(0,e.createElement)("p",{className:"kb-field-map-item-label"},(0,a.__)("Form Field","kadence-blocks-pro")),(0,e.createElement)("p",{className:"kb-field-map-item-name"},t.label)),(0,e.createElement)(uc,{label:(0,a.__)("Select Field:"),options:r,value:void 0!==this.props.settings[0].map&&void 0!==this.props.settings[0].map[n]&&this.props.settings[0].map[n]?this.props.settings[0].map[n]:"",onChange:e=>{this.props.saveMap(e,n)}})))),(0,e.createElement)(dc,{label:(0,a.__)("Require Double Opt In?","kadence-blocks-pro"),checked:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].doubleOptin&&this.props.settings[0].doubleOptin,onChange:e=>this.props.save({doubleOptin:e})})))))}},gc=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),{Component:mc}=wp.element,{Button:fc,TextControl:bc,Popover:vc}=wp.components,yc=class extends mc{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)()}toggle(){this.setState({open:!this.state.open})}render(){const{open:t}=this.state;return(0,e.createElement)(e.Fragment,null,t&&(0,e.createElement)(vc,{className:"kb-dynamic-popover",position:"bottom center",onClick:()=>{},expandOnMobile:!0,onClose:this.toggle,ref:this.popRef},(0,e.createElement)("div",{className:"kb-dynamic-popover-inner-wrap"},(0,e.createElement)("div",{className:"kb-tag-search-inner-wrap"},(0,e.createElement)(bc,{label:(0,a.__)("Search for Tag","kadence-blocks-pro"),value:this.props.value,onChange:e=>{this.props.onChange(e)}}),(0,e.createElement)(fc,{className:"kb-tag-action-search",isPrimary:!0,icon:gc,onClick:()=>{this.props.onAction(),this.toggle},label:(0,a.__)("Search","kadence-blocks-pro"),showTooltip:!0})))),(0,e.createElement)(fc,{className:"kb-tag-search",icon:gc,onClick:this.toggle,isPressed:!!this.props.value,"aria-haspopup":"true","aria-expanded":t,label:(0,a.__)("Search","kadence-blocks-pro"),showTooltip:!0}))}};function kc({label:e,onChange:t,isSaving:n,value:i="",placeholder:l=null,className:c="",obfuscate:d=!0,help:u=""}){const[h,p]=(0,o.useState)(""),g=`inspector-obfuscate-text-control-${(0,s.useInstanceId)(kc)}`;return[t&&(0,_.jsxs)("div",{className:"components-base-control kadence-obfuscate-text-control"+(c?" "+c:""),children:[e&&(0,_.jsx)("label",{htmlFor:g,className:"components-background-obfuscate-text-control__label",children:e}),(0,_.jsxs)("div",{className:"kadence-obfuscate-text-control-inner",children:[!i&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.TextControl,{id:g,value:h,placeholder:l,onChange:e=>p(e)}),(0,_.jsxs)(r.Button,{isPrimary:!0,isSmall:!0,className:"kb-obfuscate-save",onClick:()=>t(h),disabled:""===h,children:[(0,a.__)("Save","kadence-blocks-pro"),n?(0,_.jsx)(r.Spinner,{}):""]})]}),i&&d&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.TextControl,{id:g,value:"***************************",readOnly:!0}),(0,_.jsxs)(r.Button,{isSecondary:!0,isSmall:!0,className:"kb-obfuscate-save",onClick:()=>t(""),children:[(0,a.__)("Remove","kadence-blocks-pro"),n?(0,_.jsx)(r.Spinner,{}):""]})]}),i&&!d&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.TextControl,{id:g,value:i,readOnly:!0}),(0,_.jsxs)(r.Button,{isSecondary:!0,isSmall:!0,className:"kb-obfuscate-save",onClick:()=>t(""),children:[(0,a.__)("Clear","kadence-blocks-pro"),n?(0,_.jsx)(r.Spinner,{}):""]})]})]})]})]}const{Component:xc,Fragment:wc}=wp.element,{PanelBody:_c,TextControl:Cc,Button:Sc,Spinner:Ec,ToggleControl:Mc,SelectControl:$c,ExternalLink:Ac}=wp.components,Tc=class extends xc{constructor(e,t,n){super(...arguments),this.getActiveLists=this.getActiveLists.bind(this),this.getActiveFields=this.getActiveFields.bind(this),this.getActiveTags=this.getActiveTags.bind(this),this.removeAPI=this.removeAPI.bind(this),this.saveAPI=this.saveAPI.bind(this),this.state={api:"",apiBase:"",isSavedKey:!1,isLoadingSettings:!0,isSaving:!1,isSavingURL:!1,list:!1,isFetching:!1,listsLoaded:!1,isFetchingAttributes:!1,listAttr:!1,listAttrLoaded:!1,isFetchingTags:!1,listTags:!1,listTagsLoaded:!1,tagSearch:""}}componentDidMount(){m()({path:"/wp/v2/settings"}).then(e=>{this.setState({api:e.kadence_blocks_activecampaign_api_key,apiBase:e.kadence_blocks_activecampaign_api_base,isSavedKey:""!==e.kadence_blocks_activecampaign_api_key&&""!==e.kadence_blocks_activecampaign_api_base,isLoadingSettings:!1})})}getActiveLists(){this.state.api?(this.setState({isFetching:!0}),m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{apikey:this.state.api,endpoint:"lists",queryargs:["limit=200"]})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.name})}),this.setState({list:t,listsLoaded:!0,isFetching:!1})}).catch(()=>{this.setState({list:[],listsLoaded:!0,isFetching:!1})})):this.setState({list:[],listsLoaded:!0})}getActiveTags(){this.state.api?(this.setState({isFetchingTags:!0}),m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{apikey:this.state.api,endpoint:"tags",queryargs:["search="+this.state.tagSearch]})}).then(e=>{const t=[];e&&e.map(e=>{t.push({value:e.id,label:e.tag})}),this.setState({listTags:t,listTagsLoaded:!0,isFetchingTags:!1})}).catch(()=>{this.setState({listTags:[],listTagsLoaded:!0,isFetchingTags:!1})})):this.setState({listTags:[],listTagsLoaded:!0})}getActiveFields(){if(!this.state.api){const e=[];return e.push({value:null,label:(0,a.__)("None","kadence-blocks-pro")}),e.push({value:"email",label:(0,a.__)("Email *","kadence-blocks-pro")}),e.push({value:"firstName",label:(0,a.__)("First Name","kadence-blocks-pro")}),e.push({value:"lastName",label:(0,a.__)("Last Name","kadence-blocks-pro")}),e.push({value:"phone",label:(0,a.__)("Phone","kadence-blocks-pro")}),void this.setState({listAttr:e,listAttrLoaded:!0})}this.setState({isFetchingAttributes:!0}),m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{apikey:this.state.api,endpoint:"fields",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];t.push({value:null,label:(0,a.__)("None","kadence-blocks-pro")}),t.push({value:"email",label:(0,a.__)("Email *","kadence-blocks-pro")}),t.push({value:"firstName",label:(0,a.__)("First Name","kadence-blocks-pro")}),t.push({value:"lastName",label:(0,a.__)("Last Name","kadence-blocks-pro")}),t.push({value:"phone",label:(0,a.__)("Phone","kadence-blocks-pro")}),e.map((e,n)=>{t.push({value:e.id,label:e.title})}),this.setState({listAttr:t,listAttrLoaded:!0,isFetchingAttributes:!1})}).catch(()=>{const e=[];e.push({value:null,label:(0,a.__)("None","kadence-blocks-pro")}),e.push({value:"email",label:(0,a.__)("Email *","kadence-blocks-pro")}),e.push({value:"firstName",label:(0,a.__)("First Name","kadence-blocks-pro")}),e.push({value:"lastName",label:(0,a.__)("Last Name","kadence-blocks-pro")}),e.push({value:"phone",label:(0,a.__)("Phone","kadence-blocks-pro")}),this.setState({listAttr:e,listAttrLoaded:!0,isFetchingAttributes:!1})})}removeAPI(){this.setState({api:""}),this.setState({isSaving:!0}),m()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_activecampaign_api_base:""}}).then(()=>{this.setState({isSaving:!1,isSavedKey:!1})})}saveAPI(e){this.setState({isSaving:!0}),m()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_activecampaign_api_key:e}}).then(()=>{this.setState({api:e}),this.setState({isSavedKey:""!==this.state.api&&""!==this.state.apiBase,isSaving:!1})})}saveAPIURL(e){this.setState({isSavingURL:!0}),m()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_activecampaign_api_base:e}}).then(()=>{this.setState({apiBase:e}),this.setState({isSavedKey:""!==this.state.api&&""!==this.state.apiBase,isSavingURL:!1})})}render(){const{list:t,listsLoaded:n,isFetching:o,listAttr:i,isFetchingAttributes:r,isSavedKey:s,listAttrLoaded:l,isFetchingTags:c,listTags:d,listTagsLoaded:u,tagSearch:h}=this.state,p=Array.isArray(t)&&t.length,g=Array.isArray(this.state.listAttr)&&this.state.listAttr.length,m=Array.isArray(this.state.listTags)&&this.state.listTags.length;return(0,e.createElement)(_c,{title:(0,a.__)("ActiveCampaign Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)("p",null,(0,e.createElement)(wc,null,(0,e.createElement)(Ac,{href:"https://help.activecampaign.com/hc/en-us/articles/207317590-Getting-started-with-the-API/"},(0,a.__)("Get help","kadence-blocks-pro")))),this.state.isLoadingSettings&&(0,e.createElement)(Ec,null),!this.state.isLoadingSettings&&(0,e.createElement)(wc,null,(0,e.createElement)(kc,{label:(0,a.__)("API Key","kadence-blocks-pro"),value:this.state.api,onChange:e=>this.saveAPI(e),isSaving:this.state.isSaving}),(0,e.createElement)(kc,{label:(0,a.__)("API URL","kadence-blocks-pro"),value:this.state.apiBase,obfuscate:!1,placeholder:"https://youaccount.api-us1.com",onChange:e=>this.saveAPIURL(e),isSaving:this.state.isSavingURL}),this.state.isSavedKey&&(0,e.createElement)(wc,null,o&&(0,e.createElement)(Ec,null),!o&&!p&&(0,e.createElement)(wc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select List","kadence-blocks-pro")),n?"":this.getActiveLists(),Array.isArray(t)?(0,a.__)("No Lists found.","kadence-blocks-pro"):(0,e.createElement)(Ec,null)),!o&&p&&(0,e.createElement)(wc,null,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("span",{className:"kt-heading-size-title"},(0,a.__)("Select List","kadence-blocks-pro")),(0,e.createElement)(vi,{value:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].list?this.props.settings[0].list:"",onChange:e=>{this.props.save({list:e||[]})},id:"mc-list-selection",isClearable:!0,options:t,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select List")})),(void 0===this.props.settings||void 0===this.props.settings[0]||!this.props.settings[0].list)&&(0,e.createElement)("div",{style:{height:"100px"}}),void 0!==this.props.settings&&void 0!==this.props.settings[0]&&this.props.settings[0].list&&(0,e.createElement)(wc,null,c&&(0,e.createElement)(Ec,null),!c&&!m&&(0,e.createElement)(wc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Select Tags","kadence-blocks-pro")),u?"":this.getActiveTags(),Array.isArray(d)?(0,a.__)("No Tags found.","kadence-blocks-pro"):(0,e.createElement)(Ec,null)),!c&&m&&(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"kadence-select-tags-title-wrap"},(0,e.createElement)("span",{className:"kt-heading-size-title"},(0,a.__)("Select Tags","kadence-blocks-pro")),(0,e.createElement)(yc,{value:h,onChange:e=>{this.setState({tagSearch:e})},onAction:()=>{this.getActiveTags()}})),(0,e.createElement)(vi,{value:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].tags?this.props.settings[0].tags:"",onChange:e=>{this.props.save({tags:e||[]})},id:"mc-tag-selection",isClearable:!0,options:d,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Tags")})),r&&(0,e.createElement)(Ec,null),!r&&!g&&(0,e.createElement)(wc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),l?"":this.getActiveFields(),Array.isArray(i)?(0,a.__)("No Fields found.","kadence-blocks-pro"):(0,e.createElement)(Ec,null)),!r&&g&&(0,e.createElement)(wc,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),this.props.fields&&this.props.fields.map((t,n)=>(0,e.createElement)("div",{key:n,className:"kb-field-map-item"},(0,e.createElement)("div",{className:"kb-field-map-item-form"},(0,e.createElement)("p",{className:"kb-field-map-item-label"},(0,a.__)("Form Field","kadence-blocks-pro")),(0,e.createElement)("p",{className:"kb-field-map-item-name"},t.label)),(0,e.createElement)($c,{label:(0,a.__)("Select Field:"),options:i,value:void 0!==this.props.settings[0].map&&void 0!==this.props.settings[0].map[n]&&this.props.settings[0].map[n]?this.props.settings[0].map[n]:"",onChange:e=>{this.props.saveMap(e,n)}})))),(0,e.createElement)("div",{style:{height:"10px"}}),(0,e.createElement)(Mc,{label:(0,a.__)("Require Double Opt In?","kadence-blocks-pro"),help:(0,a.__)("This will set the status of the contact to unconfirmed, you must setup an automation in ActiveCampaign to email the contact and update the status after confirmation.","kadence-blocks-pro"),checked:void 0!==this.props.settings&&void 0!==this.props.settings[0]&&void 0!==this.props.settings[0].doubleOptin&&this.props.settings[0].doubleOptin,onChange:e=>this.props.save({doubleOptin:e})}))))))}},Rc=/[\s#]/g;(0,l.addFilter)("kadence.actionOptions","kadence/formpro",function(e){return[{value:"email",label:(0,a.__)("Email","kadence-blocks-pro"),help:"",isDisabled:!1},{value:"redirect",label:(0,a.__)("Redirect","kadence-blocks-pro"),help:"",isDisabled:!1},{value:"autoEmail",label:(0,a.__)("Auto Respond Email","kadence-blocks-pro"),help:(0,a.__)("Send instant response to form entrant","kadence-blocks-pro"),isDisabled:!1},{value:"entry",label:(0,a.__)("Database Entry","kadence-blocks-pro"),help:(0,a.__)("Log each form submission","kadence-blocks-pro"),isDisabled:!1},{value:"mailerlite",label:(0,a.__)("Mailerlite","kadence-blocks-pro"),help:(0,a.__)("Add User to MailerLite list","kadence-blocks-pro"),isDisabled:!1},{value:"fluentCRM",label:(0,a.__)("FluentCRM","kadence-blocks-pro"),help:(0,a.__)("Add user to FluentCRM list","kadence-blocks-pro"),isDisabled:!1},{value:"sendinblue",label:(0,a.__)("Brevo (SendInBlue)","kadence-blocks-pro"),help:(0,a.__)("Add User to Brevo list","kadence-blocks-pro"),isDisabled:!1},{value:"mailchimp",label:(0,a.__)("MailChimp","kadence-blocks-pro"),help:(0,a.__)("Add User to MailChimp list","kadence-blocks-pro"),isDisabled:!1},{value:"webhook",label:(0,a.__)("WebHook","kadence-blocks-pro"),help:(0,a.__)("Send form information to any third party webhook","kadence-blocks-pro"),isDisabled:!1},{value:"activecampaign",label:(0,a.__)("Active Campaign","kadence-blocks-pro"),help:(0,a.__)("Add subscriber to Active Campaign","kadence-blocks-pro"),isDisabled:!1}]}),(0,l.addFilter)("kadence.formGeneralControls","kadence/addFormProGeneralControls",function(t,n){const{attributes:{autoEmail:i,actions:s,entry:l,uniqueID:c,sendinblue:d,mailchimp:u,fields:h,webhook:p,activecampaign:g},setAttributes:m}=n,f=e=>{const t=d.map((t,n)=>(0===n&&(t={...t,...e}),t));m({sendinblue:t})},b=e=>{let t=u;t||(t=[{list:[],groups:[],map:[]}]);const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));m({mailchimp:n})},v=e=>{let t=g;t||(t=[{list:[],groups:[],map:[]}]);const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));m({activecampaign:n})},y=e=>{const t=i.map((t,n)=>(0===n&&(t={...t,...e}),t));m({autoEmail:t})},k=e=>{const t=l.map((t,n)=>(0===n&&(t={...t,...e}),t));m({entry:t})},x=e=>{let t=p;t||(t=[{url:""}]);const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));m({webhook:n})};return(0,e.createElement)(o.Fragment,null,t,s.includes("autoEmail")&&(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Auto Response Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Email Subject","kadence-blocks-pro"),placeholder:(0,a.__)("Thanks for contacting us!","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].subject?i[0].subject:"",onChange:e=>y({subject:e})}),(0,e.createElement)(r.TextareaControl,{label:(0,a.__)("Email Message","kadence-blocks-pro"),placeholder:(0,a.__)("Thanks for getting in touch, we will respond within the next 24 hours.","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].message?i[0].message:"",onChange:e=>y({message:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("From Email","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].fromEmail?i[0].fromEmail:"",onChange:e=>y({fromEmail:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("From Name","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].fromName?i[0].fromName:"",onChange:e=>y({fromName:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Reply To","kadence-blocks-pro"),value:void 0!==i&&void 0!==i&&void 0!==i[0].replyTo?i[0].replyTo:"",onChange:e=>y({replyTo:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Cc","kadence-blocks-pro"),value:void 0!==i&&void 0!==i&&void 0!==i[0].cc?i[0].cc:"",onChange:e=>y({cc:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Bcc","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].bcc?i[0].bcc:"",onChange:e=>y({bcc:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Send as HTML email?","kadence-blocks-pro"),help:(0,a.__)("If off plain text is used.","kadence-blocks-pro"),checked:void 0===i||void 0===i[0].html||i[0].html,onChange:e=>y({html:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Override Email to Address","kadence-blocks-pro"),help:(0,a.__)("By default email is sent to the email field, you can use this to override.","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].emailTo?i[0].emailTo:"",onChange:e=>y({emailTo:e})})),s.includes("entry")&&(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Entry Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Form Name","kadence-blocks-pro"),value:void 0!==l[0].name?l[0].name:"",onChange:e=>k({name:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Save User IP Address","kadence-blocks-pro"),help:(0,a.__)("Saves the entrants IP address with the form data","kadence-blocks-pro"),checked:void 0===l[0].userIP||l[0].userIP,onChange:e=>k({userIP:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Save User Device","kadence-blocks-pro"),help:(0,a.__)("Saves the entrants device with form data","kadence-blocks-pro"),checked:void 0===l[0].userDevice||l[0].userDevice,onChange:e=>k({userDevice:e})})),s.includes("sendinblue")&&(0,e.createElement)(tc,{fields:h,settings:d,save:e=>f(e),saveMap:(e,t)=>((e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==d[0].map&&void 0!==d[0].map[o]?d[0].map[o]:"",i});f({map:n})})(e,t)}),s.includes("mailchimp")&&(0,e.createElement)(pc,{fields:h,settings:u,save:e=>b(e),saveMap:(e,t)=>((e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==u[0].map&&void 0!==u[0].map[o]?u[0].map[o]:"",i});b({map:n})})(e,t)}),s.includes("activecampaign")&&(0,e.createElement)(Tc,{fields:h,settings:g,save:e=>v(e),saveMap:(e,t)=>((e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==g[0].map&&void 0!==g[0].map[o]?g[0].map[o]:"",i});v({map:n})})(e,t)}),s.includes("webhook")&&(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Webhook Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Webhook URL","kadence-blocks-pro"),help:(0,a.__)("Enter the URL that will receive the form submitted data.","kadence-blocks-pro"),value:void 0!==p[0].url?p[0].url:"",onChange:e=>x({url:e})}),(0,e.createElement)(o.Fragment,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),h&&h.map((t,n)=>(0,e.createElement)("div",{key:n,className:"kb-field-map-item"},(0,e.createElement)("div",{className:"kb-field-map-item-form"},(0,e.createElement)("p",{className:"kb-field-map-item-label"},(0,a.__)("Form Field","kadence-blocks-pro")),(0,e.createElement)("p",{className:"kb-field-map-item-name"},t.label)),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Webhook Field Name","kadence-blocks-pro"),value:void 0!==p[0].map&&void 0!==p[0].map[n]&&p[0].map[n]?p[0].map[n]:"",onChange:e=>{((e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==p[0].map&&void 0!==p[0].map[o]?p[0].map[o]:"",i});x({map:n})})(e=e.replace(Rc,"-"),n)}}))))))});const Lc=(0,s.createHigherOrderComponent)(t=>n=>{if("kadence/form"===n.name&&n.isSelected){const{attributes:{autoEmail:i,actions:s,entry:l,uniqueID:c,sendinblue:d,mailchimp:u,fields:h,webhook:p,activecampaign:g},setAttributes:m}=n,f=e=>{const t=d.map((t,n)=>(0===n&&(t={...t,...e}),t));m({sendinblue:t})},b=(e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==d[0].map&&void 0!==d[0].map[o]?d[0].map[o]:"",i});f({map:n})},v=e=>{let t=u;t||(t=[{list:[],groups:[],map:[]}]);const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));m({mailchimp:n})},y=(e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==u[0].map&&void 0!==u[0].map[o]?u[0].map[o]:"",i});v({map:n})},k=e=>{let t=g;t||(t=[{list:[],groups:[],map:[]}]);const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));m({activecampaign:n})},x=(e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==g[0].map&&void 0!==g[0].map[o]?g[0].map[o]:"",i});k({map:n})},w=e=>{const t=i.map((t,n)=>(0===n&&(t={...t,...e}),t));m({autoEmail:t})},_=e=>{const t=l.map((t,n)=>(0===n&&(t={...t,...e}),t));m({entry:t})},C=e=>{let t=p;t||(t=[{url:""}]);const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));m({webhook:n})},S=(e,t)=>{const n=h.map((n,o)=>{let i="";return i=t===o?e:void 0!==p[0].map&&void 0!==p[0].map[o]?p[0].map[o]:"",i});C({map:n})},E=(0,e.createElement)(o.Fragment,null,s.includes("autoEmail")&&(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Auto Response Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Email Subject","kadence-blocks-pro"),placeholder:(0,a.__)("Thanks for contacting us!","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].subject?i[0].subject:"",onChange:e=>w({subject:e})}),(0,e.createElement)(r.TextareaControl,{label:(0,a.__)("Email Message","kadence-blocks-pro"),placeholder:(0,a.__)("Thanks for getting in touch, we will respond within the next 24 hours.","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].message?i[0].message:"",onChange:e=>w({message:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("From Email","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].fromEmail?i[0].fromEmail:"",onChange:e=>w({fromEmail:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("From Name","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].fromName?i[0].fromName:"",onChange:e=>w({fromName:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Reply To","kadence-blocks-pro"),value:void 0!==i&&void 0!==i&&void 0!==i[0].replyTo?i[0].replyTo:"",onChange:e=>w({replyTo:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Cc","kadence-blocks-pro"),value:void 0!==i&&void 0!==i&&void 0!==i[0].cc?i[0].cc:"",onChange:e=>w({cc:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Bcc","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].bcc?i[0].bcc:"",onChange:e=>w({bcc:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Send as HTML email?","kadence-blocks-pro"),help:(0,a.__)("If off plain text is used.","kadence-blocks-pro"),checked:void 0===i||void 0===i[0].html||i[0].html,onChange:e=>w({html:e})}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Override Email to Address","kadence-blocks-pro"),help:(0,a.__)("By default email is sent to the email field, you can use this to override.","kadence-blocks-pro"),value:void 0!==i&&void 0!==i[0].emailTo?i[0].emailTo:"",onChange:e=>w({emailTo:e})})),s.includes("entry")&&(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Entry Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Form Name","kadence-blocks-pro"),value:void 0!==l[0].name?l[0].name:"",onChange:e=>_({name:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Save User IP Address","kadence-blocks-pro"),help:(0,a.__)("Saves the entrants IP address with the form data","kadence-blocks-pro"),checked:void 0===l[0].userIP||l[0].userIP,onChange:e=>_({userIP:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Save User Device","kadence-blocks-pro"),help:(0,a.__)("Saves the entrants device with form data","kadence-blocks-pro"),checked:void 0===l[0].userDevice||l[0].userDevice,onChange:e=>_({userDevice:e})})),s.includes("sendinblue")&&(0,e.createElement)(tc,{fields:h,settings:d,save:e=>f(e),saveMap:(e,t)=>b(e,t)}),s.includes("mailchimp")&&(0,e.createElement)(pc,{fields:h,settings:u,save:e=>v(e),saveMap:(e,t)=>y(e,t)}),s.includes("activecampaign")&&(0,e.createElement)(Tc,{fields:h,settings:g,save:e=>k(e),saveMap:(e,t)=>x(e,t)}),s.includes("webhook")&&(0,e.createElement)(r.PanelBody,{title:(0,a.__)("Webhook Settings","kadence-blocks-pro"),initialOpen:!1},(0,e.createElement)(r.TextControl,{label:(0,a.__)("Webhook URL","kadence-blocks-pro"),help:(0,a.__)("Enter the URL that will receive the form submitted data.","kadence-blocks-pro"),value:void 0!==p[0].url?p[0].url:"",onChange:e=>C({url:e})}),(0,e.createElement)(o.Fragment,null,(0,e.createElement)("h2",{className:"kt-heading-size-title"},(0,a.__)("Map Fields","kadence-blocks-pro")),h&&h.map((t,n)=>(0,e.createElement)("div",{key:n,className:"kb-field-map-item"},(0,e.createElement)("div",{className:"kb-field-map-item-form"},(0,e.createElement)("p",{className:"kb-field-map-item-label"},(0,a.__)("Form Field","kadence-blocks-pro")),(0,e.createElement)("p",{className:"kb-field-map-item-name"},t.label)),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Webhook Field Name","kadence-blocks-pro"),value:void 0!==p[0].map&&void 0!==p[0].map[n]&&p[0].map[n]?p[0].map[n]:"",onChange:e=>{e=e.replace(Rc,"-"),S(e,n)}}))))));return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(t,{...n,proInspectorControlsContent:E}))}return(0,e.createElement)(t,{...n})},"withInspectorControl");(0,l.addFilter)("editor.BlockEdit","kadence/formpro",Lc);const Oc=["kadence/advanced-form-text","kadence/advanced-form-textarea","kadence/advanced-form-select","kadence/advanced-form-radio","kadence/advanced-form-file","kadence/advanced-form-time","kadence/advanced-form-date","kadence/advanced-form-telephone","kadence/advanced-form-checkbox","kadence/advanced-form-email","kadence/advanced-form-accept","kadence/advanced-form-number","kadence/advanced-form-hidden"];(0,a.__)("Default","kadence-blocks"),(0,a.__)("Name","kadence-blocks"),(0,a.__)("First Name","kadence-blocks"),(0,a.__)("Last Name","kadence-blocks"),(0,a.__)("Email","kadence-blocks"),(0,a.__)("Organization","kadence-blocks"),(0,a.__)("Street Address","kadence-blocks"),(0,a.__)("Address Line 1","kadence-blocks"),(0,a.__)("Address Line 2","kadence-blocks"),(0,a.__)("Country Name","kadence-blocks"),(0,a.__)("Postal Code","kadence-blocks"),(0,a.__)("Telephone","kadence-blocks"),(0,a.__)("Custom","kadence-blocks"),(0,a.__)("Off","kadence-blocks");const Dc=function e(t){if(Array.isArray(t)&&t.length){let n=[];return t.forEach(t=>{let o=[];Oc.includes(t.name)&&n.push({uniqueID:t?.attributes?.uniqueID||"",name:t?.attributes?.inputName||"",label:t?.attributes?.label||t?.name.replace("kadence/advanced-form-",""),type:t?.name.replace("kadence/advanced-form-","")||""}),void 0!==t.innerBlocks&&Array.isArray(t.innerBlocks)&&t.innerBlocks.length&&(o=e(t.innerBlocks)),n=[...n,...o]}),n}},Nc=(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",style:{paddingTop:"1px"},children:[(0,_.jsx)("rect",{width:"20",height:"16",fill:"#0073e6",rx:"3",ry:"3"}),(0,_.jsx)("text",{x:"50%",y:"57%",fontSize:"9",textAnchor:"middle",color:"#fff",children:"Pro"})]}),jc=(0,s.compose)([(0,c.withSelect)((e,t)=>{const n=void 0===t.initialOpen||t.initialOpen,o=(0,u.get)(t,["index"],"");return{isOpened:e("kadenceblocks/data").isEditorPanelOpened(t.panelName+o+e("core/block-editor").getSelectedBlockClientId(),n)}}),(0,c.withDispatch)((e,t,{select:n})=>{const{getSelectedBlockClientId:o}=n("core/block-editor"),i=void 0===t.initialOpen||t.initialOpen,r=(0,u.get)(t,["index"],"");return{toggleOpened:()=>{e("kadenceblocks/data").toggleEditorPanelOpened(t.panelName+r+o(),i)}}})])(function({children:e,title:t,initialOpen:n=!0,isOpened:o,toggleOpened:i,className:s="",icon:a="",buttonProps:l={},blockSlug:c=!1,index:d=!1,proTag:u=!1,panelName:p}){return!1===c||h(p,c)?(u&&(l.icon=Nc,l.iconPosition="right"),(0,_.jsx)(r.PanelBody,{title:t,initialOpen:n,onToggle:i,opened:o,className:s,icon:a,buttonProps:l,children:e})):null}),Ic=function({formInnerBlocks:e,parentClientId:t,settings:n,save:i}){const[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),[f,b]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[k,x]=(0,o.useState)(!1),[w,C]=(0,o.useState)(!1),[S,E]=(0,o.useState)(!1),M=(0,o.useMemo)(()=>Dc(e),[t]);(0,o.useEffect)(()=>{m()({path:"/wp/v2/settings",method:"GET"}).then(e=>{l(e.kadence_blocks_send_in_blue_api),""!==e.kadence_blocks_send_in_blue_api&&d(!0)})},[]);const $=Array.isArray(p)&&p.length>0,A=Array.isArray(w)&&w.length>0;return(0,_.jsxs)(jc,{title:(0,a.__)("Brevo (SendInBlue) Settings","kadence-blocks"),initialOpen:!1,children:[(0,_.jsx)("p",{children:(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)(r.ExternalLink,{href:"https://app.brevo.com/settings/keys/smtp",children:(0,a.__)("Get API Key","kadence-blocks")}),"| ",(0,_.jsx)(r.ExternalLink,{href:"https://help.brevo.com/hc/en-us/articles/209467485-What-s-an-API-key-and-how-can-I-get-mine-",children:(0,a.__)("Get help","kadence-blocks")})]})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("API Key (v3)","kadence-blocks"),value:s,onChange:e=>l(e)}),(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)(r.Button,{isPrimary:!0,onClick:()=>(h(!0),void new wp.api.models.Settings({kadence_blocks_send_in_blue_api:s}).save().then(e=>{h(!1),d(!0)})),disabled:""===s,children:u?(0,a.__)("Saving","kadence-blocks"):(0,a.__)("Save","kadence-blocks")}),""!==s&&(0,_.jsxs)(o.Fragment,{children:[" ",(0,_.jsx)(r.Button,{isSecondary:!0,onClick:()=>(l(""),void(c&&(h(!0),new wp.api.models.Settings({kadence_blocks_send_in_blue_api:""}).save().then(()=>{d(!1),h(!1)})))),children:(0,a.__)("Remove","kadence-blocks")})]})]}),c&&(0,_.jsxs)(o.Fragment,{children:[f&&(0,_.jsx)(r.Spinner,{}),!f&&!$&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Lists","kadence-blocks")}),v?"":(()=>{if(!s)return g([]),void y(!0);b(!0),m()({path:(0,W.addQueryArgs)("/kb-sendinblue/v1/get",{apikey:s,endpoint:"contacts/lists",queryargs:["limit=50","offset=0"]})}).then(e=>{const t=[];e.lists.map(e=>{t.push({value:e.id,label:e.name})}),g(t),y(!0),b(!1)}).catch(()=>{g([]),y(!0),b(!1)})})(),Array.isArray(p)?(0,a.__)("No list found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!f&&$&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Lists","kadence-blocks")}),(0,_.jsx)(vi,{value:n&&void 0!==n.lists?n.lists:"",onChange:e=>{i({lists:e||[]})},id:"snb-list-selection",options:p,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Lists")}),!n.lists&&(0,_.jsx)("div",{style:{height:"100px"}}),n.lists&&(0,_.jsxs)(o.Fragment,{children:[k&&(0,_.jsx)(r.Spinner,{}),!k&&!A&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),S?"":(()=>{if(!s){const e=[];return e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),C(e),void y(!0)}x(!0),m()({path:(0,W.addQueryArgs)("/kb-sendinblue/v1/get",{apikey:s,endpoint:"contacts/attributes"})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.attributes.map((e,n)=>{"normal"===e.category&&t.push({value:e.name,label:e.name})}),C(t),y(!0),x(!1)}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),C(e),E(!0),x(!1)})})(),Array.isArray(w)?(0,a.__)("No Fields found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!k&&A&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),M&&M.map((e,t)=>(0,_.jsxs)("div",{className:"kb-field-map-item",children:[(0,_.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,_.jsx)("p",{className:"kb-field-map-item-label",children:(0,a.__)("Form Field","kadence-blocks")}),(0,_.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Select Field:"),options:w,value:void 0!==n.map&&void 0!==n.map[e.uniqueID]&&n.map[e.uniqueID]?n.map[e.uniqueID]:"",onChange:t=>{((e,t)=>{const o={...n.map};o[t]=e,i({map:o})})(t,e.uniqueID)}})]},t))]})]})]})]})]})},zc=function({formInnerBlocks:e,parentClientId:t,settings:n,save:i}){const[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),[f,b]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[k,x]=(0,o.useState)(!1),[w,C]=(0,o.useState)(!1),[S,E]=(0,o.useState)(!1),[M,$]=(0,o.useState)(!1),[A,T]=(0,o.useState)(!1),[R,L]=(0,o.useState)(!1),[O,D]=(0,o.useState)(!1),[N,j]=(0,o.useState)(!1),[I,z]=(0,o.useState)(!1);(0,o.useEffect)(()=>{m()({path:"/wp/v2/settings",method:"GET"}).then(e=>{l(e.kadence_blocks_mail_chimp_api),""!==e.kadence_blocks_mail_chimp_api&&d(!0)})},[]);const F=(0,o.useMemo)(()=>Dc(e),[t]),B=Array.isArray(p)&&p.length>0,P=Array.isArray(w)&&w.length>0,H=Array.isArray(A)&&A.length>0,V=Array.isArray(N)&&N.length>0;return(0,_.jsxs)(jc,{title:(0,a.__)("MailChimp Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-mailchimp-settings",children:[(0,_.jsx)("p",{children:(0,_.jsx)(o.Fragment,{children:(0,_.jsx)(r.ExternalLink,{href:"https://mailchimp.com/help/about-api-keys/",children:(0,a.__)("Get help","kadence-blocks")})})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("API Key","kadence-blocks"),value:s,onChange:e=>l(e)}),(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)(r.Button,{isPrimary:!0,onClick:()=>(h(!0),void new wp.api.models.Settings({kadence_blocks_mail_chimp_api:s}).save().then(e=>{h(!1),d(!0)})),disabled:""===s,children:u?(0,a.__)("Saving","kadence-blocks"):(0,a.__)("Save","kadence-blocks")}),""!==s&&(0,_.jsxs)(o.Fragment,{children:[" ",(0,_.jsx)(r.Button,{isSecondary:!0,onClick:()=>(l(""),void(c&&(h(!0),new wp.api.models.Settings({kadence_blocks_mail_chimp_api:""}).save().then(()=>{d(!1),h(!1)})))),children:(0,a.__)("Remove","kadence-blocks")})]})]}),c&&(0,_.jsxs)(o.Fragment,{children:[f&&(0,_.jsx)(r.Spinner,{}),!f&&!B&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Audience","kadence-blocks")}),v?"":s&&s.split("-")[1]?(b(!0),void m()({path:(0,W.addQueryArgs)("/kb-mailchimp/v1/get",{apikey:s,endpoint:"lists/",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];e.lists.map(e=>{t.push({value:e.id,label:e.name})}),g(t),y(!0),b(!1)}).catch(e=>{g([]),y(!0),b(!1)})):(g([]),void y(!0)),Array.isArray(p)?(0,a.__)("No Audience found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!f&&B&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Audience","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.list?n.list:"",onChange:e=>{i({list:e||{}})},id:"mc-list-selection",isClearable:!0,options:p,isMulti:!1,maxMenuHeight:200,placeholder:(0,a.__)("Select Audience")}),(void 0===n||void 0===n||!n.list||!n.list.value)&&(0,_.jsx)("div",{style:{height:"100px"}}),void 0!==n&&void 0!==n&&n.list&&n.list.value&&(0,_.jsxs)(o.Fragment,{children:[M&&(0,_.jsx)(r.Spinner,{}),!M&&!H&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Groups","kadence-blocks")}),R?"":(()=>{if(!s||!n.list.value)return T([]),void L(!0);$(!0),m()({path:(0,W.addQueryArgs)("/kb-mailchimp/v1/get",{apikey:s,endpoint:"lists/"+n.list.value+"/interest-categories/",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.title})}),T(t),L(!0),$(!1)}).catch(()=>{T([]),L(!0),$(!1)})})(),Array.isArray(A)?(0,a.__)("No Groups found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!M&&H&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Groups","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.groups?n.groups:"",onChange:e=>{i({groups:e||[]})},id:"mc-group-selection",isClearable:!0,options:A,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Groups")})]}),O&&(0,_.jsx)(r.Spinner,{}),!O&&!V&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Tags","kadence-blocks")}),I?"":(()=>{if(!s||!n.list.value)return j([]),void z(!0);D(!0),m()({path:(0,W.addQueryArgs)("/kb-mailchimp/v1/get",{apikey:s,endpoint:"lists/"+n.list.value+"/tag-search/",queryargs:["count=500","offset=0"]})}).then(e=>{const t=[];e.tags&&e.tags.map(e=>{t.push({value:e.id,label:e.name})}),j(t),z(!0),D(!1)}).catch(()=>{j([]),z(!0),D(!1)})})(),Array.isArray(N)?(0,a.__)("No Tags found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!O&&V&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Tags","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.tags?n.tags:"",onChange:e=>{i({tags:e||[]})},id:"mc-tag-selection",isClearable:!0,options:N,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Tags")})]}),k&&(0,_.jsx)(r.Spinner,{}),!k&&!P&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),S?"":(()=>{if(!s||!n.list.value){const e=[];return e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),C(e),void E(!0)}x(!0),m()({path:(0,W.addQueryArgs)("/kb-mailchimp/v1/get",{apikey:s,endpoint:"lists/"+n.list.value+"/merge-fields/",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),e.merge_fields.map((e,n)=>{t.push({value:e.tag,label:e.name})}),C(t),E(!0),x(!1)}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:"Email *"}),C(e),E(!0),x(!1)})})(),Array.isArray(w)?(0,a.__)("No Fields found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!k&&P&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),F&&F.map((e,t)=>(0,_.jsxs)("div",{className:"kb-field-map-item",children:[(0,_.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,_.jsx)("p",{className:"kb-field-map-item-label",children:(0,a.__)("Form Field","kadence-blocks")}),(0,_.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Select Field:"),options:w,value:void 0!==n.map&&void 0!==n.map[e.uniqueID]&&n.map[e.uniqueID]?n.map[e.uniqueID]:"",onChange:t=>{((e,t)=>{const o={...n.map};o[t]=e,i({map:o})})(t,e.uniqueID)}})]},t))]}),(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Require Double Opt In?","kadence-blocks"),checked:void 0!==n&&void 0!==n&&void 0!==n.doubleOptin&&n.doubleOptin,onChange:e=>i({doubleOptin:e})})]})]})]})]})},Fc=function({formInnerBlocks:e,parentClientId:t,settings:n,save:i}){const[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),[f,b]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[k,x]=(0,o.useState)(!1),[w,C]=(0,o.useState)(!1),[S,E]=(0,o.useState)(!1),[M,$]=(0,o.useState)(!1),[A,T]=(0,o.useState)(!1),[R,L]=(0,o.useState)(!1),[O,D]=(0,o.useState)(!1),[N,j]=(0,o.useState)(!1),[I,z]=(0,o.useState)(!1);(0,o.useEffect)(()=>{m()({path:"/wp/v2/settings",method:"GET"}).then(e=>{l(e.kadence_blocks_convertkit_api),""!==e.kadence_blocks_convertkit_api&&d(!0)})},[]);const F=(0,o.useMemo)(()=>Dc(e),[t]),B=Array.isArray(p)&&p.length>0,P=Array.isArray(w)&&w.length>0,H=Array.isArray(A)&&A.length>0,V=Array.isArray(N)&&N.length>0;return(0,_.jsxs)(jc,{title:(0,a.__)("Kit (ConvertKit) Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-convertkit",children:[(0,_.jsx)("p",{children:(0,_.jsx)(r.ExternalLink,{href:"https://app.kit.com/account_settings/developer_settings",children:(0,a.__)("Get help","kadence-blocks")})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("API Key","kadence-blocks"),value:s,onChange:e=>l(e)}),(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)(r.Button,{isPrimary:!0,onClick:()=>(h(!0),void new wp.api.models.Settings({kadence_blocks_convertkit_api:s}).save().then(e=>{h(!1),d(!0)})),disabled:""===s,children:u?(0,a.__)("Saving","kadence-blocks"):(0,a.__)("Save","kadence-blocks")}),""!==s&&(0,_.jsxs)(o.Fragment,{children:[" ",(0,_.jsx)(r.Button,{isSecondary:!0,onClick:()=>(l(""),void(c&&(h(!0),new wp.api.models.Settings({kadence_blocks_convertkit_api:""}).save().then(()=>{d(!1),h(!1)})))),children:(0,a.__)("Remove","kadence-blocks")})]})]}),c&&(0,_.jsxs)(o.Fragment,{children:[f&&(0,_.jsx)(r.Spinner,{}),!f&&!B&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Form","kadence-blocks")}),v?"":(()=>{if(!s)return g([]),void y(!0);b(!0),m()({path:(0,W.addQueryArgs)("/kb-convertkit/v1/get",{endpoint:"forms"})}).then(e=>{const t=[];e.forms.map(e=>{t.push({value:e.id,label:e.name})}),g(t),y(!0),b(!1)}).catch(e=>{g([]),y(!0),b(!1)})})(),Array.isArray(p)?(0,a.__)("No forms found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!f&&B&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Form","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.form?n.form:"",onChange:e=>{i({form:e||[]})},id:"mc-list-selection",isClearable:!0,options:p,isMulti:!1,maxMenuHeight:200,placeholder:(0,a.__)("Select Form")}),(0,_.jsxs)(o.Fragment,{children:[M&&(0,_.jsx)(r.Spinner,{}),!M&&!H&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Sequence","kadence-blocks")}),R?"":($(!0),void m()({path:(0,W.addQueryArgs)("/kb-convertkit/v1/get",{endpoint:"sequences"})}).then(e=>{const t=[];e.courses.map(e=>{t.push({value:e.id,label:e.name})}),T(t),L(!0),$(!1)}).catch(()=>{T([]),L(!0),$(!1)})),Array.isArray(A)?(0,a.__)("No Sequences found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!M&&H&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Sequence","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.sequence?n.sequence:"",onChange:e=>{i({sequence:e||[]})},id:"mc-sequence-selection",isClearable:!0,options:A,maxMenuHeight:200,placeholder:(0,a.__)("Select Sequence")})]}),O&&(0,_.jsx)(r.Spinner,{}),!O&&!V&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Tags","kadence-blocks")}),I?"":(D(!0),void m()({path:(0,W.addQueryArgs)("/kb-convertkit/v1/get",{endpoint:"tags"})}).then(e=>{const t=[];e.tags&&e.tags.map(e=>{t.push({value:e.id,label:e.name})}),j(t),z(!0),D(!1)}).catch(()=>{j([]),z(!0),D(!1)})),Array.isArray(N)?(0,a.__)("No Tags found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!O&&V&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Tags","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.tags?n.tags:"",onChange:e=>{i({tags:e||[]})},id:"mc-tag-selection",isClearable:!0,options:N,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Tags")})]}),k&&(0,_.jsx)(r.Spinner,{}),!k&&!P&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),S?"":(x(!0),void m()({path:(0,W.addQueryArgs)("/kb-convertkit/v1/get",{endpoint:"custom_fields"})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:"Email *"}),t.push({value:"first_name",label:"First Name"}),e.custom_fields&&e.custom_fields.map(e=>{t.push({value:e.key,label:e.label})}),C(t),E(!0),x(!1)}).catch(e=>{C([]),E(!0),x(!1)})),Array.isArray(w)?(0,a.__)("No Fields found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!k&&P&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),F&&F.map((e,t)=>(0,_.jsxs)("div",{className:"kb-field-map-item",children:[(0,_.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,_.jsx)("p",{className:"kb-field-map-item-label",children:(0,a.__)("Form Field","kadence-blocks")}),(0,_.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Select Field:"),options:w,value:void 0!==n.map&&void 0!==n.map[e.uniqueID]&&n.map[e.uniqueID]?n.map[e.uniqueID]:"",onChange:t=>{((e,t)=>{const o={...n.map};o[t]=e,i({map:o})})(t,e.uniqueID)}})]},t))]})]})]})]})]})};class Bc extends o.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)()}toggle(){this.setState({open:!this.state.open})}render(){const{open:e}=this.state;return(0,_.jsxs)(_.Fragment,{children:[e&&(0,_.jsx)(r.Popover,{className:"kb-dynamic-popover",position:"bottom center",onClick:()=>{},expandOnMobile:!0,onClose:this.toggle,ref:this.popRef,children:(0,_.jsx)("div",{className:"kb-dynamic-popover-inner-wrap",children:(0,_.jsxs)("div",{className:"kb-tag-search-inner-wrap",children:[(0,_.jsx)(r.TextControl,{label:(0,a.__)("Search for Tag","kadence-blocks"),value:this.props.value,onChange:e=>{this.props.onChange(e)}}),(0,_.jsx)(r.Button,{className:"kb-tag-action-search",isPrimary:!0,icon:gc,onClick:()=>{this.props.onAction(),this.toggle},label:(0,a.__)("Search","kadence-blocks"),showTooltip:!0})]})})}),(0,_.jsx)(r.Button,{className:"kb-tag-search",icon:gc,onClick:this.toggle,isPressed:!!this.props.value,"aria-haspopup":"true","aria-expanded":e,label:(0,a.__)("Search","kadence-blocks"),showTooltip:!0})]})}}const Pc=Bc,Hc=function({formInnerBlocks:e,parentClientId:t,settings:n,save:i}){const[s,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!0),[p,g]=(0,o.useState)(""),[f,b]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[k,x]=(0,o.useState)(!1),[w,C]=(0,o.useState)(!1),[S,E]=(0,o.useState)(!1),[M,$]=(0,o.useState)(!1),[A,T]=(0,o.useState)(!1),[R,L]=(0,o.useState)(!1),[O,D]=(0,o.useState)(!1),[N,j]=(0,o.useState)(!1),[I,z]=(0,o.useState)(!1),[F,B]=(0,o.useState)(!1),[P,H]=(0,o.useState)(!1),[V,U]=(0,o.useState)(!1),[G,Z]=(0,o.useState)(""),[q,K]=(0,o.useState)(!1);(0,o.useEffect)(()=>{m()({path:"/wp/v2/settings",method:"GET"}).then(e=>{l(e.kadence_blocks_activecampaign_api_key),g(e.kadence_blocks_activecampaign_api_base),h(!1),""!==e.kadence_blocks_activecampaign_api_key&&""!==e.kadence_blocks_activecampaign_api_base&&(d(!0),b(!0))})},[]);const Y=(0,o.useMemo)(()=>Dc(e),[t]),X=()=>{H(!0),m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{endpoint:"tags",queryargs:["search="+G]})}).then(e=>{const t=[];e&&e.map(e=>{t.push({value:e.id,label:e.tag})}),U(t),K(!0),H(!1)}).catch(()=>{U([]),K(!0),H(!1)})},Q=Array.isArray(w)&&w.length>0,J=Array.isArray(R)&&R.length>0,ee=Array.isArray(I)&&I.length>0,te=Array.isArray(V)&&V.length>0,ne=void 0!==n.listMulti&&n.listMulti?n.listMulti:void 0!==n.list&&n.list?[n.list]:"";return(0,_.jsxs)(jc,{title:(0,a.__)("ActiveCampaign Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-activecampaign-settings",children:[(0,_.jsx)("p",{children:(0,_.jsx)(r.ExternalLink,{href:"https://help.activecampaign.com/hc/en-us/articles/207317590-Getting-started-with-the-API/",children:(0,a.__)("Get help","kadence-blocks")})}),u&&(0,_.jsx)(r.Spinner,{}),!u&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(kc,{label:(0,a.__)("API Key","kadence-blocks"),value:s,onChange:e=>(e=>{y(!0),m()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_activecampaign_api_key:e}}).then(()=>{l(e),y(!1),d(!0)})})(e),isSaving:v}),(0,_.jsx)(kc,{label:(0,a.__)("API URL","kadence-blocks"),value:p,obfuscate:!1,placeholder:"https://youaccount.api-us1.com",onChange:e=>(e=>{x(!0),m()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_activecampaign_api_base:e}}).then(()=>{g(e),x(!1),b(!0)})})(e),isSaving:k})]}),c&&f&&(0,_.jsxs)(_.Fragment,{children:[S&&(0,_.jsx)(r.Spinner,{}),!S&&!Q&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select List","kadence-blocks")}),M?"":(()=>{if(!s)return C([]),void $(!0);E(!0),m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{endpoint:"lists",queryargs:["limit=200"]})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.name})}),C(t),$(!0),E(!1)}).catch(e=>{C([]),$(!0),E(!1)})})(),Array.isArray(w)?(0,a.__)("No Lists found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!S&&Q&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)("span",{className:"kt-heading-size-title",children:(0,a.__)("Select List","kadence-blocks")}),(0,_.jsx)(vi,{value:ne,onChange:e=>{i({listMulti:e||[],list:{}})},id:"mc-list-selection",isClearable:!0,options:w,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select List","kadence-blocks")})]}),(0,_.jsxs)(_.Fragment,{children:[N&&(0,_.jsx)(r.Spinner,{}),!N&&!ee&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Automation (Optional)","kadence-blocks")}),F?"":(j(!0),void m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{endpoint:"automations"})}).then(e=>{const t=[];e.map(e=>{t.push({value:e.id,label:e.name})}),z(t),B(!0),j(!1)}).catch(e=>{z([]),B(!0),j(!1)})),Array.isArray(I)?(0,a.__)("No Groups found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!N&&ee&&(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)("span",{className:"kt-heading-size-title",children:(0,a.__)("Select Automation (Optional)","kadence-blocks")}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n&&void 0!==n.automation?n.automation:"",onChange:e=>{i({automation:e||[]})},id:"mc-automation-selection",isClearable:!0,options:I,maxMenuHeight:200,placeholder:(0,a.__)("Select Automation")})]})}),P&&(0,_.jsx)(r.Spinner,{}),!P&&!te&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Select Tags (Optional)","kadence-blocks")}),q?"":X(),Array.isArray(V)?(0,a.__)("No Tags found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!P&&te&&(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsxs)("div",{className:"kadence-select-tags-title-wrap",children:[(0,_.jsx)("span",{className:"kt-heading-size-title",children:(0,a.__)("Select Tags (Optional)","kadence-blocks")}),(0,_.jsx)(Pc,{value:G,onChange:e=>{Z(e)},onAction:()=>{X()}})]}),(0,_.jsx)(vi,{value:void 0!==n&&void 0!==n.tags?n.tags:"",onChange:e=>{i({tags:e||[]})},id:"mc-tag-selection",isClearable:!0,options:V,isMulti:!0,maxMenuHeight:200,placeholder:(0,a.__)("Select Tags")})]}),A&&(0,_.jsx)(r.Spinner,{}),!A&&!J&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),O?"":(T(!0),void m()({path:(0,W.addQueryArgs)("/kb-activecampaign/v1/get",{endpoint:"fields",queryargs:["count=300","offset=0"]})}).then(e=>{const t=[];t.push({value:null,label:"None"}),t.push({value:"email",label:(0,a.__)("Email","kadence-blocks")+" *"}),t.push({value:"firstName",label:(0,a.__)("First Name","kadence-blocks")}),t.push({value:"lastName",label:(0,a.__)("Last Name","kadence-blocks")}),t.push({value:"phone",label:(0,a.__)("Phone","kadence-blocks")}),t.push({value:"acct_name",label:(0,a.__)("Account","kadence-blocks")}),t.push({value:"contact_jobtitle",label:(0,a.__)("Job Title","kadence-blocks")}),e.map((e,n)=>{t.push({value:e.id,label:e.title})}),L(t),D(!0),T(!1)}).catch(()=>{const e=[];e.push({value:null,label:"None"}),e.push({value:"email",label:(0,a.__)("Email","kadence-blocks")+" *"}),e.push({value:"firstName",label:(0,a.__)("First Name","kadence-blocks")}),e.push({value:"lastName",label:(0,a.__)("Last Name","kadence-blocks")}),e.push({value:"phone",label:(0,a.__)("Phone","kadence-blocks")}),e.push({value:"acct_name",label:(0,a.__)("Account","kadence-blocks")}),e.push({value:"contact_jobtitle",label:(0,a.__)("Job Title","kadence-blocks")}),L(e),D(!0),T(!1)})),Array.isArray(R)?(0,a.__)("No Fields found.","kadence-blocks"):(0,_.jsx)(r.Spinner,{})]}),!A&&J&&(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)("span",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),Y&&Y.map((e,t)=>(0,_.jsxs)("div",{className:"kb-field-map-item",children:[(0,_.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,_.jsx)("p",{className:"kb-field-map-item-label",children:(0,a.__)("Form Field","kadence-blocks")}),(0,_.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Select Field:"),options:R,value:void 0!==n.map&&void 0!==n.map[e.uniqueID]&&n.map[e.uniqueID]?n.map[e.uniqueID]:"",onChange:t=>{((e,t)=>{const o={...n.map};o[t]=e,i({map:o})})(t,e.uniqueID)}})]},t))]})})]}),(0,_.jsx)("div",{style:{height:"10px"}}),(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Require Double Opt In?","kadence-blocks"),help:(0,a.__)("This will set the status of the contact to unconfirmed, you must setup an automation in ActiveCampaign to email the contact and update the status after confirmation.","kadence-blocks"),checked:void 0!==n.doubleOptin&&n.doubleOptin,onChange:e=>{i({doubleOptin:e})}})]})]})]})},Vc=function({formInnerBlocks:e,parentClientId:t,settings:n,save:i}){const s=(0,o.useMemo)(()=>Dc(e),[t]),l=/[\s#]/g;return(0,_.jsxs)(jc,{title:(0,a.__)("Webhook Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-webhook-settings",children:[(0,_.jsx)(r.TextControl,{label:(0,a.__)("Webhook URL","kadence-blocks"),help:(0,a.__)("Enter the URL that will receive the form submitted data.","kadence-blocks"),value:void 0!==n.url?n.url:"",onChange:e=>i({url:e})}),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h2",{className:"kt-heading-size-title",children:(0,a.__)("Map Fields","kadence-blocks")}),s&&s.map((e,t)=>(0,_.jsxs)("div",{className:"kb-field-map-item",children:[(0,_.jsxs)("div",{className:"kb-field-map-item-form",children:[(0,_.jsx)("p",{className:"kb-field-map-item-label",children:(0,a.__)("Form Field","kadence-blocks")}),(0,_.jsx)("p",{className:"kb-field-map-item-name",children:e.label})]}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("Webhook Field Name","kadence-blocks"),value:void 0!==n.map&&void 0!==n.map[e.uniqueID]&&n.map[e.uniqueID]?n.map[e.uniqueID]:"",onChange:t=>{((e,t)=>{const o={...n.map};o[t]=e,i({map:o})})(t=t.replace(l,"-"),e.uniqueID)}})]},t))]})]})},Wc=function({settings:e,save:t}){return(0,_.jsxs)(jc,{title:(0,a.__)("Auto Respond Email Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-auto-email-settings",children:[(0,_.jsx)(r.TextControl,{label:(0,a.__)("Email Subject","kadence-blocks"),placeholder:(0,a.__)("Thanks for contacting us!","kadence-blocks"),value:void 0!==e&&void 0!==e.subject?e.subject:"",onChange:e=>t({subject:e})}),(0,_.jsx)(r.TextareaControl,{label:(0,a.__)("Email Message","kadence-blocks"),placeholder:(0,a.__)("Thanks for getting in touch, we will respond within the next 24 hours.","kadence-blocks"),value:void 0!==e&&void 0!==e.message?e.message:"",onChange:e=>t({message:e})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("From Email","kadence-blocks"),value:void 0!==e&&void 0!==e.fromEmail?e.fromEmail:"",onChange:e=>t({fromEmail:e})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("From Name","kadence-blocks"),value:void 0!==e&&void 0!==e.fromName?e.fromName:"",onChange:e=>t({fromName:e})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("Reply To","kadence-blocks"),value:void 0!==e&&void 0!==e&&void 0!==e.replyTo?e.replyTo:"",onChange:e=>t({replyTo:e})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("Cc","kadence-blocks"),value:void 0!==e&&void 0!==e&&void 0!==e.cc?e.cc:"",onChange:e=>t({cc:e})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("Bcc","kadence-blocks"),value:void 0!==e&&void 0!==e.bcc?e.bcc:"",onChange:e=>t({bcc:e})}),(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Send as HTML email?","kadence-blocks"),help:(0,a.__)("If off, plain text is used.","kadence-blocks"),checked:void 0===e||void 0===e.html||e.html,onChange:e=>t({html:e})}),(0,_.jsx)(r.TextControl,{label:(0,a.__)("Override Email to Address","kadence-blocks"),help:(0,a.__)("By default email is sent to the email field, you can use this to override.","kadence-blocks"),value:void 0!==e&&void 0!==e.emailTo?e.emailTo:"",onChange:e=>t({emailTo:e})})]})},Uc=function({settings:e,save:t}){return(0,_.jsxs)(jc,{title:(0,a.__)("Database Entry Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-db-entry-settings",children:[(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Save User IP Address","kadence-blocks"),help:(0,a.__)("Saves the entrants IP address with the form data","kadence-blocks"),checked:void 0===e?.userIP||e.userIP,onChange:e=>t({userIP:e})}),(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Save User Device","kadence-blocks"),help:(0,a.__)("Saves the entrants device with form data","kadence-blocks"),checked:void 0===e?.userDevice||e.userDevice,onChange:e=>t({userDevice:e})})]})},Gc=function(t){const{attributes:{id:n,uniqueID:r},setAttributes:s,clientId:a,BlockEdit:l}=t,[c]=qc("_kad_form_actions"),[d]=qc("_kad_form_autoEmail"),[h]=qc("_kad_form_entry"),[p]=qc("_kad_form_convertkit"),[g]=qc("_kad_form_activecampaign"),[m]=qc("_kad_form_webhook"),[f]=qc("_kad_form_sendinblue"),[b]=qc("_kad_form_mailchimp"),[v]=qc("_kad_form_fields"),[y,k]=Zc("meta"),x=(e,t)=>{k({...y,["_kad_form_"+t]:e})},[w,_,C]=(0,ha.useEntityBlockEditor)("postType","kadence_form",n),S=(0,u.get)(w,[0,"innerBlocks"],[]);return(0,o.useEffect)(()=>{if(Array.isArray(S)&&S.length){const e=Dc(S);(0,u.isEqual)(v,e)||x(e,"fields")}},[S]),c?(0,e.createElement)(o.Fragment,null,(0,e.createElement)(l,{...t}),(0,e.createElement)(i.InspectorControls,null,c.includes("sendinblue")&&(0,e.createElement)(Ic,{parentClientId:a,formInnerBlocks:S,settings:f,save:e=>x({...f,...e},"sendinblue")}),c.includes("mailchimp")&&(0,e.createElement)(zc,{parentClientId:a,formInnerBlocks:S,settings:b,save:e=>x({...b,...e},"mailchimp")}),c.includes("convertkit")&&(0,e.createElement)(Fc,{parentClientId:a,formInnerBlocks:S,settings:p,save:e=>x({...p,...e},"convertkit")}),c.includes("activecampaign")&&(0,e.createElement)(Hc,{parentClientId:a,formInnerBlocks:S,settings:g,save:e=>x({...g,...e},"activecampaign")}),c.includes("webhook")&&(0,e.createElement)(Vc,{parentClientId:a,formInnerBlocks:S,settings:m,save:e=>x({...m,...e},"webhook")}),c.includes("autoEmail")&&(0,e.createElement)(Wc,{settings:d,save:e=>x({...d,...e},"autoEmail")}),c.includes("entry")&&(0,e.createElement)(Uc,{settings:h,save:e=>x({...h,...e},"entry")}))):(0,e.createElement)(l,{...t})};function Zc(e){return(0,ha.useEntityProp)("postType","kadence_form",e)}function qc(e){const[t,n]=Zc("meta");return[t[e],(0,o.useCallback)(o=>{n({...t,[e]:o})},[e,n])]}(0,l.addFilter)("kadence.actionOptionsAdvancedForm","kadence/advancedformpro",function(e){return[{value:"activecampaign",label:(0,a.__)("ActiveCampaign","kadence-blocks"),help:(0,a.__)("Add user to ActiveCampaign","kadence-blocks"),isDisabled:!1},{value:"autoEmail",label:(0,a.__)("Auto Respond Email","kadence-blocks"),help:(0,a.__)("Send instant response to form entrant","kadence-blocks"),isDisabled:!1},{value:"sendinblue",label:(0,a.__)("Brevo (SendInBlue)","kadence-blocks"),help:(0,a.__)("Add user to Brevo list","kadence-blocks"),isDisabled:!1},{value:"convertkit",label:(0,a.__)("Kit (ConvertKit)","kadence-blocks"),help:(0,a.__)("Add user to Kit","kadence-blocks"),isDisabled:!1},{value:"entry",label:(0,a.__)("Database Entry","kadence-blocks"),help:(0,a.__)("Log each form submission","kadence-blocks"),isDisabled:!1},{value:"email",label:(0,a.__)("Email","kadence-blocks"),help:"",isDisabled:!1},{value:"fluentCRM",label:(0,a.__)("FluentCRM","kadence-blocks"),help:(0,a.__)("Add User to FluentCRM list","kadence-blocks"),isDisabled:!1},{value:"getresponse",label:(0,a.__)("Get Response","kadence-blocks"),help:(0,a.__)("Add User to Get Response list","kadence-blocks"),isDisabled:!1},{value:"mailchimp",label:(0,a.__)("MailChimp","kadence-blocks"),help:(0,a.__)("Add user to MailChimp list","kadence-blocks"),isDisabled:!1},{value:"mailerlite",label:(0,a.__)("Mailerlite","kadence-blocks"),help:(0,a.__)("Add User to MailerLite list","kadence-blocks"),isDisabled:!1},{value:"redirect",label:(0,a.__)("Redirect","kadence-blocks"),help:"",isDisabled:!1},{value:"webhook",label:(0,a.__)("WebHook","kadence-blocks"),help:(0,a.__)("Send form information to any third party webhook","kadence-blocks"),isDisabled:!1}]}),(0,l.addFilter)("kadence.analyticsOptionAdvancedForm","kadence/advancedformpro",function(e){return!0}),(0,s.createHigherOrderComponent)(t=>n=>{if("kadence/advanced-form"===n.name&&n.isSelected){const{attributes:{id:o,uniqueID:i},setAttributes:r,clientId:s}=n;return(0,e.createElement)(ha.EntityProvider,{kind:"postType",type:"kadence_form",id:o},(0,e.createElement)(Gc,{...n,BlockEdit:t}))}return(0,e.createElement)(t,{...n})},"withInspectorControl"),(0,l.addFilter)("kadence.countdownTypes","kadence/countdownpro",function(e){return[{value:"date",label:(0,a.__)("Date","kadence-blocks-pro"),disabled:!1},{value:"evergreen",label:(0,a.__)("Evergreen","kadence-blocks-pro"),disabled:!1}]}),(0,l.addFilter)("kadence.countdownActions","kadence/countdownpro",function(e){return[{value:"none",label:(0,a.__)("Show Timer at Zero","kadence-blocks-pro"),disabled:!1},{value:"hide",label:(0,a.__)("Hide","kadence-blocks-pro"),disabled:!1},{value:"message",label:(0,a.__)("Replace with Content","kadence-blocks-pro"),disabled:!1},{value:"redirect",label:(0,a.__)("Redirect","kadence-blocks-pro"),disabled:!1}]});const Kc=window.wp.dom,Yc=window.wp.notices;function Xc(e,t,n,o){if("Mobile"===e){if(void 0!==o&&""!==o&&null!==o)return o;if(void 0!==n&&""!==n&&null!==n)return n}else if("Tablet"===e&&void 0!==n&&""!==n&&null!==n)return n;return void 0!==t?t:""}function Qc({label:e,desktopChildren:t,tabletChildren:n,mobileChildren:i,hasPadding:s=!1}){const[l,d]=(0,o.useState)("Desktop"),h=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);h!==l&&d(h);const{setPreviewDeviceType:p}=(0,c.useDispatch)("kadenceblocks/data"),g=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],m={};return m.Mobile=i,m.Tablet=n,m.Desktop=t,(0,_.jsxs)("div",{className:"components-base-control kb-small-responsive-control"+(s?" responsive-title-area-spacing":""),children:[(0,_.jsxs)("div",{className:"kadence-title-bar",children:[e&&(0,_.jsx)("span",{className:"kadence-control-title",children:e}),(0,_.jsx)(r.ButtonGroup,{className:"kb-small-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(g,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===l?" is-active":""}`,isSmall:!0,"aria-pressed":l===e,onClick:()=>{return p(kl(t=e)),void d(kl(t));var t},children:n},t))})]}),(0,_.jsx)("div",{className:"kb-small-measure-control-inner",children:m[l]?m[l]:m.Desktop})]})}function Jc({label:e,onChange:t,onChangeTablet:n,onChangeMobile:o,value:i,mobileValue:s,tabletValue:a,options:l,tabletOptions:c=l,mobileOptions:d=c}){return(0,_.jsx)(Qc,{label:e,desktopChildren:(0,_.jsx)(r.SelectControl,{value:i,options:l,onChange:e=>t(e)}),tabletChildren:(0,_.jsx)(r.SelectControl,{value:a,options:c,onChange:e=>n(e)}),mobileChildren:(0,_.jsx)(r.SelectControl,{value:s,options:d,onChange:e=>o(e)})})}function ed({label:e,onChange:t,value:n="",className:o="",step:i=1,max:s=100,min:a=0,beforeIcon:l="",help:c="",unit:d="",onUnit:u,showUnit:h=!1,units:p=["px","em","rem"]}){return[t&&(0,_.jsxs)("div",{className:"components-base-control kadence-range-control"+(o?" "+o:""),children:[e&&(0,_.jsx)("label",{className:"components-base-control__label",children:e}),(0,_.jsxs)("div",{className:"kadence-controls-content",children:[(0,_.jsx)("div",{className:"kadence-range-control-inner",children:(0,_.jsx)(r.RangeControl,{className:"kadence-range-control-range",beforeIcon:l,value:n,onChange:e=>t(e),min:a,max:s,step:i,help:c,allowReset:!0})}),(u||h)&&(0,_.jsx)("div",{className:"kadence-units kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{u&&u(e.target.value)},value:d,disabled:1===p.length,children:p.map(e=>(0,_.jsx)("option",{value:e,selected:d===e||void 0,children:e},e))})})]})]})]}function td({label:e,onChange:t,onChangeTablet:n,onChangeMobile:i,mobileValue:s,tabletValue:l,value:d,step:h=1,max:p=100,min:g=0,unit:m="",onUnit:f,showUnit:b=!1,units:v=["px","em","rem"],allowEmpty:y=!0,className:k="",reset:x}){const[w,C]=(0,o.useState)("Desktop"),S=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);S!==w&&C(S);const{setPreviewDeviceType:E}=(0,c.useDispatch)("kadenceblocks/data"),M=[{name:"Desktop",key:"desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",key:"tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],$={};return $.Mobile=(0,_.jsx)(ed,{value:void 0!==s?s:"",onChange:e=>i(e),min:g,max:p,step:h,unit:m,onUnit:f,showUnit:b,units:v}),$.Tablet=(0,_.jsx)(ed,{value:void 0!==l?l:"",onChange:e=>n(e),min:g,max:p,step:h,unit:m,onUnit:f,showUnit:b,units:v}),$.Desktop=(0,_.jsx)(ed,{value:void 0!==d?d:"",onChange:e=>t(e),min:g,max:p,step:h,unit:m,onUnit:f,showUnit:b,units:v}),[t&&n&&i&&(0,_.jsxs)("div",{className:"components-base-control kb-responsive-range-control"+(""!==k?" "+k:""),children:[(0,_.jsxs)("div",{className:"kadence-title-bar",children:[e&&(0,_.jsxs)("span",{className:"kadence-control-title",children:[e,x&&(0,_.jsx)(r.Button,{className:"is-reset is-single",isSmall:!0,disabled:!!(0,u.isEqual)("",d),icon:gl,onClick:()=>x()})]}),(0,_.jsx)(r.ButtonGroup,{className:"kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(M,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===w?" is-active":""}`,isSmall:!0,"aria-pressed":w===e,onClick:()=>{return E(kl(t=e)),void C(kl(t));var t},children:n},t))})]}),$[w]?$[w]:$.Desktop]})]}const nd=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 18 18",children:(0,_.jsx)("path",{fillRule:"nonzero",d:"M10.049 7.951A.615.615 0 009 8.385v7.377a.615.615 0 001.106.369l1.66-2.213h2.766a.614.614 0 00.435-1.05l-4.918-4.917zm.18 5.967V9.869l2.819 2.819h-1.589a.614.614 0 00-.492.246l-.738.984zM.394 4.082a2.458 2.458 0 012.459-2.458h12.294c1.358 0 2.459 1.1 2.459 2.458v6.147a2.46 2.46 0 01-1.431 2.235 1.86 1.86 0 00-.339-.465l-.548-.548a1.229 1.229 0 001.088-1.222V4.082c0-.679-.55-1.229-1.229-1.229H2.853c-.679 0-1.229.55-1.229 1.229v6.147c0 .679.55 1.23 1.229 1.23h4.918v1.229H2.853a2.46 2.46 0 01-2.459-2.459V4.082z"})}),od=(0,_.jsx)("svg",{height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",children:(0,_.jsx)("path",{fillRule:"nonzero",d:"M7.5 2C7.77614 2 8 2.22386 8 2.5V4.5C8 4.77614 7.77614 5 7.5 5C7.22386 5 7 4.77614 7 4.5V2.5C7 2.22386 7.22386 2 7.5 2ZM3.61091 3.61091C3.80618 3.41565 4.12276 3.41565 4.31802 3.61091L5.73223 5.02513C5.9275 5.22039 5.9275 5.53697 5.73223 5.73223C5.53697 5.92749 5.22039 5.92749 5.02513 5.73223L3.61091 4.31802C3.41565 4.12276 3.41565 3.80617 3.61091 3.61091ZM11.3891 3.61091C11.5843 3.80617 11.5843 4.12276 11.3891 4.31802L9.97487 5.73223C9.77961 5.9275 9.46303 5.9275 9.26777 5.73223C9.0725 5.53697 9.0725 5.22039 9.26777 5.02513L10.682 3.61091C10.8772 3.41565 11.1938 3.41565 11.3891 3.61091ZM2 7.5C2 7.22386 2.22386 7 2.5 7H4.5C4.77614 7 5 7.22386 5 7.5C5 7.77614 4.77614 8 4.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM8.64019 7.2993C7.98886 6.75653 7 7.21968 7 8.06752V17.1693C7 18.0926 8.14454 18.5227 8.75258 17.8278L10.7787 15.5122C11.0635 15.1867 11.475 15 11.9075 15H15.119C16.0543 15 16.4777 13.8305 15.7592 13.2318L8.64019 7.2993ZM8 17.1693L8 8.06752L15.119 14H11.9075C11.1866 14 10.5008 14.3112 10.0261 14.8537L8 17.1693Z"})});function id({label:e=(0,a.__)("Hover Styles","kadence-blocks-pro"),activeLabel:t=(0,a.__)("Active Styles","kadence-blocks-pro"),initial:n="normal",hoverTab:i=(0,a.__)("Hover","kadence-blocks-pro"),normalTab:s=(0,a.__)("Normal","kadence-blocks-pro"),activeTab:l=(0,a.__)("Active","kadence-blocks-pro"),active:c,hover:d,normal:u,className:h="",icon:p=nd,activeIcon:g=od,tabUI:m=!0,setActivePreview:f,activePreview:b}){const[v,y]=(0,o.useState)("hover"===n),[k,x]=(0,o.useState)("active"===n);var w=[{name:"normal",title:s,className:"kt-normal-tab"}];return d&&w.push({name:"hover",title:i,className:"kt-hover-tab"}),c&&w.push({name:"active",title:l,className:"kt-active-tab"}),m?[(0,_.jsx)("div",{className:"components-base-control kb-hover-toggle-control-tab-ui kb-hover-toggle-control"+(h?" "+h:""),children:(0,_.jsx)(r.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:w,children:e=>{if(e.name)return"hover"===e.name?(0,_.jsx)(_.Fragment,{children:d}):"active"===e.name?(0,_.jsxs)(_.Fragment,{children:[f&&(0,_.jsx)(r.Button,{className:"kb-hover-toggle-active-preview",isPressed:b,text:b?(0,a.__)("Hide Active State","kadence-blocks-pro"):(0,a.__)("Preview Active State","kadence-blocks-pro"),onClick:()=>{f(!b)},variant:"secondary"}),c]}):(0,_.jsx)(_.Fragment,{children:u})}})})]:[(0,_.jsxs)("div",{className:"components-base-control kb-hover-toggle-control"+(h?" "+h:""),children:[(0,_.jsxs)("div",{className:"kb-hover-toggle-control-toggle",children:[d&&(0,_.jsx)(r.Button,{className:"kb-hover-toggle-btn "+(bl?"is-rtl":""),isPrimary:v,icon:p,"aria-pressed":v,label:e,onClick:()=>{x(!1),y(!v)}}),c&&(0,_.jsx)(r.Button,{className:"kb-active-toggle-btn "+(bl?"is-rtl":""),isPrimary:k,icon:g,"aria-pressed":k,label:t,onClick:()=>{y(!1),x(!k)}})]}),(0,_.jsxs)("div",{className:"kb-hover-toggle-area",children:[v&&(0,_.jsx)("div",{className:"kb-hover-control-wrap",children:d}),k&&(0,_.jsx)("div",{className:"kb-active-control-wrap",children:c}),!v&&!k&&(0,_.jsx)(_.Fragment,{children:u})]})]})]}var rd=n(58527),sd={},ad=function(e,t,n,o){var i=e+"-"+t+"-"+n+(o?"-server":"");if(sd[i])return sd[i];var r=function(e,t,n,o){if("undefined"==typeof document&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=2*n,i.height=2*n;var r=i.getContext("2d");return r?(r.fillStyle=e,r.fillRect(0,0,i.width,i.height),r.fillStyle=t,r.fillRect(0,0,n,n),r.translate(n,n),r.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,o);return sd[i]=r,r},ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cd=function(n){var o=n.white,i=n.grey,r=n.size,s=n.renderers,a=n.borderRadius,l=n.boxShadow,c=n.children,d=(0,rd.default)({default:{grid:{borderRadius:a,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+ad(o,i,r,s.canvas)+") center left"}}});return(0,e.isValidElement)(c)?t().cloneElement(c,ld({},c.props,{style:ld({},c.props.style,d.grid)})):t().createElement("div",{style:d.grid})};cd.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const dd=cd;var ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hd=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function pd(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var gd=function(e){function n(){var e,t,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return t=o=pd(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(r))),o.handleChange=function(e){var t=function(e,t,n,o,i){var r=i.clientWidth,s=i.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=a-(i.getBoundingClientRect().left+window.pageXOffset),d=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var u;if(u=d<0?0:d>s?1:Math.round(100*d/s)/100,t.a!==u)return{h:t.h,s:t.s,l:t.l,a:u,source:"rgb"}}else{var h;if(o!==(h=c<0?0:c>r?1:Math.round(100*c/r)/100))return{h:t.h,s:t.s,l:t.l,a:h,source:"rgb"}}return null}(e,o.props.hsl,o.props.direction,o.props.a,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleChange),window.removeEventListener("mouseup",o.handleMouseUp)},pd(o,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),hd(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,n=this.props.rgb,o=(0,rd.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+n.r+","+n.g+","+n.b+", 0) 0%,\n rgba("+n.r+","+n.g+","+n.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*n.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+n.r+","+n.g+","+n.b+", 0) 0%,\n rgba("+n.r+","+n.g+","+n.b+", 1) 100%)"},pointer:{left:0,top:100*n.a+"%"}},overwrite:ud({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return t().createElement("div",{style:o.alpha},t().createElement("div",{style:o.checkboard},t().createElement(dd,{renderers:this.props.renderers})),t().createElement("div",{style:o.gradient}),t().createElement("div",{style:o.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t().createElement("div",{style:o.pointer},this.props.pointer?t().createElement(this.props.pointer,this.props):t().createElement("div",{style:o.slider}))))}}]),n}(e.PureComponent||e.Component);const md=gd;var fd=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),bd=[38,40],vd=1,yd=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleBlur=function(){t.state.blurValue&&t.setState({value:t.state.blurValue,blurValue:null})},t.handleChange=function(e){t.setUpdatedValue(e.target.value,e)},t.handleKeyDown=function(e){var n,o=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(o)&&(n=e.keyCode,bd.indexOf(n)>-1)){var i=t.getArrowOffset(),r=38===e.keyCode?o+i:o-i;t.setUpdatedValue(r,e)}},t.handleDrag=function(e){if(t.props.dragLabel){var n=Math.round(t.props.value+e.movementX);n>=0&&n<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(n),e)}},t.handleMouseDown=function(e){t.props.dragLabel&&(e.preventDefault(),t.handleDrag(e),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},t.inputId="rc-editable-input-"+vd++,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),fd(n,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,n=(0,rd.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t().createElement("div",{style:n.wrap},t().createElement("input",{id:this.inputId,style:n.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t().createElement("label",{htmlFor:this.inputId,style:n.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(e.PureComponent||e.Component);const kd=yd;var xd=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function wd(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _d=function(e){function n(){var e,t,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return t=o=wd(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(r))),o.handleChange=function(e){var t=function(e,t,n,o){var i=o.clientWidth,r=o.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,a="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(o.getBoundingClientRect().left+window.pageXOffset),c=a-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var d;if(d=c<0?359:c>r?0:360*(-100*c/r+100)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u;if(u=l<0?0:l>i?359:100*l/i*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,o.props.direction,o.props.hsl,o.container);t&&"function"==typeof o.props.onChange&&o.props.onChange(t,e)},o.handleMouseDown=function(e){o.handleChange(e),window.addEventListener("mousemove",o.handleChange),window.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},wd(o,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),xd(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.direction,o=void 0===n?"horizontal":n,i=(0,rd.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===o});return t().createElement("div",{style:i.hue},t().createElement("div",{className:"hue-"+o,style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t().createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),t().createElement("div",{style:i.pointer},this.props.pointer?t().createElement(this.props.pointer,this.props):t().createElement("div",{style:i.slider}))))}}]),n}(e.PureComponent||e.Component);const Cd=_d;var Sd=n(5556),Ed=n.n(Sd),Md=n(55364),$d=n.n(Md),Ad=function(e){var n=e.zDepth,o=e.radius,i=e.background,r=e.children,s=e.styles,a=void 0===s?{}:s,l=(0,rd.default)($d()({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+n+"px "+4*n+"px rgba(0,0,0,.24)",borderRadius:o,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},a),{"zDepth-1":1===n});return t().createElement("div",{style:l.wrap},t().createElement("div",{style:l.bg}),t().createElement("div",{style:l.content},r))};Ad.propTypes={background:Ed().string,zDepth:Ed().oneOf([0,1,2,3,4,5]),radius:Ed().number,styles:Ed().object},Ad.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const Td=Ad;var Rd=n(7350),Ld=n.n(Rd),Od=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Dd=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleChange=function(e){"function"==typeof t.props.onChange&&t.throttle(t.props.onChange,function(e,t,n){var o=n.getBoundingClientRect(),i=o.width,r=o.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,a="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=a-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),c<0?c=0:c>r&&(c=r);var d=l/i,u=1-c/r;return{h:t.h,s:d,v:u,a:t.a,source:"hsv"}}(e,t.props.hsl,t.container),e)},t.handleMouseDown=function(e){t.handleChange(e);var n=t.getContainerRenderWindow();n.addEventListener("mousemove",t.handleChange),n.addEventListener("mouseup",t.handleMouseUp)},t.handleMouseUp=function(){t.unbindEventListeners()},t.throttle=Ld()(function(e,t,n){e(t,n)},50),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),Od(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.style||{},o=n.color,i=n.white,r=n.black,s=n.pointer,a=n.circle,l=(0,rd.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:i,black:r,pointer:s,circle:a}},{custom:!!this.props.style});return t().createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t().createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),t().createElement("div",{style:l.white,className:"saturation-white"},t().createElement("div",{style:l.black,className:"saturation-black"}),t().createElement("div",{style:l.pointer},this.props.pointer?t().createElement(this.props.pointer,this.props):t().createElement("div",{style:l.circle}))))}}]),n}(e.PureComponent||e.Component);const Nd=Dd;var jd=n(76135),Id=n.n(jd);function zd(e){return zd="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},zd(e)}var Fd=/^\s+/,Bd=/\s+$/;function Pd(e,t){if(t=t||{},(e=e||"")instanceof Pd)return e;if(!(this instanceof Pd))return new Pd(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,o=null,i=null,r=null,s=!1,a=!1;return"string"==typeof e&&(e=function(e){e=e.replace(Fd,"").replace(Bd,"").toLowerCase();var t,n=!1;if(iu[e])e=iu[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=bu.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=bu.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=bu.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=bu.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=bu.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=bu.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=bu.hex8.exec(e))?{r:cu(t[1]),g:cu(t[2]),b:cu(t[3]),a:pu(t[4]),format:n?"name":"hex8"}:(t=bu.hex6.exec(e))?{r:cu(t[1]),g:cu(t[2]),b:cu(t[3]),format:n?"name":"hex"}:(t=bu.hex4.exec(e))?{r:cu(t[1]+""+t[1]),g:cu(t[2]+""+t[2]),b:cu(t[3]+""+t[3]),a:pu(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=bu.hex3.exec(e))&&{r:cu(t[1]+""+t[1]),g:cu(t[2]+""+t[2]),b:cu(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==zd(e)&&(vu(e.r)&&vu(e.g)&&vu(e.b)?(t=function(e,t,n){return{r:255*au(e,255),g:255*au(t,255),b:255*au(n,255)}}(e.r,e.g,e.b),s=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):vu(e.h)&&vu(e.s)&&vu(e.v)?(o=uu(e.s),i=uu(e.v),t=function(e,t,n){e=6*au(e,360),t=au(t,100),n=au(n,100);var o=Math.floor(e),i=e-o,r=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=o%6;return{r:255*[n,s,r,r,a,n][l],g:255*[a,n,n,s,r,r][l],b:255*[r,r,a,n,n,s][l]}}(e.h,o,i),s=!0,a="hsv"):vu(e.h)&&vu(e.s)&&vu(e.l)&&(o=uu(e.s),r=uu(e.l),t=function(e,t,n){var o,i,r;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=au(e,360),t=au(t,100),n=au(n,100),0===t)o=i=r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=s(l,a,e+1/3),i=s(l,a,e),r=s(l,a,e-1/3)}return{r:255*o,g:255*i,b:255*r}}(e.h,o,r),s=!0,a="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=su(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Hd(e,t,n){e=au(e,255),t=au(t,255),n=au(n,255);var o,i,r=Math.max(e,t,n),s=Math.min(e,t,n),a=(r+s)/2;if(r==s)o=i=0;else{var l=r-s;switch(i=a>.5?l/(2-r-s):l/(r+s),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:i,l:a}}function Vd(e,t,n){e=au(e,255),t=au(t,255),n=au(n,255);var o,i,r=Math.max(e,t,n),s=Math.min(e,t,n),a=r,l=r-s;if(i=0===r?0:l/r,r==s)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:i,v:a}}function Wd(e,t,n,o){var i=[du(Math.round(e).toString(16)),du(Math.round(t).toString(16)),du(Math.round(n).toString(16))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Ud(e,t,n,o){return[du(hu(o)),du(Math.round(e).toString(16)),du(Math.round(t).toString(16)),du(Math.round(n).toString(16))].join("")}function Gd(e,t){t=0===t?0:t||10;var n=Pd(e).toHsl();return n.s-=t/100,n.s=lu(n.s),Pd(n)}function Zd(e,t){t=0===t?0:t||10;var n=Pd(e).toHsl();return n.s+=t/100,n.s=lu(n.s),Pd(n)}function qd(e){return Pd(e).desaturate(100)}function Kd(e,t){t=0===t?0:t||10;var n=Pd(e).toHsl();return n.l+=t/100,n.l=lu(n.l),Pd(n)}function Yd(e,t){t=0===t?0:t||10;var n=Pd(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),Pd(n)}function Xd(e,t){t=0===t?0:t||10;var n=Pd(e).toHsl();return n.l-=t/100,n.l=lu(n.l),Pd(n)}function Qd(e,t){var n=Pd(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,Pd(n)}function Jd(e){var t=Pd(e).toHsl();return t.h=(t.h+180)%360,Pd(t)}function eu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Pd(e).toHsl(),o=[Pd(e)],i=360/t,r=1;r<t;r++)o.push(Pd({h:(n.h+r*i)%360,s:n.s,l:n.l}));return o}function tu(e){var t=Pd(e).toHsl(),n=t.h;return[Pd(e),Pd({h:(n+72)%360,s:t.s,l:t.l}),Pd({h:(n+216)%360,s:t.s,l:t.l})]}function nu(e,t,n){t=t||6,n=n||30;var o=Pd(e).toHsl(),i=360/n,r=[Pd(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,r.push(Pd(o));return r}function ou(e,t){t=t||6;for(var n=Pd(e).toHsv(),o=n.h,i=n.s,r=n.v,s=[],a=1/t;t--;)s.push(Pd({h:o,s:i,v:r})),r=(r+a)%1;return s}Pd.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=su(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Vd(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Vd(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=Hd(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Hd(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return Wd(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,i){var r=[du(Math.round(e).toString(16)),du(Math.round(t).toString(16)),du(Math.round(n).toString(16)),du(hu(o))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*au(this._r,255))+"%",g:Math.round(100*au(this._g,255))+"%",b:Math.round(100*au(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*au(this._r,255))+"%, "+Math.round(100*au(this._g,255))+"%, "+Math.round(100*au(this._b,255))+"%)":"rgba("+Math.round(100*au(this._r,255))+"%, "+Math.round(100*au(this._g,255))+"%, "+Math.round(100*au(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ru[Wd(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Ud(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=Pd(e);n="#"+Ud(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Pd(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Kd,arguments)},brighten:function(){return this._applyModification(Yd,arguments)},darken:function(){return this._applyModification(Xd,arguments)},desaturate:function(){return this._applyModification(Gd,arguments)},saturate:function(){return this._applyModification(Zd,arguments)},greyscale:function(){return this._applyModification(qd,arguments)},spin:function(){return this._applyModification(Qd,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(nu,arguments)},complement:function(){return this._applyCombination(Jd,arguments)},monochromatic:function(){return this._applyCombination(ou,arguments)},splitcomplement:function(){return this._applyCombination(tu,arguments)},triad:function(){return this._applyCombination(eu,[3])},tetrad:function(){return this._applyCombination(eu,[4])}},Pd.fromRatio=function(e,t){if("object"==zd(e)){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:uu(e[o]));e=n}return Pd(e,t)},Pd.equals=function(e,t){return!(!e||!t)&&Pd(e).toRgbString()==Pd(t).toRgbString()},Pd.random=function(){return Pd.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Pd.mix=function(e,t,n){n=0===n?0:n||50;var o=Pd(e).toRgb(),i=Pd(t).toRgb(),r=n/100;return Pd({r:(i.r-o.r)*r+o.r,g:(i.g-o.g)*r+o.g,b:(i.b-o.b)*r+o.b,a:(i.a-o.a)*r+o.a})},Pd.readability=function(e,t){var n=Pd(e),o=Pd(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},Pd.isReadable=function(e,t,n){var o,i,r,s,a,l=Pd.readability(e,t);switch(i=!1,"AA"!==(s=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(a=(r.size||"small").toLowerCase())&&"large"!==a&&(a="small"),(o={level:s,size:a}).level+o.size){case"AAsmall":case"AAAlarge":i=l>=4.5;break;case"AAlarge":i=l>=3;break;case"AAAsmall":i=l>=7}return i},Pd.mostReadable=function(e,t,n){var o,i,r,s,a=null,l=0;i=(n=n||{}).includeFallbackColors,r=n.level,s=n.size;for(var c=0;c<t.length;c++)(o=Pd.readability(e,t[c]))>l&&(l=o,a=Pd(t[c]));return Pd.isReadable(e,a,{level:r,size:s})||!i?a:(n.includeFallbackColors=!1,Pd.mostReadable(e,["#fff","#000"],n))};var iu=Pd.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ru=Pd.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(iu);function su(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function au(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function lu(e){return Math.min(1,Math.max(0,e))}function cu(e){return parseInt(e,16)}function du(e){return 1==e.length?"0"+e:""+e}function uu(e){return e<=1&&(e=100*e+"%"),e}function hu(e){return Math.round(255*parseFloat(e)).toString(16)}function pu(e){return cu(e)/255}var gu,mu,fu,bu=(mu="[\\s|\\(]+("+(gu="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+gu+")[,|\\s]+("+gu+")\\s*\\)?",fu="[\\s|\\(]+("+gu+")[,|\\s]+("+gu+")[,|\\s]+("+gu+")[,|\\s]+("+gu+")\\s*\\)?",{CSS_UNIT:new RegExp(gu),rgb:new RegExp("rgb"+mu),rgba:new RegExp("rgba"+fu),hsl:new RegExp("hsl"+mu),hsla:new RegExp("hsla"+fu),hsv:new RegExp("hsv"+mu),hsva:new RegExp("hsva"+fu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function vu(e){return!!bu.CSS_UNIT.exec(e)}var yu=function(e){var t=0,n=0;return Id()(["r","g","b","a","h","s","l","v"],function(o){e[o]&&(t+=1,isNaN(e[o])||(n+=1),"s"===o||"l"===o)&&/^\d+%$/.test(e[o])&&(n+=1)}),t===n&&e},ku=function(e,t){var n=e.hex?Pd(e.hex):Pd(e),o=n.toHsl(),i=n.toHsv(),r=n.toRgb(),s=n.toHex();return 0===o.s&&(o.h=t||0,i.h=t||0),{hsl:o,hex:"000000"===s&&0===r.a?"transparent":"#"+s,rgb:r,hsv:i,oldHue:e.h||t||o.h,source:e.source}},xu=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Pd(e).isValid()},wu=function(e){if(!e)return"#fff";var t=ku(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},_u=function(e,t){return Pd(t+" ("+e.replace("°","")+")")._ok},Cu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Su=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();const Eu=function(n){var o=function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t.handleChange=function(e,n){if(yu(e)){var o=ku(e,e.h||t.state.oldHue);t.setState(o),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,o,n),t.props.onChange&&t.props.onChange(o,n)}},t.handleSwatchHover=function(e,n){if(yu(e)){var o=ku(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(o,n)}},t.state=Cu({},ku(e.color,0)),t.debounce=fs()(function(e,t,n){e(t,n)},100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),Su(o,[{key:"render",value:function(){var e={};return this.props.onSwatchHover&&(e.onSwatchHover=this.handleSwatchHover),t().createElement(n,Cu({},this.props,this.state,{onChange:this.handleChange},e))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return Cu({},ku(e.color,t.oldHue))}}]),o}(e.PureComponent||e.Component);return o.propTypes=Cu({},n.propTypes),o.defaultProps=Cu({},n.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),o};var Mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function Au(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};const Ru=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(o){function i(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return t=n=Au(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(r))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Au(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,o),$u(i,[{key:"render",value:function(){return t().createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},t().createElement(e,Mu({},this.props,this.state)))}}]),i}(t().Component)}(function(e){var n=e.color,o=e.style,i=e.onClick,r=void 0===i?function(){}:i,s=e.onHover,a=e.title,l=void 0===a?n:a,c=e.children,d=e.focus,u=e.focusStyle,h=void 0===u?{}:u,p="transparent"===n,g=(0,rd.default)({default:{swatch:Tu({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},o,d?h:{})}}),m={};return s&&(m.onMouseOver=function(e){return s(n,e)}),t().createElement("div",Tu({style:g.swatch,onClick:function(e){return r(n,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&r(n,e)}},m),c,p&&t().createElement(dd,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Lu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ou=function(e){var n=e.rgb,o=e.hsl,i=e.width,r=e.height,s=e.onChange,a=e.direction,l=e.style,c=e.renderers,d=e.pointer,u=e.className,h=void 0===u?"":u,p=(0,rd.default)({default:{picker:{position:"relative",width:i,height:r},alpha:{radius:"2px",style:l}}});return t().createElement("div",{style:p.picker,className:"alpha-picker "+h},t().createElement(md,Lu({},p.alpha,{rgb:n,hsl:o,pointer:d,renderers:c,onChange:s,direction:a})))};Ou.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var n=e.direction,o=(0,rd.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===n});return t().createElement("div",{style:o.picker})}},Eu(Ou);var Du=n(55378),Nu=n.n(Du);const ju=function(e){var n=e.colors,o=e.onClick,i=e.onSwatchHover,r=(0,rd.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return t().createElement("div",{style:r.swatches},Nu()(n,function(e){return t().createElement(Ru,{key:e,color:e,style:r.swatch,onClick:o,onHover:i,focusStyle:{boxShadow:"0 0 4px "+e}})}),t().createElement("div",{style:r.clear}))};var Iu=function(e){var n=e.onChange,o=e.onSwatchHover,i=e.hex,r=e.colors,s=e.width,a=e.triangle,l=e.styles,c=void 0===l?{}:l,d=e.className,u=void 0===d?"":d,h="transparent"===i,p=function(e,t){xu(e)&&n({hex:e,source:"hex"},t)},g=(0,rd.default)($d()({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:wu(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},c),{"hide-triangle":"hide"===a});return t().createElement("div",{style:g.card,className:"block-picker "+u},t().createElement("div",{style:g.triangle}),t().createElement("div",{style:g.head},h&&t().createElement(dd,{borderRadius:"6px 6px 0 0"}),t().createElement("div",{style:g.label},i)),t().createElement("div",{style:g.body},t().createElement(ju,{colors:r,onClick:p,onSwatchHover:o}),t().createElement(kd,{style:{input:g.input},value:i,onChange:p})))};Iu.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),colors:Ed().arrayOf(Ed().string),triangle:Ed().oneOf(["top","hide"]),styles:Ed().object},Iu.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Eu(Iu);var zu="#ffcdd2",Fu="#e57373",Bu="#f44336",Pu="#d32f2f",Hu="#b71c1c",Vu="#f8bbd0",Wu="#f06292",Uu="#e91e63",Gu="#c2185b",Zu="#880e4f",qu="#e1bee7",Ku="#ba68c8",Yu="#9c27b0",Xu="#7b1fa2",Qu="#4a148c",Ju="#d1c4e9",eh="#9575cd",th="#673ab7",nh="#512da8",oh="#311b92",ih="#c5cae9",rh="#7986cb",sh="#3f51b5",ah="#303f9f",lh="#1a237e",ch="#bbdefb",dh="#64b5f6",uh="#2196f3",hh="#1976d2",ph="#0d47a1",gh="#b3e5fc",mh="#4fc3f7",fh="#03a9f4",bh="#0288d1",vh="#01579b",yh="#b2ebf2",kh="#4dd0e1",xh="#00bcd4",wh="#0097a7",_h="#006064",Ch="#b2dfdb",Sh="#4db6ac",Eh="#009688",Mh="#00796b",$h="#004d40",Ah="#c8e6c9",Th="#81c784",Rh="#4caf50",Lh="#388e3c",Oh="#dcedc8",Dh="#aed581",Nh="#8bc34a",jh="#689f38",Ih="#33691e",zh="#f0f4c3",Fh="#dce775",Bh="#cddc39",Ph="#afb42b",Hh="#827717",Vh="#fff9c4",Wh="#fff176",Uh="#ffeb3b",Gh="#fbc02d",Zh="#f57f17",qh="#ffecb3",Kh="#ffd54f",Yh="#ffc107",Xh="#ffa000",Qh="#ff6f00",Jh="#ffe0b2",ep="#ffb74d",tp="#ff9800",np="#f57c00",op="#e65100",ip="#ffccbc",rp="#ff8a65",sp="#ff5722",ap="#e64a19",lp="#bf360c",cp="#d7ccc8",dp="#a1887f",up="#795548",hp="#5d4037",pp="#3e2723",gp="#cfd8dc",mp="#90a4ae",fp="#607d8b",bp="#455a64",vp="#263238",yp=function(e){var n=e.color,o=e.onClick,i=e.onSwatchHover,r=e.hover,s=e.active,a=e.circleSize,l=e.circleSpacing,c=(0,rd.default)({default:{swatch:{width:a,height:a,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(a/2+1)+"px "+n,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+n}}},{hover:r,active:s});return t().createElement("div",{style:c.swatch},t().createElement(Ru,{style:c.Swatch,color:n,onClick:o,onHover:i,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+n}}))};yp.defaultProps={circleSize:28,circleSpacing:14};const kp=(0,rd.handleHover)(yp);var xp=function(e){var n=e.width,o=e.onChange,i=e.onSwatchHover,r=e.colors,s=e.hex,a=e.circleSize,l=e.styles,c=void 0===l?{}:l,d=e.circleSpacing,u=e.className,h=void 0===u?"":u,p=(0,rd.default)($d()({default:{card:{width:n,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},c)),g=function(e,t){return o({hex:e,source:"hex"},t)};return t().createElement("div",{style:p.card,className:"circle-picker "+h},Nu()(r,function(e){return t().createElement(kp,{key:e,color:e,onClick:g,onSwatchHover:i,active:s===e.toLowerCase(),circleSize:a,circleSpacing:d})}))};xp.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),circleSize:Ed().number,circleSpacing:Ed().number,styles:Ed().object},xp.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Bu,Uu,Yu,th,sh,uh,fh,xh,Eh,Rh,Nh,Bh,Uh,Yh,tp,sp,up,fp],styles:{}},Eu(xp);var _p=n(62216),Cp=n.n(_p),Sp=n(54657),Ep=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Mp=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.toggleViews=function(){"hex"===t.state.view?t.setState({view:"rgb"}):"rgb"===t.state.view?t.setState({view:"hsl"}):"hsl"===t.state.view&&(1===t.props.hsl.a?t.setState({view:"hex"}):t.setState({view:"rgb"}))},t.handleChange=function(e,n){e.hex?xu(e.hex)&&t.props.onChange({hex:e.hex,source:"hex"},n):e.r||e.g||e.b?t.props.onChange({r:e.r||t.props.rgb.r,g:e.g||t.props.rgb.g,b:e.b||t.props.rgb.b,source:"rgb"},n):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),t.props.onChange({h:t.props.hsl.h,s:t.props.hsl.s,l:t.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},n)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),t.props.onChange({h:e.h||t.props.hsl.h,s:Number(Cp()(e.s)?t.props.hsl.s:e.s),l:Number(Cp()(e.l)?t.props.hsl.l:e.l),source:"hsl"},n))},t.showHighlight=function(e){e.currentTarget.style.background="#eee"},t.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?t.state={view:"rgb"}:t.state={view:e.view},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),Ep(n,[{key:"render",value:function(){var e=this,n=(0,rd.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return"hex"===this.state.view?o=t().createElement("div",{style:n.fields,className:"flexbox-fix"},t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?o=t().createElement("div",{style:n.fields,className:"flexbox-fix"},t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),t().createElement("div",{style:n.alpha},t().createElement(kd,{style:{input:n.input,label:n.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(o=t().createElement("div",{style:n.fields,className:"flexbox-fix"},t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),t().createElement("div",{style:n.field},t().createElement(kd,{style:{input:n.input,label:n.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),t().createElement("div",{style:n.alpha},t().createElement(kd,{style:{input:n.input,label:n.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),t().createElement("div",{style:n.wrap,className:"flexbox-fix"},o,t().createElement("div",{style:n.toggle},t().createElement("div",{style:n.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},t().createElement(Sp.A,{style:n.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(t().Component);Mp.defaultProps={view:"hex"};const $p=Mp,Ap=function(){var e=(0,rd.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return t().createElement("div",{style:e.picker})},Tp=function(){var e=(0,rd.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return t().createElement("div",{style:e.picker})};var Rp=function(e){var n=e.width,o=e.onChange,i=e.disableAlpha,r=e.rgb,s=e.hsl,a=e.hsv,l=e.hex,c=e.renderers,d=e.styles,u=void 0===d?{}:d,h=e.className,p=void 0===h?"":h,g=e.defaultView,m=(0,rd.default)($d()({default:{picker:{width:n,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:i});return t().createElement("div",{style:m.picker,className:"chrome-picker "+p},t().createElement("div",{style:m.saturation},t().createElement(Nd,{style:m.Saturation,hsl:s,hsv:a,pointer:Tp,onChange:o})),t().createElement("div",{style:m.body},t().createElement("div",{style:m.controls,className:"flexbox-fix"},t().createElement("div",{style:m.color},t().createElement("div",{style:m.swatch},t().createElement("div",{style:m.active}),t().createElement(dd,{renderers:c}))),t().createElement("div",{style:m.toggles},t().createElement("div",{style:m.hue},t().createElement(Cd,{style:m.Hue,hsl:s,pointer:Ap,onChange:o})),t().createElement("div",{style:m.alpha},t().createElement(md,{style:m.Alpha,rgb:r,hsl:s,pointer:Ap,renderers:c,onChange:o})))),t().createElement($p,{rgb:r,hsl:s,hex:l,view:g,onChange:o,disableAlpha:i})))};Rp.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),disableAlpha:Ed().bool,styles:Ed().object,defaultView:Ed().oneOf(["hex","rgb","hsl"])},Rp.defaultProps={width:225,disableAlpha:!1,styles:{}},Eu(Rp);const Lp=function(e){var n=e.color,o=e.onClick,i=void 0===o?function(){}:o,r=e.onSwatchHover,s=e.active,a=(0,rd.default)({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:wu(n),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===n,transparent:"transparent"===n});return t().createElement(Ru,{style:a.color,color:n,onClick:i,onHover:r,focusStyle:{boxShadow:"0 0 4px "+n}},t().createElement("div",{style:a.dot}))},Op=function(e){var n=e.hex,o=e.rgb,i=e.onChange,r=(0,rd.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?i({r:e.r||o.r,g:e.g||o.g,b:e.b||o.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return t().createElement("div",{style:r.fields,className:"flexbox-fix"},t().createElement("div",{style:r.active}),t().createElement(kd,{style:{wrap:r.HEXwrap,input:r.HEXinput,label:r.HEXlabel},label:"hex",value:n,onChange:s}),t().createElement(kd,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"r",value:o.r,onChange:s}),t().createElement(kd,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"g",value:o.g,onChange:s}),t().createElement(kd,{style:{wrap:r.RGBwrap,input:r.RGBinput,label:r.RGBlabel},label:"b",value:o.b,onChange:s}))};var Dp=function(e){var n=e.onChange,o=e.onSwatchHover,i=e.colors,r=e.hex,s=e.rgb,a=e.styles,l=void 0===a?{}:a,c=e.className,d=void 0===c?"":c,u=(0,rd.default)($d()({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),h=function(e,t){e.hex?xu(e.hex)&&n({hex:e.hex,source:"hex"},t):n(e,t)};return t().createElement(Td,{style:u.Compact,styles:l},t().createElement("div",{style:u.compact,className:"compact-picker "+d},t().createElement("div",null,Nu()(i,function(e){return t().createElement(Lp,{key:e,color:e,active:e.toLowerCase()===r,onClick:h,onSwatchHover:o})}),t().createElement("div",{style:u.clear})),t().createElement(Op,{hex:r,rgb:s,onChange:h})))};Dp.propTypes={colors:Ed().arrayOf(Ed().string),styles:Ed().object},Dp.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Eu(Dp);const Np=(0,rd.handleHover)(function(e){var n=e.hover,o=e.color,i=e.onClick,r=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},a=(0,rd.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:n});return t().createElement("div",{style:a.swatch},t().createElement(Ru,{color:o,onClick:i,onHover:r,focusStyle:s}))});var jp=function(e){var n=e.width,o=e.colors,i=e.onChange,r=e.onSwatchHover,s=e.triangle,a=e.styles,l=void 0===a?{}:a,c=e.className,d=void 0===c?"":c,u=(0,rd.default)($d()({default:{card:{width:n,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),h=function(e,t){return i({hex:e,source:"hex"},t)};return t().createElement("div",{style:u.card,className:"github-picker "+d},t().createElement("div",{style:u.triangleShadow}),t().createElement("div",{style:u.triangle}),Nu()(o,function(e){return t().createElement(Np,{color:e,key:e,onClick:h,onSwatchHover:r})}))};jp.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),colors:Ed().arrayOf(Ed().string),triangle:Ed().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Ed().object},jp.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Eu(jp);var Ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zp=function(e){var n=e.width,o=e.height,i=e.onChange,r=e.hsl,s=e.direction,a=e.pointer,l=e.styles,c=void 0===l?{}:l,d=e.className,u=void 0===d?"":d,h=(0,rd.default)($d()({default:{picker:{position:"relative",width:n,height:o},hue:{radius:"2px"}}},c));return t().createElement("div",{style:h.picker,className:"hue-picker "+u},t().createElement(Cd,Ip({},h.hue,{hsl:r,pointer:a,onChange:function(e){return i({a:1,h:e.h,l:.5,s:1})},direction:s})))};zp.propTypes={styles:Ed().object},zp.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:function(e){var n=e.direction,o=(0,rd.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===n});return t().createElement("div",{style:o.picker})},styles:{}},Eu(zp),Eu(function(e){var n=e.onChange,o=e.hex,i=e.rgb,r=e.styles,s=void 0===r?{}:r,a=e.className,l=void 0===a?"":a,c=(0,rd.default)($d()({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+o,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},s)),d=function(e,t){e.hex?xu(e.hex)&&n({hex:e.hex,source:"hex"},t):(e.r||e.g||e.b)&&n({r:e.r||i.r,g:e.g||i.g,b:e.b||i.b,source:"rgb"},t)};return t().createElement(Td,{styles:s},t().createElement("div",{style:c.material,className:"material-picker "+l},t().createElement(kd,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:o,onChange:d}),t().createElement("div",{style:c.split,className:"flexbox-fix"},t().createElement("div",{style:c.third},t().createElement(kd,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:i.r,onChange:d})),t().createElement("div",{style:c.third},t().createElement(kd,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:i.g,onChange:d})),t().createElement("div",{style:c.third},t().createElement(kd,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:i.b,onChange:d})))))});const Fp=function(e){var n=e.onChange,o=e.rgb,i=e.hsv,r=e.hex,s=(0,rd.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),a=function(e,t){e["#"]?xu(e["#"])&&n({hex:e["#"],source:"hex"},t):e.r||e.g||e.b?n({r:e.r||o.r,g:e.g||o.g,b:e.b||o.b,source:"rgb"},t):(e.h||e.s||e.v)&&n({h:e.h||i.h,s:e.s||i.s,v:e.v||i.v,source:"hsv"},t)};return t().createElement("div",{style:s.fields},t().createElement(kd,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(i.h),onChange:a}),t().createElement(kd,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*i.s),onChange:a}),t().createElement(kd,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*i.v),onChange:a}),t().createElement("div",{style:s.divider}),t().createElement(kd,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:o.r,onChange:a}),t().createElement(kd,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:o.g,onChange:a}),t().createElement(kd,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:o.b,onChange:a}),t().createElement("div",{style:s.divider}),t().createElement(kd,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:r.replace("#",""),onChange:a}),t().createElement("div",{style:s.fieldSymbols},t().createElement("div",{style:s.symbol},"°"),t().createElement("div",{style:s.symbol},"%"),t().createElement("div",{style:s.symbol},"%")))},Bp=function(e){var n=e.hsl,o=(0,rd.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":n.l>.5});return t().createElement("div",{style:o.picker})},Pp=function(){var e=(0,rd.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return t().createElement("div",{style:e.pointer},t().createElement("div",{style:e.left},t().createElement("div",{style:e.leftInside})),t().createElement("div",{style:e.right},t().createElement("div",{style:e.rightInside})))},Hp=function(e){var n=e.onClick,o=e.label,i=e.children,r=e.active,s=(0,rd.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:r});return t().createElement("div",{style:s.button,onClick:n},o||i)},Vp=function(e){var n=e.rgb,o=e.currentColor,i=(0,rd.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:o,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return t().createElement("div",null,t().createElement("div",{style:i.label},"new"),t().createElement("div",{style:i.swatches},t().createElement("div",{style:i.new}),t().createElement("div",{style:i.current})),t().createElement("div",{style:i.label},"current"))};var Wp=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Up=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.state={currentColor:e.hex},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),Wp(n,[{key:"render",value:function(){var e=this.props,n=e.styles,o=void 0===n?{}:n,i=e.className,r=void 0===i?"":i,s=(0,rd.default)($d()({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return t().createElement("div",{style:s.picker,className:"photoshop-picker "+r},t().createElement("div",{style:s.head},this.props.header),t().createElement("div",{style:s.body,className:"flexbox-fix"},t().createElement("div",{style:s.saturation},t().createElement(Nd,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Bp,onChange:this.props.onChange})),t().createElement("div",{style:s.hue},t().createElement(Cd,{direction:"vertical",hsl:this.props.hsl,pointer:Pp,onChange:this.props.onChange})),t().createElement("div",{style:s.controls},t().createElement("div",{style:s.top,className:"flexbox-fix"},t().createElement("div",{style:s.previews},t().createElement(Vp,{rgb:this.props.rgb,currentColor:this.state.currentColor})),t().createElement("div",{style:s.actions},t().createElement(Hp,{label:"OK",onClick:this.props.onAccept,active:!0}),t().createElement(Hp,{label:"Cancel",onClick:this.props.onCancel}),t().createElement(Fp,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),n}(t().Component);Up.propTypes={header:Ed().string,styles:Ed().object},Up.defaultProps={header:"Color Picker",styles:{}},Eu(Up);const Gp=function(e){var n=e.onChange,o=e.rgb,i=e.hsl,r=e.hex,s=e.disableAlpha,a=(0,rd.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),l=function(e,t){e.hex?xu(e.hex)&&n({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n({r:e.r||o.r,g:e.g||o.g,b:e.b||o.b,a:o.a,source:"rgb"},t):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,n({h:i.h,s:i.s,l:i.l,a:e.a,source:"rgb"},t))};return t().createElement("div",{style:a.fields,className:"flexbox-fix"},t().createElement("div",{style:a.double},t().createElement(kd,{style:{input:a.input,label:a.label},label:"hex",value:r.replace("#",""),onChange:l})),t().createElement("div",{style:a.single},t().createElement(kd,{style:{input:a.input,label:a.label},label:"r",value:o.r,onChange:l,dragLabel:"true",dragMax:"255"})),t().createElement("div",{style:a.single},t().createElement(kd,{style:{input:a.input,label:a.label},label:"g",value:o.g,onChange:l,dragLabel:"true",dragMax:"255"})),t().createElement("div",{style:a.single},t().createElement(kd,{style:{input:a.input,label:a.label},label:"b",value:o.b,onChange:l,dragLabel:"true",dragMax:"255"})),t().createElement("div",{style:a.alpha},t().createElement(kd,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*o.a),onChange:l,dragLabel:"true",dragMax:"100"})))};var Zp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qp=function(e){var n=e.colors,o=e.onClick,i=void 0===o?function(){}:o,r=e.onSwatchHover,s=(0,rd.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!n||!n.length}),a=function(e,t){i({hex:e,source:"hex"},t)};return t().createElement("div",{style:s.colors,className:"flexbox-fix"},n.map(function(e){var n="string"==typeof e?{color:e}:e,o=""+n.color+(n.title||"");return t().createElement("div",{key:o,style:s.swatchWrap},t().createElement(Ru,Zp({},n,{style:s.swatch,onClick:a,onHover:r,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+n.color}})))}))};qp.propTypes={colors:Ed().arrayOf(Ed().oneOfType([Ed().string,Ed().shape({color:Ed().string,title:Ed().string})])).isRequired};const Kp=qp;var Yp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xp=function(e){var n=e.width,o=e.rgb,i=e.hex,r=e.hsv,s=e.hsl,a=e.onChange,l=e.onSwatchHover,c=e.disableAlpha,d=e.presetColors,u=e.renderers,h=e.styles,p=void 0===h?{}:h,g=e.className,m=void 0===g?"":g,f=(0,rd.default)($d()({default:Yp({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+o.r+","+o.g+","+o.b+","+o.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:c});return t().createElement("div",{style:f.picker,className:"sketch-picker "+m},t().createElement("div",{style:f.saturation},t().createElement(Nd,{style:f.Saturation,hsl:s,hsv:r,onChange:a})),t().createElement("div",{style:f.controls,className:"flexbox-fix"},t().createElement("div",{style:f.sliders},t().createElement("div",{style:f.hue},t().createElement(Cd,{style:f.Hue,hsl:s,onChange:a})),t().createElement("div",{style:f.alpha},t().createElement(md,{style:f.Alpha,rgb:o,hsl:s,renderers:u,onChange:a}))),t().createElement("div",{style:f.color},t().createElement(dd,null),t().createElement("div",{style:f.activeColor}))),t().createElement(Gp,{rgb:o,hsl:s,hex:i,onChange:a,disableAlpha:c}),t().createElement(Kp,{colors:d,onClick:a,onSwatchHover:l}))};Xp.propTypes={disableAlpha:Ed().bool,width:Ed().oneOfType([Ed().string,Ed().number]),styles:Ed().object},Xp.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Eu(Xp);const Qp=function(e){var n=e.hsl,o=e.offset,i=e.onClick,r=void 0===i?function(){}:i,s=e.active,a=e.first,l=e.last,c=(0,rd.default)({default:{swatch:{height:"12px",background:"hsl("+n.h+", 50%, "+100*o+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:a,last:l});return t().createElement("div",{style:c.swatch,onClick:function(e){return r({h:n.h,s:.5,l:o,source:"hsl"},e)}})},Jp=function(e){var n=e.onClick,o=e.hsl,i=(0,rd.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),r=.1;return t().createElement("div",{style:i.swatches},t().createElement("div",{style:i.swatch},t().createElement(Qp,{hsl:o,offset:".80",active:Math.abs(o.l-.8)<r&&Math.abs(o.s-.5)<r,onClick:n,first:!0})),t().createElement("div",{style:i.swatch},t().createElement(Qp,{hsl:o,offset:".65",active:Math.abs(o.l-.65)<r&&Math.abs(o.s-.5)<r,onClick:n})),t().createElement("div",{style:i.swatch},t().createElement(Qp,{hsl:o,offset:".50",active:Math.abs(o.l-.5)<r&&Math.abs(o.s-.5)<r,onClick:n})),t().createElement("div",{style:i.swatch},t().createElement(Qp,{hsl:o,offset:".35",active:Math.abs(o.l-.35)<r&&Math.abs(o.s-.5)<r,onClick:n})),t().createElement("div",{style:i.swatch},t().createElement(Qp,{hsl:o,offset:".20",active:Math.abs(o.l-.2)<r&&Math.abs(o.s-.5)<r,onClick:n,last:!0})),t().createElement("div",{style:i.clear}))};var eg=function(e){var n=e.hsl,o=e.onChange,i=e.pointer,r=e.styles,s=void 0===r?{}:r,a=e.className,l=void 0===a?"":a,c=(0,rd.default)($d()({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return t().createElement("div",{style:c.wrap||{},className:"slider-picker "+l},t().createElement("div",{style:c.hue},t().createElement(Cd,{style:c.Hue,hsl:n,pointer:i,onChange:o})),t().createElement("div",{style:c.swatches},t().createElement(Jp,{hsl:n,onClick:o})))};eg.propTypes={styles:Ed().object},eg.defaultProps={pointer:function(){var e=(0,rd.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return t().createElement("div",{style:e.picker})},styles:{}},Eu(eg);var tg=n(20748);const ng=function(e){var n=e.color,o=e.onClick,i=void 0===o?function(){}:o,r=e.onSwatchHover,s=e.first,a=e.last,l=e.active,c=(0,rd.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:wu(n),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:a,active:l,"color-#FFFFFF":"#FFFFFF"===n,transparent:"transparent"===n});return t().createElement(Ru,{color:n,style:c.color,onClick:i,onHover:r,focusStyle:{boxShadow:"0 0 4px "+n}},t().createElement("div",{style:c.check},t().createElement(tg.A,null)))},og=function(e){var n=e.onClick,o=e.onSwatchHover,i=e.group,r=e.active,s=(0,rd.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return t().createElement("div",{style:s.group},Nu()(i,function(e,s){return t().createElement(ng,{key:e,color:e,active:e.toLowerCase()===r,first:0===s,last:s===i.length-1,onClick:n,onSwatchHover:o})}))};var ig=function(e){var n=e.width,o=e.height,i=e.onChange,r=e.onSwatchHover,s=e.colors,a=e.hex,l=e.styles,c=void 0===l?{}:l,d=e.className,u=void 0===d?"":d,h=(0,rd.default)($d()({default:{picker:{width:n,height:o},overflow:{height:o,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),p=function(e,t){return i({hex:e,source:"hex"},t)};return t().createElement("div",{style:h.picker,className:"swatches-picker "+u},t().createElement(Td,null,t().createElement("div",{style:h.overflow},t().createElement("div",{style:h.body},Nu()(s,function(e){return t().createElement(og,{key:e.toString(),group:e,active:a,onClick:p,onSwatchHover:r})}),t().createElement("div",{style:h.clear})))))};ig.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),height:Ed().oneOfType([Ed().string,Ed().number]),colors:Ed().arrayOf(Ed().arrayOf(Ed().string)),styles:Ed().object},ig.defaultProps={width:320,height:240,colors:[[Hu,Pu,Bu,Fu,zu],[Zu,Gu,Uu,Wu,Vu],[Qu,Xu,Yu,Ku,qu],[oh,nh,th,eh,Ju],[lh,ah,sh,rh,ih],[ph,hh,uh,dh,ch],[vh,bh,fh,mh,gh],[_h,wh,xh,kh,yh],[$h,Mh,Eh,Sh,Ch],["#194D33",Lh,Rh,Th,Ah],[Ih,jh,Nh,Dh,Oh],[Hh,Ph,Bh,Fh,zh],[Zh,Gh,Uh,Wh,Vh],[Qh,Xh,Yh,Kh,qh],[op,np,tp,ep,Jh],[lp,ap,sp,rp,ip],[pp,hp,up,dp,cp],[vp,bp,fp,mp,gp],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Eu(ig);var rg=function(e){var n=e.onChange,o=e.onSwatchHover,i=e.hex,r=e.colors,s=e.width,a=e.triangle,l=e.styles,c=void 0===l?{}:l,d=e.className,u=void 0===d?"":d,h=(0,rd.default)($d()({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a}),p=function(e,t){xu(e)&&n({hex:e,source:"hex"},t)};return t().createElement("div",{style:h.card,className:"twitter-picker "+u},t().createElement("div",{style:h.triangleShadow}),t().createElement("div",{style:h.triangle}),t().createElement("div",{style:h.body},Nu()(r,function(e,n){return t().createElement(Ru,{key:n,color:e,hex:e,style:h.swatch,onClick:p,onHover:o,focusStyle:{boxShadow:"0 0 4px "+e}})}),t().createElement("div",{style:h.hash},"#"),t().createElement(kd,{label:null,style:{input:h.input},value:i.replace("#",""),onChange:p}),t().createElement("div",{style:h.clear})))};rg.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),triangle:Ed().oneOf(["hide","top-left","top-right"]),colors:Ed().arrayOf(Ed().string),styles:Ed().object},rg.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Eu(rg);var sg=function(e){var n=(0,rd.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return t().createElement("div",{style:n.picker})};sg.propTypes={hsl:Ed().shape({h:Ed().number,s:Ed().number,l:Ed().number,a:Ed().number})},sg.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const ag=sg;var lg=function(e){var n=(0,rd.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return t().createElement("div",{style:n.picker})};lg.propTypes={hsl:Ed().shape({h:Ed().number,s:Ed().number,l:Ed().number,a:Ed().number})},lg.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const cg=lg,dg=function(e){var n=e.onChange,o=e.rgb,i=e.hsl,r=e.hex,s=e.hsv,a=function(e,t){if(e.hex)xu(e.hex)&&n({hex:e.hex,source:"hex"},t);else if(e.rgb){var o=e.rgb.split(",");_u(e.rgb,"rgb")&&n({r:o[0],g:o[1],b:o[2],a:1,source:"rgb"},t)}else if(e.hsv){var i=e.hsv.split(",");_u(e.hsv,"hsv")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("°",""),1==i[1]?i[1]=.01:1==i[2]&&(i[2]=.01),n({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsv"},t))}else if(e.hsl){var r=e.hsl.split(",");_u(e.hsl,"hsl")&&(r[2]=r[2].replace("%",""),r[1]=r[1].replace("%",""),r[0]=r[0].replace("°",""),1==u[1]?u[1]=.01:1==u[2]&&(u[2]=.01),n({h:Number(r[0]),s:Number(r[1]),v:Number(r[2]),source:"hsl"},t))}},l=(0,rd.default)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=o.r+", "+o.g+", "+o.b,d=Math.round(i.h)+"°, "+Math.round(100*i.s)+"%, "+Math.round(100*i.l)+"%",u=Math.round(s.h)+"°, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return t().createElement("div",{style:l.wrap,className:"flexbox-fix"},t().createElement("div",{style:l.fields},t().createElement("div",{style:l.double},t().createElement(kd,{style:{input:l.input,label:l.label},label:"hex",value:r,onChange:a})),t().createElement("div",{style:l.column},t().createElement("div",{style:l.single},t().createElement(kd,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:a})),t().createElement("div",{style:l.single},t().createElement(kd,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:a})),t().createElement("div",{style:l.single},t().createElement(kd,{style:{input:l.input2,label:l.label2},label:"hsl",value:d,onChange:a})))))};var ug=function(e){var n=e.width,o=e.onChange,i=e.rgb,r=e.hsl,s=e.hsv,a=e.hex,l=e.header,c=e.styles,d=void 0===c?{}:c,u=e.className,h=void 0===u?"":u,p=(0,rd.default)($d()({default:{picker:{width:n,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},d));return t().createElement("div",{style:p.picker,className:"google-picker "+h},t().createElement("div",{style:p.head},l),t().createElement("div",{style:p.swatch}),t().createElement("div",{style:p.saturation},t().createElement(Nd,{hsl:r,hsv:s,pointer:ag,onChange:o})),t().createElement("div",{style:p.body},t().createElement("div",{style:p.controls,className:"flexbox-fix"},t().createElement("div",{style:p.hue},t().createElement(Cd,{style:p.Hue,hsl:r,radius:"4px",pointer:cg,onChange:o}))),t().createElement(dg,{rgb:i,hsl:r,hex:a,hsv:s,onChange:o})))};ug.propTypes={width:Ed().oneOfType([Ed().string,Ed().number]),styles:Ed().object,header:Ed().string},ug.defaultProps={width:652,styles:{},header:"Color picker"},Eu(ug);var hg=n(2825),pg=n(46617),gg=n(29537),mg=n(26195);class fg extends o.Component{constructor(e){super(e),this.toggleViews=this.toggleViews.bind(this),this.handleChange=this.handleChange.bind(this),this.state={view:"rgb"}}toggleViews(){"hsl"===this.state.view?this.setState({view:"rgb"}):"rgb"===this.state.view&&this.setState({view:"hsl"})}handleChange(e,t){e.hex&&(0,mg.isValidHex)(e.hex)?this.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?this.props.onChange({r:e.r||this.props.rgb.r,g:e.g||this.props.rgb.g,b:e.b||this.props.rgb.b,a:this.props.rgb.a,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),this.props.onChange({h:this.props.hsl.h,s:this.props.hsl.s,l:this.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&(e.l=e.l.replace("%","")),this.props.onChange({h:e.h||this.props.hsl.h||0,s:Number(e.s&&e.s/100||this.props.hsl.s||0),l:Number(e.l&&e.l/100||this.props.hsl.l||0),a:Math.round(100*e.a)/100||this.props.rgb.a||1,source:"hsl"},t))}render(){const e={fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"100%",padding:"4px 10% 3px",border:"none",borderRadius:"2px",boxShadow:"rgb(218, 218, 218) 0px 0px 0px 1px inset",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"},toggle:{width:"32px",textAlign:"right",position:"relative"}};return(0,_.jsxs)("div",{style:e.fields,className:"flexbox-fix",children:[(0,_.jsx)("div",{style:e.double,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"hex",value:this.props.hex.replace("#",""),onChange:this.handleChange})}),"rgb"===this.state.view&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("div",{style:e.single,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange,dragLabel:"true",dragMax:"255"})}),(0,_.jsx)("div",{style:e.single,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange,dragLabel:"true",dragMax:"255"})}),(0,_.jsx)("div",{style:e.single,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange,dragLabel:"true",dragMax:"255"})}),(0,_.jsx)("div",{style:e.alpha,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange})})]}),"hsl"===this.state.view&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("div",{style:e.single,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange,dragLabel:"true",dragMax:"359"})}),(0,_.jsx)("div",{style:e.single,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"s",value:`${Math.round(100*this.props.hsl.s)}`,onChange:this.handleChange})}),(0,_.jsx)("div",{style:e.single,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"l",value:`${Math.round(100*this.props.hsl.l)}`,onChange:this.handleChange})}),(0,_.jsx)("div",{style:e.alpha,children:(0,_.jsx)(hg.jc,{style:{input:e.input,label:e.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})})]}),(0,_.jsx)("div",{style:e.toggle,children:(0,_.jsxs)("div",{className:"toggle-icons",style:e.icon,onClick:this.toggleViews,ref:e=>this.icon=e,children:[(0,_.jsx)(r.Dashicon,{icon:"arrow-up-alt2"}),(0,_.jsx)(r.Dashicon,{icon:"arrow-down-alt2"})]})})]})}}const bg=fg,vg=Eu(({rgb:e,hex:t,hsv:n,hsl:o,onChange:i,renderers:r})=>{const s={picker:{width:300,position:"relative",marginBottom:10},hue:{height:10,position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"},input:{height:34,border:`1px solid ${t}`,paddingLeft:10},body:{padding:"10px 0"},controls:{display:"flex"},color:{width:"30px",height:"30px",position:"relative",marginTop:"3px",marginLeft:"10px",borderRadius:"50%",overflow:"hidden"},activeColor:{position:"absolute",left:0,right:0,top:0,bottom:0,borderRadius:"50%",background:`rgba(${e.r},${e.g},${e.b},${e.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)"},swatch:{width:54,height:38,background:t},sliders:{padding:"4px 0",flex:"1"},saturation:{width:"100%",paddingBottom:"50%",position:"relative",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}};return(0,_.jsxs)("div",{style:s.picker,className:"kadence-picker",children:[(0,_.jsx)("div",{style:s.saturation,children:(0,_.jsx)(hg.VI,{style:s.Saturation,hsl:o,hsv:n,pointer:pg.uy,onChange:i})}),(0,_.jsx)("div",{style:s.body,children:(0,_.jsxs)("div",{style:s.controls,className:"flexbox-fix",children:[(0,_.jsxs)("div",{style:s.sliders,children:[(0,_.jsx)("div",{style:s.hue,children:(0,_.jsx)(hg.RG,{style:s.Hue,hsl:o,onChange:i,pointer:gg.o$})}),(0,_.jsx)("div",{style:s.alpha,children:(0,_.jsx)(hg.ry,{style:s.Alpha,rgb:e,hsl:o,renderers:r,pointer:gg.o$,onChange:i})})]}),(0,_.jsxs)("div",{style:s.color,children:[(0,_.jsx)(hg.xu,{}),(0,_.jsx)("div",{style:s.activeColor})]})]})}),(0,_.jsx)(bg,{rgb:e,hsl:o,hex:t,onChange:i})]})}),yg=(e,t)=>null===e?"":(e.indexOf("var(")>-1&&(e=window.getComputedStyle(document.documentElement).getPropertyValue(e.replace("var(","").replace(")",""))||"#fff"),e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")");function kg(e){let t=100;return e&&(t=100*e),t}function xg({label:e,alpha:t=!0,opacityValue:n="",opacityUnit:s="",onOpacityChange:l=null,value:c,onChange:d,reload:h,reloaded:p,defaultValue:g,onClassChange:m,onArrayChange:f=null,disableCustomColors:b=!1}){const[v,y]=(0,o.useState)(!1),[k,x]=(0,o.useState)(""),[w,C]=(0,o.useState)(""!==n?n:1),[S,E]=(0,o.useState)(!(!c||!c.startsWith("palette"))),M=(0,i.useSetting)("color.palette"),$=(0,o.useMemo)(()=>{if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.colors)try{return JSON.parse(kadence_blocks_params.colors)}catch(e){return{palette:[],override:!1}}return{palette:[],override:!1}},[]),A=(0,o.useMemo)(()=>M&&Array.isArray(M)?!0===$.override?M.filter(e=>e.slug&&e.slug.startsWith("kb-palette")):M:[],[M,$.override]),T=()=>{y(!0)};h&&(p(!0),setTimeout(()=>{x(""),C(""),E(!1)},100));const R=100===s?(e=>{let t=1;return e&&(t=e/100),t})(w):w,L=k||c,O=S&&A&&L?L.match(/\d+$/)?.[0]-1:null;let D=null!==O&&A[O]?A[O].color:L;if(!S&&D&&D.startsWith("var(")&&(D=window.getComputedStyle(document.documentElement).getPropertyValue(c.replace("var(","").split(",")[0].replace(")",""))),D&&D.startsWith("var(")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(D.replace("var(","").replace(" ","").replace(")",""));""===e&&(e=window.getComputedStyle(document.documentElement).getPropertyValue(D.replace("var(","").replace(" ","").split(",")[0].replace(")",""))),D=e}""===D&&(D=g),l&&!S&&1!==Number(void 0!==R&&""!==R?R:1)&&(D=yg(void 0===D?"":D,void 0!==R&&""!==R?R:1));let N=D;if(S&&L)switch(L){case"palette1":N="var(--global-palette1,#2B6CB0)";break;case"palette2":N="var(--global-palette2,#215387)";break;case"palette3":N="var(--global-palette3,#1A202C)";break;case"palette4":N="var(--global-palette4,#2D3748)";break;case"palette5":N="var(--global-palette5,#4A5568)";break;case"palette6":N="var(--global-palette6,#718096)";break;case"palette7":N="var(--global-palette7,#EDF2F7)";break;case"palette8":N="var(--global-palette8,#F7FAFC)";break;case"palette9":N="var(--global-palette9,#ffffff)"}const j=(e,t)=>{let n,o=100===s?100:1;t?n=t:void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?l?(n="transparent"===e.hex?"#000000":e.hex,o=100===s?kg(e.rgb.a):e.rgb.a):n="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":n=void 0!==e.hex?e.hex:e,x(n),C(o),E(!!t),null!==f?f(n,o):(d(n),null!==l&&setTimeout(()=>{l(o)},50))};return(0,_.jsxs)("div",{className:"single-pop-color",children:[v&&(0,_.jsxs)(r.Popover,{position:"top left",className:"kadence-pop-color-popover",onClose:()=>{!0===v&&y(!1)},children:[(0,_.jsx)(vg,{color:D,onChange:e=>(e=>{let t,n=100===s?100:1;void 0!==e.rgb&&void 0!==e.rgb.a&&1!==e.rgb.a?l?(t="transparent"===e.hex?"#000000":e.hex,n=100===s?kg(e.rgb.a):e.rgb.a):t="rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")":t=void 0!==e.hex?e.hex:e,x(t),C(n),E(!1)})(e),onChangeComplete:e=>{j(e,""),m&&m("")}}),A&&(0,_.jsx)("div",{className:"kadence-pop-color-palette-swatches",children:(0,u.map)(A,({color:e,slug:t,name:n})=>{const o={color:e},i=t.replace("theme-",""),s=i===c||!t.startsWith("theme-palette")&&c===e;return(0,_.jsxs)("div",{className:"kadence-color-palette__item-wrapper",children:[(0,_.jsx)(r.Tooltip,{text:n|| // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,a.sprintf)((0,a.__)("Color code: %s"),e),children:(0,_.jsx)(r.Button,{type:"button",className:"kadence-color-palette__item "+(s?"is-active":""),style:o,onClick:()=>{t.startsWith("theme-palette")?j(e,i):j(e,!1),m&&m(t)},"aria-label":n? // translators: %s: The name of the color e.g: "vivid red". // translators: %s: The name of the color e.g: "vivid red". (0,a.sprintf)((0,a.__)("Color: %s","kadence-blocks"),n): // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,a.sprintf)((0,a.__)("Color code: %s","kadence-blocks"),e),"aria-pressed":s})}),i===c&&(0,_.jsx)(r.Dashicon,{icon:"admin-site"}),!t.startsWith("theme-palette")&&c===e&&(0,_.jsx)(r.Dashicon,{icon:"saved"})]},e)})})]}),v&&(0,_.jsxs)(r.Button,{className:"kadence-pop-color-icon-indicate "+(t?"kadence-has-alpha":"kadence-no-alpha"),onClick:T,showTooltip:!0,label:e,children:[(0,_.jsx)(r.ColorIndicator,{className:"kadence-pop-color-indicate",colorValue:N}),c&&c.startsWith("palette")&&(0,_.jsx)("span",{className:"color-indicator-icon",children:(0,_.jsx)(r.Dashicon,{icon:"admin-site"})})]}),!v&&(0,_.jsxs)(r.Button,{className:"kadence-pop-color-icon-indicate "+(t?"kadence-has-alpha":"kadence-no-alpha"),onClick:T,showTooltip:!0,label:e,children:[(0,_.jsx)(r.ColorIndicator,{className:"kadence-pop-color-indicate",colorValue:N}),c&&c.startsWith("palette")&&(0,_.jsx)("span",{className:"color-indicator-icon",children:(0,_.jsx)(r.Dashicon,{icon:"admin-site"})})]})]})}const wg=class extends o.Component{constructor(){super(...arguments),this.state={reload:!1}}render(){let e=!1;const t=this.props.colorDefault?this.props.colorDefault:this.props.default,n=this.props.colorDefault2?this.props.colorDefault2:this.props.default2,o=this.props.colorDefault3?this.props.colorDefault3:this.props.default3,i=this.props.colorValue?this.props.colorValue:this.props.value,s=this.props.colorValue2?this.props.colorValue2:this.props.value2,l=this.props.colorValue3?this.props.colorValue3:this.props.value3,c=this.props.onColorChange?this.props.onColorChange:this.props.onChange,d=this.props.onColorChange2?this.props.onColorChange2:this.props.onChange2,u=this.props.onColorChange3?this.props.onColorChange3:this.props.onChange3;return i&&i!==t&&(e=!0),s&&s!==n&&(e=!0),l&&l!==o&&(e=!0),(0,_.jsx)("div",{className:"components-base-control kadence-pop-color-control",children:(0,_.jsxs)("div",{className:"kadence-pop-color-container",children:[this.props.label&&(0,_.jsx)("label",{className:"kadence-beside-label kadence-pop-color-label",children:this.props.label}),e&&!this.props.hideClear&&(0,_.jsx)(r.Button,{className:"kadence-pop-color-clear",type:"button",onClick:()=>{c(t||""),this.props.onClassChange&&this.props.onClassChange(""),d&&(d(n||""),this.props.onClassChange2&&this.props.onClassChange2("")),u&&(u(o||""),this.props.onClassChange3&&this.props.onClassChange3("")),this.setState({reload:!0})},isSmall:!0,children:(0,_.jsx)(r.Dashicon,{icon:"redo"})}),(0,_.jsxs)("div",{className:"kadence-pop-color-popovers",children:[(0,_.jsx)(xg,{label:this.props.swatchLabel?this.props.swatchLabel:(0,a.__)("Select Color","kadence-blocks-pro"),onChange:e=>c(e),onOpacityChange:this.props.onOpacityChange?e=>this.props.onOpacityChange(e):void 0,onArrayChange:this.props.onArrayChange?(e,t)=>this.props.onArrayChange(e,t):void 0,onClassChange:this.props.onClassChange?e=>this.props.onClassChange(e):void 0,value:i,opacityValue:void 0!==this.props?.opacityValue&&""!==this.props?.opacityValue?this.props.opacityValue:void 0,opacityUnit:this.props.opacityUnit?this.props.opacityUnit:void 0,defaultValue:t||"",reload:this.state.reload,reloaded:e=>this.setState({reload:!1})}),d&&(0,_.jsx)(xg,{label:this.props.swatchLabel2?this.props.swatchLabel2:(0,a.__)("Select Color","kadence-blocks-pro"),onChange:e=>d(e),onOpacityChange:this.props.onOpacityChange2?e=>this.props.onOpacityChange2(e):void 0,onArrayChange:this.props.onArrayChange2?(e,t)=>this.props.onArrayChange2(e,t):void 0,onClassChange:this.props.onClassChange2?e=>this.props.onClassChange2(e):void 0,value:s,opacityValue:this.props.opacityValue2?this.props.opacityValue2:void 0,opacityUnit:this.props.opacityUnit2?this.props.opacityUnit2:void 0,defaultValue:n||"",reload:this.state.reload,reloaded:e=>this.setState({reload:!1})}),u&&(0,_.jsx)(xg,{label:this.props.swatchLabel3?this.props.swatchLabel3:(0,a.__)("Select Color","kadence-blocks-pro"),onChange:e=>u(e),onOpacityChange:this.props.onOpacityChange3?e=>this.props.onOpacityChange3(e):void 0,onArrayChange:this.props.onArrayChange3?(e,t)=>this.props.onArrayChange3(e,t):void 0,onClassChange:this.props.onClassChange3?e=>this.props.onClassChange3(e):void 0,value:l,opacityValue:this.props.opacityValue3?this.props.opacityValue3:void 0,opacityUnit:this.props.opacityUnit3?this.props.opacityUnit3:void 0,defaultValue:o||"",reload:this.state.reload,reloaded:e=>this.setState({reload:!1})})]})]})})}};function _g({label:e,onChange:t,onChange2:n,onChange3:o,onChangeTablet:i,onChange2Tablet:r,onChange3Tablet:s,onChangeMobile:a,onChange2Mobile:l,onChange3Mobile:c,value:d,value2:u,value3:h,mobileValue:p,mobileValue2:g,mobileValue3:m,tabletValue:f,tabletValue2:b,tabletValue3:v,colorDefault:y,colorDefault2:k,colorDefault3:x,colorDefaultTablet:w,colorDefault2Tablet:C,colorDefault3Tablet:S,colorDefaultMobile:E,colorDefault2Mobile:M,colorDefault3Mobile:$}){return(0,_.jsx)(Qc,{label:e,desktopChildren:(0,_.jsx)(wg,{value:d,value2:u,value3:h,onChange:e=>t(e),onChange2:n?e=>n(e):null,onChange3:o?e=>o(e):null,colorDefault:y,colorDefault2:k,colorDefault3:x}),tabletChildren:(0,_.jsx)(wg,{value:f,value2:b,value3:v,onChange:e=>i(e),onChange2:r?e=>r(e):null,onChange3:s?e=>s(e):null,colorDefault:w,colorDefault2:C,colorDefault3:S}),mobileChildren:(0,_.jsx)(wg,{value:p,value2:g,value3:m,onChange:e=>a(e),onChange2:l?e=>l(e):null,onChange3:c?e=>c(e):null,colorDefault:E,colorDefault2:M,colorDefault3:$})})}const Cg=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",children:(0,_.jsx)("path",{d:"M6.9 31.984h-.001c-3.711 0-6.408-2.111-6.521-2.201A1 1 0 011 28.001c2.979 0 3.676-1.602 4.559-3.63.847-1.947 1.902-4.37 5.442-4.37 1.335 0 2.591.52 3.535 1.465S16 23.666 16 25.001c0 1.336-.52 2.591-1.464 3.535-2.288 2.288-4.857 3.448-7.636 3.448zM31.323.502a2.004 2.004 0 00-2.829.175l-15.13 17.121a3.429 3.429 0 00-.593.945 6.466 6.466 0 012.825 1.661 6.459 6.459 0 011.666 2.845 3.42 3.42 0 001.52-1.237l12.87-18.879a2.003 2.003 0 00-.329-2.63z"})}),Sg=(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",children:[(0,_.jsx)("path",{d:"M30 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM10 2v1H9V2h1zM9 25v-1h1v1H9zm1 1v1H9v-1h1zm-1-3v-1h1v1H9zm0-2v-1h1v1H9zm0-2v-1h1v1H9zm0-2v-1h1v1H9zm0-2v-1h1v1H9zm0-2v-1h1v1H9zm0-2v-1h1v1H9zm0-2V8h1v1H9zm0-2V6h1v1H9zm0-2V4h1v1H9zm0 23h1v1H9v-1zM8 2v1H7V2h1zM7 25v-1h1v1H7zm1 1v1H7v-1h1zm-1-3v-1h1v1H7zm0-2v-1h1v1H7zm0-2v-1h1v1H7zm0-2v-1h1v1H7zm0-2v-1h1v1H7zm0-2v-1h1v1H7zm0-2v-1h1v1H7zm0-2V8h1v1H7zm0-2V6h1v1H7zm0-2V4h1v1H7zm0 23h1v1H7v-1zM6 2v1H5V2h1zM5 25v-1h1v1H5zm1 1v1H5v-1h1zm-1-3v-1h1v1H5zm0-2v-1h1v1H5zm0-2v-1h1v1H5zm0-2v-1h1v1H5zm0-2v-1h1v1H5zm0-2v-1h1v1H5zm0-2v-1h1v1H5zm0-2V8h1v1H5zm0-2V6h1v1H5zm0-2V4h1v1H5zm0 23h1v1H5v-1zm25 2h-4v-1h-1v1h-1v-1h-1v1h-1v-1h-1v1h-1v-1h-1v1h-1v-1h-1v1h-1v-1h-1v1h-1v-1h-1v1h-1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1v-1h-1v-1h1V9h-1V8h1V7h-1V6h1V5h-1V4h1V3h-1V2h1v1h1V2h1v1h1V2h1v1h1V2h1v1h1V2h11v28z"}),(0,_.jsx)("path",{d:"M15 3h1v1h-1V3zM17 3h1v1h-1V3zM19 3h1v1h-1V3zM21 3h1v1h-1V3zM16 4h1v1h-1V4zM15 5h1v1h-1V5zM18 4h1v1h-1V4zM17 5h1v1h-1V5zM13 3h1v1h-1V3zM12 4h1v1h-1V4zM14 4h1v1h-1V4zM13 5h1v1h-1V5zM19 5h1v1h-1V5zM21 5h1v1h-1V5zM23 3h1v1h-1V3zM25 3h1v1h-1V3zM23 5h1v1h-1V5zM25 5h1v1h-1V5zM16 6h1v1h-1V6zM15 7h1v1h-1V7zM18 6h1v1h-1V6zM17 7h1v1h-1V7zM19 7h1v1h-1V7zM21 7h1v1h-1V7zM16 8h1v1h-1V8zM15 9h1v1h-1V9zM18 8h1v1h-1V8zM17 9h1v1h-1V9zM12 6h1v1h-1V6zM14 6h1v1h-1V6zM13 7h1v1h-1V7zM12 8h1v1h-1V8zM14 8h1v1h-1V8zM13 9h1v1h-1V9zM19 9h1v1h-1V9zM21 9h1v1h-1V9zM23 7h1v1h-1V7zM25 7h1v1h-1V7zM23 9h1v1h-1V9zM25 9h1v1h-1V9zM16 10h1v1h-1v-1zM15 11h1v1h-1v-1zM18 10h1v1h-1v-1zM17 11h1v1h-1v-1zM19 11h1v1h-1v-1zM21 11h1v1h-1v-1zM16 12h1v1h-1v-1zM15 13h1v1h-1v-1zM18 12h1v1h-1v-1zM17 13h1v1h-1v-1zM12 10h1v1h-1v-1zM14 10h1v1h-1v-1zM13 11h1v1h-1v-1zM12 12h1v1h-1v-1zM14 12h1v1h-1v-1zM13 13h1v1h-1v-1zM19 13h1v1h-1v-1zM21 13h1v1h-1v-1zM23 11h1v1h-1v-1zM25 11h1v1h-1v-1zM23 13h1v1h-1v-1zM25 13h1v1h-1v-1zM16 14h1v1h-1v-1zM15 15h1v1h-1v-1zM18 14h1v1h-1v-1zM17 15h1v1h-1v-1zM19 15h1v1h-1v-1zM21 15h1v1h-1v-1zM16 16h1v1h-1v-1zM15 17h1v1h-1v-1zM18 16h1v1h-1v-1zM17 17h1v1h-1v-1zM12 14h1v1h-1v-1zM14 14h1v1h-1v-1zM13 15h1v1h-1v-1zM12 16h1v1h-1v-1zM14 16h1v1h-1v-1zM13 17h1v1h-1v-1zM19 17h1v1h-1v-1zM21 17h1v1h-1v-1zM23 15h1v1h-1v-1zM25 15h1v1h-1v-1zM23 17h1v1h-1v-1zM25 17h1v1h-1v-1zM16 18h1v1h-1v-1zM15 19h1v1h-1v-1zM18 18h1v1h-1v-1zM17 19h1v1h-1v-1zM19 19h1v1h-1v-1zM21 19h1v1h-1v-1zM16 20h1v1h-1v-1zM15 21h1v1h-1v-1zM18 20h1v1h-1v-1zM17 21h1v1h-1v-1zM12 18h1v1h-1v-1zM14 18h1v1h-1v-1zM13 19h1v1h-1v-1zM12 20h1v1h-1v-1zM14 20h1v1h-1v-1zM13 21h1v1h-1v-1zM19 21h1v1h-1v-1zM21 21h1v1h-1v-1zM23 19h1v1h-1v-1zM25 19h1v1h-1v-1zM23 21h1v1h-1v-1zM25 21h1v1h-1v-1zM16 22h1v1h-1v-1zM15 23h1v1h-1v-1zM18 22h1v1h-1v-1zM17 23h1v1h-1v-1zM19 23h1v1h-1v-1zM21 23h1v1h-1v-1zM16 24h1v1h-1v-1zM15 25h1v1h-1v-1zM18 24h1v1h-1v-1zM17 25h1v1h-1v-1zM12 22h1v1h-1v-1zM14 22h1v1h-1v-1zM13 23h1v1h-1v-1zM12 24h1v1h-1v-1zM14 24h1v1h-1v-1zM13 25h1v1h-1v-1zM19 25h1v1h-1v-1zM21 25h1v1h-1v-1zM23 23h1v1h-1v-1zM25 23h1v1h-1v-1zM23 25h1v1h-1v-1zM25 25h1v1h-1v-1zM16 26h1v1h-1v-1zM15 27h1v1h-1v-1zM18 26h1v1h-1v-1zM17 27h1v1h-1v-1zM19 27h1v1h-1v-1zM21 27h1v1h-1v-1zM16 28h1v1h-1v-1zM18 28h1v1h-1v-1zM12 26h1v1h-1v-1zM14 26h1v1h-1v-1zM13 27h1v1h-1v-1zM12 28h1v1h-1v-1zM14 28h1v1h-1v-1zM23 27h1v1h-1v-1zM25 27h1v1h-1v-1z"})]}),Eg=(0,_.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"32",viewBox:"0 0 36 32",children:[(0,_.jsx)("path",{d:"M34 4h-2V2c0-1.1-.9-2-2-2H2C.9 0 0 .9 0 2v24c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 6v20H2.004L2 25.996V2.003l.004-.004h27.993l.004.004v1.996h-24c-1.1 0-2 .9-2 2zm30 23.996l-.004.004H6.003l-.004-.004V6.003l.004-.004h27.993l.004.004v23.993z"}),(0,_.jsx)("path",{d:"M30 11a3 3 0 11-6 0 3 3 0 016 0zM32 28H8v-4l7-12 8 10h2l7-6z"})]}),Mg=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",children:(0,_.jsx)("path",{d:"M0 4v24h32V4H0zm6 22H2v-4h4v4zm0-8H2v-4h4v4zm0-8H2V6h4v4zm18 16H8V6h16v20zm6 0h-4v-4h4v4zm0-8h-4v-4h4v4zm0-8h-4V6h4v4zm-18 0v12l8-6z"})});function $g({label:e,type:t,onChange:n,allowedTypes:o=null,types:i=null}){const l=[{key:"normal",title:(0,a.__)("Classic","kadence-blocks-pro"),icon:Cg},{key:"gradient",title:(0,a.__)("Gradient","kadence-blocks-pro"),icon:Sg},{key:"slider",title:(0,a.__)("Slider","kadence-blocks-pro"),icon:Eg},{key:"video",title:(0,a.__)("Video","kadence-blocks-pro"),icon:Mg}],c=o||["normal","gradient","slider","video"],d=i||l,u=`inspector-background-type-control-${(0,s.useInstanceId)($g)}`;return(0,_.jsx)("div",{className:"components-base-control kadence-background-type-control",children:(0,_.jsxs)("div",{className:"kadence-background-type-container",children:[e&&(0,_.jsx)("label",{htmlFor:u,className:"kadence-beside-label components-background-type-control__label",children:e}),(0,_.jsx)(r.ButtonGroup,{id:u,className:"kadence-background-type-radio-container",children:d.map(({key:e,title:o,icon:i},s)=>{if(c.includes(e))return(0,_.jsx)(r.Button,{label:o,onClick:()=>n(e),isTertiary:e!==t,isPrimary:e===t,className:"kadence-radio-item"+(e===t?" radio-is-active":""),"aria-pressed":e===t,icon:i},e)})})]})})}var Ag={grad:.9,turn:360,rad:360/(2*Math.PI)},Tg=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Rg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Lg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Og=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Dg=function(e){return{r:Lg(e.r,0,255),g:Lg(e.g,0,255),b:Lg(e.b,0,255),a:Lg(e.a)}},Ng=function(e){return{r:Rg(e.r),g:Rg(e.g),b:Rg(e.b),a:Rg(e.a,3)}},jg=/^#([0-9a-f]{3,8})$/i,Ig=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zg=function(e){var t=e.r,n=e.g,o=e.b,i=e.a,r=Math.max(t,n,o),s=r-Math.min(t,n,o),a=s?r===t?(n-o)/s:r===n?2+(o-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:r?s/r*100:0,v:r/255*100,a:i}},Fg=function(e){var t=e.h,n=e.s,o=e.v,i=e.a;t=t/360*6,n/=100,o/=100;var r=Math.floor(t),s=o*(1-n),a=o*(1-(t-r)*n),l=o*(1-(1-t+r)*n),c=r%6;return{r:255*[o,a,s,s,l,o][c],g:255*[l,o,o,a,s,s][c],b:255*[s,s,l,o,o,a][c],a:i}},Bg=function(e){return{h:Og(e.h),s:Lg(e.s,0,100),l:Lg(e.l,0,100),a:Lg(e.a)}},Pg=function(e){return{h:Rg(e.h),s:Rg(e.s),l:Rg(e.l),a:Rg(e.a,3)}},Hg=function(e){return Fg((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},Vg=function(e){return{h:(t=zg(e)).h,s:(i=(200-(n=t.s))*(o=t.v)/100)>0&&i<200?n*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,o,i},Wg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ug=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,qg={string:[[function(e){var t=jg.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Rg(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Rg(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Gg.exec(e)||Zg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Dg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Wg.exec(e)||Ug.exec(e);if(!t)return null;var n,o,i=Bg({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(Ag[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Hg(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,i=e.a,r=void 0===i?1:i;return Tg(t)&&Tg(n)&&Tg(o)?Dg({r:Number(t),g:Number(n),b:Number(o),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,i=e.a,r=void 0===i?1:i;if(!Tg(t)||!Tg(n)||!Tg(o))return null;var s=Bg({h:Number(t),s:Number(n),l:Number(o),a:Number(r)});return Hg(s)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,i=e.a,r=void 0===i?1:i;if(!Tg(t)||!Tg(n)||!Tg(o))return null;var s=function(e){return{h:Og(e.h),s:Lg(e.s,0,100),v:Lg(e.v,0,100),a:Lg(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(r)});return Fg(s)},"hsv"]]},Kg=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Yg=function(e,t){var n=Vg(e);return{h:n.h,s:Lg(n.s+100*t,0,100),l:n.l,a:n.a}},Xg=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Qg=function(e,t){var n=Vg(e);return{h:n.h,s:n.s,l:Lg(n.l+100*t,0,100),a:n.a}},Jg=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Kg(e.trim(),qg.string):"object"==typeof e&&null!==e?Kg(e,qg.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Rg(Xg(this.rgba),2)},e.prototype.isDark=function(){return Xg(this.rgba)<.5},e.prototype.isLight=function(){return Xg(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Ng(this.rgba)).r,n=e.g,o=e.b,r=(i=e.a)<1?Ig(Rg(255*i)):"","#"+Ig(t)+Ig(n)+Ig(o)+r;var e,t,n,o,i,r},e.prototype.toRgb=function(){return Ng(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Ng(this.rgba)).r,n=e.g,o=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+o+", "+i+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,i},e.prototype.toHsl=function(){return Pg(Vg(this.rgba))},e.prototype.toHslString=function(){return t=(e=Pg(Vg(this.rgba))).h,n=e.s,o=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+i+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,i},e.prototype.toHsv=function(){return e=zg(this.rgba),{h:Rg(e.h),s:Rg(e.s),v:Rg(e.v),a:Rg(e.a,3)};var e},e.prototype.invert=function(){return em({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),em(Yg(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),em(Yg(this.rgba,-e))},e.prototype.grayscale=function(){return em(Yg(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),em(Qg(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),em(Qg(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?em({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Rg(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Vg(this.rgba);return"number"==typeof e?em({h:e,s:t.s,l:t.l,a:t.a}):Rg(t.h)},e.prototype.isEqual=function(e){return this.toHex()===em(e).toHex()},e}(),em=function(e){return e instanceof Jg?e:new Jg(e)};function tm(e){return Math.max(0,Math.min(100,e))}function nm(e,t,n){const o=e.findIndex(e=>e.position>t),i={color:n,position:t},r=e.slice();return r.splice(o-1,0,i),r}function om(e,t,n){const o=e.slice();return o[t]=n,o}function im(e,t,n){return function(e,t,n,o=0){const i=e[t].position,r=Math.min(i,n),s=Math.max(i,n);return e.some(({position:e},i)=>i!==t&&(Math.abs(e-n)<o||r<e&&e<s))}(e,t,n)?e:om(e,t,{...e[t],position:n})}function rm(e,t,n){return om(e,t,{...e[t],color:n})}function sm(e,t,n){const o=e.findIndex(e=>e.position===t);return rm(e,o,n)}function am(e,t){if(!t)return;const{x:n,width:o}=t.getBoundingClientRect(),i=e-n;return Math.round(tm(100*i/o))}function lm(e){const{renderContent:t,renderToggle:n,className:i,contentClassName:a,expandOnMobile:l,headerTitle:c,focusOnMount:d,position:u,popoverProps:h,onClose:p,onToggle:g,style:m}=e,[f,b]=(0,o.useState)(null),v=(0,o.useRef)(),[y,k]=function(e,t){const[n,i]=(0,o.useState)(!1);return[n,e=>{i(e),t&&t(e)}]}(0,g);function x(){p&&p(),k(!1)}(0,o.useEffect)(()=>()=>{g&&y&&g(!1)},[g,y]);const w={isOpen:y,onToggle:function(){k(!y)},onClose:x},C=!!(h?.anchor||h?.anchorRef||h?.getAnchorRect||h?.anchorRect);return(0,_.jsxs)("div",{className:E()("components-dropdown",i),ref:(0,s.useMergeRefs)([b,v]),tabIndex:"-1",style:m,children:[n(w),y&&(0,_.jsx)(r.Popover,{position:u,onClose:x,onFocusOutside:function(){const{ownerDocument:e}=v.current,t=e.activeElement.closest('[role="dialog"]');v.current.contains(e.activeElement)||t&&!t.contains(v.current)||x()},expandOnMobile:l,headerTitle:c,focusOnMount:d,offset:13,anchor:C?void 0:f,...h,className:E()("components-dropdown__content",h?h.className:void 0,a),children:t(w)})]})}function cm({isRenderedInSidebar:e,popoverProps:t,...n}){const i=(0,o.useMemo)(()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t}),[e,t]);return(0,_.jsx)(lm,{contentClassName:"components-color-palette__custom-color-dropdown-content kadence-pop-color-popover",popoverProps:i,...n})}function dm({isOpen:e,position:t,color:n,...o}){const i=`components-custom-gradient-picker__control-point-button-description-${(0,s.useInstanceId)(dm)}`;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.Button,{"aria-label":(0,a.sprintf)( // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151). // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151). (0,a.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":i,"aria-haspopup":"true","aria-expanded":e,className:E()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...o}),(0,_.jsx)(r.VisuallyHidden,{id:i,children:(0,a.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")})]})}function um({isRenderedInSidebar:e,className:t,...n}){const i=(0,o.useMemo)(()=>({placement:"bottom",offset:8}),[]),r=E()("components-custom-gradient-picker__control-point-dropdown",t);return(0,_.jsx)(cm,{isRenderedInSidebar:e,popoverProps:i,className:r,...n})}function hm(e,t){if(!e)return"";if(!t)return e;if(e.startsWith("var(--global-")){const n=t.find(t=>t.value===e);if(n)return n.color;let o=e.replace("var(--global-","");o=o.substring(0,8),o="theme-"+o;const i=t.find(e=>e.slug===o);if(i&&!i.color.startsWith("var("))return i.color;let r=window.getComputedStyle(document.documentElement).getPropertyValue(e.replace("var(","").replace(" ","").replace(")",""));if(""===r&&(r=window.getComputedStyle(document.documentElement).getPropertyValue(e.replace("var(","").replace(" ","").split(",")[0].replace(")",""))),r)return r}else if(e.startsWith("var(")){let t=window.getComputedStyle(document.documentElement).getPropertyValue(e.replace("var(","").replace(" ","").replace(")",""));if(""===t&&(t=window.getComputedStyle(document.documentElement).getPropertyValue(e.replace("var(","").replace(" ","").split(",")[0].replace(")",""))),t)return t}return e}function pm({disableRemove:e,gradientPickerDomRef:t,ignoreMarkerPosition:n,value:s,onChange:l,onStartControlPointChange:c,onStopControlPointChange:d,isRenderedInSidebar:h}){const p=(0,o.useRef)(),g=e=>{const n=am(e.clientX,t.current),{initialPosition:o,index:i,significantMoveHappened:r}=p.current;!r&&Math.abs(o-n)>=5&&(p.current.significantMoveHappened=!0),l(im(s,i,n))},m=()=>{window&&window.removeEventListener&&p.current&&p.current.listenersActivated&&(window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",m),d(),p.current.listenersActivated=!1)},f=(0,o.useRef)();f.current=m,(0,o.useEffect)(()=>()=>{f.current()},[]);const b=!(0,i.useSetting)("color.custom"),v=(0,i.useSetting)("color.palette");return s.map((t,o)=>{const i=t?.position,f=hm(t.color,v);return n!==i&&(0,_.jsx)(um,{isRenderedInSidebar:h,onClose:d,renderToggle:({isOpen:e,onToggle:n})=>(0,_.jsx)(dm,{onClick:()=>{p.current&&p.current.significantMoveHappened||(e?d():c(),n())},onMouseDown:()=>{window&&window.addEventListener&&(p.current={initialPosition:i,index:o,significantMoveHappened:!1,listenersActivated:!0},c(),window.addEventListener("mousemove",g),window.addEventListener("mouseup",m))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),l(im(s,o,tm(t.position-10)))):"ArrowRight"===e.code&&(e.stopPropagation(),l(im(s,o,tm(t.position+10))))},isOpen:e,position:t.position,color:t.color},o),renderContent:({onClose:n})=>(0,_.jsxs)("div",{className:"kadence-pop-gradient-color-picker",children:[!b&&(0,_.jsx)(vg,{color:f,onChange:e=>{l(rm(s,o,em(e.rgb).toRgbString()))},onChangeComplete:e=>{l(rm(s,o,em(e.rgb).toRgbString()))}}),v&&(0,_.jsx)("div",{className:"kadence-pop-color-palette-swatches",children:(0,u.map)(v,({color:e,slug:n,name:i})=>{const c={color:e},d=n.replace("theme-",""),u=n.startsWith("theme-palette")&&e===t.color||n.startsWith("theme-palette")&&f===e,h=!n.startsWith("theme-palette")&&e.startsWith("var(")&&(f===e||e===t.color);return(0,_.jsxs)("div",{className:"kadence-color-palette__item-wrapper",children:[(0,_.jsx)(r.Tooltip,{text:i|| // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,a.sprintf)((0,a.__)("Color code: %s"),e),children:(0,_.jsx)(r.Button,{type:"button",className:"kadence-color-palette__item "+(u||h?"is-active":""),style:c,onClick:()=>{n.startsWith("theme-palette")&&!e.startsWith("var(")?l(rm(s,o,"var(--global-"+d+","+e+")")):e.startsWith("var(")?l(rm(s,o,e)):l(rm(s,o,em(e).toRgbString()))},"aria-label":i? // translators: %s: The name of the color e.g: "vivid red". // translators: %s: The name of the color e.g: "vivid red". (0,a.sprintf)((0,a.__)("Color: %s","kadence-blocks-pro"),i): // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,a.sprintf)((0,a.__)("Color code: %s","kadence-blocks-pro"),e),"aria-pressed":u||h})}),u&&(0,_.jsx)(r.Dashicon,{icon:"admin-site"}),!n.startsWith("theme-palette")&&f===e&&(0,_.jsx)(r.Dashicon,{icon:"saved"})]},e)})}),void 0!==t?.position&&(0,_.jsx)(r.__experimentalNumberControl,{label:(0,a.__)("Control Point Position %","kadence-blocks-pro"),value:t.position,onChange:e=>{l(im(s,o,tm(parseFloat(e))))},min:0,step:.01,max:100}),!e&&s.length>2&&(0,_.jsx)(r.__experimentalHStack,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:(0,_.jsx)(r.Button,{onClick:()=>{l(function(e,t){return e.filter((e,n)=>n!==t)}(s,o)),n()},variant:"link",children:(0,a.__)("Remove Control Point")})})]}),style:{left:`${t.position}%`,transform:"translateX( -50% )"}},o)})}pm.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:s,insertPosition:l,isRenderedInSidebar:c}){const[d,h]=(0,o.useState)(!1),p=!(0,i.useSetting)("color.custom"),g=(0,i.useSetting)("color.palette"),[m,f]=(0,o.useState)(""),b=hm(m,g);return(0,_.jsx)(um,{isRenderedInSidebar:c,className:"components-custom-gradient-picker__inserter",onClose:()=>{s()},renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(r.Button,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?s():(h(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:ua}),renderContent:()=>(0,_.jsxs)("div",{className:"kadence-pop-gradient-color-picker",children:[!p&&(0,_.jsx)(vg,{color:b,onChange:n=>{f(em(n.rgb).toRgbString()),d?t(sm(e,l,em(n.rgb).toRgbString())):(t(nm(e,l,em(n.rgb).toRgbString())),h(!0))},onChangeComplete:n=>{f(em(n.rgb).toRgbString()),d?t(sm(e,l,em(n.rgb).toRgbString())):(t(nm(e,l,em(n.rgb).toRgbString())),h(!0))}}),g&&(0,_.jsx)("div",{className:"kadence-pop-color-palette-swatches",children:(0,u.map)(g,({color:n,slug:o,name:i})=>{const s={color:n},c=o.replace("theme-",""),u=o.startsWith("theme-palette")&&n===m||o.startsWith("theme-palette")&&b===n,p=!o.startsWith("theme-palette")&&n.startsWith("var(")&&m===n;return(0,_.jsxs)("div",{className:"kadence-color-palette__item-wrapper",children:[(0,_.jsx)(r.Tooltip,{text:i|| // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,a.sprintf)((0,a.__)("Color code: %s"),n),children:(0,_.jsx)(r.Button,{type:"button",className:"kadence-color-palette__item "+(u||p?"is-active":""),style:s,onClick:()=>{f(em(n).toRgbString()),o.startsWith("theme-palette")&&!n.startsWith("var(")?d?t(sm(e,l,"var(--global-"+c+","+n+")")):(t(nm(e,l,"var(--global-"+c+","+n+")")),h(!0)):n.startsWith("var(")?(f(n),d?t(sm(e,l,n)):(t(nm(e,l,n)),h(!0))):d?t(sm(e,l,em(n).toRgbString())):(t(nm(e,l,em(n).toRgbString())),h(!0))},"aria-label":i? // translators: %s: The name of the color e.g: "vivid red". // translators: %s: The name of the color e.g: "vivid red". (0,a.sprintf)((0,a.__)("Color: %s","kadence-blocks-pro"),i): // translators: %s: color hex code e.g: "#f00". // translators: %s: color hex code e.g: "#f00". (0,a.sprintf)((0,a.__)("Color code: %s","kadence-blocks-pro"),n)})}),u&&(0,_.jsx)(r.Dashicon,{icon:"admin-site"}),!o.startsWith("theme-palette")&&m===n&&(0,_.jsx)(r.Dashicon,{icon:"saved"})]},n)})})]}),style:null!==l?{left:`${l}%`,transform:"translateX( -50% )"}:void 0})};const gm=pm;function mm(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}const fm={id:"IDLE"};function bm({background:e,hasGradient:t,value:n,onChange:i,disableInserter:r=!1,isRenderedInSidebar:s}){const a=(0,o.useRef)(),[l,c]=(0,o.useReducer)(mm,fm),d=e=>{const t=am(e.clientX,a.current);(0,u.some)(n,({position:e})=>Math.abs(t-e)<10)?"MOVING_INSERTER"===l.id&&c({type:"STOP_INSERTER_MOVE"}):c({type:"MOVE_INSERTER",insertPosition:t})},h="MOVING_INSERTER"===l.id,p="INSERTING_CONTROL_POINT"===l.id;return(0,_.jsx)("div",{className:E()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:d,onMouseMove:d,style:{background:e},onMouseLeave:()=>{c({type:"STOP_INSERTER_MOVE"})},children:(0,_.jsxs)("div",{ref:a,className:"components-custom-gradient-picker__markers-container",children:[!r&&(h||p)&&(0,_.jsx)(gm.InsertPoint,{isRenderedInSidebar:s,insertPosition:l.insertPosition,value:n,onChange:i,onOpenInserter:()=>{c({type:"OPEN_INSERTER"})},onCloseInserter:()=>{c({type:"CLOSE_INSERTER"})}}),(0,_.jsx)(gm,{isRenderedInSidebar:s,disableRemove:r,gradientPickerDomRef:a,ignoreMarkerPosition:p?l.insertPosition:void 0,value:n,onChange:i,onStartControlPointChange:()=>{c({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{c({type:"STOP_CONTROL_CHANGE"})}})]})})}var vm=n(1846);const ym="linear-gradient(135deg, rgb(6, 147, 227) 0%, rgb(20, 39, 109) 100%)",km={type:"angular",value:90},xm=[{type:"shape",value:"ellipse",at:{type:"position",value:{x:{type:"position-keyword",value:"center"},y:{type:"position-keyword",value:"center"}}}}],wm=[{value:"linear-gradient",label:(0,a.__)("Linear","kadence-blocks-pro")},{value:"radial-gradient",label:(0,a.__)("Radial","kadence-blocks-pro")}],_m=[{value:"center top",label:(0,a.__)("Center Top","kadence-blocks-pro")},{value:"center center",label:(0,a.__)("Center Center","kadence-blocks-pro")},{value:"center bottom",label:(0,a.__)("Center Bottom","kadence-blocks-pro")},{value:"left top",label:(0,a.__)("Left Top","kadence-blocks-pro")},{value:"left center",label:(0,a.__)("Left Center","kadence-blocks-pro")},{value:"left bottom",label:(0,a.__)("Left Bottom","kadence-blocks-pro")},{value:"right top",label:(0,a.__)("Right Top","kadence-blocks-pro")},{value:"right center",label:(0,a.__)("Right Center","kadence-blocks-pro")},{value:"right bottom",label:(0,a.__)("Right Bottom","kadence-blocks-pro")}],Cm={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Sm({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function Em({type:e,orientation:t,colorStops:n}){const o=function(e,t){if("radial-gradient"===e){if(!t||!t[0]||"shape"!==t[0].type)return;return"%"===t[0].at.value.x.type?`${t[0].value} at ${t[0].at.value.x.value}% ${t[0].at.value.y.value}%`:`${t[0].value} at ${t[0].at.value.x.value} ${t[0].at.value.y.value}`}if(t&&"angular"===t.type)return`${t.value}deg`}(e,t);return`${e}(${[o,...n.sort((e,t)=>{var n,o;return(null!==(n=e?.length?.value)&&void 0!==n?n:0)-(null!==(o=t?.length?.value)&&void 0!==o?o:0)}).map(Sm)].filter(Boolean).join(",")})`}function Mm(e){return void 0===e.length||"%"!==e.length.type}function $m(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}const Am=({gradientAST:e,hasGradient:t,onChange:n})=>{var o;const i=null!==(o=e?.orientation?.value)&&void 0!==o?o:180;return(0,_.jsx)(r.AnglePickerControl,{__nextHasNoMarginBottom:!0,onChange:t=>{n(Em({...e,orientation:{type:"angular",value:t}}))},labelPosition:"top",value:t?i:""})},Tm=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:o}=e;return(0,_.jsx)(r.SelectControl,{className:"components-custom-gradient-picker__type-picker kadence-select-large",label:(0,a.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(Em({...e,orientation:km,type:"linear-gradient"})),"radial-gradient"===t&&n(Em({...e,orientation:xm,type:"radial-gradient"}))},options:wm,value:t&&o})},Rm=({gradientAST:e,hasGradient:t,onChange:n})=>{let o="center center",i="50%",s="50%",l="position-keyword";e?.orientation&&e?.orientation[0]?.at?.value?.x?.value&&(l=e.orientation[0].at.value.x.type,"position-keyword"!==l?(o=e.orientation[0].at.value.x.value+"% "+e.orientation[0].at.value.y.value+"%",i=e.orientation[0].at.value.x.value+"%",s=e.orientation[0].at.value.y.value+"%"):o=e.orientation[0].at.value.x.value+" "+e.orientation[0].at.value.y.value);const c=t=>{const i=o.split(" ");let r="%"===t?50:"center",s="%"===t?50:"center";if(i[0])switch(i[0]){case"left":r=0;break;case"right":r="100";break;case"center":r=50;break;case 0:s="left";break;case 100:s="right";break;case 50:s="center"}if(i[1])switch(i[1]){case"top":s=0;break;case"bottom":s=100;break;case"center":s=50;break;case 0:s="top";break;case 100:s="bottom";break;case 50:s="center"}n(Em({...e,orientation:[{type:"shape",value:e.orientation[0].value,at:{type:"position",value:{x:{type:t,value:r},y:{type:t,value:s}}}}]}))};if(t)return(0,_.jsxs)("div",{className:"components-base-control kadence-gradient-position-control",children:[(0,_.jsx)(r.Flex,{justify:"space-between",className:"kadence-gradient-position_header",children:(0,_.jsx)(r.FlexItem,{children:(0,_.jsx)("label",{className:"kadence-gradient-position__label",children:(0,a.__)("Position","kadence-blocks-pro")})})}),"position-keyword"===l&&(0,_.jsxs)("div",{className:"kadence-controls-content",children:[(0,_.jsx)(r.SelectControl,{className:"components-custom-gradient-picker__position-picker",onChange:t=>{const o=t.split(" ");n(Em({...e,orientation:[{type:"shape",value:e.orientation[0].value,at:{type:"position",value:{x:{type:"position-keyword",value:void 0!==o[0]&&o[0]?o[0]:"center"},y:{type:"position-keyword",value:void 0!==o[1]&&o[1]?o[1]:"center"}}}}]}))},options:_m,value:o}),(0,_.jsx)(r.Button,{className:"kadence-control-toggle-advanced only-icon",label:(0,a.__)("Set custom position","kadence-blocks-pro"),icon:yi,onClick:()=>c("%"),isPressed:!1,isTertiary:!0})]}),"position-keyword"!==l&&(0,_.jsxs)("div",{className:"kadence-controls-content",children:[(0,_.jsx)(r.__experimentalUnitControl,{labelPosition:"left",label:(0,a.__)("Left","kadence-blocks-pro"),max:100,min:0,units:[{value:"%",label:"%"}],value:i,onChange:t=>{n(Em({...e,orientation:[{type:"shape",value:e.orientation[0].value,at:{type:"position",value:{x:{type:"%",value:parseInt(t,10)},y:e.orientation[0].at.value.y}}}]}))}}),(0,_.jsx)(r.__experimentalUnitControl,{labelPosition:"left",label:(0,a.__)("Top","kadence-blocks-pro"),max:100,min:0,value:s,units:[{value:"%",label:"%"}],onChange:t=>{n(Em({...e,orientation:[{type:"shape",value:e.orientation[0].value,at:{type:"position",value:{x:e.orientation[0].at.value.x,y:{type:"%",value:parseInt(t,10)}}}}]}))}}),(0,_.jsx)(r.Button,{className:"kadence-control-toggle-advanced only-icon",label:(0,a.__)("Set standard position","kadence-blocks-pro"),icon:yi,onClick:()=>c("position-keyword"),isPrimary:!0,isPressed:!0})]})]})},Lm=({gradientAST:e,hasGradient:t,onChange:n})=>{let o="ellipse";return e?.orientation&&e?.orientation[0]?.type&&"shape"===e?.orientation[0]?.type&&e?.orientation[0]?.value&&(o=e?.orientation&&e?.orientation[0]?.value),(0,_.jsx)(r.SelectControl,{className:"components-custom-gradient-picker__shape-picker kadence-select-large",label:(0,a.__)("Shape","kadence-blocks-pro"),labelPosition:"top",onChange:t=>{n(Em({...e,orientation:[{type:"shape",value:t,at:e.orientation[0].at}]}))},options:[{value:"ellipse",label:(0,a.__)("Ellipse","kadence-blocks-pro")},{value:"circle",label:(0,a.__)("Circle","kadence-blocks-pro")}],value:t&&o})};function Om({value:e,onChange:t,isRenderedInSidebar:n=!0}){const o=function(e){let t;try{t=vm.parse(e)[0],t.value=e}catch(e){t=vm.parse(ym)[0],t.value=ym}if("directional"===t.orientation?.type&&(t.orientation.type="angular",t.orientation.value=Cm[t.orientation.value].toString()),t.colorStops.some(Mm)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach((e,t)=>{e.length={value:n*t,type:"%"}}),t.value=Em(t)}return t}(e),i=function(e){return Em({type:"linear-gradient",orientation:km,colorStops:e.colorStops})}(o),s=o.value!==ym,a=o.colorStops.map(e=>({color:$m(e),position:parseInt(e.length.value)}));return(0,_.jsxs)("div",{className:"components-base-control components-custom-gradient-picker kadence-gradient-control",children:[(0,_.jsx)(bm,{isRenderedInSidebar:n,background:i,hasGradient:s,value:a,onChange:e=>{t(Em(function(e,t){return{...e,colorStops:t.map(({position:e,color:t})=>{if(t.startsWith("var("))return{length:{type:"%",value:e?.toString()},type:"literal",value:t};const{r:n,g:o,b:i,a:r}=em(t).toRgb();return{length:{type:"%",value:e?.toString()},type:r<1?"rgba":"rgb",value:r<1?[n,o,i,r]:[n,o,i]}})}}(o,e)))}}),(0,_.jsxs)(r.Flex,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[(0,_.jsx)("div",{className:"components-custom-gradient-picker__item components-custom-gradient-picker-type",children:(0,_.jsx)(Tm,{gradientAST:o,hasGradient:s,onChange:t})}),"linear-gradient"===o.type&&(0,_.jsx)("div",{className:"components-custom-gradient-picker__item components-custom-gradient-picker-angle",children:(0,_.jsx)(Am,{gradientAST:o,hasGradient:s,onChange:t})}),"radial-gradient"===o.type&&(0,_.jsx)("div",{className:"components-custom-gradient-picker__item components-custom-gradient-picker-shape",children:(0,_.jsx)(Lm,{gradientAST:o,hasGradient:s,onChange:t})})]}),"radial-gradient"===o.type&&(0,_.jsx)(r.Flex,{gap:3,className:"components-custom-gradient-picker__ui-line",children:(0,_.jsx)("div",{className:"components-custom-gradient-picker__item components-custom-gradient-picker-position",children:(0,_.jsx)(Rm,{gradientAST:o,hasGradient:s,onChange:t})})})]})}function Dm(e,t=null){return e&&e.startsWith("palette")?e="var(--global-"+e+")":null===t||isNaN(t)||1===Number(t)||void 0===e||""===e||(e=yg(e,t)),e}function Nm({label:e,onChange:t,value:n="",className:o="",step:i=1,max:l=200,min:c=0,unit:d="px",onUnit:u,units:h=["px","em","rem"],styles:p=["solid","dashed","dotted","double"],defaultLinked:g=!0}){const m=(0,s.useInstanceId)(Nm),f=n?.[1]||"solid",b=e=>{const o=n;o[0]=e,t(o)},v=n?.[0]||"",y=void 0!==n?.[2]&&""!==n?.[2]?n[2]:"",k={solid:(0,_.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:(0,_.jsx)("path",{d:"M18.988 11.478V8.522H1.012v2.956h17.976z"})}),dashed:(0,_.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:(0,_.jsx)("path",{d:"M12.512 11.478V8.522H7.488v2.956h5.024zM14.004 8.522v2.956h4.984V8.522h-4.984zM1.012 8.522v2.956H6.05V8.522H1.012z"})}),dotted:(0,_.jsxs)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:[(0,_.jsx)("circle",{cx:"2.503",cy:"10",r:"1.487"}),(0,_.jsx)("circle",{cx:"17.486",cy:"10",r:"1.487"}),(0,_.jsx)("circle",{cx:"12.447",cy:"10",r:"1.487"}),(0,_.jsx)("circle",{cx:"7.455",cy:"10",r:"1.487"})]}),double:(0,_.jsx)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 20 20",children:(0,_.jsx)("path",{d:"M1.02 6.561v2.957h17.968V6.561H1.02zM1.012 10.586v2.956H18.98v-2.956H1.012z"})})},x={solid:(0,a.__)("Solid","kadence-blocks-pro"),dashed:(0,a.__)("Dashed","kadence-blocks-pro"),dotted:(0,a.__)("Dotted","kadence-blocks-pro"),double:(0,a.__)("Double","kadence-blocks-pro")},w=h.map(e=>({value:e,label:e}));return[t&&(0,_.jsxs)("div",{className:`components-base-control kadence-single-border-control kadence-single-border-control${m}${o?" "+o:""}`,children:[e&&(0,_.jsx)(r.Flex,{justify:"space-between",className:"kadence-border-control__header",children:(0,_.jsx)(r.FlexItem,{children:(0,_.jsx)("label",{className:"components-base-control__label",children:e})})}),(0,_.jsxs)("div",{className:"kadence-single-border-control-wrap",children:[(0,_.jsx)(wg,{value:v,default:"",hideClear:!0,onChange:e=>b(e)},`border-color-${v}-${m}`),(0,_.jsx)(r.DropdownMenu,{className:"border-control-style-select",icon:k[f],label:(0,a.__)("Border Style","kadence-blocks-pro"),popoverProps:{className:"border-control-style-select__popover",placement:"bottom"},children:({onClose:e})=>(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(r.MenuGroup,{children:p.map(o=>(0,_.jsx)(r.MenuItem,{icon:k[o],onClick:()=>{e(),(e=>{const o=n;o[1]=e,t(o)})(o)},label:x[o]}))})})}),(0,_.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,_.jsx)(r.__experimentalUnitControl,{min:c,max:l,step:i,units:w,value:y,disableUnits:!0,onChange:e=>(e=>{const o=isNaN(parseFloat(e))?"":parseFloat(e),i=n;i[2]=o,t(i)})(e)}),(0,_.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{u(e.target.value)},disabled:1===h.length,children:h.map(e=>(0,_.jsx)("option",{value:e,selected:d===e||void 0,children:e},e))})})]})]})]})]}function jm({label:e,onChange:t,onControl:n,value:i="",className:l="",help:c="",defaultValue:d={top:{color:"",style:"solid",width:""},right:{color:"",style:"solid",width:""},bottom:{color:"",style:"solid",width:""},left:{color:"",style:"solid",width:""},unit:""},control:h="individual",units:p=["px","em","rem"],firstIcon:g=Sl,secondIcon:m=El,thirdIcon:f=Ml,fourthIcon:b=$l,linkIcon:v=Nl,unlinkIcon:y=jl,styles:k=["solid","dashed","dotted","double"],reset:x}){const w=(0,s.useInstanceId)(jm),[C,S]=(0,o.useState)(h),E=n?h:C,M=n||S,$={first:g,second:m,third:f,fourth:b,link:v,unlink:y},A=(0,o.useRef)(),T=i?.[0]||d,R="px"!==T.unit?.1:1,L="px"!==T.unit&&""!==T.unit?12:200,O=(e,n)=>{T[n]=e;const o=JSON.parse(JSON.stringify(T));t([o])},D=e=>{T.unit=e;const n=JSON.parse(JSON.stringify(T));t([n])};return[t&&(0,_.jsxs)("div",{ref:A,className:`components-base-control kadence-border-control kadence-border-control${w}${l?" "+l:""}`,children:[e&&(0,_.jsxs)("div",{className:"kadence-border-control__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-border-control__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),x&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(d,i),icon:gl,onClick:()=>{"function"==typeof x?x():t([d])}})})]}),M&&(0,_.jsx)(r.Button,{className:"kadence-radio-item border-control-toggle is-single only-icon",label:"individual"!==E?(0,a.__)("Individual","kadence-blocks-pro"):(0,a.__)("Linked","kadence-blocks-pro"),icon:"individual"!==E?$.link:$.unlink,onClick:()=>M("individual"!==E?"individual":"linked"),isPressed:"individual"!==E,isTertiary:"individual"===E})]}),(0,_.jsxs)("div",{className:"kadence-controls-content",children:["individual"!==E&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Nm,{value:T?.top||["","",""],onChange:e=>(e=>{T.top=e,T.bottom=e,T.right=e,T.left=e;const n=JSON.parse(JSON.stringify(T));t([n])})(e),min:0,max:L,step:R,help:c,styles:k,unit:T?.unit||"px",units:p,onUnit:e=>D(e),defaultValue:d.top,allowReset:!1})}),"individual"===E&&(0,_.jsxs)("div",{className:"kadence-border-controls-grid-wrap",children:[(0,_.jsx)("div",{className:"kadence-border-control-grid-visualizer",style:{borderTopColor:T?.top?.[0]?Dm(T?.top?.[0]):void 0,borderTopStyle:T?.top?.[1]||void 0,borderTopWidth:T?.top?.[2]?"clamp( 1px, "+T?.top?.[2]+T?.unit+", 10px )":void 0,borderRightColor:T?.right?.[0]?Dm(T?.right?.[0]):void 0,borderRightStyle:T?.right?.[1]||void 0,borderRightWidth:T?.right?.[2]?"clamp( 1px, "+T?.right?.[2]+T?.unit+", 10px )":void 0,borderBottomColor:T?.bottom?.[0]?Dm(T?.bottom?.[0]):void 0,borderBottomStyle:T?.bottom?.[1]||void 0,borderBottomWidth:T?.bottom?.[2]?"clamp( 1px, "+T?.bottom?.[2]+T?.unit+", 10px )":void 0,borderLeftColor:T?.left?.[0]?Dm(T?.left?.[0]):void 0,borderLeftStyle:T?.left?.[1]||void 0,borderLeftWidth:T?.left?.[2]?"clamp( 1px, "+T?.left?.[2]+T?.unit+", 10px )":void 0}}),(0,_.jsx)(Nm,{value:T?.top||["","",""],onChange:e=>O(e,"top"),min:0,max:L,step:R,help:c,styles:k,unit:T?.unit||"px",units:p,onUnit:e=>D(e),defaultValue:d.top,allowReset:!1}),(0,_.jsx)(Nm,{value:T?.left||["","",""],onChange:e=>O(e,"left"),min:0,max:L,step:R,help:c,styles:k,unit:T?.unit||"px",units:p,onUnit:e=>D(e),defaultValue:d.left,allowReset:!1}),(0,_.jsx)(Nm,{value:T?.right||["","",""],onChange:e=>O(e,"right"),min:0,max:L,step:R,help:c,styles:k,unit:T?.unit||"px",units:p,onUnit:e=>D(e),defaultValue:d.right,allowReset:!1}),(0,_.jsx)(Nm,{value:T?.bottom||["","",""],onChange:e=>O(e,"bottom"),min:0,max:L,step:R,help:c,styles:k,unit:T?.unit||"px",units:p,onUnit:e=>D(e),defaultValue:d.bottom,allowReset:!1})]})]})]})]}function Im({label:e,onChange:t,onChangeTablet:n,onChangeMobile:i,onControl:l,mobileValue:d="",tabletValue:h="",value:p="",control:g="individual",units:m=["px","em","rem"],firstIcon:f=Sl,secondIcon:b=El,thirdIcon:v=Ml,fourthIcon:y=$l,linkIcon:k=Nl,unlinkIcon:x=jl,styles:w=["solid","dashed","dotted","double"],deskDefault:C={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"},tabletDefault:S={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""},mobileDefault:E={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""},reset:M=!0,defaultLinked:$=!0}){const A=(0,s.useInstanceId)(Im),T={first:f,second:b,third:v,fourth:y,link:k,unlink:x},[R,L]=(0,o.useState)(g),O=l?g:R,D=l||L,[N,j]=(0,o.useState)("Desktop"),I=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);I!==N&&j(I),(0,o.useEffect)(()=>{$&&("Mobile"===I?(0,u.isEqual)(d?.[0]?.top,d?.[0]?.bottom)&&(0,u.isEqual)(d?.[0]?.top,d?.[0]?.bottom)&&(0,u.isEqual)(d?.[0]?.top,d?.[0]?.right)&&(0,u.isEqual)(d?.[0]?.top,d?.[0]?.left)&&D("linked"):"Tablet"===I?(0,u.isEqual)(h?.[0]?.top,h?.[0]?.bottom)&&(0,u.isEqual)(h?.[0]?.top,h?.[0]?.bottom)&&(0,u.isEqual)(h?.[0]?.top,h?.[0]?.right)&&(0,u.isEqual)(h?.[0]?.top,h?.[0]?.left)&&D("linked"):(0,u.isEqual)(p?.[0]?.top,p?.[0]?.bottom)&&(0,u.isEqual)(p?.[0]?.top,p?.[0]?.bottom)&&(0,u.isEqual)(p?.[0]?.top,p?.[0]?.right)&&(0,u.isEqual)(p?.[0]?.top,p?.[0]?.left)&&D("linked")),d&&(0,u.isEqual)(p?.[0]?.unit,d?.[0]?.unit)&&(d[0].unit="",i(d)),h&&(0,u.isEqual)(p?.[0]?.unit,h?.[0]?.unit)&&(h[0].unit="",n(h))},[]);const{setPreviewDeviceType:z}=(0,c.useDispatch)("kadenceblocks/data"),F=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let B=p?.[0]?p[0]:C;"Tablet"===N?B=h?.[0]?h[0]:S:"Mobile"===N&&(B=d?.[0]?d[0]:E);const P={},H=d?.[0]?.unit?d[0].unit:p?.[0]?.unit?p[0].unit:"px",V=h?.[0]?.unit?h[0].unit:p?.[0]?.unit?p[0].unit:"px";P.Mobile=(0,_.jsx)(jm,{value:d?JSON.parse(JSON.stringify(d)):void 0,onChange:e=>i(e),control:O,onControl:e=>D(e),defaultValue:E,styles:w,units:[H],firstIcon:f,secondIcon:b,thirdIcon:v,fourthIcon:y,linkIcon:k,unlinkIcon:x},"mobile"+A),P.Tablet=(0,_.jsx)(jm,{value:h?JSON.parse(JSON.stringify(h)):void 0,onChange:e=>n(e),control:O,onControl:e=>D(e),defaultValue:S,styles:w,units:[V],firstIcon:f,secondIcon:b,thirdIcon:v,fourthIcon:y,linkIcon:k,unlinkIcon:x},"tablet"+A),P.Desktop=(0,_.jsx)(jm,{value:p?JSON.parse(JSON.stringify(p)):void 0,onChange:e=>t(e),control:O,onControl:e=>D(e),defaultValue:C,styles:w,units:m,firstIcon:f,secondIcon:b,thirdIcon:v,fourthIcon:y,linkIcon:k,unlinkIcon:x},"desktop"+A);let W=C;return"Mobile"===N?W=E:"Mobile"===N&&(W=S),[t&&n&&i&&(0,_.jsxs)("div",{className:`components-base-control kb-responsive-border-control kadence-border-box-control kadence-border-box-control${A}`,children:[(0,_.jsxs)("div",{className:"kadence-border-control__header kadence-component__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),M&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(W,B),icon:gl,onClick:()=>{"Tablet"===N?n([S]):"Mobile"===N?i([E]):t([C])}})})]}),(0,_.jsx)(r.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(F,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===N?" is-active":""}`,isSmall:!0,"aria-pressed":N===e,onClick:()=>{return z(kl(t=e)),void j(kl(t));var t},children:n},t))}),D&&(0,_.jsx)(r.Button,{isSmall:!0,className:"kadence-radio-item border-control-toggle is-single only-icon",label:"individual"!==O?(0,a.__)("Individual","kadence-blocks-pro"):(0,a.__)("Linked","kadence-blocks-pro"),icon:"individual"!==O?T.link:T.unlink,onClick:()=>D("individual"!==O?"individual":"linked"),isPressed:"individual"!==O,isTertiary:"individual"===O})]}),(0,_.jsx)("div",{className:"kb-responsive-border-control-inner",children:P[N]?P[N]:P.Desktop})]})]}function zm({label:e,placement:t="top",measurement:n,onChange:i,step:s=1,max:l=100,min:c=0,icon:d,unit:h="",allowEmpty:p=!1,className:g="",preset:m=""}){const[f,b]=function(){const[e,t]=(0,o.useState)(!1);return[e,e=>{t(e)}]}();return(0,_.jsxs)("div",{className:`measure-input-wrap measure-input-${t}`,children:[(0,_.jsxs)("div",{className:"input-setting-toggle",children:[(0,_.jsx)(r.Button,{isSmall:!0,className:"input-setting-toggle-btn",disabled:!(!n||"auto"!=n),tabIndex:"-1",onClick:n&&"auto"==n?"":function(){b(!f)},children:e}),f&&(0,_.jsxs)(r.Popover,{onClose:function(){b(!1)},className:"kadence-range-popover-settings",children:[(0,_.jsx)(ed,{beforeIcon:d,value:void 0!==n?n:"",onChange:e=>i(e?parseFloat(e):e),min:c,max:l,step:s}),""!==h||m&&Array.isArray(m)&&m.length>1&&(0,_.jsx)(r.ButtonGroup,{className:"kb-preset-size-options","aria-label":(0,a.__)("Choose a Preset Size","kadence-blocks-pro"),children:(0,u.map)(m&&Array.isArray(m)&&m.length>1?m:{px:[0,10,20,40,60,80,100,140,160,200],em:[0,.5,1,1.5,2,2.5,3,3.5,4,4.5],rem:[0,.5,1,1.5,2,2.5,3,3.5,4,4.5],"%":[0,2,5,8,10,20,30,40,50,60],vh:[0,2,5,8,10,20,30,40,50,60],vw:[0,2,5,8,10,20,30,40,50,60]}[h],e=>(0,_.jsx)(r.Button,{className:"kb-preset-sizes",isSmall:!0,onClick:()=>i(parseFloat(e)),children:e},e))})]})]}),(0,_.jsx)(r.TextControl,{label:e,hideLabelFromVision:!0,type:"number",className:"measure-inputs",disabled:!(!n||"auto"!=n),placeholder:n&&"auto"==n?(0,a.__)("auto","kadence-blocks-pro"):void 0,value:void 0!==n?n:"",onChange:e=>i(e?Number(e):e),min:c,max:l,step:s}),(0,_.jsx)("span",{className:"measure-label",children:d})]})}function Fm({label:e,measurement:t,control:n="individual",onChange:i,onControl:s=!1,step:l=1,max:c=100,min:d=0,firstIcon:h=Sl,secondIcon:p=El,thirdIcon:g=Ml,fourthIcon:m=$l,linkIcon:f=Nl,unlinkIcon:b=jl,isBorderRadius:v=!1,unit:y="",onUnit:k,showUnit:x=!1,units:w=["px","em","rem"],allowEmpty:C=!1,key:S,className:E="",reset:M,preset:$=""}){const A={first:v?Al:h,second:v?Tl:p,third:v?Rl:g,fourth:v?Ll:m,link:v?Ol:f,unlink:v?Dl:b},T=C?"":0,[R,L]=(0,o.useState)(n),O=s?n:R,D=s||L,N=t;return(0,_.jsx)(_.Fragment,{children:i&&(0,_.jsxs)("div",{className:`components-base-control kb-measure-control ${A.first!==Sl?"kb-measure-corners-control":"kb-measure-sides-control"}${""!==E?" "+E:""}`,children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header kadence-title-bar",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-measure-control__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),M&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!(!(0,u.isEqual)(["","","",""],N)&&!(0,u.isEqual)(["","auto","","auto"],N)),icon:gl,onClick:()=>{"function"==typeof M?M():i(["","","",""])}})})]}),D&&(0,_.jsx)(r.Button,{isSmall:!0,className:"kadence-radio-item kadence-control-toggle radio-custom is-single only-icon",label:"individual"!==O?(0,a.__)("Individual","kadence-blocks-pro"):(0,a.__)("Linked","kadence-blocks-pro"),icon:"individual"!==O?f:b,onClick:()=>D("individual"!==O?"individual":"linked"),isPressed:"individual"!==O,isTertiary:"individual"===O})]}),(0,_.jsxs)("div",{className:"kadence-controls-content",children:["individual"!==O&&(0,_.jsx)(ed,{value:t?t[0]:"",onChange:e=>i([e,e,e,e]),min:d,max:c,step:l}),"individual"===O&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)(zm,{placement:"top",label:(0,a.__)("Top","kadence-blocks-pro"),measurement:t?t[0]:"",onChange:e=>i([e?Number(e):e,t&&void 0!==t[1]&&""!==t[1]?t[1]:T,t&&void 0!==t[2]&&""!==t[2]?t[2]:T,t&&void 0!==t[3]&&""!==t[3]?t[3]:T]),min:d,max:c,step:l,icon:A.first,unit:y,allowEmpty:C,preset:$}),(0,_.jsx)(zm,{placement:"right",label:(0,a.__)("Right","kadence-blocks-pro"),measurement:t?t[1]:"",onChange:e=>i([t&&void 0!==t[0]&&""!==t[0]?t[0]:T,e?Number(e):e,t&&void 0!==t[2]&&""!==t[2]?t[2]:T,t&&void 0!==t[3]&&""!==t[3]?t[3]:T]),min:d,max:c,step:l,icon:A.second,unit:y,allowEmpty:C,preset:$}),(0,_.jsx)(zm,{placement:"bottom",label:(0,a.__)("Bottom","kadence-blocks-pro"),measurement:t?t[2]:"",onChange:e=>i([t&&void 0!==t[0]&&""!==t[0]?t[0]:T,t&&void 0!==t[1]&&""!==t[1]?t[1]:T,e?Number(e):e,t&&void 0!==t[3]&&""!==t[3]?t[3]:T]),min:d,max:c,step:l,icon:A.third,unit:y,allowEmpty:C,preset:$}),(0,_.jsx)(zm,{placement:"left",label:(0,a.__)("Left","kadence-blocks-pro"),measurement:t?t[3]:"",onChange:e=>i([t&&void 0!==t[0]&&""!==t[0]?t[0]:T,t&&void 0!==t[1]&&""!==t[1]?t[1]:T,t&&void 0!==t[2]&&""!==t[2]?t[2]:T,e?Number(e):e]),min:d,max:c,step:l,icon:A.fourth,unit:y,allowEmpty:C,preset:$})]}),(k||x)&&(0,_.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{k&&k(e.target.value)},value:y,children:w.map(e=>(0,_.jsx)("option",{value:e,selected:y===e||void 0,children:e},e))})})]})]},S)})}function Bm({label:e,subLabel:t,onChange:n,onChangeTablet:i,onChangeMobile:s,mobileValue:l,tabletValue:d,value:h,onChangeControl:p=!1,control:g="individual",step:m=1,max:f=100,min:b=0,unit:v="",onUnit:y,showUnit:k=!1,units:x=["px","em","rem"],allowEmpty:w=!0,preset:C="",isBorderRadius:S=!1,firstIcon:E=Sl,secondIcon:M=El,thirdIcon:$=Ml,fourthIcon:A=$l,linkIcon:T=Nl,unlinkIcon:R=jl,reset:L=!0}){const O=(0,o.useRef)(),[D,N]=(0,o.useState)(g),j=p?g:D,I=p||N,z=!!w,[F,B]=(0,o.useState)("Desktop"),P=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);P!==F&&B(P);const{setPreviewDeviceType:H}=(0,c.useDispatch)("kadenceblocks/data"),V=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let W=h||["","","",""];"Tablet"===F?W=d||["","","",""]:"Mobile"===F&&(W=l||["","","",""]);const U={};return U.Mobile=(0,_.jsx)(Fm,{className:"measure-mobile-size",label:t?(0,a.__)("Mobile:","kadence-blocks-pro")+t:void 0,measurement:l||["","","",""],control:j,onChange:e=>s(e),onControl:e=>I(e),min:b,max:f,step:m,allowEmpty:z,unit:v,showUnit:!0,units:[v],preset:C,isBorderRadius:S,firstIcon:E,secondIcon:M,thirdIcon:$,fourthIcon:A,linkIcon:T,unlinkIcon:R},2),U.Tablet=(0,_.jsx)(Fm,{className:"measure-tablet-size",label:t?(0,a.__)("Tablet:","kadence-blocks-pro")+t:void 0,measurement:d||["","","",""],control:j,onChange:e=>i(e),onControl:e=>I(e),min:b,max:f,step:m,allowEmpty:z,unit:v,showUnit:!0,units:[v],preset:C,isBorderRadius:S,firstIcon:E,secondIcon:M,thirdIcon:$,fourthIcon:A,linkIcon:T,unlinkIcon:R},1),U.Desktop=(0,_.jsx)(Fm,{className:"measure-desktop-size",label:t||void 0,measurement:h||["","","",""],control:j,onChange:e=>n(e),onControl:e=>I(e),min:b,max:f,step:m,allowEmpty:z,unit:v,onUnit:y||void 0,showUnit:k,units:x,preset:C,isBorderRadius:S,firstIcon:E,secondIcon:M,thirdIcon:$,fourthIcon:A,linkIcon:T,unlinkIcon:R},0),[n&&i&&s&&(0,_.jsxs)("div",{ref:O,className:"components-base-control kb-responsive-measure-control",children:[(0,_.jsxs)("div",{className:"kadence-component__header kadence-title-bar",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-title-bar kadence-measure-control__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),L&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!(!(0,u.isEqual)(["","","",""],W)&&!(0,u.isEqual)(["","auto","","auto"],W)),icon:gl,onClick:()=>{"Tablet"===F?i(["","","",""]):"Mobile"===F?s(["","","",""]):n(["","","",""])}})})]}),(0,_.jsx)(r.ButtonGroup,{className:"kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(V,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===F?" is-active":""}`,isSmall:!0,"aria-pressed":F===e,onClick:()=>{return H(kl(t=e)),void B(kl(t));var t},children:n},t))}),I&&(0,_.jsx)(r.Button,{isSmall:!0,className:"kadence-radio-item kadence-control-toggle radio-custom is-single only-icon",label:"individual"!==j?(0,a.__)("Individual","kadence-blocks-pro"):(0,a.__)("Linked","kadence-blocks-pro"),icon:"individual"!==j?T:R,onClick:()=>I("individual"!==j?"individual":"linked"),isPressed:"individual"!==j,isTertiary:"individual"===j})]}),(0,_.jsx)("div",{className:"kb-responsive-measure-control-inner",children:U[F]?U[F]:U.Desktop})]})]}function Pm({label:e,value:t,onChange:n,options:o=[],className:i,hideLabel:a=!1,wrap:l=!1,allowClear:c=!1,...d}){const u=`inspector-radio-control-${(0,s.useInstanceId)(Pm)}`;return(0,_.jsxs)("div",{className:"components-base-control kadence-radio-buttons-wrap"+(i?" "+i:""),children:[e&&(0,_.jsx)("div",{className:"kadence-component__header",children:(0,_.jsx)("label",{htmlFor:u,className:"kadence-radio-control-label components-radio-control__label kadence-component__header__title",children:e})}),(0,_.jsx)(r.ButtonGroup,{id:u,className:"kadence-radio-container-control"+(l?" kadence-radio-control-flexwrap":""),children:o.map((e,o)=>(0,_.jsx)(r.Button,{isTertiary:t!==e.value,className:`kadence-radio-item radio-${e.value}${a?" radio-no-label":""}${void 0!==e?.isDisabled&&e.isDisabled?" kb-disabled-btn":""}`,isPrimary:t===e.value,icon:void 0!==e.icon?e.icon:void 0,"aria-pressed":t===e.value,onClick:()=>{void 0!==e?.isDisabled&&e.isDisabled||(c&&e.value===t?n(""):n(e.value))},label:a?e.label:e?.tooltip,children:!a&&e.label},`${e.label}-${e.value}-${o}`))})]})}const Hm=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 136 136",children:(0,_.jsx)("g",{children:(0,_.jsx)("path",{fill:"#929292",strokeWidth:"0",d:"M68 35.97c-17.66 0-32.03 14.37-32.03 32.03S50.34 100.03 68 100.03 100.03 85.66 100.03 68 85.66 35.97 68 35.97M91.03 68c0 4.51-1.31 8.73-3.57 12.29l-32.13-31.5c3.64-2.4 7.99-3.81 12.67-3.81 12.7 0 23.03 10.33 23.03 23.03Zm-46.06 0c0-4.77 1.46-9.21 3.96-12.89l32.33 31.7A22.92 22.92 0 0 1 68 91.03C55.3 91.03 44.97 80.7 44.97 68"})})});class Vm extends o.Component{constructor(e,t=!0,n,o,i,r,s,a,l,c,d,u,h,p,g,m,f,b){super(...arguments)}render(){const e=[{value:"none",label:(0,a.__)("None","kadence-blocks-pro"),icon:Hm},{value:"soft-inner-glow",label:(0,a.__)("Soft Inner Glow","kadence-blocks-pro"),icon:"soft-inner-glow"},{value:"soft-outer-glow",label:(0,a.__)("Soft Outer Glow","kadence-blocks-pro"),icon:"soft-outer-glow"},{value:"right-offset-glow",label:(0,a.__)("Right Offset Glow","kadence-blocks-pro"),icon:"right-offset-glow"},{value:"bottom-offset-glow",label:(0,a.__)("Bottom Offset Glow","kadence-blocks-pro"),icon:"bottom-offset-glow"},{value:"inner-solid",label:(0,a.__)("Inner Solid","kadence-blocks-pro"),icon:"inner-solid"},{value:"right-bottom-solid",label:(0,a.__)("Right Bottom Solid","kadence-blocks-pro"),icon:"right-bottom-solid"},{value:"top-left-solid",label:(0,a.__)("Top Left Solid","kadence-blocks-pro"),icon:"top-left-solid"}],t={none:{hOffset:0,vOffset:0,blur:0,spread:0,inset:!1},"soft-inner-glow":{hOffset:0,vOffset:0,blur:60,spread:-15,inset:!0},"soft-outer-glow":{hOffset:0,vOffset:0,blur:60,spread:5,inset:!1},"right-offset-glow":{hOffset:20,vOffset:20,blur:30,spread:0,inset:!1},"bottom-offset-glow":{hOffset:0,vOffset:35,blur:30,spread:-5,inset:!1},"inner-solid":{hOffset:0,vOffset:0,blur:0,spread:15,inset:!0},"right-bottom-solid":{hOffset:15,vOffset:15,blur:0,spread:0,inset:!1},"top-left-solid":{hOffset:-15,vOffset:-15,blur:0,spread:0,inset:!1}},n=e=>{Promise.resolve().then(()=>this.props.onHOffsetChange(t[e].hOffset)).then(()=>this.props.onVOffsetChange(t[e].vOffset)).then(()=>this.props.onBlurChange(t[e].blur)).then(()=>this.props.onSpreadChange(t[e].spread)).then(()=>this.props.onInsetChange(t[e].inset))};return(0,_.jsxs)("div",{className:"components-base-control kt-box-shadow-container",children:[this.props.label&&(0,_.jsxs)("div",{className:"kt-box-shadow-label",children:[(0,_.jsx)("h2",{className:"kt-beside-color-label",children:this.props.label}),this.props.onEnableChange&&(0,_.jsx)(r.ToggleControl,{checked:this.props.enable,onChange:e=>this.props.onEnableChange(e)})]}),this.props.enable&&(0,_.jsxs)("div",{className:"kt-inner-sub-section",children:[(0,_.jsx)(Pm,{value:0,options:e,wrap:!0,hideLabel:!0,className:"kadence-box-shadow-radio-btns",onChange:e=>{n(e)}}),(0,_.jsxs)("div",{className:"kt-inner-sub-section-row",children:[(0,_.jsxs)("div",{className:"kt-box-color-settings kt-box-shadow-subset",children:[(0,_.jsx)("p",{className:"kt-box-shadow-title",children:(0,a.__)("Color")}),(0,_.jsx)(wg,{value:this.props.color?this.props.color:this.props.colorDefault,default:this.props.colorDefault,onChange:e=>this.props.onColorChange(e),opacityValue:this.props.opacity,onOpacityChange:e=>this.props.onOpacityChange(e),onArrayChange:this.props.onArrayChange?(e,t)=>this.props.onArrayChange(e,t):void 0})]}),(0,_.jsxs)("div",{className:"kt-box-x-settings kt-box-shadow-subset",children:[(0,_.jsx)("p",{className:"kt-box-shadow-title",children:(0,a.__)("X")}),(0,_.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,_.jsx)("div",{className:"components-base-control__field",children:(0,_.jsx)("input",{value:void 0!==this.props.hOffset?this.props.hOffset:"",onChange:e=>this.props.onHOffsetChange(Number(e.target.value)),min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})})})]}),(0,_.jsxs)("div",{className:"kt-box-y-settings kt-box-shadow-subset",children:[(0,_.jsx)("p",{className:"kt-box-shadow-title",children:(0,a.__)("Y")}),(0,_.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,_.jsx)("div",{className:"components-base-control__field",children:(0,_.jsx)("input",{value:void 0!==this.props.vOffset?this.props.vOffset:"",onChange:e=>this.props.onVOffsetChange(Number(e.target.value)),min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})})})]}),(0,_.jsxs)("div",{className:"kt-box-blur-settings kt-box-shadow-subset",children:[(0,_.jsx)("p",{className:"kt-box-shadow-title",children:(0,a.__)("Blur")}),(0,_.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,_.jsx)("div",{className:"components-base-control__field",children:(0,_.jsx)("input",{value:void 0!==this.props.blur?this.props.blur:"",onChange:e=>this.props.onBlurChange(Number(e.target.value)),min:0,max:200,step:1,type:"number",className:"components-text-control__input"})})})]}),(0,_.jsxs)("div",{className:"kt-box-spread-settings kt-box-shadow-subset",children:[(0,_.jsx)("p",{className:"kt-box-shadow-title",children:(0,a.__)("Spread")}),(0,_.jsx)("div",{className:"components-base-control kt-boxshadow-number-input",children:(0,_.jsx)("div",{className:"components-base-control__field",children:(0,_.jsx)("input",{value:void 0!==this.props.spread?this.props.spread:"",onChange:e=>this.props.onSpreadChange(Number(e.target.value)),min:-200,max:200,step:1,type:"number",className:"components-text-control__input"})})})]})]}),this.props.onInsetChange&&(0,_.jsx)("div",{className:"kt-box-inset-settings",children:(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Inset"),checked:this.props.inset,onChange:e=>this.props.onInsetChange(e)})})]})]})}}const Wm=Vm;function Um({colorBase:e="color",colorLabel:t=(0,a.__)("Color","kadence-blocks-pro"),backgroundBase:n="",backgroundLabel:o=(0,a.__)("Background","kadence-blocks-pro"),backgroundTypeBase:i="",backgroundTypeLabel:r=(0,a.__)("Type","kadence-blocks-pro"),backgroundGradientBase:s="",backgroundGradientLabel:l=(0,a.__)("Gradient","kadence-blocks-pro"),borderBase:c="",borderLabel:d=(0,a.__)("Border","kadence-blocks-pro"),borderRadiusBase:u="",borderRadiusUnitBase:h="",borderRadiusLabel:p=(0,a.__)("Border Radius","kadence-blocks-pro"),shadowBase:g="",shadowLabel:m=(0,a.__)("Box Shadow","kadence-blocks-pro"),includeActive:f=!0,setAttributes:b,setMetaAttribute:v,attributes:y,setActivePreview:k,activePreview:x}){const w=y[e],C=y[e+"Tablet"],S=y[e+"Mobile"],E=y[e+"Hover"],M=y[e+"HoverTablet"],$=y[e+"HoverMobile"],A=y[e+"Active"],T=y[e+"ActiveTablet"],R=y[e+"ActiveMobile"],L=y[i],O=y[i+"Hover"],D=y[i+"Active"],N=y[s],j=y[s+"Hover"],I=y[s+"Active"],z=y[n],F=y[n+"Tablet"],B=y[n+"Mobile"],P=y[n+"Hover"],H=y[n+"HoverTablet"],V=y[n+"HoverMobile"],W=y[n+"Active"],U=y[n+"ActiveTablet"],G=y[n+"ActiveMobile"],Z=y[c],q=y[c+"Tablet"],K=y[c+"Mobile"],Y=y[c+"Hover"],X=y[c+"HoverTablet"],Q=y[c+"HoverMobile"],J=y[c+"Active"],ee=y[c+"ActiveTablet"],te=y[c+"ActiveMobile"],ne=y[u],oe=y[u+"Tablet"],ie=y[u+"Mobile"],re=y[u+"Hover"],se=y[u+"HoverTablet"],ae=y[u+"HoverMobile"],le=y[u+"Active"],ce=y[u+"ActiveTablet"],de=y[u+"ActiveMobile"],ue=y[h],he=y[h+"Hover"],pe=y[h+"Active"],ge=y[g],me=y[g+"Hover"],fe=y[g+"Active"],be=(e,t)=>{v?v(t,e):b({[e]:t})},ve=(e,t,n)=>{const o=n[t].map((t,n)=>(0===n&&(t={...t,...e}),t));be(t,o)},ye=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_g,{label:t,value:w,tabletValue:C,mobileValue:S,default:"",onChange:t=>be(e,t),onChangeTablet:t=>be(e+"Tablet",t),onChangeMobile:t=>be(e+"Mobile",t)},"normal"),n&&i&&s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)($g,{label:r,type:L||"normal",onChange:e=>be(i,e),allowedTypes:["normal","gradient"]}),"gradient"===L&&(0,_.jsx)(Om,{value:N,onChange:e=>be(s,e),gradients:[]}),"normal"===L&&(0,_.jsx)(_g,{label:o,value:z,tabletValue:F,mobileValue:B,default:"",onChange:e=>be(n,e),onChangeTablet:e=>be(n+"Tablet",e),onChangeMobile:e=>be(n+"Mobile",e)},"normalb")]}),n&&!i&&(0,_.jsx)(_g,{label:o,value:z,tabletValue:F,mobileValue:B,default:"",onChange:e=>be(n,e),onChangeTablet:e=>be(n+"Tablet",e),onChangeMobile:e=>be(n+"Mobile",e)},"normalb"),c&&(0,_.jsx)(Im,{label:d,value:Z,tabletValue:q,mobileValue:K,onChange:e=>be(c,e),onChangeTablet:e=>be(c+"Tablet",e),onChangeMobile:e=>be(c+"Mobile",e)}),u&&(0,_.jsx)(Bm,{label:p,value:ne,tabletValue:oe,mobileValue:ie,onChange:e=>be(u,e),onChangeTablet:e=>be(u+"Tablet",e),onChangeMobile:e=>be(u+"Mobile",e),min:0,max:"em"===ue||"rem"===ue?24:100,step:"em"===ue||"rem"===ue?.1:1,unit:ue,units:["px","em","rem","%"],onUnit:e=>be(h,e),isBorderRadius:!0,allowEmpty:!0}),g&&(0,_.jsx)(Wm,{label:m,enable:void 0===ge||void 0===ge[0]||void 0===ge[0].enable||ge[0].enable,color:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].color?ge[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{ve({color:e,opacity:t},g,y)},opacity:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].opacity?ge[0].opacity:.2,hOffset:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].hOffset?ge[0].hOffset:0,vOffset:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].vOffset?ge[0].vOffset:0,blur:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].blur?ge[0].blur:14,spread:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].spread?ge[0].spread:0,inset:void 0!==ge&&void 0!==ge[0]&&void 0!==ge[0].inset&&ge[0].inset,onEnableChange:e=>{ve({enable:e},g,y)},onColorChange:e=>{ve({color:e},g,y)},onOpacityChange:e=>{ve({opacity:e},g,y)},onHOffsetChange:e=>{ve({hOffset:e},g,y)},onVOffsetChange:e=>{ve({vOffset:e},g,y)},onBlurChange:e=>{ve({blur:e},g,y)},onSpreadChange:e=>{ve({spread:e},g,y)},onInsetChange:e=>{ve({inset:e},g,y)}})]}),ke=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_g,{label:t,value:E,tabletValue:M,mobileValue:$,default:"",onChange:t=>be(e+"Hover",t),onChangeTablet:t=>be(e+"HoverTablet",t),onChangeMobile:t=>be(e+"HoverMobile",t)},"hover"),n&&i&&s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)($g,{label:r,type:O||"normal",onChange:e=>be(i+"Hover",e),allowedTypes:["normal","gradient"]}),"gradient"===O&&(0,_.jsx)(Om,{value:j,onChange:e=>be(s+"Hover",e),gradients:[]}),"normal"===O&&(0,_.jsx)(_g,{label:o,value:P,tabletValue:H,mobileValue:V,default:"",onChange:e=>be(n+"Hover",e),onChangeTablet:e=>be(n+"HoverTablet",e),onChangeMobile:e=>be(n+"HoverMobile",e)},"hoverb")]}),n&&!i&&(0,_.jsx)(_g,{label:o,value:P,tabletValue:H,mobileValue:V,default:"",onChange:e=>be(n+"Hover",e),onChangeTablet:e=>be(n+"HoverTablet",e),onChangeMobile:e=>be(n+"HoverMobile",e)},"hoverb"),c&&(0,_.jsx)(Im,{label:d,value:Y,tabletValue:X,mobileValue:Q,onChange:e=>be(c+"Hover",e),onChangeTablet:e=>be(c+"HoverTablet",e),onChangeMobile:e=>be(c+"HoverMobile",e)}),u&&(0,_.jsx)(Bm,{label:p,value:re,tabletValue:se,mobileValue:ae,onChange:e=>be(u+"Hover",e),onChangeTablet:e=>be(u+"HoverTablet",e),onChangeMobile:e=>be(u+"HoverMobile",e),min:0,max:"em"===he||"rem"===he?24:100,step:"em"===he||"rem"===he?.1:1,unit:he,units:["px","em","rem","%"],onUnit:e=>be(h+"Hover",e),isBorderRadius:!0,allowEmpty:!0}),g&&(0,_.jsx)(Wm,{label:m,enable:void 0===me||void 0===me[0]||void 0===me[0].enable||me[0].enable,color:void 0!==me&&void 0!==me[0]&&void 0!==me[0].color?me[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{ve({color:e,opacity:t},g+"Hover",y)},opacity:void 0!==me&&void 0!==me[0]&&void 0!==me[0].opacity?me[0].opacity:.2,hOffset:void 0!==me&&void 0!==me[0]&&void 0!==me[0].hOffset?me[0].hOffset:0,vOffset:void 0!==me&&void 0!==me[0]&&void 0!==me[0].vOffset?me[0].vOffset:0,blur:void 0!==me&&void 0!==me[0]&&void 0!==me[0].blur?me[0].blur:14,spread:void 0!==me&&void 0!==me[0]&&void 0!==me[0].spread?me[0].spread:0,inset:void 0!==me&&void 0!==me[0]&&void 0!==me[0].inset&&me[0].inset,onEnableChange:e=>{ve({enable:e},g+"Hover",y)},onColorChange:e=>{ve({color:e},g+"Hover",y)},onOpacityChange:e=>{ve({opacity:e},g+"Hover",y)},onHOffsetChange:e=>{ve({hOffset:e},g+"Hover",y)},onVOffsetChange:e=>{ve({vOffset:e},g+"Hover",y)},onBlurChange:e=>{ve({blur:e},g+"Hover",y)},onSpreadChange:e=>{ve({spread:e},g+"Hover",y)},onInsetChange:e=>{ve({inset:e},g+"Hover",y)}})]}),xe=f?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(_g,{label:t,value:A,tabletValue:T,mobileValue:R,default:"",onChange:t=>be(e+"Active",t),onChangeTablet:t=>be(e+"ActiveTablet",t),onChangeMobile:t=>be(e+"ActiveMobile",t)},"active"),n&&i&&s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)($g,{label:r,type:D||"normal",onChange:e=>be(i+"Active",e),allowedTypes:["normal","gradient"]}),"gradient"===D&&(0,_.jsx)(Om,{value:I,onChange:e=>be(s+"Active",e),gradients:[]}),"normal"===D&&(0,_.jsx)(_g,{label:o,value:W,tabletValue:U,mobileValue:G,default:"",onChange:e=>be(n+"Active",e),onChangeTablet:e=>be(n+"ActiveTablet",e),onChangeMobile:e=>be(n+"ActiveMobile",e)},"activeb")]}),n&&!i&&(0,_.jsx)(_g,{label:o,value:W,tabletValue:U,mobileValue:G,default:"",onChange:e=>be(n+"Active",e),onChangeTablet:e=>be(n+"ActiveTablet",e),onChangeMobile:e=>be(n+"ActiveMobile",e)},"activeb"),c&&(0,_.jsx)(Im,{label:d,value:J,tabletValue:ee,mobileValue:te,onChange:e=>be(c+"Active",e),onChangeTablet:e=>be(c+"ActiveTablet",e),onChangeMobile:e=>be(c+"ActiveMobile",e)}),u&&(0,_.jsx)(Bm,{label:p,value:le,tabletValue:ce,mobileValue:de,onChange:e=>be(u+"Active",e),onChangeTablet:e=>be(u+"ActiveTablet",e),onChangeMobile:e=>be(u+"ActiveMobile",e),min:0,max:"em"===pe||"rem"===pe?24:100,step:"em"===pe||"rem"===pe?.1:1,unit:pe,units:["px","em","rem","%"],onUnit:e=>be(h+"Active",e),isBorderRadius:!0,allowEmpty:!0}),g&&(0,_.jsx)(Wm,{label:m,enable:void 0===fe||void 0===fe[0]||void 0===fe[0].enable||fe[0].enable,color:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].color?fe[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{ve({color:e,opacity:t},g+"Active",y)},opacity:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].opacity?fe[0].opacity:.2,hOffset:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].hOffset?fe[0].hOffset:0,vOffset:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].vOffset?fe[0].vOffset:0,blur:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].blur?fe[0].blur:14,spread:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].spread?fe[0].spread:0,inset:void 0!==fe&&void 0!==fe[0]&&void 0!==fe[0].inset&&fe[0].inset,onEnableChange:e=>{ve({enable:e},g+"Active",y)},onColorChange:e=>{ve({color:e},g+"Active",y)},onOpacityChange:e=>{ve({opacity:e},g+"Active",y)},onHOffsetChange:e=>{ve({hOffset:e},g+"Active",y)},onVOffsetChange:e=>{ve({vOffset:e},g+"Active",y)},onBlurChange:e=>{ve({blur:e},g+"Active",y)},onSpreadChange:e=>{ve({spread:e},g+"Active",y)},onInsetChange:e=>{ve({inset:e},g+"Active",y)}})]}):null;return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(id,{normal:ye,hover:ke,active:xe,setActivePreview:k,activePreview:x})})}function Gm({colorBase:e="color",backgroundBase:t="background",colorLabel:n="Color",backgroundLabel:o="Background",size:i="",suffix:r="",includeBackground:s=!0,includeActive:l=!0,setAttributes:c,setMetaAttributes:d,attributes:u}){const h=u[e+r+i],p=u[t+r+i],g=u[e+r+"Hover"+i],m=u[t+r+"Hover"+i],f=u[e+r+"Active"+i],b=u[t+r+"Active"+i],v=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(wg,{label:n,value:h,default:"",onChange:t=>c({[e+r+i]:t})},"normal"),s&&(0,_.jsx)(wg,{label:o,value:p,default:"",onChange:e=>c({[t+r+i]:e})},"normalb")]}),y=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(wg,{label:n+(0,a.__)(" Hover","kadence-blocks-pro"),value:g,default:"",onChange:t=>c({[e+r+"Hover"+i]:t})},"hover"),s&&(0,_.jsx)(wg,{label:o+(0,a.__)(" Hover","kadence-blocks-pro"),value:m,default:"",onChange:e=>c({[t+r+"Hover"+i]:e})},"hoverb")]}),k=l?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(wg,{label:n+(0,a.__)(" Active","kadence-blocks-pro"),value:f,default:"",onChange:t=>c({[e+r+"Active"+i]:t})},"active"),s&&(0,_.jsx)(wg,{label:o+(0,a.__)(" Active","kadence-blocks-pro"),value:b,default:"",onChange:e=>c({[t+r+"Active"+i]:e})},"activeb")]}):null;return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(id,{normal:v,hover:y,active:k})})}function Zm({label:e,onChange:t,value:n="",className:o="",step:i=1,max:s=200,min:a=0,defaultValue:l="",unit:c="",onUnit:d,units:h=["px","em","rem"],parentLabel:p=null,reset:g=!0}){const m=h.map(e=>({value:e,label:e}));return[t&&(0,_.jsxs)("div",{className:"components-base-control component-font-size-control kadence-font-size-control"+(o?" "+o:""),children:[e&&(0,_.jsx)("div",{className:"kadence-font-size-control__header kadence-component__header",children:(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),g&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(l,n),icon:gl,onClick:()=>{"function"==typeof g?g():t(l)}})})]})}),(0,_.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,_.jsx)(r.__experimentalUnitControl,{label:p&&e?e:void 0,labelPosition:"top",min:a,max:s,step:i,units:m,value:n,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e)}),(0,_.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{"-"===e.target.value?d(""):d(e.target.value)},value:c,children:h.map(e=>(0,_.jsx)("option",{value:e,selected:c===e||""===c&&"-"===e||void 0,children:e},e))})})]})]})]}function qm({label:e,onChange:t,onChangeTablet:n,onChangeMobile:i,mobileValue:s,tabletValue:l,value:d,units:h=["px","em","rem"],onUnit:p,step:g=1,max:m=200,min:f=0,unit:b="",defaultValue:v=["","",""],compressedDevice:y=!1,reset:k=!0}){const x=(0,o.useRef)(),[w,C]=(0,o.useState)("Desktop"),S=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);S!==w&&C(S);const{setPreviewDeviceType:E}=(0,c.useDispatch)("kadenceblocks/data"),M=e=>{E(kl(e)),C(kl(e))},$=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],A={Desktop:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),Tablet:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),Mobile:(0,_.jsx)(r.Dashicon,{icon:"smartphone"})},T=[d,l,s],R={};return R.Mobile=(0,_.jsx)(Zm,{value:s||void 0,onChange:e=>i(e),onUnit:p,defaultValue:v[2],units:h,step:g,max:m,min:f,unit:b}),R.Tablet=(0,_.jsx)(Zm,{value:l||void 0,onChange:e=>n(e),onUnit:p,defaultValue:v[1],units:h,step:g,max:m,min:f,unit:b}),R.Desktop=(0,_.jsx)(Zm,{value:d||void 0,onChange:e=>t(e),onUnit:p,defaultValue:v[0],units:h,step:g,max:m,min:f,unit:b}),[t&&n&&i&&(0,_.jsxs)("div",{ref:x,className:"components-base-control kb-responsive-unit-control kadence-unit-control",children:[(0,_.jsxs)("div",{className:"kadence-unit-control__header kadence-component__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-unit__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(v,T),icon:gl,onClick:()=>{"function"==typeof k?k():"Mobile"===w?i(v[2]):"Tablet"===w?n(v[1]):t(v[0])}})})]}),!y&&(0,_.jsx)(r.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)($,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===w?" is-active":""}`,isSmall:!0,"aria-pressed":w===e,onClick:()=>M(e),children:n},t))}),y&&(0,_.jsx)(r.DropdownMenu,{className:"kb-responsive-options-dropdown",icon:A[w]?A[w]:A.Desktop,label:(0,a.__)("Target Device","kadence-blocks-pro"),controls:$.map(e=>{return[{title:(t=e).name,icon:t.title,isActive:w===t.name,onClick:()=>{M(t.name)}}];var t})})]}),(0,_.jsx)("div",{className:"kb-responsive-border-control-inner",children:R[w]?R[w]:R.Desktop})]})]}function Km({children:e}){return(0,_.jsx)("div",{className:"components-base-control kadence-two-column-group",children:e})}function Ym({level:e,isPressed:t=!1}){const n={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z",span:"M.067 10.841l1.461-.092c.032.237.096.418.193.542.158.202.384.302.678.302.219 0 .388-.051.507-.154a.465.465 0 00.178-.358.454.454 0 00-.17-.345c-.113-.102-.375-.198-.786-.289-.674-.151-1.154-.352-1.441-.603a1.214 1.214 0 01-.434-.959c0-.255.074-.497.222-.724.148-.227.371-.405.668-.535.297-.13.705-.195 1.222-.195.635 0 1.119.118 1.453.354.333.236.531.612.594 1.127l-1.447.085c-.038-.224-.119-.387-.242-.488-.123-.102-.293-.153-.51-.153-.179 0-.313.038-.404.114a.346.346 0 00-.135.276c0 .079.037.15.112.213.072.066.244.127.515.183.671.145 1.152.291 1.442.439.29.148.502.332.634.551a1.4 1.4 0 01.198.736c0 .318-.088.612-.264.881a1.66 1.66 0 01-.739.612c-.317.139-.715.208-1.197.208-.845 0-1.43-.162-1.755-.488-.326-.325-.51-.739-.553-1.24zm5.274-3.326h2.552c.556 0 .973.133 1.249.397.277.264.416.641.416 1.129 0 .501-.151.893-.453 1.176-.301.282-.762.424-1.381.424h-.841v1.844H5.341v-4.97zm9.84 0h1.434l1.871 2.749V7.515h1.447v4.97h-1.447l-1.861-2.729v2.729h-1.444v-4.97zm-2.352 4.149H11.08l-.241.821H9.27l1.867-4.97h1.675l1.867 4.97h-1.606l-.244-.821zm-.322-1.074l-.55-1.786-.545 1.786h1.095zm-5.624-.956h.377c.296 0 .503-.051.623-.154a.498.498 0 00.18-.395.553.553 0 00-.156-.397c-.104-.108-.299-.162-.586-.162h-.438v1.108z",div:"M.035 6.184h3.504c.691 0 1.249.094 1.674.281.425.187.776.456 1.054.807.278.35.479.758.604 1.223.125.465.187.958.187 1.479 0 .816-.092 1.448-.278 1.898a3.136 3.136 0 01-.773 1.129c-.33.304-.684.506-1.062.607a5.464 5.464 0 01-1.406.208H.035V6.184zm8.356 0h2.364v7.632H8.391V6.184zm3.301 0h2.468l1.718 5.492 1.692-5.492h2.395l-2.832 7.632h-2.557l-2.884-7.632zM2.394 7.912v4.17h.578c.492 0 .843-.054 1.051-.164.208-.109.372-.3.49-.572.118-.273.177-.714.177-1.325 0-.809-.132-1.362-.396-1.661-.264-.298-.701-.448-1.312-.448h-.588z"};return n.hasOwnProperty(e)?(0,_.jsx)(r.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t,children:(0,_.jsx)(r.Path,{d:n[e]})}):null}function Xm({label:e,onChange:t,value:n="",className:o="",ariaLabel:i=(0,a.__)("Change HTML Tag","kadence-blocks-pro"),reset:s=!1,headingOnly:l=!1,tagLowLevel:c=1,tagHighLevel:d=7,otherTags:h}){const p="span"!==n&&"div"!==n&&"p"!==n?n:2,g="span"===n||"div"===n||"p"===n?n:"heading",m=(0,u.range)(c,d).map(e=>[{icon:(0,_.jsx)(Ym,{level:e,isPressed:!(e!==p||!g||"heading"!==g)}),title:(0,a.sprintf)(/* translators: %d: heading level e.g: "1", "2", "3" */ /* translators: %d: heading level e.g: "1", "2", "3" */ (0,a.__)("Heading %d","kadence-blocks-pro"),e),isActive:!(e!==p||!g||"heading"!==g),onClick:()=>t(e)}]),f=m.map(e=>e);return(h&&h.p||!h)&&f.push([{icon:(0,_.jsx)(Ym,{level:"p",isPressed:!(!g||"p"!==g)}),title:(0,a.__)("Paragraph","kadence-blocks-pro"),isActive:!(!g||"p"!==g),onClick:()=>t("p")}]),(h&&h.span||!h)&&f.push([{icon:(0,_.jsx)(Ym,{level:"span",isPressed:!(!g||"span"!==g)}),title:(0,a.__)("Span","kadence-blocks-pro"),isActive:!(!g||"span"!==g),onClick:()=>t("span")}]),(h&&h.div||!h)&&f.push([{icon:(0,_.jsx)(Ym,{level:"div",isPressed:!(!g||"div"!==g)}),title:(0,a.__)("div","kadence-blocks-pro"),isActive:!(!g||"div"!==g),onClick:()=>t("div")}]),[t&&(0,_.jsxs)("div",{className:"kb-tag-level-control components-base-control"+(o?" "+o:""),children:[e&&(0,_.jsx)("div",{className:"kadence-component__header kadence-tag-select__header",children:e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-tag-select__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),s&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(defaultValue,n),icon:gl,onClick:()=>onReset()})})]})}),(0,_.jsx)("div",{className:"kadence-controls-content kb-tag-select-control-inner",children:(0,_.jsx)(r.ToolbarGroup,{isCollapsed:!1,label:i,controls:l?m:f})})]})]}class Qm extends o.Component{constructor(){super(...arguments),this.state={typographyOptions:[],typographySelectOptions:[],typographyWeights:[],typographyStyles:[],typographySubsets:""}}componentDidMount(){const e="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_font_names?kadence_blocks_params.g_font_names.map(e=>({label:e,value:e,google:!0})):{};let t=[{type:"group",label:(0,a.__)("Standard Fonts","kadence-blocks-pro"),options:[{label:"System Default",value:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',google:!1},{label:"Arial, Helvetica, sans-serif",value:"Arial, Helvetica, sans-serif",google:!1},{label:'"Arial Black", Gadget, sans-serif',value:'"Arial Black", Gadget, sans-serif',google:!1},{label:"Helvetica, sans-serif",value:"Helvetica, sans-serif",google:!1},{label:'"Comic Sans MS", cursive, sans-serif',value:'"Comic Sans MS", cursive, sans-serif',google:!1},{label:"Impact, Charcoal, sans-serif",value:"Impact, Charcoal, sans-serif",google:!1},{label:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',google:!1},{label:"Tahoma, Geneva, sans-serif",value:"Tahoma, Geneva, sans-serif",google:!1},{label:'"Trebuchet MS", Helvetica, sans-serif',value:'"Trebuchet MS", Helvetica, sans-serif',google:!1},{label:"Verdana, Geneva, sans-serif",value:"Verdana, Geneva, sans-serif",google:!1},{label:"Georgia, serif",value:"Georgia, serif",google:!1},{label:'"Palatino Linotype", "Book Antiqua", Palatino, serif',value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',google:!1},{label:'"Times New Roman", Times, serif',value:'"Times New Roman", Times, serif',google:!1},{label:"Courier, monospace",value:"Courier, monospace",google:!1},{label:'"Lucida Console", Monaco, monospace',value:'"Lucida Console", Monaco, monospace',google:!1}]},{type:"group",label:(0,a.__)("Google Fonts","kadence-blocks-pro"),options:e}];if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.c_fonts){const e=[];Object.keys(kadence_blocks_params.c_fonts).forEach(function(t){const n=kadence_blocks_params.c_fonts[t].name,o=kadence_blocks_params.c_fonts[t].label?kadence_blocks_params.c_fonts[t].label:n,i=[];Object.keys(kadence_blocks_params.c_fonts[t].weights).forEach(function(e){i.push({value:kadence_blocks_params.c_fonts[t].weights[e],label:kadence_blocks_params.c_fonts[t].weights[e]})});const r=[];Object.keys(kadence_blocks_params.c_fonts[t].styles).forEach(function(e){r.push({value:kadence_blocks_params.c_fonts[t].weights[e],label:kadence_blocks_params.c_fonts[t].weights[e]})}),e.push({label:o,value:n,google:!1,weights:i,styles:r})}),t=[{type:"group",label:(0,a.__)("Custom Fonts","kadence-blocks-pro"),options:e}].concat(t)}if("undefined"!=typeof kadence_blocks_params&&kadence_blocks_params?.isKadenceT){const e=[{label:"Inherit Heading Font Family",value:"var( --global-heading-font-family, inherit )",google:!1},{label:"Inherit Body Font Family",value:"var( --global-body-font-family, inherit )",google:!1}];t=[{type:"group",label:(0,a.__)("Theme Global Fonts","kadence-blocks-pro"),options:e}].concat(t)}let n=(0,l.applyFilters)("kadence.typography_options",t),o=[].concat.apply([],n.map(e=>e.options));const i=kadence_blocks_params.configuration?JSON.parse(kadence_blocks_params.configuration):[];void 0!==i["kadence/typography"]&&"object"==typeof i["kadence/typography"]&&(void 0===i["kadence/typography"].showAll||i["kadence/typography"].showAll||(n=i["kadence/typography"].choiceArray,o=i["kadence/typography"].choiceArray)),this.setState({typographyOptions:n}),this.setState({typographySelectOptions:o}),this.setTypographyOptions(o)}componentDidUpdate(e){this.props.fontFamily!==e.fontFamily&&this.setTypographyOptions(this.state.typographySelectOptions)}setTypographyOptions(e){let t=[{value:"inherit",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"400",label:(0,a.__)("Normal","kadence-blocks-pro")},{value:"bold",label:(0,a.__)("Bold","kadence-blocks-pro")}];const n=[{value:"inherit",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"100",label:(0,a.__)("Thin 100","kadence-blocks-pro")},{value:"200",label:(0,a.__)("Extra-Light 200","kadence-blocks-pro")},{value:"300",label:(0,a.__)("Light 300","kadence-blocks-pro")},{value:"400",label:(0,a.__)("Regular","kadence-blocks-pro")},{value:"500",label:(0,a.__)("Medium 500","kadence-blocks-pro")},{value:"600",label:(0,a.__)("Semi-Bold 600","kadence-blocks-pro")},{value:"700",label:(0,a.__)("Bold 700","kadence-blocks-pro")},{value:"800",label:(0,a.__)("Extra-Bold 800","kadence-blocks-pro")},{value:"900",label:(0,a.__)("Ultra-Bold 900","kadence-blocks-pro")}],o=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),i="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.headingWeights?kadence_blocks_params.headingWeights:[],r="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.bodyWeights?kadence_blocks_params.bodyWeights:[],s="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.buttonWeights?kadence_blocks_params.buttonWeights:[];o&&"heading"===this.props.fontGroup&&i&&Array.isArray(i)&&i.length&&(t=i),o&&"body"===this.props.fontGroup&&r&&Array.isArray(r)&&r.length&&(t=r),o&&"button"===this.props.fontGroup&&s&&Array.isArray(s)&&s.length&&(t=s);const l=[{value:"normal",label:(0,a.__)("Normal","kadence-blocks-pro")},{value:"italic",label:(0,a.__)("Italic","kadence-blocks-pro")}],c=e?e.filter(({value:e})=>e===this.props.fontFamily):"";let d=t,u=l,h="";c&&c[0]&&(void 0!==c[0].weights&&(d=c[0].weights),void 0!==c[0].styles&&(u=c[0].styles)),'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'===this.props.fontFamily?d=n:"var( --global-heading-font-family, inherit )"===this.props.fontFamily?d=i:"var( --global-body-font-family, inherit )"===this.props.fontFamily?d=r:this.props.googleFont&&this.props.fontFamily&&"undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[this.props.fontFamily]&&(d=kadence_blocks_params.g_fonts[this.props.fontFamily].w.map(e=>({label:kl(e),value:e})),u=kadence_blocks_params.g_fonts[this.props.fontFamily].i.map(e=>({label:kl(e),value:e})),h=kadence_blocks_params.g_fonts[this.props.fontFamily].s.map(e=>({label:kl(e),value:e}))),this.setState({typographyWeights:d}),this.setState({typographyStyles:u}),this.setState({typographySubsets:h}),this.setState({fontFamilyValue:c})}render(){const{tagLevel:e,label:t,htmlTag:n="heading",tagLowLevel:o=1,tagHighLevel:i=7,lineHeight:s,lineHeightType:l="",fontSize:c,fontSizeType:d="px",googleFont:h,loadGoogleFont:p,fontFamily:g,fontVariant:m,fontWeight:f,fontStyle:b,fontSubset:v,letterSpacing:y,margin:k,marginControl:x,padding:w,paddingControl:C,onTagLevel:S,onTagLevelHTML:E,onLineHeight:M,onFontSize:$,onFontFamily:A,onFontVariant:T,onFontWeight:R,onFontStyle:L,onFontSubset:O,onFontChange:D,onFontArrayChange:N,onLoadGoogleFont:j,onGoogleFont:I,onLetterSpacing:z,onFontSizeType:F,onLineHeightType:B,onPadding:P,onPaddingControl:H,onMargin:V,onMarginControl:W,loadItalic:U,onLoadItalic:G,textTransform:Z,onTextTransform:q,reLetterSpacing:K=!1,letterSpacingType:Y="px",otherTags:X=[],onLetterSpacingType:Q,reset:J,defaultValue:ee={size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"px",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}}=this.props,{controlSize:te,typographySelectOptions:ne,typographyOptions:oe,typographySubsets:ie,typographyStyles:re,typographyWeights:se,fontFamilyValue:ae}=this.state,le={size:c,sizeType:d,lineHeight:s,lineType:l,letterSpacing:y,letterType:Y,textTransform:Z,family:g,google:h,style:b,weight:f,variant:m,subset:v,loadGoogle:p},ce=(0,u.range)(o,i).map(t=>[{icon:(0,_.jsx)(Ym,{level:t,isPressed:!(1!==e||!n||"heading"!==n)}),title:(0,a.sprintf)(/* translators: %d: heading level e.g: "1", "2", "3" */ /* translators: %d: heading level e.g: "1", "2", "3" */ (0,a.__)("Heading %d","kadence-blocks-pro"),t),isActive:!(t!==e||!n||"heading"!==n),onClick:()=>E(t,"heading")}]);X.p&&ce.push([{icon:(0,_.jsx)(Ym,{level:"p",isPressed:!(!n||"p"!==n)}),title:(0,a.__)("Paragraph","kadence-blocks-pro"),isActive:!(!n||"p"!==n),onClick:()=>E(2,"p")}]),X.span&&ce.push([{icon:(0,_.jsx)(Ym,{level:"span",isPressed:!(!n||"span"!==n)}),title:(0,a.__)("Span","kadence-blocks-pro"),isActive:!(!n||"span"!==n),onClick:()=>E(2,"span")}]),X.div&&ce.push([{icon:(0,_.jsx)(Ym,{level:"div",isPressed:!(!n||"div"!==n)}),title:(0,a.__)("Div","kadence-blocks-pro"),isActive:!(!n||"div"!==n),onClick:()=>E(2,"div")}]);const de=()=>{N?N({google:!1,family:"",variant:"",weight:"inherit",style:"normal",subset:""}):(I(!1),A(""),T(""),R("inherit"),L("normal"),O(""))},ue=[{value:"none",label:(0,a.__)("-","kadence-blocks-pro"),tooltip:(0,a.__)("None","kadence-blocks-pro")},{value:"uppercase",label:(0,a.__)("AB","kadence-blocks-pro"),tooltip:(0,a.__)("Uppercase","kadence-blocks-pro")},{value:"lowercase",label:(0,a.__)("ab","kadence-blocks-pro"),tooltip:(0,a.__)("Lowercase","kadence-blocks-pro")},{value:"capitalize",label:(0,a.__)("Ab","kadence-blocks-pro"),tooltip:(0,a.__)("Capitalize","kadence-blocks-pro")}],he="px"!==d?120:3e3,pe="px"!==d?.001:1,ge="px"!==l?.2:5,me="px"!==l?120:3e3,fe="px"!==l?.001:1,be=se.some(function(e){return"regular"===e.value});return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{className:"components-base-control kb-typography-control",children:[t&&(0,_.jsx)("div",{className:"kadence-title-bar kadence-component__header",children:(0,_.jsx)("label",{className:"kadence-heading-fontfamily-title components-typography-control__label kadence-component__header__title",children:t})}),(0,_.jsxs)("div",{className:"kadence-title-bar",children:[t&&(0,_.jsx)("h2",{className:"kt-heading-fontfamily-title",children:t}),J&&(0,_.jsx)(r.Button,{className:"is-reset is-single",isSmall:!0,disabled:!!(0,u.isEqual)(le,ee),icon:gl,onClick:()=>{"function"==typeof J?J():N(ee)}})]}),S&&(0,_.jsxs)(_.Fragment,{children:[E&&(0,_.jsx)(Xm,{label:(0,a.__)("HTML Tag","kadence-blocks-pro"),value:"heading"===n?e:n,onChange:e=>{"div"===e||"p"===e||"span"===e?E(2,e):E(e,"heading")},otherTags:X}),!E&&(0,_.jsx)(Xm,{label:(0,a.__)("HTML Tag","kadence-blocks-pro"),value:e,headingOnly:!0,tagHighLevel:i,tagLowLevel:o,onChange:e=>{S(e)}})]}),$&&F&&(0,_.jsx)(xl,{label:(0,a.__)("Font Size","kadence-blocks-pro"),value:c&&void 0!==c[0]?c[0]:"",onChange:e=>$([e,c&&void 0!==c[1]?c[1]:"",c&&void 0!==c[2]?c[2]:""]),tabletValue:c&&void 0!==c[1]?c[1]:"",onChangeTablet:e=>$([c&&void 0!==c[0]?c[0]:"",e,c&&void 0!==c[2]?c[2]:""]),mobileValue:c&&void 0!==c[2]?c[2]:"",onChangeMobile:e=>$([c&&void 0!==c[0]?c[0]:"",c&&void 0!==c[1]?c[1]:"",e]),min:0,max:he,step:pe,unit:d||"px",onUnit:e=>F(e),units:["px","em","rem","vw"]}),!q&&M&&B&&(0,_.jsx)(qm,{label:(0,a.__)("Line Height","kadence-blocks-pro"),value:s&&void 0!==s[0]?s[0]:"",onChange:e=>M([e,s&&void 0!==s[1]?s[1]:"",s&&void 0!==s[2]?s[2]:""]),tabletValue:s&&void 0!==s[1]?s[1]:"",onChangeTablet:e=>M([s&&void 0!==s[0]?s[0]:"",e,s&&void 0!==s[2]?s[2]:""]),mobileValue:s&&void 0!==s[2]?s[2]:"",onChangeMobile:e=>M([s&&void 0!==s[0]?s[0]:"",s&&void 0!==s[1]?s[1]:"",e]),min:ge,max:me,step:fe,unit:l||"-",onUnit:e=>B(e),units:["-","px","em","rem"]}),q&&M&&B&&(0,_.jsxs)(Km,{className:"kb-font-settings",children:[(0,_.jsx)(qm,{label:(0,a.__)("Line Height","kadence-blocks-pro"),value:s&&void 0!==s[0]?s[0]:"",onChange:e=>M([e,s&&void 0!==s[1]?s[1]:"",s&&void 0!==s[2]?s[2]:""]),tabletValue:s&&void 0!==s[1]?s[1]:"",onChangeTablet:e=>M([s&&void 0!==s[0]?s[0]:"",e,s&&void 0!==s[2]?s[2]:""]),mobileValue:s&&void 0!==s[2]?s[2]:"",onChangeMobile:e=>M([s&&void 0!==s[0]?s[0]:"",s&&void 0!==s[1]?s[1]:"",e]),min:ge,max:me,step:fe,unit:l||"-",onUnit:e=>B(e),units:["-","px","em","rem"],compressedDevice:!0}),(0,_.jsx)(Pm,{label:(0,a.__)("Letter Case","kadence-blocks-pro"),value:Z,options:ue,className:"kb-letter-case",allowClear:!0,onChange:e=>q(e)})]}),q&&(!M||!B)&&(0,_.jsx)(Pm,{label:(0,a.__)("Letter Case","kadence-blocks-pro"),value:Z,options:ue,className:"kb-letter-case",allowClear:!0,onChange:e=>q(e)}),A&&de&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"components-base-control",children:[(0,_.jsx)("div",{className:"kadence-component__header kadence-title-bar",children:(0,_.jsx)("label",{className:"kadence-control-title kadence-component__header__title",children:(0,a.__)("Font Family","kadence-blocks-pro")})}),(0,_.jsx)("div",{className:"typography-family-select-form-row",children:(0,_.jsx)(vi,{options:oe,value:ae,classNamePrefix:"kb-react-select",isMulti:!1,maxMenuHeight:300,isClearable:!0,placeholder:(0,a.__)("Select a font family","kadence-blocks-pro"),onChange:e=>{if(null===e)de();else{let t,n,o;e.google?(t="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].v.includes("regular")?kadence_blocks_params.g_fonts[e.value].v[0]:"regular",n="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&!kadence_blocks_params.g_fonts[e.value].w.includes("regular")?kadence_blocks_params.g_fonts[e.value].w[0]:"400",o="undefined"!=typeof kadence_blocks_params&&kadence_blocks_params.g_fonts&&kadence_blocks_params.g_fonts[e.value].s.length>1?"latin":""):(o="",t="",n=void 0!==e.weights?.[0]?.value?e.weights[0].value:"inherit"),N?N({google:e.google,family:e.value,variant:t,weight:n,style:"normal",subset:o}):(D(e),T(t),R(n),L("normal"),O(o))}},styles:{control:(e,t)=>({...e,borderColor:"rgb(30, 30, 30)",borderRadius:"2px",":hover":{borderColor:"rgb(30, 30, 30)"}})}})})]}),R&&(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Font Weight","kadence-blocks-pro"),value:"400"===f&&be?"regular":f,options:se,onChange:e=>{if(h){let t;t="italic"===b?"regular"===e?"italic":e+"italic":e,N?N({variant:t,weight:"regular"===e?"400":e}):(T(t),R("regular"===e?"400":e))}else N?N({variant:"",weight:"regular"===e?"400":e}):(T(""),R("regular"===e?"400":e))},className:"kb-select-style"}),g&&L&&(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Font Style","kadence-blocks-pro"),value:b,options:re,onChange:e=>{if(h){let t;t="italic"===e?f&&"regular"!==f?f+"italic":"italic":f||"regular",N?N({variant:t,style:e}):(T(t),L(e))}else N?N({variant:"",style:e}):(T(""),L(e))},className:"kb-select-style"}),g&&h&&j&&(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Load Google Font on Frontend","kadence-blocks-pro"),checked:p,onChange:j}),g&&h&&p&&L&&"normal"===b&&G&&void 0!==re[1]&&void 0!==re[1].value&&"italic"===re[1].value&&(0,_.jsx)(r.ToggleControl,{label:(0,a.__)("Load Italic Styles Also","kadence-blocks-pro"),checked:U,onChange:G}),z&&K&&(0,_.jsx)(qm,{label:(0,a.__)("Letter Spacing","kadence-blocks-pro"),value:void 0!==K&&void 0!==K[0]?K[0]:"",onChange:e=>z([e,void 0!==K&&void 0!==K[1]?K[1]:"",void 0!==K&&void 0!==K[2]?K[2]:""]),tabletValue:void 0!==K&&void 0!==K[1]?K[1]:"",onChangeTablet:e=>z([void 0!==K&&void 0!==K[0]?K[0]:"",e,void 0!==K&&void 0!==K[2]?K[2]:""]),mobileValue:void 0!==K&&void 0!==K[2]?K[2]:"",onChangeMobile:e=>z([void 0!==K&&void 0!==K[0]?K[0]:"",void 0!==K&&void 0!==K[1]?K[1]:"",e]),min:-5,max:25,step:Q&&"px"===Q?.1:.01,unit:Q?Y:"px",onUnit:e=>Q(e),units:Q?["px","em","rem"]:["px"]}),z&&!K&&(0,_.jsx)(ed,{label:(0,a.__)("Letter Spacing","kadence-blocks-pro"),value:void 0!==y?y:"",onChange:e=>z(e),min:-5,max:25,step:.1})]}),P&&H&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Fm,{label:(0,a.__)("Padding (px)","kadence-blocks-pro"),measurement:w||"",control:C,onChange:e=>P(e),onControl:e=>H(e),min:0,max:100,step:1,allowEmpty:!1})}),V&&W&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(Fm,{label:(0,a.__)("Margin (px)","kadence-blocks-pro"),measurement:k||"",control:x,onChange:e=>V(e),onControl:e=>W(e),min:-100,max:100,step:1,allowEmpty:!1})})]})})}}const Jm=Qm;function ef({children:e,title:t}){return(0,_.jsxs)("div",{className:"kb-sub-panel",children:[t&&(0,_.jsx)("h2",{className:"kb-sub-panel-title",children:t}),(0,_.jsx)("div",{className:"kb-inner-sub-panel",children:e})]})}function tf({label:e,onChange:t,onChangeTablet:n,onChangeMobile:i,onControl:l,value:d="",tabletValue:h="",mobileValue:p="",control:g="individual",units:m=["px","em","rem"],firstIcon:f=Sl,secondIcon:b=El,thirdIcon:v=Ml,fourthIcon:y=$l,linkIcon:k=Nl,unlinkIcon:x=jl,styles:w=["solid","dashed","dotted","double"],deskDefault:C={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"},tabletDefault:S={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""},mobileDefault:E={top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""},reset:M=!0,defaultLinked:$=!0}){const A=(0,s.useInstanceId)(tf),T=d?.[0]||C,R=h?.[0]||S,L=p?.[0]||E,[O,D]=(0,o.useState)(g),[N,j]=(0,o.useState)("Desktop"),I=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);I!==N&&j(I),(0,o.useEffect)(()=>{L&&(0,u.isEqual)(T.unit,L?.unit)&&(L.unit="",G("","unit")),R&&(0,u.isEqual)(T.unit,R?.unit)&&(R.unit="",U("","unit"))},[]);const{setPreviewDeviceType:z}=(0,c.useDispatch)("kadenceblocks/data"),F=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}];let B=T;"Tablet"===N?B=R:"Mobile"===N&&(B=L);const P={},H=L?.unit?L.unit:T?.unit?T.unit:"px",V=R?.unit?R.unit:T?.unit?T.unit:"px",W=(e,n)=>{var o=JSON.parse(JSON.stringify(d));o[0][n]=e,t(o)},U=(e,t)=>{var o=JSON.parse(JSON.stringify(h));o[0][t]=e,n(o)},G=(e,t)=>{var n=JSON.parse(JSON.stringify(p));n[0][t]=e,i(n)};P.Mobile=(0,_.jsx)(Nm,{value:L?.bottom?JSON.parse(JSON.stringify(L?.bottom)):void 0,unit:L?.unit?JSON.parse(JSON.stringify(L?.unit)):"px",onChange:e=>G(e,"bottom"),onUnit:e=>G(e,"unit"),defaultValue:E?.bottom,styles:w,units:[H],firstIcon:f,secondIcon:b,thirdIcon:v,fourthIcon:y},"mobile"+A),P.Tablet=(0,_.jsx)(Nm,{value:R?.bottom?JSON.parse(JSON.stringify(R?.bottom)):void 0,unit:R?.unit?JSON.parse(JSON.stringify(R?.unit)):"px",onChange:e=>U(e,"bottom"),onUnit:e=>U(e,"unit"),defaultValue:S?.bottom,styles:w,units:[V],firstIcon:f,secondIcon:b,thirdIcon:v,fourthIcon:y},"tablet"+A),P.Desktop=(0,_.jsx)(Nm,{value:T?.bottom?JSON.parse(JSON.stringify(T?.bottom)):void 0,unit:T?.unit?JSON.parse(JSON.stringify(T?.unit)):"px",onChange:e=>W(e,"bottom"),onUnit:e=>W(e,"unit"),defaultValue:C?.bottom,styles:w,units:m,firstIcon:f,secondIcon:b,thirdIcon:v,fourthIcon:y},"desktop"+A);let Z=C;return"Mobile"===N?Z=E:"Mobile"===N&&(Z=S),[t&&n&&i&&(0,_.jsxs)("div",{className:`components-base-control kb-responsive-border-control kadence-border-box-control kadence-border-box-control${A}`,children:[(0,_.jsxs)("div",{className:"kadence-border-control__header kadence-component__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),M&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(Z,B),icon:gl,onClick:()=>{"Tablet"===N?n([S]):"Mobile"===N?i([E]):t([C])}})})]}),(0,_.jsx)(r.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(F,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===N?" is-active":""}`,isSmall:!0,"aria-pressed":N===e,onClick:()=>{return z(kl(t=e)),void j(kl(t));var t},children:n},t))})]}),(0,_.jsx)("div",{className:"kb-responsive-border-control-inner",children:P[N]?P[N]:P.Desktop})]})]}const nf=e=>e.map((e,t)=>{const{nE:n,aBs:i,children:r=null}=e,s=Object.keys(i).filter(e=>"fill"!==e&&"stroke"!==e&&"none"!==i[e]).reduce((e,t)=>(e[t]=i[t],e),{});let a={};return"none"===i.fill&&i.stroke&&(a={fill:"none",stroke:"currentColor"}),(0,o.createElement)(n,{key:t,...s,...a},null===r?r:nf(r))}),of=e=>{const{style:t,className:n,icon:o,name:i,htmltag:r,...s}=e,a=i.substring(0,2),l=i.substring(0,3),c=!(!a||"fe"!=a),d=c?"none":"currentColor",u=c?e.strokeWidth:void 0,h=c?"currentColor":void 0,p=c?"round":void 0,g=c?"round":void 0,m=e.ariaHidden?"true":void 0,f=r||"div",b=!(!e.icon||!e.icon.vB)&&e.icon.vB.split(" ");return(0,_.jsx)(f,{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",...t},className:n,children:(0,_.jsxs)("svg",{style:{display:"inline-block",verticalAlign:"middle"},viewBox:e.icon?e.icon.vB:"0 0 24 24",height:e.size,width:e.size,fill:d,stroke:h,xmlns:e.xmlns,preserveAspectRatio:l&&"fas"!==l&&b&&void 0!==b[2]&&void 0!==b[3]&&b[2]!==b[3]?"xMinYMin meet":void 0,"stroke-width":u,"stroke-linecap":p,"stroke-linejoin":g,"aria-hidden":m,children:[e.title?(0,_.jsx)("title",{children:e.title}):null,e.icon&&nf(e.icon.cD)]})})};of.defaultProps={size:24,xmlns:"http://www.w3.org/2000/svg",strokeWidth:2,htmltag:"div"},of.propTypes={icon:Ed().string.isRequired,size:Ed().oneOfType([Ed().number,Ed().string]),style:Ed().object,className:Ed().string};const rf=of,sf=(0,e.createElement)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(R.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function af({isOpen:e,setIsOpen:t,callback:n}){const[i,s]=(0,o.useState)(""),[l,d]=(0,o.useState)([]),[u,h]=(0,o.useState)([]),[p,g]=(0,o.useState)(null),[f,b]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[k,x]=(0,o.useState)(!1),[w,C]=(0,o.useState)(0),{createSuccessNotice:S}=(0,c.useDispatch)(Yc.store),[E,M]=(0,o.useState)(1),[$,A]=(0,o.useState)(!1),T=(0,o.useRef)(null);(0,o.useEffect)(()=>{e&&T.current&&T.current.focus()},[e]);const R=async()=>{if(d([]),h([]),g(null),b(!0),M(1),C(0),i)try{const e=await m()({path:(0,W.addQueryArgs)("/kb-custom-svg/v1/search",{search:i,page:1}),method:"GET"});e.success?(d(e),h(e.svgs.icons),A(e.svgs.has_more)):g(`Error ${e.code}: ${e.message||"Unexpected error occurred."}`)}catch(e){g(`Error ${e.code||"unknown"}: ${e.message||"An unexpected error occurred."}`)}finally{b(!1)}else b(!1)};return(0,_.jsxs)("div",{className:"svg-search-modal",children:[(0,_.jsxs)("div",{className:"svg-search-modal__input_row",children:[(0,_.jsx)(r.TextControl,{label:(0,a.__)("Search Icons","kadence-blocks-pro"),hideLabelFromVision:!0,value:i,placeholder:(0,a.__)("Search Icons","kadence-blocks-pro"),onChange:e=>{s(e)},onKeyDown:e=>{"Enter"===e.key&&R()},ref:T}),(0,_.jsx)(r.Button,{isPrimary:!0,className:"svg-search-modal__search-button",onClick:R,isBusy:f,disabled:f||0===i.length||v||k,children:(0,a.__)("Search","kadence-blocks-pro")})]}),f&&(0,_.jsx)("div",{className:"svg-search-modal__loading",children:(0,_.jsx)(r.Spinner,{className:"wp-spinner"})}),!f&&u.length>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("ul",{className:"svg-search-modal__results",children:u.map((e,t)=>(0,_.jsx)("li",{onClick:()=>(e=>{C(e)})(t),style:{width:"84px",height:"88px",border:w===t?"2px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba))":"2px solid transparent"},children:(0,_.jsx)("img",{src:e.url,alt:e.title})},t))}),(0,_.jsxs)("div",{className:"footer",children:[(0,_.jsx)(r.Button,{isSecondary:!0,onClick:async()=>{if($){g(null),y(!0);try{const e=E+1,t=await m()({path:(0,W.addQueryArgs)("/kb-custom-svg/v1/search",{search:i,page:e}),method:"GET"});t.svgs&&t.svgs.icons?(h(e=>[...e,...t.svgs.icons]),M(e),A(t.svgs.has_more)):g("No further results found.")}catch(e){g("Failed to load more icons, please try again.")}finally{y(!1)}}},isBusy:v,disabled:!$||k,children:(0,a.__)("Load More","kadence-blocks-pro")}),(0,_.jsx)(r.Button,{isPrimary:!0,isBusy:k,disabled:v,onClick:()=>(async()=>{if(u&&w>=0){const e=u[w];if(!e||!e.url)return void g((0,a.__)("Selected SVG is invalid. Please try again.","kadence-blocks-pro"));const o=e.url;x(!0);try{const i=await m()({path:"/kb-custom-svg/v1/search/add",method:"POST",data:{svgUrl:o,title:e.title||"",id:e.id||""}});if(!i?.value||!i?.label)throw new Error((0,a.__)("Invalid response from the server.","kadence-blocks-pro"));S((0,a.__)("SVG Saved.","kadence-blocks-pro"),{type:"snackbar"}),n(i.value),t(!1)}catch(e){g((0,a.__)("Failed to add the SVG. Please try again.","kadence-blocks-pro"))}finally{x(!1)}}else g((0,a.__)("No SVG selected","kadence-blocks-pro"))})(),children:(0,a.__)("Add","kadence-blocks-pro")})]})]}),p&&(0,_.jsx)("p",{className:"svg-search-modal__error",style:{color:"red"},children:p}),!f&&!p&&(!l||l.svgs&&0===l.svgs.icons.length)&&(0,_.jsx)("p",{className:"svg-search-modal__no-results",children:(0,a.__)("No results found. Please try a different search.","kadence-blocks-pro")}),!f&&!l.svgs&&!p&&(0,_.jsx)("p",{className:"svg-search-modal__start-search",children:(0,a.__)("Start Search...","kadence-blocks-pro")})]})}const lf=(e,t)=>{var n=e.split(".").map(e=>isNaN(parseInt(e))?e:parseInt(e)).filter(e=>!isNaN(e)),o=t.split(".").map(e=>isNaN(parseInt(e))?e:parseInt(e)).filter(e=>!isNaN(e));for(let e=0;e<Math.max(n.length,o.length);e++){if(e>=n.length){if(0===o[e])continue;return-1}if(e>=o.length){if(0===n[e])continue;return 1}if(n[e]>o[e])return 1;if(n[e]<o[e])return-1}return 0};function cf({isOpen:e,setIsOpen:t,callback:n,proVersion:i}){const[s,l]=(0,o.useState)("upload"),[d,h]=(0,o.useState)(""),[p,g]=(0,o.useState)(""),[f,b]=(0,o.useState)(null),[v,y]=(0,o.useState)(""),{createSuccessNotice:k}=(0,c.useDispatch)(Yc.store),x=lf(i,"2.7.0")>=0;return(0,_.jsx)(_.Fragment,{children:e&&(0,_.jsx)(r.Modal,{title:(0,a.__)("Add a Custom Icon ","kadence-blocks-pro"),className:"upload-svg-modal",size:"medium",onRequestClose:()=>t(!1),children:(0,_.jsx)(r.TabPanel,{className:"kb-icon-block__add-icon-modal-tabs",activeClass:"active-tab",tabs:[{name:"upload",title:"Upload",className:"tab-one"},...x?[{name:"search",title:"Search",className:"tab-two"}]:[]],children:o=>(0,_.jsxs)("div",{className:"modal-body",children:["upload"===o.name&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"security-notice",children:[(0,_.jsx)("h4",{children:(0,a.__)("Important: SVG Safety","kadence-blocks-pro")}),(0,_.jsxs)("p",{children:[(0,a.__)("SVGs can contain malicious code. For your security, we suggest sanitizing your files before uploading.","kadence-blocks-pro")," ",(0,_.jsx)("a",{href:"https://www.kadencewp.com/help-center/?post_type=docs&p=8510",children:(0,a.__)("Learn more about SVG security and supported SVG formatting.","kadence-blocks-pro")})]})]}),""!==p&&(0,_.jsx)("div",{className:"error-message",children:p}),"upload"===s&&(0,_.jsxs)("div",{className:"drag-drop-container",children:[(0,_.jsx)(r.TextControl,{placeholder:(0,a.__)("Title your SVG","kadence-blocks-pro"),value:v,onChange:e=>y(e)}),(0,_.jsx)(r.FormFileUpload,{accept:"image/svg+xml",onChange:e=>{b(e.currentTarget.files),""===v&&y((0,u.get)(e.currentTarget.files,["0","name"],"").replace(".svg",""))},render:({openFileDialog:e})=>(0,_.jsxs)("div",{onClick:e,className:"drag-drop-target",style:{position:"relative"},children:[(0,_.jsx)(r.DropZone,{label:(0,a.__)("Upload SVG","kadence-blocks-pro"),onFilesDrop:e=>{b(e),""===v&&y((0,u.get)(e,["0","name"],"").replace(".svg",""))}}),null===f||0===f.length?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h3",{children:(0,a.__)("Select a file or drop it here","kadence-blocks-pro")}),(0,_.jsx)("p",{children:(0,a.__)("SVG dimensions: 24px by 24px","kadence-blocks-pro")})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("h3",{children:(0,a.__)("File Selected","kadence-blocks-pro")}),(0,_.jsx)("p",{children:(0,u.get)(f,["0","name"],"")})]}),(0,_.jsx)(r.Button,{isPrimary:!0,children:null===f?(0,a.__)("Select a file","kadence-blocks-pro"):(0,a.__)("Change file","kadence-blocks-pro")})]})}),(0,_.jsx)(r.Button,{type:"link",onClick:()=>{l("paste"),b(null)},children:(0,a.__)("Paste an SVG","kadence-blocks-pro")})]}),"paste"===s&&(0,_.jsxs)("div",{className:"paste-container",children:[(0,_.jsx)("h3",{children:(0,a.__)("Paste your SVG","kadence-blocks-pro")}),(0,_.jsx)(r.TextControl,{placeholder:(0,a.__)("Title your SVG","kadence-blocks-pro"),value:v,onChange:e=>y(e)}),(0,_.jsx)(r.TextareaControl,{value:d,onChange:e=>h(e)}),(0,_.jsx)(r.Button,{type:"link",onClick:()=>{l("upload"),h("")},children:(0,a.__)("Upload an SVG","kadence-blocks-pro")})]}),(0,_.jsxs)("div",{className:"footer",children:[(0,_.jsx)(r.Button,{isSecondary:!0,onClick:()=>t(!1),children:(0,a.__)("Cancel","kadence-blocks-pro")}),(0,_.jsx)(r.Button,{isPrimary:!0,onClick:()=>{!function(){const e=new FileReader;let o;if("upload"==(null!==f?"upload":"paste")){if(!f||0===f.length)return void g((0,a.__)("No file selected","kadence-blocks-pro"));if(o=f[0],"image/svg+xml"!==o.type)return void g((0,a.__)("The selected file is not an SVG","kadence-blocks-pro"))}else{if(!d.trim())return void g((0,a.__)("No SVG content pasted","kadence-blocks-pro"));o=new Blob([d],{type:"image/svg+xml"})}e.onload=function(e){const o=e.target.result;""!==o&&m()({path:"/kb-custom-svg/v1/manage",data:{file:o,title:v},method:"POST"}).then(e=>{(0,u.has)(e,"value")&&(0,u.has)(e,"label")?(k((0,a.__)("SVG Saved.","kadence-blocks-pro"),{type:"snackbar"}),n(e.value),t(!1)):(0,u.has)(e,"error")&&(0,u.has)(e,"message")?g(e.message):g((0,a.__)("An error occurred when uploading your file","kadence-blocks-pro"))})},e.readAsText(o)}()},children:(0,a.__)("Add","kadence-blocks-pro")})]})]}),"search"===o.name&&x&&(0,_.jsx)(af,{isOpen:e,setIsOpen:t,callback:n})]})})})})}function df({isOpen:e,setIsOpen:t,id:n,callback:o}){const{createSuccessNotice:i,createErrorNotice:s}=(0,c.useDispatch)(Yc.store),l=()=>{s((0,a.__)("There was an error deleting the SVG.","kadence-blocks-pro"),{type:"snackbar"})};return(0,_.jsx)(_.Fragment,{children:e&&null!==n&&(0,_.jsxs)(r.Modal,{title:(0,a.__)("Delete SVG"),onRequestClose:()=>t(!1),children:[(0,_.jsx)(r.Button,{isSecondary:!0,onClick:()=>t(!1),children:(0,a.__)("Cancel","kadence-blocks-pro")}),(0,_.jsx)(r.Button,{isDestructive:!0,onClick:()=>{(e=>{m()({path:`/wp/v2/kadence_custom_svg/${e}`,method:"DELETE"}).then(e=>{console.log("response"),console.log(e),(0,u.get)(e,"id",!1)?(i((0,a.__)("SVG Deleted.","kadence-blocks-pro"),{type:"snackbar"}),o()):(0,u.has)(e,"error")&&(0,u.has)(e,"message")?(console.log(e.message),l()):(console.log("An error occurred when delete your svg"),l())}).catch(e=>{console.log(e),l()})})(n),t(!1)},children:(0,a.__)("Delete","kadence-blocks-pro")})]})})}class uf extends o.Component{constructor(){super(...arguments),this.updateIcons=this.updateIcons.bind(this),this.getCustomSvg=this.getCustomSvg.bind(this),this.state={iconOptions:void 0,isLoading:!1,customSvg:""}}componentDidMount(){const e={...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons};this.setState({iconOptions:(0,l.applyFilters)("kadence.icon_options",e)}),this.props.name.startsWith("kb-custom")&&this.getCustomSvg(this.props.name.replace("kb-custom-",""))}componentDidUpdate(e,t,n){this.props.name!==e.name&&this.props.name.startsWith("kb-custom")&&this.getCustomSvg(this.props.name.replace("kb-custom-",""))}getCustomSvg=async e=>{try{const t=localStorage.getItem(`kb-custom-${e}`);if(t)return void this.setState({customSvg:JSON.parse(t)});this.setState({isLoading:!0});const n=await(async e=>{const t=await fetch(`/wp-json/wp/v2/kadence_custom_svg/${e}`,{method:"GET"});if(!t.ok)throw new Error("Network response was not ok");return t.json()})(e);if(n){const t=n.content.rendered.replace("<p>","").replace("</p>","").replace(/“/g,'"').replace(/”/g,'"').replace(/„/g,'"').replace(/″/g,'"'),o=JSON.parse(t);localStorage.setItem(`kb-custom-${e}`,JSON.stringify(o)),this.setState({customSvg:o})}else this.setState({customSvg:""})}catch(e){this.setState({customSvg:""}),console.error("Failed to fetch custom SVGs:",e)}this.setState({isLoading:!1})};updateIcons(){const e={...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons};return(0,l.applyFilters)("kadence.icon_options",e)}render(){const{name:e}=this.props;let{iconOptions:t,isLoading:n,customSvg:o}=this.state;return t||(t=this.updateIcons()),e.startsWith("kb-custom")&&n?(0,_.jsx)(r.Spinner,{}):e.startsWith("kb-custom")&&""!==o?(0,_.jsx)(rf,{name:e,icon:o,...this.props}):(0,_.jsx)(rf,{name:e,icon:t[e],...this.props})}}const hf=uf;function pf({value:e,onChange:t,label:n,placeholder:i=(0,a.__)("Select Icon","kadence-blocks-pro"),showSearch:s=!0,renderFunc:c=null,className:d,theme:h="default",allowClear:p=!1,icons:g=null}){const[m,f]=(0,o.useState)(),[b,v]=(0,o.useState)(!1),[y,k]=(0,o.useState)(""),[x,w]=(0,o.useState)("all"),[C,S]=(0,o.useState)(!1),[E,M]=(0,o.useState)(!1),[$,A]=(0,o.useState)(null),[T,R]=(0,o.useState)(!1),[L,O]=(0,o.useState)([]),[D,N]=(0,o.useState)(!1),j=!(!kadence_blocks_params.pro||"true"!==kadence_blocks_params.pro),I=window?.kbpData?(0,u.get)(window.kbpData,["pVersion"],"1.0.0"):"1.0.0",z=lf(I,"2.4.0")>=0,F=(0,u.debounce)(()=>{v(!b)},100),B=async(e=!1)=>{if(e||j&&z&&!1===T&&!D){try{N(!0);const t=await gf(e);if(t.length>0){const e=t.map(e=>e.id.toString()),n={};t.forEach(e=>{n[e.id.toString()]=e.title.rendered.toLowerCase()}),!(0,u.isEqual)(e,T)&&e.length>0&&(R(e),O(n))}else R([])}catch(e){R([]),console.error("Failed to fetch custom SVGs (picker):",e)}N(!1)}};(0,o.useEffect)(()=>{B()});const P=(0,a.__)("My Icons","kadence-blocks-pro"),H=(0,o.useMemo)(()=>{if(g){const e=g.map(e=>({value:e,label:e}));return T.length>0?{[P]:T,...e}:j&&z?{[P]:["placeholder"],...e}:e}const e=(0,l.applyFilters)("kadence.icon_options_names",kadence_blocks_params.icon_names);return T.length>0?{[P]:T,...e}:j&&z?{[P]:["placeholder"],...e}:e},[kadence_blocks_params.icon_names,g,T]),V=(0,o.useMemo)(()=>(0,l.applyFilters)("kadence.icon_options",{...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons}),[kadence_blocks_params_ico.icons,kadence_blocks_params_fa.icons,T]),W=(0,o.useMemo)(()=>{let e=Object.keys(H).map((e,t)=>({value:t,label:e}));return[{value:"all",label:(0,a.__)("Show All","kadence-blocks-pro")},...e]},[kadence_blocks_params.icon_names,H]),U=(0,o.useCallback)(e=>e.startsWith("kb-custom")?(0,_.jsx)(hf,{className:`kt-svg-icon-single-${e}`,name:e}):(0,_.jsx)(rf,{className:`kt-svg-icon-single-${e}`,name:e,icon:V[e]}),[V]),G=c||U,Z=(0,o.useMemo)(()=>{let e={};if(!g){const t=y.toLowerCase();Object.keys(H).map((n,o)=>{"all"!==x&&o!==parseInt(x)||H[n].map((i,r)=>{const s=i.toLowerCase();if(""===y||s.includes(t)||0===o&&(0,u.has)(L,s.toString())&&L[s.toString()].includes(t))return e={...e,[o]:{label:n,icons:{...e[o]?.icons,[i]:V[i]}}},i})})}return e},[y,x,H]);return(0,_.jsxs)("div",{className:"kadence-icon-picker",children:[(0,_.jsx)(cf,{isOpen:C,setIsOpen:S,callback:e=>{t("kb-custom-"+e.toString()),B(!0)},proVersion:I}),(0,_.jsx)(df,{isOpen:E,setIsOpen:M,id:$,callback:()=>{B(!0),A(null)}}),(0,_.jsxs)("div",{className:`kadence-icon-picker-selection kadence-icon-picker-theme-${h||"default"}${d?" "+d:""}`,children:[n&&(0,_.jsx)("div",{className:"kadence-icon-picker__title",children:(0,_.jsx)("label",{className:"components-base-control__label",children:n})}),(0,_.jsxs)("div",{className:"kadence-icon-picker-toggle-wrap",children:[(0,_.jsxs)("button",{onClick:()=>F(),ref:f,className:"kadence-icon-picker-link kadence-icon-picker-selection-toggle",children:[(0,_.jsx)("span",{className:"kadence-icon-picker-selection-value"+(e?"":" kadence-icon-picker-placeholder"),children:e?G(e):i}),(0,_.jsx)("span",{className:"kadence-icon-picker-selection-arrow",children:(0,_.jsx)(r.Icon,{icon:sf})})]}),e&&p&&(0,_.jsx)("button",{className:"kadence-icon-picker-clear",onClick:()=>{t(""),v(!1)},children:(0,_.jsx)(r.Icon,{icon:da})})]})]}),b&&(0,_.jsx)(r.Popover,{headerTitle:(0,a.__)("Select Icon","kadence-blocks-pro"),noArrow:!1,onClose:F,placement:"bottom-end",anchor:m,className:`kadence-icon-picker-pop-selection kadence-icon-picker-pop-theme-${h||"default"}`,children:(0,_.jsxs)("div",{className:"kadence-icon-picker-container",children:[s&&(0,_.jsxs)("div",{className:"kadence-icon-picker-search",children:[(0,_.jsx)(r.TextControl,{label:(0,a.__)("Search Icons","kadence-blocks-pro"),hideLabelFromVision:!0,value:y,placeholder:(0,a.__)("Search Icons","kadence-blocks-pro"),onChange:e=>k(e)}),(0,_.jsx)(r.SelectControl,{label:(0,a.__)("Filter Icons","kadence-blocks-pro"),hideLabelFromVision:!0,value:x,options:W,onChange:w})]}),(0,_.jsxs)("div",{className:"kadence-icon-picker-content"+(s?" has-search":""),children:[g&&(0,_.jsx)("div",{className:"kadence-icon-grid-wrap",children:g.map(e=>(0,_.jsx)("button",{className:"kadence-icon-picker-link",onClick:()=>{t(e),F()},children:G(e)}))}),!g&&(0,_.jsxs)(_.Fragment,{children:[0===Object.keys(Z).length&&(0,_.jsx)("div",{style:{padding:"15px"},children:(0,_.jsx)("p",{children:(0,a.__)("No icons found","kadence-blocks-pro")})}),Object.keys(Z).map(e=>(0,_.jsx)(r.PanelBody,{title:Z[e].label,children:(0,_.jsxs)("div",{className:"kadence-icon-grid-wrap",children:[Z[e].label===P&&""===y&&z&&j&&(0,_.jsx)("button",{className:"kadence-icon-picker-link add-custom-svg",onClick:()=>{S(!0),F()},children:(0,_.jsx)(r.Icon,{icon:ua})}),Object.keys(Z[e].icons).map(n=>{if(Z[e].label===P){if("placeholder"===n)return;return(0,_.jsxs)("div",{className:"kb-custom-svg",children:[j&&z&&(0,_.jsx)("div",{className:"custom-svg-delete",onClick:()=>{A(n),M(!0)},children:(0,_.jsx)(r.Icon,{icon:da,size:20})}),(0,_.jsx)("button",{className:"kadence-icon-picker-link",onClick:()=>{t("kb-custom-"+n),F()},children:G("kb-custom-"+n)},Z[e].label+n)]})}return(0,_.jsx)("button",{className:"kadence-icon-picker-link",onClick:()=>{t(n),F()},children:G(n)},Z[e].label+n)})]})},e))]})]})]})})]})}const gf=async(e=!1)=>{const t={per_page:100};e&&(t.cache_bust=(new Date).getTime());const n=new URLSearchParams(t),o=await fetch(`/wp-json/wp/v2/kadence_custom_svg?${n.toString()}`,{method:"GET"});if(!o.ok)throw new Error("Network response was not ok");return o.json()};function mf(e,t){if(!t)return"";if(!e)return"";if("0"===t)return 0;const n=e.find(e=>e.value===t);return n?n.size:""}function ff({label:e,onChange:t,value:n="",className:i="",options:s=fl,step:l=1,max:c=200,min:d=0,defaultValue:h="",unit:p="px",onUnit:g,units:m=["px","em","rem"],disableCustomSizes:f=!1,customControl:b=!1,setCustomControl:v=null,parentLabel:y=null,reset:k=!0,radio:x=!0}){const[w,C]=(0,o.useState)(!1);(0,o.useEffect)(()=>{C(function(e,t){return!!t&&!!e&&!e.find(e=>e.value===t)}(s,n))},[]);const S=v?b:w,E=v||C,M=m.map(e=>({value:e,label:e})),$=S?n:function(e,t){if(!t)return"";if(!e)return"";if("0"===t)return 0;const n=e.find(e=>e.value===t);return n?n.value:""}(s,n),A=[{value:"",output:"",size:"",label:(0,a.__)("Inherit","kadence-blocks-pro"),name:(0,a.__)("Inherit","kadence-blocks-pro")},...s];return[t&&(0,_.jsxs)("div",{className:"components-base-control component-gap-size-control kadence-gap-size-control"+(i?" "+i:""),children:[!v&&e&&(0,_.jsx)("div",{className:"kadence-gap-size-control__header kadence-component__header",children:(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-radio-range__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(h,n),icon:gl,onClick:()=>{"function"==typeof k?k():t(h)}})})]})}),!S&&x&&(0,_.jsx)("div",{className:"kadence-controls-content",children:(0,_.jsxs)(r.ButtonGroup,{className:"kadence-radio-container-control",children:[s.map((e,n)=>(0,_.jsx)(r.Button,{isTertiary:$!==e.value,className:"kadence-radio-item radio-"+e.value,isPrimary:$===e.value,icon:void 0!==e.icon?e.icon:void 0,"aria-pressed":$===e.value,onClick:()=>{$==e.value&&""==h?t(""):t(e.value)},children:e.label},`${e.label}-${e.value}-${n}`)),!f&&(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,onClick:()=>{$&&"px"===p&&t(mf(s,$)),E(!0)},isPressed:!1,isTertiary:!0})]})}),!S&&!x&&(0,_.jsxs)("div",{className:"kadence-controls-content kadence-gap-size-select-control-wrap",children:[(0,_.jsx)(r.SelectControl,{className:"kadence-gap-size-select-control",value:$,options:A,onChange:e=>{t($==e&&""==h?"":e)}}),!f&&(0,_.jsx)(r.ButtonGroup,{className:"kadence-radio-container-control",children:(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Set custom size","kadence-blocks-pro"),icon:yi,onClick:()=>{$&&"px"===p&&t(mf(s,$)),E(!0)},isPressed:!1,isTertiary:!0})})]}),S&&(0,_.jsxs)("div",{className:"kadence-controls-content kadence-single-unit-control",children:[(0,_.jsx)(r.__experimentalUnitControl,{label:y&&e?e:void 0,labelPosition:"top",min:d,max:c,step:l,units:M,value:n,disableUnits:!0,onChange:e=>(e=>{const n=isNaN(parseFloat(e))?void 0:parseFloat(e);t(n)})(e)}),(0,_.jsx)("div",{className:"kadence-measure-control-select-wrapper",children:(0,_.jsx)("select",{className:"kadence-measure-control-select components-unit-control__select",onChange:e=>{g(e.target.value)},value:p,children:m.map(e=>(0,_.jsx)("option",{value:e,selected:p===e||void 0,children:e},e))})}),!f&&(0,_.jsx)(r.ButtonGroup,{className:"kadence-radio-container-control",children:(0,_.jsx)(r.Button,{className:"kadence-radio-item radio-custom only-icon",label:(0,a.__)("Use size preset","kadence-blocks-pro"),icon:yi,isPrimary:!0,onClick:()=>{n&&"px"===p&&t(function(e,t){if(!t)return"";if(!e)return"";if("0"===t)return"";const n=e.find(e=>e.size===t);return n?n.value:""}(s,n)),E(!1)},isPressed:!0})})]})]})]}function bf({label:e,onChange:t,onChangeTablet:n,onChangeMobile:i,mobileValue:s,tabletValue:l,value:d,units:h=["px","em","rem"],onUnit:p,options:g=fl,step:m=1,max:f=200,min:b=0,unit:v="px",defaultValue:y=["","",""],reset:k=!0,radio:x=!0,compressedDevice:w=!1}){const C=(0,o.useRef)(),[S,E]=(0,o.useState)("Desktop"),M=(0,c.useSelect)(e=>e("kadenceblocks/data").getPreviewDeviceType(),[]);M!==S&&E(M);const{setPreviewDeviceType:$}=(0,c.useDispatch)("kadenceblocks/data"),A=e=>{$(kl(e)),E(kl(e))},T=[{name:"Desktop",title:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),itemClass:"kb-desk-tab"},{name:"Tablet",title:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),itemClass:"kb-tablet-tab"},{name:"Mobile",key:"mobile",title:(0,_.jsx)(r.Dashicon,{icon:"smartphone"}),itemClass:"kb-mobile-tab"}],R=[d,l,s],L={};L.Mobile=(0,_.jsx)(ff,{value:s||void 0,onChange:e=>i(e),options:g,onUnit:p,defaultValue:y[2],units:h,step:m,max:f,min:b,unit:v,radio:x}),L.Tablet=(0,_.jsx)(ff,{value:l||void 0,onChange:e=>n(e),options:g,onUnit:p,defaultValue:y[1],units:h,step:m,max:f,min:b,unit:v,radio:x}),L.Desktop=(0,_.jsx)(ff,{value:d||void 0,onChange:e=>t(e),options:g,onUnit:p,defaultValue:y[0],units:h,step:m,max:f,min:b,unit:v,radio:x});const O={Desktop:(0,_.jsx)(r.Dashicon,{icon:"desktop"}),Tablet:(0,_.jsx)(r.Dashicon,{icon:"tablet"}),Mobile:(0,_.jsx)(r.Dashicon,{icon:"smartphone"})};return[t&&n&&i&&(0,_.jsxs)("div",{ref:C,className:"components-base-control kb-responsive-gap-size-control kadence-gap-size-control",children:[(0,_.jsxs)("div",{className:"kadence-gap-size-control__header kadence-component__header",children:[e&&(0,_.jsxs)("div",{className:"kadence-component__header__title kadence-gap-size__title",children:[(0,_.jsx)("label",{className:"components-base-control__label",children:e}),k&&(0,_.jsx)("div",{className:"title-reset-wrap",children:(0,_.jsx)(r.Button,{className:"is-reset is-single",label:"reset",isSmall:!0,disabled:!!(0,u.isEqual)(y,R),icon:gl,onClick:()=>{"function"==typeof k?k():"Mobile"===S?i(y[2]):"Tablet"===S?n(y[1]):t(y[0])}})})]}),!w&&(0,_.jsx)(r.ButtonGroup,{className:"kb-responsive-options kb-measure-responsive-options","aria-label":(0,a.__)("Device","kadence-blocks-pro"),children:(0,u.map)(T,({name:e,key:t,title:n,itemClass:o})=>(0,_.jsx)(r.Button,{className:`kb-responsive-btn ${o}${e===S?" is-active":""}`,isSmall:!0,"aria-pressed":S===e,onClick:()=>A(e),children:n},t))}),w&&(0,_.jsx)(r.DropdownMenu,{className:"kb-responsive-options-dropdown",icon:O[S]?O[S]:O.Desktop,label:(0,a.__)("Target Device","kadence-blocks-pro"),controls:T.map(e=>{return[{title:(t=e).name,icon:t.title,isActive:S===t.name,onClick:()=>{A(t.name)}}];var t})})]}),(0,_.jsx)("div",{className:"kb-responsive-border-control-inner",children:L[S]?L[S]:L.Desktop})]})]}const vf=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(R.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})),yf=({src:e,onChange:t,onSubmit:n,onClose:o})=>(0,_.jsx)(i.URLPopover,{onClose:o,children:(0,_.jsxs)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n,children:[(0,_.jsx)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":(0,a.__)("URL","kadence-blocks-pro"),placeholder:(0,a.__)("Paste or type URL","kadence-blocks-pro"),onChange:t,value:e}),(0,_.jsx)(r.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:vf,label:(0,a.__)("Apply","kadence-blocks-pro"),type:"submit"})]})});class kf extends o.Component{constructor(){super(...arguments),this.state={src:"",isURLInputVisible:!1},this.onChangeSrc=this.onChangeSrc.bind(this),this.onSubmitSrc=this.onSubmitSrc.bind(this),this.onUpload=this.onUpload.bind(this),this.onFilesUpload=this.onFilesUpload.bind(this),this.openURLInput=this.openURLInput.bind(this),this.closeURLInput=this.closeURLInput.bind(this)}onlyAllowsImages(){const{allowedTypes:e}=this.props;return!!e&&(0,u.every)(e,e=>"image"===e||(0,u.startsWith)(e,"image/"))}componentDidMount(){this.setState({src:(0,u.get)(this.props.value,["src"],"")})}componentDidUpdate(e){(0,u.get)(e.value,["src"],"")!==(0,u.get)(this.props.value,["src"],"")&&this.setState({src:(0,u.get)(this.props.value,["src"],"")})}onChangeSrc(e){this.setState({src:e.target.value})}onSubmitSrc(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}onUpload(e){this.onFilesUpload(e.target.files)}onFilesUpload(e){const{addToGallery:t,allowedTypes:n,mediaUpload:o,multiple:i,onError:r,onSelect:s,onFilesPreUpload:a=u.noop}=this.props;let l;if(a(e),i)if(t){let e=[];l=t=>{const n=(this.props.value||[]).filter(t=>t.id?!e.some(({id:e})=>Number(e)===Number(t.id)):!e.some(({urlSlug:e})=>t.url.includes(e)));s(n.concat(t)),e=t.map(e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}})}}else l=s;else l=([e])=>s(e);o({allowedTypes:n,filesList:e,onFileChange:l,onError:r})}openURLInput(){this.setState({isURLInputVisible:!0})}closeURLInput(){this.setState({isURLInputVisible:!1})}renderPlaceholder(e,t){const{allowedTypes:n=[],className:o,icon:i,isAppender:s,labels:l={},onDoubleClick:c,mediaPreview:d,notices:u,onSelectURL:h,mediaUpload:p,children:g}=this.props;let m=l.instructions,f=l.title;if(p||h||(m=(0,a.__)("To edit this block, you need permission to upload media.","kadence-blocks-pro")),void 0===m||void 0===f){const e=1===n.length,t=e&&"audio"===n[0],o=e&&"image"===n[0],i=e&&"video"===n[0];void 0===m&&p&&(m=(0,a.__)("Upload a media file or pick one from your media library.","kadence-blocks-pro"),t?m=(0,a.__)("Upload an audio file, pick one from your media library, or add one with a URL.","kadence-blocks-pro"):o?m=(0,a.__)("Upload an image file, pick one from your media library, or add one with a URL.","kadence-blocks-pro"):i&&(m=(0,a.__)("Upload a video file, pick one from your media library, or add one with a URL.","kadence-blocks-pro")))}const b=E()("block-editor-media-placeholder",o,{"is-appender":s});return(0,_.jsxs)(r.Placeholder,{icon:i,label:f||void 0,instructions:m,className:b,notices:u,onClick:t,onDoubleClick:c,preview:d,children:[e,g]})}renderDropZone(){const{disableDropZone:e,onHTMLDrop:t=u.noop}=this.props;return e?null:(0,_.jsx)(r.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:t})}renderCancelLink(){const{onCancel:e}=this.props;return e&&(0,_.jsx)(r.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,a.__)("Cancel","kadence-blocks-pro"),isLink:!0,onClick:e,children:(0,a.__)("Cancel","kadence-blocks-pro")})}renderUrlSelectionUI(){const{onSelectURL:e}=this.props;if(!e)return null;const{isURLInputVisible:t,src:n}=this.state;return(0,_.jsxs)("div",{className:"block-editor-media-placeholder__url-input-container",children:[(0,_.jsx)(r.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0,children:(0,a.__)("Insert from URL","kadence-blocks-pro")}),t&&(0,_.jsx)(yf,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput})]})}renderDynamicSelectionUI(){const{dynamicControl:e}=this.props;return e?(0,_.jsx)("div",{className:"block-editor-media-placeholder__dynamic-input-container",children:e}):null}renderMediaUploadChecked(){const{selectLabel:e=(0,a.__)("Select Image","kadence-blocks-pro"),selectIcon:t,accept:n,addToGallery:s,allowedTypes:l=[],isAppender:c,mediaUpload:d,multiple:h=!1,onSelect:p,value:g={}}=this.props,m=(0,_.jsx)(i.MediaUpload,{addToGallery:s,gallery:h&&this.onlyAllowsImages(),multiple:h,onSelect:p,allowedTypes:l,value:(0,u.isArray)(g)?g.map(({id:e})=>e):g.id,render:({open:n})=>(0,_.jsx)(r.Button,{isPrimary:!0,icon:t||void 0,onClick:e=>{e.stopPropagation(),n()},children:e})});if(d&&c)return(0,_.jsxs)(o.Fragment,{children:[this.renderDropZone(),(0,_.jsx)(r.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:h,render:({openFileDialog:e})=>{const t=(0,_.jsxs)(o.Fragment,{children:[m,this.renderUrlSelectionUI(),this.renderCancelLink(),this.renderDynamicSelectionUI()]});return this.renderPlaceholder(t,e)}})]});if(d){const e=(0,_.jsxs)(o.Fragment,{children:[this.renderDropZone(),m,this.renderUrlSelectionUI(),this.renderCancelLink(),this.renderDynamicSelectionUI()]});return this.renderPlaceholder(e)}return this.renderPlaceholder(m)}render(){const{disableMediaButtons:e,dropZoneUIOnly:t}=this.props;return t||e?(0,_.jsx)(i.MediaUploadCheck,{children:this.renderDropZone()}):(0,_.jsx)(i.MediaUploadCheck,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI()),children:this.renderMediaUploadChecked()})}}const xf=(0,c.withSelect)(e=>{const{getSettings:t}=e("core/block-editor");return{mediaUpload:t().mediaUpload}})(kf);class wf extends o.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.state={open:!1},this.popRef=(0,o.createRef)(),this.debouncedToggle=(0,u.debounce)(this.toggle.bind(this),100)}toggle(){this.setState({open:!this.state.open})}render(){const{open:e}=this.state;let t={};return t.dynamic=(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,_.jsx)("path",{d:"M4 5.002s.003-.095.213-.288c.245-.225.671-.483 1.306-.73C7.018 3.399 9.34 3 12 3s4.982.399 6.482.984c.634.247 1.061.505 1.306.73.205.189.212.281.212.288 0 .003-.007.095-.213.284-.245.225-.671.483-1.306.73C16.982 6.601 14.66 7 12 7s-4.982-.399-6.482-.984c-.634-.247-1.061-.505-1.306-.73C4.004 5.094 4 5.002 4 5.002zm16 9.53v4.471a.779.779 0 01-.217.291c-.245.225-.671.482-1.303.728-1.495.582-3.809.978-6.48.978s-4.985-.396-6.48-.978c-.633-.246-1.058-.503-1.303-.728a.865.865 0 01-.199-.242l-.006-4.514c.248.126.51.242.782.348C6.591 15.585 9.171 16 12 16s5.409-.415 7.206-1.114c.277-.108.543-.225.794-.354zm0-7.005v4.476a.779.779 0 01-.217.291c-.245.225-.671.482-1.303.728-1.495.582-3.809.978-6.48.978s-4.985-.396-6.48-.978c-.633-.246-1.058-.503-1.303-.728a.865.865 0 01-.199-.242 1.109 1.109 0 00-.009-.117l-.005-4.407c.248.128.513.244.788.352C6.593 8.582 9.18 9 12 9s5.407-.418 7.208-1.12A8.69 8.69 0 0020 7.527zM2 5v14c0 .058.002.116.007.174.057.665.425 1.197.857 1.594.498.457 1.175.824 1.93 1.118C6.591 22.585 9.171 23 12 23s5.409-.415 7.206-1.114c.755-.294 1.432-.661 1.93-1.118.432-.397.8-.929.857-1.594.005-.058.007-.116.007-.174V5c0-.056-.002-.112-.007-.168-.055-.664-.422-1.195-.852-1.59-.498-.459-1.177-.827-1.933-1.122C17.407 1.418 14.82 1 12 1s-5.407.418-7.208 1.12c-.756.295-1.435.664-1.933 1.122-.43.395-.797.927-.852 1.59A1.887 1.887 0 002 5z"})}),(0,_.jsxs)("div",{className:"kb-dynamic-image-sidebar-wrap kb-dynamic-background-sidebar-wrap",children:[(0,_.jsx)(r.Button,{className:"kb-dynamic-image-sidebar kb-dynamic-background-sidebar",isTertiary:!0,icon:t.dynamic,onClick:()=>this.debouncedToggle(),isPressed:e,"aria-haspopup":"true","aria-expanded":e,label:(0,a.__)("Dynamic Image","kadence-blocks-pro"),showTooltip:!0}),e&&(0,_.jsx)(r.Popover,{className:"kb-dynamic-popover",position:"bottom left",onClick:()=>{},expandOnMobile:!0,onClose:()=>this.debouncedToggle(),ref:this.popRef,children:(0,_.jsx)("div",{className:"kb-dynamic-popover-inner-wrap",children:(0,_.jsxs)("div",{className:"kb-pro-notice",children:[(0,_.jsxs)("h2",{children:[(0,a.__)("Dynamic Image","kadence-blocks-pro")," "]}),(0,_.jsxs)("p",{children:[(0,a.__)("Create dynamic sites by populating images from various sources.","kadence-blocks-pro")," "]}),(0,_.jsx)(r.ExternalLink,{href:"https://www.kadencewp.com/kadence-blocks/pro/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=dynamic-content",children:(0,a.__)("Upgrade to Pro","kadence-blocks-pro")})]})})})]})}}const _f=(0,r.withFilters)("kadence.ImageDynamicControl")(wf),Cf=(0,e.createElement)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(R.Path,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),Sf=(0,e.createElement)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(R.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Ef=["image"];class Mf extends o.Component{constructor(){super(...arguments)}render(){const{label:e,hasImage:t,onSaveImage:n,onRemoveImage:s,disableMediaButtons:l,imageURL:c,imageID:d,kadenceDynamic:u,dynamicAttribute:h=""}=this.props;return(0,_.jsxs)("div",{className:"components-base-control kadence-image-media-control kadence-image-background-control",children:[!t&&(0,_.jsxs)(o.Fragment,{children:[e&&(0,_.jsx)("div",{class:"components-kadence-image-background__label",children:e}),(0,_.jsx)(xf,{labels:"",selectIcon:Cf,selectLabel:(0,a.__)("Select Image","kadence-blocks-pro"),onSelect:e=>n(e),accept:"image/*",className:"kadence-image-upload",allowedTypes:Ef,disableMediaButtons:l,dynamicControl:h&&kadence_blocks_params.dynamic_enabled?(0,_.jsx)(_f,{...this.props}):void 0})]}),t&&(0,_.jsxs)(o.Fragment,{children:[e&&(0,_.jsx)("div",{class:"components-kadence-image-background__label",children:e}),h&&kadence_blocks_params.dynamic_enabled&&u&&u[h]&&u[h].enable?(0,_.jsx)("div",{className:"kb-dynamic-background-sidebar-top",children:(0,_.jsx)(_f,{startOpen:!u[h].field,...this.props})}):(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)(i.MediaUpload,{onSelect:e=>n(e),type:"image",value:d||"",render:({open:e})=>(0,_.jsx)(r.Button,{className:"components-button components-icon-button kt-cta-upload-btn kb-sidebar-image",style:{backgroundImage:'url("'+c+'")',backgroundSize:"cover"},onClick:e,icon:Sf,children:(0,a.__)("Edit Image","kadence-blocks-pro")})}),(0,_.jsx)(r.Button,{icon:da,label:(0,a.__)("Remove Image","kadence-blocks-pro"),className:"components-button components-icon-button kt-remove-img kt-cta-upload-btn",onClick:()=>s()}),h&&kadence_blocks_params.dynamic_enabled&&(0,_.jsx)(_f,{...this.props})]})]})]})}}const $f=Mf;class Af extends o.Component{constructor(e,t,n,o,i,r=!0,s=!0){super(...arguments),this.getImageSizeOptions=this.getImageSizeOptions.bind(this),this.getSmallImageSizeOptions=this.getSmallImageSizeOptions.bind(this),this.state={isVisible:!1}}getImageSizeOptions(){const{image:e}=this.props;if(e){const t=void 0!==e.media_details.sizes?e.media_details.sizes:[],n=Object.keys(t).map(e=>({slug:e,name:e}));return(0,u.compact)((0,u.map)(n,({name:t,slug:n})=>{if("image/svg+xml"===(0,u.get)(e,["mime_type"]))return null;const o=(0,u.get)(e,["media_details","sizes",n,"source_url"]);if(!o)return null;const i=(0,u.get)(e,["media_details","sizes",n,"width"]);if(!i)return null;const r=(0,u.get)(e,["media_details","sizes",n,"height"]);return r?{value:o,label:t+" ("+i+"x"+r+")",slug:n,width:i,height:r}:null}))}return null}getSmallImageSizeOptions(){const{image:e}=this.props;if(e){const t=void 0!==e.media_details.sizes?e.media_details.sizes:[],n=[];for(let e=0;e<Object.keys(t).length;e++){const o=Object.keys(t)[e];"thumbnail"!==o&&"medium"!==o&&"medium_large"!==o&&"large"!==o&&"full"!==o||n.push({slug:o,name:o})}return(0,u.compact)((0,u.map)(n,({name:t,slug:n})=>{if("image/svg+xml"===(0,u.get)(e,["mime_type"]))return null;const o=(0,u.get)(e,["media_details","sizes",n,"source_url"]);if(!o)return null;const i=(0,u.get)(e,["media_details","sizes",n,"width"]);if(!i)return null;const r=(0,u.get)(e,["media_details","sizes",n,"height"]);return r?{value:o,label:t+("full"===n?"":" ("+i+"x"+r+")"),slug:n,width:i,height:r}:null}))}return null}render(){let e;return e=void 0===this.props.fullSelection||!0===this.props.fullSelection?this.getImageSizeOptions():this.getSmallImageSizeOptions(),(0,_.jsxs)("div",{className:"kb-image-size-container",children:[!(0,u.isEmpty)(e)&&(void 0===this.props.selectByValue||!0===this.props.selectByValue)&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kb-image-size-title",children:this.props.label}),(0,_.jsx)("div",{className:"kb-image-size-select-form-row",children:(0,_.jsx)(vi,{options:e,value:e.filter(({value:e})=>e===this.props.url),isMulti:!1,maxMenuHeight:250,isClearable:!1,placeholder:"",onChange:this.props.onChange})})]}),!(0,u.isEmpty)(e)&&!1===this.props.selectByValue&&(0,_.jsxs)(o.Fragment,{children:[(0,_.jsx)("h2",{className:"kb-image-size-title",children:this.props.label}),(0,_.jsx)("div",{className:"kb-image-size-select-form-row",children:(0,_.jsx)(vi,{options:e,value:e.filter(({slug:e})=>e===this.props.slug),isMulti:!1,maxMenuHeight:250,isClearable:!1,placeholder:"",onChange:this.props.onChange})})]})]})}}const Tf=(0,s.compose)([(0,c.withSelect)((e,t)=>{const{getMedia:n}=e("core"),{id:o}=t,{getSettings:i}=e("core/block-editor"),{imageSizes:r}=i();return{image:o?n(o):null,imageSizes:r}})])(Af);(0,l.addFilter)("kadence.styleControlsNavigationLink","kadence/navigationlinkpro",function(t,n,o,i,s){const{attributes:l,setAttributes:d,context:p,clientId:g,isSelected:m,name:f}=n,{highlightLabel:b,highlightSpacing:v,highlightPosition:y,highlightSide:k,highlightSideMobile:x,highlightSideTablet:w,typography:_,highlightTypography:C,dropdownTypography:S,dropdownDivider:E,dropdownDividerTablet:M,dropdownDividerMobile:$,dropdownVerticalSpacing:A,dropdownVerticalSpacingTablet:T,dropdownVerticalSpacingMobile:R,dropdownVerticalSpacingUnit:L,mediaType:O,mediaIcon:D,mediaImage:N,mediaStyle:j,highlightIcon:I,iconSide:z,iconSideTablet:F,iconSideMobile:B,dropdownBorder:P,dropdownBorderTablet:H,dropdownBorderMobile:V,dropdownBorderRadius:W,dropdownBorderRadiusTablet:U,dropdownBorderRadiusMobile:G,dropdownBorderRadiusUnit:Z,descriptionSpacing:q,descriptionSpacingTablet:K,descriptionSpacingMobile:Y,descriptionSpacingUnit:X,descriptionColor:Q,descriptionColorTablet:J,descriptionColorMobile:ee,descriptionTypography:te,descriptionPositioning:ne,descriptionPositioningTablet:oe,descriptionPositioningMobile:ie,dropdownDescriptionSpacing:re,dropdownDescriptionSpacingTablet:se,dropdownDescriptionSpacingMobile:ae,dropdownDescriptionSpacingUnit:le,dropdownDescriptionColor:ce,dropdownDescriptionColorTablet:de,dropdownDescriptionColorMobile:ue,dropdownDescriptionTypography:he,dropdownDescriptionPositioning:pe,dropdownDescriptionPositioningTablet:ge,dropdownDescriptionPositioningMobile:me,mediaAlign:fe,mediaAlignTablet:be,mediaAlignMobile:ve,imageRatio:ye,paddingDropdown:ke,tabletPaddingDropdown:xe,mobilePaddingDropdown:we,paddingDropdownUnit:_e,marginDropdown:Ce,tabletMarginDropdown:Se,mobileMarginDropdown:Ee,marginDropdownUnit:Me,paddingDropdownLink:$e,tabletPaddingDropdownLink:Ae,mobilePaddingDropdownLink:Te,paddingDropdownLinkUnit:Re,marginDropdownLink:Le,tabletMarginDropdownLink:Oe,mobileMarginDropdownLink:De,marginDropdownLinkUnit:Ne,dropdownWidth:je,dropdownWidthTablet:Ie,dropdownWidthMobile:ze,dropdownWidthUnit:Fe,dropdownShadow:Be,isMegaMenu:Pe}=l,{editEntityRecord:He,saveEditedEntityRecord:Ve}=(0,c.useDispatch)(ha.store),{createSuccessNotice:We}=(0,c.useDispatch)(Yc.store),Ue=(e,t="mediaIcon")=>{const n=l[t].map((t,n)=>(0===n&&(t={...t,...e}),t));d({[t]:n})},Ge=(e,t="mediaStyle")=>{const n=l[t].map((t,n)=>(0===n&&(t={...t,...e}),t));d({[t]:n})},Ze=(t="",n="")=>{const o=l["mediaAlign"+n+t];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{value:o,options:[{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")},{value:"top",label:(0,a.__)("Top","kadence-blocks-pro")},{value:"bottom",label:(0,a.__)("Bottom","kadence-blocks-pro")}],onChange:e=>d({["mediaAlign"+n+t]:e})}))},qe=(e,t="typography")=>{const n=l[t].map((t,n)=>(0===n&&(t={...t,...e}),t));d({[t]:n})},Ke=e=>{const t=Be.map((t,n)=>(0===n&&(t={...t,...e}),t));d({dropdownShadow:t})},Ye=e=>{const t=N.map((t,n)=>(0===n&&(t={...t,...e}),t));d({mediaImage:t})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(jc,{title:(0,a.__)("Link Styles","kadence-blocks-pro"),initialOpen:!0,panelName:"navigation-link-style-settings"},(0,e.createElement)(Um,{colorBase:"linkColor",backgroundBase:"background",backgroundTypeBase:"backgroundType",backgroundGradientBase:"backgroundGradient",borderBase:"border",borderRadiusBase:"borderRadius",borderRadiusUnitBase:"borderRadiusUnit",shadowBase:"shadow",setAttributes:d,attributes:l,setActivePreview:i,activePreview:s})),"1"==p?.["kadence/headerIsTransparent"]&&(0,e.createElement)(jc,{title:(0,a.__)("Transparent Styles","kadence-blocks-pro"),initialOpen:!1,panelName:"navigation-link-transparent-style-settings"},(0,e.createElement)(Qc,{label:"Colors",desktopChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"",suffix:"Transparent",setAttributes:d,attributes:l}),tabletChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"Tablet",suffix:"Transparent",setAttributes:d,attributes:l}),mobileChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"Mobile",suffix:"Transparent",setAttributes:d,attributes:l})})),"1"==p?.["kadence/headerIsSticky"]&&(0,e.createElement)(jc,{title:(0,a.__)("Sticky Styles","kadence-blocks-pro"),initialOpen:!1,panelName:"navigation-link-sticky-style-settings"},(0,e.createElement)(Qc,{label:"Colors",desktopChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"",suffix:"Sticky",setAttributes:d,attributes:l}),tabletChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"Tablet",suffix:"Sticky",setAttributes:d,attributes:l}),mobileChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"Mobile",suffix:"Sticky",setAttributes:d,attributes:l})})),h("fontSettings","kadence/navigation-link")&&(0,e.createElement)(jc,{title:(0,a.__)("Typography Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-navigation-link-typography"},(0,e.createElement)(Jm,{fontSize:_[0].size,onFontSize:e=>qe({size:e}),fontSizeType:_[0].sizeType,onFontSizeType:e=>qe({sizeType:e}),lineHeight:_[0].lineHeight,onLineHeight:e=>qe({lineHeight:e}),lineHeightType:_[0].lineType,onLineHeightType:e=>qe({lineType:e}),reLetterSpacing:_[0].letterSpacing,onLetterSpacing:e=>qe({letterSpacing:e}),letterSpacingType:_[0].letterType,onLetterSpacingType:e=>qe({letterType:e}),textTransform:_[0].textTransform,onTextTransform:e=>qe({textTransform:e}),fontFamily:_[0].family,onFontFamily:e=>qe({family:e}),onFontChange:e=>{qe({family:e.value,google:e.google})},onFontArrayChange:e=>qe(e),googleFont:_[0].google,onGoogleFont:e=>qe({google:e}),loadGoogleFont:_[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e}),fontVariant:_[0].variant,onFontVariant:e=>qe({variant:e}),fontWeight:_[0].weight,onFontWeight:e=>qe({weight:e}),fontStyle:_[0].style,onFontStyle:e=>qe({style:e}),fontSubset:_[0].subset,onFontSubset:e=>qe({subset:e})})),o&&(0,e.createElement)(jc,{title:(0,a.__)("Sub Menu Styles","kadence-blocks-pro"),panelName:"kb-navigation-style-sub-menus",initialOpen:!1},(0,e.createElement)(ef,{title:(0,a.__)("Sub Menu Container","kadence-blocks-pro")},!Pe&&(0,e.createElement)(td,{label:(0,a.__)("Dropdown Width","kadence-blocks-pro"),value:je||"",valueTablet:Ie||"",valueMobile:ze||"",onChange:e=>d({dropdownWidth:e}),onChangeTablet:e=>d({dropdownWidthTablet:e}),onChangeMobile:e=>d({dropdownWidthMobile:e}),min:0,max:"em"===Fe||"rem"===Fe?24:"px"===Fe?2e3:100,step:"em"===Fe||"rem"===Fe?.1:1,reset:()=>d({dropdownWidth:""}),unit:Fe,units:["px","em","rem","vw"],onUnit:e=>d({dropdownWidthUnit:e}),showUnit:!0}),(0,e.createElement)(td,{label:(0,a.__)("Vertical Spacing","kadence-blocks-pro"),value:A,valueTablet:T,valueMobile:R,onChange:e=>d({dropdownVerticalSpacing:e}),onChangeTablet:e=>d({dropdownVerticalSpacingTablet:e}),onChangeMobile:e=>d({dropdownVerticalSpacingMobile:e}),min:0,max:"em"===L||"rem"===L?24:"px"===L?200:100,step:"em"===L||"rem"===L?.1:1,unit:L,units:["px","em","rem","vw"],onUnit:e=>d({dropdownVerticalSpacingUnit:e}),showUnit:!0}),(0,e.createElement)(Im,{label:(0,a.__)("Border","kadence-blocks-pro"),value:P,tabletValue:H,mobileValue:V,onChange:e=>d({dropdownBorder:e}),onChangeTablet:e=>d({dropdownBorderTablet:e}),onChangeMobile:e=>d({dropdownBorderMobile:e})}),(0,e.createElement)(Bm,{label:(0,a.__)("Border Radius","kadence-blocks-pro"),value:W,tabletValue:U,mobileValue:G,onChange:e=>d({dropdownBorderRadius:e}),onChangeTablet:e=>d({dropdownBorderRadiusTablet:e}),onChangeMobile:e=>d({dropdownBorderRadiusMobile:e}),min:0,max:"em"===Z||"rem"===Z?24:100,step:"em"===Z||"rem"===Z?.1:1,unit:Z,units:["px","em","rem","%"],onUnit:e=>d({dropdownBorderRadiusUnit:e}),isBorderRadius:!0,allowEmpty:!0}),(0,e.createElement)(Wm,{label:(0,a.__)("Box Shadow","kadence-blocks"),enable:void 0===Be||void 0===Be[0]||void 0===Be[0].enable||Be[0].enable,color:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].color?Be[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{Ke({color:e,opacity:t})},opacity:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].opacity?Be[0].opacity:.2,hOffset:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].hOffset?Be[0].hOffset:0,vOffset:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].vOffset?Be[0].vOffset:0,blur:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].blur?Be[0].blur:14,spread:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].spread?Be[0].spread:0,inset:void 0!==Be&&void 0!==Be[0]&&void 0!==Be[0].inset&&Be[0].inset,onEnableChange:e=>{Ke({enable:e})},onColorChange:e=>{Ke({color:e})},onOpacityChange:e=>{Ke({opacity:e})},onHOffsetChange:e=>{Ke({hOffset:e})},onVOffsetChange:e=>{Ke({vOffset:e})},onBlurChange:e=>{Ke({blur:e})},onSpreadChange:e=>{Ke({spread:e})},onInsetChange:e=>{Ke({inset:e})}}),(0,e.createElement)(Vl,{label:(0,a.__)("Padding","kadence-blocks-pro"),value:ke,tabletValue:xe,mobileValue:we,onChange:e=>{d({paddingDropdown:e})},onChangeTablet:e=>{d({tabletPaddingDropdown:e})},onChangeMobile:e=>{d({mobilePaddingDropdown:e})},min:0,max:"em"===_e||"rem"===_e?24:"px"===_e?200:100,step:"em"===_e||"rem"===_e?.1:1,unit:_e,units:["px","em","rem","%"],onUnit:e=>d({paddingDropdownUnit:e})}),(0,e.createElement)(Vl,{label:(0,a.__)("Margin","kadence-blocks-pro"),value:Ce,tabletValue:Se,mobileValue:Ee,onChange:e=>{d({marginDropdown:e})},onChangeTablet:e=>{d({tabletMarginDropdown:e})},onChangeMobile:e=>{d({mobileMarginDropdown:e})},min:"em"===Me||"rem"===Me?-25:"px"===Me?-400:-100,max:"em"===Me||"rem"===Me?24:"px"===Me?200:100,step:"em"===Me||"rem"===Me?.1:1,unit:Me,units:["px","em","rem","%"],onUnit:e=>d({marginDropdownUnit:e})})),(0,e.createElement)(ef,{title:(0,a.__)("Sub Menu Links","kadence-blocks-pro")},(0,e.createElement)(Qc,{label:"Colors",desktopChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"",suffix:"Dropdown",setAttributes:d,attributes:l}),tabletChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"Tablet",suffix:"Dropdown",setAttributes:d,attributes:l}),mobileChildren:(0,e.createElement)(Gm,{colorBase:"linkColor",backgroundBase:"background",size:"Mobile",suffix:"Dropdown",setAttributes:d,attributes:l})}),(0,e.createElement)(tf,{label:"Divider",value:E,tabletValue:M,mobileValue:$,onChange:e=>d({dropdownDivider:e}),onChangeTablet:e=>d({dropdownDividerTablet:e}),onChangeMobile:e=>d({dropdownDividerMobile:e})}),(0,e.createElement)(Vl,{label:(0,a.__)("Link Padding","kadence-blocks-pro"),value:$e,tabletValue:Ae,mobileValue:Te,onChange:e=>{d({paddingDropdownLink:e})},onChangeTablet:e=>{d({tabletPaddingDropdownLink:e})},onChangeMobile:e=>{d({mobilePaddingDropdownLink:e})},min:0,max:"em"===Re||"rem"===Re?24:"px"===Re?200:100,step:"em"===Re||"rem"===Re?.1:1,unit:Re,units:["px","em","rem","%"],onUnit:e=>d({paddingDropdownLinkUnit:e})}),(0,e.createElement)(Vl,{label:(0,a.__)("Link Margin","kadence-blocks-pro"),value:Le,tabletValue:Oe,mobileValue:De,onChange:e=>{d({marginDropdownLink:e})},onChangeTablet:e=>{d({tabletMarginDropdownLink:e})},onChangeMobile:e=>{d({mobileMarginDropdownLink:e})},min:"em"===Ne||"rem"===Ne?-25:"px"===Ne?-400:-100,max:"em"===Ne||"rem"===Ne?24:"px"===Ne?200:100,step:"em"===Ne||"rem"===Ne?.1:1,unit:Ne,units:["px","em","rem","%"],onUnit:e=>d({marginDropdownLinkUnit:e})}),h("fontSettings","kadence/navigation-link")&&(0,e.createElement)(jc,{title:(0,a.__)("Typography Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-navigation-link-dropdown-typography"},(0,e.createElement)(Jm,{fontSize:S[0].size,onFontSize:e=>qe({size:e},"dropdownTypography"),fontSizeType:S[0].sizeType,onFontSizeType:e=>qe({sizeType:e},"dropdownTypography"),lineHeight:S[0].lineHeight,onLineHeight:e=>qe({lineHeight:e},"dropdownTypography"),lineHeightType:S[0].lineType,onLineHeightType:e=>qe({lineType:e},"dropdownTypography"),reLetterSpacing:S[0].letterSpacing,onLetterSpacing:e=>qe({letterSpacing:e},"dropdownTypography"),letterSpacingType:S[0].letterType,onLetterSpacingType:e=>qe({letterType:e},"dropdownTypography"),textTransform:S[0].textTransform,onTextTransform:e=>qe({textTransform:e},"dropdownTypography"),fontFamily:S[0].family,onFontFamily:e=>qe({family:e},"dropdownTypography"),onFontChange:e=>{qe({family:e.value,google:e.google},"dropdownTypography")},onFontArrayChange:e=>qe(e,"dropdownTypography"),googleFont:S[0].google,onGoogleFont:e=>qe({google:e},"dropdownTypography"),loadGoogleFont:S[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e},"dropdownTypography"),fontVariant:S[0].variant,onFontVariant:e=>qe({variant:e},"dropdownTypography"),fontWeight:S[0].weight,onFontWeight:e=>qe({weight:e},"dropdownTypography"),fontStyle:S[0].style,onFontStyle:e=>qe({style:e},"dropdownTypography"),fontSubset:S[0].subset,onFontSubset:e=>qe({subset:e},"dropdownTypography")}))),(0,e.createElement)(ef,{title:(0,a.__)("Sub Menu Descriptions","kadence-blocks")},(0,e.createElement)(td,{label:(0,a.__)("Spacing from label","kadence-blocks-pro"),value:re,valueTablet:se,valueMobile:ae,onChange:e=>d({dropdownDescriptionSpacing:e}),onChangeTablet:e=>d({dropdownDescriptionSpacingTablet:e}),onChangeMobile:e=>d({dropdownDescriptionSpacingMobile:e}),min:0,max:"em"===le||"rem"===le?12:100,step:"em"===le||"rem"===le?.1:1,unit:le,units:["px","em","rem","vw"],onUnit:e=>d({dropdownDescriptionSpacingUnit:e}),showUnit:!0}),(0,e.createElement)(Qc,{label:"Color",desktopChildren:(0,e.createElement)(Gm,{colorBase:"dropdownDescriptionColor",size:"",includeBackground:!1,setAttributes:d,attributes:l}),tabletChildren:(0,e.createElement)(Gm,{colorBase:"dropdownDescriptionColor",size:"Tablet",includeBackground:!1,setAttributes:d,attributes:l}),mobileChildren:(0,e.createElement)(Gm,{colorBase:"dropdownDescriptionColor",size:"Mobile",includeBackground:!1,setAttributes:d,attributes:l})}),h("fontSettings","kadence/navigation-link")&&(0,e.createElement)(jc,{title:(0,a.__)("Typography Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-adv-btn-font-family"},(0,e.createElement)(Jm,{fontSize:he[0].size,onFontSize:e=>qe({size:e},"dropdownDescriptionTypography"),fontSizeType:he[0].sizeType,onFontSizeType:e=>qe({sizeType:e},"dropdownDescriptionTypography"),lineHeight:he[0].lineHeight,onLineHeight:e=>qe({lineHeight:e},"dropdownDescriptionTypography"),lineHeightType:he[0].lineType,onLineHeightType:e=>qe({lineType:e},"dropdownDescriptionTypography"),reLetterSpacing:he[0].letterSpacing,onLetterSpacing:e=>qe({letterSpacing:e},"dropdownDescriptionTypography"),letterSpacingType:he[0].letterType,onLetterSpacingType:e=>qe({letterType:e},"dropdownDescriptionTypography"),textTransform:he[0].textTransform,onTextTransform:e=>qe({textTransform:e},"dropdownDescriptionTypography"),fontFamily:he[0].family,onFontFamily:e=>qe({family:e},"dropdownDescriptionTypography"),onFontChange:e=>{qe({family:e.value,google:e.google},"dropdownDescriptionTypography")},onFontArrayChange:e=>qe(e,"dropdownDescriptionTypography"),googleFont:he[0].google,onGoogleFont:e=>qe({google:e},"dropdownDescriptionTypography"),loadGoogleFont:he[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e},"dropdownDescriptionTypography"),fontVariant:he[0].variant,onFontVariant:e=>qe({variant:e},"dropdownDescriptionTypography"),fontWeight:he[0].weight,onFontWeight:e=>qe({weight:e},"dropdownDescriptionTypography"),fontStyle:he[0].style,onFontStyle:e=>qe({style:e},"dropdownDescriptionTypography"),fontSubset:he[0].subset,onFontSubset:e=>qe({subset:e},"dropdownDescriptionTypography")})))),(0,e.createElement)(jc,{title:(0,a.__)("Highlight Label","kadence-blocks-pro"),initialOpen:!1,panelName:"navigation-link-highlight-settings"},(0,e.createElement)(r.TextControl,{__nextHasNoMarginBottom:!0,value:b?(0,Kc.__unstableStripHTML)(b):"",onChange:e=>{d({highlightLabel:e})},label:(0,a.__)("Label"),autoComplete:"off"}),(0,e.createElement)(Qc,{label:(0,a.__)("Highlight Label Colors","kadence-blocks-pro"),desktopChildren:(0,e.createElement)(Gm,{colorBase:"labelColor",backgroundBase:"labelBackground",size:"",setAttributes:d,attributes:l}),tabletChildren:(0,e.createElement)(Gm,{colorBase:"labelColor",backgroundBase:"labelBackground",size:"Tablet",setAttributes:d,attributes:l}),mobileChildren:(0,e.createElement)(Gm,{colorBase:"labelColor",backgroundBase:"labelBackground",size:"Mobile",setAttributes:d,attributes:l})}),(0,e.createElement)(Im,{label:(0,a.__)("Border","kadence-blocks-pro"),value:v[0].border,tabletValue:v[0].tabletBorder,mobileValue:v[0].mobileBorder,onChange:e=>{Ge({border:e},"highlightSpacing")},onChangeTablet:e=>Ge({tabletBorder:e},"highlightSpacing"),onChangeMobile:e=>Ge({mobileBorder:e},"highlightSpacing")}),(0,e.createElement)(Bm,{label:(0,a.__)("Border Radius","kadence-blocks-pro"),value:v[0].borderRadius,onChange:e=>Ge({borderRadius:e},"highlightSpacing"),tabletValue:v[0].tabletBorderRadius,onChangeTablet:e=>Ge({tabletBorderRadius:e},"highlightSpacing"),mobileValue:v[0].mobileBorderRadius,onChangeMobile:e=>Ge({mobileBorderRadius:e},"highlightSpacing"),unit:"px",units:["px"],min:0,max:200,step:1}),(0,e.createElement)(jc,{title:(0,a.__)("Typography Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-link-highlight-label-typography"},(0,e.createElement)(Jm,{fontSize:C[0].size,onFontSize:e=>qe({size:e},"highlightTypography"),fontSizeType:C[0].sizeType,onFontSizeType:e=>qe({sizeType:e},"highlightTypography"),lineHeight:C[0].lineHeight,onLineHeight:e=>qe({lineHeight:e},"highlightTypography"),lineHeightType:C[0].lineType,onLineHeightType:e=>qe({lineType:e},"highlightTypography"),reLetterSpacing:C[0].letterSpacing,onLetterSpacing:e=>qe({letterSpacing:e},"highlightTypography"),letterSpacingType:C[0].letterType,onLetterSpacingType:e=>qe({letterType:e},"highlightTypography"),textTransform:C[0].textTransform,onTextTransform:e=>qe({textTransform:e},"highlightTypography"),fontFamily:C[0].family,onFontFamily:e=>qe({family:e},"highlightTypography"),onFontChange:e=>{qe({family:e.value,google:e.google},"highlightTypography")},onFontArrayChange:e=>qe(e,"highlightTypography"),googleFont:C[0].google,onGoogleFont:e=>qe({google:e},"highlightTypography"),loadGoogleFont:C[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e},"highlightTypography"),fontVariant:C[0].variant,onFontVariant:e=>qe({variant:e},"highlightTypography"),fontWeight:C[0].weight,onFontWeight:e=>qe({weight:e},"highlightTypography"),fontStyle:C[0].style,onFontStyle:e=>qe({style:e},"highlightTypography"),fontSubset:C[0].subset,onFontSubset:e=>qe({subset:e},"highlightTypography")})),(0,e.createElement)("div",{className:"kt-sidebar-settings-spacer no-background"}),(0,e.createElement)(jc,{title:(0,a.__)("Highlight Icon","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-link-highlight-icon-settings"},(0,e.createElement)(pf,{value:I[0].icon,onChange:e=>Ue({icon:e},"highlightIcon"),allowClear:!0}),void 0!==I?.[0]?.icon&&""!==I[0].icon&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(td,{label:(0,a.__)("Icon Size","kadence-blocks-pro"),value:I[0].size,onChange:e=>Ue({size:e},"highlightIcon"),tabletValue:I[0].sizeTablet,onChangeTablet:e=>{Ue({sizeTablet:e},"highlightIcon")},mobileValue:I[0].sizeMobile,onChangeMobile:e=>{Ue({sizeMobile:e},"highlightIcon")},min:0,max:200,step:1,unit:"px"}),"fe"===I[0].icon.substring(0,2)&&(0,e.createElement)(ed,{label:(0,a.__)("Icon Line Width","kadence-blocks-pro"),value:I[0].width,onChange:e=>Ue({width:e},"highlightIcon"),step:.5,min:.5,max:4}),(0,e.createElement)(bf,{label:(0,a.__)("Label / Icon Gap","kadence-blocks-pro"),value:v[0].gap[0],onChange:e=>{Ge({gap:[e,v[0].gap[1],v[0].gap[2]]},"highlightSpacing")},tabletValue:v[0].gap[1],onChangeTablet:e=>Ge({gap:[v[0].gap[0],e,v[0].gap[2]]},"highlightSpacing"),mobileValue:v[0].gap[2],onChangeMobile:e=>Ge({gap:[v[0].gap[0],v[0].gap[1],e]},"highlightSpacing"),min:0,max:100,step:1,unit:"px",units:["px"]}),(0,e.createElement)(Jc,{label:(0,a.__)("Icon Position","kadence-blocks-pro"),value:z,tabletValue:F,mobileValue:B,options:[{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")}],tabletOptions:[{value:"",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")}],mobileOptions:[{value:"",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")}],onChange:e=>d({iconSide:e}),onChangeTablet:e=>d({iconSideTablet:e}),onChangeMobile:e=>d({iconSideMobile:e})}))),(0,e.createElement)("div",{className:"kt-sidebar-settings-space no-background"}),(0,e.createElement)(r.SelectControl,{value:y,options:[{value:"",label:(0,a.__)("Beside Label/Description","kadence-blocks-pro")},{value:"title",label:(0,a.__)("Beside Label","kadence-blocks-pro")}],onChange:e=>d({highlightPosition:e})}),(0,e.createElement)(Jc,{label:(0,a.__)("Label Position","kadence-blocks-pro"),value:k,tabletValue:w,mobileValue:x,options:[{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")}],tabletOptions:[{value:"",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")}],onChange:e=>d({highlightSide:e}),onChangeTablet:e=>d({highlightSideTablet:e}),onChangeMobile:e=>d({highlightSideMobile:e})}),(0,e.createElement)(bf,{label:(0,a.__)("Link Gap","kadence-blocks-pro"),value:v[0]?.textGap?.[0],onChange:e=>{Ge({textGap:[e,v[0]?.textGap?.[1],v[0]?.textGap?.[2]]},"highlightSpacing")},tabletValue:v[0]?.textGap?.[1],onChangeTablet:e=>Ge({textGap:[v[0]?.textGap?.[0],e,v[0]?.textGap?.[2]]},"highlightSpacing"),mobileValue:v[0]?.textGap?.[2],onChangeMobile:e=>Ge({textGap:[v[0]?.textGap?.[0],v[0]?.textGap?.[1],e]},"highlightSpacing"),min:0,max:100,step:1,unit:"px",units:["px"]}),(0,e.createElement)(Vl,{label:(0,a.__)("Padding","kadence-blocks-pro"),value:v[0].padding,onChange:e=>Ge({padding:e},"highlightSpacing"),tabletValue:v[0].tabletPadding,onChangeTablet:e=>Ge({tabletPadding:e},"highlightSpacing"),mobileValue:v[0].mobilePadding,onChangeMobile:e=>Ge({mobilePadding:e},"highlightSpacing"),min:0,max:200,step:1,units:["px"],unit:"px"})),h("mediaSettings","kadence/navigation-link")&&(0,e.createElement)(jc,{title:(0,a.__)("Media","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-info-media-settings"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Media Type","kadence-blocks-pro"),value:O,options:[{value:"none",label:(0,a.__)("None","kadence-blocks-pro")},{value:"icon",label:(0,a.__)("Icon","kadence-blocks-pro")},{value:"image",label:(0,a.__)("Image","kadence-blocks-pro")}],onChange:e=>d({mediaType:e})}),O&&"none"!==O&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Qc,{label:(0,a.__)("Media Position","kadence-blocks-pro"),desktopChildren:Ze(),tabletChildren:Ze("Tablet"),mobileChildren:Ze("Mobile")})),"image"===O&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)($f,{label:(0,a.__)("Image","kadence-blocks-pro"),hasImage:!!(N&&N[0]&&N[0].url),imageURL:N&&N[0]&&N[0].url?N[0].url:"",imageID:N&&N[0]&&N[0].id?N[0].id:"",onRemoveImage:()=>{Ye({id:"",url:"",alt:"",width:"",height:"",maxWidth:"",subtype:""})},onSaveImage:e=>{let t,n;if(N[0]&&N[0].width&&N[0].height){const t=void 0!==e.sizes?e.sizes:[],o=Object.keys(t).map(e=>({slug:e,name:e}));(0,u.map)(o,({name:t,slug:o})=>{if("image/svg+xml"===(0,u.get)(e,["mime_type"]))return null;if(!(0,u.get)(e,["sizes",o,"url"]))return null;const i=(0,u.get)(e,["sizes",o,"width"]);if(!i)return null;const r=(0,u.get)(e,["sizes",o,"height"]);return r?r===N[0].height&&i===N[0].width?(n=o,null):void 0:null})}const o=n&&""!==n?n:"thumbnail";"full"!==o&&(t=(0,u.get)(e,["sizes",o,"url"])||(0,u.get)(e,["media_details","sizes",o,"source_url"]));const i=(0,u.get)(e,["sizes",o,"width"])||(0,u.get)(e,["media_details","sizes",o,"width"])||(0,u.get)(e,["width"])||(0,u.get)(e,["media_details","width"]),r=(0,u.get)(e,["sizes",o,"height"])||(0,u.get)(e,["media_details","sizes",o,"height"])||(0,u.get)(e,["height"])||(0,u.get)(e,["media_details","height"]),s=N[0]&&N[0].maxWidth?N[0].maxWidth:e.width;Ye({id:e.id,url:t||e.url,alt:e.alt,width:i,height:r,maxWidth:s||50,subtype:e.subtype})},disableMediaButtons:!!N[0].url,isSelected:m,attributes:l,setAttributes:d,name:f,clientId:g,context:p}),N[0].id&&"svg+xml"!==N[0].subtype&&(0,e.createElement)(Tf,{label:(0,a.__)("Image File Size","kadence-blocks-pro"),id:N[0].id,url:N[0].url,onChange:e=>{Ye({url:e.value,width:e.width,height:e.height})}}),(0,e.createElement)(ed,{label:(0,a.__)("Max Image Width","kadence-blocks-pro"),value:N[0].maxWidth,onChange:e=>Ye({maxWidth:e}),min:5,max:800,step:1,reset:()=>{Ye({maxWidth:4e3}),setTimeout(()=>{Ye({maxWidth:""})},20)}}),(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)(r.TextareaControl,{label:(0,a.__)("Alt text","kadence-blocks-pro"),value:N&&N[0]&&N[0].alt?N[0].alt:"",onChange:e=>Ye({alt:e}),className:"mb-0"}),(0,e.createElement)(r.Button,{text:(0,a.__)("Use as this image's default alt text","kadence-blocks-pro"),variant:"link",onClick:()=>{var e,t;e=N&&N[0]&&N[0].alt?N[0].alt:"",(t=N[0].id)&&(He("postType","attachment",t,{alt_text:e}).catch(()=>{console.log("error")}),Ve("postType","attachment",t).then(()=>{We((0,a.__)("Media default alt text updated."),{type:"snackbar"})}))}})),(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Image ratio","kadence-blocks-pro"),options:[{label:(0,a.__)("Inherit","kadence-blocks-pro"),value:"inherit"},{label:(0,a.__)("Landscape 4:3","kadence-blocks-pro"),value:"land43"},{label:(0,a.__)("Landscape 3:2","kadence-blocks-pro"),value:"land32"},{label:(0,a.__)("Landscape 16:9","kadence-blocks-pro"),value:"land169"},{label:(0,a.__)("Landscape 2:1","kadence-blocks-pro"),value:"land21"},{label:(0,a.__)("Landscape 3:1","kadence-blocks-pro"),value:"land31"},{label:(0,a.__)("Landscape 4:1","kadence-blocks-pro"),value:"land41"},{label:(0,a.__)("Portrait 3:4","kadence-blocks-pro"),value:"port34"},{label:(0,a.__)("Portrait 2:3","kadence-blocks-pro"),value:"port23"},{label:(0,a.__)("Square 1:1","kadence-blocks-pro"),value:"square"}],value:ye,onChange:e=>d({imageRatio:e})})),"icon"===O&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(pf,{value:D[0].icon,onChange:e=>Ue({icon:e})}),(0,e.createElement)(td,{label:(0,a.__)("Icon Size","kadence-blocks-pro"),value:D[0].size,tabletValue:D[0].sizeTablet?D[0].sizeTablet:"",mobileValue:D[0].sizeMobile?D[0].sizeMobile:"",onChange:e=>Ue({size:e}),onChangeTablet:e=>Ue({sizeTablet:e}),onChangeMobile:e=>Ue({sizeMobile:e}),units:["px"],unit:"px",min:5,max:250,step:1}),D[0].icon&&"fe"===D[0].icon.substring(0,2)&&(0,e.createElement)(ed,{label:(0,a.__)("Icon Line Width","kadence-blocks-pro"),value:D[0].width,onChange:e=>Ue({width:e}),step:.5,min:.5,max:4}),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Title for screen readers","kadence-blocks-pro"),help:(0,a.__)("If no title added screen readers will ignore, good if the icon is purely decorative.","kadence-blocks-pro"),value:D[0].title,onChange:e=>Ue({title:e})})),O&&"none"!==O&&(0,e.createElement)(e.Fragment,null,"image"===O&&(0,e.createElement)(id,{normal:(0,e.createElement)(_g,{key:"overlay-color-normal",label:(0,a.__)("Overlay Color","kadence-blocks-pro"),value:l.imageOverlayBackground||"",tabletValue:l.imageOverlayBackgroundTablet||"",mobileValue:l.imageOverlayBackgroundMobile||"",colorDefault:"",onChange:e=>d({imageOverlayBackground:e}),onChangeTablet:e=>d({imageOverlayBackgroundTablet:e}),onChangeMobile:e=>d({imageOverlayBackgroundMobile:e})}),hover:(0,e.createElement)(_g,{key:"overlay-color-hover",label:(0,a.__)("Overlay Color","kadence-blocks-pro"),value:l.imageOverlayBackgroundHover||"",tabletValue:l.imageOverlayBackgroundHoverTablet||"",mobileValue:l.imageOverlayBackgroundHoverMobile||"",colorDefault:"",onChange:e=>d({imageOverlayBackgroundHover:e}),onChangeTablet:e=>d({imageOverlayBackgroundHoverTablet:e}),onChangeMobile:e=>d({imageOverlayBackgroundHoverMobile:e})}),active:(0,e.createElement)(_g,{key:"overlay-color-active",label:(0,a.__)("Overlay Color","kadence-blocks-pro"),value:l.imageOverlayBackgroundActive||"",tabletValue:l.imageOverlayBackgroundActiveTablet||"",mobileValue:l.imageOverlayBackgroundActiveMobile||"",colorDefault:"",onChange:e=>d({imageOverlayBackgroundActive:e}),onChangeTablet:e=>d({imageOverlayBackgroundActiveTablet:e}),onChangeMobile:e=>d({imageOverlayBackgroundActiveMobile:e})}),setActivePreview:i,activePreview:s}),"icon"===O&&(0,e.createElement)(Um,{colorBase:"mediaColor",backgroundBase:"mediaBackground",backgroundTypeBase:"mediaBackgroundType",backgroundGradientBase:"mediaBackgroundGradient",borderBase:"mediaBorder",borderRadiusBase:"mediaBorderRadius",borderRadiusUnitBase:"mediaBorderRadiusUnit",setAttributes:d,attributes:l}),(0,e.createElement)(td,{label:(0,a.__)("Media Spacing","kadence-blocks-pro"),value:j[0].margin[0],valueTablet:j[0].marginTablet[0],valueMobile:j[0].marginMobile[0],onChange:e=>Ge({margin:[e,"","",""]}),onChangeTablet:e=>Ge({marginTablet:[e,"","",""]}),onChangeMobile:e=>Ge({marginMobile:[e,"","",""]}),units:["px"],unit:"px",step:1,min:0,max:100}),(0,e.createElement)(Vl,{label:(0,a.__)("Media Padding","kadence-blocks-pro"),value:j[0].padding,onChange:e=>Ge({padding:e}),tabletValue:j[0].paddingTablet,onChangeTablet:e=>Ge({tabletPadding:e}),mobileValue:j[0].paddingMobile,onChangeMobile:e=>Ge({mobilePadding:e}),min:0,max:"em"===j?.[0]?.paddingType||"rem"===j?.[0]?.paddingType?12:100,step:"em"===j?.[0]?.paddingType||"rem"===j?.[0]?.paddingType?.1:1,unit:j?.[0]?.paddingType,units:["px","em","rem","%"],onUnit:e=>Ge({paddingType:e}),showUnit:!0}))),(0,e.createElement)(jc,{title:(0,a.__)("Description Styles","kadence-blocks-pro"),panelName:"kb-navigation-link-style-description",initialOpen:!1},O&&"none"!==O&&("left"==fe||"right"==fe)&&(0,e.createElement)(Jc,{label:(0,a.__)("Align","kadence-blocks-pro"),value:ne,tabletValue:oe,mobileValue:ie,options:[{value:"normal",label:(0,a.__)("Align with Title","kadence-blocks-pro")},{value:"icon",label:(0,a.__)("Align with Icon","kadence-blocks-pro")}],tabletOptions:[{value:"",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"normal",label:(0,a.__)("Align with Title","kadence-blocks-pro")},{value:"icon",label:(0,a.__)("Align with Icon","kadence-blocks-pro")}],onChange:e=>d({descriptionPositioning:e}),onChangeTablet:e=>d({descriptionPositioningTablet:e}),onChangeMobile:e=>d({descriptionPositioningMobile:e})}),(0,e.createElement)(td,{label:(0,a.__)("Spacing from label","kadence-blocks-pro"),value:q,valueTablet:K,valueMobile:Y,onChange:e=>d({descriptionSpacing:e}),onChangeTablet:e=>d({descriptionSpacingTablet:e}),onChangeMobile:e=>d({descriptionSpacingMobile:e}),min:0,max:"em"===X||"rem"===X?12:100,step:"em"===X||"rem"===X?.1:1,unit:X,units:["px","em","rem","vw"],onUnit:e=>d({descriptionSpacingUnit:e}),showUnit:!0}),(0,e.createElement)(Qc,{label:"Color",desktopChildren:(0,e.createElement)(Gm,{colorBase:"descriptionColor",size:"",includeBackground:!1,setAttributes:d,attributes:l}),tabletChildren:(0,e.createElement)(Gm,{colorBase:"descriptionColor",size:"Tablet",includeBackground:!1,setAttributes:d,attributes:l}),mobileChildren:(0,e.createElement)(Gm,{colorBase:"descriptionColor",size:"Mobile",includeBackground:!1,setAttributes:d,attributes:l})}),h("fontSettings","kadence/navigation-link")&&(0,e.createElement)(jc,{title:(0,a.__)("Typography Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-adv-btn-font-family"},(0,e.createElement)(Jm,{fontSize:te[0].size,onFontSize:e=>qe({size:e},"descriptionTypography"),fontSizeType:te[0].sizeType,onFontSizeType:e=>qe({sizeType:e},"descriptionTypography"),lineHeight:te[0].lineHeight,onLineHeight:e=>qe({lineHeight:e},"descriptionTypography"),lineHeightType:te[0].lineType,onLineHeightType:e=>qe({lineType:e},"descriptionTypography"),reLetterSpacing:te[0].letterSpacing,onLetterSpacing:e=>qe({letterSpacing:e},"descriptionTypography"),letterSpacingType:te[0].letterType,onLetterSpacingType:e=>qe({letterType:e},"descriptionTypography"),textTransform:te[0].textTransform,onTextTransform:e=>qe({textTransform:e},"descriptionTypography"),fontFamily:te[0].family,onFontFamily:e=>qe({family:e},"descriptionTypography"),onFontChange:e=>{qe({family:e.value,google:e.google},"descriptionTypography")},onFontArrayChange:e=>qe(e,"descriptionTypography"),googleFont:te[0].google,onGoogleFont:e=>qe({google:e},"descriptionTypography"),loadGoogleFont:te[0].loadGoogle,onLoadGoogleFont:e=>qe({loadGoogle:e},"descriptionTypography"),fontVariant:te[0].variant,onFontVariant:e=>qe({variant:e},"descriptionTypography"),fontWeight:te[0].weight,onFontWeight:e=>qe({weight:e},"descriptionTypography"),fontStyle:te[0].style,onFontStyle:e=>qe({style:e},"descriptionTypography"),fontSubset:te[0].subset,onFontSubset:e=>qe({subset:e},"descriptionTypography")}))))}),(0,l.addFilter)("kadence.megaMenuToolbarControlsNavigationLink","kadence/navigationlinkpro",function(t,n,o){const{attributes:s,clientId:l}=n,{isMegaMenu:d}=s,{isTopLevelLink:u,inMegaMenu:h}=(0,c.useSelect)(e=>{const{getBlockName:t,getBlockRootClientId:n,getBlockParentsByBlockName:o}=e(i.store),r=t(n(l));return{isTopLevelLink:"core/navigation"===r||"kadence/navigation"===r,inMegaMenu:1!==o(l,"kadence/navigation").length}},[l]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToolbarGroup,null,u&&!h&&(0,e.createElement)(r.ToolbarButton,{name:"megamenu",title:d?(0,a.__)("Delete mega menu","kadence-blocks-pro"):(0,a.__)("Add mega menu","kadence-blocks-pro"),onClick:()=>o(!d),isPressed:d,icon:Rf})))}),(0,l.addFilter)("kadence.megaMenuControlsNavigationLink","kadence/navigationlinkpro",function(t,n,i,s,l,c){const{attributes:d,clientId:u,setAttributes:h}=n,{isMegaMenu:p,megaMenuWidth:g,megaMenuWidthTablet:m,megaMenuWidthMobile:f,megaMenuCustomWidth:b,megaMenuCustomWidthTablet:v,megaMenuCustomWidthMobile:y,megaMenuCustomWidthUnit:k,dropdownHorizontalAlignment:x,dropdownHorizontalAlignmentTablet:w,dropdownHorizontalAlignmentMobile:_}=d,C=((e,t,n,i,r=!1)=>r?Xc(e,t,n,i):(0,o.useMemo)(()=>Xc(e,t,n,i),[e,t,n,i]))(l,g,m,f,!0);return(0,e.createElement)(e.Fragment,null,s&&!c&&(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Enable Mega Menu","kadence-blocks-pro"),checked:p,onChange:e=>i(e)}),p&&(0,e.createElement)(Jc,{label:(0,a.__)("Mega Menu Width","kadence-blocks-pro"),value:g,tabletValue:m,mobileValue:f,options:[{value:"",label:(0,a.__)("Default","kadence-blocks-pro")},{value:"container",label:(0,a.__)("Menu Container Width","kadence-blocks-pro")},{value:"content",label:(0,a.__)("Content","kadence-blocks-pro")},{value:"full",label:(0,a.__)("Full Width","kadence-blocks-pro")},{value:"custom",label:(0,a.__)("Custom Width","kadence-blocks-pro")}],onChange:e=>h({megaMenuWidth:e}),onChangeTablet:e=>h({megaMenuWidthTablet:e}),onChangeMobile:e=>h({megaMenuWidthMobile:e})}),p&&"custom"==C&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(td,{label:(0,a.__)("Mega Menu Custom Width","kadence-blocks-pro"),value:null!=b?b:null,valueTablet:null!=v?v:null,valueMobile:null!=y?y:null,onChange:e=>h({megaMenuCustomWidth:e}),onChangeTablet:e=>h({megaMenuCustomWidthTablet:e}),onChangeMobile:e=>h({megaMenuCustomWidthMobile:e}),onUnit:e=>h({megaMenuCustomWidthUnit:e}),min:"px"==k?120:0,max:"px"==k?2e3:100,units:["px","em","rem"],unit:k,showUnit:!0}),(0,e.createElement)(Jc,{label:(0,a.__)("Dropdown Horizontal Alignment","kadence-blocks-pro"),value:x,tabletValue:w,mobileValue:_,options:[{value:"",label:(0,a.__)("Inherit","kadence-blocks-pro")},{value:"left",label:(0,a.__)("Left","kadence-blocks-pro")},{value:"center",label:(0,a.__)("Center","kadence-blocks-pro")},{value:"right",label:(0,a.__)("Right","kadence-blocks-pro")}],onChange:e=>h({dropdownHorizontalAlignment:e}),onChangeTablet:e=>h({dropdownHorizontalAlignmentTablet:e}),onChangeMobile:e=>h({dropdownHorizontalAlignmentMobile:e})})))});const Rf=(0,e.createElement)("svg",{id:"b",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 142.08 94.72"},(0,e.createElement)("g",{id:"c"},(0,e.createElement)("path",{d:"M0,43.72c0,26.23,17.49,40.07,43.72,40.07h3.64v10.93l21.86-18.22-21.86-18.22v14.57h-3.64c-18.22,0-32.79-10.93-32.79-29.15S25.5,10.93,43.72,10.93h25.5V0h-25.5C17.49,0,0,17.49,0,43.72Z","stroke-width":"0px;"}),(0,e.createElement)("path",{d:"M83.79,0v83.79h58.29V0h-58.29ZM131.15,72.86h-36.43V10.93h36.43v61.93Z","stroke-width":"0px;"})));(0,l.addFilter)("kadence.tableBlockStickySettings","kadence/tablepro",function(t,n){const{attributes:o,clientId:i,setAttributes:s}=n,{stickyFirstRow:l,stickyFirstColumn:c}=o;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(jc,{title:(0,a.__)("Sticky Settings","kadence-blocks"),panelName:"sticky-settings",initialOpen:!1},(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Sticky first row","kadence-blocks"),checked:l,onChange:e=>s({stickyFirstRow:e}),help:(0,a.__)("Max height must be set for this to apply.","kadence-blocks")}),(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Sticky first column","kadence-blocks"),checked:c,onChange:e=>s({stickyFirstColumn:e}),help:(0,a.__)("Max width must be set for this to apply.","kadence-blocks")})))}),(0,l.addFilter)("kadence.headerBackdropFilter","kadence/headerBackdropFilter",function(t,n,o,i){const{backdropFilterType:s,backdropFilterSize:l}=n,c=(e,t)=>"none"!==e?e+`(${t}${("blur"===e?"px":"hue-rotate"===e?"deg":"%")||""})`:"";return(0,e.createElement)(jc,{title:(0,a.__)("Backdrop Filter","kadence-blocks"),initialOpen:!1,panelName:"backdrop-filter-settings"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Backdrop Filter","kadence-blocks-pro"),value:s,help:(0,a.__)("Background should have transparency so backdrop is visible.","kadence-blocks-pro"),options:[{label:"None",value:"none"},{label:"Blur",value:"blur"},{label:"Brightness",value:"brightness"},{label:"Contrast",value:"contrast"},{label:"Grayscale",value:"grayscale"},{label:"Hue Rotate",value:"hue-rotate"},{label:"Invert",value:"invert"},{label:"Saturate",value:"saturate"},{label:"Sepia",value:"sepia"}],onChange:e=>{(e=>{const t=c(e,l);i({...o,_kad_header_pro_backdropFilterType:e,_kad_header_pro_backdropFilterString:t})})(e)}}),"none"!==s&&(0,e.createElement)(ed,{label:(0,a.__)("Size","kadence-blocks-pro"),value:l,onChange:e=>{(e=>{const t=c(s,e);i({...o,_kad_header_pro_backdropFilterSize:e,_kad_header_pro_backdropFilterString:t})})(e)},step:1,min:1,max:"hue-rotate"===s?360:100,reset:!0}))}),(0,l.addFilter)("kadence.styleControlsBackdropFilter","kadence/styleControlsBackdropFilter",function(t,n){const{attributes:o,setAttributes:i}=n,{backdropFilterType:s,backdropFilterSize:l}=o,c=(e,t)=>"none"!==e?e+`(${t}${("blur"===e?"px":"hue-rotate"===e?"deg":"%")||""})`:"";return(0,e.createElement)(jc,{title:(0,a.__)("Backdrop Filter","kadence-blocks"),initialOpen:!1,panelName:"backdrop-filter-settings"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Backdrop Filter","kadence-blocks-pro"),value:s,help:(0,a.__)("Background should have transparency so backdrop is visible.","kadence-blocks-pro"),options:[{label:"None",value:"none"},{label:"Blur",value:"blur"},{label:"Brightness",value:"brightness"},{label:"Contrast",value:"contrast"},{label:"Grayscale",value:"grayscale"},{label:"Hue Rotate",value:"hue-rotate"},{label:"Invert",value:"invert"},{label:"Saturate",value:"saturate"},{label:"Sepia",value:"sepia"}],onChange:e=>{i({backdropFilterType:e,backdropFilterString:c(e,l)})}}),"none"!==s&&(0,e.createElement)(ed,{label:(0,a.__)("Size","kadence-blocks-pro"),value:l,onChange:e=>{i({backdropFilterSize:e,backdropFilterString:c(s,e)})},step:1,min:1,max:"hue-rotate"===s?360:100,reset:!0}))});const Lf=(0,e.createElement)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(R.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));(0,l.addFilter)("kadence.videoPopupProStyleControls","kadence/videoPopupProStyleControls",function(t,n){const{attributes:i,setAttributes:s}=n,{displayShadow:l,borderStyle:c,tabletBorderStyle:d,mobileBorderStyle:h,borderRadius:p,tabletBorderRadius:g,mobileBorderRadius:m,borderRadiusUnit:f,playBtn:b,popup:v,backgroundOverlay:y,shadow:k,shadowHover:x}=i,w=e=>{const t=x.map((t,n)=>(0===n&&(t={...t,...e}),t));s({shadowHover:t})},_=e=>{const t=k.map((t,n)=>(0===n&&(t={...t,...e}),t));s({shadow:t})},C=e=>{const t=b.map((t,n)=>(0===n&&(t={...t,...e}),t));s({playBtn:t})},S=e=>{const t=y.map((t,n)=>(0===n&&(t={...t,...e}),t));s({backgroundOverlay:t})},E=[{key:"solid",name:(0,a.__)("Solid","kadence-blocks-pro")},{key:"gradient",name:(0,a.__)("Gradient","kadence-blocks-pro")}],M=[{key:"linear",name:(0,a.__)("Linear","kadence-blocks-pro")},{key:"radial",name:(0,a.__)("Radial","kadence-blocks-pro")}],$={...kadence_blocks_params_ico.icons,...kadence_blocks_params_fa.icons};return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(jc,{title:(0,a.__)("Pop Animation","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-video-pop-animation"},(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Animation","kadence-blocks-pro"),value:void 0!==v&&void 0!==v[0]&&v[0].animation?v[0].animation:"none",options:[{value:"none",label:(0,a.__)("None","kadence-blocks-pro")},{value:"zoom",label:(0,a.__)("Zoom","kadence-blocks-pro")},{value:"zoom-out",label:(0,a.__)("Zoom Out","kadence-blocks-pro")},{value:"fade",label:(0,a.__)("Fade","kadence-blocks-pro")},{value:"slide-right",label:(0,a.__)("Slide Right","kadence-blocks-pro")},{value:"slide-left",label:(0,a.__)("Slide Left","kadence-blocks-pro")},{value:"flip",label:(0,a.__)("Flip","kadence-blocks-pro")}],onChange:e=>(e=>{let t;t=void 0===v?[{background:"#000000",backgroundOpacity:.8,closeColor:"#ffffff",maxWidth:900,maxWidthTablet:"",maxWidthMobile:"",maxWidthUnit:"px",animation:"none"}]:v;const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));s({popup:n})})({animation:e})})),(0,e.createElement)(jc,{title:(0,a.__)("Play Icon","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-video-play-icon"},(0,e.createElement)(pf,{icons:["fe_play","fe_playCircle","fe_video","fe_youtube","ic_play","fas_play","fas_play-circle","fas_caret-square-right","fas_caret-right","fas_video","fa_youtube","fa_youtube-square","fa_vimeo","fa_vimeo-v"],value:b[0].icon?b[0].icon:"fas_play",onChange:e=>C({icon:e}),showSearch:!1,renderFunc:t=>(0,e.createElement)(rf,{name:t,icon:$[t]})}),(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Icon Style","kadence-blocks-pro"),value:b[0].style,options:[{value:"default",label:(0,a.__)("Default")},{value:"stacked",label:(0,a.__)("Stacked")}],onChange:e=>{C({style:e})}}),(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Icon Size","kadence-blocks-pro"),value:b[0].size,onChange:e=>C({size:e}),min:5,max:250,allowReset:!0}),b[0].icon&&"fe"===b[0].icon.substring(0,2)&&(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Line Width","kadence-blocks-pro"),value:b[0].width,onChange:e=>{C({width:e})},step:.5,min:.5,max:4}),(0,e.createElement)(r.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:(0,a.__)("Normal","kadence-blocks-pro"),className:"kt-normal-tab"},{name:"hover",title:(0,a.__)("Hover","kadence-blocks-pro"),className:"kt-hover-tab"}]},t=>{let n;return t.name&&(n="hover"===t.name?(0,e.createElement)(o.Fragment,null,(0,e.createElement)(wg,{label:(0,a.__)("Icon Hover Color","kadence-blocks-pro"),colorValue:b[0].colorHover?b[0].colorHover:"",colorDefault:"",opacityValue:void 0!==b[0].opacityHover?b[0].opacityHover:1,onColorChange:e=>C({colorHover:e}),onOpacityChange:e=>C({opacityHover:e})}),"default"!==b[0].style&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(wg,{label:(0,a.__)("Icon Hover Background","kadence-blocks-pro"),colorValue:b[0].backgroundHover?b[0].backgroundHover:"",colorDefault:"",opacityValue:void 0!==b[0].backgroundOpacityHover?b[0].backgroundOpacityHover:1,onColorChange:e=>C({backgroundHover:e}),onOpacityChange:e=>C({backgroundOpacityHover:e})}),(0,e.createElement)(wg,{label:(0,a.__)("Icon Hover Border Color","kadence-blocks-pro"),colorValue:b[0].borderHover?b[0].borderHover:"",colorDefault:"",opacityValue:void 0!==b[0].borderOpacityHover?b[0].borderOpacityHover:1,onColorChange:e=>C({borderHover:e}),onOpacityChange:e=>C({borderOpacityHover:e})}))):(0,e.createElement)(o.Fragment,null,(0,e.createElement)(wg,{label:(0,a.__)("Icon Color","kadence-blocks-pro"),colorValue:b[0].color?b[0].color:"#ffffff",colorDefault:"#ffffff",opacityValue:void 0!==b[0].opacity?b[0].opacity:1,onColorChange:e=>C({color:e}),onOpacityChange:e=>C({opacity:e})}),"default"!==b[0].style&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(wg,{label:(0,a.__)("Icon Background","kadence-blocks-pro"),colorValue:b[0].background?b[0].background:"#000000",colorDefault:"#000000",opacityValue:void 0!==b[0].backgroundOpacity?b[0].backgroundOpacity:.7,onColorChange:e=>C({background:e}),onOpacityChange:e=>C({backgroundOpacity:e})}),(0,e.createElement)(wg,{label:(0,a.__)("Icon Border Color","kadence-blocks-pro"),colorValue:b[0].border?b[0].border:"",colorDefault:"",opacityValue:void 0!==b[0].borderOpacity?b[0].borderOpacity:1,onColorChange:e=>C({border:e}),onOpacityChange:e=>C({borderOpacity:e})})))),(0,e.createElement)("div",null,n)}),"default"!==b[0].style&&(0,e.createElement)(o.Fragment,null,(0,e.createElement)(Fm,{label:(0,a.__)("Border Width","kadence-blocks-pro"),measurement:b[0].borderWidth,onChange:e=>C({borderWidth:e}),min:0,max:40,step:1}),(0,e.createElement)(Fm,{label:(0,a.__)("Border Radius (%)","kadence-blocks-pro"),measurement:b[0].borderRadius,onChange:e=>C({borderRadius:e}),min:0,max:50,step:1,controlTypes:[{key:"linked",name:(0,a.__)("Linked","kadence-blocks-pro"),icon:Ol},{key:"individual",name:(0,a.__)("Individual","kadence-blocks-pro"),icon:Dl}],firstIcon:Al,secondIcon:Tl,thirdIcon:Rl,fourthIcon:Ll}),(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Padding (px)","kadence-blocks-pro"),value:b[0].padding,onChange:e=>{C({padding:e})},min:0,max:180,allowReset:!0})),(0,e.createElement)(r.TextControl,{label:(0,a.__)("Title for Icon","kadence-blocks-pro"),value:b[0].title,onChange:e=>{C({title:e})}})),(0,e.createElement)(jc,{title:(0,a.__)("Image Overlay Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-video-image-overlay"},(0,e.createElement)(r.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:(0,a.__)("Normal","kadence-blocks-pro"),className:"kt-normal-tab"},{name:"hover",title:(0,a.__)("Hover","kadence-blocks-pro"),className:"kt-hover-tab"}]},t=>{let n;return t.name&&(n="hover"===t.name?(0,e.createElement)("div",{className:"kt-inner-sub-section"},(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Hover Opacity","kadence-blocks-pro"),value:void 0!==y[0].opacityHover?y[0].opacityHover:.5,onChange:e=>S({opacityHover:e}),min:0,max:1,step:.01})):(0,e.createElement)("div",{className:"kt-inner-sub-section"},(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Overlay Opacity","kadence-blocks-pro"),value:void 0!==y[0].opacity?y[0].opacity:.3,onChange:e=>S({opacity:e}),min:0,max:1,step:.01}))),(0,e.createElement)("div",null,n)}),(0,e.createElement)("div",{className:"kt-btn-size-settings-container"},(0,e.createElement)("h2",{className:"kt-beside-btn-group"},(0,a.__)("Overlay Type","kadence-blocks-pro")),(0,e.createElement)(r.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,a.__)("Overlay Type","kadence-blocks-pro")},(0,u.map)(E,({name:t,key:n})=>(0,e.createElement)(r.Button,{key:n,className:"kt-btn-size-btn",isSmall:!0,isPrimary:(void 0!==y[0].type?y[0].type:"solid")===n,"aria-pressed":(void 0!==y[0].type?y[0].type:"solid")===n,onClick:()=>S({type:n})},t)))),"gradient"!==y[0].type&&(0,e.createElement)("div",{className:"kt-inner-sub-section"},(0,e.createElement)(wg,{label:(0,a.__)("Overlay Fill","kadence-blocks-pro"),colorValue:y[0].fill?y[0].fill:"#000000",colorDefault:"#000000",opacityValue:void 0!==y[0].fillOpacity?y[0].fillOpacity:1,onColorChange:e=>S({fill:e}),onOpacityChange:e=>S({fillOpacity:e})})),"gradient"===y[0].type&&(0,e.createElement)("div",{className:"kt-inner-sub-section"},(0,e.createElement)(wg,{label:(0,a.__)("Gradient Color 1","kadence-blocks-pro"),colorValue:y[0].fill?y[0].fill:"#000000",colorDefault:"#000000",opacityValue:void 0!==y[0].fillOpacity?y[0].fillOpacity:1,onColorChange:e=>S({fill:e}),onOpacityChange:e=>S({fillOpacity:e})}),(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Location","kadence-blocks-pro"),value:y[0].gradLoc?y[0].gradLoc:0,onChange:e=>S({gradLoc:e}),min:0,max:100}),(0,e.createElement)(wg,{label:(0,a.__)("Gradient Color 2","kadence-blocks-pro"),colorValue:y[0].secondFill?y[0].secondFill:"",colorDefault:"",opacityValue:void 0!==y[0].secondFillOpacity?y[0].secondFillOpacity:1,onColorChange:e=>S({secondFill:e}),onOpacityChange:e=>S({secondFillOpacity:e})}),(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Location","kadence-blocks-pro"),value:y[0].gradLocSecond?y[0].gradLocSecond:100,onChange:e=>S({gradLocSecond:e}),min:0,max:100}),(0,e.createElement)("div",{className:"kt-btn-size-settings-container"},(0,e.createElement)("h2",{className:"kt-beside-btn-group"},(0,a.__)("Gradient Type","kadence-blocks-pro")),(0,e.createElement)(r.ButtonGroup,{className:"kt-button-size-type-options","aria-label":(0,a.__)("Gradient Type","kadence-blocks-pro")},(0,u.map)(M,({name:t,key:n})=>(0,e.createElement)(r.Button,{key:n,className:"kt-btn-size-btn",isSmall:!0,isPrimary:(y[0].gradType?y[0].gradType:"linear")===n,"aria-pressed":(y[0].gradType?y[0].gradType:"linear")===n,onClick:()=>S({gradType:n})},t)))),"radial"!==y[0].gradType&&(0,e.createElement)(r.RangeControl,{label:(0,a.__)("Gradient Angle","kadence-blocks-pro"),value:y[0].gradAngle?y[0].gradAngle:180,onChange:e=>S({gradAngle:e}),min:0,max:360}),"radial"===y[0].gradType&&(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Gradient Position","kadence-blocks-pro"),value:y[0].gradPosition?y[0].gradPosition:"center center",options:[{value:"center top",label:(0,a.__)("Center Top","kadence-blocks-pro")},{value:"center center",label:(0,a.__)("Center Center","kadence-blocks-pro")},{value:"center bottom",label:(0,a.__)("Center Bottom","kadence-blocks-pro")},{value:"left top",label:(0,a.__)("Left Top","kadence-blocks-pro")},{value:"left center",label:(0,a.__)("Left Center","kadence-blocks-pro")},{value:"left bottom",label:(0,a.__)("Left Bottom","kadence-blocks-pro")},{value:"right top",label:(0,a.__)("Right Top","kadence-blocks-pro")},{value:"right center",label:(0,a.__)("Right Center","kadence-blocks-pro")},{value:"right bottom",label:(0,a.__)("Right Bottom","kadence-blocks-pro")}],onChange:e=>S({gradPosition:e})})),(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Blend Mode"),value:y[0].blendMode?y[0].blendMode:"normal",options:[{value:"normal",label:(0,a.__)("Normal","kadence-blocks-pro")},{value:"multiply",label:(0,a.__)("Multiply","kadence-blocks-pro")},{value:"screen",label:(0,a.__)("Screen","kadence-blocks-pro")},{value:"overlay",label:(0,a.__)("Overlay","kadence-blocks-pro")},{value:"darken",label:(0,a.__)("Darken","kadence-blocks-pro")},{value:"lighten",label:(0,a.__)("Lighten","kadence-blocks-pro")},{value:"color-dodge",label:(0,a.__)("Color Dodge","kadence-blocks-pro")},{value:"color-burn",label:(0,a.__)("Color Burn","kadence-blocks-pro")},{value:"difference",label:(0,a.__)("Difference","kadence-blocks-pro")},{value:"exclusion",label:(0,a.__)("Exclusion","kadence-blocks-pro")},{value:"hue",label:(0,a.__)("Hue","kadence-blocks-pro")},{value:"saturation",label:(0,a.__)("Saturation","kadence-blocks-pro")},{value:"color",label:(0,a.__)("Color","kadence-blocks-pro")},{value:"luminosity",label:(0,a.__)("Luminosity","kadence-blocks-pro")}],onChange:e=>S({blendMode:e})})),(0,e.createElement)(jc,{title:(0,a.__)("Border Settings","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-video-border"},(0,e.createElement)(Im,{label:(0,a.__)("Border","kadence-blocks"),value:c,tabletValue:d,mobileValue:h,onChange:e=>s({borderStyle:e}),onChangeTablet:e=>s({tabletBorderStyle:e}),onChangeMobile:e=>s({mobileBorderStyle:e})}),(0,e.createElement)(Bm,{label:(0,a.__)("Border Radius","kadence-blocks"),value:p,tabletValue:g,mobileValue:m,onChange:e=>s({borderRadius:e}),onChangeTablet:e=>s({tabletBorderRadius:e}),onChangeMobile:e=>s({mobileBorderRadius:e}),min:0,max:"em"===f||"rem"===f?24:200,step:"em"===f||"rem"===f?.1:1,unit:f||"px",units:["px","em","rem","%"],onUnit:e=>s({borderRadiusUnit:e}),isBorderRadius:!0,allowEmpty:!0,control:"linked"})),(0,e.createElement)(jc,{title:(0,a.__)("Shadow","kadence-blocks-pro"),initialOpen:!1,panelName:"kb-video-shadow"},(0,e.createElement)(r.TabPanel,{className:"kt-inspect-tabs kt-hover-tabs",activeClass:"active-tab",tabs:[{name:"normal",title:(0,a.__)("Normal","kadence-blocks-pro"),className:"kt-normal-tab"},{name:"hover",title:(0,a.__)("Hover","kadence-blocks-pro"),className:"kt-hover-tab"}]},t=>{let n;return t.name&&(n="hover"===t.name?(0,e.createElement)(Wm,{label:(0,a.__)("Hover Box Shadow","kadence-blocks-pro"),enable:l||!1,color:void 0!==x&&void 0!==x[0].color?x[0].color:"#000000",colorDefault:"#000000",opacity:void 0!==x&&void 0!==x[0].opacity?x[0].opacity:.2,hOffset:void 0!==x&&void 0!==x[0].hOffset?x[0].hOffset:1,vOffset:void 0!==x&&void 0!==x[0].vOffset?x[0].vOffset:1,blur:void 0!==x&&void 0!==x[0].blur?x[0].blur:2,spread:void 0!==x&&void 0!==x[0].spread?x[0].spread:0,onEnableChange:e=>{s({displayShadow:e})},onColorChange:e=>{w({color:e})},onOpacityChange:e=>{w({opacity:e})},onHOffsetChange:e=>{w({hOffset:e})},onVOffsetChange:e=>{w({vOffset:e})},onBlurChange:e=>{w({blur:e})},onSpreadChange:e=>{w({spread:e})}}):(0,e.createElement)(Wm,{label:(0,a.__)("Box Shadow","kadence-blocks-pro"),enable:l||!1,color:void 0!==k&&void 0!==k[0].color?k[0].color:"#000000",colorDefault:"#000000",opacity:void 0!==k&&void 0!==k[0].opacity?k[0].opacity:.2,hOffset:void 0!==k&&void 0!==k[0].hOffset?k[0].hOffset:1,vOffset:void 0!==k&&void 0!==k[0].vOffset?k[0].vOffset:1,blur:void 0!==k&&void 0!==k[0].blur?k[0].blur:2,spread:void 0!==k&&void 0!==k[0].spread?k[0].spread:0,onEnableChange:e=>{s({displayShadow:e})},onColorChange:e=>{_({color:e})},onOpacityChange:e=>{_({opacity:e})},onHOffsetChange:e=>{_({hOffset:e})},onVOffsetChange:e=>{_({vOffset:e})},onBlurChange:e=>{_({blur:e})},onSpreadChange:e=>{_({spread:e})}})),(0,e.createElement)("div",null,n)})))}),(0,l.addFilter)("kadence.videoPopupProVideoTypeOptions","kadence/videoPopupProVideoTypeOptions",function(e,t){return[{value:"external",label:(0,a.__)("YouTube/Vimeo/VideoPress","kadence-blocks")},{value:"local",label:(0,a.__)("Self Hosted","kadence-blocks")}]}),(0,l.addFilter)("kadence.videoPopupProMediaRatioOptions","kadence/videoPopupProMediaRatioOptions",function(e,t){return[{value:"",label:(0,a.__)("Default","kadence-blocks")},{value:"4:3",label:(0,a.__)("Landscape 4:3","kadence-blocks")},{value:"16:9",label:(0,a.__)("Wide Landscape 16:9","kadence-blocks")},{value:"3:4",label:(0,a.__)("Portrait 3:4","kadence-blocks")},{value:"9:16",label:(0,a.__)("Vertical 9:16","kadence-blocks")}]}),(0,l.addFilter)("kadence.videoPopupProLocalVideoControls","kadence/videoPopupProLocalVideoControls",function(t,n,s,l,c,d,u){const{attributes:h,setAttributes:p}=n,{type:g,media:m,mediaMobile:f}=h,b="mobile"===u?f:m,v="mobile"===u?"mediaMobile":"media",y=e=>{const t=b.map((t,n)=>(0===n&&(t={...t,...e}),t));p({[v]:t})},k=()=>{y({id:"",url:"",alt:"",width:"",height:"",subtype:""}),d("")},x=e=>{y({id:e.id,url:e.url,alt:e.alt,width:e.width,height:e.height,subtype:e.subtype})},w=()=>{l(!0)},_=()=>{l(!1)},C=e=>{d(e.target.value)},S=e=>{e.preventDefault(),c&&(y({url:c}),_())};return(0,e.createElement)(o.Fragment,null,"local"===g&&(0,e.createElement)(o.Fragment,null,""===b[0].id&&""===b[0].url&&(0,e.createElement)("div",{className:"kb-vide-edit-settings-container"},(0,e.createElement)(i.MediaUpload,{key:"local-"+u,onSelect:x,type:"video",value:b[0].id,allowedTypes:["video"],render:({open:t})=>(0,e.createElement)(r.Button,{className:"components-button components-icon-button kt-cta-upload-btn",onClick:t,icon:Lf,isDefault:!0},(0,a.__)("Select Video","kadence-blocks"))}),(0,e.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},(0,e.createElement)(r.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button kt-cta-upload-btn",onClick:w,isDefault:!0,isToggled:s},(0,a.__)("Insert from URL","kadence-blocks")),s&&(0,e.createElement)(r.Popover,{onClose:()=>_(),className:"editor-url-popover block-editor-url-popover"},(0,e.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},(0,e.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:e=>S(e)},(0,e.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":(0,a.__)("URL","kadence-blocks"),placeholder:(0,a.__)("Paste or type URL","kadence-blocks"),onChange:e=>C(e),value:c}),(0,e.createElement)(r.Button,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:vf,label:(0,a.__)("Apply","kadence-blocks"),type:"submit"})))))),""!==b[0].id&&(0,e.createElement)("div",{className:"kb-vide-edit-settings-container"},(0,e.createElement)(i.MediaUpload,{key:"local-"+u,onSelect:x,type:"video",value:b[0].id,allowedTypes:["video"],render:({open:t})=>(0,e.createElement)(r.Button,{className:"components-button components-icon-button kt-cta-upload-btn",icon:Lf,onClick:t},(0,a.__)("Edit Video","kadence-blocks"))}),(0,e.createElement)(r.Button,{label:(0,a.__)("Clear","kadence-blocks"),className:"kb-clear-video-btn",icon:da,onClick:k})),""===b[0].id&&""!==b[0].url&&(0,e.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container kb-vide-edit-settings-container"},(0,e.createElement)(r.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button kt-cta-upload-btn",onClick:w,isToggled:s,isDefault:!0},(0,a.__)("Edit Video URL","kadence-blocks")),s&&(0,e.createElement)(r.Popover,{onClose:()=>_(),className:"editor-url-popover block-editor-url-popover"},(0,e.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},(0,e.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:e=>S(e)},(0,e.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":(0,a.__)("URL","kadence-blocks"),placeholder:(0,a.__)("Paste or type URL","kadence-blocks"),onChange:e=>C(e),value:""===c?b[0].url:c}),(0,e.createElement)(r.Button,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:vf,label:(0,a.__)("Apply","kadence-blocks"),type:"submit"})))),(0,e.createElement)(r.Button,{label:(0,a.__)("Clear","kadence-blocks"),className:"kb-clear-video-btn",icon:da,onClick:k}))))}),(0,l.addFilter)("kadence.videoPopupProMediaMobileControls","kadence/videoPopupProMediaMobileControls",function(t,n){const{attributes:o,setAttributes:i}=n,{mediaUseMobile:s}=o;return(0,e.createElement)(r.ToggleControl,{label:(0,a.__)("Use Mobile Video","kadence-blocks"),checked:s,onChange:e=>i({mediaUseMobile:e}),help:(0,a.__)("Play a different video on smaller screens. You can also set a different video ratio.","kadence-blocks")})}),(0,l.addFilter)("kadence.videoPopupProLocalVideoPosterControls","kadence/videoPopupProLocalVideoPosterControls",function(t,n,s,l,c,d){const{attributes:u,setAttributes:h}=n,{mediaPoster:p,posterType:g}=u,m=e=>{const t=p.map((t,n)=>(0===n&&(t={...t,...e}),t));h({mediaPoster:t})},f=()=>{m({id:"",url:"",alt:"",width:"",height:"",subtype:""}),d("")},b=e=>{m({id:e.id,url:e.url,alt:e.alt,width:e.width,height:e.height,subtype:e.subtype})},v=()=>{l(!0)},y=()=>{l(!1)},k=e=>{d(e.target.value)},x=e=>{e.preventDefault(),c&&(m({url:c}),y())};return(0,e.createElement)(o.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,a.__)("Poster Type","kadence-blocks"),value:g,options:[{value:"",label:(0,a.__)("Image","kadence-blocks")},{value:"video",label:(0,a.__)("Video","kadence-blocks")}],onChange:e=>h({posterType:e})}),"video"===g&&(0,e.createElement)(o.Fragment,null,""===p[0].id&&""===p[0].url&&(0,e.createElement)("div",{className:"kb-vide-edit-settings-container"},(0,e.createElement)(i.MediaUpload,{onSelect:b,type:"video",value:p[0].id,allowedTypes:["video"],render:({open:t})=>(0,e.createElement)(r.Button,{key:"poster",className:"components-button components-icon-button kt-cta-upload-btn",onClick:t,icon:Lf,isDefault:!0},(0,a.__)("Select Video","kadence-blocks"))}),(0,e.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},(0,e.createElement)(r.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button kt-cta-upload-btn",onClick:v,isDefault:!0,isToggled:s},(0,a.__)("Insert from URL","kadence-blocks")),s&&(0,e.createElement)(r.Popover,{onClose:()=>y(),className:"editor-url-popover block-editor-url-popover"},(0,e.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},(0,e.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:e=>x(e)},(0,e.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":(0,a.__)("URL","kadence-blocks"),placeholder:(0,a.__)("Paste or type URL","kadence-blocks"),onChange:e=>k(e),value:c}),(0,e.createElement)(r.Button,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:vf,label:(0,a.__)("Apply","kadence-blocks"),type:"submit"})))))),""!==p[0].id&&(0,e.createElement)("div",{className:"kb-vide-edit-settings-container"},(0,e.createElement)(i.MediaUpload,{onSelect:b,type:"video",value:p[0].id,allowedTypes:["video"],render:({open:t})=>(0,e.createElement)(r.Button,{className:"components-button components-icon-button kt-cta-upload-btn",icon:Lf,onClick:t},(0,a.__)("Edit Video","kadence-blocks"))}),(0,e.createElement)(r.Button,{label:(0,a.__)("Clear","kadence-blocks"),className:"kb-clear-video-btn",icon:da,onClick:f})),""===p[0].id&&""!==p[0].url&&(0,e.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container kb-vide-edit-settings-container"},(0,e.createElement)(r.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button kt-cta-upload-btn",onClick:v,isToggled:s,isDefault:!0},(0,a.__)("Edit Video URL","kadence-blocks")),s&&(0,e.createElement)(r.Popover,{onClose:()=>y(),className:"editor-url-popover block-editor-url-popover"},(0,e.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},(0,e.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:e=>x(e)},(0,e.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":(0,a.__)("URL","kadence-blocks"),placeholder:(0,a.__)("Paste or type URL","kadence-blocks"),onChange:e=>k(e),value:""===c?p[0].url:c}),(0,e.createElement)(r.Button,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:vf,label:(0,a.__)("Apply","kadence-blocks"),type:"submit"})))),(0,e.createElement)(r.Button,{label:(0,a.__)("Clear","kadence-blocks"),className:"kb-clear-video-btn",icon:da,onClick:f}))))})})(),(this.kadence=this.kadence||{}).blocks={}})();
💾 Save Changes
❌ Cancel