/home/preegmxb/bricks.theoriginalsstudios.com/wp-content/themes/bricks/assets/js/main.min.js
!function(){var e,t={9742:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,r=s(e),a=r[0],l=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,r=[],a=16383,s=0,c=o-i;s<c;s+=a)r.push(l(e,s,s+a>c?c:s+a));1===i?(t=e[o-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[o-2]<<8)+e[o-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=r[a],o[r.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,o){for(var i,r,a=[],s=t;s<o;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(r=i)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},1994:function(e,t,n){!function(e){"use strict";function t(t,o){function i(){t.display.wrapper.offsetHeight?(n(t,o),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):o.timeout=setTimeout(i,o.delay)}o.timeout=setTimeout(i,o.delay),o.hurry=function(){clearTimeout(o.timeout),o.timeout=setTimeout(i,50)},e.on(window,"mouseup",o.hurry),e.on(window,"keyup",o.hurry)}function n(t,n){clearTimeout(n.timeout),e.off(window,"mouseup",n.hurry),e.off(window,"keyup",n.hurry)}e.defineOption("autoRefresh",!1,(function(e,o){e.state.autoRefresh&&(n(e,e.state.autoRefresh),e.state.autoRefresh=null),o&&0==e.display.wrapper.offsetHeight&&t(e,e.state.autoRefresh={delay:o.delay||250})}))}(n(4631))},8386:function(e,t,n){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var o=e.getOption("placeholder");"string"==typeof o&&(o=document.createTextNode(o)),n.appendChild(o),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function o(e){setTimeout((function(){var o=!1;if(1==e.lineCount()){var i=e.getInputField();o="TEXTAREA"==i.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)}o?n(e):t(e)}),20)}function i(e){a(e)&&n(e)}function r(e){var o=e.getWrapperElement(),i=a(e);o.className=o.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",i),n.on("change",r),n.on("swapDoc",r),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){o(n)}),r(n);else if(!a&&l){n.off("blur",i),n.off("change",r),n.off("swapDoc",r),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}(n(4631))},4631:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),o=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),r=/Edge\/(\d+)/.exec(e),a=o||i||r,s=a&&(o?document.documentMode||6:+(r||i)[1]),l=!r&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!r&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),b=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),k=/win/i.test(t),x=f&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,l=!0);var C=y&&(c||f&&(null==x||x<12.11)),_=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,$=function(e,t){var n=e.className,o=S(t).exec(n);if(o){var i=n.slice(o.index+o[0].length);e.className=n.slice(0,o.index)+(i?o[1]+i:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function I(e,t){return E(e).appendChild(t)}function M(e,t,n,o){var i=document.createElement(e);if(n&&(i.className=n),o&&(i.style.cssText=o),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var r=0;r<t.length;++r)i.appendChild(t[r]);return i}function A(e,t,n,o){var i=M(e,t,n,o);return i.setAttribute("role","presentation"),i}function O(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function P(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function L(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function D(e,t){for(var n=e.split(" "),o=0;o<n.length;o++)n[o]&&!S(n[o]).test(t)&&(t+=" "+n[o]);return t}T=document.createRange?function(e,t,n,o){var i=document.createRange();return i.setEnd(o||e,n),i.setStart(e,t),i}:function(e,t,n){var o=document.body.createTextRange();try{o.moveToElementText(e.parentNode)}catch(e){return o}return o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o};var N=function(e){e.select()};function j(e){return e.display.wrapper.ownerDocument}function V(e){return j(e).defaultView}function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function R(e,t,n){for(var o in t||(t={}),e)!e.hasOwnProperty(o)||!1===n&&t.hasOwnProperty(o)||(t[o]=e[o]);return t}function q(e,t,n,o,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var r=o||0,a=i||0;;){var s=e.indexOf("\t",r);if(s<0||s>=t)return a+(t-r);a+=s-r,a+=n-a%n,r=s+1}}g?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(N=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var H=50,W={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},K={origin:"*mouse"},G={origin:"+move"};function Z(e,t,n){for(var o=0,i=0;;){var r=e.indexOf("\t",o);-1==r&&(r=e.length);var a=r-o;if(r==e.length||i+a>=t)return o+Math.min(a,t-i);if(i+=r-o,o=r+1,(i+=n-i%n)>=t)return o}}var J=[""];function Y(e){for(;J.length<=e;)J.push(Q(J)+" ");return J[e]}function Q(e){return e[e.length-1]}function X(e,t){for(var n=[],o=0;o<e.length;o++)n[o]=t(e[o],o);return n}function ee(e,t,n){for(var o=0,i=n(t);o<e.length&&n(e[o])<=i;)o++;e.splice(o,0,t)}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&R(t,n),n}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function re(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var o=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,r=o<0?Math.ceil(i):Math.floor(i);if(r==t)return e(r)?t:n;e(r)?n=r:t=r+o}}function de(e,t,n,o){if(!e)return o(t,n,"ltr",0);for(var i=!1,r=0;r<e.length;++r){var a=e[r];(a.from<n&&a.to>t||t==n&&a.to==t)&&(o(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",r),i=!0)}i||o(t,n,"ltr")}var fe=null;function pe(e,t,n){var o;fe=null;for(var i=0;i<e.length;++i){var r=e[i];if(r.from<t&&r.to>t)return i;r.to==t&&(r.from!=r.to&&"before"==n?o=i:fe=i),r.from==t&&(r.from!=r.to&&"before"!=n?o=i:fe=i)}return null!=o?o:fe}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,r=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!o.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,h=c;p<u;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=c;g<u;++g){var b=d[g];"1"==b&&"r"==v?d[g]="n":r.test(b)&&(v=b,"r"==b&&(d[g]="R"))}for(var y=1,w=d[0];y<u-1;++y){var k=d[y];"+"==k&&"1"==w&&"1"==d[y+1]?d[y]="1":","!=k||w!=d[y+1]||"1"!=w&&"n"!=w||(d[y]=w),w=k}for(var x=0;x<u;++x){var C=d[x];if(","==C)d[x]="N";else if("%"==C){var _=void 0;for(_=x+1;_<u&&"%"==d[_];++_);for(var S=x&&"!"==d[x-1]||_<u&&"1"==d[_]?"1":"N",T=x;T<_;++T)d[T]=S;x=_-1}}for(var $=0,E=c;$<u;++$){var I=d[$];"L"==E&&"1"==I?d[$]="L":r.test(I)&&(E=I)}for(var M=0;M<u;++M)if(i.test(d[M])){var A=void 0;for(A=M+1;A<u&&i.test(d[A]);++A);for(var O="L"==(M?d[M-1]:c),P=O==("L"==(A<u?d[A]:c))?O?"L":"R":c,L=M;L<A;++L)d[L]=P;M=A-1}for(var D,N=[],j=0;j<u;)if(a.test(d[j])){var V=j;for(++j;j<u&&a.test(d[j]);++j);N.push(new l(0,V,j))}else{var F=j,R=N.length,q="rtl"==t?1:0;for(++j;j<u&&"L"!=d[j];++j);for(var B=F;B<j;)if(s.test(d[B])){F<B&&(N.splice(R,0,new l(1,F,B)),R+=q);var z=B;for(++B;B<j&&s.test(d[B]);++B);N.splice(R,0,new l(2,z,B)),R+=q,F=B}else++B;F<j&&N.splice(R,0,new l(1,F,j))}return"ltr"==t&&(1==N[0].level&&(D=e.match(/^\s+/))&&(N[0].from=D[0].length,N.unshift(new l(0,0,D[0].length))),1==Q(N).level&&(D=e.match(/\s+$/))&&(Q(N).to-=D[0].length,N.push(new l(0,u-D[0].length,u)))),"rtl"==t?N.reverse():N}}();function me(e,t){var n=e.order;return null==n&&(n=e.order=he(e.text,t)),n}var ge=[],ve=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var o=e._handlers||(e._handlers={});o[t]=(o[t]||ge).concat(n)}};function be(e,t){return e._handlers&&e._handlers[t]||ge}function ye(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var o=e._handlers,i=o&&o[t];if(i){var r=z(i,n);r>-1&&(o[t]=i.slice(0,r).concat(i.slice(r+1)))}}}function we(e,t){var n=be(e,t);if(n.length)for(var o=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,o)}function ke(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),we(e,n||t.type,e,t),$e(t)||t.codemirrorIgnore}function xe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),o=0;o<t.length;++o)-1==z(n,t[o])&&n.push(t[o])}function Ce(e,t){return be(e,t).length>0}function _e(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function $e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ee(e){Se(e),Te(e)}function Ie(e){return e.target||e.srcElement}function Me(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Ae,Oe,Pe=function(){if(a&&s<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Le(e){if(null==Ae){var t=M("span","");I(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ae?M("span",""):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Oe)return Oe;var t=I(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),o=T(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(Oe=o.right-n.right<3)}var Ne,je=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],o=e.length;t<=o;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var r=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=r.indexOf("\r");-1!=a?(n.push(r.slice(0,a)),t+=a+1):(n.push(r),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ve=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Fe="oncopy"in(Ne=M("div"))||(Ne.setAttribute("oncopy","return;"),"function"==typeof Ne.oncopy),Re=null;function qe(e){if(null!=Re)return Re;var t=I(e,M("span","x")),n=t.getBoundingClientRect(),o=T(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-o.left)>1}var Be={},ze={};function He(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function We(e,t){ze[e]=t}function Ue(e){if("string"==typeof e&&ze.hasOwnProperty(e))e=ze[e];else if(e&&"string"==typeof e.name&&ze.hasOwnProperty(e.name)){var t=ze[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ue(t);var n=Be[t.name];if(!n)return Ke(e,"text/plain");var o=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var r in i)i.hasOwnProperty(r)&&(o.hasOwnProperty(r)&&(o["_"+r]=o[r]),o[r]=i[r])}if(o.name=t.name,t.helperType&&(o.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)o[a]=t.modeProps[a];return o}var Ge={};function Ze(e,t){R(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var o in t){var i=t[o];i instanceof Array&&(i=i.concat([])),n[o]=i}return n}function Ye(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var o=0;;++o){var i=n.children[o],r=i.chunkSize();if(t<r){n=i;break}t-=r}return n.lines[t]}function tt(e,t,n){var o=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var r=e.text;i==n.line&&(r=r.slice(0,n.ch)),i==t.line&&(r=r.slice(t.ch)),o.push(r),++i})),o}function nt(e,t,n){var o=[];return e.iter(t,n,(function(e){o.push(e.text)})),o}function ot(e,t){var n=t-e.height;if(n)for(var o=e;o;o=o.parent)o.height+=n}function it(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),o=t.parent;o;t=o,o=o.parent)for(var i=0;o.children[i]!=t;++i)n+=o.children[i].chunkSize();return n+t.first}function rt(e,t){var n=e.first;e:do{for(var o=0;o<e.children.length;++o){var i=e.children[o],r=i.height;if(t<r){e=i;continue e}t-=r,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function at(e,t){return t>=e.first&&t<e.first+e.size}function st(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function lt(e,t,n){if(void 0===n&&(n=null),!(this instanceof lt))return new lt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ct(e,t){return e.line-t.line||e.ch-t.ch}function ut(e,t){return e.sticky==t.sticky&&0==ct(e,t)}function dt(e){return lt(e.line,e.ch)}function ft(e,t){return ct(e,t)<0?t:e}function pt(e,t){return ct(e,t)<0?e:t}function ht(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return lt(e.first,0);var n=e.first+e.size-1;return t.line>n?lt(n,et(e,n).text.length):gt(t,et(e,t.line).text.length)}function gt(e,t){var n=e.ch;return null==n||n>t?lt(e.line,t):n<0?lt(e.line,0):e}function vt(e,t){for(var n=[],o=0;o<t.length;o++)n[o]=mt(e,t[o]);return n}Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Xe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.indentation=function(){return q(this.string,null,this.tabSize)-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.match=function(e,t,n){if("string"!=typeof e){var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&!1!==t&&(this.pos+=o[0].length),o)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var bt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,n,o){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=o||0,this.baseTokens=null,this.baseTokenPos=1};function wt(e,t,n,o){var i=[e.state.modeGen],r={};It(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),r,o);for(var a=n.state,s=function(o){n.baseTokens=i;var s=e.state.overlays[o],l=1,c=0;n.state=!0,It(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var o=i[l];o>e&&i.splice(l,1,e,i[l+1],o),l+=2,c=Math.min(e,o)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var r=i[n+1];i[n+1]=(r?r+" ":"")+"overlay "+t}}),r),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:r.bgClass||r.textClass?r:null}}function kt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var o=xt(e,it(t)),i=t.text.length>e.options.maxHighlightLength&&Je(e.doc.mode,o.state),r=wt(e,t,o);i&&(o.state=i),t.stateAfter=o.save(!i),t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function xt(e,t,n){var o=e.doc,i=e.display;if(!o.mode.startState)return new yt(o,!0,t);var r=Mt(e,t,n),a=r>o.first&&et(o,r-1).stateAfter,s=a?yt.fromSaved(o,a,r):new yt(o,Qe(o.mode),r);return o.iter(r,t,(function(n){Ct(e,n.text,s);var o=s.line;n.stateAfter=o==t-1||o%5==0||o>=i.viewFrom&&o<i.viewTo?s.save():null,s.nextLine()})),n&&(o.modeFrontier=s.line),s}function Ct(e,t,n,o){var i=e.doc.mode,r=new Xe(t,e.options.tabSize,n);for(r.start=r.pos=o||0,""==t&&_t(i,n.state);!r.eol();)St(i,r,n.state),r.start=r.pos}function _t(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ye(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function St(e,t,n,o){for(var i=0;i<10;i++){o&&(o[0]=Ye(e,n).mode);var r=e.token(t,n);if(t.pos>t.start)return r}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,n){return t instanceof bt?new yt(e,Je(e.mode,t.state),n,t.lookAhead):new yt(e,Je(e.mode,t),n)},yt.prototype.save=function(e){var t=!1!==e?Je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function $t(e,t,n,o){var i,r,a=e.doc,s=a.mode,l=et(a,(t=mt(a,t)).line),c=xt(e,t.line,n),u=new Xe(l.text,e.options.tabSize,c);for(o&&(r=[]);(o||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=St(s,u,c.state),o&&r.push(new Tt(u,i,Je(a.mode,c.state)));return o?r:new Tt(u,i,c.state)}function Et(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var o=n[1]?"bgClass":"textClass";null==t[o]?t[o]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[o])||(t[o]+=" "+n[2])}return e}function It(e,t,n,o,i,r,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Xe(t,e.options.tabSize,o),f=e.options.addModeClass&&[null];for(""==t&&Et(_t(n,o.state),r);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Ct(e,t,o,d.pos),d.pos=t.length,l=null):l=Et(St(n,d,o.state,f),r),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var h=Math.min(d.pos,c+5e3);i(h,u),c=h}}function Mt(e,t,n){for(var o,i,r=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=r.first)return r.first;var l=et(r,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof bt?c.lookAhead:0)<=r.modeFrontier))return s;var u=q(l.text,null,e.options.tabSize);(null==i||o>u)&&(i=s-1,o=u)}return i}function At(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,o=t-1;o>n;o--){var i=et(e,o).stateAfter;if(i&&(!(i instanceof bt)||o+i.lookAhead<t)){n=o+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Ot=!1,Pt=!1;function Lt(){Ot=!0}function Dt(){Pt=!0}function Nt(e,t,n){this.marker=e,this.from=t,this.to=n}function jt(e,t){if(e)for(var n=0;n<e.length;++n){var o=e[n];if(o.marker==t)return o}}function Vt(e,t){for(var n,o=0;o<e.length;++o)e[o]!=t&&(n||(n=[])).push(e[o]);return n}function Ft(e,t,n){var o=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));o&&e.markedSpans&&o.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],o&&o.add(e.markedSpans)),t.marker.attachLine(e)}function Rt(e,t,n){var o;if(e)for(var i=0;i<e.length;++i){var r=e[i],a=r.marker;if(null==r.from||(a.inclusiveLeft?r.from<=t:r.from<t)||r.from==t&&"bookmark"==a.type&&(!n||!r.marker.insertLeft)){var s=null==r.to||(a.inclusiveRight?r.to>=t:r.to>t);(o||(o=[])).push(new Nt(a,r.from,s?null:r.to))}}return o}function qt(e,t,n){var o;if(e)for(var i=0;i<e.length;++i){var r=e[i],a=r.marker;if(null==r.to||(a.inclusiveRight?r.to>=t:r.to>t)||r.from==t&&"bookmark"==a.type&&(!n||r.marker.insertLeft)){var s=null==r.from||(a.inclusiveLeft?r.from<=t:r.from<t);(o||(o=[])).push(new Nt(a,s?null:r.from-t,null==r.to?null:r.to-t))}}return o}function Bt(e,t){if(t.full)return null;var n=at(e,t.from.line)&&et(e,t.from.line).markedSpans,o=at(e,t.to.line)&&et(e,t.to.line).markedSpans;if(!n&&!o)return null;var i=t.from.ch,r=t.to.ch,a=0==ct(t.from,t.to),s=Rt(n,i,a),l=qt(o,r,a),c=1==t.text.length,u=Q(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=jt(l,f.marker);p?c&&(f.to=null==p.to?null:p.to+u):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=u),null==m.from?jt(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=zt(s)),l&&l!=s&&(l=zt(l));var g=[s];if(!c){var v,b=t.text.length-2;if(b>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(v||(v=[])).push(new Nt(s[y].marker,null,null));for(var w=0;w<b;++w)g.push(v);g.push(l)}return g}function zt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ht(e,t,n){var o=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||o&&-1!=z(o,n)||(o||(o=[])).push(n)}})),!o)return null;for(var i=[{from:t,to:n}],r=0;r<o.length;++r)for(var a=o[r],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(ct(c.to,s.from)<0||ct(c.from,s.to)>0)){var u=[l,1],d=ct(c.from,s.from),f=ct(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Wt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ut(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Kt(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function Zt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var o=e.find(),i=t.find(),r=ct(o.from,i.from)||Kt(e)-Kt(t);if(r)return-r;var a=ct(o.to,i.to)||Gt(e)-Gt(t);return a||t.id-e.id}function Jt(e,t){var n,o=Pt&&e.markedSpans;if(o)for(var i=void 0,r=0;r<o.length;++r)(i=o[r]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Zt(n,i.marker)<0)&&(n=i.marker);return n}function Yt(e){return Jt(e,!0)}function Qt(e){return Jt(e,!1)}function Xt(e,t){var n,o=Pt&&e.markedSpans;if(o)for(var i=0;i<o.length;++i){var r=o[i];r.marker.collapsed&&(null==r.from||r.from<t)&&(null==r.to||r.to>t)&&(!n||Zt(n,r.marker)<0)&&(n=r.marker)}return n}function en(e,t,n,o,i){var r=et(e,t),a=Pt&&r.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ct(c.from,n)||Kt(l.marker)-Kt(i),d=ct(c.to,o)||Gt(l.marker)-Gt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(c.to,n)>=0:ct(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(c.from,o)<=0:ct(c.from,o)<0)))return!0}}}function tn(e){for(var t;t=Yt(e);)e=t.find(-1,!0).line;return e}function nn(e){for(var t;t=Qt(e);)e=t.find(1,!0).line;return e}function on(e){for(var t,n;t=Qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function rn(e,t){var n=et(e,t),o=tn(n);return n==o?t:it(o)}function an(e,t){if(t>e.lastLine())return t;var n,o=et(e,t);if(!sn(e,o))return t;for(;n=Qt(o);)o=n.find(1,!0).line;return it(o)+1}function sn(e,t){var n=Pt&&t.markedSpans;if(n)for(var o=void 0,i=0;i<n.length;++i)if((o=n[i]).marker.collapsed){if(null==o.from)return!0;if(!o.marker.widgetNode&&0==o.from&&o.marker.inclusiveLeft&&ln(e,t,o))return!0}}function ln(e,t,n){if(null==n.to){var o=n.marker.find(1,!0);return ln(e,o.line,jt(o.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,r=0;r<t.markedSpans.length;++r)if((i=t.markedSpans[r]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function cn(e){for(var t=0,n=(e=tn(e)).parent,o=0;o<n.lines.length;++o){var i=n.lines[o];if(i==e)break;t+=i.height}for(var r=n.parent;r;r=(n=r).parent)for(var a=0;a<r.children.length;++a){var s=r.children[a];if(s==n)break;t+=s.height}return t}function un(e){if(0==e.height)return 0;for(var t,n=e.text.length,o=e;t=Yt(o);){var i=t.find(0,!0);o=i.from.line,n+=i.from.ch-i.to.ch}for(o=e;t=Qt(o);){var r=t.find(0,!0);n-=o.text.length-r.from.ch,n+=(o=r.to.line).text.length-r.to.ch}return n}function dn(e){var t=e.display,n=e.doc;t.maxLine=et(n,n.first),t.maxLineLength=un(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=un(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var fn=function(e,t,n){this.text=e,Ut(this,t),this.height=n?n(this):1};function pn(e,t,n,o){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Wt(e),Ut(e,n);var i=o?o(e):1;i!=e.height&&ot(e,i)}function hn(e){e.parent=null,Wt(e)}fn.prototype.lineNo=function(){return it(this)},_e(fn);var mn={},gn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?gn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function bn(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),o={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var r=i?t.rest[i-1]:t.line,a=void 0;o.pos=0,o.addToken=wn,De(e.display.measure)&&(a=me(r,e.doc.direction))&&(o.addToken=xn(o.addToken,a)),o.map=[],_n(r,o,kt(e,r,t!=e.display.externalMeasured&&it(r))),r.styleClasses&&(r.styleClasses.bgClass&&(o.bgClass=D(r.styleClasses.bgClass,o.bgClass||"")),r.styleClasses.textClass&&(o.textClass=D(r.styleClasses.textClass,o.textClass||""))),0==o.map.length&&o.map.push(0,0,o.content.appendChild(Le(e.display.measure))),0==i?(t.measure.map=o.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(o.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=o.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,o.pre),o.pre.className&&(o.textClass=D(o.pre.className,o.textClass||"")),o}function yn(e){var t=M("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,n,o,i,r,l){if(t){var c,u=e.splitSpaces?kn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){c=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(u.slice(p,p+m));a&&s<9?c.appendChild(M("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(v=c.appendChild(M("span",Y(y),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(M("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(M("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||o||i||f||r||l){var w=n||"";o&&(w+=o),i&&(w+=i);var k=M("span",[c],w,r);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&k.setAttribute(x,l[x]);return e.content.appendChild(k)}e.content.appendChild(c)}}function kn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,o="",i=0;i<e.length;i++){var r=e.charAt(i);" "!=r||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(r=" "),o+=r,n=" "==r}return o}function xn(e,t){return function(n,o,i,r,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+o.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>c&&d.from<=c);f++);if(d.to>=u)return e(n,o,i,r,a,s,l);e(n,o.slice(0,d.to-c),i,r,null,s,l),r=null,o=o.slice(d.to-c),c=d.to}}}function Cn(e,t,n,o){var i=!o&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!o&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function _n(e,t,n){var o=e.markedSpans,i=e.text,r=0;if(o)for(var a,s,l,c,u,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",f=null,d=null,v=1/0;for(var b=[],y=void 0,w=0;w<o.length;++w){var k=o[w],x=k.marker;if("bookmark"==x.type&&k.from==h&&x.widgetNode)b.push(x);else if(k.from<=h&&(null==k.to||k.to>h||x.collapsed&&k.to==h&&k.from==h)){if(null!=k.to&&k.to!=h&&v>k.to&&(v=k.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&k.from==h&&(u+=" "+x.startStyle),x.endStyle&&k.to==v&&(y||(y=[])).push(x.endStyle,k.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var C in x.attributes)(f||(f={}))[C]=x.attributes[C];x.collapsed&&(!d||Zt(d.marker,x)<0)&&(d=k)}else k.from>h&&v>k.from&&(v=k.from)}if(y)for(var _=0;_<y.length;_+=2)y[_+1]==v&&(c+=" "+y[_]);if(!d||d.from==h)for(var S=0;S<b.length;++S)Cn(t,0,b[S]);if(d&&(d.from||0)==h){if(Cn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var T=Math.min(p,v);;){if(g){var $=h+g.length;if(!d){var E=$>T?g.slice(0,T-h):g;t.addToken(t,E,a?a+l:l,u,h+E.length==v?c:"",s,f)}if($>=T){g=g.slice(T-h),h=T;break}h=$,u=""}g=i.slice(r,r=n[m++]),a=vn(n[m++],t.cm.options)}}else for(var I=1;I<n.length;I+=2)t.addToken(t,i.slice(r,r=n[I]),vn(n[I+1],t.cm.options))}function Sn(e,t,n){this.line=t,this.rest=on(t),this.size=this.rest?it(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=sn(e,t)}function Tn(e,t,n){for(var o,i=[],r=t;r<n;r=o){var a=new Sn(e.doc,et(e.doc,r),r);o=r+a.size,i.push(a)}return i}var $n=null;function En(e){$n?$n.ops.push(e):e.ownsGroup=$n={ops:[e],delayedCallbacks:[]}}function In(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var o=0;o<e.ops.length;o++){var i=e.ops[o];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Mn(e,t){var n=e.ownsGroup;if(n)try{In(n)}finally{$n=null,t(n)}}var An=null;function On(e,t){var n=be(e,t);if(n.length){var o,i=Array.prototype.slice.call(arguments,2);$n?o=$n.delayedCallbacks:An?o=An:(o=An=[],setTimeout(Pn,0));for(var r=function(e){o.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)r(a)}}function Pn(){var e=An;An=null;for(var t=0;t<e.length;++t)e[t]()}function Ln(e,t,n,o){for(var i=0;i<t.changes.length;i++){var r=t.changes[i];"text"==r?Vn(e,t):"gutter"==r?Rn(e,t,n,o):"class"==r?Fn(e,t):"widget"==r&&qn(e,t,o)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=M("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Nn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var o=Dn(t);t.background=o.insertBefore(M("div",null,n),o.firstChild),e.display.input.setUneditable(t.background)}}function jn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):bn(e,t)}function Vn(e,t){var n=t.text.className,o=jn(e,t);t.text==t.node&&(t.node=o.pre),t.text.parentNode.replaceChild(o.pre,t.text),t.text=o.pre,o.bgClass!=t.bgClass||o.textClass!=t.textClass?(t.bgClass=o.bgClass,t.textClass=o.textClass,Fn(e,t)):n&&(t.text.className=n)}function Fn(e,t){Nn(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Rn(e,t,n,o){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Dn(t);t.gutterBackground=M("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px; width: "+o.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var r=t.line.gutterMarkers;if(e.options.lineNumbers||r){var a=Dn(t),s=t.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||r&&r["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(M("div",st(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+o.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),r)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=r.hasOwnProperty(c)&&r[c];u&&s.appendChild(M("div",[u],"CodeMirror-gutter-elt","left: "+o.gutterLeft[c]+"px; width: "+o.gutterWidth[c]+"px"))}}}function qn(e,t,n){t.alignable&&(t.alignable=null);for(var o=S("CodeMirror-linewidget"),i=t.node.firstChild,r=void 0;i;i=r)r=i.nextSibling,o.test(i.className)&&t.node.removeChild(i);zn(e,t,n)}function Bn(e,t,n,o){var i=jn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Fn(e,t),Rn(e,t,n,o),zn(e,t,o),t.node}function zn(e,t,n){if(Hn(e,t.line,t,n,!0),t.rest)for(var o=0;o<t.rest.length;o++)Hn(e,t.rest[o],t,n,!1)}function Hn(e,t,n,o,i){if(t.widgets)for(var r=Dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=M("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Wn(l,c,n,o),e.display.input.setUneditable(c),i&&l.above?r.insertBefore(c,n.gutter||n.text):r.appendChild(c),On(l,"redraw")}}function Wn(e,t,n,o){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=o.wrapperWidth;t.style.left=o.fixedPos+"px",e.coverGutter||(i-=o.gutterTotalWidth,t.style.paddingLeft=o.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-o.gutterTotalWidth+"px"))}function Un(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!O(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),I(t.display.measure,M("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Kn(e,t){for(var n=Ie(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gn(e){return e.lineSpace.offsetTop}function Zn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Jn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=I(e.measure,M("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Yn(e){return H-e.display.nativeBarWidth}function Qn(e){return e.display.scroller.clientWidth-Yn(e)-e.display.barWidth}function Xn(e){return e.display.scroller.clientHeight-Yn(e)-e.display.barHeight}function eo(e,t,n){var o=e.options.lineWrapping,i=o&&Qn(e);if(!t.measure.heights||o&&t.measure.width!=i){var r=t.measure.heights=[];if(o){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&r.push((l.bottom+c.top)/2-n.top)}}r.push(n.bottom-n.top)}}function to(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var o=0;o<e.rest.length;o++)if(e.rest[o]==t)return{map:e.measure.maps[o],cache:e.measure.caches[o]};for(var i=0;i<e.rest.length;i++)if(it(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function no(e,t){var n=it(t=tn(t)),o=e.display.externalMeasured=new Sn(e.doc,t,n);o.lineN=n;var i=o.built=bn(e,o);return o.text=i.pre,I(e.display.lineMeasure,i.pre),o}function oo(e,t,n,o){return ao(e,ro(e,t),n,o)}function io(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ro(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function ro(e,t){var n=it(t),o=io(e,n);o&&!o.text?o=null:o&&o.changes&&(Ln(e,o,n,Do(e)),e.curOp.forceUpdate=!0),o||(o=no(e,t));var i=to(o,t,n);return{line:t,view:o,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function ao(e,t,n,o,i){t.before&&(n=-1);var r,a=n+(o||"");return t.cache.hasOwnProperty(a)?r=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(eo(e,t.view,t.rect),t.hasHeights=!0),(r=fo(e,t,n,o)).bogus||(t.cache[a]=r)),{left:r.left,right:r.right,top:i?r.rtop:r.top,bottom:i?r.rbottom:r.bottom}}var so,lo={left:0,right:0,top:0,bottom:0};function co(e,t,n){for(var o,i,r,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,r=1,a="left"):t<l?r=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(r=l-s)-1,t>=l&&(a="right")),null!=i){if(o=e[c+2],s==l&&n==(o.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)o=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)o=e[(c+=3)+2],a="right";break}return{node:o,start:i,end:r,collapse:a,coverStart:s,coverEnd:l}}function uo(e,t){var n=lo;if("left"==t)for(var o=0;o<e.length&&(n=e[o]).left==n.right;o++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function fo(e,t,n,o){var i,r=co(t.map,n,o),l=r.node,c=r.start,u=r.end,d=r.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;c&&le(t.line.text.charAt(r.coverStart+c));)--c;for(;r.coverStart+u<r.coverEnd&&le(t.line.text.charAt(r.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==r.coverEnd-r.coverStart?l.parentNode.getBoundingClientRect():uo(T(l,c,u).getClientRects(),o)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=po(e.display.measure,i))}else{var p;c>0&&(d=o="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==o?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Lo(e.display),top:h.top,bottom:h.bottom}:lo}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,b=t.view.measure.heights,y=0;y<b.length-1&&!(v<b[y]);y++);var w=y?b[y-1]:0,k=b[y],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:w,bottom:k};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}function po(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!qe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*o,bottom:t.bottom*o}}function ho(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function mo(e){e.display.externalMeasure=null,E(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ho(e.display.view[t])}function go(e){mo(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function vo(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function bo(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function yo(e){var t=tn(e).widgets,n=0;if(t)for(var o=0;o<t.length;++o)t[o].above&&(n+=Un(t[o]));return n}function wo(e,t,n,o,i){if(!i){var r=yo(t);n.top+=r,n.bottom+=r}if("line"==o)return n;o||(o="local");var a=cn(t);if("local"==o?a+=Gn(e.display):a-=e.display.viewOffset,"page"==o||"window"==o){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==o?0:bo(j(e)));var l=s.left+("window"==o?0:vo(j(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function ko(e,t,n){if("div"==n)return t;var o=t.left,i=t.top;if("page"==n)o-=vo(j(e)),i-=bo(j(e));else if("local"==n||!n){var r=e.display.sizer.getBoundingClientRect();o+=r.left,i+=r.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:o-a.left,top:i-a.top}}function xo(e,t,n,o,i){return o||(o=et(e.doc,t.line)),wo(e,o,oo(e,o,t.ch,i),n)}function Co(e,t,n,o,i,r){function a(t,a){var s=ao(e,i,t,a?"right":"left",r);return a?s.left=s.right:s.right=s.left,wo(e,o,s,n)}o=o||et(e.doc,t.line),i||(i=ro(e,o));var s=me(o,e.doc.direction),l=t.ch,c=t.sticky;if(l>=o.text.length?(l=o.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=pe(s,l,c),f=fe,p=u(l,d,"before"==c);return null!=f&&(p.other=u(l,f,"before"!=c)),p}function _o(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Lo(e.display)*t.ch);var o=et(e.doc,t.line),i=cn(o)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+o.height}}function So(e,t,n,o,i){var r=lt(e,t,n);return r.xRel=i,o&&(r.outside=o),r}function To(e,t,n){var o=e.doc;if((n+=e.display.viewOffset)<0)return So(o.first,0,null,-1,-1);var i=rt(o,n),r=o.first+o.size-1;if(i>r)return So(o.first+o.size-1,et(o,r).text.length,null,1,1);t<0&&(t=0);for(var a=et(o,i);;){var s=Mo(e,a,i,t,n),l=Xt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=et(o,i=c.line)}}function $o(e,t,n,o){o-=yo(t);var i=t.text.length,r=ue((function(t){return ao(e,n,t-1).bottom<=o}),i,0);return{begin:r,end:i=ue((function(t){return ao(e,n,t).top>o}),r,i)}}function Eo(e,t,n,o){return n||(n=ro(e,t)),$o(e,t,n,wo(e,t,ao(e,n,o),"line").top)}function Io(e,t,n,o){return!(e.bottom<=n)&&(e.top>n||(o?e.left:e.right)>t)}function Mo(e,t,n,o,i){i-=cn(t);var r=ro(e,t),a=yo(t),s=0,l=t.text.length,c=!0,u=me(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Oo:Ao)(e,t,n,r,u,o,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var f,p,h=null,m=null,g=ue((function(t){var n=ao(e,r,t);return n.top+=a,n.bottom+=a,!!Io(n,o,i,!1)&&(n.top<=i&&n.left<=o&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var b=o-m.left<m.right-o,y=b==c;g=h+(y?0:1),p=y?"after":"before",f=b?m.left:m.right}else{c||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":ao(e,r,g-(c?1:0)).bottom+a<=i==c?"after":"before";var w=Co(e,lt(n,g,p),"line",t,r);f=w.left,v=i<w.top?-1:i>=w.bottom?1:0}return So(n,g=ce(t.text,g,1),p,v,o-f)}function Ao(e,t,n,o,i,r,a){var s=ue((function(s){var l=i[s],c=1!=l.level;return Io(Co(e,lt(n,c?l.to:l.from,c?"before":"after"),"line",t,o),r,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Co(e,lt(n,c?l.from:l.to,c?"after":"before"),"line",t,o);Io(u,r,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Oo(e,t,n,o,i,r,a){var s=$o(e,t,o,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=c||p.to<=l)){var h=ao(e,o,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,m=h<r?r-h+1e9:h-r;(!u||d>m)&&(u=p,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Po(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==so){so=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)so.appendChild(document.createTextNode("x")),so.appendChild(M("br"));so.appendChild(document.createTextNode("x"))}I(e.measure,so);var n=so.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Lo(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");I(e.measure,n);var o=t.getBoundingClientRect(),i=(o.right-o.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Do(e){for(var t=e.display,n={},o={},i=t.gutters.clientLeft,r=t.gutters.firstChild,a=0;r;r=r.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=r.offsetLeft+r.clientLeft+i,o[s]=r.clientWidth}return{fixedPos:No(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:o,wrapperWidth:t.wrapper.clientWidth}}function No(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function jo(e){var t=Po(e.display),n=e.options.lineWrapping,o=n&&Math.max(5,e.display.scroller.clientWidth/Lo(e.display)-3);return function(i){if(sn(e.doc,i))return 0;var r=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(r+=i.widgets[a].height);return n?r+(Math.ceil(i.text.length/o)||1)*t:r+t}}function Vo(e){var t=e.doc,n=jo(e);t.iter((function(e){var t=n(e);t!=e.height&&ot(e,t)}))}function Fo(e,t,n,o){var i=e.display;if(!n&&"true"==Ie(t).getAttribute("cm-not-content"))return null;var r,a,s=i.lineSpace.getBoundingClientRect();try{r=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=To(e,r,a);if(o&&c.xRel>0&&(l=et(e.doc,c.line).text).length==c.ch){var u=q(l,l.length,e.options.tabSize)-l.length;c=lt(c.line,Math.max(0,Math.round((r-Jn(e.display).left)/Lo(e.display))-u))}return c}function Ro(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,o=0;o<n.length;o++)if((t-=n[o].size)<0)return o}function qo(e,t,n,o){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),o||(o=0);var i=e.display;if(o&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Pt&&rn(e.doc,t)<i.viewTo&&zo(e);else if(n<=i.viewFrom)Pt&&an(e.doc,n+o)>i.viewFrom?zo(e):(i.viewFrom+=o,i.viewTo+=o);else if(t<=i.viewFrom&&n>=i.viewTo)zo(e);else if(t<=i.viewFrom){var r=Ho(e,n,n+o,1);r?(i.view=i.view.slice(r.index),i.viewFrom=r.lineN,i.viewTo+=o):zo(e)}else if(n>=i.viewTo){var a=Ho(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):zo(e)}else{var s=Ho(e,t,t,-1),l=Ho(e,n,n+o,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=o):zo(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=o:t<c.lineN+c.size&&(i.externalMeasured=null))}function Bo(e,t,n){e.curOp.viewChanged=!0;var o=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(o.externalMeasured=null),!(t<o.viewFrom||t>=o.viewTo)){var r=o.view[Ro(e,t)];if(null!=r.node){var a=r.changes||(r.changes=[]);-1==z(a,n)&&a.push(n)}}}function zo(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ho(e,t,n,o){var i,r=Ro(e,t),a=e.display.view;if(!Pt||n==e.doc.first+e.doc.size)return{index:r,lineN:n};for(var s=e.display.viewFrom,l=0;l<r;l++)s+=a[l].size;if(s!=t){if(o>0){if(r==a.length-1)return null;i=s+a[r].size-t,r++}else i=s-t;t+=i,n+=i}for(;rn(e.doc,n)!=n;){if(r==(o<0?0:a.length-1))return null;n+=o*a[r-(o<0?1:0)].size,r+=o}return{index:r,lineN:n}}function Wo(e,t,n){var o=e.display;0==o.view.length||t>=o.viewTo||n<=o.viewFrom?(o.view=Tn(e,t,n),o.viewFrom=t):(o.viewFrom>t?o.view=Tn(e,t,o.viewFrom).concat(o.view):o.viewFrom<t&&(o.view=o.view.slice(Ro(e,t))),o.viewFrom=t,o.viewTo<n?o.view=o.view.concat(Tn(e,o.viewTo,n)):o.viewTo>n&&(o.view=o.view.slice(0,Ro(e,n)))),o.viewTo=n}function Uo(e){for(var t=e.display.view,n=0,o=0;o<t.length;o++){var i=t[o];i.hidden||i.node&&!i.changes||++n}return n}function Ko(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Go(e,t){void 0===t&&(t=!0);var n=e.doc,o={},i=o.cursors=document.createDocumentFragment(),r=o.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&Zo(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Zo(e,l.head,i);c||Yo(e,l,r)}}return o}function Zo(e,t,n){var o=Co(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(M("div"," ","CodeMirror-cursor"));if(i.style.left=o.left+"px",i.style.top=o.top+"px",i.style.height=Math.max(0,o.bottom-o.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var r=xo(e,t,"div",null,null),a=r.right-r.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(o.other){var s=n.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=o.other.left+"px",s.style.top=o.other.top+"px",s.style.height=.85*(o.other.bottom-o.other.top)+"px"}}function Jo(e,t){return e.top-t.top||e.left-t.left}function Yo(e,t,n){var o=e.display,i=e.doc,r=document.createDocumentFragment(),a=Jn(e.display),s=a.left,l=Math.max(o.sizerWidth,Qn(e)-o.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,o){t<0&&(t=0),t=Math.round(t),o=Math.round(o),r.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(o-t)+"px"))}function d(t,n,o){var r,a,d=et(i,t),f=d.text.length;function p(n,o){return xo(e,lt(t,n),"div",d,o)}function h(t,n,o){var i=Eo(e,d,null,t),r="ltr"==n==("after"==o)?"left":"right";return p("after"==o?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),r)[r]}var m=me(d,i.direction);return de(m,n||0,null==o?f:o,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),b=p(t-1,g?"right":"left"),y=null==n&&0==e,w=null==o&&t==f,k=0==d,x=!m||d==m.length-1;if(b.top-v.top<=3){var C=(c?w:y)&&x,_=(c?y:w)&&k?s:(g?v:b).left,S=C?l:(g?b:v).right;u(_,v.top,S-_,v.bottom)}else{var T,$,E,I;g?(T=c&&y&&k?s:v.left,$=c?l:h(e,i,"before"),E=c?s:h(t,i,"after"),I=c&&w&&x?l:b.right):(T=c?h(e,i,"before"):s,$=!c&&y&&k?l:v.right,E=!c&&w&&x?s:b.left,I=c?h(t,i,"after"):l),u(T,v.top,$-T,v.bottom),v.bottom<b.top&&u(s,v.bottom,null,b.top),u(E,b.top,I-E,b.bottom)}(!r||Jo(v,r)<0)&&(r=v),Jo(b,r)<0&&(r=b),(!a||Jo(v,a)<0)&&(a=v),Jo(b,a)<0&&(a=b)})),{start:r,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=et(i,f.line),m=et(i,p.line),g=tn(h)==tn(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,b=d(p.line,g?0:null,p.ch).start;g&&(v.top<b.top-2?(u(v.right,v.top,null,v.bottom),u(s,b.top,b.left,b.bottom)):u(v.right,v.top,b.left-v.right,v.bottom)),v.bottom<b.top&&u(s,v.bottom,null,b.top)}n.appendChild(r)}function Qo(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||ni(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xo(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ti(e))}function ei(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ni(e))}),100)}function ti(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qo(e))}function ni(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,$(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function oi(e){for(var t=e.display,n=t.lineDiv.offsetTop,o=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,r=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,f=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var p=c.node.offsetTop+c.node.offsetHeight;d=p-n,n=p}else{var h=c.node.getBoundingClientRect();d=h.bottom-h.top,!u&&c.text.firstChild&&(f=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(i<o&&(r-=m),ot(c.line,d),ii(c.line),c.rest))for(var g=0;g<c.rest.length;g++)ii(c.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/Lo(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(r)>2&&(t.scroller.scrollTop+=r)}function ii(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],o=n.node.parentNode;o&&(n.height=o.offsetHeight)}}function ri(e,t,n){var o=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;o=Math.floor(o-Gn(e));var i=n&&null!=n.bottom?n.bottom:o+e.wrapper.clientHeight,r=rt(t,o),a=rt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<r?(r=s,a=rt(t,cn(et(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(r=rt(t,cn(et(t,l))-e.wrapper.clientHeight),a=l)}return{from:r,to:Math.max(a,r+1)}}function ai(e,t){if(!ke(e,"scrollCursorIntoView")){var n=e.display,o=n.sizer.getBoundingClientRect(),i=null,r=n.wrapper.ownerDocument;if(t.top+o.top<0?i=!0:t.bottom+o.top>(r.defaultView.innerHeight||r.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=M("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Yn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function si(e,t,n,o){var i;null==o&&(o=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var r=0;r<5;r++){var a=!1,s=Co(e,t),l=n&&n!=t?Co(e,n):s,c=ci(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-o,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+o}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(gi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(bi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function li(e,t){var n=ci(e,t);null!=n.scrollTop&&gi(e,n.scrollTop),null!=n.scrollLeft&&bi(e,n.scrollLeft)}function ci(e,t){var n=e.display,o=Po(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,r=Xn(e),a={};t.bottom-t.top>r&&(t.bottom=t.top+r);var s=e.doc.height+Zn(n),l=t.top<o,c=t.bottom>s-o;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+r){var u=Math.min(t.top,(c?s:t.bottom)-r);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Qn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function ui(e,t){null!=t&&(hi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function di(e){hi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fi(e,t,n){null==t&&null==n||hi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function pi(e,t){hi(e),e.curOp.scrollToPos=t}function hi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,mi(e,_o(e,t.from),_o(e,t.to),t.margin))}function mi(e,t,n,o){var i=ci(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-o,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+o});fi(e,i.scrollLeft,i.scrollTop)}function gi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ki(e,{top:t}),vi(e,t,!0),n&&Ki(e),Fi(e,100))}function vi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function bi(e,t,n,o){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!o||(e.doc.scrollLeft=t,Yi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yi(e){var t=e.display,n=t.gutters.offsetWidth,o=Math.round(e.doc.height+Zn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:o,scrollHeight:o+Yn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var wi=function(e,t,n){this.cm=n;var o=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=i.tabIndex=-1,e(o),e(i),ve(o,"scroll",(function(){o.clientHeight&&t(o.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?o+"px":"0";var i=e.viewHeight-(t?o:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?o+"px":"0",this.horiz.style.left=e.barLeft+"px";var r=e.viewWidth-e.barLeft-(n?o:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+r)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==o&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?o:0,bottom:t?o:0}},wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wi.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new B,this.disableVert=new B},wi.prototype.enableZeroWidthBar=function(e,t,n){function o(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,o)}e.style.visibility="",t.set(1e3,o)},wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ki=function(){};function xi(e,t){t||(t=yi(e));var n=e.display.barWidth,o=e.display.barHeight;Ci(e,t);for(var i=0;i<4&&n!=e.display.barWidth||o!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&oi(e),Ci(e,yi(e)),n=e.display.barWidth,o=e.display.barHeight}function Ci(e,t){var n=e.display,o=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=o.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=o.bottom)+"px",n.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=o.bottom+"px",n.scrollbarFiller.style.width=o.right+"px"):n.scrollbarFiller.style.display="",o.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=o.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}ki.prototype.update=function(){return{bottom:0,right:0}},ki.prototype.setScrollLeft=function(){},ki.prototype.setScrollTop=function(){},ki.prototype.clear=function(){};var _i={native:wi,null:ki};function Si(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new _i[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?bi(e,t):gi(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Ti=0;function $i(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ti,markArrays:null},En(e.curOp)}function Ei(e){var t=e.curOp;t&&Mn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ii(e)}))}function Ii(e){for(var t=e.ops,n=0;n<t.length;n++)Mi(t[n]);for(var o=0;o<t.length;o++)Ai(t[o]);for(var i=0;i<t.length;i++)Oi(t[i]);for(var r=0;r<t.length;r++)Pi(t[r]);for(var a=0;a<t.length;a++)Li(t[a])}function Mi(e){var t=e.cm,n=t.display;Bi(t),e.updateMaxLine&&dn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new qi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ai(e){e.updatedDisplay=e.mustUpdate&&Wi(e.cm,e.update)}function Oi(e){var t=e.cm,n=t.display;e.updatedDisplay&&oi(t),e.barMeasure=yi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=oo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Pi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&bi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==P(j(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&xi(t,e.barMeasure),e.updatedDisplay&&Ji(t,e.barMeasure),e.selectionChanged&&Qo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Xo(e.cm)}function Li(e){var t=e.cm,n=t.display,o=t.doc;e.updatedDisplay&&Ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&vi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&bi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ai(t,si(t,mt(o,e.scrollToPos.from),mt(o,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,r=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||we(i[a],"hide");if(r)for(var s=0;s<r.length;++s)r[s].lines.length&&we(r[s],"unhide");n.wrapper.offsetHeight&&(o.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&we(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Di(e,t){if(e.curOp)return t();$i(e);try{return t()}finally{Ei(e)}}function Ni(e,t){return function(){if(e.curOp)return t.apply(e,arguments);$i(e);try{return t.apply(e,arguments)}finally{Ei(e)}}}function ji(e){return function(){if(this.curOp)return e.apply(this,arguments);$i(this);try{return e.apply(this,arguments)}finally{Ei(this)}}}function Vi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);$i(t);try{return e.apply(this,arguments)}finally{Ei(t)}}}function Fi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,F(Ri,e))}function Ri(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,o=xt(e,t.highlightFrontier),i=[];t.iter(o.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(r){if(o.line>=e.display.viewFrom){var a=r.styles,s=r.text.length>e.options.maxHighlightLength?Je(t.mode,o.state):null,l=wt(e,r,o,!0);s&&(o.state=s),r.styles=l.styles;var c=r.styleClasses,u=l.classes;u?r.styleClasses=u:c&&(r.styleClasses=null);for(var d=!a||a.length!=r.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=r.styles[f];d&&i.push(o.line),r.stateAfter=o.save(),o.nextLine()}else r.text.length<=e.options.maxHighlightLength&&Ct(e,r.text,o),r.stateAfter=o.line%5==0?o.save():null,o.nextLine();if(+new Date>n)return Fi(e,e.options.workDelay),!0})),t.highlightFrontier=o.line,t.modeFrontier=Math.max(t.modeFrontier,o.line),i.length&&Di(e,(function(){for(var t=0;t<i.length;t++)Bo(e,i[t],"text")}))}}var qi=function(e,t,n){var o=e.display;this.viewport=t,this.visible=ri(o,e.doc,t),this.editorIsHidden=!o.wrapper.offsetWidth,this.wrapperHeight=o.wrapper.clientHeight,this.wrapperWidth=o.wrapper.clientWidth,this.oldDisplayWidth=Qn(e),this.force=n,this.dims=Do(e),this.events=[]};function Bi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yn(e)+"px",t.scrollbarsClipped=!0)}function zi(e){if(e.hasFocus())return null;var t=P(j(e));if(!t||!O(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var o=V(e).getSelection();o.anchorNode&&o.extend&&O(e.display.lineDiv,o.anchorNode)&&(n.anchorNode=o.anchorNode,n.anchorOffset=o.anchorOffset,n.focusNode=o.focusNode,n.focusOffset=o.focusOffset)}return n}function Hi(e){if(e&&e.activeElt&&e.activeElt!=P(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&O(document.body,e.anchorNode)&&O(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),o=t.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),n.removeAllRanges(),n.addRange(o),n.extend(e.focusNode,e.focusOffset)}}function Wi(e,t){var n=e.display,o=e.doc;if(t.editorIsHidden)return zo(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Uo(e))return!1;Qi(e)&&(zo(e),t.dims=Do(e));var i=o.first+o.size,r=Math.max(t.visible.from-e.options.viewportMargin,o.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<r&&r-n.viewFrom<20&&(r=Math.max(o.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Pt&&(r=rn(e.doc,r),a=an(e.doc,a));var s=r!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wo(e,r,a),n.viewOffset=cn(et(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Uo(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=zi(e);return l>4&&(n.lineDiv.style.display="none"),Gi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Hi(c),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,o=!0;;o=!1){if(o&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))o&&(t.visible=ri(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Zn(e.display)-Xn(e),n.top)}),t.visible=ri(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Wi(e,t))break;oi(e);var i=yi(e);Ko(e),xi(e,i),Ji(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ki(e,t){var n=new qi(e,t);if(Wi(e,n)){oi(e),Ui(e,n);var o=yi(e);Ko(e),xi(e,o),Ji(e,o),n.finish()}}function Gi(e,t,n){var o=e.display,i=e.options.lineNumbers,r=o.lineDiv,a=r.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=o.view,u=o.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==r){for(;a!=f.node;)a=s(a);var p=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(p=!1),Ln(e,f,u,n)),p&&(E(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(st(e.options,u)))),a=f.node.nextSibling}else{var h=Bn(e,f,u,n);r.insertBefore(h,a)}u+=f.size}for(;a;)a=s(a)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",On(e,"gutterChanged",e)}function Ji(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yn(e)+"px"}function Yi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var o=No(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,r=o+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=r),n[a].gutterBackground&&(n[a].gutterBackground.style.left=r));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=r}e.options.fixedGutter&&(t.gutters.style.left=o+i+"px")}}function Qi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=st(e.options,t.first+t.size-1),o=e.display;if(n.length!=o.lineNumChars){var i=o.measure.appendChild(M("div",[M("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),r=i.firstChild.offsetWidth,a=i.offsetWidth-r;return o.lineGutter.style.width="",o.lineNumInnerWidth=Math.max(r,o.lineGutter.offsetWidth-a)+1,o.lineNumWidth=o.lineNumInnerWidth+a,o.lineNumChars=o.lineNumInnerWidth?n.length:-1,o.lineGutter.style.width=o.lineNumWidth+"px",Zi(e.display),!0}return!1}function Xi(e,t){for(var n=[],o=!1,i=0;i<e.length;i++){var r=e[i],a=null;if("string"!=typeof r&&(a=r.style,r=r.className),"CodeMirror-linenumbers"==r){if(!t)continue;o=!0}n.push({className:r,style:a})}return t&&!o&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function er(e){var t=e.gutters,n=e.gutterSpecs;E(t),e.lineGutter=null;for(var o=0;o<n.length;++o){var i=n[o],r=i.className,a=i.style,s=t.appendChild(M("div",null,"CodeMirror-gutter "+r));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==r&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Zi(e)}function tr(e){er(e.display),qo(e),Yi(e)}function nr(e,t,o,i){var r=this;this.input=o,r.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=A("div",null,"CodeMirror-code"),r.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=M("div",null,"CodeMirror-cursors"),r.measure=M("div",null,"CodeMirror-measure"),r.lineMeasure=M("div",null,"CodeMirror-measure"),r.lineSpace=A("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var c=A("div",[r.lineSpace],"CodeMirror-lines");r.mover=M("div",[c],null,"position: relative"),r.sizer=M("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=M("div",null,null,"position: absolute; height: "+H+"px; width: 1px;"),r.gutters=M("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=M("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=M("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),u&&d>=105&&(r.wrapper.style.clipPath="inset(0px)"),r.wrapper.setAttribute("translate","no"),a&&s<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),l||n&&b||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,r.gutterSpecs=Xi(i.gutters,i.lineNumbers),er(r),o.init(r)}qi.prototype.signal=function(e,t){Ce(e,t)&&this.events.push(arguments)},qi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)we.apply(null,this.events[e])};var or=0,ir=null;function rr(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ar(e){var t=rr(e);return t.x*=ir,t.y*=ir,t}function sr(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var o=rr(t),i=o.x,r=o.y,a=ir;0===t.deltaMode&&(i=t.deltaX,r=t.deltaY,a=1);var s=e.display,c=s.scroller,p=c.scrollWidth>c.clientWidth,h=c.scrollHeight>c.clientHeight;if(i&&p||r&&h){if(r&&y&&l)e:for(var m=t.target,g=s.view;m!=c;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!f&&null!=a)return r&&h&&gi(e,Math.max(0,c.scrollTop+r*a)),bi(e,Math.max(0,c.scrollLeft+i*a)),(!r||r&&h)&&Se(t),void(s.wheelStartX=null);if(r&&null!=a){var b=r*a,w=e.doc.scrollTop,k=w+s.wrapper.clientHeight;b<0?w=Math.max(0,w+b-50):k=Math.min(e.doc.height,k+b+50),Ki(e,{top:w,bottom:k})}or<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=r,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ir=(ir*or+n)/(or+1),++or)}}),200)):(s.wheelDX+=i,s.wheelDY+=r))}}a?ir=-.53:n?ir=15:u?ir=-.7:p&&(ir=-1/3);var lr=function(e,t){this.ranges=e,this.primIndex=t};lr.prototype.primary=function(){return this.ranges[this.primIndex]},lr.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],o=e.ranges[t];if(!ut(n.anchor,o.anchor)||!ut(n.head,o.head))return!1}return!0},lr.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new cr(dt(this.ranges[t].anchor),dt(this.ranges[t].head));return new lr(e,this.primIndex)},lr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},lr.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var o=this.ranges[n];if(ct(t,o.from())>=0&&ct(e,o.to())<=0)return n}return-1};var cr=function(e,t){this.anchor=e,this.head=t};function ur(e,t,n){var o=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ct(e.from(),t.from())})),n=z(t,i);for(var r=1;r<t.length;r++){var a=t[r],s=t[r-1],l=ct(s.to(),a.from());if(o&&!a.empty()?l>0:l>=0){var c=pt(s.from(),a.from()),u=ft(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;r<=n&&--n,t.splice(--r,2,new cr(d?u:c,d?c:u))}}return new lr(t,n)}function dr(e,t){return new lr([new cr(e,t||e)],0)}function fr(e){return e.text?lt(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function pr(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return fr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,o=e.ch;return e.line==t.to.line&&(o+=fr(t).ch-t.to.ch),lt(n,o)}function hr(e,t){for(var n=[],o=0;o<e.sel.ranges.length;o++){var i=e.sel.ranges[o];n.push(new cr(pr(i.anchor,t),pr(i.head,t)))}return ur(e.cm,n,e.sel.primIndex)}function mr(e,t,n){return e.line==t.line?lt(n.line,e.ch-t.ch+n.ch):lt(n.line+(e.line-t.line),e.ch)}function gr(e,t,n){for(var o=[],i=lt(e.first,0),r=i,a=0;a<t.length;a++){var s=t[a],l=mr(s.from,i,r),c=mr(fr(s),i,r);if(i=s.to,r=c,"around"==n){var u=e.sel.ranges[a],d=ct(u.head,u.anchor)<0;o[a]=new cr(d?c:l,d?l:c)}else o[a]=new cr(l,l)}return new lr(o,e.sel.primIndex)}function vr(e){e.doc.mode=Ke(e.options,e.doc.modeOption),br(e)}function br(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Fi(e,100),e.state.modeGen++,e.curOp&&qo(e)}function yr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function wr(e,t,n,o){function i(e){return n?n[e]:null}function r(e,n,i){pn(e,n,i,o),On(e,"change",e,t)}function a(e,t){for(var n=[],r=e;r<t;++r)n.push(new fn(c[r],i(r),o));return n}var s=t.from,l=t.to,c=t.text,u=et(e,s.line),d=et(e,l.line),f=Q(c),p=i(c.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(yr(e,t)){var m=a(0,c.length-1);r(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)r(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),p);else{var g=a(1,c.length-1);g.push(new fn(f+u.text.slice(l.ch),p,o)),r(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)r(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{r(u,u.text.slice(0,s.ch)+c[0],i(0)),r(d,f+d.text.slice(l.ch),p);var v=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}On(e,"change",e,t)}function kr(e,t,n){function o(e,i,r){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=r&&s.sharedHist;n&&!l||(t(s.doc,l),o(s.doc,e,l))}}}o(e,null,!0)}function xr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Vo(e),vr(e),Cr(e),e.options.direction=t.direction,e.options.lineWrapping||dn(e),e.options.mode=t.modeOption,qo(e)}function Cr(e){("rtl"==e.doc.direction?L:$)(e.display.lineDiv,"CodeMirror-rtl")}function _r(e){Di(e,(function(){Cr(e),qo(e)}))}function Sr(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Tr(e,t){var n={from:dt(t.from),to:fr(t),text:tt(e,t.from,t.to)};return Pr(e,n,t.from.line,t.to.line+1),kr(e,(function(e){return Pr(e,n,t.from.line,t.to.line+1)}),!0),n}function $r(e){for(;e.length&&Q(e).ranges;)e.pop()}function Er(e,t){return t?($r(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}function Ir(e,t,n,o){var i=e.history;i.undone.length=0;var r,a,s=+new Date;if((i.lastOp==o||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(r=Er(i,i.lastOp==o)))a=Q(r.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=fr(t):r.changes.push(Tr(e,t));else{var l=Q(i.done);for(l&&l.ranges||Or(e.sel,i.done),r={changes:[Tr(e,t)],generation:i.generation},i.done.push(r);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=o,i.lastOrigin=i.lastSelOrigin=t.origin,a||we(e,"historyAdded")}function Mr(e,t,n,o){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==o.ranges.length&&n.somethingSelected()==o.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ar(e,t,n,o){var i=e.history,r=o&&o.origin;n==i.lastSelOp||r&&i.lastSelOrigin==r&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==r||Mr(e,r,Q(i.done),t))?i.done[i.done.length-1]=t:Or(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=r,i.lastSelOp=n,o&&!1!==o.clearRedo&&$r(i.undone)}function Or(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Pr(e,t,n,o){var i=t["spans_"+e.id],r=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,o),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[r]=n.markedSpans),++r}))}function Lr(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Dr(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var o=[],i=0;i<t.text.length;++i)o.push(Lr(n[i]));return o}function Nr(e,t){var n=Dr(e,t),o=Bt(e,t);if(!n)return o;if(!o)return n;for(var i=0;i<n.length;++i){var r=n[i],a=o[i];if(r&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<r.length;++c)if(r[c].marker==l.marker)continue e;r.push(l)}else a&&(n[i]=a)}return n}function jr(e,t,n){for(var o=[],i=0;i<e.length;++i){var r=e[i];if(r.ranges)o.push(n?lr.prototype.deepCopy.call(r):r);else{var a=r.changes,s=[];o.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&z(t,Number(u[1]))>-1&&(Q(s)[d]=c[d],delete c[d])}}}return o}function Vr(e,t,n,o){if(o){var i=e.anchor;if(n){var r=ct(t,i)<0;r!=ct(n,i)<0?(i=t,t=n):r!=ct(t,n)<0&&(t=n)}return new cr(i,t)}return new cr(n||t,t)}function Fr(e,t,n,o,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Wr(e,new lr([Vr(e.sel.primary(),t,n,i)],0),o)}function Rr(e,t,n){for(var o=[],i=e.cm&&(e.cm.display.shift||e.extend),r=0;r<e.sel.ranges.length;r++)o[r]=Vr(e.sel.ranges[r],t[r],null,i);Wr(e,ur(e.cm,o,e.sel.primIndex),n)}function qr(e,t,n,o){var i=e.sel.ranges.slice(0);i[t]=n,Wr(e,ur(e.cm,i,e.sel.primIndex),o)}function Br(e,t,n,o){Wr(e,dr(t,n),o)}function zr(e,t,n){var o={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new cr(mt(e,t[n].anchor),mt(e,t[n].head))},origin:n&&n.origin};return we(e,"beforeSelectionChange",e,o),e.cm&&we(e.cm,"beforeSelectionChange",e.cm,o),o.ranges!=t.ranges?ur(e.cm,o.ranges,o.ranges.length-1):t}function Hr(e,t,n){var o=e.history.done,i=Q(o);i&&i.ranges?(o[o.length-1]=t,Ur(e,t,n)):Wr(e,t,n)}function Wr(e,t,n){Ur(e,t,n),Ar(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ur(e,t,n){(Ce(e,"beforeSelectionChange")||e.cm&&Ce(e.cm,"beforeSelectionChange"))&&(t=zr(e,t,n));var o=n&&n.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Kr(e,Zr(e,t,o,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||di(e.cm)}function Kr(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xe(e.cm)),On(e,"cursorActivity",e))}function Gr(e){Kr(e,Zr(e,e.sel,null,!1))}function Zr(e,t,n,o){for(var i,r=0;r<t.ranges.length;r++){var a=t.ranges[r],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[r],l=Yr(e,a.anchor,s&&s.anchor,n,o),c=a.head==a.anchor?l:Yr(e,a.head,s&&s.head,n,o);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,r)),i[r]=new cr(l,c))}return i?ur(e.cm,i,t.primIndex):t}function Jr(e,t,n,o,i){var r=et(e,t.line);if(r.markedSpans)for(var a=0;a<r.markedSpans.length;++a){var s=r.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(we(l,"beforeCursorEnter"),l.explicitlyCleared)){if(r.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(o<0?1:-1),f=void 0;if((o<0?u:c)&&(d=Qr(e,d,-o,d&&d.line==t.line?r:null)),d&&d.line==t.line&&(f=ct(d,n))&&(o<0?f<0:f>0))return Jr(e,d,t,o,i)}var p=l.find(o<0?-1:1);return(o<0?c:u)&&(p=Qr(e,p,o,p.line==t.line?r:null)),p?Jr(e,p,t,o,i):null}}return t}function Yr(e,t,n,o,i){var r=o||1,a=Jr(e,t,n,r,i)||!i&&Jr(e,t,n,r,!0)||Jr(e,t,n,-r,i)||!i&&Jr(e,t,n,-r,!0);return a||(e.cantEdit=!0,lt(e.first,0))}function Qr(e,t,n,o){return n<0&&0==t.ch?t.line>e.first?mt(e,lt(t.line-1)):null:n>0&&t.ch==(o||et(e,t.line)).text.length?t.line<e.first+e.size-1?lt(t.line+1,0):null:new lt(t.line,t.ch+n)}function Xr(e){e.setSelection(lt(e.firstLine(),0),lt(e.lastLine()),U)}function ea(e,t,n){var o={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return o.canceled=!0}};return n&&(o.update=function(t,n,i,r){t&&(o.from=mt(e,t)),n&&(o.to=mt(e,n)),i&&(o.text=i),void 0!==r&&(o.origin=r)}),we(e,"beforeChange",e,o),e.cm&&we(e.cm,"beforeChange",e.cm,o),o.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function ta(e,t,n){if(e.cm){if(!e.cm.curOp)return Ni(e.cm,ta)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ce(e,"beforeChange")||e.cm&&Ce(e.cm,"beforeChange"))||(t=ea(e,t,!0))){var o=Ot&&!n&&Ht(e,t.from,t.to);if(o)for(var i=o.length-1;i>=0;--i)na(e,{from:o[i].from,to:o[i].to,text:i?[""]:t.text,origin:t.origin});else na(e,t)}}function na(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=hr(e,t);Ir(e,t,n,e.cm?e.cm.curOp.id:NaN),ra(e,t,n,Bt(e,t));var o=[];kr(e,(function(e,n){n||-1!=z(o,e.history)||(ua(e.history,t),o.push(e.history)),ra(e,t,null,Bt(e,t))}))}}function oa(e,t,n){var o=e.cm&&e.cm.state.suppressEdits;if(!o||n){for(var i,r=e.history,a=e.sel,s="undo"==t?r.done:r.undone,l="undo"==t?r.undone:r.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(r.lastOrigin=r.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(o)return void s.push(i);break}if(Or(i,l),n&&!i.equals(e.sel))return void Wr(e,i,{clearRedo:!1});a=i}var u=[];Or(a,l),l.push({changes:u,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var d=Ce(e,"beforeChange")||e.cm&&Ce(e.cm,"beforeChange"),f=function(n){var o=i.changes[n];if(o.origin=t,d&&!ea(e,o,!1))return s.length=0,{};u.push(Tr(e,o));var r=n?hr(e,o):Q(s);ra(e,o,r,Nr(e,o)),!n&&e.cm&&e.cm.scrollIntoView({from:o.from,to:fr(o)});var a=[];kr(e,(function(e,t){t||-1!=z(a,e.history)||(ua(e.history,o),a.push(e.history)),ra(e,o,null,Nr(e,o))}))},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function ia(e,t){if(0!=t&&(e.first+=t,e.sel=new lr(X(e.sel.ranges,(function(e){return new cr(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){qo(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,o=n.viewFrom;o<n.viewTo;o++)Bo(e.cm,o,"gutter")}}function ra(e,t,n,o){if(e.cm&&!e.cm.curOp)return Ni(e.cm,ra)(e,t,n,o);if(t.to.line<e.first)ia(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ia(e,i),t={from:lt(e.first,0),to:lt(t.to.line+i,t.to.ch),text:[Q(t.text)],origin:t.origin}}var r=e.lastLine();t.to.line>r&&(t={from:t.from,to:lt(r,et(e,r).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),n||(n=hr(e,t)),e.cm?aa(e.cm,t,o):wr(e,t,o),Ur(e,n,U),e.cantEdit&&Yr(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function aa(e,t,n){var o=e.doc,i=e.display,r=t.from,a=t.to,s=!1,l=r.line;e.options.lineWrapping||(l=it(tn(et(o,r.line))),o.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),o.sel.contains(t.from,t.to)>-1&&xe(e),wr(o,t,n,jo(e)),e.options.lineWrapping||(o.iter(l,r.line+t.text.length,(function(e){var t=un(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),At(o,r.line),Fi(e,400);var c=t.text.length-(a.line-r.line)-1;t.full?qo(e):r.line!=a.line||1!=t.text.length||yr(e.doc,t)?qo(e,r.line,a.line+1,c):Bo(e,r.line,"text");var u=Ce(e,"changes"),d=Ce(e,"change");if(d||u){var f={from:r,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function sa(e,t,n,o,i){var r;o||(o=n),ct(o,n)<0&&(n=(r=[o,n])[0],o=r[1]),"string"==typeof t&&(t=e.splitLines(t)),ta(e,{from:n,to:o,text:t,origin:i})}function la(e,t,n,o){n<e.line?e.line+=o:t<e.line&&(e.line=t,e.ch=0)}function ca(e,t,n,o){for(var i=0;i<e.length;++i){var r=e[i],a=!0;if(r.ranges){r.copied||((r=e[i]=r.deepCopy()).copied=!0);for(var s=0;s<r.ranges.length;s++)la(r.ranges[s].anchor,t,n,o),la(r.ranges[s].head,t,n,o)}else{for(var l=0;l<r.changes.length;++l){var c=r.changes[l];if(n<c.from.line)c.from=lt(c.from.line+o,c.from.ch),c.to=lt(c.to.line+o,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ua(e,t){var n=t.from.line,o=t.to.line,i=t.text.length-(o-n)-1;ca(e.done,n,o,i),ca(e.undone,n,o,i)}function da(e,t,n,o){var i=t,r=t;return"number"==typeof t?r=et(e,ht(e,t)):i=it(t),null==i?null:(o(r,i)&&e.cm&&Bo(e.cm,i,n),r)}function fa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function pa(e){this.children=e;for(var t=0,n=0,o=0;o<e.length;++o){var i=e[o];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}cr.prototype.from=function(){return pt(this.anchor,this.head)},cr.prototype.to=function(){return ft(this.anchor,this.head)},cr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,o=e+t;n<o;++n){var i=this.lines[n];this.height-=i.height,hn(i),On(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var o=0;o<t.length;++o)t[o].parent=this},iterN:function(e,t,n){for(var o=e+t;e<o;++e)if(n(this.lines[e]))return!0}},pa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var o=this.children[n],i=o.chunkSize();if(e<i){var r=Math.min(t,i-e),a=o.height;if(o.removeInner(e,r),this.height-=a-o.height,i==r&&(this.children.splice(n--,1),o.parent=null),0==(t-=r))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof fa))){var s=[];this.collapse(s),this.children=[new fa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var o=0;o<this.children.length;++o){var i=this.children[o],r=i.chunkSize();if(e<=r){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new fa(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++o,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=r}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new pa(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var o=new pa(e.children);o.parent=e,e.children=[o,t],e=o}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var o=0;o<this.children.length;++o){var i=this.children[o],r=i.chunkSize();if(e<r){var a=Math.min(t,r-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=r}}};var ha=function(e,t,n){if(n)for(var o in n)n.hasOwnProperty(o)&&(this[o]=n[o]);this.doc=e,this.node=t};function ma(e,t,n){cn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ui(e,n)}function ga(e,t,n,o){var i=new ha(e,n,o),r=e.cm;return r&&i.noHScroll&&(r.display.alignWidgets=!0),da(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,r&&!sn(e,t)){var o=cn(t)<e.scrollTop;ot(t,t.height+Un(i)),o&&ui(r,i.height),r.curOp.forceUpdate=!0}return!0})),r&&On(r,"lineWidgetAdded",r,i,"number"==typeof t?t:it(t)),i}ha.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,o=it(n);if(null!=o&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var r=Un(this);ot(n,Math.max(0,n.height-r)),e&&(Di(e,(function(){ma(e,n,-r),Bo(e,o,"widget")})),On(e,"lineWidgetCleared",e,this,o))}},ha.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,o=this.line;this.height=null;var i=Un(this)-t;i&&(sn(this.doc,o)||ot(o,o.height+i),n&&Di(n,(function(){n.curOp.forceUpdate=!0,ma(n,o,i),On(n,"lineWidgetChanged",n,e,it(o))})))},_e(ha);var va=0,ba=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};function ya(e,t,n,o,i){if(o&&o.shared)return ka(e,t,n,o,i);if(e.cm&&!e.cm.curOp)return Ni(e.cm,ya)(e,t,n,o,i);var r=new ba(e,i),a=ct(t,n);if(o&&R(o,r,!1),a>0||0==a&&!1!==r.clearWhenEmpty)return r;if(r.replacedWith&&(r.collapsed=!0,r.widgetNode=A("span",[r.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||r.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(r.widgetNode.insertLeft=!0)),r.collapsed){if(en(e,t.line,t,n,r)||t.line!=n.line&&en(e,n.line,t,n,r))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}r.addToHistory&&Ir(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(o){c&&r.collapsed&&!c.options.lineWrapping&&tn(o)==c.display.maxLine&&(s=!0),r.collapsed&&l!=t.line&&ot(o,0),Ft(o,new Nt(r,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),r.collapsed&&e.iter(t.line,n.line+1,(function(t){sn(e,t)&&ot(t,0)})),r.clearOnEnter&&ve(r,"beforeCursorEnter",(function(){return r.clear()})),r.readOnly&&(Lt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),r.collapsed&&(r.id=++va,r.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),r.collapsed)qo(c,t.line,n.line+1);else if(r.className||r.startStyle||r.endStyle||r.css||r.attributes||r.title)for(var u=t.line;u<=n.line;u++)Bo(c,u,"text");r.atomic&&Gr(c.doc),On(c,"markerAdded",c,r)}return r}ba.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$i(e),Ce(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var o=null,i=null,r=0;r<this.lines.length;++r){var a=this.lines[r],s=jt(a.markedSpans,this);e&&!this.collapsed?Bo(e,it(a),"text"):e&&(null!=s.to&&(i=it(a)),null!=s.from&&(o=it(a))),a.markedSpans=Vt(a.markedSpans,s),null==s.from&&this.collapsed&&!sn(this.doc,a)&&e&&ot(a,Po(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=tn(this.lines[l]),u=un(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=o&&e&&this.collapsed&&qo(e,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gr(e.doc)),e&&On(e,"markerCleared",e,this,o,i),t&&Ei(e),this.parent&&this.parent.clear()}},ba.prototype.find=function(e,t){var n,o;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var r=this.lines[i],a=jt(r.markedSpans,this);if(null!=a.from&&(n=lt(t?r:it(r),a.from),-1==e))return n;if(null!=a.to&&(o=lt(t?r:it(r),a.to),1==e))return o}return n&&{from:n,to:o}},ba.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,o=this.doc.cm;t&&o&&Di(o,(function(){var i=t.line,r=it(t.line),a=io(o,r);if(a&&(ho(a),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!sn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Un(n)-s;l&&ot(i,i.height+l)}On(o,"markerChanged",o,e)}))},ba.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ba.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},_e(ba);var wa=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ka(e,t,n,o,i){(o=R(o)).shared=!1;var r=[ya(e,t,n,o,i)],a=r[0],s=o.widgetNode;return kr(e,(function(e){s&&(o.widgetNode=s.cloneNode(!0)),r.push(ya(e,mt(e,t),mt(e,n),o,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Q(r)})),new wa(r,a)}function xa(e){return e.findMarks(lt(e.first,0),e.clipPos(lt(e.lastLine())),(function(e){return e.parent}))}function Ca(e,t){for(var n=0;n<t.length;n++){var o=t[n],i=o.find(),r=e.clipPos(i.from),a=e.clipPos(i.to);if(ct(r,a)){var s=ya(e,r,a,o.primary,o.primary.type);o.markers.push(s),s.parent=o}}}function _a(e){for(var t=function(t){var n=e[t],o=[n.primary.doc];kr(n.primary.doc,(function(e){return o.push(e)}));for(var i=0;i<n.markers.length;i++){var r=n.markers[i];-1==z(o,r.doc)&&(r.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}wa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();On(this,"clear")}},wa.prototype.find=function(e,t){return this.primary.find(e,t)},_e(wa);var Sa=0,Ta=function(e,t,n,o,i){if(!(this instanceof Ta))return new Ta(e,t,n,o,i);null==n&&(n=0),pa.call(this,[new fa([new fn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var r=lt(n,0);this.sel=dr(r),this.history=new Sr(null),this.id=++Sa,this.modeOption=t,this.lineSep=o,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),wr(this,{from:r,to:r,text:e}),Wr(this,dr(r),U)};Ta.prototype=ne(pa.prototype,{constructor:Ta,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,o=0;o<t.length;++o)n+=t[o].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=nt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Vi((function(e){var t=lt(this.first,0),n=this.first+this.size-1;ta(this,{from:t,to:lt(n,et(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&fi(this.cm,0,0),Wr(this,dr(t),U)})),replaceRange:function(e,t,n,o){sa(this,e,t=mt(this,t),n=n?mt(this,n):t,o)},getRange:function(e,t,n){var o=tt(this,mt(this,e),mt(this,t));return!1===n?o:""===n?o.join(""):o.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(at(this,e))return et(this,e)},getLineNumber:function(e){return it(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=et(this,e)),tn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vi((function(e,t,n){Br(this,mt(this,"number"==typeof e?lt(e,t||0):e),null,n)})),setSelection:Vi((function(e,t,n){Br(this,mt(this,e),mt(this,t||e),n)})),extendSelection:Vi((function(e,t,n){Fr(this,mt(this,e),t&&mt(this,t),n)})),extendSelections:Vi((function(e,t){Rr(this,vt(this,e),t)})),extendSelectionsBy:Vi((function(e,t){Rr(this,vt(this,X(this.sel.ranges,e)),t)})),setSelections:Vi((function(e,t,n){if(e.length){for(var o=[],i=0;i<e.length;i++)o[i]=new cr(mt(this,e[i].anchor),mt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Wr(this,ur(this.cm,o,t),n)}})),addSelection:Vi((function(e,t,n){var o=this.sel.ranges.slice(0);o.push(new cr(mt(this,e),mt(this,t||e))),Wr(this,ur(this.cm,o,o.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,o=0;o<n.length;o++){var i=tt(this,n[o].from(),n[o].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,o=0;o<n.length;o++){var i=tt(this,n[o].from(),n[o].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[o]=i}return t},replaceSelection:function(e,t,n){for(var o=[],i=0;i<this.sel.ranges.length;i++)o[i]=e;this.replaceSelections(o,t,n||"+input")},replaceSelections:Vi((function(e,t,n){for(var o=[],i=this.sel,r=0;r<i.ranges.length;r++){var a=i.ranges[r];o[r]={from:a.from(),to:a.to(),text:this.splitLines(e[r]),origin:n}}for(var s=t&&"end"!=t&&gr(this,o,t),l=o.length-1;l>=0;l--)ta(this,o[l]);s?Hr(this,s):this.cm&&di(this.cm)})),undo:Vi((function(){oa(this,"undo")})),redo:Vi((function(){oa(this,"redo")})),undoSelection:Vi((function(){oa(this,"undo",!0)})),redoSelection:Vi((function(){oa(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,o=0;o<e.done.length;o++)e.done[o].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Sr(this.history),kr(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:jr(this.history.done),undone:jr(this.history.undone)}},setHistory:function(e){var t=this.history=new Sr(this.history);t.done=jr(e.done.slice(0),null,!0),t.undone=jr(e.undone.slice(0),null,!0)},setGutterMarker:Vi((function(e,t,n){return da(this,e,"gutter",(function(e){var o=e.gutterMarkers||(e.gutterMarkers={});return o[t]=n,!n&&ae(o)&&(e.gutterMarkers=null),!0}))})),clearGutter:Vi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&da(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!at(this,e))return null;if(t=e,!(e=et(this,e)))return null}else if(null==(t=it(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Vi((function(e,t,n){return da(this,e,"gutter"==t?"gutter":"class",(function(e){var o="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[o]){if(S(n).test(e[o]))return!1;e[o]+=" "+n}else e[o]=n;return!0}))})),removeLineClass:Vi((function(e,t,n){return da(this,e,"gutter"==t?"gutter":"class",(function(e){var o="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[o];if(!i)return!1;if(null==n)e[o]=null;else{var r=i.match(S(n));if(!r)return!1;var a=r.index+r[0].length;e[o]=i.slice(0,r.index)+(r.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Vi((function(e,t,n){return ga(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ya(this,mt(this,e),mt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ya(this,e=mt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=et(this,(e=mt(this,e)).line).markedSpans;if(n)for(var o=0;o<n.length;++o){var i=n[o];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var o=[],i=e.line;return this.iter(e.line,t.line+1,(function(r){var a=r.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||o.push(l.marker.parent||l.marker)}++i})),o},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var o=0;o<n.length;++o)null!=n[o].from&&e.push(n[o].marker)})),e},posFromIndex:function(e){var t,n=this.first,o=this.lineSeparator().length;return this.iter((function(i){var r=i.text.length+o;if(r>e)return t=e,!0;e-=r,++n})),mt(this,lt(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ta(nt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var o=new Ta(nt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(o.history=this.history),(this.linked||(this.linked=[])).push({doc:o,sharedHist:e.sharedHist}),o.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ca(o,xa(this)),o},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),_a(xa(this));break}if(e.history==this.history){var n=[e.id];kr(e,(function(e){return n.push(e.id)}),!0),e.history=new Sr(null),e.history.done=jr(this.history.done,n),e.history.undone=jr(this.history.undone,n)}},iterLinkedDocs:function(e){kr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):je(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Vi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&_r(this.cm))}))}),Ta.prototype.eachLine=Ta.prototype.iter;var $a=0;function Ea(e){var t=this;if(Aa(t),!ke(t,e)&&!Kn(t.display,e)){Se(e),a&&($a=+new Date);var n=Fo(t,e,!0),o=e.dataTransfer.files;if(n&&!t.isReadOnly())if(o&&o.length&&window.FileReader&&window.File)for(var i=o.length,r=Array(i),s=0,l=function(){++s==i&&Ni(t,(function(){var e={from:n=mt(t.doc,n),to:n,text:t.doc.splitLines(r.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ta(t.doc,e),Hr(t.doc,dr(mt(t.doc,n),mt(t.doc,fr(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))l();else{var o=new FileReader;o.onerror=function(){return l()},o.onload=function(){var e=o.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(r[n]=e),l()},o.readAsText(e)}},u=0;u<o.length;u++)c(o[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Ur(t.doc,dr(n,n)),f)for(var p=0;p<f.length;++p)sa(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ia(e,t){if(a&&(!e.state.draggingText||+new Date-$a<100))Ee(t);else if(!ke(e,t)&&!Kn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=M("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function Ma(e,t){var n=Fo(e,t);if(n){var o=document.createDocumentFragment();Zo(e,n,o),e.display.dragCursor||(e.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),I(e.display.dragCursor,o)}}function Aa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Oa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],o=0;o<t.length;o++){var i=t[o].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Pa=!1;function La(){Pa||(Da(),Pa=!0)}function Da(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Oa(Na)}),100))})),ve(window,"blur",(function(){return Oa(ni)}))}function Na(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ja={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Va=0;Va<10;Va++)ja[Va+48]=ja[Va+96]=String(Va);for(var Fa=65;Fa<=90;Fa++)ja[Fa]=String.fromCharCode(Fa);for(var Ra=1;Ra<=12;Ra++)ja[Ra+111]=ja[Ra+63235]="F"+Ra;var qa={};function Ba(e){var t,n,o,i,r=e.split(/-(?!$)/);e=r[r.length-1];for(var a=0;a<r.length-1;a++){var s=r[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);o=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),o&&(e="Shift-"+e),e}function za(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==o){delete e[n];continue}for(var i=X(n.split(" "),Ba),r=0;r<i.length;r++){var a=void 0,s=void 0;r==i.length-1?(s=i.join(" "),a=o):(s=i.slice(0,r+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Ha(e,t,n,o){var i=(t=Ga(t)).call?t.call(e,o):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ha(e,t.fallthrough,n,o);for(var r=0;r<t.fallthrough.length;r++){var a=Ha(e,t.fallthrough[r],n,o);if(a)return a}}}function Wa(e){var t="string"==typeof e?e:ja[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ua(e,t,n){var o=e;return t.altKey&&"Alt"!=o&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=o&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=o&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=o&&(e="Shift-"+e),e}function Ka(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=ja[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ua(n,e,t))}function Ga(e){return"string"==typeof e?qa[e]:e}function Za(e,t){for(var n=e.doc.sel.ranges,o=[],i=0;i<n.length;i++){for(var r=t(n[i]);o.length&&ct(r.from,Q(o).to)<=0;){var a=o.pop();if(ct(a.from,r.from)<0){r.from=a.from;break}}o.push(r)}Di(e,(function(){for(var t=o.length-1;t>=0;t--)sa(e.doc,"",o[t].from,o[t].to,"+delete");di(e)}))}function Ja(e,t,n){var o=ce(e.text,t+n,n);return o<0||o>e.text.length?null:o}function Ya(e,t,n){var o=Ja(e,t.ch,n);return null==o?null:new lt(t.line,o,n<0?"after":"before")}function Qa(e,t,n,o,i){if(e){"rtl"==t.doc.direction&&(i=-i);var r=me(n,t.doc.direction);if(r){var a,s=i<0?Q(r):r[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ro(t,n);a=i<0?n.text.length-1:0;var u=ao(t,c,a).top;a=ue((function(e){return ao(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ja(n,a,1))}else a=i<0?s.to:s.from;return new lt(o,a,l)}}return new lt(o,i<0?n.text.length:0,i<0?"before":"after")}function Xa(e,t,n,o){var i=me(t,e.doc.direction);if(!i)return Ya(t,n,o);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var r=pe(i,n.ch,n.sticky),a=i[r];if("ltr"==e.doc.direction&&a.level%2==0&&(o>0?a.to>n.ch:a.from<n.ch))return Ya(t,n,o);var s,l=function(e,n){return Ja(t,e instanceof lt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||ro(e,t),Eo(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==o<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var p=d?"before":"after";return new lt(n.line,f,p)}}var h=function(e,t,o){for(var r=function(e,t){return t?new lt(n.line,l(e,1),"before"):new lt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?o.begin:l(o.end,-1);if(a.from<=c&&c<a.to)return r(c,s);if(c=s?a.from:l(a.to,-1),o.begin<=c&&c<o.end)return r(c,s)}},m=h(r+o,o,u);if(m)return m;var g=o>0?u.end:l(u.begin,-1);return null==g||o>0&&g==t.text.length||!(m=h(o>0?0:i.length-1,o,c(g)))?null:m}qa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qa.default=y?qa.macDefault:qa.pcDefault;var es={selectAll:Xr,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return Za(e,(function(t){if(t.empty()){var n=et(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:lt(t.head.line+1,0)}:{from:t.head,to:lt(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Za(e,(function(t){return{from:lt(t.from().line,0),to:mt(e.doc,lt(t.to().line+1,0))}}))},delLineLeft:function(e){return Za(e,(function(e){return{from:lt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Za(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Za(e,(function(t){var n=e.charCoords(t.head,"div").top+5,o=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:o}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(lt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(lt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return os(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ns(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,o=e.coordsChar({left:0,top:n},"div");return o.ch<e.getLine(o.line).search(/\S/)?os(e,t.head):o}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),o=e.options.tabSize,i=0;i<n.length;i++){var r=n[i].from(),a=q(e.getLine(r.line),r.ch,o);t.push(Y(o-a%o))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Di(e,(function(){for(var t=e.listSelections(),n=[],o=0;o<t.length;o++)if(t[o].empty()){var i=t[o].head,r=et(e.doc,i.line).text;if(r)if(i.ch==r.length&&(i=new lt(i.line,i.ch-1)),i.ch>0)i=new lt(i.line,i.ch+1),e.replaceRange(r.charAt(i.ch-1)+r.charAt(i.ch-2),lt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=et(e.doc,i.line-1).text;a&&(i=new lt(i.line,1),e.replaceRange(r.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),lt(i.line-1,a.length-1),i,"+transpose"))}n.push(new cr(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Di(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var o=0;o<t.length;o++)e.indentLine(t[o].from().line,null,!0);di(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ts(e,t){var n=et(e.doc,t),o=tn(n);return o!=n&&(t=it(o)),Qa(!0,e,o,t,1)}function ns(e,t){var n=et(e.doc,t),o=nn(n);return o!=n&&(t=it(o)),Qa(!0,e,n,t,-1)}function os(e,t){var n=ts(e,t.line),o=et(e.doc,n.line),i=me(o,e.doc.direction);if(!i||0==i[0].level){var r=Math.max(n.ch,o.text.search(/\S/)),a=t.line==n.line&&t.ch<=r&&t.ch;return lt(n.line,a?0:r,n.sticky)}return n}function is(e,t,n){if("string"==typeof t&&!(t=es[t]))return!1;e.display.input.ensurePolled();var o=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=W}finally{e.display.shift=o,e.state.suppressEdits=!1}return i}function rs(e,t,n){for(var o=0;o<e.state.keyMaps.length;o++){var i=Ha(t,e.state.keyMaps[o],n,e);if(i)return i}return e.options.extraKeys&&Ha(t,e.options.extraKeys,n,e)||Ha(t,e.options.keyMap,n,e)}var as=new B;function ss(e,t,n,o){var i=e.state.keySeq;if(i){if(Wa(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:as.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ls(e,i+" "+t,n,o))return!0}return ls(e,t,n,o)}function ls(e,t,n,o){var i=rs(e,t,o);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&On(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Se(n),Qo(e)),!!i}function cs(e,t){var n=Ka(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ss(e,"Shift-"+n,t,(function(t){return is(e,t,!0)}))||ss(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return is(e,t)})):ss(e,n,t,(function(t){return is(e,t)})))}function us(e,t,n){return ss(e,"'"+n+"'",t,(function(t){return is(e,t,!0)}))}var ds=null;function fs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=P(j(t)),ke(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=16==o||e.shiftKey;var i=cs(t,e);f&&(ds=i?o:null,i||88!=o||Fe||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==o&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=o||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ps(t)}}function ps(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||($(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}L(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n)}function hs(e){16==e.keyCode&&(this.doc.sel.shift=!1),ke(this,e)}function ms(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Kn(t.display,e)||ke(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,o=e.charCode;if(f&&n==ds)return ds=null,void Se(e);if(!f||e.which&&!(e.which<10)||!cs(t,e)){var i=String.fromCharCode(null==o?n:o);"\b"!=i&&(us(t,e,i)||t.display.input.onKeyPress(e))}}}var gs,vs,bs=400,ys=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ws(e,t){var n=+new Date;return vs&&vs.compare(n,e,t)?(gs=vs=null,"triple"):gs&&gs.compare(n,e,t)?(vs=new ys(n,e,t),gs=null,"double"):(gs=new ys(n,e,t),vs=null,"single")}function ks(e){var t=this,n=t.display;if(!(ke(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Kn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ms(t,e)){var o=Fo(t,e),i=Me(e),r=o?ws(o,i):"single";V(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),o&&xs(t,i,o,r,e)||(1==i?o?_s(t,o,r,e):Ie(e)==n.scroller&&Se(e):2==i?(o&&Fr(t.doc,o),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):ei(t)))}}function xs(e,t,n,o,i){var r="Click";return"double"==o?r="Double"+r:"triple"==o&&(r="Triple"+r),ss(e,Ua(r=(1==t?"Left":2==t?"Middle":"Right")+r,i),i,(function(t){if("string"==typeof t&&(t=es[t]),!t)return!1;var o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o=t(e,n)!=W}finally{e.state.suppressEdits=!1}return o}))}function Cs(e,t,n){var o=e.getOption("configureMouse"),i=o?o(e,t,n):{};if(null==i.unit){var r=w?n.shiftKey&&n.metaKey:n.altKey;i.unit=r?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}function _s(e,t,n,o){a?setTimeout(F(Xo,e),0):e.curOp.focus=P(j(e));var i,r=Cs(e,n,o),s=e.doc.sel;e.options.dragDrop&&Pe&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ct((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ct(i.to(),t)>0||t.xRel<0)?Ss(e,o,t,r):$s(e,o,t,r)}function Ss(e,t,n,o){var i=e.display,r=!1,c=Ni(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ei(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",c),r||(Se(t),o.addNew||Fr(e.doc,n,null,null,o.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){r=r||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return r=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!o.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ts(e,t,n){if("char"==n)return new cr(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new cr(lt(t.line,0),mt(e.doc,lt(t.line+1,0)));var o=n(e,t);return new cr(o.from,o.to)}function $s(e,t,n,o){a&&ei(e);var i=e.display,r=e.doc;Se(t);var s,l,c=r.sel,u=c.ranges;if(o.addNew&&!o.extend?(l=r.sel.contains(n),s=l>-1?u[l]:new cr(n,n)):(s=r.sel.primary(),l=r.sel.primIndex),"rectangle"==o.unit)o.addNew||(s=new cr(n,n)),n=Fo(e,t,!0,!0),l=-1;else{var d=Ts(e,n,o.unit);s=o.extend?Vr(s,d.anchor,d.head,o.extend):d}o.addNew?-1==l?(l=u.length,Wr(r,ur(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==o.unit&&!o.extend?(Wr(r,ur(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=r.sel):qr(r,l,s,K):(l=0,Wr(r,new lr([s],0),K),c=r.sel);var f=n;function p(t){if(0!=ct(f,t))if(f=t,"rectangle"==o.unit){for(var i=[],a=e.options.tabSize,u=q(et(r,n.line).text,n.ch,a),d=q(et(r,t.line).text,t.ch,a),p=Math.min(u,d),h=Math.max(u,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=et(r,m).text,b=Z(v,p,a);p==h?i.push(new cr(lt(m,b),lt(m,b))):v.length>b&&i.push(new cr(lt(m,b),lt(m,Z(v,h,a))))}i.length||i.push(new cr(n,n)),Wr(r,ur(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,w=s,k=Ts(e,t,o.unit),x=w.anchor;ct(k.anchor,x)>0?(y=k.head,x=pt(w.from(),k.anchor)):(y=k.anchor,x=ft(w.to(),k.head));var C=c.ranges.slice(0);C[l]=Es(e,new cr(mt(r,x),y)),Wr(r,ur(e,C,l),K)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Fo(e,t,!0,"rectangle"==o.unit);if(a)if(0!=ct(a,f)){e.curOp.focus=P(j(e)),p(a);var s=ri(i,r);(a.line>=s.to||a.line<s.from)&&setTimeout(Ni(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(Ni(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Se(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",b),ye(i.wrapper.ownerDocument,"mouseup",y),r.history.lastSelOrigin=null}var b=Ni(e,(function(e){0!==e.buttons&&Me(e)?g(e):v(e)})),y=Ni(e,v);e.state.selectingText=y,ve(i.wrapper.ownerDocument,"mousemove",b),ve(i.wrapper.ownerDocument,"mouseup",y)}function Es(e,t){var n=t.anchor,o=t.head,i=et(e.doc,n.line);if(0==ct(n,o)&&n.sticky==o.sticky)return t;var r=me(i);if(!r)return t;var a=pe(r,n.ch,n.sticky),s=r[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==r.length)return t;if(o.line!=n.line)l=(o.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=pe(r,o.ch,o.sticky),d=u-a||(o.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var f=r[c+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new cr(new lt(n.line,h,m),o)}function Is(e,t,n,o){var i,r;if(t.touches)i=t.touches[0].clientX,r=t.touches[0].clientY;else try{i=t.clientX,r=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;o&&Se(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(r>s.bottom||!Ce(e,n))return $e(t);r-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return we(e,n,e,rt(e.doc,r),e.display.gutterSpecs[l].className,t),$e(t)}}function Ms(e,t){return Is(e,t,"gutterClick",!0)}function As(e,t){Kn(e.display,t)||Os(e,t)||ke(e,t,"contextmenu")||_||e.display.input.onContextMenu(t)}function Os(e,t){return!!Ce(e,"gutterContextMenu")&&Is(e,t,"gutterContextMenu",!1)}function Ps(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),go(e)}ys.prototype.compare=function(e,t,n){return this.time+bs>e&&0==ct(t,this.pos)&&n==this.button};var Ls={toString:function(){return"CodeMirror.Init"}},Ds={},Ns={};function js(e){var t=e.optionHandlers;function n(n,o,i,r){e.defaults[n]=o,i&&(t[n]=r?function(e,t,n){n!=Ls&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ls,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,vr(e)}),!0),n("indentUnit",2,vr,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){br(e),go(e),qo(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],o=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var r=e.text.indexOf(t,i);if(-1==r)break;i=r+t.length,n.push(lt(o,r))}o++}));for(var i=n.length-1;i>=0;i--)sa(e.doc,t,n[i],lt(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ls&&e.refresh()})),n("specialCharPlaceholder",yn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!k),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ps(e),tr(e)}),!0),n("keyMap","default",(function(e,t,n){var o=Ga(t),i=n!=Ls&&Ga(n);i&&i.detach&&i.detach(e,o),o.attach&&o.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Fs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Xi(t,e.options.lineNumbers),tr(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?No(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),n("scrollbarStyle","native",(function(e){Si(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Xi(e.options.gutters,t),tr(e)}),!0),n("firstLineNumber",1,tr,!0),n("lineNumberFormatter",(function(e){return e}),tr,!0),n("showCursorWhenSelecting",!1,Ko,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ni(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Vs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ko,!0),n("singleCursorHeightPerLine",!0,Ko,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,br,!0),n("addModeClass",!1,br,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,br,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Vs(e,t,n){if(!t!=!(n&&n!=Ls)){var o=e.display.dragFunctions,i=t?ve:ye;i(e.display.scroller,"dragstart",o.start),i(e.display.scroller,"dragenter",o.enter),i(e.display.scroller,"dragover",o.over),i(e.display.scroller,"dragleave",o.leave),i(e.display.scroller,"drop",o.drop)}}function Fs(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):($(e.display.wrapper,"CodeMirror-wrap"),dn(e)),Vo(e),qo(e),go(e),setTimeout((function(){return xi(e)}),100)}function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?R(t):{},R(Ds,t,!1);var o=t.value;"string"==typeof o?o=new Ta(o,t.mode,null,t.lineSeparator,t.direction):t.mode&&(o.modeOption=t.mode),this.doc=o;var i=new Rs.inputStyles[t.inputStyle](this),r=this.display=new nr(e,o,i,t);for(var c in r.wrapper.CodeMirror=this,Ps(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!b&&r.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),qs(this),La(),$i(this),this.curOp.forceUpdate=!0,xr(this,o),t.autofocus&&!b||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ti(n)}),20):ni(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,t[c],Ls);Qi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Bs.length;++u)Bs[u](this);Ei(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(r.lineDiv).textRendering&&(r.lineDiv.style.textRendering="auto")}function qs(e){var t=e.display;ve(t.scroller,"mousedown",Ni(e,ks)),ve(t.scroller,"dblclick",a&&s<11?Ni(e,(function(t){if(!ke(e,t)){var n=Fo(e,t);if(n&&!Ms(e,t)&&!Kn(e.display,t)){Se(t);var o=e.findWordAt(n);Fr(e.doc,o.anchor,o.head)}}})):function(t){return ke(e,t)||Se(t)}),ve(t.scroller,"contextmenu",(function(t){return As(e,t)})),ve(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||As(e,n)}));var n,o={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(o=t.activeTouch).end=+new Date)}function r(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,o=t.top-e.top;return n*n+o*o>400}ve(t.scroller,"touchstart",(function(i){if(!ke(e,i)&&!r(i)&&!Ms(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-o.end<=300?o:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(n){var o=t.activeTouch;if(o&&!Kn(t,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var r,a=e.coordsChar(t.activeTouch,"page");r=!o.prev||l(o,o.prev)?new cr(a,a):!o.prev.prev||l(o,o.prev.prev)?e.findWordAt(a):new cr(lt(a.line,0),mt(e.doc,lt(a.line+1,0))),e.setSelection(r.anchor,r.head),e.focus(),Se(n)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(gi(e,t.scroller.scrollTop),bi(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return sr(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return sr(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ke(e,t)||Ee(t)},over:function(t){ke(e,t)||(Ma(e,t),Ee(t))},start:function(t){return Ia(e,t)},drop:Ni(e,Ea),leave:function(t){ke(e,t)||Aa(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return hs.call(e,t)})),ve(c,"keydown",Ni(e,fs)),ve(c,"keypress",Ni(e,ms)),ve(c,"focus",(function(t){return ti(e,t)})),ve(c,"blur",(function(t){return ni(e,t)}))}Rs.defaults=Ds,Rs.optionHandlers=Ns;var Bs=[];function zs(e,t,n,o){var i,r=e.doc;null==n&&(n="add"),"smart"==n&&(r.mode.indent?i=xt(e,t).state:n="prev");var a=e.options.tabSize,s=et(r,t),l=q(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(o||/\S/.test(s.text)){if("smart"==n&&((c=r.mode.indent(i,s.text.slice(u.length),s.text))==W||c>150)){if(!o)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>r.first?q(et(r,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)f+=a,d+="\t";if(f<c&&(d+=Y(c-f)),d!=u)return sa(r,d,lt(t,0),lt(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<r.sel.ranges.length;h++){var m=r.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var g=lt(t,u.length);qr(r,h,new cr(g,g));break}}}Rs.defineInitHook=function(e){return Bs.push(e)};var Hs=null;function Ws(e){Hs=e}function Us(e,t,n,o,i){var r=e.doc;e.display.shift=!1,o||(o=r.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=je(t),c=null;if(s&&o.ranges.length>1)if(Hs&&Hs.text.join("\n")==t){if(o.ranges.length%Hs.text.length==0){c=[];for(var u=0;u<Hs.text.length;u++)c.push(r.splitLines(Hs.text[u]))}}else l.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(c=X(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=o.ranges.length-1;f>=0;f--){var p=o.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=lt(h.line,h.ch-n):e.state.overwrite&&!s?m=lt(m.line,Math.min(et(r,m.line).text.length,m.ch+Q(l).length)):s&&Hs&&Hs.lineWise&&Hs.text.join("\n")==l.join("\n")&&(h=m=lt(h.line,0)));var g={from:h,to:m,text:c?c[f%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ta(e.doc,g),On(e,"inputRead",e,g)}t&&!s&&Gs(e,t),di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ks(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Di(t,(function(){return Us(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,o=n.ranges.length-1;o>=0;o--){var i=n.ranges[o];if(!(i.head.ch>100||o&&n.ranges[o-1].head.line==i.head.line)){var r=e.getModeAt(i.head),a=!1;if(r.electricChars){for(var s=0;s<r.electricChars.length;s++)if(t.indexOf(r.electricChars.charAt(s))>-1){a=zs(e,i.head.line,"smart");break}}else r.electricInput&&r.electricInput.test(et(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=zs(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function Zs(e){for(var t=[],n=[],o=0;o<e.doc.sel.ranges.length;o++){var i=e.doc.sel.ranges[o].head.line,r={anchor:lt(i,0),head:lt(i+1,0)};n.push(r),t.push(e.getRange(r.anchor,r.head))}return{text:t,ranges:n}}function Js(e,t,n,o){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",o?"":"off"),e.setAttribute("spellcheck",!!t)}function Ys(){var e=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=M("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Js(e),t}function Qs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){V(this).focus(),this.display.input.focus()},setOption:function(e,n){var o=this.options,i=o[e];o[e]==n&&"mode"!=e||(o[e]=n,t.hasOwnProperty(e)&&Ni(this,t[e])(this,n,i),we(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ga(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ji((function(t,n){var o=t.token?t:e.getMode(this.options,t);if(o.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:o,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,qo(this)})),removeOverlay:ji((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var o=t[n].modeSpec;if(o==e||"string"==typeof e&&o.name==e)return t.splice(n,1),this.state.modeGen++,void qo(this)}})),indentLine:ji((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),at(this.doc,e)&&zs(this,e,t,n)})),indentSelection:ji((function(e){for(var t=this.doc.sel.ranges,n=-1,o=0;o<t.length;o++){var i=t[o];if(i.empty())i.head.line>n&&(zs(this,i.head.line,e,!0),n=i.head.line,o==this.doc.sel.primIndex&&di(this));else{var r=i.from(),a=i.to(),s=Math.max(n,r.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)zs(this,l,e);var c=this.doc.sel.ranges;0==r.ch&&t.length==c.length&&c[o].from().ch>0&&qr(this.doc,o,new cr(r,c[o].to()),U)}}})),getTokenAt:function(e,t){return $t(this,e,t)},getLineTokens:function(e,t){return $t(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=kt(this,et(this.doc,e.line)),o=0,i=(n.length-1)/2,r=e.ch;if(0==r)t=n[2];else for(;;){var a=o+i>>1;if((a?n[2*a-1]:0)>=r)i=a;else{if(!(n[2*a+1]<r)){t=n[2*a+2];break}o=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var o=[];if(!n.hasOwnProperty(t))return o;var i=n[t],r=this.getModeAt(e);if("string"==typeof r[t])i[r[t]]&&o.push(i[r[t]]);else if(r[t])for(var a=0;a<r[t].length;a++){var s=i[r[t][a]];s&&o.push(s)}else r.helperType&&i[r.helperType]?o.push(i[r.helperType]):i[r.name]&&o.push(i[r.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(r,this)&&-1==z(o,c.val)&&o.push(c.val)}return o},getStateAfter:function(e,t){var n=this.doc;return xt(this,(e=ht(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Co(this,null==e?n.head:"object"==typeof e?mt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return xo(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return To(this,(e=ko(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=ko(this,{top:e,left:0},t||"page").top,rt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var o,i=!1;if("number"==typeof e){var r=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>r&&(e=r,i=!0),o=et(this.doc,e)}else o=e;return wo(this,o,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-cn(o):0)},defaultTextHeight:function(){return Po(this.display)},defaultCharWidth:function(){return Lo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,o,i){var r=this.display,a=(e=Co(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),r.sizer.appendChild(t),"over"==o)a=e.top;else if("above"==o||"near"==o){var l=Math.max(r.wrapper.clientHeight,this.doc.height),c=Math.max(r.sizer.clientWidth,r.lineSpace.clientWidth);("above"==o||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=r.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(r.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&li(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:ji(fs),triggerOnKeyPress:ji(ms),triggerOnKeyUp:hs,triggerOnMouseDown:ji(ks),execCommand:function(e){if(es.hasOwnProperty(e))return es[e].call(null,this)},triggerElectric:ji((function(e){Gs(this,e)})),findPosH:function(e,t,n,o){var i=1;t<0&&(i=-1,t=-t);for(var r=mt(this.doc,e),a=0;a<t&&!(r=Xs(this.doc,r,i,n,o)).hitSide;++a);return r},moveH:ji((function(e,t){var n=this;this.extendSelectionsBy((function(o){return n.display.shift||n.doc.extend||o.empty()?Xs(n.doc,o.head,e,t,n.options.rtlMoveVisually):e<0?o.from():o.to()}),G)})),deleteH:ji((function(e,t){var n=this.doc.sel,o=this.doc;n.somethingSelected()?o.replaceSelection("",null,"+delete"):Za(this,(function(n){var i=Xs(o,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,o){var i=1,r=o;t<0&&(i=-1,t=-t);for(var a=mt(this.doc,e),s=0;s<t;++s){var l=Co(this,a,"div");if(null==r?r=l.left:l.left=r,(a=el(this,l,i,n)).hitSide)break}return a},moveV:ji((function(e,t){var n=this,o=this.doc,i=[],r=!this.display.shift&&!o.extend&&o.sel.somethingSelected();if(o.extendSelectionsBy((function(a){if(r)return e<0?a.from():a.to();var s=Co(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=el(n,s,e,t);return"page"==t&&a==o.sel.primary()&&ui(n,xo(n,l,"div").top-s.top),l}),G),i.length)for(var a=0;a<o.sel.ranges.length;a++)o.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=et(this.doc,e.line).text,n=e.ch,o=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&o!=t.length||!n?++o:--n;for(var r=t.charAt(n),a=re(r,i)?function(e){return re(e,i)}:/\s/.test(r)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!re(e)};n>0&&a(t.charAt(n-1));)--n;for(;o<t.length&&a(t.charAt(o));)++o}return new cr(lt(e.line,n),lt(e.line,o))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):$(this.display.cursorDiv,"CodeMirror-overwrite"),we(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==P(j(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ji((function(e,t){fi(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yn(this)-this.display.barHeight,width:e.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:Xn(this),clientWidth:Qn(this)}},scrollIntoView:ji((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:lt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pi(this,e):mi(this,e.from,e.to,e.margin)})),setSize:ji((function(e,t){var n=this,o=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=o(e)),null!=t&&(this.display.wrapper.style.height=o(t)),this.options.lineWrapping&&mo(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Bo(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,we(this,"refresh",this)})),operation:function(e){return Di(this,e)},startOperation:function(){return $i(this)},endOperation:function(){return Ei(this)},refresh:ji((function(){var e=this.display.cachedTextHeight;qo(this),this.curOp.forceUpdate=!0,go(this),fi(this,this.doc.scrollLeft,this.doc.scrollTop),Zi(this.display),(null==e||Math.abs(e-Po(this.display))>.5||this.options.lineWrapping)&&Vo(this),we(this,"refresh",this)})),swapDoc:ji((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xr(this,e),go(this),this.display.input.reset(),fi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_e(e),e.registerHelper=function(t,o,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][o]=i},e.registerGlobalHelper=function(t,o,i,r){e.registerHelper(t,o,r),n[t]._global.push({pred:i,val:r})}}function Xs(e,t,n,o,i){var r=t,a=n,s=et(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new lt(n,t.ch,t.sticky),s=et(e,n))}function u(r){var a;if("codepoint"==o){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new lt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?Xa(e.cm,s,t,n):Ya(s,t,n);if(null==a){if(r||!c())return!1;t=Qa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==o||"codepoint"==o)u();else if("column"==o)u(!0);else if("word"==o||"group"==o)for(var d=null,f="group"==o,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||u(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",g=re(m,p)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(!f||h||g||(g="s"),d&&d!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(d=g),n>0&&!u(!h))break}var v=Yr(e,t,r,a,!0);return ut(r,v)&&(v.hitSide=!0),v}function el(e,t,n,o){var i,r,a=e.doc,s=t.left;if("page"==o){var l=Math.min(e.display.wrapper.clientHeight,V(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Po(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==o&&(i=n>0?t.bottom+3:t.top-3);for(;(r=To(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){r.hitSide=!0;break}i+=5*n}return r}var tl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function nl(e,t){var n=io(e,t.line);if(!n||n.hidden)return null;var o=et(e.doc,t.line),i=to(n,o,t.line),r=me(o,e.doc.direction),a="left";r&&(a=pe(r,t.ch)%2?"right":"left");var s=co(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function ol(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function il(e,t){return t&&(e.bad=!0),e}function rl(e,t,n,o,i){var r="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(r+=s,l&&(r+=s),a=l=!1)}function d(e){e&&(u(),r+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var r,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(lt(o,0),lt(i+1,0),c(+p));return void(h.length&&(r=h[0].find(0))&&d(tt(e.doc,r.from,r.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;f(t),t!=n;)t=t.nextSibling,l=!1;return r}function al(e,t,n){var o;if(t==e.display.lineDiv){if(!(o=e.display.lineDiv.childNodes[n]))return il(e.clipPos(lt(e.display.viewTo-1)),!0);t=null,n=0}else for(o=t;;o=o.parentNode){if(!o||o==e.display.lineDiv)return null;if(o.parentNode&&o.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var r=e.display.view[i];if(r.node==o)return sl(r,t,n)}}function sl(e,t,n){var o=e.text.firstChild,i=!1;if(!t||!O(o,t))return il(lt(it(e.line),0),!0);if(t==o&&(i=!0,t=o.childNodes[n],n=0,!t)){var r=e.rest?Q(e.rest):e.line;return il(lt(it(r),r.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=o;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,o){for(var i=-1;i<(c?c.length:0);i++)for(var r=i<0?l.map:c[i],a=0;a<r.length;a+=3){var s=r[a+2];if(s==t||s==n){var u=it(i<0?e.line:e.rest[i]),d=r[a]+o;return(o<0||s!=t)&&(d=r[a+(o?1:0)]),lt(u,d)}}}var d=u(a,s,n);if(d)return il(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0))return il(lt(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=u(h,h.firstChild,-1))return il(lt(d.line,d.ch+m),i);m+=h.textContent.length}}tl.prototype.init=function(e){var t=this,n=this,o=n.cm,i=n.div=e.lineDiv;function r(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(r(e)&&!ke(o,e)){if(o.somethingSelected())Ws({lineWise:!1,text:o.getSelections()}),"cut"==e.type&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var t=Zs(o);Ws({lineWise:!0,text:t.text}),"cut"==e.type&&o.operation((function(){o.setSelections(t.ranges,0,U),o.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Hs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Ys(),l=s.firstChild;o.display.lineSpace.insertBefore(s,o.display.lineSpace.firstChild),l.value=Hs.text.join("\n");var c=P(i.ownerDocument);N(l),setTimeout((function(){o.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Js(i,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize),ve(i,"paste",(function(e){!r(e)||ke(o,e)||Ks(e,o)||s<=11&&setTimeout(Ni(o,(function(){return t.updateFromDOM()})),20)})),ve(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(i,"touchstart",(function(){return n.forceCompositionEnd()})),ve(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(i,"copy",a),ve(i,"cut",a)},tl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},tl.prototype.prepareSelection=function(){var e=Go(this.cm,!1);return e.focus=P(this.div.ownerDocument)==this.div,e},tl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),i=o.from(),r=o.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||r.line<t.display.viewFrom)e.removeAllRanges();else{var a=al(t,e.anchorNode,e.anchorOffset),s=al(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ct(pt(a,s),i)||0!=ct(ft(a,s),r)){var l=t.display.view,c=i.line>=t.display.viewFrom&&nl(t,i)||{node:l[0].measure.map[2],offset:0},u=r.line<t.display.viewTo&&nl(t,r);if(!u){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=T(c.node,c.offset,u.offset,u.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},tl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},tl.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},tl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return O(this.div,t)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&P(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Di(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},tl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&ol(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=al(t,e.anchorNode,e.anchorOffset),o=al(t,e.focusNode,e.focusOffset);n&&o&&Di(t,(function(){Wr(t.doc,dr(n,o),U),(n.bad||o.bad)&&(t.curOp.selectionChanged=!0)}))}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,o=this.cm,i=o.display,r=o.doc.sel.primary(),a=r.from(),s=r.to();if(0==a.ch&&a.line>o.firstLine()&&(a=lt(a.line-1,et(o.doc,a.line-1).length)),s.ch==et(o.doc,s.line).text.length&&s.line<o.lastLine()&&(s=lt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Ro(o,a.line))?(t=it(i.view[0].line),n=i.view[0].node):(t=it(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Ro(o,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=it(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=o.doc.splitLines(rl(o,n,c,t,l)),f=tt(o.doc,lt(t,0),lt(l,et(o.doc,l).text.length));d.length>1&&f.length>1;)if(Q(d)==Q(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var b=Q(d),y=Q(f),w=Math.min(b.length-(1==d.length?p:0),y.length-(1==f.length?p:0));h<w&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)p--,h++;d[d.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var k=lt(t,p),x=lt(l,f.length?Q(f).length-h:0);return d.length>1||d[0]||ct(k,x)?(sa(o.doc,d,k,x,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},tl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Di(this.cm,(function(){return qo(e.cm)}))},tl.prototype.setUneditable=function(e){e.contentEditable="false"},tl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ni(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var ll=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=P(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function o(){e.value=s.getValue()}var i;if(e.form&&(ve(e.form,"submit",o),!t.leaveSubmitMethodAlone)){var r=e.form;i=r.submit;try{var a=r.submit=function(){o(),r.submit=i,r.submit(),r.submit=a}}catch(e){}}t.finishInit=function(n){n.save=o,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,o(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",o),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function ul(e){e.off=ye,e.on=ve,e.wheelEventPixels=ar,e.Doc=Ta,e.splitLines=je,e.countColumn=q,e.findColumn=Z,e.isWordChar=ie,e.Pass=W,e.signal=we,e.Line=fn,e.changeEnd=fr,e.scrollbarModel=_i,e.Pos=lt,e.cmpPos=ct,e.modes=Be,e.mimeModes=ze,e.resolveMode=Ue,e.getMode=Ke,e.modeExtensions=Ge,e.extendMode=Ze,e.copyState=Je,e.startState=Qe,e.innerMode=Ye,e.commands=es,e.keyMap=qa,e.keyName=Ka,e.isModifierKey=Wa,e.lookupKey=Ha,e.normalizeKeyMap=za,e.StringStream=Xe,e.SharedTextMarker=wa,e.TextMarker=ba,e.LineWidget=ha,e.e_preventDefault=Se,e.e_stopPropagation=Te,e.e_stop=Ee,e.addClass=L,e.contains=O,e.rmClass=$,e.keyNames=ja}ll.prototype.init=function(e){var t=this,n=this,o=this.cm;this.createField(e);var i=this.textarea;function r(e){if(!ke(o,e)){if(o.somethingSelected())Ws({lineWise:!1,text:o.getSelections()});else{if(!o.options.lineWiseCopyCut)return;var t=Zs(o);Ws({lineWise:!0,text:t.text}),"cut"==e.type?o.setSelections(t.ranges,null,U):(n.prevInput="",i.value=t.text.join("\n"),N(i))}"cut"==e.type&&(o.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ve(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ve(i,"paste",(function(e){ke(o,e)||Ks(e,o)||(o.state.pasteIncoming=+new Date,n.fastPoll())})),ve(i,"cut",r),ve(i,"copy",r),ve(e.scroller,"paste",(function(t){if(!Kn(e,t)&&!ke(o,t)){if(!i.dispatchEvent)return o.state.pasteIncoming=+new Date,void n.focus();var r=new Event("paste");r.clipboardData=t.clipboardData,i.dispatchEvent(r)}})),ve(e.lineSpace,"selectstart",(function(t){Kn(e,t)||Se(t)})),ve(i,"compositionstart",(function(){var e=o.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:o.markText(e,o.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ll.prototype.createField=function(e){this.wrapper=Ys(),this.textarea=this.wrapper.firstChild},ll.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ll.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,o=Go(e);if(e.options.moveInputWithCursor){var i=Co(e,n.sel.primary().head,"div"),r=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-r.top)),o.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-r.left))}return o},ll.prototype.showSelection=function(e){var t=this.cm.display;I(t.cursorDiv,e.cursors),I(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ll.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ll.prototype.getField=function(){return this.textarea},ll.prototype.supportsTouch=function(){return!1},ll.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||P(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ll.prototype.blur=function(){this.textarea.blur()},ll.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ll.prototype.receivedFocus=function(){this.slowPoll()},ll.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ll.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ll.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,o=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ve(n)&&!o&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==o&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var r=i.charCodeAt(0);if(8203!=r||o||(o=""),8666==r)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(o.length,i.length);l<c&&o.charCodeAt(l)==i.charCodeAt(l);)++l;return Di(t,(function(){Us(t,i.slice(l),o.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ll.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ll.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ll.prototype.onContextMenu=function(e){var t=this,n=t.cm,o=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var r=Fo(n,e),c=o.scroller.scrollTop;if(r&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(r)&&Ni(n,Wr)(n.doc,dr(r),U);var u,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),o.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),o.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,o.selForContextMenu=n.doc.sel,clearTimeout(o.detectingSelectAll),a&&s>=9&&g(),_){Ee(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ve(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),r=""+(e?i.value:"");i.value="⇚",i.value=r,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=r.length,o.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,r=function(){o.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Ni(n,Xr)(n):e++<10?o.detectingSelectAll=setTimeout(r,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(r,200)}}},ll.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ll.prototype.setUneditable=function(){},ll.prototype.needsContentAttribute=!1,js(Rs),Qs(Rs);var dl="iter insert remove copy getEditor constructor".split(" ");for(var fl in Ta.prototype)Ta.prototype.hasOwnProperty(fl)&&z(dl,fl)<0&&(Rs.prototype[fl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ta.prototype[fl]));return _e(Ta),Rs.inputStyles={textarea:ll,contenteditable:tl},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),He.apply(this,arguments)},Rs.defineMIME=We,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){Ta.prototype[e]=t},Rs.fromTextArea=cl,ul(Rs),Rs.version="5.65.9",Rs}()},9762:function(e,t,n){!function(e){"use strict";function t(e,t,n,o,i,r){this.indented=e,this.column=t,this.type=n,this.info=o,this.align=i,this.prev=r}function n(e,n,o,i){var r=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=o&&(r=e.context.indented),e.context=new t(r,n,o,i,null,e.context)}function o(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function r(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),o=0;o<n.length;++o)t[n[o]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var c,u,d=a.indentUnit,f=l.statementIndentUnit||d,p=l.dontAlignCalls,h=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},b=l.defKeywords||{},y=l.atoms||{},w=l.hooks||{},k=l.multiLineStrings,x=!1!==l.indentStatements,C=!1!==l.indentSwitch,_=l.namespaceSeparator,S=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,T=l.numberStart||/[\d\.]/,$=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,E=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,I=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,M=l.isReservedIdentifier||!1;function A(e,t){var n=e.next();if(w[n]){var o=w[n](e,t);if(!1!==o)return o}if('"'==n||"'"==n)return t.tokenize=O(n),t.tokenize(e,t);if(T.test(n)){if(e.backUp(1),e.match($))return"number";e.next()}if(S.test(n))return c=n,null;if("/"==n){if(e.eat("*"))return t.tokenize=P,P(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(E.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(E););return"operator"}if(e.eatWhile(I),_)for(;e.match(_);)e.eatWhile(I);var i=e.current();return s(h,i)?(s(v,i)&&(c="newstatement"),s(b,i)&&(u=!0),"keyword"):s(m,i)?"type":s(g,i)||M&&M(i)?(s(v,i)&&(c="newstatement"),"builtin"):s(y,i)?"atom":"variable"}function O(e){return function(t,n){for(var o,i=!1,r=!1;null!=(o=t.next());){if(o==e&&!i){r=!0;break}i=!i&&"\\"==o}return(r||!i&&!k)&&(n.tokenize=null),"string"}}function P(e,t){for(var n,o=!1;n=e.next();){if("/"==n&&o){t.tokenize=null;break}o="*"==n}return"comment"}function L(e,t){l.typeFirstDefinitions&&e.eol()&&r(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return L(e,t),null;c=u=null;var s=(t.tokenize||A)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)o(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){for(;"statement"==a.type;)a=o(t);for("}"==a.type&&(a=o(t));"statement"==a.type;)a=o(t)}else c==a.type?o(t):x&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&r(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),w.token){var d=w.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=u?"def":s||c,L(e,t),s},indent:function(t,n){if(t.tokenize!=A&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var o=t.context,i=n&&n.charAt(0),r=i==o.type;if("statement"==o.type&&"}"==i&&(o=o.prev),l.dontIndentStatements)for(;"statement"==o.type&&l.dontIndentStatements.test(o.info);)o=o.prev;if(w.indent){var a=w.indent(t,o,n,d);if("number"==typeof a)return a}var s=o.prev&&"switch"==o.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=o.type&&"}"!=o.type;)o=o.prev;return o.indented}return"statement"==o.type?o.indented+("{"==i?0:f):!o.align||p&&")"==o.type?")"!=o.type||r?o.indented+(r?0:d)+(r||!s||/^(?:case|default)\b/.test(n)?0:d):o.indented+f:o.column+(r?0:1)},electricInput:C?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",u="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),p=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(p,e)}var g="case do else for if switch while struct enum union",v="struct enum union";function b(e,t){if(!t.startOfLine)return!1;for(var n,o=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){o=b;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=o,"meta"}function y(e,t){return"type"==t.prevToken&&"type"}function w(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function k(e){return e.eatWhile(/[\w\.']/),"number"}function x(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=S,S(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function C(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function _(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function S(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function T(t,n){"string"==typeof t&&(t=[t]);var o=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&o.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),o.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],o));for(var r=0;r<t.length;++r)e.defineMIME(t[r],n)}function $(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function E(e){return function(t,n){for(var o;o=t.next();){if("*"==o&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=E(e-1),n.tokenize(t,n)}if("/"==o&&t.eat("*"))return n.tokenize=E(e+1),n.tokenize(t,n)}return"comment"}}function I(e){return function(t,n){for(var o,i=!1,r=!1;!t.eol();){if(!e&&!i&&t.match('"')){r=!0;break}if(e&&t.match('"""')){r=!0;break}o=t.next(),!i&&"$"==o&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==o&&!e}return!r&&e||(n.tokenize=null),"string"}}T(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:h,blockKeywords:a(g),defKeywords:a(v),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:w,hooks:{"#":b,"*":y},modeProps:{fold:["brace","include"]}}),T(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+c),types:h,blockKeywords:a(g+" class try catch"),defKeywords:a(v+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:w,hooks:{"#":b,"*":y,u:x,U:x,L:x,R:x,0:k,1:k,2:k,3:k,4:k,5:k,6:k,7:k,8:k,9:k,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&C(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),T("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=$,t.tokenize(e,t))}},modeProps:{fold:["brace","import"]}}),T("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=_,_(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),T("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=$,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var o=n.context;return!("}"!=o.type||!o.align||!e.eat(">"))&&(n.context=new t(o.indented,o.column,o.type,o.info,null,o.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=E(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),T("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=I(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=E(1),t.tokenize(e,t))},indent:function(e,t,n,o){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*o+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:o):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),T(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":b},modeProps:{fold:["brace","include"]}}),T("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":b},modeProps:{fold:["brace","include"]}}),T("text/x-objectivec",{name:"clike",keywords:a(l+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(v+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":b,"*":y},modeProps:{fold:["brace","include"]}}),T("text/x-objectivec++",{name:"clike",keywords:a(l+" "+u+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(v+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":b,"*":y,u:x,U:x,L:x,R:x,0:k,1:k,2:k,3:k,4:k,5:k,6:k,7:k,8:k,9:k,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&C(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),T("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":b},modeProps:{fold:["brace","include"]}});var M=null;function A(e){return function(t,n){for(var o,i=!1,r=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){r=!0;break}if(!i&&t.match("``")){M=A(e),r=!0;break}o=t.next(),i="single"==e&&!i&&"\\"==o}return r&&(n.tokenize=null),"string"}}T("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=A(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!M||!e.match("`"))&&(t.tokenize=M,M=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(4631))},6629:function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var o=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,r,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},d=n.mediaValueKeywords||{},f=n.propertyKeywords||{},p=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},b=n.allowNested,y=n.lineComment,w=!0===n.supportsAtComponent,k=!1!==t.highlightNonStandardPropertyKeywords;function x(e,t){return i=t,e}function C(e,t){var n=e.next();if(s[n]){var o=s[n](e,t);if(!1!==o)return o}return"@"==n?(e.eatWhile(/[\w\\\-]/),x("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?x(null,"compare"):'"'==n||"'"==n?(t.tokenize=_(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==n?(e.match(/^\s*\w*/),x("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),x("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?x(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=S),x("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function _(e){return function(t,n){for(var o,i=!1;null!=(o=t.next());){if(o==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==o}return(o==e||!i&&")"!=e)&&(n.tokenize=null),x("string","string")}}function S(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=_(")"),x(null,"(")}function T(e,t,n){this.type=e,this.indent=t,this.prev=n}function $(e,t,n,o){return e.context=new T(n,t.indentation()+(!1===o?0:a),e.context),n}function E(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function I(e,t,n){return O[n.context.type](e,t,n)}function M(e,t,n,o){for(var i=o||1;i>0;i--)n.context=n.context.prev;return I(e,t,n)}function A(e){var t=e.current().toLowerCase();r=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var O={top:function(e,t,n){if("{"==e)return $(n,t,"block");if("}"==e&&n.context.prev)return E(n);if(w&&/@component/i.test(e))return $(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return $(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return $(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return $(n,t,"at");if("hash"==e)r="builtin";else if("word"==e)r="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return $(n,t,"interpolation");if(":"==e)return"pseudo";if(b&&"("==e)return $(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var o=t.current().toLowerCase();return f.hasOwnProperty(o)?(r="property","maybeprop"):p.hasOwnProperty(o)?(r=k?"string-2":"property","maybeprop"):b?(r=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(r+=" error","maybeprop")}return"meta"==e?"block":b||"hash"!=e&&"qualifier"!=e?O.top(e,t,n):(r="error","block")},maybeprop:function(e,t,n){return":"==e?$(n,t,"prop"):I(e,t,n)},prop:function(e,t,n){if(";"==e)return E(n);if("{"==e&&b)return $(n,t,"propBlock");if("}"==e||"{"==e)return M(e,t,n);if("("==e)return $(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)A(t);else if("interpolation"==e)return $(n,t,"interpolation")}else r+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?E(n):"word"==e?(r="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?M(e,t,n):")"==e?E(n):"("==e?$(n,t,"parens"):"interpolation"==e?$(n,t,"interpolation"):("word"==e&&A(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(r="variable-3",n.context.type):I(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(r="tag",n.context.type):O.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return $(n,t,"atBlock_parens");if("}"==e||";"==e)return M(e,t,n);if("{"==e)return E(n)&&$(n,t,b?"block":"top");if("interpolation"==e)return $(n,t,"interpolation");if("word"==e){var o=t.current().toLowerCase();r="only"==o||"not"==o||"and"==o||"or"==o?"keyword":c.hasOwnProperty(o)?"attribute":u.hasOwnProperty(o)?"property":d.hasOwnProperty(o)?"keyword":f.hasOwnProperty(o)?"property":p.hasOwnProperty(o)?k?"string-2":"property":v.hasOwnProperty(o)?"atom":g.hasOwnProperty(o)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?M(e,t,n):"{"==e?E(n)&&$(n,t,b?"block":"top",!1):("word"==e&&(r="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?E(n):"{"==e||"}"==e?M(e,t,n,2):O.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?$(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(r="variable","restricted_atBlock_before"):I(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,E(n)):"word"==e?(r="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(r="variable","keyframes"):"{"==e?$(n,t,"top"):I(e,t,n)},at:function(e,t,n){return";"==e?E(n):"{"==e||"}"==e?M(e,t,n):("word"==e?r="tag":"hash"==e&&(r="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?E(n):"{"==e||";"==e?M(e,t,n):("word"==e?r="variable":"variable"!=e&&"("!=e&&")"!=e&&(r="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:o?"block":"top",stateArg:null,context:new T(o?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||C)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),r=n,"comment"!=i&&(t.state=O[t.state](i,e,t)),r},indent:function(e,t){var n=e.context,o=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=o&&")"!=o||(n=n.prev),n.prev&&("}"!=o||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=o||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=o||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],o=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],r=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],c=t(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(u),f=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(f),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["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","grey","green","greenyellow","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"],v=t(g),b=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],y=t(b),w=n.concat(i).concat(a).concat(l).concat(u).concat(f).concat(g).concat(b);function k(e,t){for(var n,o=!1;null!=(n=e.next());){if(o&&"/"==n){t.tokenize=null;break}o="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:o,mediaTypes:r,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:y,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=k,k(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:r,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:y,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=k,k(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:r,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:y,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=k,k(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:r,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=k,k(e,t))}},name:"css",helperType:"gss"})}(n(4631))},6531:function(e,t,n){!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(e,t,n){var o=e.current(),i=o.search(t);return i>-1?e.backUp(o.length-i):o.match(/<\/?$/)&&(e.backUp(o.length),e.match(t,!1)||e.match(o)),n}var o={};function i(e){var t=o[e];return t||(o[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function r(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function s(e,t){for(var n in e)for(var o=t[n]||(t[n]=[]),i=e[n],r=i.length-1;r>=0;r--)o.unshift(i[r])}function l(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(!o[0]||o[1].test(r(t,o[0])))return o[2]}}e.defineMode("htmlmixed",(function(o,i){var r=e.getMode(o,{name:"xml",htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag,allowMissingTagName:i.allowMissingTagName}),c={},u=i&&i.tags,d=i&&i.scriptTypes;if(s(t,c),u&&s(u,c),d)for(var f=d.length-1;f>=0;f--)c.script.unshift(["type",d[f].matches,d[f].mode]);function p(t,i){var s,u=r.token(t,i.htmlState),d=/\btag\b/.test(u);if(d&&!/[<>\s\/]/.test(t.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&d&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var h=">"==t.current()&&l(c[f[1]],f[2]),m=e.getMode(o,h),g=a(f[1],!0),v=a(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=p,t.localState=t.localMode=null,null):n(e,v,t.localMode.token(e,t.localState))},i.localMode=m,i.localState=e.startState(m,r.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return u}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(r)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(r,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,o){return!t.localMode||/^\s*<\//.test(n)?r.indent(t.htmlState,n,o):t.localMode.indent?t.localMode.indent(t.localState,n,o):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||r}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(4631),n(9589),n(6876),n(6629))},6876:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var o,i,r=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=!1!==n.trackScope,u=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),o=e("keyword c"),i=e("keyword d"),r=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:o,void:o,throw:o,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:r,typeof:r,instanceof:r,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:o,export:e("export"),import:e("import"),extends:o,await:o}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,n=!1,o=!1;null!=(t=e.next());){if(!n){if("/"==t&&!o)return;"["==t?o=!0:o&&"]"==t&&(o=!1)}n=!n&&"\\"==t}}function g(e,t,n){return o=e,i=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==n&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("="==n&&e.eat(">"))return g("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==n)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):it(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==n)return t.tokenize=w,w(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),g("meta","meta");if("#"==n&&e.eatWhile(d))return g("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g("comment","comment");if(p.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?g("."):g("operator","operator",e.current());if(d.test(n)){e.eatWhile(d);var o=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(o)){var i=f[o];return g(i.type,i.style,o)}if("async"==o&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",o)}return g("variable","variable",o)}}function b(e){return function(t,n){var o,i=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=v,g("jsonld-keyword","meta");for(;null!=(o=t.next())&&(o!=e||i);)i=!i&&"\\"==o;return i||(n.tokenize=v),g("string","string")}}function y(e,t){for(var n,o=!1;n=e.next();){if("/"==n&&o){t.tokenize=v;break}o="*"==n}return g("comment","comment")}function w(e,t){for(var n,o=!1;null!=(n=e.next());){if(!o&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=v;break}o=!o&&"\\"==n}return g("quasi","string-2",e.current())}var k="([{}])";function x(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var o=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));o&&(n=o.index)}for(var i=0,r=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=k.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(r=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))r=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(r&&!i){++a;break}}r&&!i&&(t.fatArrowAt=a)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function _(e,t,n,o,i,r){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=r,null!=o&&(this.align=o)}function S(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var o=e.context;o;o=o.prev)for(n=o.vars;n;n=n.next)if(n.name==t)return!0}function T(e,t,n,o,i){var r=e.cc;for($.state=e,$.stream=i,$.marked=null,$.cc=r,$.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((r.length?r.pop():l?W:z)(n,o)){for(;r.length&&r[r.length-1].lex;)r.pop()();return $.marked?$.marked:"variable"==n&&S(e,o)?"variable-2":t}}var $={state:null,column:null,marked:null,cc:null};function E(){for(var e=arguments.length-1;e>=0;e--)$.cc.push(arguments[e])}function I(){return E.apply(null,arguments),!0}function M(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function A(e){var t=$.state;if($.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var o=O(e,t.context);if(null!=o)return void(t.context=o)}else if(!M(e,t.localVars))return void(t.localVars=new D(e,t.localVars));n.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new D(e,t.globalVars))}}function O(e,t){if(t){if(t.block){var n=O(e,t.prev);return n?n==t.prev?t:new L(n,t.vars,!0):null}return M(e,t.vars)?t:new L(t.prev,new D(e,t.vars),!1)}return null}function P(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function L(e,t,n){this.prev=e,this.vars=t,this.block=n}function D(e,t){this.name=e,this.next=t}var N=new D("this",new D("arguments",null));function j(){$.state.context=new L($.state.context,$.state.localVars,!1),$.state.localVars=N}function V(){$.state.context=new L($.state.context,$.state.localVars,!0),$.state.localVars=null}function F(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}function R(e,t){var n=function(){var n=$.state,o=n.indented;if("stat"==n.lexical.type)o=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)o=i.indented;n.lexical=new _(o,$.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function q(){var e=$.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){function t(n){return n==e?I():";"==e||"}"==n||")"==n||"]"==n?E():I(t)}return t}function z(e,t){return"var"==e?I(R("vardef",t),Ee,B(";"),q):"keyword a"==e?I(R("form"),K,z,q):"keyword b"==e?I(R("form"),z,q):"keyword d"==e?$.stream.match(/^\s*$/,!1)?I():I(R("stat"),Z,B(";"),q):"debugger"==e?I(B(";")):"{"==e?I(R("}"),V,fe,q,F):";"==e?I():"if"==e?("else"==$.state.lexical.info&&$.state.cc[$.state.cc.length-1]==q&&$.state.cc.pop()(),I(R("form"),K,z,q,Le)):"function"==e?I(Ve):"for"==e?I(R("form"),V,De,z,F,q):"class"==e||u&&"interface"==t?($.marked="keyword",I(R("form","class"==e?e:t),ze,q)):"variable"==e?u&&"declare"==t?($.marked="keyword",I(z)):u&&("module"==t||"enum"==t||"type"==t)&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword","enum"==t?I(tt):"type"==t?I(Re,B("operator"),ve,B(";")):I(R("form"),Ie,B("{"),R("}"),fe,q,q)):u&&"namespace"==t?($.marked="keyword",I(R("form"),W,z,q)):u&&"abstract"==t?($.marked="keyword",I(z)):I(R("stat"),re):"switch"==e?I(R("form"),K,B("{"),R("}","switch"),V,fe,q,q,F):"case"==e?I(W,B(":")):"default"==e?I(B(":")):"catch"==e?I(R("form"),j,H,z,q,F):"export"==e?I(R("stat"),Ke,q):"import"==e?I(R("stat"),Ze,q):"async"==e?I(z):"@"==t?I(W,z):E(R("stat"),W,B(";"),q)}function H(e){if("("==e)return I(qe,B(")"))}function W(e,t){return G(e,t,!1)}function U(e,t){return G(e,t,!0)}function K(e){return"("!=e?E():I(R(")"),Z,B(")"),q)}function G(e,t,n){if($.state.fatArrowAt==$.stream.start){var o=n?te:ee;if("("==e)return I(j,R(")"),ue(qe,")"),q,B("=>"),o,F);if("variable"==e)return E(j,Ie,B("=>"),o,F)}var i=n?Y:J;return C.hasOwnProperty(e)?I(i):"function"==e?I(Ve,i):"class"==e||u&&"interface"==t?($.marked="keyword",I(R("form"),Be,q)):"keyword c"==e||"async"==e?I(n?U:W):"("==e?I(R(")"),Z,B(")"),q,i):"operator"==e||"spread"==e?I(n?U:W):"["==e?I(R("]"),et,q,i):"{"==e?de(se,"}",null,i):"quasi"==e?E(Q,i):"new"==e?I(ne(n)):I()}function Z(e){return e.match(/[;\}\)\],]/)?E():E(W)}function J(e,t){return","==e?I(Z):Y(e,t,!1)}function Y(e,t,n){var o=0==n?J:Y,i=0==n?W:U;return"=>"==e?I(j,n?te:ee,F):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?I(o):u&&"<"==t&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?I(R(">"),ue(ve,">"),q,o):"?"==t?I(W,B(":"),i):I(i):"quasi"==e?E(Q,o):";"!=e?"("==e?de(U,")","call",o):"."==e?I(ae,o):"["==e?I(R("]"),Z,B("]"),q,o):u&&"as"==t?($.marked="keyword",I(ve,o)):"regexp"==e?($.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),I(i)):void 0:void 0}function Q(e,t){return"quasi"!=e?E():"${"!=t.slice(t.length-2)?I(Q):I(Z,X)}function X(e){if("}"==e)return $.marked="string-2",$.state.tokenize=w,I(Q)}function ee(e){return x($.stream,$.state),E("{"==e?z:W)}function te(e){return x($.stream,$.state),E("{"==e?z:U)}function ne(e){return function(t){return"."==t?I(e?ie:oe):"variable"==t&&u?I(Se,e?Y:J):E(e?U:W)}}function oe(e,t){if("target"==t)return $.marked="keyword",I(J)}function ie(e,t){if("target"==t)return $.marked="keyword",I(Y)}function re(e){return":"==e?I(q,z):E(J,B(";"),q)}function ae(e){if("variable"==e)return $.marked="property",I()}function se(e,t){return"async"==e?($.marked="property",I(se)):"variable"==e||"keyword"==$.style?($.marked="property","get"==t||"set"==t?I(le):(u&&$.state.fatArrowAt==$.stream.start&&(n=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+n[0].length),I(ce))):"number"==e||"string"==e?($.marked=s?"property":$.style+" property",I(ce)):"jsonld-keyword"==e?I(ce):u&&P(t)?($.marked="keyword",I(se)):"["==e?I(W,pe,B("]"),ce):"spread"==e?I(U,ce):"*"==t?($.marked="keyword",I(se)):":"==e?E(ce):void 0;var n}function le(e){return"variable"!=e?E(ce):($.marked="property",I(Ve))}function ce(e){return":"==e?I(U):"("==e?E(Ve):void 0}function ue(e,t,n){function o(i,r){if(n?n.indexOf(i)>-1:","==i){var a=$.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),I((function(n,o){return n==t||o==t?E():E(e)}),o)}return i==t||r==t?I():n&&n.indexOf(";")>-1?E(e):I(B(t))}return function(n,i){return n==t||i==t?I():E(e,o)}}function de(e,t,n){for(var o=3;o<arguments.length;o++)$.cc.push(arguments[o]);return I(R(t,n),ue(e,t),q)}function fe(e){return"}"==e?I():E(z,fe)}function pe(e,t){if(u){if(":"==e)return I(ve);if("?"==t)return I(pe)}}function he(e,t){if(u&&(":"==e||"in"==t))return I(ve)}function me(e){if(u&&":"==e)return $.stream.match(/^\s*\w+\s+is\b/,!1)?I(W,ge,ve):I(ve)}function ge(e,t){if("is"==t)return $.marked="keyword",I()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?($.marked="keyword",I("typeof"==t?U:ve)):"variable"==e||"void"==t?($.marked="type",I(_e)):"|"==t||"&"==t?I(ve):"string"==e||"number"==e||"atom"==e?I(_e):"["==e?I(R("]"),ue(ve,"]",","),q,_e):"{"==e?I(R("}"),ye,q,_e):"("==e?I(ue(Ce,")"),be,_e):"<"==e?I(ue(ve,">"),ve):"quasi"==e?E(ke,_e):void 0}function be(e){if("=>"==e)return I(ve)}function ye(e){return e.match(/[\}\)\]]/)?I():","==e||";"==e?I(ye):E(we,ye)}function we(e,t){return"variable"==e||"keyword"==$.style?($.marked="property",I(we)):"?"==t||"number"==e||"string"==e?I(we):":"==e?I(ve):"["==e?I(B("variable"),he,B("]"),we):"("==e?E(Fe,we):e.match(/[;\}\)\],]/)?void 0:I()}function ke(e,t){return"quasi"!=e?E():"${"!=t.slice(t.length-2)?I(ke):I(ve,xe)}function xe(e){if("}"==e)return $.marked="string-2",$.state.tokenize=w,I(ke)}function Ce(e,t){return"variable"==e&&$.stream.match(/^\s*[?:]/,!1)||"?"==t?I(Ce):":"==e?I(ve):"spread"==e?I(Ce):E(ve)}function _e(e,t){return"<"==t?I(R(">"),ue(ve,">"),q,_e):"|"==t||"."==e||"&"==t?I(ve):"["==e?I(ve,B("]"),_e):"extends"==t||"implements"==t?($.marked="keyword",I(ve)):"?"==t?I(ve,B(":"),ve):void 0}function Se(e,t){if("<"==t)return I(R(">"),ue(ve,">"),q,_e)}function Te(){return E(ve,$e)}function $e(e,t){if("="==t)return I(ve)}function Ee(e,t){return"enum"==t?($.marked="keyword",I(tt)):E(Ie,pe,Oe,Pe)}function Ie(e,t){return u&&P(t)?($.marked="keyword",I(Ie)):"variable"==e?(A(t),I()):"spread"==e?I(Ie):"["==e?de(Ae,"]"):"{"==e?de(Me,"}"):void 0}function Me(e,t){return"variable"!=e||$.stream.match(/^\s*:/,!1)?("variable"==e&&($.marked="property"),"spread"==e?I(Ie):"}"==e?E():"["==e?I(W,B("]"),B(":"),Me):I(B(":"),Ie,Oe)):(A(t),I(Oe))}function Ae(){return E(Ie,Oe)}function Oe(e,t){if("="==t)return I(U)}function Pe(e){if(","==e)return I(Ee)}function Le(e,t){if("keyword b"==e&&"else"==t)return I(R("form","else"),z,q)}function De(e,t){return"await"==t?I(De):"("==e?I(R(")"),Ne,q):void 0}function Ne(e){return"var"==e?I(Ee,je):"variable"==e?I(je):E(je)}function je(e,t){return")"==e?I():";"==e?I(je):"in"==t||"of"==t?($.marked="keyword",I(W,je)):E(W,je)}function Ve(e,t){return"*"==t?($.marked="keyword",I(Ve)):"variable"==e?(A(t),I(Ve)):"("==e?I(j,R(")"),ue(qe,")"),q,me,z,F):u&&"<"==t?I(R(">"),ue(Te,">"),q,Ve):void 0}function Fe(e,t){return"*"==t?($.marked="keyword",I(Fe)):"variable"==e?(A(t),I(Fe)):"("==e?I(j,R(")"),ue(qe,")"),q,me,F):u&&"<"==t?I(R(">"),ue(Te,">"),q,Fe):void 0}function Re(e,t){return"keyword"==e||"variable"==e?($.marked="type",I(Re)):"<"==t?I(R(">"),ue(Te,">"),q):void 0}function qe(e,t){return"@"==t&&I(W,qe),"spread"==e?I(qe):u&&P(t)?($.marked="keyword",I(qe)):u&&"this"==e?I(pe,Oe):E(Ie,pe,Oe)}function Be(e,t){return"variable"==e?ze(e,t):He(e,t)}function ze(e,t){if("variable"==e)return A(t),I(He)}function He(e,t){return"<"==t?I(R(">"),ue(Te,">"),q,He):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&($.marked="keyword"),I(u?ve:W,He)):"{"==e?I(R("}"),We,q):void 0}function We(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&P(t))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?($.marked="keyword",I(We)):"variable"==e||"keyword"==$.style?($.marked="property",I(Ue,We)):"number"==e||"string"==e?I(Ue,We):"["==e?I(W,pe,B("]"),Ue,We):"*"==t?($.marked="keyword",I(We)):u&&"("==e?E(Fe,We):";"==e||","==e?I(We):"}"==e?I():"@"==t?I(W,We):void 0}function Ue(e,t){if("!"==t)return I(Ue);if("?"==t)return I(Ue);if(":"==e)return I(ve,Oe);if("="==t)return I(U);var n=$.state.lexical.prev;return E(n&&"interface"==n.info?Fe:Ve)}function Ke(e,t){return"*"==t?($.marked="keyword",I(Xe,B(";"))):"default"==t?($.marked="keyword",I(W,B(";"))):"{"==e?I(ue(Ge,"}"),Xe,B(";")):E(z)}function Ge(e,t){return"as"==t?($.marked="keyword",I(B("variable"))):"variable"==e?E(U,Ge):void 0}function Ze(e){return"string"==e?I():"("==e?E(W):"."==e?E(J):E(Je,Ye,Xe)}function Je(e,t){return"{"==e?de(Je,"}"):("variable"==e&&A(t),"*"==t&&($.marked="keyword"),I(Qe))}function Ye(e){if(","==e)return I(Je,Ye)}function Qe(e,t){if("as"==t)return $.marked="keyword",I(Je)}function Xe(e,t){if("from"==t)return $.marked="keyword",I(W)}function et(e){return"]"==e?I():E(ue(U,"]"))}function tt(){return E(R("form"),Ie,B("{"),R("}"),ue(nt,"}"),q,q)}function nt(){return E(Ie,Oe)}function ot(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return j.lex=V.lex=!0,F.lex=!0,q.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new _((e||0)-r,0,"block",!1),localVars:n.localVars,context:n.localVars&&new L(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),x(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==o?n:(t.lastType="operator"!=o||"++"!=i&&"--"!=i?o:"incdec",T(t,n,o,i,e))},indent:function(t,o){if(t.tokenize==y||t.tokenize==w)return e.Pass;if(t.tokenize!=v)return 0;var i,s=o&&o.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(o))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==q)l=l.prev;else if(u!=Le&&u!=F)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==J||i==Y)&&!/^[,\.=+\-*:?[\(]/.test(o));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+r:"stat"==d?l.indented+(ot(t,o)?a||r:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:r):l.indented+(/^(?:case|default)\b/.test(o)?r:2*r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:it,skipExpression:function(t){T(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},6702:function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),o=0;o<n.length;++o)t[n[o]]=!0;return t}function n(e,t,i){return 0==e.length?o(t):function(r,a){for(var s=e[0],l=0;l<s.length;l++)if(r.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=o(t,i),"string"}}function o(e,t){return function(n,o){return i(n,o,e,t)}}function i(e,t,o,i){if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],o,i)),e.match(/^->\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],o,i)),"variable-2";for(var r=!1;!e.eol()&&(r||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!r&&e.match(o)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}r="\\"==e.next()&&!r}return"string"}var r="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[r,a,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:t(r),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(a),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/^<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var r=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),r)return(t.tokStack||(t.tokStack=[])).push(r,0),t.tokenize=o(r,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=o('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&! --t.tokStack[t.tokStack.length-1]&&(t.tokenize=o(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var o=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,l);function r(t,n){var r=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),r)return r&&null==n.php.tokenize&&t.match("?>")?(n.curMode=o,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,o.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=o.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),c=l.search(/<\?/);return-1!=c&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-c)),a}return{startState:function(){var t=e.startState(o),r=n.startOpen?e.startState(i):null;return{html:t,php:r,curMode:n.startOpen?i:o,curState:n.startOpen?r:t,pending:null}},copyState:function(t){var n,r=t.html,a=e.copyState(o,r),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==o?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:r,indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?o.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",l)}(n(4631),n(6531),n(9762))},9589:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(o,i){var r,a,s=o.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var o=e.next();return"<"==o?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(r=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==o?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,r=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return r="equals",null;if("<"==n){t.tokenize=d,t.state=w,t.tagName=t.tagStart=null;var o=t.tokenize(e,t);return o?o+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=p(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(n,o){for(;!n.eol();){if(n.match(t)){o.tokenize=d;break}n.next()}return e}}function m(e){return function(t,n){for(var o;null!=(o=t.next());){if("<"==o)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==o){if(1==e){n.tokenize=d;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function b(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;b(e)}}function w(e,t,n){return"openTag"==e?(n.tagStart=t.column(),k):"closeTag"==e?x:w}function k(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",S):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",k)}function x(e,t,n){if("word"==e){var o=t.current();return n.context&&n.context.tagName!=o&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&b(n),n.context&&n.context.tagName==o||!1===l.matchClosing?(a="tag",C):(a="tag error",_)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",_)}function C(e,t,n){return"endTag"!=e?(a="error",C):(b(n),w)}function _(e,t,n){return a="error",C(e,t,n)}function S(e,t,n){if("word"==e)return a="attribute",T;if("endTag"==e||"selfcloseTag"==e){var o=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(o))?y(n,o):(y(n,o),n.context=new v(n,o,i==n.indented)),w}return a="error",S}function T(e,t,n){return"equals"==e?$:(l.allowMissing||(a="error"),S(e,t,n))}function $(e,t,n){return"string"==e?E:"word"==e&&l.allowUnquoted?(a="string",S):(a="error",S(e,t,n))}function E(e,t,n){return"string"==e?E:S(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;r=null;var n=t.tokenize(e,t);return(n||r)&&"comment"!=n&&(a=null,t.state=t.state(r||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,o){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var r=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(r&&r[1])for(;i;){if(i.tagName==r[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(i.tagName)))break;i=i.prev}else if(r)for(;i;){var a=l.contextGrabbers[g(i.tagName)];if(!a||!a.hasOwnProperty(g(r[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==$&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4631))},1895:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var o=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,r=t;i<r.length;i++){o(r[i])}return e})},7908:function(e,t){!function(e){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var t=function(){return t=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},t.apply(this,arguments)},n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},o={weekdays:{shorthand:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],longhand:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},firstDayOfWeek:6,rangeSeparator:" إلى ",weekAbbreviation:"Wk",scrollTitle:"قم بالتمرير للزيادة",toggleTitle:"اضغط للتبديل",amPM:["ص","م"],yearAriaLabel:"سنة",monthAriaLabel:"شهر",hourAriaLabel:"ساعة",minuteAriaLabel:"دقيقة",time_24hr:!1};n.l10ns.ar=o,n.l10ns;var i="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};i.l10ns.at=r,i.l10ns;var a="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},s={weekdays:{shorthand:["B.","B.e.","Ç.a.","Ç.","C.a.","C.","Ş."],longhand:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","İyn","İyl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmaq üçün sürüşdürün",toggleTitle:"Aç / Bağla",amPM:["GƏ","GS"],time_24hr:!0};a.l10ns.az=s,a.l10ns;var l="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},c={weekdays:{shorthand:["Нд","Пн","Аў","Ср","Чц","Пт","Сб"],longhand:["Нядзеля","Панядзелак","Аўторак","Серада","Чацвер","Пятніца","Субота"]},months:{shorthand:["Сту","Лют","Сак","Кра","Тра","Чэр","Ліп","Жні","Вер","Кас","Ліс","Сне"],longhand:["Студзень","Люты","Сакавік","Красавік","Травень","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Тыд.",scrollTitle:"Пракруціце для павелічэння",toggleTitle:"Націсніце для пераключэння",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};l.l10ns.be=c,l.l10ns;var u="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},d={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"]},time_24hr:!0};u.l10ns.bs=d,u.l10ns;var f="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},p={weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},months:{shorthand:["Яну","Фев","Март","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],longhand:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"]},time_24hr:!0,firstDayOfWeek:1};f.l10ns.bg=p,f.l10ns;var h="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},m={weekdays:{shorthand:["রবি","সোম","মঙ্গল","বুধ","বৃহস্পতি","শুক্র","শনি"],longhand:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"]},months:{shorthand:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগ","সেপ্টে","অক্টো","নভে","ডিসে"],longhand:["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]}};h.l10ns.bn=m,h.l10ns;var g="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},v={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Març","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:function(e){var t=e%100;if(t>3&&t<21)return"è";switch(t%10){case 1:case 3:return"r";case 2:return"n";case 4:return"t";default:return"è"}},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};g.l10ns.cat=g.l10ns.ca=v,g.l10ns;var b="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},y={weekdays:{shorthand:["یەکشەممە","دووشەممە","سێشەممە","چوارشەممە","پێنجشەممە","هەینی","شەممە"],longhand:["یەکشەممە","دووشەممە","سێشەممە","چوارشەممە","پێنجشەممە","هەینی","شەممە"]},months:{shorthand:["ڕێبەندان","ڕەشەمە","نەورۆز","گوڵان","جۆزەردان","پووشپەڕ","گەلاوێژ","خەرمانان","ڕەزبەر","گەڵاڕێزان","سەرماوەز","بەفرانبار"],longhand:["ڕێبەندان","ڕەشەمە","نەورۆز","گوڵان","جۆزەردان","پووشپەڕ","گەلاوێژ","خەرمانان","ڕەزبەر","گەڵاڕێزان","سەرماوەز","بەفرانبار"]},firstDayOfWeek:6,ordinal:function(){return""}};b.l10ns.ckb=y,b.l10ns;var w="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},k={weekdays:{shorthand:["Ne","Po","Út","St","Čt","Pá","So"],longhand:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},months:{shorthand:["Led","Ún","Bře","Dub","Kvě","Čer","Čvc","Srp","Zář","Říj","Lis","Pro"],longhand:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"Týd.",scrollTitle:"Rolujte pro změnu",toggleTitle:"Přepnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};w.l10ns.cs=k,w.l10ns;var x="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},C={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:function(e){return 1===e?"af":2===e?"ail":3===e||4===e?"ydd":5===e||6===e?"ed":e>=7&&e<=10||12==e||15==e||18==e||20==e?"fed":11==e||13==e||14==e||16==e||17==e||19==e?"eg":e>=21&&e<=39?"ain":""},time_24hr:!0};x.l10ns.cy=C,x.l10ns;var _="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},S={weekdays:{shorthand:["søn","man","tir","ons","tors","fre","lør"],longhand:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};_.l10ns.da=S,_.l10ns;var T="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},$={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};T.l10ns.de=$,T.l10ns;var E={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},I="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},M={firstDayOfWeek:1,rangeSeparator:" ĝis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por ŝalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","Ĵaŭ","Ven","Sab"],longhand:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aŭg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},ordinal:function(){return"-a"},time_24hr:!0};I.l10ns.eo=M,I.l10ns;var A="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},O={weekdays:{shorthand:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],longhand:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function(){return"º"},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};A.l10ns.es=O,A.l10ns;var P="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},L={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},months:{shorthand:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function(){return"."},weekAbbreviation:"Näd",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Klõpsa, et vahetada",time_24hr:!0};P.l10ns.et=L,P.l10ns;var D="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},N={weekdays:{shorthand:["یک","دو","سه","چهار","پنج","جمعه","شنبه"],longhand:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنچشنبه","جمعه","شنبه"]},months:{shorthand:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],longhand:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"]},firstDayOfWeek:6,ordinal:function(){return""}};D.l10ns.fa=N,D.l10ns;var j="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},V={firstDayOfWeek:1,weekdays:{shorthand:["su","ma","ti","ke","to","pe","la"],longhand:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},months:{shorthand:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],longhand:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},ordinal:function(){return"."},time_24hr:!0};j.l10ns.fi=V,j.l10ns;var F="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},R={weekdays:{shorthand:["Sun","Mán","Týs","Mik","Hós","Frí","Ley"],longhand:["Sunnudagur","Mánadagur","Týsdagur","Mikudagur","Hósdagur","Fríggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apríl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Trýst fyri at skifta",yearAriaLabel:"Ár",time_24hr:!0};F.l10ns.fo=R,F.l10ns;var q="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},B={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return e>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};q.l10ns.fr=B,q.l10ns;var z="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},H={weekdays:{shorthand:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],longhand:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},months:{shorthand:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],longhand:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},firstDayOfWeek:1,ordinal:function(){return""},weekAbbreviation:"Εβδ",rangeSeparator:" έως ",scrollTitle:"Μετακυλήστε για προσαύξηση",toggleTitle:"Κάντε κλικ για αλλαγή",amPM:["ΠΜ","ΜΜ"],yearAriaLabel:"χρόνος",monthAriaLabel:"μήνας",hourAriaLabel:"ώρα",minuteAriaLabel:"λεπτό"};z.l10ns.gr=H,z.l10ns;var W="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},U={weekdays:{shorthand:["א","ב","ג","ד","ה","ו","ש"],longhand:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"]},months:{shorthand:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],longhand:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},rangeSeparator:" אל ",time_24hr:!0};W.l10ns.he=U,W.l10ns;var K="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},G={weekdays:{shorthand:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],longhand:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},months:{shorthand:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],longhand:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"]}};K.l10ns.hi=G,K.l10ns;var Z="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},J={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]},time_24hr:!0};Z.l10ns.hr=J,Z.l10ns;var Y="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Q={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"]},months:{shorthand:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],longhand:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"]},ordinal:function(){return"."},weekAbbreviation:"Hét",scrollTitle:"Görgessen",toggleTitle:"Kattintson a váltáshoz",rangeSeparator:" - ",time_24hr:!0};Y.l10ns.hu=Q,Y.l10ns;var X="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ee={weekdays:{shorthand:["Կիր","Երկ","Երք","Չրք","Հնգ","Ուրբ","Շբթ"],longhand:["Կիրակի","Եկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},months:{shorthand:["Հնվ","Փտր","Մար","Ապր","Մայ","Հնս","Հլս","Օգս","Սեպ","Հոկ","Նմբ","Դեկ"],longhand:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"ՇԲՏ",scrollTitle:"Ոլորեք՝ մեծացնելու համար",toggleTitle:"Սեղմեք՝ փոխելու համար",amPM:["ՄԿ","ԿՀ"],yearAriaLabel:"Տարի",monthAriaLabel:"Ամիս",hourAriaLabel:"Ժամ",minuteAriaLabel:"Րոպե",time_24hr:!0};X.l10ns.hy=ee,X.l10ns;var te="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ne={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0,rangeSeparator:" - "};te.l10ns.id=ne,te.l10ns;var oe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ie={weekdays:{shorthand:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],longhand:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],longhand:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"Ár",time_24hr:!0};oe.l10ns.is=ie,oe.l10ns;var re="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ae={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"°"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};re.l10ns.it=ae,re.l10ns;var se="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},le={weekdays:{shorthand:["日","月","火","水","木","金","土"],longhand:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},months:{shorthand:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],longhand:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},time_24hr:!0,rangeSeparator:" から ",monthAriaLabel:"月",amPM:["午前","午後"],yearAriaLabel:"年",hourAriaLabel:"時間",minuteAriaLabel:"分"};se.l10ns.ja=le,se.l10ns;var ce="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ue={weekdays:{shorthand:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],longhand:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},months:{shorthand:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],longhand:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"კვ.",scrollTitle:"დასქროლეთ გასადიდებლად",toggleTitle:"დააკლიკეთ გადართვისთვის",amPM:["AM","PM"],yearAriaLabel:"წელი",time_24hr:!0};ce.l10ns.ka=ue,ce.l10ns;var de="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},fe={weekdays:{shorthand:["일","월","화","수","목","금","토"],longhand:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},months:{shorthand:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],longhand:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},ordinal:function(){return"일"},rangeSeparator:" ~ ",amPM:["오전","오후"]};de.l10ns.ko=fe,de.l10ns;var pe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},he={weekdays:{shorthand:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស.","សុក្រ","សៅរ៍"],longhand:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},months:{shorthand:["មករា","កុម្ភះ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],longhand:["មករា","កុម្ភះ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},ordinal:function(){return""},firstDayOfWeek:1,rangeSeparator:" ដល់ ",weekAbbreviation:"សប្តាហ៍",scrollTitle:"រំកិលដើម្បីបង្កើន",toggleTitle:"ចុចដើម្បីផ្លាស់ប្ដូរ",yearAriaLabel:"ឆ្នាំ",time_24hr:!0};pe.l10ns.km=he,pe.l10ns;var me="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ge={weekdays:{shorthand:["Жс","Дс","Сc","Ср","Бс","Жм","Сб"],longhand:["Жексенбi","Дүйсенбi","Сейсенбi","Сәрсенбi","Бейсенбi","Жұма","Сенбi"]},months:{shorthand:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шiл","Там","Қыр","Қаз","Қар","Жел"],longhand:["Қаңтар","Ақпан","Наурыз","Сәуiр","Мамыр","Маусым","Шiлде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Апта",scrollTitle:"Үлкейту үшін айналдырыңыз",toggleTitle:"Ауыстыру үшін басыңыз",amPM:["ТД","ТК"],yearAriaLabel:"Жыл"};me.l10ns.kz=ge,me.l10ns;var ve="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},be={weekdays:{shorthand:["S","Pr","A","T","K","Pn","Š"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function(){return"-a"},rangeSeparator:" iki ",weekAbbreviation:"Sav",scrollTitle:"Keisti laiką pelės rateliu",toggleTitle:"Perjungti laiko formatą",time_24hr:!0};ve.l10ns.lt=be,ve.l10ns;var ye="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},we={firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" līdz ",time_24hr:!0};ye.l10ns.lv=we,ye.l10ns;var ke="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},xe={weekdays:{shorthand:["Не","По","Вт","Ср","Че","Пе","Са"],longhand:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},months:{shorthand:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],longhand:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"]},firstDayOfWeek:1,weekAbbreviation:"Нед.",rangeSeparator:" до ",time_24hr:!0};ke.l10ns.mk=xe,ke.l10ns;var Ce="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},_e={firstDayOfWeek:1,weekdays:{shorthand:["Да","Мя","Лх","Пү","Ба","Бя","Ня"],longhand:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},months:{shorthand:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],longhand:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долдугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арванхоёрдугаар сар"]},rangeSeparator:"-с ",time_24hr:!0};Ce.l10ns.mn=_e,Ce.l10ns;var Se="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Te={weekdays:{shorthand:["Aha","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:function(){return""}};Se.l10ns;var $e="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ee={weekdays:{shorthand:["နွေ","လာ","ဂါ","ဟူး","ကြာ","သော","နေ"],longhand:["တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး","ကြာသပတေး","သောကြာ","စနေ"]},months:{shorthand:["ဇန်","ဖေ","မတ်","ပြီ","မေ","ဇွန်","လိုင်","သြ","စက်","အောက်","နို","ဒီ"],longhand:["ဇန်နဝါရီ","ဖေဖော်ဝါရီ","မတ်","ဧပြီ","မေ","ဇွန်","ဇူလိုင်","သြဂုတ်","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0};$e.l10ns.my=Ee,$e.l10ns;var Ie="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Me={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:function(e){return 1===e||8===e||e>=20?"ste":"de"}};Ie.l10ns.nl=Me,Ie.l10ns;var Ae="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Oe={weekdays:{shorthand:["Sø.","Må.","Ty.","On.","To.","Fr.","La."],longhand:["Søndag","Måndag","Tysdag","Onsdag","Torsdag","Fredag","Laurdag"]},months:{shorthand:["Jan","Feb","Mars","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Veke",scrollTitle:"Scroll for å endre",toggleTitle:"Klikk for å veksle",time_24hr:!0,ordinal:function(){return"."}};Ae.l10ns.nn=Oe,Ae.l10ns;var Pe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Le={weekdays:{shorthand:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],longhand:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for å endre",toggleTitle:"Klikk for å veksle",time_24hr:!0,ordinal:function(){return"."}};Pe.l10ns.no=Le,Pe.l10ns;var De="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ne={weekdays:{shorthand:["ਐਤ","ਸੋਮ","ਮੰਗਲ","ਬੁੱਧ","ਵੀਰ","ਸ਼ੁੱਕਰ","ਸ਼ਨਿੱਚਰ"],longhand:["ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ"]},months:{shorthand:["ਜਨ","ਫ਼ਰ","ਮਾਰ","ਅਪ੍ਰੈ","ਮਈ","ਜੂਨ","ਜੁਲਾ","ਅਗ","ਸਤੰ","ਅਕ","ਨਵੰ","ਦਸੰ"],longhand:["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ"]},time_24hr:!0};De.l10ns.pa=Ne,De.l10ns;var je="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ve={weekdays:{shorthand:["Nd","Pn","Wt","Śr","Cz","Pt","So"],longhand:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],longhand:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przewiń, aby zwiększyć",toggleTitle:"Kliknij, aby przełączyć",firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return"."}};je.l10ns.pl=Ve,je.l10ns;var Fe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Re={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até ",time_24hr:!0};Fe.l10ns.pt=Re,Fe.l10ns;var qe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Be={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],longhand:["Duminică","Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return""}};qe.l10ns.ro=Be,qe.l10ns;var ze="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},He={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};ze.l10ns.ru=He,ze.l10ns;var We="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ue={weekdays:{shorthand:["ඉ","ස","අ","බ","බ්ර","සි","සෙ"],longhand:["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"]},months:{shorthand:["ජන","පෙබ","මාර්","අප්රේ","මැයි","ජුනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ"],longhand:["ජනවාරි","පෙබරවාරි","මාර්තු","අප්රේල්","මැයි","ජුනි","ජූලි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්"]},time_24hr:!0};We.l10ns.si=Ue,We.l10ns;var Ke="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ge={weekdays:{shorthand:["Ned","Pon","Ut","Str","Štv","Pia","Sob"],longhand:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],longhand:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};Ke.l10ns.sk=Ge,Ke.l10ns;var Ze="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Je={weekdays:{shorthand:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};Ze.l10ns.sl=Je,Ze.l10ns;var Ye="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Qe={weekdays:{shorthand:["Di","Hë","Ma","Më","En","Pr","Sh"],longhand:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtunë"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"]},firstDayOfWeek:1,rangeSeparator:" deri ",weekAbbreviation:"Java",yearAriaLabel:"Viti",monthAriaLabel:"Muaji",hourAriaLabel:"Ora",minuteAriaLabel:"Minuta",time_24hr:!0};Ye.l10ns.sq=Qe,Ye.l10ns;var Xe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},et={weekdays:{shorthand:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};Xe.l10ns.sr=et,Xe.l10ns;var tt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},nt={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["sön","mån","tis","ons","tor","fre","lör"],longhand:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},rangeSeparator:" till ",time_24hr:!0,ordinal:function(){return"."}};tt.l10ns.sv=nt,tt.l10ns;var ot="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},it={weekdays:{shorthand:["อา","จ","อ","พ","พฤ","ศ","ส"],longhand:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},months:{shorthand:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],longhand:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},firstDayOfWeek:1,rangeSeparator:" ถึง ",scrollTitle:"เลื่อนเพื่อเพิ่มหรือลด",toggleTitle:"คลิกเพื่อเปลี่ยน",time_24hr:!0,ordinal:function(){return""}};ot.l10ns.th=it,ot.l10ns;var rt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},at={weekdays:{shorthand:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmak için kaydırın",toggleTitle:"Aç/Kapa",amPM:["ÖÖ","ÖS"],time_24hr:!0};rt.l10ns.tr=at,rt.l10ns;var st="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},lt={firstDayOfWeek:1,weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},months:{shorthand:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],longhand:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"]},time_24hr:!0};st.l10ns.uk=lt,st.l10ns;var ct="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ut={weekdays:{shorthand:["Якш","Душ","Сеш","Чор","Пай","Жум","Шан"],longhand:["Якшанба","Душанба","Сешанба","Чоршанба","Пайшанба","Жума","Шанба"]},months:{shorthand:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Ҳафта",scrollTitle:"Катталаштириш учун айлантиринг",toggleTitle:"Ўтиш учун босинг",amPM:["AM","PM"],yearAriaLabel:"Йил",time_24hr:!0};ct.l10ns.uz=ut,ct.l10ns;var dt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ft={weekdays:{shorthand:["Ya","Du","Se","Cho","Pa","Ju","Sha"],longhand:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Hafta",scrollTitle:"Kattalashtirish uchun aylantiring",toggleTitle:"O‘tish uchun bosing",amPM:["AM","PM"],yearAriaLabel:"Yil",time_24hr:!0};dt.l10ns.uz_latn=ft,dt.l10ns;var pt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ht={weekdays:{shorthand:["CN","T2","T3","T4","T5","T6","T7"],longhand:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Tháng một","Tháng hai","Tháng ba","Tháng tư","Tháng năm","Tháng sáu","Tháng bảy","Tháng tám","Tháng chín","Tháng mười","Tháng mười một","Tháng mười hai"]},firstDayOfWeek:1,rangeSeparator:" đến "};pt.l10ns.vn=ht,pt.l10ns;var mt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},gt={weekdays:{shorthand:["周日","周一","周二","周三","周四","周五","周六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"周",scrollTitle:"滚动切换",toggleTitle:"点击切换 12/24 小时时制"};mt.l10ns.zh=gt,mt.l10ns;var vt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},bt={weekdays:{shorthand:["週日","週一","週二","週三","週四","週五","週六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"週",scrollTitle:"滾動切換",toggleTitle:"點擊切換 12/24 小時時制"};vt.l10ns.zh_tw=bt,vt.l10ns;var yt={ar:o,at:r,az:s,be:c,bg:p,bn:m,bs:d,ca:v,ckb:y,cat:v,cs:k,cy:C,da:S,de:$,default:t({},E),en:E,eo:M,es:O,et:L,fa:N,fi:V,fo:R,fr:B,gr:H,he:U,hi:G,hr:J,hu:Q,hy:ee,id:ne,is:ie,it:ae,ja:le,ka:ue,ko:fe,km:he,kz:ge,lt:be,lv:we,mk:xe,mn:_e,ms:Te,my:Ee,nl:Me,nn:Oe,no:Le,pa:Ne,pl:Ve,pt:Re,ro:Be,ru:He,si:Ue,sk:Ge,sl:Je,sq:Qe,sr:et,sv:nt,th:it,tr:at,uk:lt,vn:ht,zh:gt,zh_tw:bt,uz:ut,uz_latn:ft};e.default=yt,Object.defineProperty(e,"__esModule",{value:!0})}(t)},645:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,o,i){var r,a,s=8*i-o-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,r=p&(1<<-u)-1,p>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=f,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),r-=c}return(p?-1:1)*a*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var a,s,l,c=8*r-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:r-1,h=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},2837:function(){},5311:function(e,t,n){!function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},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=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0},a=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)},s=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},l=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},u=function(){function e(t){o(this,e),this.selfOptions=t||{},this.pipes={}}return i(e,[{key:"options",value:function(e){return e&&(this.selfOptions=e),this.selfOptions}},{key:"pipe",value:function(e,t){var n=t;if("string"==typeof e){if(void 0===n)return this.pipes[e];this.pipes[e]=n}if(e&&e.name){if(n=e,n.processor===this)return n;this.pipes[n.name]=n}return n.processor=this,n}},{key:"process",value:function(e,t){var n=e;n.options=this.options();for(var o=t||e.pipe||"default",i=void 0,r=void 0;o;)void 0!==n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof o&&(o=this.pipe(o)),o.process(n),r=n,i=o,o=null,n&&n.next&&(n=n.next,o=r.nextPipe||n.pipe||i);return n.hasResult?n.result:void 0}}]),e}(),d=function(){function e(t){o(this,e),this.name=t,this.filters=[]}return i(e,[{key:"process",value:function(e){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var t=this.debug,o=this.filters.length,i=e,r=0;r<o;r++){var a=this.filters[r];if(t&&this.log("filter: "+a.filterName),a(i),"object"===(void 0===i?"undefined":n(i))&&i.exiting){i.exiting=!1;break}}!i.next&&this.resultCheck&&this.resultCheck(i)}},{key:"log",value:function(e){console.log("[jsondiffpatch] "+this.name+" pipe, "+e)}},{key:"append",value:function(){var e;return(e=this.filters).push.apply(e,arguments),this}},{key:"prepend",value:function(){var e;return(e=this.filters).unshift.apply(e,arguments),this}},{key:"indexOf",value:function(e){if(!e)throw new Error("a filter name is required");for(var t=0;t<this.filters.length;t++)if(this.filters[t].filterName===e)return t;throw new Error("filter not found: "+e)}},{key:"list",value:function(){return this.filters.map((function(e){return e.filterName}))}},{key:"after",value:function(e){var t=this.indexOf(e),n=Array.prototype.slice.call(arguments,1);if(!n.length)throw new Error("a filter is required");return n.unshift(t+1,0),Array.prototype.splice.apply(this.filters,n),this}},{key:"before",value:function(e){var t=this.indexOf(e),n=Array.prototype.slice.call(arguments,1);if(!n.length)throw new Error("a filter is required");return n.unshift(t,0),Array.prototype.splice.apply(this.filters,n),this}},{key:"replace",value:function(e){var t=this.indexOf(e),n=Array.prototype.slice.call(arguments,1);if(!n.length)throw new Error("a filter is required");return n.unshift(t,1),Array.prototype.splice.apply(this.filters,n),this}},{key:"remove",value:function(e){var t=this.indexOf(e);return this.filters.splice(t,1),this}},{key:"clear",value:function(){return this.filters.length=0,this}},{key:"shouldHaveResult",value:function(e){if(!1!==e){if(!this.resultCheck){var t=this;return this.resultCheck=function(e){if(!e.hasResult){console.log(e);var n=new Error(t.name+" failed");throw n.noResult=!0,n}},this}}else this.resultCheck=null}}]),e}(),f=function(){function e(){o(this,e)}return i(e,[{key:"setResult",value:function(e){return this.result=e,this.hasResult=!0,this}},{key:"exit",value:function(){return this.exiting=!0,this}},{key:"switchTo",value:function(e,t){return"string"==typeof e||e instanceof d?this.nextPipe=e:(this.next=e,t&&(this.nextPipe=t)),this}},{key:"push",value:function(e,t){return e.parent=this,void 0!==t&&(e.childName=t),e.root=this.root||this,e.options=e.options||this.options,this.children?(this.children[this.children.length-1].next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}}]),e}(),p="function"==typeof Array.isArray?Array.isArray:function(e){return e instanceof Array};function h(e){var t=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());return new RegExp(t[1],t[2])}function m(e){if("object"!==(void 0===e?"undefined":n(e)))return e;if(null===e)return null;if(p(e))return e.map(m);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return h(e);var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=m(e[o]));return t}var g=function(e){function t(e,n){o(this,t);var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.left=e,i.right=n,i.pipe="diff",i}return a(t,e),i(t,[{key:"setResult",value:function(e){if(this.options.cloneDiffValues&&"object"===(void 0===e?"undefined":n(e))){var t="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:m;"object"===n(e[0])&&(e[0]=t(e[0])),"object"===n(e[1])&&(e[1]=t(e[1]))}return f.prototype.setResult.apply(this,arguments)}}]),t}(f),v=function(e){function t(e,n){o(this,t);var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.left=e,i.delta=n,i.pipe="patch",i}return a(t,e),t}(f),b=function(e){function t(e){o(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.delta=e,n.pipe="reverse",n}return a(t,e),t}(f),y="function"==typeof Array.isArray?Array.isArray:function(e){return e instanceof Array},w=function(e){if(e.left!==e.right)if(void 0!==e.left)if(void 0!==e.right){if("function"==typeof e.left||"function"==typeof e.right)throw new Error("functions are not supported");e.leftType=null===e.left?"null":n(e.left),e.rightType=null===e.right?"null":n(e.right),e.leftType===e.rightType&&"boolean"!==e.leftType&&"number"!==e.leftType?("object"===e.leftType&&(e.leftIsArray=y(e.left)),"object"===e.rightType&&(e.rightIsArray=y(e.right)),e.leftIsArray===e.rightIsArray?e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit()):e.setResult([e.left,e.right]).exit()):e.setResult([e.left,e.right]).exit()}else e.setResult([e.left,0,0]).exit();else{if("function"==typeof e.right)throw new Error("functions are not supported");e.setResult([e.right]).exit()}else e.setResult(void 0).exit()};w.filterName="trivial";var k=function(e){if(void 0!==e.delta){if(e.nested=!y(e.delta),!e.nested)if(1!==e.delta.length)if(2!==e.delta.length)3===e.delta.length&&0===e.delta[2]&&e.setResult(void 0).exit();else{if(e.left instanceof RegExp){var t=/^\/(.*)\/([gimyu]+)$/.exec(e.delta[1]);if(t)return void e.setResult(new RegExp(t[1],t[2])).exit()}e.setResult(e.delta[1]).exit()}else e.setResult(e.delta[0]).exit()}else e.setResult(e.left).exit()};k.filterName="trivial";var x=function(e){void 0!==e.delta?(e.nested=!y(e.delta),e.nested||(1!==e.delta.length?2!==e.delta.length?3===e.delta.length&&0===e.delta[2]&&e.setResult([e.delta[0]]).exit():e.setResult([e.delta[1],e.delta[0]]).exit():e.setResult([e.delta[0],0,0]).exit())):e.setResult(e.delta).exit()};function C(e){if(e&&e.children){for(var t=e.children.length,n=void 0,o=e.result,i=0;i<t;i++)void 0!==(n=e.children[i]).result&&((o=o||{})[n.childName]=n.result);o&&e.leftIsArray&&(o._t="a"),e.setResult(o).exit()}}function _(e){if(!e.leftIsArray&&"object"===e.leftType){var t=void 0,n=void 0,o=e.options.propertyFilter;for(t in e.left)Object.prototype.hasOwnProperty.call(e.left,t)&&(o&&!o(t,e)||(n=new g(e.left[t],e.right[t]),e.push(n,t)));for(t in e.right)Object.prototype.hasOwnProperty.call(e.right,t)&&(o&&!o(t,e)||void 0===e.left[t]&&(n=new g(void 0,e.right[t]),e.push(n,t)));e.children&&0!==e.children.length?e.exit():e.setResult(void 0).exit()}}x.filterName="trivial",C.filterName="collectChildren",_.filterName="objects";var S=function(e){if(e.nested&&!e.delta._t){var t=void 0,n=void 0;for(t in e.delta)n=new v(e.left[t],e.delta[t]),e.push(n,t);e.exit()}};S.filterName="objects";var T=function(e){if(e&&e.children&&!e.delta._t){for(var t=e.children.length,n=void 0,o=0;o<t;o++)n=e.children[o],Object.prototype.hasOwnProperty.call(e.left,n.childName)&&void 0===n.result?delete e.left[n.childName]:e.left[n.childName]!==n.result&&(e.left[n.childName]=n.result);e.setResult(e.left).exit()}};T.filterName="collectChildren";var $=function(e){if(e.nested&&!e.delta._t){var t=void 0,n=void 0;for(t in e.delta)n=new b(e.delta[t]),e.push(n,t);e.exit()}};function E(e){if(e&&e.children&&!e.delta._t){for(var t=e.children.length,n=void 0,o={},i=0;i<t;i++)o[(n=e.children[i]).childName]!==n.result&&(o[n.childName]=n.result);e.setResult(o).exit()}}$.filterName="objects",E.filterName="collectChildren";var I=function(e,t,n,o){return e[n]===t[o]},M=function(e,t,n,o){var i=e.length,r=t.length,a=void 0,s=void 0,l=[i+1];for(a=0;a<i+1;a++)for(l[a]=[r+1],s=0;s<r+1;s++)l[a][s]=0;for(l.match=n,a=1;a<i+1;a++)for(s=1;s<r+1;s++)n(e,t,a-1,s-1,o)?l[a][s]=l[a-1][s-1]+1:l[a][s]=Math.max(l[a-1][s],l[a][s-1]);return l},A=function(e,t,n,o){for(var i=t.length,r=n.length,a={sequence:[],indices1:[],indices2:[]};0!==i&&0!==r;)e.match(t,n,i-1,r-1,o)?(a.sequence.unshift(t[i-1]),a.indices1.unshift(i-1),a.indices2.unshift(r-1),--i,--r):e[i][r-1]>e[i-1][r]?--r:--i;return a},O={get:function(e,t,n,o){var i=o||{},r=M(e,t,n||I,i),a=A(r,e,t,i);return"string"==typeof e&&"string"==typeof t&&(a.sequence=a.sequence.join("")),a}},P=3,L="function"==typeof Array.isArray?Array.isArray:function(e){return e instanceof Array},D="function"==typeof Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){for(var n=e.length,o=0;o<n;o++)if(e[o]===t)return o;return-1};function N(e,t,n,o){for(var i=0;i<n;i++)for(var r=e[i],a=0;a<o;a++){var s=t[a];if(i!==a&&r===s)return!0}}function j(e,t,o,i,r){var a=e[o],s=t[i];if(a===s)return!0;if("object"!==(void 0===a?"undefined":n(a))||"object"!==(void 0===s?"undefined":n(s)))return!1;var l=r.objectHash;if(!l)return r.matchByPosition&&o===i;var c=void 0,u=void 0;return"number"==typeof o?(r.hashCache1=r.hashCache1||[],void 0===(c=r.hashCache1[o])&&(r.hashCache1[o]=c=l(a,o))):c=l(a),void 0!==c&&("number"==typeof i?(r.hashCache2=r.hashCache2||[],void 0===(u=r.hashCache2[i])&&(r.hashCache2[i]=u=l(s,i))):u=l(s),void 0!==u&&c===u)}var V=function(e){if(e.leftIsArray){var t={objectHash:e.options&&e.options.objectHash,matchByPosition:e.options&&e.options.matchByPosition},n=0,o=0,i=void 0,r=void 0,a=void 0,s=e.left,l=e.right,c=s.length,u=l.length,d=void 0;for(c>0&&u>0&&!t.objectHash&&"boolean"!=typeof t.matchByPosition&&(t.matchByPosition=!N(s,l,c,u));n<c&&n<u&&j(s,l,n,n,t);)i=n,d=new g(e.left[i],e.right[i]),e.push(d,i),n++;for(;o+n<c&&o+n<u&&j(s,l,c-1-o,u-1-o,t);)r=c-1-o,a=u-1-o,d=new g(e.left[r],e.right[a]),e.push(d,a),o++;var f=void 0;if(n+o!==c)if(n+o!==u){delete t.hashCache1,delete t.hashCache2;var p=s.slice(n,c-o),h=l.slice(n,u-o),m=O.get(p,h,j,t),v=[];for(f=f||{_t:"a"},i=n;i<c-o;i++)D(m.indices1,i-n)<0&&(f["_"+i]=[s[i],0,0],v.push(i));var b=!0;e.options&&e.options.arrays&&!1===e.options.arrays.detectMove&&(b=!1);var y=!1;e.options&&e.options.arrays&&e.options.arrays.includeValueOnMove&&(y=!0);var w=v.length;for(i=n;i<u-o;i++){var k=D(m.indices2,i-n);if(k<0){var x=!1;if(b&&w>0)for(var C=0;C<w;C++)if(j(p,h,(r=v[C])-n,i-n,t)){f["_"+r].splice(1,2,i,P),y||(f["_"+r][0]=""),a=i,d=new g(e.left[r],e.right[a]),e.push(d,a),v.splice(C,1),x=!0;break}x||(f[i]=[l[i]])}else r=m.indices1[k]+n,a=m.indices2[k]+n,d=new g(e.left[r],e.right[a]),e.push(d,a)}e.setResult(f).exit()}else{for(f=f||{_t:"a"},i=n;i<c-o;i++)f["_"+i]=[s[i],0,0];e.setResult(f).exit()}else{if(c===u)return void e.setResult(void 0).exit();for(f=f||{_t:"a"},i=n;i<u-o;i++)f[i]=[l[i]];e.setResult(f).exit()}}};V.filterName="arrays";var F={numerically:function(e,t){return e-t},numericallyBy:function(e){return function(t,n){return t[e]-n[e]}}},R=function(e){if(e.nested&&"a"===e.delta._t){var t=void 0,n=void 0,o=e.delta,i=e.left,r=[],a=[],s=[];for(t in o)if("_t"!==t)if("_"===t[0]){if(0!==o[t][2]&&o[t][2]!==P)throw new Error("only removal or move can be applied at original array indices, invalid diff type: "+o[t][2]);r.push(parseInt(t.slice(1),10))}else 1===o[t].length?a.push({index:parseInt(t,10),value:o[t][0]}):s.push({index:parseInt(t,10),delta:o[t]});for(t=(r=r.sort(F.numerically)).length-1;t>=0;t--){var l=o["_"+(n=r[t])],c=i.splice(n,1)[0];l[2]===P&&a.push({index:l[1],value:c})}var u=(a=a.sort(F.numericallyBy("index"))).length;for(t=0;t<u;t++){var d=a[t];i.splice(d.index,0,d.value)}var f=s.length,p=void 0;if(f>0)for(t=0;t<f;t++){var h=s[t];p=new v(e.left[h.index],h.delta),e.push(p,h.index)}e.children?e.exit():e.setResult(e.left).exit()}};R.filterName="arrays";var q=function(e){if(e&&e.children&&"a"===e.delta._t){for(var t=e.children.length,n=void 0,o=0;o<t;o++)n=e.children[o],e.left[n.childName]=n.result;e.setResult(e.left).exit()}};q.filterName="arraysCollectChildren";var B=function(e){if(e.nested){if("a"===e.delta._t){var t=void 0,n=void 0;for(t in e.delta)"_t"!==t&&(n=new b(e.delta[t]),e.push(n,t));e.exit()}}else e.delta[2]===P&&(e.newName="_"+e.delta[1],e.setResult([e.delta[0],parseInt(e.childName.substr(1),10),P]).exit())};B.filterName="arrays";var z=function(e,t,n){if("string"==typeof t&&"_"===t[0])return parseInt(t.substr(1),10);if(L(n)&&0===n[2])return"_"+t;var o=+t;for(var i in e){var r=e[i];if(L(r))if(r[2]===P){var a=parseInt(i.substr(1),10),s=r[1];if(s===+t)return a;a<=o&&s>o?o++:a>=o&&s<o&&o--}else 0===r[2]?parseInt(i.substr(1),10)<=o&&o++:1===r.length&&i<=o&&o--}return o};function H(e){if(e&&e.children&&"a"===e.delta._t){for(var t=e.children.length,n=void 0,o={_t:"a"},i=0;i<t;i++){var r=(n=e.children[i]).newName;void 0===r&&(r=z(e.delta,n.childName,n.result)),o[r]!==n.result&&(o[r]=n.result)}e.setResult(o).exit()}}H.filterName="arraysCollectChildren";var W=function(e){e.left instanceof Date?(e.right instanceof Date?e.left.getTime()!==e.right.getTime()?e.setResult([e.left,e.right]):e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};function U(e,t){return e(t={exports:{}},t.exports),t.exports}W.filterName="dates";var K=U((function(e){function t(){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}var n=-1,o=1,i=0;t.prototype.diff_main=function(e,t,n,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var r=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[i,e]]:[];void 0===n&&(n=!0);var a=n,s=this.diff_commonPrefix(e,t),l=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var u=this.diff_compute_(e,t,a,r);return l&&u.unshift([i,l]),c&&u.push([i,c]),this.diff_cleanupMerge(u),u},t.prototype.diff_compute_=function(e,t,r,a){var s;if(!e)return[[o,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return s=[[o,l.substring(0,u)],[i,c],[o,l.substring(u+c.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==c.length)return[[n,e],[o,t]];var d=this.diff_halfMatch_(e,t);if(d){var f=d[0],p=d[1],h=d[2],m=d[3],g=d[4],v=this.diff_main(f,h,r,a),b=this.diff_main(p,m,r,a);return v.concat([[i,g]],b)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,a):this.diff_bisect_(e,t,a)},t.prototype.diff_lineMode_=function(e,t,r){e=(p=this.diff_linesToChars_(e,t)).chars1,t=p.chars2;var a=p.lineArray,s=this.diff_main(e,t,!1,r);this.diff_charsToLines_(s,a),this.diff_cleanupSemantic(s),s.push([i,""]);for(var l=0,c=0,u=0,d="",f="";l<s.length;){switch(s[l][0]){case o:u++,f+=s[l][1];break;case n:c++,d+=s[l][1];break;case i:if(c>=1&&u>=1){s.splice(l-c-u,c+u),l=l-c-u;for(var p,h=(p=this.diff_main(d,f,!1,r)).length-1;h>=0;h--)s.splice(l,0,p[h]);l+=p.length}u=0,c=0,d="",f=""}l++}return s.pop(),s},t.prototype.diff_bisect_=function(e,t,i){for(var r=e.length,a=t.length,s=Math.ceil((r+a)/2),l=s,c=2*s,u=new Array(c),d=new Array(c),f=0;f<c;f++)u[f]=-1,d[f]=-1;u[l+1]=0,d[l+1]=0;for(var p=r-a,h=p%2!=0,m=0,g=0,v=0,b=0,y=0;y<s&&!((new Date).getTime()>i);y++){for(var w=-y+m;w<=y-g;w+=2){for(var k=l+w,x=($=w==-y||w!=y&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1)-w;$<r&&x<a&&e.charAt($)==t.charAt(x);)$++,x++;if(u[k]=$,$>r)g+=2;else if(x>a)m+=2;else if(h&&(S=l+p-w)>=0&&S<c&&-1!=d[S]&&$>=(_=r-d[S]))return this.diff_bisectSplit_(e,t,$,x,i)}for(var C=-y+v;C<=y-b;C+=2){for(var _,S=l+C,T=(_=C==-y||C!=y&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1)-C;_<r&&T<a&&e.charAt(r-_-1)==t.charAt(a-T-1);)_++,T++;if(d[S]=_,_>r)b+=2;else if(T>a)v+=2;else if(!h){var $;if((k=l+p-C)>=0&&k<c&&-1!=u[k])if(x=l+($=u[k])-k,$>=(_=r-_))return this.diff_bisectSplit_(e,t,$,x,i)}}}return[[n,e],[o,t]]},t.prototype.diff_bisectSplit_=function(e,t,n,o,i){var r=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=this.diff_main(r,a,!1,i),u=this.diff_main(s,l,!1,i);return c.concat(u)},t.prototype.diff_linesToChars_=function(e,t){var n=[],o={};function i(e){for(var t="",i=0,r=-1,a=n.length;r<e.length-1;){-1==(r=e.indexOf("\n",i))&&(r=e.length-1);var s=e.substring(i,r+1);i=r+1,(o.hasOwnProperty?o.hasOwnProperty(s):void 0!==o[s])?t+=String.fromCharCode(o[s]):(t+=String.fromCharCode(a),o[s]=a,n[a++]=s)}return t}return n[0]="",{chars1:i(e),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,a=1;;){var s=e.substring(i-a),l=t.indexOf(s);if(-1==l)return r;a+=l,0!=l&&e.substring(i-a)!=t.substring(0,a)||(r=a,a++)}},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,a,s,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(l,c+1));){var d=i.diff_commonPrefix(e.substring(n),t.substring(c)),f=i.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<f+d&&(u=t.substring(c-f,c)+t.substring(c,c+d),o=e.substring(0,n-f),r=e.substring(n+d),a=t.substring(0,c-f),s=t.substring(c+d))}return 2*u.length>=e.length?[o,r,a,s,u]:null}var a,s,l,c,u,d=r(n,o,Math.ceil(n.length/4)),f=r(n,o,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(s=a[0],l=a[1],c=a[2],u=a[3]):(c=a[0],u=a[1],s=a[2],l=a[3]),[s,l,c,u,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],a=0,s=null,l=0,c=0,u=0,d=0,f=0;l<e.length;)e[l][0]==i?(r[a++]=l,c=d,u=f,d=0,f=0,s=e[l][1]):(e[l][0]==o?d+=e[l][1].length:f+=e[l][1].length,s&&s.length<=Math.max(c,u)&&s.length<=Math.max(d,f)&&(e.splice(r[a-1],0,[n,s]),e[r[a-1]+1][0]=o,a--,l=--a>0?r[a-1]:-1,c=0,u=0,d=0,f=0,s=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l<e.length;){if(e[l-1][0]==n&&e[l][0]==o){var p=e[l-1][1],h=e[l][1],m=this.diff_commonOverlap_(p,h),g=this.diff_commonOverlap_(h,p);m>=g?(m>=p.length/2||m>=h.length/2)&&(e.splice(l,0,[i,h.substring(0,m)]),e[l-1][1]=p.substring(0,p.length-m),e[l+1][1]=h.substring(m),l++):(g>=p.length/2||g>=h.length/2)&&(e.splice(l,0,[i,p.substring(0,g)]),e[l-1][0]=o,e[l-1][1]=h.substring(0,h.length-g),e[l+1][0]=n,e[l+1][1]=p.substring(g),l++),l++}l++}},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_),a=i.match(t.nonAlphaNumericRegex_),s=r&&o.match(t.whitespaceRegex_),l=a&&i.match(t.whitespaceRegex_),c=s&&o.match(t.linebreakRegex_),u=l&&i.match(t.linebreakRegex_),d=c&&e.match(t.blanklineEndRegex_),f=u&&n.match(t.blanklineStartRegex_);return d||f?5:c||u?4:r&&!s&&l?3:s||l?2:r||a?1:0}for(var o=1;o<e.length-1;){if(e[o-1][0]==i&&e[o+1][0]==i){var r=e[o-1][1],a=e[o][1],s=e[o+1][1],l=this.diff_commonSuffix(r,a);if(l){var c=a.substring(a.length-l);r=r.substring(0,r.length-l),a=c+a.substring(0,a.length-l),s=c+s}for(var u=r,d=a,f=s,p=n(r,a)+n(a,s);a.charAt(0)===s.charAt(0);){r+=a.charAt(0),a=a.substring(1)+s.charAt(0),s=s.substring(1);var h=n(r,a)+n(a,s);h>=p&&(p=h,u=r,d=a,f=s)}e[o-1][1]!=u&&(u?e[o-1][1]=u:(e.splice(o-1,1),o--),e[o][1]=d,f?e[o+1][1]=f:(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 t=!1,r=[],a=0,s=null,l=0,c=!1,u=!1,d=!1,f=!1;l<e.length;)e[l][0]==i?(e[l][1].length<this.Diff_EditCost&&(d||f)?(r[a++]=l,c=d,u=f,s=e[l][1]):(a=0,s=null),d=f=!1):(e[l][0]==n?f=!0:d=!0,s&&(c&&u&&d&&f||s.length<this.Diff_EditCost/2&&c+u+d+f==3)&&(e.splice(r[a-1],0,[n,s]),e[r[a-1]+1][0]=o,a--,s=null,c&&u?(d=f=!0,a=0):(l=--a>0?r[a-1]:-1,d=f=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push([i,""]);for(var t,r=0,a=0,s=0,l="",c="";r<e.length;)switch(e[r][0]){case o:s++,c+=e[r][1],r++;break;case n:a++,l+=e[r][1],r++;break;case i:a+s>1?(0!==a&&0!==s&&(0!==(t=this.diff_commonPrefix(c,l))&&(r-a-s>0&&e[r-a-s-1][0]==i?e[r-a-s-1][1]+=c.substring(0,t):(e.splice(0,0,[i,c.substring(0,t)]),r++),c=c.substring(t),l=l.substring(t)),0!==(t=this.diff_commonSuffix(c,l))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(r-s,a+s,[o,c]):0===s?e.splice(r-a,a+s,[n,l]):e.splice(r-a-s,a+s,[n,l],[o,c]),r=r-a-s+(a?1:0)+(s?1:0)+1):0!==r&&e[r-1][0]==i?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,a=0,l="",c=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(r=1;r<e.length-1;)e[r-1][0]==i&&e[r+1][0]==i&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),u=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),u=!0)),r++;u&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var i,r=0,a=0,s=0,l=0;for(i=0;i<e.length&&(e[i][0]!==o&&(r+=e[i][1].length),e[i][0]!==n&&(a+=e[i][1].length),!(r>t));i++)s=r,l=a;return e.length!=i&&e[i][0]===n?l:l+(t-s)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,a=/</g,s=/>/g,l=/\n/g,c=0;c<e.length;c++){var u=e[c][0],d=e[c][1].replace(r,"&").replace(a,"<").replace(s,">").replace(l,"¶<br>");switch(u){case o:t[c]='<ins style="background:#e6ffe6;">'+d+"</ins>";break;case n:t[c]='<del style="background:#ffe6e6;">'+d+"</del>";break;case i:t[c]="<span>"+d+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==o&&(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,r=0,a=0,s=0;s<e.length;s++){var l=e[s][0],c=e[s][1];switch(l){case o:r+=c.length;break;case n:a+=c.length;break;case i:t+=Math.max(r,a),r=0,a=0}}return t+=Math.max(r,a)},t.prototype.diff_toDelta=function(e){for(var t=[],r=0;r<e.length;r++)switch(e[r][0]){case o:t[r]="+"+encodeURI(e[r][1]);break;case n:t[r]="-"+e[r][1].length;break;case i:t[r]="="+e[r][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,t){for(var r=[],a=0,s=0,l=t.split(/\t/g),c=0;c<l.length;c++){var u=l[c].substring(1);switch(l[c].charAt(0)){case"+":try{r[a++]=[o,decodeURI(u)]}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+u)}break;case"-":case"=":var d=parseInt(u,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+u);var f=e.substring(s,s+=d);"="==l[c].charAt(0)?r[a++]=[i,f]:r[a++]=[n,f];break;default:if(l[c])throw new Error("Invalid diff operation in diff_fromDelta: "+l[c])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return r},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,a=Math.abs(n-o);return i.Match_Distance?r+a/i.Match_Distance:a?1:r}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(r(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(r(0,s),a)));var l,c,u=1<<t.length-1;s=-1;for(var d,f=t.length+e.length,p=0;p<t.length;p++){for(l=0,c=f;l<c;)r(p,n+c)<=a?l=c:f=c,c=Math.floor((f-l)/2+l);f=c;var h=Math.max(1,n-c+1),m=Math.min(n+c,e.length)+t.length,g=Array(m+2);g[m+1]=(1<<p)-1;for(var v=m;v>=h;v--){var b=o[e.charAt(v-1)];if(g[v]=0===p?(g[v+1]<<1|1)&b:(g[v+1]<<1|1)&b|(d[v+1]|d[v])<<1|1|d[v+1],g[v]&u){var y=r(p,v-1);if(y<=a){if(a=y,!((s=v-1)>n))break;h=Math.max(1,2*n-s)}}}if(r(p+1,n)>a)break;d=g}return s},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,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),o=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,n=t.substring(e.start2-o,e.start2+e.length1+o);o+=this.Patch_Margin;var r=t.substring(e.start2-o,e.start2);r&&e.diffs.unshift([i,r]);var a=t.substring(e.start2+e.length1,e.start2+e.length1+o);a&&e.diffs.push([i,a]),e.start1-=r.length,e.start2-=r.length,e.length1+=r.length+a.length,e.length2+=r.length+a.length}},t.prototype.patch_make=function(e,r,a){var s,l;if("string"==typeof e&&"string"==typeof r&&void 0===a)s=e,(l=this.diff_main(s,r,!0)).length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&"object"==typeof e&&void 0===r&&void 0===a)l=e,s=this.diff_text1(l);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===a)s=e,l=r;else{if("string"!=typeof e||"string"!=typeof r||!a||"object"!=typeof a)throw new Error("Unknown call format to patch_make.");s=e,l=a}if(0===l.length)return[];for(var c=[],u=new t.patch_obj,d=0,f=0,p=0,h=s,m=s,g=0;g<l.length;g++){var v=l[g][0],b=l[g][1];switch(d||v===i||(u.start1=f,u.start2=p),v){case o:u.diffs[d++]=l[g],u.length2+=b.length,m=m.substring(0,p)+b+m.substring(p);break;case n:u.length1+=b.length,u.diffs[d++]=l[g],m=m.substring(0,p)+m.substring(p+b.length);break;case i:b.length<=2*this.Patch_Margin&&d&&l.length!=g+1?(u.diffs[d++]=l[g],u.length1+=b.length,u.length2+=b.length):b.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(u,h),c.push(u),u=new t.patch_obj,d=0,h=m,f=p)}v!==o&&(f+=b.length),v!==n&&(p+=b.length)}return d&&(this.patch_addContext_(u,h),c.push(u)),c},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 a=0;a<i.diffs.length;a++)r.diffs[a]=i.diffs[a].slice();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 r=this.patch_addPadding(e);t=r+t+r,this.patch_splitMax(e);for(var a=0,s=[],l=0;l<e.length;l++){var c,u,d=e[l].start2+a,f=this.diff_text1(e[l].diffs),p=-1;if(f.length>this.Match_MaxBits?-1!=(c=this.match_main(t,f.substring(0,this.Match_MaxBits),d))&&(-1==(p=this.match_main(t,f.substring(f.length-this.Match_MaxBits),d+f.length-this.Match_MaxBits))||c>=p)&&(c=-1):c=this.match_main(t,f,d),-1==c)s[l]=!1,a-=e[l].length2-e[l].length1;else if(s[l]=!0,a=c-d,f==(u=-1==p?t.substring(c,c+f.length):t.substring(c,p+this.Match_MaxBits)))t=t.substring(0,c)+this.diff_text2(e[l].diffs)+t.substring(c+f.length);else{var h=this.diff_main(f,u,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(h)/f.length>this.Patch_DeleteThreshold)s[l]=!1;else{this.diff_cleanupSemanticLossless(h);for(var m,g=0,v=0;v<e[l].diffs.length;v++){var b=e[l].diffs[v];b[0]!==i&&(m=this.diff_xIndex(h,g)),b[0]===o?t=t.substring(0,c+m)+b[1]+t.substring(c+m):b[0]===n&&(t=t.substring(0,c+m)+t.substring(c+this.diff_xIndex(h,g+b[1].length))),b[0]!==n&&(g+=b[1].length)}}}}return[t=t.substring(r.length,t.length-r.length),s]},t.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",o=1;o<=t;o++)n+=String.fromCharCode(o);for(o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;var r=e[0],a=r.diffs;if(0==a.length||a[0][0]!=i)a.unshift([i,n]),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>a[0][1].length){var s=t-a[0][1].length;a[0][1]=n.substring(a[0][1].length)+a[0][1],r.start1-=s,r.start2-=s,r.length1+=s,r.length2+=s}return 0==(a=(r=e[e.length-1]).diffs).length||a[a.length-1][0]!=i?(a.push([i,n]),r.length1+=t,r.length2+=t):t>a[a.length-1][1].length&&(s=t-a[a.length-1][1].length,a[a.length-1][1]+=n.substring(0,s),r.length1+=s,r.length2+=s),n},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,a=0;a<e.length;a++)if(!(e[a].length1<=r)){var s=e[a];e.splice(a--,1);for(var l=s.start1,c=s.start2,u="";0!==s.diffs.length;){var d=new t.patch_obj,f=!0;for(d.start1=l-u.length,d.start2=c-u.length,""!==u&&(d.length1=d.length2=u.length,d.diffs.push([i,u]));0!==s.diffs.length&&d.length1<r-this.Patch_Margin;){var p=s.diffs[0][0],h=s.diffs[0][1];p===o?(d.length2+=h.length,c+=h.length,d.diffs.push(s.diffs.shift()),f=!1):p===n&&1==d.diffs.length&&d.diffs[0][0]==i&&h.length>2*r?(d.length1+=h.length,l+=h.length,f=!1,d.diffs.push([p,h]),s.diffs.shift()):(h=h.substring(0,r-d.length1-this.Patch_Margin),d.length1+=h.length,l+=h.length,p===i?(d.length2+=h.length,c+=h.length):f=!1,d.diffs.push([p,h]),h==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(h.length))}u=(u=this.diff_text2(d.diffs)).substring(u.length-this.Patch_Margin);var m=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==m&&(d.length1+=m.length,d.length2+=m.length,0!==d.diffs.length&&d.diffs[d.diffs.length-1][0]===i?d.diffs[d.diffs.length-1][1]+=m:d.diffs.push([i,m])),f||e.splice(++a,0,d)}}},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 r=[];if(!e)return r;for(var a=e.split("\n"),s=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<a.length;){var c=a[s].match(l);if(!c)throw new Error("Invalid patch string: "+a[s]);var u=new t.patch_obj;for(r.push(u),u.start1=parseInt(c[1],10),""===c[2]?(u.start1--,u.length1=1):"0"==c[2]?u.length1=0:(u.start1--,u.length1=parseInt(c[2],10)),u.start2=parseInt(c[3],10),""===c[4]?(u.start2--,u.length2=1):"0"==c[4]?u.length2=0:(u.start2--,u.length2=parseInt(c[4],10)),s++;s<a.length;){var d=a[s].charAt(0);try{var f=decodeURI(a[s].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+f)}if("-"==d)u.diffs.push([n,f]);else if("+"==d)u.diffs.push([o,f]);else if(" "==d)u.diffs.push([i,f]);else{if("@"==d)break;if(""!==d)throw new Error('Invalid patch mode "'+d+'" in: '+f)}s++}}return r},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.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"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case o:e="+";break;case n:e="-";break;case i:e=" "}t[r+1]=e+encodeURI(this.diffs[r][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=o,e.exports.DIFF_EQUAL=i})),G=2,Z=60,J=null,Y=function(e){if(!J){var t=void 0;if("undefined"!=typeof diff_match_patch)t="function"==typeof diff_match_patch?new diff_match_patch:new diff_match_patch.diff_match_patch;else if(K)try{t=K&&new K}catch(e){t=null}if(!t){if(!e)return null;var n=new Error("text diff_match_patch library not found");throw n.diff_match_patch_not_found=!0,n}J={diff:function(e,n){return t.patch_toText(t.patch_make(e,n))},patch:function(e,n){for(var o=t.patch_apply(t.patch_fromText(n),e),i=0;i<o[1].length;i++)o[1][i]||(new Error("text patch failed").textPatchFailed=!0);return o[0]}}}return J},Q=function(e){if("string"===e.leftType){var t=e.options&&e.options.textDiff&&e.options.textDiff.minLength||Z;if(e.left.length<t||e.right.length<t)e.setResult([e.left,e.right]).exit();else{var n=Y();if(n){var o=n.diff;e.setResult([o(e.left,e.right),0,G]).exit()}else e.setResult([e.left,e.right]).exit()}}};Q.filterName="texts";var X=function(e){if(!e.nested&&e.delta[2]===G){var t=Y(!0).patch;e.setResult(t(e.left,e.delta[0])).exit()}};X.filterName="texts";var ee=function(e){var t=void 0,n=void 0,o=void 0,i=void 0,r=void 0,a=null,s=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/;for(t=0,n=(o=e.split("\n")).length;t<n;t++){var l=(i=o[t]).slice(0,1);"@"===l?(a=s.exec(i),o[t]="@@ -"+a[3]+","+a[4]+" +"+a[1]+","+a[2]+" @@"):"+"===l?(o[t]="-"+o[t].slice(1),"+"===o[t-1].slice(0,1)&&(r=o[t],o[t]=o[t-1],o[t-1]=r)):"-"===l&&(o[t]="+"+o[t].slice(1))}return o.join("\n")},te=function(e){e.nested||e.delta[2]===G&&e.setResult([ee(e.delta[0]),0,G]).exit()};te.filterName="texts";var ne=function(){function e(t){o(this,e),this.processor=new u(t),this.processor.pipe(new d("diff").append(C,w,W,Q,_,V).shouldHaveResult()),this.processor.pipe(new d("patch").append(T,q,k,X,S,R).shouldHaveResult()),this.processor.pipe(new d("reverse").append(E,H,x,te,$,B).shouldHaveResult())}return i(e,[{key:"options",value:function(){var e;return(e=this.processor).options.apply(e,arguments)}},{key:"diff",value:function(e,t){return this.processor.process(new g(e,t))}},{key:"patch",value:function(e,t){return this.processor.process(new v(e,t))}},{key:"reverse",value:function(e){return this.processor.process(new b(e))}},{key:"unpatch",value:function(e,t){return this.patch(e,this.reverse(t))}},{key:"clone",value:function(e){return m(e)}}]),e}(),oe="function"==typeof Array.isArray?Array.isArray:function(e){return e instanceof Array},ie="function"==typeof Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},re=function(e){return"_"===e.substr(0,1)?e.slice(1):e},ae=function(e){return"_t"===e?-1:"_"===e.substr(0,1)?parseInt(e.slice(1),10):parseInt(e,10)+.1},se=function(e,t){return ae(e)-ae(t)},le=function(){function e(){o(this,e)}return i(e,[{key:"format",value:function(e,t){var n={};return this.prepareContext(n),this.recurse(n,e,t),this.finalize(n)}},{key:"prepareContext",value:function(e){e.buffer=[],e.out=function(){var e;(e=this.buffer).push.apply(e,arguments)}}},{key:"typeFormattterNotFound",value:function(e,t){throw new Error("cannot format delta type: "+t)}},{key:"typeFormattterErrorFormatter",value:function(e,t){return t.toString()}},{key:"finalize",value:function(e){var t=e.buffer;if(oe(t))return t.join("")}},{key:"recurse",value:function(e,t,n,o,i,r,a){var s=t&&r?r.value:n;if(void 0!==t||void 0!==o){var l=this.getDeltaType(t,r),c="node"===l?"a"===t._t?"array":"object":"";void 0!==o?this.nodeBegin(e,o,i,l,c,a):this.rootBegin(e,l,c);try{(this["format_"+l]||this.typeFormattterNotFound(e,l)).call(this,e,t,s,o,i,r)}catch(n){this.typeFormattterErrorFormatter(e,n,t,s,o,i,r),"undefined"!=typeof console&&console.error&&console.error(n.stack)}void 0!==o?this.nodeEnd(e,o,i,l,c,a):this.rootEnd(e,l,c)}}},{key:"formatDeltaChildren",value:function(e,t,n){var o=this;this.forEachDeltaKey(t,n,(function(i,r,a,s){o.recurse(e,t[i],n?n[r]:void 0,i,r,a,s)}))}},{key:"forEachDeltaKey",value:function(e,t,n){var o=ie(e),i="a"===e._t,r={},a=void 0;if(void 0!==t)for(a in t)Object.prototype.hasOwnProperty.call(t,a)&&(void 0!==e[a]||i&&void 0!==e["_"+a]||o.push(a));for(a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];oe(s)&&3===s[2]&&(r[s[1].toString()]={key:a,value:t&&t[parseInt(a.substr(1))]},!1!==this.includeMoveDestinations&&void 0===t&&void 0===e[s[1]]&&o.push(s[1].toString()))}i?o.sort(se):o.sort();for(var l=0,c=o.length;l<c;l++){var u=o[l];if(!i||"_t"!==u){var d=i?"number"==typeof u?u:parseInt(re(u),10):u,f=l===c-1;n(u,d,r[d],f)}}}},{key:"getDeltaType",value:function(e,t){if(void 0===e)return void 0!==t?"movedestination":"unchanged";if(oe(e)){if(1===e.length)return"added";if(2===e.length)return"modified";if(3===e.length&&0===e[2])return"deleted";if(3===e.length&&2===e[2])return"textdiff";if(3===e.length&&3===e[2])return"moved"}else if("object"===(void 0===e?"undefined":n(e)))return"node";return"unknown"}},{key:"parseTextDiff",value:function(e){for(var t=[],n=e.split("\n@@ "),o=0,i=n.length;o<i;o++){var r=n[o],a={pieces:[]},s=/^(?:@@ )?[-+]?(\d+),(\d+)/.exec(r).slice(1);a.location={line:s[0],chr:s[1]};for(var l=r.split("\n").slice(1),c=0,u=l.length;c<u;c++){var d=l[c];if(d.length){var f={type:"context"};"+"===d.substr(0,1)?f.type="added":"-"===d.substr(0,1)&&(f.type="deleted"),f.text=d.slice(1),a.pieces.push(f)}}t.push(a)}return t}}]),e}(),ce=Object.freeze({default:le}),ue=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),i(t,[{key:"typeFormattterErrorFormatter",value:function(e,t){e.out('<pre class="jsondiffpatch-error">'+t+"</pre>")}},{key:"formatValue",value:function(e,t){e.out("<pre>"+de(JSON.stringify(t,null,2))+"</pre>")}},{key:"formatTextDiffString",value:function(e,t){var n=this.parseTextDiff(t);e.out('<ul class="jsondiffpatch-textdiff">');for(var o=0,i=n.length;o<i;o++){var r=n[o];e.out('<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">'+r.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+r.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">');for(var a=r.pieces,s=0,l=a.length;s<l;s++){var c=a[s];e.out('<span class="jsondiffpatch-textdiff-'+c.type+'">'+de(decodeURI(c.text))+"</span>")}e.out("</div></li>")}e.out("</ul>")}},{key:"rootBegin",value:function(e,t,n){var o="jsondiffpatch-"+t+(n?" jsondiffpatch-child-node-type-"+n:"");e.out('<div class="jsondiffpatch-delta '+o+'">')}},{key:"rootEnd",value:function(e){e.out("</div>"+(e.hasArrows?'<script type="text/javascript">setTimeout('+fe.toString()+",10);<\/script>":""))}},{key:"nodeBegin",value:function(e,t,n,o,i){var r="jsondiffpatch-"+o+(i?" jsondiffpatch-child-node-type-"+i:"");e.out('<li class="'+r+'" data-key="'+n+'"><div class="jsondiffpatch-property-name">'+n+"</div>")}},{key:"nodeEnd",value:function(e){e.out("</li>")}},{key:"format_unchanged",value:function(e,t,n){void 0!==n&&(e.out('<div class="jsondiffpatch-value">'),this.formatValue(e,n),e.out("</div>"))}},{key:"format_movedestination",value:function(e,t,n){void 0!==n&&(e.out('<div class="jsondiffpatch-value">'),this.formatValue(e,n),e.out("</div>"))}},{key:"format_node",value:function(e,t,n){var o="a"===t._t?"array":"object";e.out('<ul class="jsondiffpatch-node jsondiffpatch-node-type-'+o+'">'),this.formatDeltaChildren(e,t,n),e.out("</ul>")}},{key:"format_added",value:function(e,t){e.out('<div class="jsondiffpatch-value">'),this.formatValue(e,t[0]),e.out("</div>")}},{key:"format_modified",value:function(e,t){e.out('<div class="jsondiffpatch-value jsondiffpatch-left-value">'),this.formatValue(e,t[0]),e.out('</div><div class="jsondiffpatch-value jsondiffpatch-right-value">'),this.formatValue(e,t[1]),e.out("</div>")}},{key:"format_deleted",value:function(e,t){e.out('<div class="jsondiffpatch-value">'),this.formatValue(e,t[0]),e.out("</div>")}},{key:"format_moved",value:function(e,t){e.out('<div class="jsondiffpatch-value">'),this.formatValue(e,t[0]),e.out('</div><div class="jsondiffpatch-moved-destination">'+t[1]+"</div>"),e.out('<div class="jsondiffpatch-arrow" style="position: relative; left: -34px;">\n <svg width="30" height="60" style="position: absolute; display: none;">\n <defs>\n <marker id="markerArrow" markerWidth="8" markerHeight="8"\n refx="2" refy="4"\n orient="auto" markerUnits="userSpaceOnUse">\n <path d="M1,1 L1,7 L7,4 L1,1" style="fill: #339;" />\n </marker>\n </defs>\n <path d="M30,0 Q-10,25 26,50"\n style="stroke: #88f; stroke-width: 2px; fill: none; stroke-opacity: 0.5; marker-end: url(#markerArrow);"\n ></path>\n </svg>\n </div>'),e.hasArrows=!0}},{key:"format_textdiff",value:function(e,t){e.out('<div class="jsondiffpatch-value">'),this.formatTextDiffString(e,t[0]),e.out("</div>")}}]),t}(le);function de(e){for(var t=e,n=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/'/g,"'"],[/"/g,"""]],o=0;o<n.length;o++)t=t.replace(n[o][0],n[o][1]);return t}var fe=function(e){var t=e||document,n=function(e){var t=e.textContent,n=e.innerText;return t||n},o=function(e,t){for(var n=e.children,o=0,i=n.length;o<i;o++)t(n[o],o)};!function(e,t,n){for(var o=e.querySelectorAll(t),i=0,r=o.length;i<r;i++)n(o[i])}(t,".jsondiffpatch-arrow",(function(e){var t=e.parentNode,i=e.children,r=e.style,a=t,s=i[0],l=s.children[1];s.style.display="none";var c=n(a.querySelector(".jsondiffpatch-moved-destination")),u=a.parentNode,d=void 0;if(o(u,(function(e){e.getAttribute("data-key")===c&&(d=e)})),d)try{var f=d.offsetTop-a.offsetTop;s.setAttribute("height",Math.abs(f)+6),r.top=-8+(f>0?0:f)+"px";var p=f>0?"M30,0 Q-10,"+Math.round(f/2)+" 26,"+(f-4):"M30,"+-f+" Q-10,"+Math.round(-f/2)+" 26,4";l.setAttribute("d",p),s.style.display=""}catch(e){}}))},pe=function(e,t,n){var o=t||document.body,i="jsondiffpatch-unchanged-",r={showing:i+"showing",hiding:i+"hiding",visible:i+"visible",hidden:i+"hidden"},a=o.classList;if(a){if(!n)return a.remove(r.showing),a.remove(r.hiding),a.remove(r.visible),a.remove(r.hidden),void(!1===e&&a.add(r.hidden));!1===e?(a.remove(r.showing),a.add(r.visible),setTimeout((function(){a.add(r.hiding)}),10)):(a.remove(r.hiding),a.add(r.showing),a.remove(r.hidden));var s=setInterval((function(){fe(o)}),100);setTimeout((function(){a.remove(r.showing),a.remove(r.hiding),!1===e?(a.add(r.hidden),a.remove(r.visible)):(a.add(r.visible),a.remove(r.hidden)),setTimeout((function(){a.remove(r.visible),clearInterval(s)}),n+400)}),n)}},he=function(e,t){return pe(!1,e,t)},me=void 0;function ge(e,t){return me||(me=new ue),me.format(e,t)}var ve=Object.freeze({showUnchanged:pe,hideUnchanged:he,default:ue,format:ge}),be=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.includeMoveDestinations=!1,e}return a(t,e),i(t,[{key:"prepareContext",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepareContext",this).call(this,e),e.indent=function(e){this.indentLevel=(this.indentLevel||0)+(void 0===e?1:e),this.indentPad=new Array(this.indentLevel+1).join(" ")},e.row=function(t,n){e.out('<tr><td style="white-space: nowrap;"><pre class="jsondiffpatch-annotated-indent" style="display: inline-block">'),e.out(e.indentPad),e.out('</pre><pre style="display: inline-block">'),e.out(t),e.out('</pre></td><td class="jsondiffpatch-delta-note"><div>'),e.out(n),e.out("</div></td></tr>")}}},{key:"typeFormattterErrorFormatter",value:function(e,t){e.row("",'<pre class="jsondiffpatch-error">'+t+"</pre>")}},{key:"formatTextDiffString",value:function(e,t){var n=this.parseTextDiff(t);e.out('<ul class="jsondiffpatch-textdiff">');for(var o=0,i=n.length;o<i;o++){var r=n[o];e.out('<li><div class="jsondiffpatch-textdiff-location"><span class="jsondiffpatch-textdiff-line-number">'+r.location.line+'</span><span class="jsondiffpatch-textdiff-char">'+r.location.chr+'</span></div><div class="jsondiffpatch-textdiff-line">');for(var a=r.pieces,s=0,l=a.length;s<l;s++){var c=a[s];e.out('<span class="jsondiffpatch-textdiff-'+c.type+'">'+c.text+"</span>")}e.out("</div></li>")}e.out("</ul>")}},{key:"rootBegin",value:function(e,t,n){e.out('<table class="jsondiffpatch-annotated-delta">'),"node"===t&&(e.row("{"),e.indent()),"array"===n&&e.row('"_t": "a",',"Array delta (member names indicate array indices)")}},{key:"rootEnd",value:function(e,t){"node"===t&&(e.indent(-1),e.row("}")),e.out("</table>")}},{key:"nodeBegin",value:function(e,t,n,o,i){e.row("""+t+"": {"),"node"===o&&e.indent(),"array"===i&&e.row('"_t": "a",',"Array delta (member names indicate array indices)")}},{key:"nodeEnd",value:function(e,t,n,o,i,r){"node"===o&&e.indent(-1),e.row("}"+(r?"":","))}},{key:"format_unchanged",value:function(){}},{key:"format_movedestination",value:function(){}},{key:"format_node",value:function(e,t,n){this.formatDeltaChildren(e,t,n)}}]),t}(le),ye=function(e){return'<pre style="display:inline-block">"'+e+""</pre>"},we={added:function(e,t,n,o){var i=" <pre>([newValue])</pre>";return void 0===o?"new value"+i:"number"==typeof o?"insert at index "+o+i:"add property "+ye(o)+i},modified:function(e,t,n,o){var i=" <pre>([previousValue, newValue])</pre>";return void 0===o?"modify value"+i:"number"==typeof o?"modify at index "+o+i:"modify property "+ye(o)+i},deleted:function(e,t,n,o){var i=" <pre>([previousValue, 0, 0])</pre>";return void 0===o?"delete value"+i:"number"==typeof o?"remove index "+o+i:"delete property "+ye(o)+i},moved:function(e,t,n,o){return'move from <span title="(position to remove at original state)">index '+o+'</span> to <span title="(position to insert at final state)">index '+e[1]+"</span>"},textdiff:function(e,t,n,o){return"text diff"+(void 0===o?"":"number"==typeof o?" at index "+o:" at property "+ye(o))+', format is <a href="https://code.google.com/p/google-diff-match-patch/wiki/Unidiff">a variation of Unidiff</a>'}},ke=function(e,t){var n=this.getDeltaType(t),o=we[n],i=o&&o.apply(o,Array.prototype.slice.call(arguments,1)),r=JSON.stringify(t,null,2);"textdiff"===n&&(r=r.split("\\n").join('\\n"+\n "')),e.indent(),e.row(r,i),e.indent(-1)};be.prototype.format_added=ke,be.prototype.format_modified=ke,be.prototype.format_deleted=ke,be.prototype.format_moved=ke,be.prototype.format_textdiff=ke;var xe=void 0;function Ce(e,t){return xe||(xe=new be),xe.format(e,t)}var _e=Object.freeze({default:be,format:Ce}),Se={add:"add",remove:"remove",replace:"replace",move:"move"},Te=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.includeMoveDestinations=!0,e}return a(t,e),i(t,[{key:"prepareContext",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepareContext",this).call(this,e),e.result=[],e.path=[],e.pushCurrentOp=function(e){var t=e.op,n=e.value,o={op:t,path:this.currentPath()};void 0!==n&&(o.value=n),this.result.push(o)},e.pushMoveOp=function(e){var t=this.currentPath();this.result.push({op:Se.move,from:t,path:this.toPath(e)})},e.currentPath=function(){return"/"+this.path.join("/")},e.toPath=function(e){var t=this.path.slice();return t[t.length-1]=e,"/"+t.join("/")}}},{key:"typeFormattterErrorFormatter",value:function(e,t){e.out("[ERROR] "+t)}},{key:"rootBegin",value:function(){}},{key:"rootEnd",value:function(){}},{key:"nodeBegin",value:function(e,t,n){e.path.push(n)}},{key:"nodeEnd",value:function(e){e.path.pop()}},{key:"format_unchanged",value:function(){}},{key:"format_movedestination",value:function(){}},{key:"format_node",value:function(e,t,n){this.formatDeltaChildren(e,t,n)}},{key:"format_added",value:function(e,t){e.pushCurrentOp({op:Se.add,value:t[0]})}},{key:"format_modified",value:function(e,t){e.pushCurrentOp({op:Se.replace,value:t[1]})}},{key:"format_deleted",value:function(e){e.pushCurrentOp({op:Se.remove})}},{key:"format_moved",value:function(e,t){var n=t[1];e.pushMoveOp(n)}},{key:"format_textdiff",value:function(){throw new Error("Not implemented")}},{key:"format",value:function(e,t){var n={};return this.prepareContext(n),this.recurse(n,e,t),n.result}}]),t}(le),$e=function(e){return e[e.length-1]},Ee=function(e,t){return e.sort(t),e},Ie=function(e,t){var n=parseInt(e,10),o=parseInt(t,10);return isNaN(n)||isNaN(o)?0:o-n},Me=function(e){return Ee(e,(function(e,t){var n=e.path.split("/"),o=t.path.split("/");return n.length!==o.length?n.length-o.length:Ie($e(n),$e(o))}))},Ae=function(e,t){var n=Array(t.length+1).fill().map((function(){return[]}));return e.map((function(e){var n=t.map((function(t){return t(e)})).indexOf(!0);return n<0&&(n=t.length),{item:e,position:n}})).reduce((function(e,t){return e[t.position].push(t.item),e}),n)},Oe=function(e){return"move"===e.op},Pe=function(e){return"remove"===e.op},Le=function(e){var t=Ae(e,[Oe,Pe]),n=l(t,3),o=n[0],i=n[1],r=n[2],a=Me(i);return[].concat(c(a),c(o),c(r))},De=void 0,Ne=function(e,t){return De||(De=new Te),Le(De.format(e,t))},je=function(e,t){console.log(Ne(e,t))},Ve=Object.freeze({default:Te,partitionOps:Ae,format:Ne,log:je});function Fe(e){return t&&t[e]||function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}}var Re={added:Fe("green"),deleted:Fe("red"),movedestination:Fe("gray"),moved:Fe("yellow"),unchanged:Fe("gray"),error:Fe("white.bgRed"),textDiffLine:Fe("gray")},qe=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.includeMoveDestinations=!1,e}return a(t,e),i(t,[{key:"prepareContext",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepareContext",this).call(this,e),e.indent=function(e){this.indentLevel=(this.indentLevel||0)+(void 0===e?1:e),this.indentPad=new Array(this.indentLevel+1).join(" "),this.outLine()},e.outLine=function(){this.buffer.push("\n"+(this.indentPad||""))},e.out=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o=0,i=t.length;o<i;o++){var r=t[o].split("\n").join("\n"+(this.indentPad||""));this.color&&this.color[0]&&(r=this.color[0](r)),this.buffer.push(r)}},e.pushColor=function(e){this.color=this.color||[],this.color.unshift(e)},e.popColor=function(){this.color=this.color||[],this.color.shift()}}},{key:"typeFormattterErrorFormatter",value:function(e,t){e.pushColor(Re.error),e.out("[ERROR]"+t),e.popColor()}},{key:"formatValue",value:function(e,t){e.out(JSON.stringify(t,null,2))}},{key:"formatTextDiffString",value:function(e,t){var n=this.parseTextDiff(t);e.indent();for(var o=0,i=n.length;o<i;o++){var r=n[o];e.pushColor(Re.textDiffLine),e.out(r.location.line+","+r.location.chr+" "),e.popColor();for(var a=r.pieces,s=0,l=a.length;s<l;s++){var c=a[s];e.pushColor(Re[c.type]),e.out(c.text),e.popColor()}o<i-1&&e.outLine()}e.indent(-1)}},{key:"rootBegin",value:function(e,t,n){e.pushColor(Re[t]),"node"===t&&(e.out("array"===n?"[":"{"),e.indent())}},{key:"rootEnd",value:function(e,t,n){"node"===t&&(e.indent(-1),e.out("array"===n?"]":"}")),e.popColor()}},{key:"nodeBegin",value:function(e,t,n,o,i){e.pushColor(Re[o]),e.out(n+": "),"node"===o&&(e.out("array"===i?"[":"{"),e.indent())}},{key:"nodeEnd",value:function(e,t,n,o,i,r){"node"===o&&(e.indent(-1),e.out("array"===i?"]":"}"+(r?"":","))),r||e.outLine(),e.popColor()}},{key:"format_unchanged",value:function(e,t,n){void 0!==n&&this.formatValue(e,n)}},{key:"format_movedestination",value:function(e,t,n){void 0!==n&&this.formatValue(e,n)}},{key:"format_node",value:function(e,t,n){this.formatDeltaChildren(e,t,n)}},{key:"format_added",value:function(e,t){this.formatValue(e,t[0])}},{key:"format_modified",value:function(e,t){e.pushColor(Re.deleted),this.formatValue(e,t[0]),e.popColor(),e.out(" => "),e.pushColor(Re.added),this.formatValue(e,t[1]),e.popColor()}},{key:"format_deleted",value:function(e,t){this.formatValue(e,t[0])}},{key:"format_moved",value:function(e,t){e.out("==> "+t[1])}},{key:"format_textdiff",value:function(e,t){this.formatTextDiffString(e,t[0])}}]),t}(le),Be=void 0,ze=function(e,t){return Be||(Be=new qe),Be.format(e,t)};function He(e,t){console.log(ze(e,t))}var We=Object.freeze({default:qe,format:ze,log:He}),Ue=Object.freeze({base:ce,html:ve,annotated:_e,jsonpatch:Ve,console:We});function Ke(e,t){var n=void 0;return"string"==typeof t&&(n=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d*))?(Z|([+-])(\d{2}):(\d{2}))$/.exec(t))?new Date(Date.UTC(+n[1],+n[2]-1,+n[3],+n[4],+n[5],+n[6],+(n[7]||0))):t}function Ge(e){return new ne(e)}var Ze=void 0;function Je(){return Ze||(Ze=new ne),Ze.diff.apply(Ze,arguments)}function Ye(){return Ze||(Ze=new ne),Ze.patch.apply(Ze,arguments)}function Qe(){return Ze||(Ze=new ne),Ze.unpatch.apply(Ze,arguments)}function Xe(){return Ze||(Ze=new ne),Ze.reverse.apply(Ze,arguments)}function et(){return Ze||(Ze=new ne),Ze.clone.apply(Ze,arguments)}e.DiffPatcher=ne,e.formatters=Ue,e.console=We,e.create=Ge,e.dateReviver=Ke,e.diff=Je,e.patch=Ye,e.unpatch=Qe,e.reverse=Xe,e.clone=et,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2837))},2946:function(e,t,n){"use strict";var o={};n.r(o),n.d(o,{BaseTransition:function(){return jo},BaseTransitionPropsValidators:function(){return Do},Comment:function(){return Kr},DeprecationTypes:function(){return as},EffectScope:function(){return ge},ErrorCodes:function(){return fn},ErrorTypeStrings:function(){return es},Fragment:function(){return Wr},KeepAlive:function(){return Jo},ReactiveEffect:function(){return ke},Static:function(){return Gr},Suspense:function(){return fo},Teleport:function(){return zr},Text:function(){return Ur},TrackOpTypes:function(){return cn},Transition:function(){return ps},TransitionGroup:function(){return sl},TriggerOpTypes:function(){return un},VueElement:function(){return el},assertNumber:function(){return dn},callWithAsyncErrorHandling:function(){return mn},callWithErrorHandling:function(){return hn},camelize:function(){return D},capitalize:function(){return V},cloneVNode:function(){return ha},compatUtils:function(){return rs},computed:function(){return Ua},createApp:function(){return Vl},createBlock:function(){return ia},createCommentVNode:function(){return va},createElementBlock:function(){return oa},createElementVNode:function(){return ua},createHydrationRenderer:function(){return Mr},createPropsRestProxy:function(){return Fi},createRenderer:function(){return Ir},createSSRApp:function(){return Fl},createSlots:function(){return vi},createStaticVNode:function(){return ga},createTextVNode:function(){return ma},createVNode:function(){return da},customRef:function(){return nn},defineAsyncComponent:function(){return Uo},defineComponent:function(){return Ho},defineCustomElement:function(){return Ys},defineEmits:function(){return $i},defineExpose:function(){return Ei},defineModel:function(){return Ai},defineOptions:function(){return Ii},defineProps:function(){return Ti},defineSSRCustomElement:function(){return Qs},defineSlots:function(){return Mi},devtools:function(){return ts},effect:function(){return Te},effectScope:function(){return ve},getCurrentInstance:function(){return $a},getCurrentScope:function(){return ye},getTransitionRawChildren:function(){return zo},guardReactiveProps:function(){return pa},h:function(){return Ga},handleError:function(){return gn},hasInjectionContext:function(){return rr},hydrate:function(){return jl},initCustomFormatter:function(){return Za},initDirectivesForSSR:function(){return zl},inject:function(){return ir},isMemoSame:function(){return Ya},isProxy:function(){return Nt},isReactive:function(){return Pt},isReadonly:function(){return Lt},isRef:function(){return Wt},isRuntimeOnly:function(){return Fa},isShallow:function(){return Dt},isVNode:function(){return ra},markRaw:function(){return Vt},mergeDefaults:function(){return ji},mergeModels:function(){return Vi},mergeProps:function(){return ka},nextTick:function(){return Tn},normalizeClass:function(){return ee},normalizeProps:function(){return te},normalizeStyle:function(){return Z},onActivated:function(){return Qo},onBeforeMount:function(){return ai},onBeforeUnmount:function(){return ui},onBeforeUpdate:function(){return li},onDeactivated:function(){return Xo},onErrorCaptured:function(){return mi},onMounted:function(){return si},onRenderTracked:function(){return hi},onRenderTriggered:function(){return pi},onScopeDispose:function(){return we},onServerPrefetch:function(){return fi},onUnmounted:function(){return di},onUpdated:function(){return ci},openBlock:function(){return Yr},popScopeId:function(){return Wn},provide:function(){return or},proxyRefs:function(){return en},pushScopeId:function(){return Hn},queuePostFlushCb:function(){return In},reactive:function(){return Et},readonly:function(){return Mt},ref:function(){return Ut},registerRuntimeCompiler:function(){return Va},render:function(){return Nl},renderList:function(){return gi},renderSlot:function(){return bi},resolveComponent:function(){return no},resolveDirective:function(){return ro},resolveDynamicComponent:function(){return io},resolveFilter:function(){return is},resolveTransitionHooks:function(){return Fo},setBlockTracking:function(){return ta},setDevtoolsHook:function(){return ns},setTransitionHooks:function(){return Bo},shallowReactive:function(){return It},shallowReadonly:function(){return At},shallowRef:function(){return Kt},ssrContextKey:function(){return bo},ssrUtils:function(){return os},stop:function(){return $e},toDisplayString:function(){return de},toHandlerKey:function(){return F},toHandlers:function(){return wi},toRaw:function(){return jt},toRef:function(){return sn},toRefs:function(){return on},toValue:function(){return Qt},transformVNodeArgs:function(){return sa},triggerRef:function(){return Jt},unref:function(){return Yt},useAttrs:function(){return Li},useCssModule:function(){return tl},useCssVars:function(){return Ls},useModel:function(){return Ka},useSSRContext:function(){return yo},useSlots:function(){return Pi},useTransitionState:function(){return Po},vModelCheckbox:function(){return gl},vModelDynamic:function(){return Cl},vModelRadio:function(){return bl},vModelSelect:function(){return yl},vModelText:function(){return ml},vShow:function(){return As},version:function(){return Qa},warn:function(){return Xa},watch:function(){return _o},watchEffect:function(){return wo},watchPostEffect:function(){return ko},watchSyncEffect:function(){return xo},withAsyncContext:function(){return Ri},withCtx:function(){return Kn},withDefaults:function(){return Oi},withDirectives:function(){return Io},withKeys:function(){return Ml},withMemo:function(){return Ja},withModifiers:function(){return El},withScopeId:function(){return Un}});var i={};n.r(i),n.d(i,{activeClass:function(){return Rf},activeElement:function(){return Bf},dynamicArea:function(){return zf},dynamicElements:function(){return Hf},globalClasses:function(){return Ff},globalVariables:function(){return qf},headerClasses:function(){return Jf},headerPosition:function(){return Zf},headerSettings:function(){return Gf},importHasDnDSupport:function(){return Kf},isMobileFirst:function(){return Yf},previewScale:function(){return Uf},rootElements:function(){return Wf}});var r={};
/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */
function a(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(r),n.d(r,{addNewChildren:function(){return op},addNewElement:function(){return np},addToStore:function(){return tp},cloneElement:function(){return ip},convertEmptySettings:function(){return vp},copyElements:function(){return bp},createElement:function(){return ep},deleteConfirmation:function(){return ap},deleteElement:function(){return sp},elementHasCssGrid:function(){return pp},getDynamicElementById:function(){return dp},getElementChildren:function(){return fp},getElementId:function(){return up},getElementNode:function(){return gp},getIframeDoc:function(){return mp},getIframeWindow:function(){return hp},getTemplateElements:function(){return Sp},isCloneable:function(){return lp},isDeletable:function(){return cp},isNavMenuInsideDropdown:function(){return _p},isShortcutModifier:function(){return Cp},isValidCssSelector:function(){return xp},pasteElements:function(){return yp},unlinkGlobalElement:function(){return kp},wrapInNestable:function(){return rp}});const s={},l=[],c=()=>{},u=()=>!1,d=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),f=e=>e.startsWith("onUpdate:"),p=Object.assign,h=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},m=Object.prototype.hasOwnProperty,g=(e,t)=>m.call(e,t),v=Array.isArray,b=e=>"[object Map]"===$(e),y=e=>"[object Set]"===$(e),w=e=>"[object Date]"===$(e),k=e=>"function"==typeof e,x=e=>"string"==typeof e,C=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,S=e=>(_(e)||k(e))&&k(e.then)&&k(e.catch),T=Object.prototype.toString,$=e=>T.call(e),E=e=>$(e).slice(8,-1),I=e=>"[object Object]"===$(e),M=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=a(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),O=a("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),P=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},L=/-(\w)/g,D=P((e=>e.replace(L,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,j=P((e=>e.replace(N,"-$1").toLowerCase())),V=P((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=P((e=>e?`on${V(e)}`:"")),R=(e,t)=>!Object.is(e,t),q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},B=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},z=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=x(e)?Number(e):NaN;return isNaN(t)?e:t};let W;const U=()=>W||(W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const K={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},G=a("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function Z(e){if(v(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=x(o)?X(o):Z(o);if(i)for(const e in i)t[e]=i[e]}return t}if(x(e)||_(e))return e}const J=/;(?![^(]*\))/g,Y=/:([^]+)/,Q=/\/\*[^]*?\*\//g;function X(e){const t={};return e.replace(Q,"").split(J).forEach((e=>{if(e){const n=e.split(Y);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ee(e){let t="";if(x(e))t=e;else if(v(e))for(let n=0;n<e.length;n++){const o=ee(e[n]);o&&(t+=o+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function te(e){if(!e)return null;let{class:t,style:n}=e;return t&&!x(t)&&(e.class=ee(t)),n&&(e.style=Z(n)),e}const ne=a("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),oe=a("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),ie=a("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),re=a("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),ae="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",se=a(ae);function le(e){return!!e||""===e}function ce(e,t){if(e===t)return!0;let n=w(e),o=w(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=C(e),o=C(t),n||o)return e===t;if(n=v(e),o=v(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ce(e[o],t[o]);return n}(e,t);if(n=_(e),o=_(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(o&&!i||!o&&i||!ce(e[n],t[n]))return!1}}return String(e)===String(t)}function ue(e,t){return e.findIndex((e=>ce(e,t)))}const de=e=>x(e)?e:null==e?"":v(e)||_(e)&&(e.toString===T||!k(e.toString))?JSON.stringify(e,fe,2):String(e),fe=(e,t)=>t&&t.__v_isRef?fe(e,t.value):b(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[pe(t,o)+" =>"]=n,e)),{})}:y(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>pe(e)))}:C(t)?pe(t):!_(t)||v(t)||I(t)?t:String(t),pe=(e,t="")=>{var n;return C(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let he,me;class ge{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!e&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=he;try{return he=this,e()}finally{he=t}}else 0}on(){he=this}off(){he=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function ve(e){return new ge(e)}function be(e,t=he){t&&t.active&&t.effects.push(e)}function ye(){return he}function we(e){he&&he.cleanups.push(e)}class ke{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,be(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Ae();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(xe(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Oe()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ee,t=me;try{return Ee=!0,me=this,this._runnings++,Ce(this),this.fn()}finally{_e(this),this._runnings--,me=t,Ee=e}}stop(){this.active&&(Ce(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function xe(e){return e.value}function Ce(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Se(e.deps[t],e);e.deps.length=e._depsLength}}function Se(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function Te(e,t){e.effect instanceof ke&&(e=e.effect.fn);const n=new ke(e,c,(()=>{n.dirty&&n.run()}));t&&(p(n,t),t.scope&&be(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function $e(e){e.effect.stop()}let Ee=!0,Ie=0;const Me=[];function Ae(){Me.push(Ee),Ee=!1}function Oe(){const e=Me.pop();Ee=void 0===e||e}function Pe(){Ie++}function Le(){for(Ie--;!Ie&&Ne.length;)Ne.shift()()}function De(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Se(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ne=[];function je(e,t,n){Pe();for(const n of e.keys()){let o;n._dirtyLevel<t&&(null!=o?o:o=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=o?o:o=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&Ne.push(n.scheduler)))}Le()}const Ve=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Fe=new WeakMap,Re=Symbol(""),qe=Symbol("");function Be(e,t,n){if(Ee&&me){let t=Fe.get(e);t||Fe.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Ve((()=>t.delete(n)))),De(me,o)}}function ze(e,t,n,o,i,r){const a=Fe.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&v(e)){const e=Number(o);a.forEach(((t,n)=>{("length"===n||!C(n)&&n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":v(e)?M(n)&&s.push(a.get("length")):(s.push(a.get(Re)),b(e)&&s.push(a.get(qe)));break;case"delete":v(e)||(s.push(a.get(Re)),b(e)&&s.push(a.get(qe)));break;case"set":b(e)&&s.push(a.get(Re))}Pe();for(const e of s)e&&je(e,4);Le()}const He=a("__proto__,__v_isRef,__isVue"),We=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(C)),Ue=Ke();function Ke(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=jt(this);for(let e=0,t=this.length;e<t;e++)Be(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(jt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Ae(),Pe();const n=jt(this)[t].apply(this,e);return Le(),Oe(),n}})),e}function Ge(e){C(e)||(e=String(e));const t=jt(this);return Be(t,0,e),t.hasOwnProperty(e)}class Ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?$t:Tt:i?St:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=v(e);if(!o){if(r&&g(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return Ge}const a=Reflect.get(e,t,n);return(C(t)?We.has(t):He(t))?a:(o||Be(e,0,t),i?a:Wt(a)?r&&M(t)?a:a.value:_(a)?o?Mt(a):Et(a):a)}}class Je extends Ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=Lt(i);if(Dt(n)||Lt(n)||(i=jt(i),n=jt(n)),!v(e)&&Wt(i)&&!Wt(n))return!t&&(i.value=n,!0)}const r=v(e)&&M(t)?Number(t)<e.length:g(e,t),a=Reflect.set(e,t,n,o);return e===jt(o)&&(r?R(n,i)&&ze(e,"set",t,n):ze(e,"add",t,n)),a}deleteProperty(e,t){const n=g(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&ze(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return C(t)&&We.has(t)||Be(e,0,t),n}ownKeys(e){return Be(e,0,v(e)?"length":Re),Reflect.ownKeys(e)}}class Ye extends Ze{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Qe=new Je,Xe=new Ye,et=new Je(!0),tt=new Ye(!0),nt=e=>e,ot=e=>Reflect.getPrototypeOf(e);function it(e,t,n=!1,o=!1){const i=jt(e=e.__v_raw),r=jt(t);n||(R(t,r)&&Be(i,0,t),Be(i,0,r));const{has:a}=ot(i),s=o?nt:n?Rt:Ft;return a.call(i,t)?s(e.get(t)):a.call(i,r)?s(e.get(r)):void(e!==i&&e.get(t))}function rt(e,t=!1){const n=this.__v_raw,o=jt(n),i=jt(e);return t||(R(e,i)&&Be(o,0,e),Be(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function at(e,t=!1){return e=e.__v_raw,!t&&Be(jt(e),0,Re),Reflect.get(e,"size",e)}function st(e){e=jt(e);const t=jt(this);return ot(t).has.call(t,e)||(t.add(e),ze(t,"add",e,e)),this}function lt(e,t){t=jt(t);const n=jt(this),{has:o,get:i}=ot(n);let r=o.call(n,e);r||(e=jt(e),r=o.call(n,e));const a=i.call(n,e);return n.set(e,t),r?R(t,a)&&ze(n,"set",e,t):ze(n,"add",e,t),this}function ct(e){const t=jt(this),{has:n,get:o}=ot(t);let i=n.call(t,e);i||(e=jt(e),i=n.call(t,e));o&&o.call(t,e);const r=t.delete(e);return i&&ze(t,"delete",e,void 0),r}function ut(){const e=jt(this),t=0!==e.size,n=e.clear();return t&&ze(e,"clear",void 0,void 0),n}function dt(e,t){return function(n,o){const i=this,r=i.__v_raw,a=jt(r),s=t?nt:e?Rt:Ft;return!e&&Be(a,0,Re),r.forEach(((e,t)=>n.call(o,s(e),s(t),i)))}}function ft(e,t,n){return function(...o){const i=this.__v_raw,r=jt(i),a=b(r),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=i[e](...o),u=n?nt:t?Rt:Ft;return!t&&Be(r,0,l?qe:Re),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ht(){const e={get(e){return it(this,e)},get size(){return at(this)},has:rt,add:st,set:lt,delete:ct,clear:ut,forEach:dt(!1,!1)},t={get(e){return it(this,e,!1,!0)},get size(){return at(this)},has:rt,add:st,set:lt,delete:ct,clear:ut,forEach:dt(!1,!0)},n={get(e){return it(this,e,!0)},get size(){return at(this,!0)},has(e){return rt.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:dt(!0,!1)},o={get(e){return it(this,e,!0,!0)},get size(){return at(this,!0)},has(e){return rt.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:dt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=ft(i,!1,!1),n[i]=ft(i,!0,!1),t[i]=ft(i,!1,!0),o[i]=ft(i,!0,!0)})),[e,n,t,o]}const[mt,gt,vt,bt]=ht();function yt(e,t){const n=t?e?bt:vt:e?gt:mt;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(g(n,o)&&o in t?n:t,o,i)}const wt={get:yt(!1,!1)},kt={get:yt(!1,!0)},xt={get:yt(!0,!1)},Ct={get:yt(!0,!0)};const _t=new WeakMap,St=new WeakMap,Tt=new WeakMap,$t=new WeakMap;function Et(e){return Lt(e)?e:Ot(e,!1,Qe,wt,_t)}function It(e){return Ot(e,!1,et,kt,St)}function Mt(e){return Ot(e,!0,Xe,xt,Tt)}function At(e){return Ot(e,!0,tt,Ct,$t)}function Ot(e,t,n,o,i){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(E(s));var s;if(0===a)return e;const l=new Proxy(e,2===a?o:n);return i.set(e,l),l}function Pt(e){return Lt(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function Lt(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Nt(e){return!!e&&!!e.__v_raw}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Vt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Ft=e=>_(e)?Et(e):e,Rt=e=>_(e)?Mt(e):e;class qt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ke((()=>e(this._value)),(()=>Ht(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=jt(this);return e._cacheable&&!e.effect.dirty||!R(e._value,e._value=e.effect.run())||Ht(e,4),zt(e),e.effect._dirtyLevel>=2&&Ht(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Bt(e,t,n=!1){let o,i;const r=k(e);r?(o=e,i=c):(o=e.get,i=e.set);return new qt(o,i,r||!i,n)}function zt(e){var t;Ee&&me&&(e=jt(e),De(me,null!=(t=e.dep)?t:e.dep=Ve((()=>e.dep=void 0),e instanceof qt?e:void 0)))}function Ht(e,t=4,n){const o=(e=jt(e)).dep;o&&je(o,t)}function Wt(e){return!(!e||!0!==e.__v_isRef)}function Ut(e){return Gt(e,!1)}function Kt(e){return Gt(e,!0)}function Gt(e,t){return Wt(e)?e:new Zt(e,t)}class Zt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:jt(e),this._value=t?e:Ft(e)}get value(){return zt(this),this._value}set value(e){const t=this.__v_isShallow||Dt(e)||Lt(e);e=t?e:jt(e),R(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ft(e),Ht(this,4))}}function Jt(e){Ht(e,4)}function Yt(e){return Wt(e)?e.value:e}function Qt(e){return k(e)?e():Yt(e)}const Xt={get:(e,t,n)=>Yt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Wt(i)&&!Wt(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function en(e){return Pt(e)?e:new Proxy(e,Xt)}class tn{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>zt(this)),(()=>Ht(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function nn(e){return new tn(e)}function on(e){const t=v(e)?new Array(e.length):{};for(const n in e)t[n]=ln(e,n);return t}class rn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Fe.get(e);return n&&n.get(t)}(jt(this._object),this._key)}}class an{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function sn(e,t,n){return Wt(e)?e:k(e)?new an(e):_(e)&&arguments.length>1?ln(e,t,n):Ut(e)}function ln(e,t,n){const o=e[t];return Wt(o)?o:new rn(e,t,n)}const cn={GET:"get",HAS:"has",ITERATE:"iterate"},un={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function dn(e,t){}const fn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},pn={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function hn(e,t,n,o){try{return o?e(...o):e()}catch(e){gn(e,t,n)}}function mn(e,t,n,o){if(k(e)){const i=hn(e,t,n,o);return i&&S(i)&&i.catch((e=>{gn(e,t,n)})),i}if(v(e)){const i=[];for(let r=0;r<e.length;r++)i.push(mn(e[r],t,n,o));return i}}function gn(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const i=t.proxy,r=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,r))return;o=o.parent}const a=t.appContext.config.errorHandler;if(a)return Ae(),hn(a,null,10,[e,i,r]),void Oe()}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let vn=!1,bn=!1;const yn=[];let wn=0;const kn=[];let xn=null,Cn=0;const _n=Promise.resolve();let Sn=null;function Tn(e){const t=Sn||_n;return e?t.then(this?e.bind(this):e):t}function $n(e){yn.length&&yn.includes(e,vn&&e.allowRecurse?wn+1:wn)||(null==e.id?yn.push(e):yn.splice(function(e){let t=wn+1,n=yn.length;for(;t<n;){const o=t+n>>>1,i=yn[o],r=On(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}(e.id),0,e),En())}function En(){vn||bn||(bn=!0,Sn=_n.then(Ln))}function In(e){v(e)?kn.push(...e):xn&&xn.includes(e,e.allowRecurse?Cn+1:Cn)||kn.push(e),En()}function Mn(e,t,n=(vn?wn+1:0)){for(0;n<yn.length;n++){const t=yn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;0,yn.splice(n,1),n--,t()}}}function An(e){if(kn.length){const e=[...new Set(kn)].sort(((e,t)=>On(e)-On(t)));if(kn.length=0,xn)return void xn.push(...e);for(xn=e,Cn=0;Cn<xn.length;Cn++)xn[Cn]();xn=null,Cn=0}}const On=e=>null==e.id?1/0:e.id,Pn=(e,t)=>{const n=On(e)-On(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ln(e){bn=!1,vn=!0,yn.sort(Pn);try{for(wn=0;wn<yn.length;wn++){const e=yn[wn];e&&!1!==e.active&&hn(e,null,14)}}finally{wn=0,yn.length=0,An(),vn=!1,Sn=null,(yn.length||kn.length)&&Ln(e)}}let Dn,Nn=[],jn=!1;function Vn(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||s;let i=n;const r=t.startsWith("update:"),a=r&&t.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:r}=o[e]||s;r&&(i=n.map((e=>x(e)?e.trim():e))),t&&(i=n.map(z))}let l;let c=o[l=F(t)]||o[l=F(D(t))];!c&&r&&(c=o[l=F(j(t))]),c&&mn(c,e,6,i);const u=o[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,mn(u,e,6,i)}}function Fn(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const r=e.emits;let a={},s=!1;if(!k(e)){const o=e=>{const n=Fn(e,t,!0);n&&(s=!0,p(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return r||s?(v(r)?r.forEach((e=>a[e]=null)):p(a,r),_(e)&&o.set(e,a),a):(_(e)&&o.set(e,null),null)}function Rn(e,t){return!(!e||!d(t))&&(t=t.slice(2).replace(/Once$/,""),g(e,t[0].toLowerCase()+t.slice(1))||g(e,j(t))||g(e,t))}let qn=null,Bn=null;function zn(e){const t=qn;return qn=e,Bn=e&&e.type.__scopeId||null,t}function Hn(e){Bn=e}function Wn(){Bn=null}const Un=e=>Kn;function Kn(e,t=qn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&ta(-1);const i=zn(t);let r;try{r=e(...n)}finally{zn(i),o._d&&ta(1)}return r};return o._n=!0,o._c=!0,o._d=!0,o}function Gn(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:p,setupState:h,ctx:m,inheritAttrs:g}=e,v=zn(e);let b,y;try{if(4&n.shapeFlag){const e=i||o,t=e;b=ba(c.call(t,e,u,d,h,p,m)),y=s}else{const e=t;0,b=ba(e.length>1?e(d,{attrs:s,slots:a,emit:l}):e(d,null)),y=t.props?s:Jn(s)}}catch(t){Zr.length=0,gn(t,e,1),b=da(Kr)}let w=b;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(r&&e.some(f)&&(y=Yn(y,r)),w=ha(w,y,!1,!0))}return n.dirs&&(w=ha(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,zn(v),b}function Zn(e,t=!0){let n;for(let t=0;t<e.length;t++){const o=e[t];if(!ra(o))return;if(o.type!==Kr||"v-if"===o.children){if(n)return;n=o}}return n}const Jn=e=>{let t;for(const n in e)("class"===n||"style"===n||d(n))&&((t||(t={}))[n]=e[n]);return t},Yn=(e,t)=>{const n={};for(const o in e)f(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Qn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Rn(n,r))return!0}return!1}function Xn({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}const eo="components",to="directives";function no(e,t){return ao(eo,e,!0,t)||e}const oo=Symbol.for("v-ndc");function io(e){return x(e)?ao(eo,e,!1)||e:e||oo}function ro(e){return ao(to,e)}function ao(e,t,n=!0,o=!1){const i=qn||Ta;if(i){const n=i.type;if(e===eo){const e=Ha(n,!1);if(e&&(e===t||e===D(t)||e===V(D(t))))return n}const r=so(i[e]||n[e],t)||so(i.appContext[e],t);return!r&&o?n:r}}function so(e,t){return e&&(e[t]||e[D(t)]||e[V(D(t))])}const lo=e=>e.__isSuspense;let co=0;const uo={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,r,a,s,l,c){if(null==e)!function(e,t,n,o,i,r,a,s,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=ho(e,i,o,t,d,n,r,a,s,l);c(null,f.pendingBranch=e.ssContent,d,null,o,f,r,a),f.deps>0?(po(e,"onPending"),po(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,r,a),vo(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,o,i,r,a,s,l,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,i,r,a,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=f,aa(f,m)?(l(m,f,d.hiddenContainer,null,i,d,r,a,s),d.deps<=0?d.resolve():g&&(v||(l(h,p,n,o,i,null,r,a,s),vo(d,p)))):(d.pendingId=co++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,f,d.hiddenContainer,null,i,d,r,a,s),d.deps<=0?d.resolve():(l(h,p,n,o,i,null,r,a,s),vo(d,p))):h&&aa(f,h)?(l(h,f,n,o,i,d,r,a,s),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,r,a,s),d.deps<=0&&d.resolve()));else if(h&&aa(f,h))l(h,f,n,o,i,d,r,a,s),vo(d,f);else if(po(t,"onPending"),d.pendingBranch=f,512&f.shapeFlag?d.pendingId=f.component.suspenseId:d.pendingId=co++,l(null,f,d.hiddenContainer,null,i,d,r,a,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(p)}),e):0===e&&d.fallback(p)}}(e,t,n,o,i,a,s,l,c)}},hydrate:function(e,t,n,o,i,r,a,s,l){const c=t.suspense=ho(t,o,n,e.parentNode,document.createElement("div"),null,i,r,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,r,a);0===c.deps&&c.resolve(!1,!0);return u},create:ho,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=mo(o?n.default:n),e.ssFallback=o?mo(n.fallback):da(Kr)}},fo=uo;function po(e,t){const n=e.props&&e.props[t];k(n)&&n()}function ho(e,t,n,o,i,r,a,s,l,c,u=!1){const{p:d,m:f,um:p,n:h,o:{parentNode:m,remove:g}}=c;let v;const b=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);b&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?H(e.props.timeout):void 0;const w=r,k={vnode:e,parent:t,parentComponent:n,namespace:a,container:o,hiddenContainer:i,deps:0,pendingId:co++,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:i,pendingBranch:a,pendingId:s,effects:l,parentComponent:c,container:u}=k;let d=!1;k.isHydrating?k.isHydrating=!1:e||(d=i&&a.transition&&"out-in"===a.transition.mode,d&&(i.transition.afterLeave=()=>{s===k.pendingId&&(f(a,u,r===w?h(i):r,0),In(l))}),i&&(m(i.el)!==k.hiddenContainer&&(r=h(i)),p(i,c,k,!0)),d||f(a,u,r,0)),vo(k,a),k.pendingBranch=null,k.isInFallback=!1;let g=k.parent,y=!1;for(;g;){if(g.pendingBranch){g.effects.push(...l),y=!0;break}g=g.parent}y||d||In(l),k.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),po(o,"onResolve")},fallback(e){if(!k.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:i,namespace:r}=k;po(t,"onFallback");const a=h(n),c=()=>{k.isInFallback&&(d(null,e,i,a,o,null,r,s,l),vo(k,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),k.isInFallback=!0,p(n,o,null,!0),u||c()},move(e,t,n){k.activeBranch&&f(k.activeBranch,e,t,n),k.container=e},next(){return k.activeBranch&&h(k.activeBranch)},registerDep(e,t){const n=!!k.pendingBranch;n&&k.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{gn(t,e,0)})).then((i=>{if(e.isUnmounted||k.isUnmounted||k.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:r}=e;ja(e,i,!1),o&&(r.el=o);const s=!o&&e.subTree.el;t(e,r,m(o||e.subTree.el),o?null:h(e.subTree),k,a,l),s&&g(s),Xn(e,r.el),n&&0==--k.deps&&k.resolve()}))},unmount(e,t){k.isUnmounted=!0,k.activeBranch&&p(k.activeBranch,n,e,t),k.pendingBranch&&p(k.pendingBranch,n,e,t)}};return k}function mo(e){let t;if(k(e)){const n=ea&&e._c;n&&(e._d=!1,Yr()),e=e(),n&&(e._d=!0,t=Jr,Qr())}if(v(e)){const t=Zn(e);0,e=t}return e=ba(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function go(e,t){t&&t.pendingBranch?v(e)?t.effects.push(...e):t.effects.push(e):In(e)}function vo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,o&&o.subTree===n&&(o.vnode.el=i,Xn(o,i))}const bo=Symbol.for("v-scx"),yo=()=>{{const e=ir(bo);return e}};function wo(e,t){return So(e,null,t)}function ko(e,t){return So(e,null,{flush:"post"})}function xo(e,t){return So(e,null,{flush:"sync"})}const Co={};function _o(e,t,n){return So(e,t,n)}function So(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:a,onTrigger:l}=s){if(t&&r){const e=t;t=(...t)=>{e(...t),T()}}const u=Ta,d=e=>!0===o?e:Eo(e,!1===o?1:void 0);let f,p,m=!1,g=!1;if(Wt(e)?(f=()=>e.value,m=Dt(e)):Pt(e)?(f=()=>d(e),m=!0):v(e)?(g=!0,m=e.some((e=>Pt(e)||Dt(e))),f=()=>e.map((e=>Wt(e)?e.value:Pt(e)?d(e):k(e)?hn(e,u,2):void 0))):f=k(e)?t?()=>hn(e,u,2):()=>(p&&p(),mn(e,u,3,[y])):c,t&&o){const e=f;f=()=>Eo(e())}let b,y=e=>{p=_.onStop=()=>{hn(e,u,4),p=_.onStop=void 0}};if(Da){if(y=c,t?n&&mn(t,u,3,[f(),g?[]:void 0,y]):f(),"sync"!==i)return c;{const e=yo();b=e.__watcherHandles||(e.__watcherHandles=[])}}let w=g?new Array(e.length).fill(Co):Co;const x=()=>{if(_.active&&_.dirty)if(t){const e=_.run();(o||m||(g?e.some(((e,t)=>R(e,w[t]))):R(e,w)))&&(p&&p(),mn(t,u,3,[e,w===Co?void 0:g&&w[0]===Co?[]:w,y]),w=e)}else _.run()};let C;x.allowRecurse=!!t,"sync"===i?C=x:"post"===i?C=()=>Er(x,u&&u.suspense):(x.pre=!0,u&&(x.id=u.uid),C=()=>$n(x));const _=new ke(f,c,C),S=ye(),T=()=>{_.stop(),S&&h(S.effects,_)};return t?n?x():w=_.run():"post"===i?Er(_.run.bind(_),u&&u.suspense):_.run(),b&&b.push(T),T}function To(e,t,n){const o=this.proxy,i=x(e)?e.includes(".")?$o(o,e):()=>o[e]:e.bind(o,o);let r;k(t)?r=t:(r=t.handler,n=t);const a=Ma(this),s=So(i,r.bind(o),n);return a(),s}function $o(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Eo(e,t=1/0,n){if(t<=0||!_(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Wt(e))Eo(e.value,t,n);else if(v(e))for(let o=0;o<e.length;o++)Eo(e[o],t,n);else if(y(e)||b(e))e.forEach((e=>{Eo(e,t,n)}));else if(I(e))for(const o in e)Eo(e[o],t,n);return e}function Io(e,t){if(null===qn)return e;const n=za(qn)||qn.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,r,a,l=s]=t[e];i&&(k(i)&&(i={mounted:i,updated:i}),i.deep&&Eo(r),o.push({dir:i,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function Mo(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];r&&(s.oldValue=r[a].value);let l=s.dir[o];l&&(Ae(),mn(l,n,8,[e.el,s,e,t]),Oe())}}const Ao=Symbol("_leaveCb"),Oo=Symbol("_enterCb");function Po(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return si((()=>{e.isMounted=!0})),ui((()=>{e.isUnmounting=!0})),e}const Lo=[Function,Array],Do={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Lo,onEnter:Lo,onAfterEnter:Lo,onEnterCancelled:Lo,onBeforeLeave:Lo,onLeave:Lo,onAfterLeave:Lo,onLeaveCancelled:Lo,onBeforeAppear:Lo,onAppear:Lo,onAfterAppear:Lo,onAppearCancelled:Lo},No={name:"BaseTransition",props:Do,setup(e,{slots:t}){const n=$a(),o=Po();return()=>{const i=t.default&&zo(t.default(),!0);if(!i||!i.length)return;let r=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==Kr){0,r=t,e=!0;break}}const a=jt(e),{mode:s}=a;if(o.isLeaving)return Ro(r);const l=qo(r);if(!l)return Ro(r);const c=Fo(l,a,o,n);Bo(l,c);const u=n.subTree,d=u&&qo(u);if(d&&d.type!==Kr&&!aa(l,d)){const e=Fo(d,a,o,n);if(Bo(d,e),"out-in"===s&&l.type!==Kr)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Ro(r);"in-out"===s&&l.type!==Kr&&(e.delayLeave=(e,t,n)=>{Vo(o,d)[String(d.key)]=d,e[Ao]=()=>{t(),e[Ao]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return r}}},jo=No;function Vo(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Fo(e,t,n,o){const{appear:i,mode:r,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:m,onAppear:g,onAfterAppear:b,onAppearCancelled:y}=t,w=String(e.key),k=Vo(n,e),x=(e,t)=>{e&&mn(e,o,9,t)},C=(e,t)=>{const n=t[1];x(e,t),v(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},_={mode:r,persisted:a,beforeEnter(t){let o=s;if(!n.isMounted){if(!i)return;o=m||s}t[Ao]&&t[Ao](!0);const r=k[w];r&&aa(e,r)&&r.el[Ao]&&r.el[Ao](),x(o,[t])},enter(e){let t=l,o=c,r=u;if(!n.isMounted){if(!i)return;t=g||l,o=b||c,r=y||u}let a=!1;const s=e[Oo]=t=>{a||(a=!0,x(t?r:o,[e]),_.delayedLeave&&_.delayedLeave(),e[Oo]=void 0)};t?C(t,[e,s]):s()},leave(t,o){const i=String(e.key);if(t[Oo]&&t[Oo](!0),n.isUnmounting)return o();x(d,[t]);let r=!1;const a=t[Ao]=n=>{r||(r=!0,o(),x(n?h:p,[t]),t[Ao]=void 0,k[i]===e&&delete k[i])};k[i]=e,f?C(f,[t,a]):a()},clone(e){return Fo(e,t,n,o)}};return _}function Ro(e){if(Go(e))return(e=ha(e)).children=null,e}function qo(e){if(!Go(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&k(n.default))return n.default()}}function Bo(e,t){6&e.shapeFlag&&e.component?Bo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zo(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let a=e[r];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:r);a.type===Wr?(128&a.patchFlag&&i++,o=o.concat(zo(a.children,t,s))):(t||a.type!==Kr)&&o.push(null!=s?ha(a,{key:s}):a)}if(i>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}
/*! #__NO_SIDE_EFFECTS__ */function Ho(e,t){return k(e)?(()=>p({name:e.name},t,{setup:e}))():e}const Wo=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function Uo(e){k(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,timeout:r,suspensible:a=!0,onError:s}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Ho({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=Ta;if(l)return()=>Ko(l,e);const t=t=>{c=null,gn(t,e,13,!o)};if(a&&e.suspense||Da)return d().then((t=>()=>Ko(t,e))).catch((e=>(t(e),()=>o?da(o,{error:e}):null)));const s=Ut(!1),u=Ut(),f=Ut(!!i);return i&&setTimeout((()=>{f.value=!1}),i),null!=r&&setTimeout((()=>{if(!s.value&&!u.value){const e=new Error(`Async component timed out after ${r}ms.`);t(e),u.value=e}}),r),d().then((()=>{s.value=!0,e.parent&&Go(e.parent.vnode)&&(e.parent.effect.dirty=!0,$n(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>s.value&&l?Ko(l,e):u.value&&o?da(o,{error:u.value}):n&&!f.value?da(n):void 0}})}function Ko(e,t){const{ref:n,props:o,children:i,ce:r}=t.vnode,a=da(e,o,i);return a.ref=n,a.ce=r,delete t.vnode.ce,a}const Go=e=>e.type.__isKeepAlive,Zo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=$a(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,r=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=o,f=d("div");function p(e){ni(e),u(e,n,s,!0)}function h(e){i.forEach(((t,n)=>{const o=Ha(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=i.get(e);a&&aa(t,a)?a&&ni(a):p(t),i.delete(e),r.delete(e)}o.activate=(e,t,n,o,i)=>{const r=e.component;c(e,t,n,0,s),l(r.vnode,e,t,n,r,s,o,e.slotScopeIds,i),Er((()=>{r.isDeactivated=!1,r.a&&q(r.a);const t=e.props&&e.props.onVnodeMounted;t&&xa(t,r.parent,e)}),s)},o.deactivate=e=>{const t=e.component;c(e,f,null,1,s),Er((()=>{t.da&&q(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&xa(n,t.parent,e),t.isDeactivated=!0}),s)},_o((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Yo(e,t))),t&&h((e=>!Yo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&i.set(g,oi(n.subTree))};return si(v),ci(v),ui((()=>{i.forEach((e=>{const{subTree:t,suspense:o}=n,i=oi(t);if(e.type!==i.type||e.key!==i.key)p(e);else{ni(i);const e=i.component.da;e&&Er(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return a=null,n;if(!(ra(o)&&(4&o.shapeFlag||128&o.shapeFlag)))return a=null,o;let s=oi(o);const l=s.type,c=Ha(Wo(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:d,max:f}=e;if(u&&(!c||!Yo(u,c))||d&&c&&Yo(d,c))return a=s,o;const p=null==s.key?l:s.key,h=i.get(p);return s.el&&(s=ha(s),128&o.shapeFlag&&(o.ssContent=s)),g=p,h?(s.el=h.el,s.component=h.component,s.transition&&Bo(s,s.transition),s.shapeFlag|=512,r.delete(p),r.add(p)):(r.add(p),f&&r.size>parseInt(f,10)&&m(r.values().next().value)),s.shapeFlag|=256,a=s,lo(o.type)?o:s}}},Jo=Zo;function Yo(e,t){return v(e)?e.some((e=>Yo(e,t))):x(e)?e.split(",").includes(t):"[object RegExp]"===$(e)&&e.test(t)}function Qo(e,t){ei(e,"a",t)}function Xo(e,t){ei(e,"da",t)}function ei(e,t,n=Ta){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ii(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Go(e.parent.vnode)&&ti(o,t,n,e),e=e.parent}}function ti(e,t,n,o){const i=ii(t,e,o,!0);di((()=>{h(o[t],i)}),n)}function ni(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function oi(e){return 128&e.shapeFlag?e.ssContent:e}function ii(e,t,n=Ta,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ae();const i=Ma(n),r=mn(t,n,e,o);return i(),Oe(),r});return o?i.unshift(r):i.push(r),r}}const ri=e=>(t,n=Ta)=>(!Da||"sp"===e)&&ii(e,((...e)=>t(...e)),n),ai=ri("bm"),si=ri("m"),li=ri("bu"),ci=ri("u"),ui=ri("bum"),di=ri("um"),fi=ri("sp"),pi=ri("rtg"),hi=ri("rtc");function mi(e,t=Ta){ii("ec",e,t)}function gi(e,t,n,o){let i;const r=n&&n[o];if(v(e)||x(e)){i=new Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(e[n],n,void 0,r&&r[n])}else if("number"==typeof e){0,i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,r&&r[n])}else if(_(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,r&&r[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let o=0,a=n.length;o<a;o++){const a=n[o];i[o]=t(e[a],a,o,r&&r[o])}}else i=[];return n&&(n[o]=i),i}function vi(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(v(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function bi(e,t,n={},o,i){if(qn.isCE||qn.parent&&Wo(qn.parent)&&qn.parent.isCE)return"default"!==t&&(n.name=t),da("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),Yr();const a=r&&yi(r(n)),s=ia(Wr,{key:n.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),r&&r._c&&(r._d=!0),s}function yi(e){return e.some((e=>!ra(e)||e.type!==Kr&&!(e.type===Wr&&!yi(e.children))))?e:null}function wi(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:F(o)]=e[o];return n}const ki=e=>e?Oa(e)?za(e)||e.proxy:ki(e.parent):null,xi=p(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ki(e.parent),$root:e=>ki(e.root),$emit:e=>e.emit,$options:e=>Wi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,$n(e.update)}),$nextTick:e=>e.n||(e.n=Tn.bind(e.proxy)),$watch:e=>To.bind(e)}),Ci=(e,t)=>e!==s&&!e.__isScriptSetup&&g(e,t),_i={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:a,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ci(o,t))return a[t]=1,o[t];if(i!==s&&g(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&g(u,t))return a[t]=3,r[t];if(n!==s&&g(n,t))return a[t]=4,n[t];qi&&(a[t]=0)}}const d=xi[t];let f,p;return d?("$attrs"===t&&Be(e.attrs,0,""),d(e)):(f=l.__cssModules)&&(f=f[t])?f:n!==s&&g(n,t)?(a[t]=4,n[t]):(p=c.config.globalProperties,g(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Ci(i,t)?(i[t]=n,!0):o!==s&&g(o,t)?(o[t]=n,!0):!g(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(r[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},a){let l;return!!n[a]||e!==s&&g(e,a)||Ci(t,a)||(l=r[0])&&g(l,a)||g(o,a)||g(xi,a)||g(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:g(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Si=p({},_i,{get(e,t){if(t!==Symbol.unscopables)return _i.get(e,t,e)},has(e,t){return"_"!==t[0]&&!G(t)}});function Ti(){return null}function $i(){return null}function Ei(e){0}function Ii(e){0}function Mi(){return null}function Ai(){0}function Oi(e,t){return null}function Pi(){return Di().slots}function Li(){return Di().attrs}function Di(){const e=$a();return e.setupContext||(e.setupContext=Ba(e))}function Ni(e){return v(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function ji(e,t){const n=Ni(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?v(o)||k(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function Vi(e,t){return e&&t?v(e)&&v(t)?e.concat(t):p({},Ni(e),Ni(t)):e||t}function Fi(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function Ri(e){const t=$a();let n=e();return Aa(),S(n)&&(n=n.catch((e=>{throw Ma(t),e}))),[n,()=>Ma(t)]}let qi=!0;function Bi(e){const t=Wi(e),n=e.proxy,o=e.ctx;qi=!1,t.beforeCreate&&zi(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:h,updated:m,activated:g,deactivated:b,beforeDestroy:y,beforeUnmount:w,destroyed:x,unmounted:C,render:S,renderTracked:T,renderTriggered:$,errorCaptured:E,serverPrefetch:I,expose:M,inheritAttrs:A,components:O,directives:P,filters:L}=t;if(u&&function(e,t,n=c){v(e)&&(e=Zi(e));for(const n in e){const o=e[n];let i;i=_(o)?"default"in o?ir(o.from||n,o.default,!0):ir(o.from||n):ir(o),Wt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(u,o,null),a)for(const e in a){const t=a[e];k(t)&&(o[e]=t.bind(n))}if(i){0;const t=i.call(n,n);0,_(t)&&(e.data=Et(t))}if(qi=!0,r)for(const e in r){const t=r[e],i=k(t)?t.bind(n,n):k(t.get)?t.get.bind(n,n):c;0;const a=!k(t)&&k(t.set)?t.set.bind(n):c,s=Ua({get:i,set:a});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)Hi(s[e],o,n,e);if(l){const e=k(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{or(t,e[t])}))}function D(e,t){v(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&zi(d,e,"c"),D(ai,f),D(si,p),D(li,h),D(ci,m),D(Qo,g),D(Xo,b),D(mi,E),D(hi,T),D(pi,$),D(ui,w),D(di,C),D(fi,I),v(M))if(M.length){const t=e.exposed||(e.exposed={});M.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===c&&(e.render=S),null!=A&&(e.inheritAttrs=A),O&&(e.components=O),P&&(e.directives=P)}function zi(e,t,n){mn(v(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Hi(e,t,n,o){const i=o.includes(".")?$o(n,o):()=>n[o];if(x(e)){const n=t[e];k(n)&&_o(i,n)}else if(k(e))_o(i,e.bind(n));else if(_(e))if(v(e))e.forEach((e=>Hi(e,t,n,o)));else{const o=k(e.handler)?e.handler.bind(n):t[e.handler];k(o)&&_o(i,o,e)}else 0}function Wi(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,s=r.get(t);let l;return s?l=s:i.length||n||o?(l={},i.length&&i.forEach((e=>Ui(l,e,a,!0))),Ui(l,t,a)):l=t,_(t)&&r.set(t,l),l}function Ui(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&Ui(e,r,n,!0),i&&i.forEach((t=>Ui(e,t,n,!0)));for(const i in t)if(o&&"expose"===i);else{const o=Ki[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Ki={data:Gi,props:Qi,emits:Qi,methods:Yi,computed:Yi,beforeCreate:Ji,created:Ji,beforeMount:Ji,mounted:Ji,beforeUpdate:Ji,updated:Ji,beforeDestroy:Ji,beforeUnmount:Ji,destroyed:Ji,unmounted:Ji,activated:Ji,deactivated:Ji,errorCaptured:Ji,serverPrefetch:Ji,components:Yi,directives:Yi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=p(Object.create(null),e);for(const o in t)n[o]=Ji(e[o],t[o]);return n},provide:Gi,inject:function(e,t){return Yi(Zi(e),Zi(t))}};function Gi(e,t){return t?e?function(){return p(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function Zi(e){if(v(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ji(e,t){return e?[...new Set([].concat(e,t))]:t}function Yi(e,t){return e?p(Object.create(null),e,t):t}function Qi(e,t){return e?v(e)&&v(t)?[...new Set([...e,...t])]:p(Object.create(null),Ni(e),Ni(null!=t?t:{})):t}function Xi(){return{app:null,config:{isNativeTag:u,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let er=0;function tr(e,t){return function(n,o=null){k(n)||(n=p({},n)),null==o||_(o)||(o=null);const i=Xi(),r=new WeakSet;let a=!1;const s=i.app={_uid:er++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:Qa,get config(){return i.config},set config(e){0},use(e,...t){return r.has(e)||(e&&k(e.install)?(r.add(e),e.install(s,...t)):k(e)&&(r.add(e),e(s,...t))),s},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),s},component(e,t){return t?(i.components[e]=t,s):i.components[e]},directive(e,t){return t?(i.directives[e]=t,s):i.directives[e]},mount(r,l,c){if(!a){0;const u=da(n,o);return u.appContext=i,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,r):e(u,r,c),a=!0,s._container=r,r.__vue_app__=s,za(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide(e,t){return i.provides[e]=t,s},runWithContext(e){const t=nr;nr=s;try{return e()}finally{nr=t}}};return s}}let nr=null;function or(e,t){if(Ta){let n=Ta.provides;const o=Ta.parent&&Ta.parent.provides;o===n&&(n=Ta.provides=Object.create(o)),n[e]=t}else 0}function ir(e,t,n=!1){const o=Ta||qn;if(o||nr){const i=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:nr._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&k(t)?t.call(o&&o.proxy):t}else 0}function rr(){return!!(Ta||qn||nr)}const ar={},sr=()=>Object.create(ar),lr=e=>Object.getPrototypeOf(e)===ar;function cr(e,t,n,o){const[i,r]=e.propsOptions;let a,l=!1;if(t)for(let s in t){if(A(s))continue;const c=t[s];let u;i&&g(i,u=D(s))?r&&r.includes(u)?(a||(a={}))[u]=c:n[u]=c:Rn(e.emitsOptions,s)||s in o&&c===o[s]||(o[s]=c,l=!0)}if(r){const t=jt(n),o=a||s;for(let a=0;a<r.length;a++){const s=r[a];n[s]=ur(i,t,s,o[s],e,!g(o,s))}}return l}function ur(e,t,n,o,i,r){const a=e[n];if(null!=a){const e=g(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&!a.skipFactory&&k(e)){const{propsDefaults:r}=i;if(n in r)o=r[n];else{const a=Ma(i);o=r[n]=e.call(null,t),a()}}else o=e}a[0]&&(r&&!e?o=!1:!a[1]||""!==o&&o!==j(n)||(o=!0))}return o}function dr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,a={},c=[];let u=!1;if(!k(e)){const o=e=>{u=!0;const[n,o]=dr(e,t,!0);p(a,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!r&&!u)return _(e)&&o.set(e,l),l;if(v(r))for(let e=0;e<r.length;e++){0;const t=D(r[e]);fr(t)&&(a[t]=s)}else if(r){0;for(const e in r){const t=D(e);if(fr(t)){const n=r[e],o=a[t]=v(n)||k(n)?{type:n}:p({},n);if(o){const e=mr(Boolean,o.type),n=mr(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||g(o,"default"))&&c.push(t)}}}}const d=[a,c];return _(e)&&o.set(e,d),d}function fr(e){return"$"!==e[0]&&!A(e)}function pr(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function hr(e,t){return pr(e)===pr(t)}function mr(e,t){return v(t)?t.findIndex((t=>hr(t,e))):k(t)&&hr(t,e)?0:-1}const gr=e=>"_"===e[0]||"$stable"===e,vr=e=>v(e)?e.map(ba):[ba(e)],br=(e,t,n)=>{if(t._n)return t;const o=Kn(((...e)=>vr(t(...e))),n);return o._c=!1,o},yr=(e,t,n)=>{const o=e._ctx;for(const n in e){if(gr(n))continue;const i=e[n];if(k(i))t[n]=br(0,i,o);else if(null!=i){0;const e=vr(i);t[n]=()=>e}}},wr=(e,t)=>{const n=vr(t);e.slots.default=()=>n},kr=(e,t)=>{const n=e.slots=sr();if(32&e.vnode.shapeFlag){const e=t._;e?(p(n,t),B(n,"_",e,!0)):yr(t,n)}else t&&wr(e,t)},xr=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,a=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?r=!1:(p(i,t),n||1!==e||delete i._):(r=!t.$stable,yr(t,i)),a=t}else t&&(wr(e,t),a={default:1});if(r)for(const e in i)gr(e)||null!=a[e]||delete i[e]};function Cr(e,t,n,o,i=!1){if(v(e))return void e.forEach(((e,r)=>Cr(e,t&&(v(t)?t[r]:t),n,o,i)));if(Wo(o)&&!i)return;const r=4&o.shapeFlag?za(o.component)||o.component.proxy:o.el,a=i?null:r,{i:l,r:c}=e;const u=t&&t.r,d=l.refs===s?l.refs={}:l.refs,f=l.setupState;if(null!=u&&u!==c&&(x(u)?(d[u]=null,g(f,u)&&(f[u]=null)):Wt(u)&&(u.value=null)),k(c))hn(c,l,12,[a,d]);else{const t=x(c),o=Wt(c);if(t||o){const s=()=>{if(e.f){const n=t?g(f,c)?f[c]:d[c]:c.value;i?v(n)&&h(n,r):v(n)?n.includes(r)||n.push(r):t?(d[c]=[r],g(f,c)&&(f[c]=d[c])):(c.value=[r],e.k&&(d[e.k]=c.value))}else t?(d[c]=a,g(f,c)&&(f[c]=a)):o&&(c.value=a,e.k&&(d[e.k]=a))};a?(s.id=-1,Er(s,n)):s()}else 0}}let _r=!1;const Sr=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Tr=e=>8===e.nodeType;function $r(e){const{mt:t,p:n,o:{patchProp:o,createText:i,nextSibling:r,parentNode:a,remove:s,insert:l,createComment:c}}=e,u=(n,o,s,c,d,y=!1)=>{y=y||!!o.dynamicChildren;const w=Tr(n)&&"["===n.data,k=()=>m(n,o,s,c,d,w),{type:x,ref:C,shapeFlag:_,patchFlag:S}=o;let T=n.nodeType;o.el=n,-2===S&&(y=!1,o.dynamicChildren=null);let $=null;switch(x){case Ur:3!==T?""===o.children?(l(o.el=i(""),a(n),n),$=n):$=k():(n.data!==o.children&&(_r=!0,n.data=o.children),$=r(n));break;case Kr:b(n)?($=r(n),v(o.el=n.content.firstChild,n,s)):$=8!==T||w?k():r(n);break;case Gr:if(w&&(T=(n=r(n)).nodeType),1===T||3===T){$=n;const e=!o.children.length;for(let t=0;t<o.staticCount;t++)e&&(o.children+=1===$.nodeType?$.outerHTML:$.data),t===o.staticCount-1&&(o.anchor=$),$=r($);return w?r($):$}k();break;case Wr:$=w?h(n,o,s,c,d,y):k();break;default:if(1&_)$=1===T&&o.type.toLowerCase()===n.tagName.toLowerCase()||b(n)?f(n,o,s,c,d,y):k();else if(6&_){o.slotScopeIds=d;const e=a(n);if($=w?g(n):Tr(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):r(n),t(o,e,null,s,c,Sr(e),y),Wo(o)){let t;w?(t=da(Wr),t.anchor=$?$.previousSibling:e.lastChild):t=3===n.nodeType?ma(""):da("div"),t.el=n,o.component.subTree=t}}else 64&_?$=8!==T?k():o.type.hydrate(n,o,s,c,d,y,e,p):128&_&&($=o.type.hydrate(n,o,s,c,Sr(a(n)),d,y,e,u))}return null!=C&&Cr(C,null,c,o),$},f=(e,t,n,i,r,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:c,patchFlag:u,shapeFlag:f,dirs:h,transition:m}=t,g="input"===l||"option"===l;if(g||-1!==u){h&&Mo(t,null,n,"created");let l,y=!1;if(b(e)){y=Lr(i,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;y&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&f&&(!c||!c.innerHTML&&!c.textContent)){let o=p(e.firstChild,t,e,n,i,r,a);for(;o;){_r=!0;const e=o;o=o.nextSibling,s(e)}}else 8&f&&e.textContent!==t.children&&(_r=!0,e.textContent=t.children);if(c)if(g||!a||48&u)for(const t in c)(g&&(t.endsWith("value")||"indeterminate"===t)||d(t)&&!A(t)||"."===t[0])&&o(e,t,null,c[t],void 0,void 0,n);else c.onClick&&o(e,"onClick",null,c.onClick,void 0,void 0,n);(l=c&&c.onVnodeBeforeMount)&&xa(l,n,t),h&&Mo(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||h||y)&&go((()=>{l&&xa(l,n,t),y&&m.enter(e),h&&Mo(t,null,n,"mounted")}),i)}return e.nextSibling},p=(e,t,o,i,r,a,s)=>{s=s||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t<c;t++){const c=s?l[t]:l[t]=ba(l[t]);if(e)e=u(e,c,i,r,a,s);else{if(c.type===Ur&&!c.children)continue;_r=!0,n(null,c,o,null,i,r,Sr(o),a)}}return e},h=(e,t,n,o,i,s)=>{const{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);const d=a(e),f=p(r(e),t,d,n,o,i,s);return f&&Tr(f)&&"]"===f.data?r(t.anchor=f):(_r=!0,l(t.anchor=c("]"),d,f),f)},m=(e,t,o,i,l,c)=>{if(_r=!0,t.el=null,c){const t=g(e);for(;;){const n=r(e);if(!n||n===t)break;s(n)}}const u=r(e),d=a(e);return s(e),n(null,t,d,u,o,i,Sr(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=r(e))&&Tr(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return r(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),An(),void(t._vnode=e);_r=!1,u(t.firstChild,e,null,null,null),An(),t._vnode=e,_r&&console.error("Hydration completed but contains mismatches.")},u]}const Er=go;function Ir(e){return Ar(e)}function Mr(e){return Ar(e,$r)}function Ar(e,t){U().__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:r,createText:a,createComment:u,setText:d,setElementText:f,parentNode:p,nextSibling:h,setScopeId:m=c,insertStaticContent:v}=e,b=(e,t,n,o=null,i=null,r=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!aa(e,t)&&(o=J(e),H(e,i,r,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Ur:y(e,t,n,o);break;case Kr:w(e,t,n,o);break;case Gr:null==e&&k(t,n,o,a);break;case Wr:M(e,t,n,o,i,r,a,s,l);break;default:1&d?C(e,t,n,o,i,r,a,s,l):6&d?O(e,t,n,o,i,r,a,s,l):(64&d||128&d)&&c.process(e,t,n,o,i,r,a,s,l,X)}null!=u&&i&&Cr(u,e&&e.ref,r,t||e,!t)},y=(e,t,o,i)=>{if(null==e)n(t.el=a(t.children),o,i);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,o,i)=>{null==e?n(t.el=u(t.children||""),o,i):t.el=e.el},k=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),o(e),e=n;o(t)},C=(e,t,n,o,i,r,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?_(t,n,o,i,r,a,s,l):$(e,t,i,r,a,s,l)},_=(e,t,o,a,s,l,c,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=r(e.type,l,h&&h.is,h),8&m?f(d,e.children):16&m&&T(e.children,d,null,a,s,Or(e,l),c,u),v&&Mo(e,null,a,"created"),S(d,e,e.scopeId,c,a),h){for(const t in h)"value"===t||A(t)||i(d,t,null,h[t],l,e.children,a,s,Z);"value"in h&&i(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&xa(p,a,e)}v&&Mo(e,null,a,"beforeMount");const b=Lr(s,g);b&&g.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||b||v)&&Er((()=>{p&&xa(p,a,e),b&&g.enter(d),v&&Mo(e,null,a,"mounted")}),s)},S=(e,t,n,o,i)=>{if(n&&m(e,n),o)for(let t=0;t<o.length;t++)m(e,o[t]);if(i){if(t===i.subTree){const t=i.vnode;S(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,o,i,r,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?ya(e[c]):ba(e[c]);b(null,l,t,n,o,i,r,a,s)}},$=(e,t,n,o,r,a,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||s,m=t.props||s;let g;if(n&&Pr(n,!1),(g=m.onVnodeBeforeUpdate)&&xa(g,n,t,e),p&&Mo(t,e,n,"beforeUpdate"),n&&Pr(n,!0),d?E(e.dynamicChildren,d,c,n,o,Or(t,r),a):l||F(e,t,c,null,n,o,Or(t,r),a,!1),u>0){if(16&u)I(c,t,h,m,n,o,r);else if(2&u&&h.class!==m.class&&i(c,"class",null,m.class,r),4&u&&i(c,"style",h.style,m.style,r),8&u){const a=t.dynamicProps;for(let t=0;t<a.length;t++){const s=a[t],l=h[s],u=m[s];u===l&&"value"!==s||i(c,s,l,u,r,e.children,n,o,Z)}}1&u&&e.children!==t.children&&f(c,t.children)}else l||null!=d||I(c,t,h,m,n,o,r);((g=m.onVnodeUpdated)||p)&&Er((()=>{g&&xa(g,n,t,e),p&&Mo(t,e,n,"updated")}),o)},E=(e,t,n,o,i,r,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===Wr||!aa(l,c)||70&l.shapeFlag)?p(l.el):n;b(l,c,u,null,o,i,r,a,!0)}},I=(e,t,n,o,r,a,l)=>{if(n!==o){if(n!==s)for(const s in n)A(s)||s in o||i(e,s,n[s],null,l,t.children,r,a,Z);for(const s in o){if(A(s))continue;const c=o[s],u=n[s];c!==u&&"value"!==s&&i(e,s,u,c,l,t.children,r,a,Z)}"value"in o&&i(e,"value",n.value,o.value,l)}},M=(e,t,o,i,r,s,l,c,u)=>{const d=t.el=e?e.el:a(""),f=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,i),n(f,o,i),T(t.children||[],o,f,r,s,l,c,u)):p>0&&64&p&&h&&e.dynamicChildren?(E(e.dynamicChildren,h,o,r,s,l,c),(null!=t.key||r&&t===r.subTree)&&Dr(e,t,!0)):F(e,t,o,f,r,s,l,c,u)},O=(e,t,n,o,i,r,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,o,a,l):P(t,n,o,i,r,a,l):L(e,t,l)},P=(e,t,n,o,i,r,a)=>{const s=e.component=Sa(e,o,i);if(Go(e)&&(s.ctx.renderer=X),Na(s),s.asyncDep){if(i&&i.registerDep(s,N),!e.el){const e=s.subTree=da(Kr);w(null,e,t,n)}}else N(s,e,t,n,i,r,a)},L=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:i,component:r}=e,{props:a,children:s,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||o!==a&&(o?!a||Qn(o,a,c):!!a);if(1024&l)return!0;if(16&l)return o?Qn(o,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==o[n]&&!Rn(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void V(o,t,n);o.next=t,function(e){const t=yn.indexOf(e);t>wn&&yn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},N=(e,t,n,o,i,r,a)=>{const s=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:c}=e;{const n=Nr(e);if(n)return t&&(t.el=c.el,V(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||s()}))}let u,d=t;0,Pr(e,!1),t?(t.el=c.el,V(e,t,a)):t=c,n&&q(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&xa(u,l,t,c),Pr(e,!0);const f=Gn(e);0;const h=e.subTree;e.subTree=f,b(h,f,p(h.el),J(h),e,i,r),t.el=f.el,null===d&&Xn(e,f.el),o&&Er(o,i),(u=t.props&&t.props.onVnodeUpdated)&&Er((()=>xa(u,l,t,c)),i)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,f=Wo(t);if(Pr(e,!1),c&&q(c),!f&&(a=l&&l.onVnodeBeforeMount)&&xa(a,d,t),Pr(e,!0),s&&te){const n=()=>{e.subTree=Gn(e),te(s,e.subTree,e,i,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const a=e.subTree=Gn(e);0,b(null,a,n,o,e,i,r),t.el=a.el}if(u&&Er(u,i),!f&&(a=l&&l.onVnodeMounted)){const e=t;Er((()=>xa(a,d,e)),i)}(256&t.shapeFlag||d&&Wo(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Er(e.a,i),e.isMounted=!0,t=n=o=null}},l=e.effect=new ke(s,c,(()=>$n(u)),e.scope),u=e.update=()=>{l.dirty&&l.run()};u.id=e.uid,Pr(e,!0),u()},V=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:a}}=e,s=jt(i),[l]=e.propsOptions;let c=!1;if(!(o||a>0)||16&a){let o;cr(e,t,i,r)&&(c=!0);for(const r in s)t&&(g(t,r)||(o=j(r))!==r&&g(t,o))||(l?!n||void 0===n[r]&&void 0===n[o]||(i[r]=ur(l,s,r,void 0,e,!0)):delete i[r]);if(r!==s)for(const e in r)t&&g(t,e)||(delete r[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let a=n[o];if(Rn(e.emitsOptions,a))continue;const u=t[a];if(l)if(g(r,a))u!==r[a]&&(r[a]=u,c=!0);else{const t=D(a);i[t]=ur(l,s,t,u,e,!1)}else u!==r[a]&&(r[a]=u,c=!0)}}c&&ze(e.attrs,"set","")}(e,t.props,o,n),xr(e,t.children,n),Ae(),Mn(e),Oe()},F=(e,t,n,o,i,r,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void B(c,d,n,o,i,r,a,s,l);if(256&p)return void R(c,d,n,o,i,r,a,s,l)}8&h?(16&u&&Z(c,i,r),d!==c&&f(n,d)):16&u?16&h?B(c,d,n,o,i,r,a,s,l):Z(c,i,r,!0):(8&u&&f(n,""),16&h&&T(d,n,o,i,r,a,s,l))},R=(e,t,n,o,i,r,a,s,c)=>{t=t||l;const u=(e=e||l).length,d=t.length,f=Math.min(u,d);let p;for(p=0;p<f;p++){const o=t[p]=c?ya(t[p]):ba(t[p]);b(e[p],o,n,null,i,r,a,s,c)}u>d?Z(e,i,r,!0,!1,f):T(t,n,o,i,r,a,s,c,f)},B=(e,t,n,o,i,r,a,s,c)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const o=e[u],l=t[u]=c?ya(t[u]):ba(t[u]);if(!aa(o,l))break;b(o,l,n,null,i,r,a,s,c),u++}for(;u<=f&&u<=p;){const o=e[f],l=t[p]=c?ya(t[p]):ba(t[p]);if(!aa(o,l))break;b(o,l,n,null,i,r,a,s,c),f--,p--}if(u>f){if(u<=p){const e=p+1,l=e<d?t[e].el:o;for(;u<=p;)b(null,t[u]=c?ya(t[u]):ba(t[u]),n,l,i,r,a,s,c),u++}}else if(u>p)for(;u<=f;)H(e[u],i,r,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ya(t[u]):ba(t[u]);null!=e.key&&g.set(e.key,u)}let v,y=0;const w=p-m+1;let k=!1,x=0;const C=new Array(w);for(u=0;u<w;u++)C[u]=0;for(u=h;u<=f;u++){const o=e[u];if(y>=w){H(o,i,r,!0);continue}let l;if(null!=o.key)l=g.get(o.key);else for(v=m;v<=p;v++)if(0===C[v-m]&&aa(o,t[v])){l=v;break}void 0===l?H(o,i,r,!0):(C[l-m]=u+1,l>=x?x=l:k=!0,b(o,t[l],n,null,i,r,a,s,c),y++)}const _=k?function(e){const t=e.slice(),n=[0];let o,i,r,a,s;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(i=n[n.length-1],e[i]<l){t[o]=i,n.push(o);continue}for(r=0,a=n.length-1;r<a;)s=r+a>>1,e[n[s]]<l?r=s+1:a=s;l<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}r=n.length,a=n[r-1];for(;r-- >0;)n[r]=a,a=t[a];return n}(C):l;for(v=_.length-1,u=w-1;u>=0;u--){const e=m+u,l=t[e],f=e+1<d?t[e+1].el:o;0===C[u]?b(null,l,n,f,i,r,a,s,c):k&&(v<0||u!==_[v]?z(l,n,f,2):v--)}}},z=(e,t,o,i,r=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void z(e.component.subTree,t,o,i);if(128&u)return void e.suspense.move(t,o,i);if(64&u)return void s.move(e,t,o,X);if(s===Wr){n(a,t,o);for(let e=0;e<c.length;e++)z(c[e],t,o,i);return void n(e.anchor,t,o)}if(s===Gr)return void(({el:e,anchor:t},o,i)=>{let r;for(;e&&e!==t;)r=h(e),n(e,o,i),e=r;n(t,o,i)})(e,t,o);if(2!==i&&1&u&&l)if(0===i)l.beforeEnter(a),n(a,t,o),Er((()=>l.enter(a)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=l,s=()=>n(a,t,o),c=()=>{e(a,(()=>{s(),r&&r()}))};i?i(a,s,c):c()}else n(a,t,o)},H=(e,t,n,o=!1,i=!1)=>{const{type:r,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=s&&Cr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&f,h=!Wo(e);let m;if(h&&(m=a&&a.onVnodeBeforeUnmount)&&xa(m,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);p&&Mo(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,X,o):c&&(r!==Wr||d>0&&64&d)?Z(c,t,n,!1,!0):(r===Wr&&384&d||!i&&16&u)&&Z(l,t,n),o&&W(e)}(h&&(m=a&&a.onVnodeUnmounted)||p)&&Er((()=>{m&&xa(m,t,e),p&&Mo(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===Wr)return void K(n,i);if(t===Gr)return void x(e);const a=()=>{o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,a);o?o(e.el,a,i):i()}else a()},K=(e,t)=>{let n;for(;e!==t;)n=h(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:o,scope:i,update:r,subTree:a,um:s}=e;o&&q(o),i.stop(),r&&(r.active=!1,H(a,e,t,n)),s&&Er(s,t),Er((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=(e,t,n,o=!1,i=!1,r=0)=>{for(let a=r;a<e.length;a++)H(e[a],t,n,o,i)},J=e=>6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el);let Y=!1;const Q=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),Y||(Y=!0,Mn(),An(),Y=!1),t._vnode=e},X={p:b,um:H,m:z,r:W,mt:P,mc:T,pc:F,pbc:E,n:J,o:e};let ee,te;return t&&([ee,te]=t(X)),{render:Q,hydrate:ee,createApp:tr(Q,ee)}}function Or({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dr(e,t,n=!1){const o=e.children,i=t.children;if(v(o)&&v(i))for(let e=0;e<o.length;e++){const t=o[e];let r=i[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=i[e]=ya(i[e]),r.el=t.el),n||Dr(t,r)),r.type===Ur&&(r.el=t.el)}}function Nr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nr(t)}const jr=e=>e&&(e.disabled||""===e.disabled),Vr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Fr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Rr=(e,t)=>{const n=e&&e.to;if(x(n)){if(t){const e=t(n);return e}return null}return n},qr={name:"Teleport",__isTeleport:!0,process(e,t,n,o,i,r,a,s,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:m,createComment:g}}=c,v=jr(t.props);let{shapeFlag:b,children:y,dynamicChildren:w}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");p(e,n,o),p(c,n,o);const d=t.target=Rr(t.props,h),f=t.targetAnchor=m("");d&&(p(f,d),"svg"===a||Vr(d)?a="svg":("mathml"===a||Fr(d))&&(a="mathml"));const g=(e,t)=>{16&b&&u(y,e,t,i,r,a,s,l)};v?g(n,c):d&&g(d,f)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=jr(e.props),g=m?n:u,b=m?o:p;if("svg"===a||Vr(u)?a="svg":("mathml"===a||Fr(u))&&(a="mathml"),w?(f(e.dynamicChildren,w,g,i,r,a,s),Dr(e,t,!0)):l||d(e,t,g,b,i,r,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Br(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Rr(t.props,h);e&&Br(t,e,null,c,0)}else m&&Br(t,u,p,c,1)}Hr(t)},remove(e,t,n,o,{um:i,o:{remove:r}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:f}=e;if(d&&r(u),a&&r(c),16&s){const e=a||!jr(f);for(let o=0;o<l.length;o++){const r=l[o];i(r,t,n,e,!!r.dynamicChildren)}}},move:Br,hydrate:function(e,t,n,o,i,r,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=Rr(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(jr(t.props))t.anchor=c(a(e),t,s(e),n,o,i,r),t.targetAnchor=l;else{t.anchor=a(e);let s=l;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(l,t,u,n,o,i,r)}Hr(t)}return t.anchor&&a(t.anchor)}};function Br(e,t,n,{o:{insert:o},m:i},r=2){0===r&&o(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===r;if(d&&o(a,t,n),(!d||jr(u))&&16&l)for(let e=0;e<c.length;e++)i(c[e],t,n,2);d&&o(s,t,n)}const zr=qr;function Hr(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Wr=Symbol.for("v-fgt"),Ur=Symbol.for("v-txt"),Kr=Symbol.for("v-cmt"),Gr=Symbol.for("v-stc"),Zr=[];let Jr=null;function Yr(e=!1){Zr.push(Jr=e?null:[])}function Qr(){Zr.pop(),Jr=Zr[Zr.length-1]||null}let Xr,ea=1;function ta(e){ea+=e}function na(e){return e.dynamicChildren=ea>0?Jr||l:null,Qr(),ea>0&&Jr&&Jr.push(e),e}function oa(e,t,n,o,i,r){return na(ua(e,t,n,o,i,r,!0))}function ia(e,t,n,o,i){return na(da(e,t,n,o,i,!0))}function ra(e){return!!e&&!0===e.__v_isVNode}function aa(e,t){return e.type===t.type&&e.key===t.key}function sa(e){Xr=e}const la=({key:e})=>null!=e?e:null,ca=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?x(e)||Wt(e)||k(e)?{i:qn,r:e,k:t,f:!!n}:e:null);function ua(e,t=null,n=null,o=0,i=null,r=(e===Wr?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&la(t),ref:t&&ca(t),scopeId:Bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:qn};return s?(wa(l,n),128&r&&e.normalize(l)):n&&(l.shapeFlag|=x(n)?8:16),ea>0&&!a&&Jr&&(l.patchFlag>0||6&r)&&32!==l.patchFlag&&Jr.push(l),l}const da=fa;function fa(e,t=null,n=null,o=0,i=null,r=!1){if(e&&e!==oo||(e=Kr),ra(e)){const o=ha(e,t,!0);return n&&wa(o,n),ea>0&&!r&&Jr&&(6&o.shapeFlag?Jr[Jr.indexOf(e)]=o:Jr.push(o)),o.patchFlag|=-2,o}if(Wa(e)&&(e=e.__vccOpts),t){t=pa(t);let{class:e,style:n}=t;e&&!x(e)&&(t.class=ee(e)),_(n)&&(Nt(n)&&!v(n)&&(n=p({},n)),t.style=Z(n))}return ua(e,t,n,o,i,x(e)?1:lo(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:k(e)?2:0,r,!0)}function pa(e){return e?Nt(e)||lr(e)?p({},e):e:null}function ha(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:a,children:s,transition:l}=e,c=t?ka(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&la(c),ref:t&&t.ref?n&&r?v(r)?r.concat(ca(t)):[r,ca(t)]:ca(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Wr?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ha(e.ssContent),ssFallback:e.ssFallback&&ha(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&(u.transition=l.clone(u)),u}function ma(e=" ",t=0){return da(Ur,null,e,t)}function ga(e,t){const n=da(Gr,null,e);return n.staticCount=t,n}function va(e="",t=!1){return t?(Yr(),ia(Kr,null,e)):da(Kr,null,e)}function ba(e){return null==e||"boolean"==typeof e?da(Kr):v(e)?da(Wr,null,e.slice()):"object"==typeof e?ya(e):da(Ur,null,String(e))}function ya(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ha(e)}function wa(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(v(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),wa(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||lr(t)?3===o&&qn&&(1===qn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=qn}}else k(t)?(t={default:t,_ctx:qn},n=32):(t=String(t),64&o?(n=16,t=[ma(t)]):n=8);e.children=t,e.shapeFlag|=n}function ka(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=ee([t.class,o.class]));else if("style"===e)t.style=Z([t.style,o.style]);else if(d(e)){const n=t[e],i=o[e];!i||n===i||v(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=o[e])}return t}function xa(e,t,n,o=null){mn(e,t,7,[n,o])}const Ca=Xi();let _a=0;function Sa(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||Ca,r={uid:_a++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ge(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dr(o,i),emitsOptions:Fn(o,i),emit:null,emitted:null,propsDefaults:s,inheritAttrs:o.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Vn.bind(null,r),e.ce&&e.ce(r),r}let Ta=null;const $a=()=>Ta||qn;let Ea,Ia;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};Ea=t("__VUE_INSTANCE_SETTERS__",(e=>Ta=e)),Ia=t("__VUE_SSR_SETTERS__",(e=>Da=e))}const Ma=e=>{const t=Ta;return Ea(e),e.scope.on(),()=>{e.scope.off(),Ea(t)}},Aa=()=>{Ta&&Ta.scope.off(),Ea(null)};function Oa(e){return 4&e.vnode.shapeFlag}let Pa,La,Da=!1;function Na(e,t=!1){t&&Ia(t);const{props:n,children:o}=e.vnode,i=Oa(e);!function(e,t,n,o=!1){const i={},r=sr();e.propsDefaults=Object.create(null),cr(e,t,i,r);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:It(i):e.type.props?e.props=i:e.props=r,e.attrs=r}(e,n,i,t),kr(e,o);const r=i?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_i),!1;const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Ba(e):null,i=Ma(e);Ae();const r=hn(o,e,0,[e.props,n]);if(Oe(),i(),S(r)){if(r.then(Aa,Aa),t)return r.then((n=>{ja(e,n,t)})).catch((t=>{gn(t,e,0)}));e.asyncDep=r}else ja(e,r,t)}else Ra(e,t)}(e,t):void 0;return t&&Ia(!1),r}function ja(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=en(t)),Ra(e,n)}function Va(e){Pa=e,La=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Si))}}const Fa=()=>!Pa;function Ra(e,t,n){const o=e.type;if(!e.render){if(!t&&Pa&&!o.render){const t=o.template||Wi(e).template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:r,compilerOptions:a}=o,s=p(p({isCustomElement:n,delimiters:r},i),a);o.render=Pa(t,s)}}e.render=o.render||c,La&&La(e)}{const t=Ma(e);Ae();try{Bi(e)}finally{Oe(),t()}}}const qa={get(e,t){return Be(e,0,""),e[t]}};function Ba(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t}}function za(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(en(Vt(e.exposed)),{get(t,n){return n in t?t[n]:n in xi?xi[n](e):void 0},has(e,t){return t in e||t in xi}}))}function Ha(e,t=!0){return k(e)?e.displayName||e.name:e.name||t&&e.__name}function Wa(e){return k(e)&&"__vccOpts"in e}const Ua=(e,t)=>Bt(e,0,Da);function Ka(e,t,n=s){const o=$a();const i=D(t),r=j(t),a=nn(((a,s)=>{let l;return xo((()=>{const n=e[t];R(l,n)&&(l=n,s())})),{get(){return a(),n.get?n.get(l):l},set(e){const a=o.vnode.props;a&&(t in a||i in a||r in a)&&(`onUpdate:${t}`in a||`onUpdate:${i}`in a||`onUpdate:${r}`in a)||!R(e,l)||(l=e,s()),o.emit(`update:${t}`,n.set?n.set(e):e)}}})),l="modelValue"===t?"modelModifiers":`${t}Modifiers`;return a[Symbol.iterator]=()=>{let t=0;return{next(){return t<2?{value:t++?e[l]||{}:a,done:!1}:{done:!0}}}},a}function Ga(e,t,n){const o=arguments.length;return 2===o?_(t)&&!v(t)?ra(t)?da(e,null,[t]):da(e,t):da(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ra(n)&&(n=[n]),da(e,t,n))}function Za(){return void 0}function Ja(e,t,n,o){const i=n[o];if(i&&Ya(i,e))return i;const r=t();return r.memo=e.slice(),n[o]=r}function Ya(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(R(n[e],t[e]))return!1;return ea>0&&Jr&&Jr.push(e),!0}const Qa="3.4.27",Xa=c,es=pn,ts=Dn,ns=function e(t,n){var o,i;if(Dn=t,Dn)Dn.enabled=!0,Nn.forEach((({event:e,args:t})=>Dn.emit(e,...t))),Nn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(o=window.navigator)?void 0:o.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Dn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jn=!0,Nn=[])}),3e3)}else jn=!0,Nn=[]},os={createComponentInstance:Sa,setupComponent:Na,renderComponentRoot:Gn,setCurrentRenderingInstance:zn,isVNode:ra,normalizeVNode:ba},is=null,rs=null,as=null,ss="undefined"!=typeof document?document:null,ls=ss&&ss.createElement("template"),cs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i="svg"===t?ss.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ss.createElementNS("http://www.w3.org/1998/Math/MathML",e):ss.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&i.setAttribute("multiple",o.multiple),i},createText:e=>ss.createTextNode(e),createComment:e=>ss.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ss.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const a=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==r&&(i=i.nextSibling););else{ls.innerHTML="svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e;const i=ls.content;if("svg"===o||"mathml"===o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},us="transition",ds="animation",fs=Symbol("_vtc"),ps=(e,{slots:t})=>Ga(jo,bs(e),t);ps.displayName="Transition";const hs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ms=ps.props=p({},Do,hs),gs=(e,t=[])=>{v(e)?e.forEach((e=>e(...t))):e&&e(...t)},vs=e=>!!e&&(v(e)?e.some((e=>e.length>1)):e.length>1);function bs(e){const t={};for(const n in e)n in hs||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(_(e))return[ys(e.enter),ys(e.leave)];{const t=ys(e);return[t,t]}}(i),g=m&&m[0],v=m&&m[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:w,onLeave:k,onLeaveCancelled:x,onBeforeAppear:C=b,onAppear:S=y,onAppearCancelled:T=w}=t,$=(e,t,n)=>{ks(e,t?u:s),ks(e,t?c:a),n&&n()},E=(e,t)=>{e._isLeaving=!1,ks(e,d),ks(e,h),ks(e,f),t&&t()},I=e=>(t,n)=>{const i=e?S:y,a=()=>$(t,e,n);gs(i,[t,a]),xs((()=>{ks(t,e?l:r),ws(t,e?u:s),vs(i)||_s(t,o,g,a)}))};return p(t,{onBeforeEnter(e){gs(b,[e]),ws(e,r),ws(e,a)},onBeforeAppear(e){gs(C,[e]),ws(e,l),ws(e,c)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);ws(e,d),ws(e,f),Es(),xs((()=>{e._isLeaving&&(ks(e,d),ws(e,h),vs(k)||_s(e,o,v,n))})),gs(k,[e,n])},onEnterCancelled(e){$(e,!1),gs(w,[e])},onAppearCancelled(e){$(e,!0),gs(T,[e])},onLeaveCancelled(e){E(e),gs(x,[e])}})}function ys(e){return H(e)}function ws(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[fs]||(e[fs]=new Set)).add(t)}function ks(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[fs];n&&(n.delete(t),n.size||(e[fs]=void 0))}function xs(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Cs=0;function _s(e,t,n,o){const i=e._endId=++Cs,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:a,timeout:s,propCount:l}=Ss(e,t);if(!a)return o();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),r()},f=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,f)}function Ss(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),i=o(`${us}Delay`),r=o(`${us}Duration`),a=Ts(i,r),s=o(`${ds}Delay`),l=o(`${ds}Duration`),c=Ts(s,l);let u=null,d=0,f=0;t===us?a>0&&(u=us,d=a,f=r.length):t===ds?c>0&&(u=ds,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?us:ds:null,f=u?u===us?r.length:l.length:0);return{type:u,timeout:d,propCount:f,hasTransform:u===us&&/\b(transform|all)(,|$)/.test(o(`${us}Property`).toString())}}function Ts(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>$s(t)+$s(e[n]))))}function $s(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Es(){return document.body.offsetHeight}const Is=Symbol("_vod"),Ms=Symbol("_vsh"),As={beforeMount(e,{value:t},{transition:n}){e[Is]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Os(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Os(e,!0),o.enter(e)):o.leave(e,(()=>{Os(e,!1)})):Os(e,t))},beforeUnmount(e,{value:t}){Os(e,t)}};function Os(e,t){e.style.display=t?e[Is]:"none",e[Ms]=!t}const Ps=Symbol("");function Ls(e){const t=$a();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Ns(e,n)))};const o=()=>{const o=e(t.proxy);Ds(t.subTree,o),n(o)};si((()=>{ko(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),di((()=>e.disconnect()))}))}function Ds(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Ds(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ns(e.el,t);else if(e.type===Wr)e.children.forEach((e=>Ds(e,t)));else if(e.type===Gr){let{el:n,anchor:o}=e;for(;n&&(Ns(n,t),n!==o);)n=n.nextSibling}}function Ns(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[Ps]=o}}const js=/(^|;)\s*display\s*:/;const Vs=/\s*!important$/;function Fs(e,t,n){if(v(n))n.forEach((n=>Fs(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=qs[t];if(n)return n;let o=D(t);if("filter"!==o&&o in e)return qs[t]=o;o=V(o);for(let n=0;n<Rs.length;n++){const i=Rs[n]+o;if(i in e)return qs[t]=i}return t}(e,t);Vs.test(n)?e.setProperty(j(o),n.replace(Vs,""),"important"):e[o]=n}}const Rs=["Webkit","Moz","ms"],qs={};const Bs="http://www.w3.org/1999/xlink";function zs(e,t,n,o){e.addEventListener(t,n,o)}const Hs=Symbol("_vei");function Ws(e,t,n,o,i=null){const r=e[Hs]||(e[Hs]={}),a=r[t];if(o&&a)a.value=o;else{const[n,s]=function(e){let t;if(Us.test(e)){let n;for(t={};n=e.match(Us);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):j(e.slice(2));return[n,t]}(t);if(o){const a=r[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();mn(function(e,t){if(v(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Zs(),n}(o,i);zs(e,n,a,s)}else a&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,a,s),r[t]=void 0)}}const Us=/(?:Once|Passive|Capture)$/;let Ks=0;const Gs=Promise.resolve(),Zs=()=>Ks||(Gs.then((()=>Ks=0)),Ks=Date.now());const Js=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;
/*! #__NO_SIDE_EFFECTS__ */
function Ys(e,t){const n=Ho(e);class o extends el{constructor(e){super(n,e,t)}}return o.def=n,o}
/*! #__NO_SIDE_EFFECTS__ */const Qs=e=>Ys(e,jl),Xs="undefined"!=typeof HTMLElement?HTMLElement:class{};class el extends Xs{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Tn((()=>{this._connected||(Nl(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let i;if(n&&!v(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(i||(i=Object.create(null)))[D(e)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=v(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=D(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(j(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(j(e),t+""):t||this.removeAttribute(j(e))))}_update(){Nl(this._createVNode(),this.shadowRoot)}_createVNode(){const e=da(this._def,p({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),j(e)!==e&&t(j(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof el){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function tl(e="$style"){{const t=$a();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;const o=n[e];return o||s}}const nl=new WeakMap,ol=new WeakMap,il=Symbol("_moveCb"),rl=Symbol("_enterCb"),al={name:"TransitionGroup",props:p({},ms,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=$a(),o=Po();let i,r;return ci((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),i=e[fs];i&&i.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:a}=Ss(o);return r.removeChild(o),a}(i[0].el,n.vnode.el,t))return;i.forEach(ll),i.forEach(cl);const o=i.filter(ul);Es(),o.forEach((e=>{const n=e.el,o=n.style;ws(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const i=n[il]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n[il]=null,ks(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const a=jt(e),s=bs(a);let l=a.tag||Wr;if(i=[],r)for(let e=0;e<r.length;e++){const t=r[e];t.el&&t.el instanceof Element&&(i.push(t),Bo(t,Fo(t,s,o,n)),nl.set(t,t.el.getBoundingClientRect()))}r=t.default?zo(t.default()):[];for(let e=0;e<r.length;e++){const t=r[e];null!=t.key&&Bo(t,Fo(t,s,o,n))}return da(l,null,r)}}},sl=al;function ll(e){const t=e.el;t[il]&&t[il](),t[rl]&&t[rl]()}function cl(e){ol.set(e,e.el.getBoundingClientRect())}function ul(e){const t=nl.get(e),n=ol.get(e),o=t.left-n.left,i=t.top-n.top;if(o||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${o}px,${i}px)`,t.transitionDuration="0s",e}}const dl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return v(t)?e=>q(t,e):t};function fl(e){e.target.composing=!0}function pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hl=Symbol("_assign"),ml={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[hl]=dl(i);const r=o||i.props&&"number"===i.props.type;zs(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),r&&(o=z(o)),e[hl](o)})),n&&zs(e,"change",(()=>{e.value=e.value.trim()})),t||(zs(e,"compositionstart",fl),zs(e,"compositionend",pl),zs(e,"change",pl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[hl]=dl(r),e.composing)return;const a=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:z(e.value))!==a){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===a)return}e.value=a}}},gl={deep:!0,created(e,t,n){e[hl]=dl(n),zs(e,"change",(()=>{const t=e._modelValue,n=kl(e),o=e.checked,i=e[hl];if(v(t)){const e=ue(t,n),r=-1!==e;if(o&&!r)i(t.concat(n));else if(!o&&r){const n=[...t];n.splice(e,1),i(n)}}else if(y(t)){const e=new Set(t);o?e.add(n):e.delete(n),i(e)}else i(xl(e,o))}))},mounted:vl,beforeUpdate(e,t,n){e[hl]=dl(n),vl(e,t,n)}};function vl(e,{value:t,oldValue:n},o){e._modelValue=t,v(t)?e.checked=ue(t,o.props.value)>-1:y(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ce(t,xl(e,!0)))}const bl={created(e,{value:t},n){e.checked=ce(t,n.props.value),e[hl]=dl(n),zs(e,"change",(()=>{e[hl](kl(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[hl]=dl(o),t!==n&&(e.checked=ce(t,o.props.value))}},yl={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const i=y(t);zs(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?z(kl(e)):kl(e)));e[hl](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Tn((()=>{e._assigning=!1}))})),e[hl]=dl(o)},mounted(e,{value:t,modifiers:{number:n}}){wl(e,t)},beforeUpdate(e,t,n){e[hl]=dl(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||wl(e,t)}};function wl(e,t,n){const o=e.multiple,i=v(t);if(!o||i||y(t)){for(let n=0,r=e.options.length;n<r;n++){const r=e.options[n],a=kl(r);if(o)if(i){const e=typeof a;r.selected="string"===e||"number"===e?t.some((e=>String(e)===String(a))):ue(t,a)>-1}else r.selected=t.has(a);else if(ce(kl(r),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function kl(e){return"_value"in e?e._value:e.value}function xl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Cl={created(e,t,n){Sl(e,t,n,null,"created")},mounted(e,t,n){Sl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Sl(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Sl(e,t,n,o,"updated")}};function _l(e,t){switch(e){case"SELECT":return yl;case"TEXTAREA":return ml;default:switch(t){case"checkbox":return gl;case"radio":return bl;default:return ml}}}function Sl(e,t,n,o,i){const r=_l(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,o)}const Tl=["ctrl","shift","alt","meta"],$l={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Tl.some((n=>e[`${n}Key`]&&!t.includes(n)))},El=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=$l[t[e]];if(o&&o(n,t))return}return e(n,...o)})},Il={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ml=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=j(n.key);return t.some((e=>e===o||Il[e]===o))?e(n):void 0})},Al=p({patchProp:(e,t,n,o,i,r,a,s,l)=>{const c="svg"===i;"class"===t?function(e,t,n){const o=e[fs];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,c):"style"===t?function(e,t,n){const o=e.style,i=x(n);let r=!1;if(n&&!i){if(t)if(x(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Fs(o,t,"")}else for(const e in t)null==n[e]&&Fs(o,e,"");for(const e in n)"display"===e&&(r=!0),Fs(o,e,n[e])}else if(i){if(t!==n){const e=o[Ps];e&&(n+=";"+e),o.cssText=n,r=js.test(n)}}else t&&e.removeAttribute("style");Is in e&&(e[Is]=r?o.display:"",e[Ms]&&(o.display="none"))}(e,n,o):d(t)?f(t)||Ws(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Js(t)&&k(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Js(t)&&x(n))return!1;return t in e}(e,t,o,c))?function(e,t,n,o,i,r,a){if("innerHTML"===t||"textContent"===t)return o&&a(o,i,r),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const o=null==n?"":n;return("OPTION"===s?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=le(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,o,r,a,s,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,i){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Bs,t.slice(6,t.length)):e.setAttributeNS(Bs,t,n);else{const o=se(t);null==n||o&&!le(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,c))}},cs);let Ol,Pl=!1;function Ll(){return Ol||(Ol=Ir(Al))}function Dl(){return Ol=Pl?Ol:Mr(Al),Pl=!0,Ol}const Nl=(...e)=>{Ll().render(...e)},jl=(...e)=>{Dl().hydrate(...e)},Vl=(...e)=>{const t=Ll().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=ql(e);if(!o)return;const i=t._component;k(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,Rl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t},Fl=(...e)=>{const t=Dl().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=ql(e);if(t)return n(t,!0,Rl(t))},t};function Rl(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function ql(e){if(x(e)){return document.querySelector(e)}return e}let Bl=!1;const zl=()=>{Bl||(Bl=!0,ml.getSSRProps=({value:e})=>({value:e}),bl.getSSRProps=({value:e},t)=>{if(t.props&&ce(t.props.value,e))return{checked:!0}},gl.getSSRProps=({value:e},t)=>{if(v(e)){if(t.props&&ue(e,t.props.value)>-1)return{checked:!0}}else if(y(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Cl.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=_l(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},As.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Hl=Symbol(""),Wl=Symbol(""),Ul=Symbol(""),Kl=Symbol(""),Gl=Symbol(""),Zl=Symbol(""),Jl=Symbol(""),Yl=Symbol(""),Ql=Symbol(""),Xl=Symbol(""),ec=Symbol(""),tc=Symbol(""),nc=Symbol(""),oc=Symbol(""),ic=Symbol(""),rc=Symbol(""),ac=Symbol(""),sc=Symbol(""),lc=Symbol(""),cc=Symbol(""),uc=Symbol(""),dc=Symbol(""),fc=Symbol(""),pc=Symbol(""),hc=Symbol(""),mc=Symbol(""),gc=Symbol(""),vc=Symbol(""),bc=Symbol(""),yc=Symbol(""),wc=Symbol(""),kc=Symbol(""),xc=Symbol(""),Cc=Symbol(""),_c=Symbol(""),Sc=Symbol(""),Tc=Symbol(""),$c=Symbol(""),Ec=Symbol(""),Ic={[Hl]:"Fragment",[Wl]:"Teleport",[Ul]:"Suspense",[Kl]:"KeepAlive",[Gl]:"BaseTransition",[Zl]:"openBlock",[Jl]:"createBlock",[Yl]:"createElementBlock",[Ql]:"createVNode",[Xl]:"createElementVNode",[ec]:"createCommentVNode",[tc]:"createTextVNode",[nc]:"createStaticVNode",[oc]:"resolveComponent",[ic]:"resolveDynamicComponent",[rc]:"resolveDirective",[ac]:"resolveFilter",[sc]:"withDirectives",[lc]:"renderList",[cc]:"renderSlot",[uc]:"createSlots",[dc]:"toDisplayString",[fc]:"mergeProps",[pc]:"normalizeClass",[hc]:"normalizeStyle",[mc]:"normalizeProps",[gc]:"guardReactiveProps",[vc]:"toHandlers",[bc]:"camelize",[yc]:"capitalize",[wc]:"toHandlerKey",[kc]:"setBlockTracking",[xc]:"pushScopeId",[Cc]:"popScopeId",[_c]:"withCtx",[Sc]:"unref",[Tc]:"isRef",[$c]:"withMemo",[Ec]:"isMemoSame"};const Mc={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Ac(e,t,n,o,i,r,a,s=!1,l=!1,c=!1,u=Mc){return e&&(s?(e.helper(Zl),e.helper(qc(e.inSSR,c))):e.helper(Rc(e.inSSR,c)),a&&e.helper(sc)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:r,directives:a,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function Oc(e,t=Mc){return{type:17,loc:t,elements:e}}function Pc(e,t=Mc){return{type:15,loc:t,properties:e}}function Lc(e,t){return{type:16,loc:Mc,key:x(e)?Dc(e,!0):e,value:t}}function Dc(e,t=!1,n=Mc,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Nc(e,t=Mc){return{type:8,loc:t,children:e}}function jc(e,t=[],n=Mc){return{type:14,loc:n,callee:e,arguments:t}}function Vc(e,t=void 0,n=!1,o=!1,i=Mc){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Fc(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Mc}}function Rc(e,t){return e||t?Ql:Xl}function qc(e,t){return e||t?Jl:Yl}function Bc(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Rc(o,e.isComponent)),t(Zl),t(qc(o,e.isComponent)))}const zc=new Uint8Array([123,123]),Hc=new Uint8Array([125,125]);function Wc(e){return e>=97&&e<=122||e>=65&&e<=90}function Uc(e){return 32===e||10===e||9===e||12===e||13===e}function Kc(e){return 47===e||62===e||Uc(e)}function Gc(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Zc={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function Jc(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function Yc(e,t){const n=Jc("MODE",t),o=Jc(e,t);return 3===n?!0===o:!1!==o}function Qc(e,t,n,...o){return Yc(e,t)}function Xc(e){throw e}function eu(e){}function tu(e,t,n,o){const i=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return i.code=e,i.loc=t,i}const nu=e=>4===e.type&&e.isStatic;function ou(e){switch(e){case"Teleport":case"teleport":return Wl;case"Suspense":case"suspense":return Ul;case"KeepAlive":case"keep-alive":return Kl;case"BaseTransition":case"base-transition":return Gl}}const iu=/^\d|[^\$\w]/,ru=e=>!iu.test(e),au=/[A-Za-z_$\xA0-\uFFFF]/,su=/[\.\?\w$\xA0-\uFFFF]/,lu=/\s+[.[]\s*|\s*[.[]\s+/g,cu=e=>{e=e.trim().replace(lu,(e=>e.trim()));let t=0,n=[],o=0,i=0,r=null;for(let a=0;a<e.length;a++){const s=e.charAt(a);switch(t){case 0:if("["===s)n.push(t),t=1,o++;else if("("===s)n.push(t),t=2,i++;else if(!(0===a?au:su).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(t),t=3,r=s):"["===s?o++:"]"===s&&(--o||(t=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(t),t=3,r=s;else if("("===s)i++;else if(")"===s){if(a===e.length-1)return!1;--i||(t=n.pop())}break;case 3:s===r&&(t=n.pop(),r=null)}}return!o&&!i};function uu(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&(n||i.exp)&&(x(t)?i.name===t:t.test(i.name)))return i}}function du(e,t,n=!1,o=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(6===r.type){if(n)continue;if(r.name===t&&(r.value||o))return r}else if("bind"===r.name&&(r.exp||o)&&fu(r.arg,t))return r}}function fu(e,t){return!(!e||!nu(e)||e.content!==t)}function pu(e){return 5===e.type||2===e.type}function hu(e){return 7===e.type&&"slot"===e.name}function mu(e){return 1===e.type&&3===e.tagType}function gu(e){return 1===e.type&&2===e.tagType}const vu=new Set([mc,gc]);function bu(e,t=[]){if(e&&!x(e)&&14===e.type){const n=e.callee;if(!x(n)&&vu.has(n))return bu(e.arguments[0],t.concat(e))}return[e,t]}function yu(e,t,n){let o,i,r=13===e.type?e.props:e.arguments[2],a=[];if(r&&!x(r)&&14===r.type){const e=bu(r);r=e[0],a=e[1],i=a[a.length-1]}if(null==r||x(r))o=Pc([t]);else if(14===r.type){const e=r.arguments[0];x(e)||15!==e.type?r.callee===vc?o=jc(n.helper(fc),[Pc([t]),r]):r.arguments.unshift(Pc([t])):wu(t,e)||e.properties.unshift(t),!o&&(o=r)}else 15===r.type?(wu(t,r)||r.properties.unshift(t),o=r):(o=jc(n.helper(fc),[Pc([t]),r]),i&&i.callee===gc&&(i=a[a.length-2]));13===e.type?i?i.arguments[0]=o:e.props=o:i?i.arguments[0]=o:e.arguments[2]=o}function wu(e,t){let n=!1;if(4===e.key.type){const o=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===o))}return n}function ku(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const xu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Cu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:u,isPreTag:u,isCustomElement:u,onError:Xc,onWarn:eu,comments:!1,prefixIdentifiers:!1};let _u=Cu,Su=null,Tu="",$u=null,Eu=null,Iu="",Mu=-1,Au=-1,Ou=0,Pu=!1,Lu=null;const Du=[],Nu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=zc,this.delimiterClose=Hc,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=zc,this.delimiterClose=Hc}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const i=this.newlines[o];if(e>i){t=o+2,n=e-i;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Kc(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Uc(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Zc.TitleEnd||this.currentSequence===Zc.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Zc.Cdata[this.sequenceIndex]?++this.sequenceIndex===Zc.Cdata.length&&(this.state=28,this.currentSequence=Zc.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Zc.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):Wc(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Kc(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Kc(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Gc("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Uc(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=Wc(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Uc(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Uc(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Uc(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Kc(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Kc(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Kc(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Kc(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Kc(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Uc(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Uc(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Uc(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Zc.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Zc.ScriptEnd[3]?this.startSpecial(Zc.ScriptEnd,4):e===Zc.StyleEnd[3]?this.startSpecial(Zc.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Zc.TitleEnd[3]?this.startSpecial(Zc.TitleEnd,4):e===Zc.TextareaEnd[3]?this.startSpecial(Zc.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Zc.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Du,{onerr:nd,ontext(e,t){qu(Fu(e,t),e,t)},ontextentity(e,t,n){qu(e,t,n)},oninterpolation(e,t){if(Pu)return qu(Fu(e,t),e,t);let n=e+Nu.delimiterOpen.length,o=t-Nu.delimiterClose.length;for(;Uc(Tu.charCodeAt(n));)n++;for(;Uc(Tu.charCodeAt(o-1));)o--;let i=Fu(n,o);i.includes("&")&&(i=_u.decodeEntities(i,!1)),Yu({type:5,content:td(i,!1,Qu(n,o)),loc:Qu(e,t)})},onopentagname(e,t){const n=Fu(e,t);$u={type:1,tag:n,ns:_u.getNamespace(n,Du[0],_u.ns),tagType:0,props:[],children:[],loc:Qu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Fu(e,t);if(!_u.isVoidTag(n)){let o=!1;for(let e=0;e<Du.length;e++){if(Du[e].tag.toLowerCase()===n.toLowerCase()){o=!0,e>0&&nd(24,Du[0].loc.start.offset);for(let n=0;n<=e;n++){Bu(Du.shift(),t,n<e)}break}}o||nd(23,zu(e,60))}},onselfclosingtag(e){const t=$u.tag;$u.isSelfClosing=!0,Ru(e),Du[0]&&Du[0].tag===t&&Bu(Du.shift(),e)},onattribname(e,t){Eu={type:6,name:Fu(e,t),nameLoc:Qu(e,t),value:void 0,loc:Qu(e)}},ondirname(e,t){const n=Fu(e,t),o="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Pu||""!==o||nd(26,e),Pu||""===o)Eu={type:6,name:n,nameLoc:Qu(e,t),value:void 0,loc:Qu(e)};else if(Eu={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?["prop"]:[],loc:Qu(e)},"pre"===o){Pu=Nu.inVPre=!0,Lu=$u;const e=$u.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=ed(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Fu(e,t);if(Pu)Eu.name+=n,Xu(Eu.nameLoc,t);else{const o="["!==n[0];Eu.arg=td(o?n:n.slice(1,-1),o,Qu(e,t),o?3:0)}},ondirmodifier(e,t){const n=Fu(e,t);if(Pu)Eu.name+="."+n,Xu(Eu.nameLoc,t);else if("slot"===Eu.name){const e=Eu.arg;e&&(e.content+="."+n,Xu(e.loc,t))}else Eu.modifiers.push(n)},onattribdata(e,t){Iu+=Fu(e,t),Mu<0&&(Mu=e),Au=t},onattribentity(e,t,n){Iu+=e,Mu<0&&(Mu=t),Au=n},onattribnameend(e){const t=Eu.loc.start.offset,n=Fu(t,e);7===Eu.type&&(Eu.rawName=n),$u.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&nd(2,t)},onattribend(e,t){if($u&&Eu){if(Xu(Eu.loc,t),0!==e)if(Iu.includes("&")&&(Iu=_u.decodeEntities(Iu,!0)),6===Eu.type)"class"===Eu.name&&(Iu=Ju(Iu).trim()),1!==e||Iu||nd(13,t),Eu.value={type:2,content:Iu,loc:1===e?Qu(Mu,Au):Qu(Mu-1,Au+1)},Nu.inSFCRoot&&"template"===$u.tag&&"lang"===Eu.name&&Iu&&"html"!==Iu&&Nu.enterRCDATA(Gc("</template"),0);else{let e=0;Eu.exp=td(Iu,!1,Qu(Mu,Au),0,e),"for"===Eu.name&&(Eu.forParseResult=function(e){const t=e.loc,n=e.content,o=n.match(xu);if(!o)return;const[,i,r]=o,a=(e,n,o=!1)=>{const i=t.start.offset+n;return td(e,!1,Qu(i,i+e.length),0,o?1:0)},s={source:a(r.trim(),n.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Vu,"").trim();const c=i.indexOf(l),u=l.match(ju);if(u){l=l.replace(ju,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),s.key=a(e,t,!0)),u[2]){const o=u[2].trim();o&&(s.index=a(o,n.indexOf(o,s.key?t+e.length:c+l.length),!0))}}l&&(s.value=a(l,c,!0));return s}(Eu.exp));let t=-1;"bind"===Eu.name&&(t=Eu.modifiers.indexOf("sync"))>-1&&Qc("COMPILER_V_BIND_SYNC",_u,Eu.loc,Eu.rawName)&&(Eu.name="model",Eu.modifiers.splice(t,1))}7===Eu.type&&"pre"===Eu.name||$u.props.push(Eu)}Iu="",Mu=Au=-1},oncomment(e,t){_u.comments&&Yu({type:3,content:Fu(e,t),loc:Qu(e-4,t+3)})},onend(){const e=Tu.length;for(let t=0;t<Du.length;t++)Bu(Du[t],e-1),nd(24,Du[t].loc.start.offset)},oncdata(e,t){0!==Du[0].ns?qu(Fu(e,t),e,t):nd(1,e-9)},onprocessinginstruction(e){0===(Du[0]?Du[0].ns:_u.ns)&&nd(21,e-1)}}),ju=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vu=/^\(|\)$/g;function Fu(e,t){return Tu.slice(e,t)}function Ru(e){Nu.inSFCRoot&&($u.innerLoc=Qu(e+1,e+1)),Yu($u);const{tag:t,ns:n}=$u;0===n&&_u.isPreTag(t)&&Ou++,_u.isVoidTag(t)?Bu($u,e):(Du.unshift($u),1!==n&&2!==n||(Nu.inXML=!0)),$u=null}function qu(e,t,n){{const t=Du[0]&&Du[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=_u.decodeEntities(e,!1))}const o=Du[0]||Su,i=o.children[o.children.length-1];i&&2===i.type?(i.content+=e,Xu(i.loc,n)):o.children.push({type:2,content:e,loc:Qu(t,n)})}function Bu(e,t,n=!1){Xu(e.loc,n?zu(t,60):function(e,t){let n=e;for(;Tu.charCodeAt(n)!==t&&n<Tu.length-1;)n++;return n}(t,62)+1),Nu.inSFCRoot&&(e.children.length?e.innerLoc.end=p({},e.children[e.children.length-1].loc.end):e.innerLoc.end=p({},e.innerLoc.start),e.innerLoc.source=Fu(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i}=e;Pu||("slot"===o?e.tagType=2:Wu(e)?e.tagType=3:function({tag:e,props:t}){if(_u.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0),n>64&&n<91)||ou(e)||_u.isBuiltInComponent&&_u.isBuiltInComponent(e)||_u.isNativeTag&&!_u.isNativeTag(e))return!0;var n;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Qc("COMPILER_IS_ON_ELEMENT",_u,n.loc))return!0}}else if("bind"===n.name&&fu(n.arg,"is")&&Qc("COMPILER_IS_ON_ELEMENT",_u,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Nu.inRCDATA||(e.children=Ku(e.children,e.tag)),0===i&&_u.isPreTag(o)&&Ou--,Lu===e&&(Pu=Nu.inVPre=!1,Lu=null),Nu.inXML&&0===(Du[0]?Du[0].ns:_u.ns)&&(Nu.inXML=!1);{const t=e.props;if(!Nu.inSFCRoot&&Yc("COMPILER_NATIVE_TEMPLATE",_u)&&"template"===e.tag&&!Wu(e)){const t=Du[0]||Su,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&Qc("COMPILER_INLINE_TEMPLATE",_u,n.loc)&&e.children.length&&(n.value={type:2,content:Fu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function zu(e,t){let n=e;for(;Tu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Hu=new Set(["if","else","else-if","for","slot"]);function Wu({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&Hu.has(t[e].name))return!0;return!1}const Uu=/\r\n/g;function Ku(e,t){const n="preserve"!==_u.whitespace;let o=!1;for(let t=0;t<e.length;t++){const i=e[t];if(2===i.type)if(Ou)i.content=i.content.replace(Uu,"\n");else if(Gu(i.content)){const r=e[t-1]&&e[t-1].type,a=e[t+1]&&e[t+1].type;!r||!a||n&&(3===r&&(3===a||1===a)||1===r&&(3===a||1===a&&Zu(i.content)))?(o=!0,e[t]=null):i.content=" "}else n&&(i.content=Ju(i.content))}if(Ou&&t&&_u.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return o?e.filter(Boolean):e}function Gu(e){for(let t=0;t<e.length;t++)if(!Uc(e.charCodeAt(t)))return!1;return!0}function Zu(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function Ju(e){let t="",n=!1;for(let o=0;o<e.length;o++)Uc(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Yu(e){(Du[0]||Su).children.push(e)}function Qu(e,t){return{start:Nu.getPos(e),end:null==t?t:Nu.getPos(t),source:null==t?t:Fu(e,t)}}function Xu(e,t){e.end=Nu.getPos(t),e.source=Fu(e.start.offset,t)}function ed(e){const t={type:6,name:e.rawName,nameLoc:Qu(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function td(e,t=!1,n,o=0,i=0){return Dc(e,t,n,o)}function nd(e,t,n){_u.onError(tu(e,Qu(t,t)))}function od(e,t){if(Nu.reset(),$u=null,Eu=null,Iu="",Mu=-1,Au=-1,Du.length=0,Tu=e,_u=p({},Cu),t){let e;for(e in t)null!=t[e]&&(_u[e]=t[e])}Nu.mode="html"===_u.parseMode?1:"sfc"===_u.parseMode?2:0,Nu.inXML=1===_u.ns||2===_u.ns;const n=t&&t.delimiters;n&&(Nu.delimiterOpen=Gc(n[0]),Nu.delimiterClose=Gc(n[1]));const o=Su=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Mc}}([],e);return Nu.parse(Tu),o.loc=Qu(0,e.length),o.children=Ku(o.children),Su=null,o}function id(e,t){ad(e,t,rd(e,e.children[0]))}function rd(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!gu(t)}function ad(e,t,n=!1){const{children:o}=e,i=o.length;let r=0;for(let e=0;e<o.length;e++){const i=o[e];if(1===i.type&&0===i.tagType){const e=n?0:sd(i,t);if(e>0){if(e>=2){i.codegenNode.patchFlag="-1",i.codegenNode=t.hoist(i.codegenNode),r++;continue}}else{const e=i.codegenNode;if(13===e.type){const n=fd(e);if((!n||512===n||1===n)&&ud(i,t)>=2){const n=dd(i);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===i.type){const e=1===i.tagType;e&&t.scopes.vSlot++,ad(i,t),e&&t.scopes.vSlot--}else if(11===i.type)ad(i,t,1===i.children.length);else if(9===i.type)for(let e=0;e<i.branches.length;e++)ad(i.branches[e],t,1===i.branches[e].children.length)}if(r&&t.transformHoist&&t.transformHoist(o,t,e),r&&r===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&v(e.codegenNode.children)){const n=t.hoist(Oc(e.codegenNode.children));t.hmr&&(n.content=`[...${n.content}]`),e.codegenNode.children=n}}function sd(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(fd(i))return n.set(e,0),0;{let o=3;const r=ud(e,t);if(0===r)return n.set(e,0),0;r<o&&(o=r);for(let i=0;i<e.children.length;i++){const r=sd(e.children[i],t);if(0===r)return n.set(e,0),0;r<o&&(o=r)}if(o>1)for(let i=0;i<e.props.length;i++){const r=e.props[i];if(7===r.type&&"bind"===r.name&&r.exp){const i=sd(r.exp,t);if(0===i)return n.set(e,0),0;i<o&&(o=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(Zl),t.removeHelper(qc(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Rc(t.inSSR,i.isComponent))}return n.set(e,o),o}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return sd(e.content,t);case 4:return e.constType;case 8:let r=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if(x(o)||C(o))continue;const i=sd(o,t);if(0===i)return 0;i<r&&(r=i)}return r}}const ld=new Set([pc,hc,mc,gc]);function cd(e,t){if(14===e.type&&!x(e.callee)&&ld.has(e.callee)){const n=e.arguments[0];if(4===n.type)return sd(n,t);if(14===n.type)return cd(n,t)}return 0}function ud(e,t){let n=3;const o=dd(e);if(o&&15===o.type){const{properties:e}=o;for(let o=0;o<e.length;o++){const{key:i,value:r}=e[o],a=sd(i,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===r.type?sd(r,t):14===r.type?cd(r,t):0,0===s)return s;s<n&&(n=s)}}return n}function dd(e){const t=e.codegenNode;if(13===t.type)return t.props}function fd(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function pd(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:a=[],directiveTransforms:l={},transformHoist:u=null,isBuiltInComponent:d=c,isCustomElement:f=c,expressionPlugins:p=[],scopeId:h=null,slotted:m=!0,ssr:g=!1,inSSR:v=!1,ssrCssVars:b="",bindingMetadata:y=s,inline:w=!1,isTS:k=!1,onError:C=Xc,onWarn:_=eu,compatConfig:S}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),$={filename:t,selfName:T&&V(D(T[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:r,nodeTransforms:a,directiveTransforms:l,transformHoist:u,isBuiltInComponent:d,isCustomElement:f,expressionPlugins:p,scopeId:h,slotted:m,ssr:g,inSSR:v,ssrCssVars:b,bindingMetadata:y,inline:w,isTS:k,onError:C,onWarn:_,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=$.helpers.get(e)||0;return $.helpers.set(e,t+1),e},removeHelper(e){const t=$.helpers.get(e);if(t){const n=t-1;n?$.helpers.set(e,n):$.helpers.delete(e)}},helperString(e){return`_${Ic[$.helper(e)]}`},replaceNode(e){$.parent.children[$.childIndex]=$.currentNode=e},removeNode(e){const t=$.parent.children,n=e?t.indexOf(e):$.currentNode?$.childIndex:-1;e&&e!==$.currentNode?$.childIndex>n&&($.childIndex--,$.onNodeRemoved()):($.currentNode=null,$.onNodeRemoved()),$.parent.children.splice(n,1)},onNodeRemoved:c,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){x(e)&&(e=Dc(e)),$.hoists.push(e);const t=Dc(`_hoisted_${$.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Mc}}($.cached++,e,t)}};return $.filters=new Set,$}function hd(e,t){const n=pd(e,t);md(e,n),t.hoistStatic&&id(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(rd(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Bc(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;K[64];0,e.codegenNode=Ac(t,n(Hl),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function md(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let i=0;i<n.length;i++){const r=n[i](e,t);if(r&&(v(r)?o.push(...r):o.push(r)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(ec);break;case 5:t.ssr||t.helper(dc);break;case 9:for(let n=0;n<e.branches.length;n++)md(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];x(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,md(i,t))}}(e,t)}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function gd(e,t){const n=x(e)?t=>t===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(hu))return;const r=[];for(let a=0;a<i.length;a++){const s=i[a];if(7===s.type&&n(s.name)){i.splice(a,1),a--;const n=t(e,s,o);n&&r.push(n)}}return r}}}const vd="/*#__PURE__*/",bd=e=>`${Ic[e]}: _${Ic[e]}`;function yd(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:f=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:r,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:f,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Ic[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:i,prefixIdentifiers:r,indent:a,deindent:s,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!r&&"module"!==o;!function(e,t){const{ssr:n,prefixIdentifiers:o,push:i,newline:r,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}\n`,-1),e.hoists.length)){i(`const { ${[Ql,Xl,ec,tc,nc].filter((e=>u.includes(e))).map(bd).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:i,scopeId:r,mode:a}=t;o();for(let i=0;i<e.length;i++){const r=e[i];r&&(n(`const _hoisted_${i+1} = `),Cd(r,t),o())}t.pure=!1})(e.hoists,t),r(),i("return ")}(e,n);if(i(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),p&&(i("with (_ctx) {"),a(),f&&(i(`const { ${d.map(bd).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(wd(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(wd(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),wd(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n",0),l()),u||i("return "),e.codegenNode?Cd(e.codegenNode,n):i("null"),p&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function wd(e,t,{helper:n,push:o,newline:i,isTS:r}){const a=n("filter"===t?ac:"component"===t?oc:rc);for(let n=0;n<e.length;n++){let s=e[n];const l=s.endsWith("__self");l&&(s=s.slice(0,-6)),o(`const ${ku(s,t)} = ${a}(${JSON.stringify(s)}${l?", true":""})${r?"!":""}`),n<e.length-1&&i()}}function kd(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),xd(e,t,n),n&&t.deindent(),t.push("]")}function xd(e,t,n=!1,o=!0){const{push:i,newline:r}=t;for(let a=0;a<e.length;a++){const s=e[a];x(s)?i(s,-3):v(s)?kd(s,t):Cd(s,t),a<e.length-1&&(n?(o&&i(","),r()):o&&i(", "))}}function Cd(e,t){if(x(e))t.push(e,-3);else if(C(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Cd(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:_d(e,t);break;case 5:!function(e,t){const{push:n,helper:o,pure:i}=t;i&&n(vd);n(`${o(dc)}(`),Cd(e.content,t),n(")")}(e,t);break;case 8:Sd(e,t);break;case 3:!function(e,t){const{push:n,helper:o,pure:i}=t;i&&n(vd);n(`${o(ec)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:o,pure:i}=t,{tag:r,props:a,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:f,isComponent:p}=e;u&&n(o(sc)+"(");d&&n(`(${o(Zl)}(${f?"true":""}), `);i&&n(vd);const h=d?qc(t.inSSR,p):Rc(t.inSSR,p);n(o(h)+"(",-2,e),xd(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([r,a,s,l,c]),t),n(")"),d&&n(")");u&&(n(", "),Cd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:i}=t,r=x(e.callee)?e.callee:o(e.callee);i&&n(vd);n(r+"(",-2,e),xd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:i,newline:r}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const s=a.length>1||!1;n(s?"{":"{ "),s&&o();for(let e=0;e<a.length;e++){const{key:o,value:i}=a[e];Td(o,t),n(": "),Cd(i,t),e<a.length-1&&(n(","),r())}s&&i(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){kd(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:i}=t,{params:r,returns:a,body:s,newline:l,isSlot:c}=e;c&&n(`_${Ic[_c]}(`);n("(",-2,e),v(r)?xd(r,t):r&&Cd(r,t);n(") => "),(l||s)&&(n("{"),o());a?(l&&n("return "),v(a)?kd(a,t):Cd(a,t)):s&&Cd(s,t);(l||s)&&(i(),n("}"));c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:i,newline:r}=e,{push:a,indent:s,deindent:l,newline:c}=t;if(4===n.type){const e=!ru(n.content);e&&a("("),_d(n,t),e&&a(")")}else a("("),Cd(n,t),a(")");r&&s(),t.indentLevel++,r||a(" "),a("? "),Cd(o,t),t.indentLevel--,r&&c(),r||a(" "),a(": ");const u=19===i.type;u||t.indentLevel++;Cd(i,t),u||t.indentLevel--;r&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:i,deindent:r,newline:a}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${o(kc)}(-1),`),a());n(`_cache[${e.index}] = `),Cd(e.value,t),e.isVNode&&(n(","),a(),n(`${o(kc)}(1),`),a(),n(`_cache[${e.index}]`),r());n(")")}(e,t);break;case 21:xd(e.body,t,!0,!1)}}function _d(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function Sd(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];x(o)?t.push(o,-3):Cd(o,t)}}function Td(e,t){const{push:n}=t;if(8===e.type)n("["),Sd(e,t),n("]");else if(e.isStatic){n(ru(e.content)?e.content:JSON.stringify(e.content),-2,e)}else n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const $d=gd(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(tu(28,t.loc)),t.exp=Dc("true",!1,o)}0;if("if"===t.name){const i=Ed(e,t),r={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(r),o)return o(r,i,!0)}else{const i=n.parent.children;let r=i.indexOf(e);for(;r-- >=-1;){const a=i[r];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(tu(30,e.loc)),n.removeNode();const i=Ed(e,t);0,a.branches.push(i);const r=o&&o(a,i,!1);md(i,n),r&&r(),n.currentNode=null}else n.onError(tu(30,e.loc));break}n.removeNode(a)}}}}(e,t,n,((e,t,o)=>{const i=n.parent.children;let r=i.indexOf(e),a=0;for(;r-- >=0;){const e=i[r];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(o)e.codegenNode=Id(t,a,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=Id(t,a+e.branches.length-1,n)}}}))));function Ed(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!uu(e,"for")?e.children:[e],userKey:du(e,"key"),isTemplateIf:n}}function Id(e,t,n){return e.condition?Fc(e.condition,Md(e,t,n),jc(n.helper(ec),['""',"true"])):Md(e,t,n)}function Md(e,t,n){const{helper:o}=n,i=Lc("key",Dc(`${t}`,!1,Mc,2)),{children:r}=e,a=r[0];if(1!==r.length||1!==a.type){if(1===r.length&&11===a.type){const e=a.codegenNode;return yu(e,i,n),e}{let t=64;K[64];return Ac(n,o(Hl),Pc([i]),r,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(s=e).type&&s.callee===$c?s.arguments[1].returns:s;return 13===t.type&&Bc(t,n),yu(t,i,n),e}var s}const Ad=gd("for",((e,t,n)=>{const{helper:o,removeHelper:i}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(tu(31,t.loc));const i=t.forParseResult;if(!i)return void n.onError(tu(32,t.loc));Od(i,n);const{addIdentifiers:r,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:u,index:d}=i,f={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:mu(e)?e.children:[e]};n.replaceNode(f),s.vFor++;const p=o&&o(f);return()=>{s.vFor--,p&&p()}}(e,t,n,(t=>{const r=jc(o(lc),[t.source]),a=mu(e),s=uu(e,"memo"),l=du(e,"key"),c=l&&(6===l.type?Dc(l.value.content,!0):l.exp),u=l?Lc("key",c):null,d=4===t.source.type&&t.source.constType>0,f=d?64:l?128:256;return t.codegenNode=Ac(n,o(Hl),void 0,r,f+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let l;const{children:f}=t;const p=1!==f.length||1!==f[0].type,h=gu(e)?e:a&&1===e.children.length&&gu(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,a&&u&&yu(l,u,n)):p?l=Ac(n,o(Hl),u?Pc([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=f[0].codegenNode,a&&u&&yu(l,u,n),l.isBlock!==!d&&(l.isBlock?(i(Zl),i(qc(n.inSSR,l.isComponent))):i(Rc(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(o(Zl),o(qc(n.inSSR,l.isComponent))):o(Rc(n.inSSR,l.isComponent))),s){const e=Vc(Pd(t.parseResult,[Dc("_cached")]));e.body={type:21,body:[Nc(["const _memo = (",s.exp,")"]),Nc(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Ec)}(_cached, _memo)) return _cached`]),Nc(["const _item = ",l]),Dc("_item.memo = _memo"),Dc("return _item")],loc:Mc},r.arguments.push(e,Dc("_cache"),Dc(String(n.cached++)))}else r.arguments.push(Vc(Pd(t.parseResult),l,!0))}}))}));function Od(e,t){e.finalized||(e.finalized=!0)}function Pd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Dc("_".repeat(t+1),!1)))}([e,t,n,...o])}const Ld=Dc("undefined",!1),Dd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=uu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Nd=(e,t,n,o)=>Vc(e,n,!1,!0,n.length?n[0].loc:o);function jd(e,t,n=Nd){t.helper(_c);const{children:o,loc:i}=e,r=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=uu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!nu(e)&&(s=!0),r.push(Lc(e||Dc("default",!0),n(t,void 0,o,i)))}let c=!1,u=!1;const d=[],f=new Set;let p=0;for(let e=0;e<o.length;e++){const i=o[e];let h;if(!mu(i)||!(h=uu(i,"slot",!0))){3!==i.type&&d.push(i);continue}if(l){t.onError(tu(37,h.loc));break}c=!0;const{children:m,loc:g}=i,{arg:v=Dc("default",!0),exp:b,loc:y}=h;let w;nu(v)?w=v?v.content:"default":s=!0;const k=uu(i,"for"),x=n(b,k,m,g);let C,_;if(C=uu(i,"if"))s=!0,a.push(Fc(C.exp,Vd(v,x,p++),Ld));else if(_=uu(i,/^else(-if)?$/,!0)){let n,i=e;for(;i--&&(n=o[i],3===n.type););if(n&&mu(n)&&uu(n,"if")){o.splice(e,1),e--;let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=_.exp?Fc(_.exp,Vd(v,x,p++),Ld):Vd(v,x,p++)}else t.onError(tu(30,_.loc))}else if(k){s=!0;const e=k.forParseResult;e?(Od(e),a.push(jc(t.helper(lc),[e.source,Vc(Pd(e),Vd(v,x),!0)]))):t.onError(tu(32,k.loc))}else{if(w){if(f.has(w)){t.onError(tu(38,y));continue}f.add(w),"default"===w&&(u=!0)}r.push(Lc(v,x))}}if(!l){const e=(e,o)=>{const r=n(e,void 0,o,i);return t.compatConfig&&(r.isNonScopedSlot=!0),Lc("default",r)};c?d.length&&d.some((e=>Rd(e)))&&(u?t.onError(tu(39,d[0].loc)):r.push(e(void 0,d))):r.push(e(void 0,o))}const h=s?2:Fd(e.children)?3:1;let m=Pc(r.concat(Lc("_",Dc(h+"",!1))),i);return a.length&&(m=jc(t.helper(uc),[m,Oc(a)])),{slots:m,hasDynamicSlots:s}}function Vd(e,t,n){const o=[Lc("name",e),Lc("fn",t)];return null!=n&&o.push(Lc("key",Dc(String(n),!0))),Pc(o)}function Fd(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Fd(n.children))return!0;break;case 9:if(Fd(n.branches))return!0;break;case 10:case 11:if(Fd(n.children))return!0}}return!1}function Rd(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():Rd(e.content))}const qd=new WeakMap,Bd=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,i=1===e.tagType;let r=i?function(e,t,n=!1){let{tag:o}=e;const i=Ud(o),r=du(e,"is",!1,!0);if(r)if(i||Yc("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===r.type?e=r.value&&Dc(r.value.content,!0):(e=r.exp,e||(e=Dc("is",!1,r.loc))),e)return jc(t.helper(ic),[e])}else 6===r.type&&r.value.content.startsWith("vue:")&&(o=r.value.content.slice(4));const a=ou(o)||t.isBuiltInComponent(o);if(a)return n||t.helper(a),a;return t.helper(oc),t.components.add(o),ku(o,"component")}(e,t):`"${n}"`;const a=_(r)&&r.callee===ic;let s,l,c,u,d,f,p=0,h=a||r===Wl||r===Ul||!i&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=zd(e,t,void 0,i,a);s=n.props,p=n.patchFlag,d=n.dynamicPropNames;const o=n.directives;f=o&&o.length?Oc(o.map((e=>function(e,t){const n=[],o=qd.get(e);o?n.push(t.helperString(o)):(t.helper(rc),t.directives.add(e.name),n.push(ku(e.name,"directive")));const{loc:i}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Dc("true",!1,i);n.push(Pc(e.modifiers.map((e=>Lc(e,t))),i))}return Oc(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){r===Kl&&(h=!0,p|=1024);if(i&&r!==Wl&&r!==Kl){const{slots:n,hasDynamicSlots:o}=jd(e,t);l=n,o&&(p|=1024)}else if(1===e.children.length&&r!==Wl){const n=e.children[0],o=n.type,i=5===o||8===o;i&&0===sd(n,t)&&(p|=1),l=i||2===o?n:e.children}else l=e.children}0!==p&&(c=String(p),d&&d.length&&(u=function(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}(d))),e.codegenNode=Ac(t,r,s,l,c,u,f,!!h,!1,i,e.loc)};function zd(e,t,n=e.props,o,i,r=!1){const{tag:a,loc:s,children:l}=e;let c=[];const u=[],f=[],p=l.length>0;let h=!1,m=0,g=!1,v=!1,b=!1,y=!1,w=!1,k=!1;const x=[],_=e=>{c.length&&(u.push(Pc(Hd(c),s)),c=[]),e&&u.push(e)},S=()=>{t.scopes.vFor>0&&c.push(Lc(Dc("ref_for",!0),Dc("true")))},T=({key:e,value:n})=>{if(nu(e)){const r=e.content,a=d(r);if(!a||o&&!i||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||A(r)||(y=!0),a&&A(r)&&(k=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&sd(n,t)>0)return;"ref"===r?g=!0:"class"===r?v=!0:"style"===r?b=!0:"key"===r||x.includes(r)||x.push(r),!o||"class"!==r&&"style"!==r||x.includes(r)||x.push(r)}else w=!0};for(let i=0;i<n.length;i++){const l=n[i];if(6===l.type){const{loc:e,name:n,nameLoc:o,value:i}=l;let r=!0;if("ref"===n&&(g=!0,S()),"is"===n&&(Ud(a)||i&&i.content.startsWith("vue:")||Yc("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Lc(Dc(n,!0,o),Dc(i?i.content:"",r,i?i.loc:e)))}else{const{name:n,arg:i,exp:d,loc:g,modifiers:v}=l,b="bind"===n,y="on"===n;if("slot"===n){o||t.onError(tu(40,g));continue}if("once"===n||"memo"===n)continue;if("is"===n||b&&fu(i,"is")&&(Ud(a)||Yc("COMPILER_IS_ON_ELEMENT",t)))continue;if(y&&r)continue;if((b&&fu(i,"key")||y&&p&&fu(i,"vue:before-update"))&&(h=!0),b&&fu(i,"ref")&&S(),!i&&(b||y)){if(w=!0,d)if(b){if(S(),_(),Yc("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(d);continue}u.push(d)}else _({type:14,loc:g,callee:t.helper(vc),arguments:o?[d]:[d,"true"]});else t.onError(tu(b?34:35,g));continue}b&&v.includes("prop")&&(m|=32);const k=t.directiveTransforms[n];if(k){const{props:n,needRuntime:o}=k(l,e,t);!r&&n.forEach(T),y&&i&&!nu(i)?_(Pc(n,s)):c.push(...n),o&&(f.push(l),C(o)&&qd.set(l,o))}else O(n)||(f.push(l),p&&(h=!0))}}let $;if(u.length?(_(),$=u.length>1?jc(t.helper(fc),u,s):u[0]):c.length&&($=Pc(Hd(c),s)),w?m|=16:(v&&!o&&(m|=2),b&&!o&&(m|=4),x.length&&(m|=8),y&&(m|=32)),h||0!==m&&32!==m||!(g||k||f.length>0)||(m|=512),!t.inSSR&&$)switch($.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t<$.properties.length;t++){const i=$.properties[t].key;nu(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(o=!0)}const i=$.properties[e],r=$.properties[n];o?$=jc(t.helper(mc),[$]):(i&&!nu(i.value)&&(i.value=jc(t.helper(pc),[i.value])),r&&(b||4===r.value.type&&"["===r.value.content.trim()[0]||17===r.value.type)&&(r.value=jc(t.helper(hc),[r.value])));break;case 14:break;default:$=jc(t.helper(mc),[jc(t.helper(gc),[$])])}return{props:$,directives:f,patchFlag:m,dynamicPropNames:x,shouldUseBlock:h}}function Hd(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const r=i.key.content,a=t.get(r);a?("style"===r||"class"===r||d(r))&&Wd(a,i):(t.set(r,i),n.push(i))}return n}function Wd(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Oc([e.value,t.value],e.loc)}function Ud(e){return"component"===e||"Component"===e}const Kd=(e,t)=>{if(gu(e)){const{children:n,loc:o}=e,{slotName:i,slotProps:r}=function(e,t){let n,o='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];if(6===n.type)n.value&&("name"===n.name?o=JSON.stringify(n.value.content):(n.name=D(n.name),i.push(n)));else if("bind"===n.name&&fu(n.arg,"name")){if(n.exp)o=n.exp;else if(n.arg&&4===n.arg.type){const e=D(n.arg.content);o=n.exp=Dc(e,!1,n.arg.loc)}}else"bind"===n.name&&n.arg&&nu(n.arg)&&(n.arg.content=D(n.arg.content)),i.push(n)}if(i.length>0){const{props:o,directives:r}=zd(e,t,i,!1,!1);n=o,r.length&&t.onError(tu(36,r[0].loc))}return{slotName:o,slotProps:n}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;r&&(a[2]=r,s=3),n.length&&(a[3]=Vc([],n,!1,!1,o),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=jc(t.helper(cc),a,o)}};const Gd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Zd=(e,t,n,o)=>{const{loc:i,modifiers:r,arg:a}=e;let s;if(e.exp||r.length||n.onError(tu(35,i)),4===a.type)if(a.isStatic){let e=a.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);s=Dc(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?F(D(e)):`on:${e}`,!0,a.loc)}else s=Nc([`${n.helperString(wc)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(wc)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=cu(l.content),t=!(e||Gd.test(l.content)),n=l.content.includes(";");0,(t||c&&e)&&(l=Nc([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Lc(s,l||Dc("() => {}",!1,i))]};return o&&(u=o(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Jd=(e,t,n)=>{const{modifiers:o,loc:i}=e,r=e.arg;let{exp:a}=e;if(a&&4===a.type&&!a.content.trim()&&(a=void 0),!a){if(4!==r.type||!r.isStatic)return n.onError(tu(52,r.loc)),{props:[Lc(r,Dc("",!0,i))]};const t=D(r.content);a=e.exp=Dc(t,!1,r.loc)}return 4!==r.type?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),o.includes("camel")&&(4===r.type?r.isStatic?r.content=D(r.content):r.content=`${n.helperString(bc)}(${r.content})`:(r.children.unshift(`${n.helperString(bc)}(`),r.children.push(")"))),n.inSSR||(o.includes("prop")&&Yd(r,"."),o.includes("attr")&&Yd(r,"^")),{props:[Lc(r,a)]}},Yd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Qd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(pu(t)){i=!0;for(let i=e+1;i<n.length;i++){const r=n[i];if(!pu(r)){o=void 0;break}o||(o=n[e]=Nc([t],t.loc)),o.children.push(" + ",r),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const o=n[e];if(pu(o)||8===o.type){const i=[];2===o.type&&" "===o.content||i.push(o),t.ssr||0!==sd(o,t)||i.push("1"),n[e]={type:12,content:o,loc:o.loc,codegenNode:jc(t.helper(tc),i)}}}}},Xd=new WeakSet,ef=(e,t)=>{if(1===e.type&&uu(e,"once",!0)){if(Xd.has(e)||t.inVOnce||t.inSSR)return;return Xd.add(e),t.inVOnce=!0,t.helper(kc),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},tf=(e,t,n)=>{const{exp:o,arg:i}=e;if(!o)return n.onError(tu(41,e.loc)),nf();const r=o.loc.source,a=4===o.type?o.content:r,s=n.bindingMetadata[r];if("props"===s||"props-aliased"===s)return n.onError(tu(44,o.loc)),nf();if(!a.trim()||!cu(a))return n.onError(tu(42,o.loc)),nf();const l=i||Dc("modelValue",!0),c=i?nu(i)?`onUpdate:${D(i.content)}`:Nc(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;u=Nc([`${n.isTS?"($event: any)":"$event"} => ((`,o,") = $event)"]);const d=[Lc(l,e.exp),Lc(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(ru(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?nu(i)?`${i.content}Modifiers`:Nc([i,' + "Modifiers"']):"modelModifiers";d.push(Lc(n,Dc(`{ ${t} }`,!1,e.loc,2)))}return nf(d)};function nf(e=[]){return{props:e}}const of=/[\w).+\-_$\]]/,rf=(e,t)=>{Yc("COMPILER_FILTERS",t)&&(5===e.type&&af(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&af(e.exp,t)})))};function af(e,t){if(4===e.type)sf(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];"object"==typeof o&&(4===o.type?sf(o,t):8===o.type?af(e,t):5===o.type&&af(o.content,t))}}function sf(e,t){const n=e.content;let o,i,r,a,s=!1,l=!1,c=!1,u=!1,d=0,f=0,p=0,h=0,m=[];for(r=0;r<n.length;r++)if(i=o,o=n.charCodeAt(r),s)39===o&&92!==i&&(s=!1);else if(l)34===o&&92!==i&&(l=!1);else if(c)96===o&&92!==i&&(c=!1);else if(u)47===o&&92!==i&&(u=!1);else if(124!==o||124===n.charCodeAt(r+1)||124===n.charCodeAt(r-1)||d||f||p){switch(o){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:d++;break;case 125:d--}if(47===o){let e,t=r-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&of.test(e)||(u=!0)}}else void 0===a?(h=r+1,a=n.slice(0,r).trim()):g();function g(){m.push(n.slice(h,r).trim()),h=r+1}if(void 0===a?a=n.slice(0,r).trim():0!==h&&g(),m.length){for(r=0;r<m.length;r++)a=lf(a,m[r],t);e.content=a}}function lf(e,t,n){n.helper(ac);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${ku(t,"filter")}(${e})`;{const i=t.slice(0,o),r=t.slice(o+1);return n.filters.add(i),`${ku(i,"filter")}(${e}${")"!==r?","+r:r}`}}const cf=new WeakSet,uf=(e,t)=>{if(1===e.type){const n=uu(e,"memo");if(!n||cf.has(e))return;return cf.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Bc(o,t),e.codegenNode=jc(t.helper($c),[n.exp,Vc(void 0,o),"_cache",String(t.cached++)]))}}};function df(e,t={}){const n=t.onError||Xc,o="module"===t.mode;!0===t.prefixIdentifiers?n(tu(47)):o&&n(tu(48));t.cacheHandlers&&n(tu(49)),t.scopeId&&!o&&n(tu(50));const i=p({},t,{prefixIdentifiers:!1}),r=x(e)?od(e,i):e,[a,s]=[[ef,$d,uf,Ad,rf,Kd,Bd,Dd,Qd],{on:Zd,bind:Jd,model:tf}];return hd(r,p({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:p({},s,t.directiveTransforms||{})})),yd(r,i)}const ff=Symbol(""),pf=Symbol(""),hf=Symbol(""),mf=Symbol(""),gf=Symbol(""),vf=Symbol(""),bf=Symbol(""),yf=Symbol(""),wf=Symbol(""),kf=Symbol("");var xf;let Cf;xf={[ff]:"vModelRadio",[pf]:"vModelCheckbox",[hf]:"vModelText",[mf]:"vModelSelect",[gf]:"vModelDynamic",[vf]:"withModifiers",[bf]:"withKeys",[yf]:"vShow",[wf]:"Transition",[kf]:"TransitionGroup"},Object.getOwnPropertySymbols(xf).forEach((e=>{Ic[e]=xf[e]}));const _f={parseMode:"html",isVoidTag:re,isNativeTag:e=>ne(e)||oe(e)||ie(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Cf||(Cf=document.createElement("div")),t?(Cf.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Cf.children[0].getAttribute("foo")):(Cf.innerHTML=e,Cf.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?wf:"TransitionGroup"===e||"transition-group"===e?kf:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},Sf=(e,t)=>{const n=X(e);return Dc(JSON.stringify(n),!1,t,3)};function Tf(e,t){return tu(e,t)}const $f=a("passive,once,capture"),Ef=a("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),If=a("left,right"),Mf=a("onkeyup,onkeydown,onkeypress",!0),Af=(e,t)=>nu(e)&&"onclick"===e.content.toLowerCase()?Dc(t,!0):4!==e.type?Nc(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Of=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Pf=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Dc("style",!0,t.loc),exp:Sf(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Lf={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Tf(53,i)),t.children.length&&(n.onError(Tf(54,i)),t.children.length=0),{props:[Lc(Dc("innerHTML",!0,i),o||Dc("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Tf(55,i)),t.children.length&&(n.onError(Tf(56,i)),t.children.length=0),{props:[Lc(Dc("textContent",!0),o?sd(o,n)>0?o:jc(n.helperString(dc),[o],i):Dc("",!0))]}},model:(e,t,n)=>{const o=tf(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(Tf(58,e.arg.loc));const{tag:i}=t,r=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||r){let a=hf,s=!1;if("input"===i||r){const o=du(t,"type");if(o){if(7===o.type)a=gf;else if(o.value)switch(o.value.content){case"radio":a=ff;break;case"checkbox":a=pf;break;case"file":s=!0,n.onError(Tf(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(a=gf)}else"select"===i&&(a=mf);s||(o.needRuntime=n.helper(a))}else n.onError(Tf(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Zd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:i,value:r}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=((e,t,n,o)=>{const i=[],r=[],a=[];for(let o=0;o<t.length;o++){const s=t[o];"native"===s&&Qc("COMPILER_V_ON_NATIVE",n)||$f(s)?a.push(s):If(s)?nu(e)?Mf(e.content)?i.push(s):r.push(s):(i.push(s),r.push(s)):Ef(s)?r.push(s):i.push(s)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:a}})(i,o,n,e.loc);if(s.includes("right")&&(i=Af(i,"onContextmenu")),s.includes("middle")&&(i=Af(i,"onMouseup")),s.length&&(r=jc(n.helper(vf),[r,JSON.stringify(s)])),!a.length||nu(i)&&!Mf(i.content)||(r=jc(n.helper(bf),[r,JSON.stringify(a)])),l.length){const e=l.map(V).join("");i=nu(i)?Dc(`${i.content}${e}`,!0):Nc(["(",i,`) + "${e}"`])}return{props:[Lc(i,r)]}})),show:(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Tf(61,i)),{props:[],needRuntime:n.helper(yf)}}};const Df=new WeakMap;var Nf,jf;Va((function(e,t){if(!x(e)){if(!e.nodeType)return c;e=e.innerHTML}const n=e,i=function(e){let t=Df.get(null!=e?e:s);return t||(t=Object.create(null),Df.set(null!=e?e:s,t)),t}(t),r=i[n];if(r)return r;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const a=p({hoistStatic:!0,onError:void 0,onWarn:c},t);a.isCustomElement||"undefined"==typeof customElements||(a.isCustomElement=e=>!!customElements.get(e));const{code:l}=function(e,t={}){return df(e,p({},_f,t,{nodeTransforms:[Of,...Pf,...t.nodeTransforms||[]],directiveTransforms:p({},Lf,t.directiveTransforms||{}),transformHoist:null}))}(e,a),u=new Function("Vue",l)(o);return u._rc=!0,i[n]=u}));var Vf=Et({codeExecutionEnabled:!1,unsignedCodeIds:[],activeUnsignedCodeId:void 0,activeCssPopup:window.bricksData.disableClassManager?"variables":"classes",_addedClasses:{},debounceIds:{},sendPostMessage:!0,messageOrigin:"main",iframeLoaded:!1,isBroadcasting:!1,isMac:!1,isSaving:!1,fullAccess:!0,userCan:{},breakpoints:[],breakpointActive:"",breakpointManager:!1,defaultUnit:"px",header:[],content:[],footer:[],dynamicData:{},unsavedChanges:[],globalChanges:{added:[],deleted:[],modified:[]},isReloadingCanvas:!1,forceRender:!1,rerenderControls:void 0,rerenderElementIds:[],rerenderLoopIds:[],activeId:void 0,activeElement:void 0,deleteElement:!1,showStructure:!1,message:void 0,showContainerLayouts:void 0,showCssGridLayout:void 0,fonts:{},css:{},colorPalette:[],colorPaletteInlineCssVars:"",globalElements:[],globalSettings:{},activeClass:!1,activeClassIsLocked:!1,globalClassIndexById:{},globalClasses:[],globalClassesLocked:[],globalClassesSelected:{},globalClassesTimestamp:0,globalClassesUser:0,globalClassesCategories:[],globalClassesCategoriesSelected:[],globalClassesCategoryActive:void 0,globalClassesSelectedManager:[],globalVariables:[],globalVariablesUi:localStorage.getItem("brx_builder_control_spacing_view")||"variables-ui",globalVariableSuggestions:[],globalVariablesSelected:[],globalVariablesCategories:[],globalVariablesCategoriesSelected:[],globalVariablesInlineCssVars:"",pseudoClasses:[],pseudoClassActive:"",pseudoClassPopup:!1,pageSettings:{},popup:!1,activePanel:"elements",activePanelGroup:void 0,activePanelTab:"content",highlightId:void 0,isPanelExpanded:!1,isPreviewing:!1,isInlineEditing:!1,insertAfter:!1,draggingId:!1,draggingElement:!1,draggingPosition:!1,draggingOldParentId:!1,draggingOldIndex:!1,draggingNewParentId:!1,draggingNewIndex:!1,revisionData:void 0,templateElements:{},templateType:void 0,templateSettings:{},templateHeaderSettings:{},saveAsTemplate:void 0,themeStyles:{},themeStyleActive:void 0,themeStyleSettings:{},history:[],historyIndex:0,historyInProgress:!1,scrollToElementId:!1,scrolled:0,scrollDirection:"down",scrollToPanelTop:!1,copiedElement:null,copiedElements:null,notifications:[],notification:void 0,lockedUser:!1,pinnedElements:[],isResizingPanel:!1,searchControls:"",ajaxCache:{},panelWidth:parseInt(null===(Nf=window.bricksData)||void 0===Nf?void 0:Nf.panelWidth)||300,previewWidth:0,previewHeight:0,previewWrapperWidth:0,previewWrapperHeight:0,previewScaleMax:1,previewScaleActive:!window.bricksData.scaleOff,previewWidthLocked:!!window.bricksData.widthLocked&&window.bricksData.widthLocked,revisions:[],revisionId:void 0,currentRevisionId:void 0,structureExpandAll:null===(jf=window.bricksData)||void 0===jf||!jf.structureCollapsed,structureWidth:300,activeCustomFonts:[],activeGoogleFonts:{},loopPreviewText:{},elementsHtml:{},clonedElementsHtml:{},isResizingElement:!1,isSpacingElement:!1,showControlSearch:!1,showContextMenu:!1,showDynamicTagPicker:!1,showElementClasses:!1,showConditions:!1,showInteractions:!1,showNotifications:!1,hasConflicts:!1,toolbar:!1}),Ff=Ua((function(){return Vf.globalClasses})),Rf=Ua((function(){var e,t=null===(e=Vf.activeClass)||void 0===e?void 0:e.id;return t?Ff.value.find((function(e){return e.id===t})):void 0})),qf=Ua((function(){return Vf.globalVariables})),Bf=Ua((function(){return Vf.activeId&&Hf.value&&Hf.value.find((function(e){return e.id===Vf.activeId}))||{}})),zf=Ua((function(){switch(Vf.templateType){case"header":return"header";case"footer":return"footer";default:return"content"}})),Hf=Ua((function(){return Vf.revisionData?Vf.revisionData:Vf[zf.value]})),Wf=Ua((function(){var e=Vf.revisionData?Vf.revisionData:Vf[zf.value];return e?e.filter((function(e){return!(null!=e&&e.parent)||0==e.parent})):[]})),Uf=Ua((function(){return Math.min(Vf.previewWrapperWidth/Vf.previewWidth,Vf.previewScaleMax)})),Kf=Ua((function(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window})),Gf=Ua((function(){return"header"!==Vf.templateType&&Object.keys(Vf.templateHeaderSettings).length?Vf.templateHeaderSettings:Object.keys(Vf.templateSettings).length?Vf.templateSettings:{}})),Zf=Ua((function(){return Gf.value.headerPosition?Gf.value.headerPosition:""})),Jf=Ua((function(){if(Zf.value||!Gf.value.headerSticky)return[];var e=["sticky"];Vf.scrolled>0&&(e.push("fixed"),e.push("scrolling")),Gf.value.headerStickyOnScroll&&e.push("on-scroll");var t=Gf.value.headerStickySlideUpAfter?parseInt(Gf.value.headerStickySlideUpAfter):0;return"down"===Vf.scrollDirection&&t&&Vf.scrolled>t&&e.push("slide-up"),e})),Yf=Ua((function(){var e,t,n=null===(e=Vf.breakpoints)||void 0===e?void 0:e[0],o=null===(t=Vf.breakpoints)||void 0===t?void 0:t[1];return!(null==n||!n.base||!o)&&(null==n?void 0:n.width)<(null==o?void 0:o.width)}));function Qf(e){return Qf="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},Qf(e)}var Xf=window.bricksData.i18n,ep=function(e){var t={id:uh.generateId(),name:e.name,parent:e.parent?e.parent:0,children:Array.isArray(null==e?void 0:e.children)?e.children:[],settings:e.settings?e.settings:{}};null!=e&&e.attributes&&(t.attributes=e.attributes),null!=e&&e.label&&(t.label=e.label),null!=e&&e.global&&(t.global=e.global),e.hasOwnProperty("cloneable")&&(t.cloneable=e.cloneable),e.hasOwnProperty("deletable")&&(t.deletable=e.deletable);var n=uh.getElementConfig(e.name),o=(null==n?void 0:n.controls)||{};if(!Object.keys(t.settings).length)for(var i in o){var r;null!==(r=o[i])&&void 0!==r&&r.default&&!t.settings.hasOwnProperty(i)&&(t.settings[i]=o[i].default)}return t},tp=function(e,t,n){if(!(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])||Vf.fullAccess){var o=uh.clone(Hf.value);if(t=Number.isInteger(t)?t:o.length-1,0!=n&&n){var i=o.findIndex((function(e){return e.id===n}));if(-1!==i){if(Vf.activeId){var r=o[i].children.findIndex((function(e){return Vf.activeId===e}));-1!==r&&(t=r+1)}o[i].children.splice(t,0,e.id)}e.parent=n,o.push(e)}else if(e.parent=0,Array.isArray(o)){var a=!!Wf.value[t]&&Wf.value[t].id;a?(t=o.findIndex((function(e){return e.id===a})),o.splice(t,0,e)):o.push(e)}else o=[e];Vf[zf.value]=o,Tn((function(){if(Vf.activeElement&&Vf.sendPostMessage){var e=Hf.value.find((function(e){var t;return e.id===(null===(t=Vf.activeElement)||void 0===t?void 0:t.id)}));e&&(Vf.activeElement=e)}}))}},np=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!i||Vf.fullAccess){Vf.sendPostMessage=!0;var r,a=(null==n?void 0:n.element)||{},s=(null==n?void 0:n.index)||0,l=(null==n?void 0:n.parent)||0;if(a=uh.clone(a),null!=n&&n.keepLabel||delete a.label,"section"===(null===(e=a)||void 0===e?void 0:e.name))l=0,0===(s="section"===(null===(r=Bf.value)||void 0===r?void 0:r.name)?Hf.value.findIndex((function(e){return e.id===Bf.value.id})):Hf.value.length-1)&&(s+=1);else if(!l)if(l=uh.isNestable(Bf.value)?Bf.value.id:0)s=Bf.value.children?Bf.value.children.length:0;else{var c=Bf.value?Bf.value.parent:null;if(c){var u=Hf.value.find((function(e){return e.id===c}));if(u){l=c;var d=u.children?u.children.indexOf(Bf.value.id):u.children.length;-1!==d&&(s=d+1)}}else s||(s=Wf.value.length)}a=ep(a);var f=!1;if(Array.isArray(null===(t=a)||void 0===t?void 0:t.children)&&a.children.some((function(e){return"object"===Qf(e)}))&&(f=a.children,a.children=[]),Vf.insertAfter){var p=0!=l&&dp(l);p&&(l=null==p?void 0:p.parent),0==l&&-1!==(s=Wf.value.findIndex((function(e){return e.id===Bf.value.id})))&&(s+=1)}tp(a,s,l,i);var h=uh.getElementConfig(a.name);Array.isArray(null==h?void 0:h.nestableChildren)&&(f=h.nestableChildren),f&&op({children:f,parentId:a.id}),o.shiftKey&&Tn((function(){var e=a.id;if("section"===a.name){var t,n=null===(t=Hf.value[Hf.value.length-1])||void 0===t?void 0:t.id;n&&(e=n)}Vf.activeId=e,Vf.activePanel="element",Vf.scrollToElementId=e}))}},op=function e(t){t.children.forEach((function(n,o){var i=ep(n);i.children&&(i.children=[]),n.settings&&(i.settings=n.settings),tp(i,o,t.parentId),Array.isArray(null==n?void 0:n.children)&&e({children:null==n?void 0:n.children,parentId:i.id})}))},ip=function(e){if(Vf.fullAccess){var t=null==e?void 0:e.element,n=null==e?void 0:e.index;if(!t)if((t=Bf.value).parent){var o=Hf.value.find((function(e){return e.id===t.parent}));if(o){var i=o.children.indexOf(t.id);-1!==i&&(n=i)}}else{var r=Wf.value.findIndex((function(e){return e.id===t.id}));-1!==r&&(n=r)}t&&"number"==typeof n&&function(e,t){var n=[];!function e(t,o,i){var r,a,s,l=t.id,c=gp(t,"iframe");t=uh.clone(t);var u=uh.generateId();t.id=u,null!==(r=t)&&void 0!==r&&null!==(r=r.settings)&&void 0!==r&&r._interactions&&(t.settings._interactions=t.settings._interactions.map((function(e){return e.id=uh.generateId(),e}))),l!==t.id&&Object.keys(t.settings).forEach((function(e){e.startsWith("_cssCustom")&&(t.settings[e]=t.settings[e].replace(new RegExp(l,"g"),u))})),null!==(a=t)&&void 0!==a&&null!==(a=a.settings)&&void 0!==a&&a._cssId&&delete t.settings._cssId;var d=t.children||[];t.children=[];var f=mp().querySelector('script[id="tmpl-bricks-element-'.concat(null===(s=t)||void 0===s?void 0:s.name,'"]')),p=uh.isNestable(t);if(c&&!f&&!p){var h=c.outerHTML,m=new RegExp(l,"g"),g=h.replace(m,u);Vf.clonedElementsHtml[u]=g}n.push({element:t,index:o,parentId:i}),d.forEach((function(t,n){var o=Hf.value.find((function(e){return e.id===t}));o&&e(uh.clone(o),n,u)}))}(e,t,e.parent||0),n.forEach((function(e){var t=e.element,n=e.index,o=e.parentId;tp(t,n,o)}))}(t,n+1)}},rp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";if(Vf.fullAccess&&(e=e||!!Vf.activeId&&Bf.value)){var n=ep({name:t}),o=e.parent,i=uh.getElementIndex(e);tp(n,i,o),Tn((function(){uh.moveElement({element:e,parentId:n.id,index:0}),Vf.activeId=n.id}))}},ap=function(e){Vf.deleteItem=e,setTimeout((function(){Vf.deleteItem=!1}),2e3)},sp=function(e){Vf.fullAccess&&uh.deleteElement(e)},lp=function(e){return!e.hasOwnProperty("cloneable")||e.cloneable},cp=function(e){return!e.hasOwnProperty("deletable")||e.deletable},up=function(e){var t,n=null!=e&&e.id?"brxe-".concat(e.id):"brxe-".concat(Vf.activeId);return null!=e&&null!==(t=e.settings)&&void 0!==t&&t._cssId&&(n=e.settings._cssId),n},dp=function(e){return Hf.value.find((function(t){return t.id===e}))},fp=function(e){var t=Array.isArray(null==e?void 0:e.children)?e.children:[],n=[];return e.hasOwnProperty("parent")||(e.parent=0,console.table({problem:"No parent property found",action:"Set parent to 0 (root)",parentElement:e})),e.id===(null==e?void 0:e.parent)&&(e.parent=0,console.table({problem:"element.id === parent",action:"Element moved to the root",parentElement:e})),t&&-1!==t.indexOf(e.id)&&(t.splice(t.indexOf(e.id),1),e.children=t,console.table({problem:"element.id is also in element.children array",action:"Removed element.id from element.children",parentElement:e})),t.forEach((function(t){var o=dp(t);if(o){if(o.id===(null==o?void 0:o.parent)&&(o.parent=e.id,console.table({problem:'element child ID "'.concat(t,'" is same as parent ID'),action:"Set the parent ID",element:o,parentElement:e})),(null==o?void 0:o.parent)!==e.id){o.parent=0;var i=e.children.indexOf(o.id);-1!==i&&e.children.splice(i,1),console.table({problem:"element ".concat(t," has a different parent ID"),action:"Moved element to the root",element:o,parentElement:e})}}else{var r=e.children.indexOf(t);-1!==r&&e.children.splice(r,1),console.table({problem:'element.id "'.concat(t,'" does not exist'),action:"Removed from element.children",parentElement:e})}o&&(null==o?void 0:o.parent)===e.id&&n.push(o)})),n},pp=function(e){var t,n=dp(e),o=uh.getControlKeyPlain("_display");if("grid"===(null==n||null===(t=n.settings)||void 0===t?void 0:t[o]))return!0;var i=gp(n,"iframe");return i?"grid"==window.getComputedStyle(i).display:void 0},hp=function(){return window.self==window.top?document.getElementById("bricks-builder-iframe").contentWindow:window},mp=function(){return hp().document},gp=function(e,t){var n=t||document;if("iframe"===t&&(n=mp()),e||(e=!!Vf.activeId&&uh.clone(Bf.value)),e){var o=up(e),i=n.getElementById(o);return i||(i=n.querySelector(".".concat(o))),i||(i=n.querySelector('div[data-id="'.concat(Vf.activeId,'"]'))),i}},vp=function(e){e.hasOwnProperty("settings")&&!Array.isArray(e.settings)||(Vf.messageOrigin="main",Vf.isBroadcasting=Date.now(),e.settings={},Tn((function(){Vf.isBroadcasting=!1})))},bp=function(e,t){if(Vf.fullAccess){if(!e){var n=!!Vf.activeId&&uh.clone(Vf.activeElement);if(!n)return;if(!lp(n)||!cp(n))return;e=[n];!function t(n){n.children.forEach((function(n){var o,i=Hf.value.find((function(e){return e.id===n}));i&&(e.push(i),null!=i&&null!==(o=i.children)&&void 0!==o&&o.length&&t(i))}))}(n)}t||(t="".concat(Xf.copied,": ").concat(uh.getElementLabel(Bf.value))),uh.writeToClipboard("bricksCopiedElements",e).then((function(){uh.showMessage(t,2e3)}))}},yp=function(e){Vf.fullAccess&&uh.readFromClipboard("bricksCopiedElements").then((function(t){var n,o=(null==t?void 0:t.content)||[],i=(null==t?void 0:t.globalClasses)||[],r=(null==t?void 0:t.globalElements)||[];if(Array.isArray(o)){var a=Vf.globalClasses.map((function(e){return e.id})),s=Vf.globalElements.map((function(e){return e.global})),l=[],c={},u=-1;o.forEach((function(t,n){var o,u,d,f,p,h,m,g=t.id,v=uh.generateId();(t=uh.clone(t),t=(t=JSON.stringify(t)).replaceAll(g,v),t=JSON.parse(t),c[g]=v,t.id=c[g],e||(e=uh.getElementLabel(t)),Vf.userCan.executeCode)||("code"===(null===(f=t)||void 0===f?void 0:f.name)&&null!==(p=t)&&void 0!==p&&null!==(p=p.settings)&&void 0!==p&&p.executeCode&&delete t.settings.executeCode,null!==(h=t)&&void 0!==h&&null!==(h=h.settings)&&void 0!==h&&null!==(h=h.query)&&void 0!==h&&h.queryEditor&&delete t.settings.query.queryEditor,null!==(m=t)&&void 0!==m&&null!==(m=m.settings)&&void 0!==m&&null!==(m=m.query)&&void 0!==m&&m.useQueryEditor&&delete t.settings.query.useQueryEditor);var b=null===(o=t)||void 0===o||null===(o=o.settings)||void 0===o?void 0:o._cssId;if(b){var y=document.getElementById("bricks-builder-iframe");(y?y.contentWindow.document.getElementById(b):document.getElementById(b))&&delete t.settings._cssId}if(null!==(u=t)&&void 0!==u&&null!==(u=u.settings)&&void 0!==u&&u._cssGlobalClasses){var w=[];t.settings._cssGlobalClasses.forEach((function(e){if(-1===a.indexOf(e)){var t=i.find((function(t){return t.id===e}));if(t){var n=Vf.globalClasses.find((function(e){return e.name===t.name}));n?w.push(n.id):(Vf.globalClasses.push(t),a.push(e),w.push(e))}}else w.push(e)})),0===w.length?delete t.settings._cssGlobalClasses:t.settings._cssGlobalClasses=w}if(null!==(d=t)&&void 0!==d&&d.global&&-1===s.indexOf(t.global)){var k=r.find((function(e){return e.global===t.global}));k?(Vf.globalElements.push(k),s.push(k.global)):delete t.global}l.push(t)})),l.forEach((function(e,t){if(c.hasOwnProperty(e.parent))l[t].parent=c[e.parent];else if(Vf.activeId){if(uh.isNestable(Vf.activeElement))Vf.activeElement.children.push(e.id),e.parent=Vf.activeId;else if(Vf.activeElement.parent&&(e.parent=Vf.activeElement.parent),e.parent){var n=Hf.value.findIndex((function(t){return t.id===e.parent}));if(n>-1){var o=Hf.value[n].children.findIndex((function(e){return e===Vf.activeId}));Hf.value[n].children.splice(o+1,0,e.id)}}}else e.parent=0;if(0===t){var i=Hf.value.findIndex((function(e){return e.id===Vf.activeId}));u=i>-1?i+1:Hf.value.length}Array.isArray(e.children)&&e.children.forEach((function(e,n){c.hasOwnProperty(e,n)&&(l[t].children[n]=c[e])}))})),(n=Hf.value).splice.apply(n,[u,0].concat(l)),uh.showMessage("".concat(Xf.pasted,": ").concat(e),2e3)}})).catch((function(){}))},kp=function(){var e=!!Vf.activeId&&Bf.value,t=uh.getGlobalElement(e);t&&e&&(e.settings=uh.clone(t.settings),delete e.global,Tn((function(){Vf.rerenderControls=Date.now(),uh.showMessage("".concat(Xf.unlinked,": ").concat(Xf.globalElement))})))},xp=function(e){try{e.startsWith("> ")&&(e=e.replace("> ","")),document.createDocumentFragment().querySelector(e)}catch(e){return!1}return!0},Cp=function(e){return Vf.isMac&&e.metaKey||!Vf.isMac&&e.ctrlKey},_p=function(e){var t,n="nav-menu"===(null==e?void 0:e.name)&&uh.getElementObject(null==e?void 0:e.parent);return"brx-dropdown-content"===(null==n||null===(t=n.settings)||void 0===t||null===(t=t._hidden)||void 0===t?void 0:t._cssClasses)},Sp=function(){var e=[];document.querySelectorAll("[data-template-id]").forEach((function(t){e.push(t.dataset.templateId)})),e.length&&uh.http({data:{action:"bricks_get_template_elements_by_id",templateIds:JSON.stringify(e)},success:function(e){var t=Object.keys(e.data);window.bricksData.debug.includes("templateElements")&&console.log("templateElements",t,e.data),t.length&&t.forEach((function(t){Vf.templateElements[t]=e.data[t]}))}})};function Tp(e){return Tp="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},Tp(e)}function $p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$p=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof v?t:v,a=Object.create(r.prototype),s=new M(o||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var C=y.prototype=v.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,a,s){var l=d(e[i],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Tp(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,i){n(e,o,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,o){var i=f;return function(r,a){if(i===h)throw new Error("Generator is already running");if(i===m){if("throw"===r)throw a;return{value:e,done:!0}}for(o.method=r,o.arg=a;;){var s=o.delegate;if(s){var l=$(s,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===f)throw i=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=h;var c=d(t,n,o);if("normal"===c.type){if(i=o.done?m:p,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i=m,o.method="throw",o.arg=c.arg)}}}function $(t,n){var o=n.method,i=t.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Tp(t)+" is not iterable")}return b.prototype=y,i(C,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,i,r){void 0===r&&(r=Promise);var a=new S(u(e,n,o,i),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=A,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(o,i){return s.type="throw",s.arg=t,n.next=o,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Ep(e,t,n,o,i,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,i)}function Ip(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var r=e.apply(t,n);function a(e){Ep(r,o,i,a,s,"next",e)}function s(e){Ep(r,o,i,a,s,"throw",e)}a(void 0)}))}}function Mp(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,Ap(o.key),o)}}function Ap(e){var t=function(e,t){if("object"!=Tp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Tp(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tp(t)?t:String(t)}var Op=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dbName=t,this.storeName=n,this.db=null}var t,n,o,i,r,a;return t=e,n=[{key:"openDB",value:(a=Ip($p().mark((function e(){var t=this;return $p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return",this.db);case 2:return e.abrupt("return",new Promise((function(e,n){var o=indexedDB.open(t.dbName,1);o.onerror=function(e){console.error("Database error: ",e.target.errorCode),n(e.target.errorCode)},o.onsuccess=function(n){t.db=n.target.result,e(t.db)},o.onupgradeneeded=function(e){e.target.result.createObjectStore(t.storeName,{keyPath:"id"})}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getCachedData",value:(r=Ip($p().mark((function e(t){var n,o,i=this,r=arguments;return $p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:6048e5,e.next=3,this.openDB();case 3:return o=e.sent,e.abrupt("return",new Promise((function(e,r){var a=o.transaction([i.storeName],"readonly").objectStore(i.storeName).get(t);a.onerror=function(e){console.error("Error fetching data from DB",e.target.errorCode),r(e.target.errorCode)},a.onsuccess=function(){var t=a.result,o=(new Date).getTime();t&&"timestamp"in t&&o-t.timestamp<n?e(t.data):e(null)}})));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"cacheData",value:(i=Ip($p().mark((function e(t,n){var o,i,r,a=this;return $p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.openDB();case 2:return o=e.sent,i=(new Date).getTime(),r={id:t,data:n,timestamp:i},e.abrupt("return",new Promise((function(e,t){var n=o.transaction([a.storeName],"readwrite").objectStore(a.storeName).put(r);n.onerror=function(e){console.error("Error saving data to DB",e.target.errorCode),t(e.target.errorCode)},n.onsuccess=function(){e()}})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}],n&&Mp(t.prototype,n),o&&Mp(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pp(e){return function(e){if(Array.isArray(e))return jp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Np(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.")}()}function Lp(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 Dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach((function(t){Vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Np(e,t){if(e){if("string"==typeof e)return jp(e,t);var n=Object.prototype.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)?jp(e,t):void 0}}function jp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Vp(e,t,n){var o;return o=function(e,t){if("object"!=Fp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fp(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Fp(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fp(e){return Fp="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},Fp(e)}var Rp=window.bricksData,qp=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;Vf.debounceIds[e]&&clearTimeout(Vf.debounceIds[e]),Vf.debounceIds[e]=setTimeout((function(){Rp.debug.includes("debounces")&&console.info({action:"debounce",key:e,function:t.name,timeout:n,timetamp:Date.now()}),"function"==typeof t&&t.apply()}),n)},Bp=function(){var e=function(){Vf.forceRender=Date.now()};qp("forceRender",e,arguments.length>0&&void 0!==arguments[0]?arguments[0]:400)},zp=function(e,t){t=t||Hf.value;for(var n=!1,o=e;o&&!1===n;){var i;null!==(i=o)&&void 0!==i&&null!==(i=i.settings)&&void 0!==i&&i.hasLoop&&(n=o.id),o=0!=o.parent&&t.find((function(e){return e.id===o.parent}))}return n},Hp=function(){Vf.activeElement=Hf.value.find((function(e){return(null==e?void 0:e.id)===Vf.activeId})),Vf.sendPostMessage=!0},Wp=function(){Vf.sendPostMessage=!1;qp("sendPostMessage",(function(){Vf.sendPostMessage=!0}),400)},Up=function(e){Rp.debug.includes("http")&&console.warn("http:req",e),null!=e&&e.fetch&&window.fetch?Gp(e):Kp(e)},Kp=function(e){var t,n,o=(null==e?void 0:e.url)||Rp.ajaxUrl,i=e;(i.hasOwnProperty("data")||(i.data={}),i.async=!0,i.cache=!1,i.method=(null==e?void 0:e.method)||"POST",e.hasOwnProperty("format")&&(i.dataType=e.format),i.data instanceof FormData)?(i.data.append("nonce",Rp.nonce),i.data.append("postId",(null===(t=e.data)||void 0===t?void 0:t.postId)||Rp.postId),i.data.append("bricks-is-builder",1)):(i.data.nonce=Rp.nonce,i.data.postId=(null===(n=e.data)||void 0===n?void 0:n.postId)||Rp.postId,i.data["bricks-is-builder"]=1);e.hasOwnProperty("error")||(e.error=function(t,n){console.warn(t,e.data,n)}),jQuery.ajax(o,i)},Gp=function(e){var t=(null==e?void 0:e.url)||Rp.restApiUrl.concat(null==e?void 0:e.endpoint),n=(null==e?void 0:e.method)||"POST",o=(null==e?void 0:e.headers)||{"Content-Type":"application/json; charset=UTF-8","X-WP-Nonce":window.wpApiSettings.nonce};o["X-Bricks-Is-Builder"]=1;var i={method:n,mode:(null==e?void 0:e.mode)||"same-origin",credentials:"same-origin",headers:o};if("POST"===n){var r={nonce:Rp.nonce,postId:(null==e?void 0:e.postId)||Rp.postId};Object.keys(e.data).forEach((function(t){r[t]=e.data[t]})),i.body=JSON.stringify(r)}else"GET"===n&&(new URLSearchParams(e.data),function(e){throw new TypeError('"'+e+'" is read-only')}("url"));window.fetch(t,i).then((function(t){if(!t.ok)throw window.bricksData.builderDisableRestApi=!0,delete e.fetch,Up(e),Error(t.statusText);return t[(null==e?void 0:e.format)||"json"]()})).then((function(t){null!=e&&e.success&&"function"==typeof e.success&&e.success(t)})).catch((function(t){null!=e&&e.error&&"function"==typeof e.error&&e.error(t)}))},Zp=function(e){var t;return(null===(t=Rp.elements)||void 0===t?void 0:t[e])||{label:e?e.replaceAll("-"," "):""}},Jp=function(e){var t,n;return e||(e=Bf.value),null===(t=Rp.elements[null===(n=e)||void 0===n?void 0:n.name])||void 0===t?void 0:t.nestable},Yp=function(e){return e?Vf.globalClassesLocked.includes(e):Vf.activeClassIsLocked},Qp=function(){var e=Vf.breakpoints.find((function(e){return null==e?void 0:e.base}));return e||(e=Vf.breakpoints.find((function(e){return"desktop"===e.key}))),e||{}},Xp=function(){var e;return null===(e=Qp())||void 0===e?void 0:e.width},eh=function(e){return!!(null!=e&&e.global||null!=e&&e.id)&&Vf.globalElements.find((function(t){return null!=e&&e.global&&null!=t&&t.global&&e.global===t.global||null!=e&&e.id&&null!=t&&t.id&&e.id===t.id?t:void 0}))},th=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;"save"===e&&(e=Rp.saveMessages[Math.floor(Math.random()*Rp.saveMessages.length)]),Vf.message={text:e,duration:t}},nh=function(e){if(!e)return{};try{return JSON.parse(JSON.stringify(e))}catch(t){return Rp.debug&&console.warn("$_clone:error",t,e),{}}},oh=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Vf.breakpoints,a=r.findIndex((function(e){return e.key===Vf.breakpointActive})),s=void 0,l=null===(e=Zp(null===(t=Bf.value)||void 0===t?void 0:t.name))||void 0===e?void 0:e.controls,c=null==l?void 0:l[sh(o)];return(null==c?void 0:c.css)&&(i=!0),"theme-styles"===Vf.activePanel&&(i=!0),r.forEach((function(e,t){if(e.key===Vf.breakpointActive)return s;if(i&&t>=a)return s;var r="desktop"===e.key?"":":".concat(e.key),l="".concat(o).concat(r).concat(Vf.pseudoClassActive),c=n.hasOwnProperty(l)?n[l]:void 0;void 0!==c&&("object"===Fp(c)&&Object.keys(c).length?(s||(s={}),Object.keys(c).forEach((function(e){c[e]&&(s[e]=c[e])}))):s=c)})),s},ih=function(e,t){var n=Vf.globalClassIndexById[e],o=Vf.globalClasses[n];return t&&Array.isArray(null==o?void 0:o.settings)&&(o.settings={}),o},rh=function(){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=null===(e=ih(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""))||void 0===e?void 0:e.name;return n?t?"".concat(t).concat(n):n:""},ah=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Vf.pseudoClassActive,o="desktop"===Vf.breakpointActive?"":":".concat(Vf.breakpointActive);return t||(n=":hover"===n?"_hover":"",o=o.replace(":","_")),"".concat(e).concat(o).concat(n)},sh=function(e,t){if(!e)return e;t?e=e.replace(":".concat(t),"").replace("_".concat(t),""):Vf.breakpoints.map((function(e){return e.key})).sort((function(e,t){return t.length-e.length})).forEach((function(t){e=e.replace(":".concat(t),"").replace("_".concat(t),"")}));return Vf.pseudoClasses.forEach((function(t){e=e.replace(t,"")})),e=e.replace("_hover","")},lh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e.required;if(!n)return!0;var o=[],i={"=":function(e,t){return e===t},"!=":function(e,t){return e!=t},">=":function(e,t){return e>=t},"<=":function(e,t){return e<=t}};return n=Array.isArray(n[0])?n:[n],!(null==e||!e.css||!Vf.activeClass&&!Vf.pseudoClassActive||n.toString().startsWith("_display")||1!==n.length||!n.toString().includes("."))||(n.forEach((function(n){var r=n[0].startsWith(".");r&&(n[0]=n[0].replace(".",""));var a=n[0].split("."),s=a[0],l=a.length>1&&a[1],c=n[1]?n[1]:"!=",u=n[2]?n[2]:"",d=n[3]?n[3]:"";d&&"string"==typeof(t=Vf[d])&&(t=Vp({},d,t)),s=r||!e.css?s:ah(s);var f,p=t[s];if(null!=e&&e.css&&!p){s=sh(s);var h=oh(t,s);void 0!==h&&(p=h)}if("_display"===s&&!p&&"element"===Vf.activePanel){var m,g=gp(Bf.value,"iframe"),v=null==e||null===(m=e.css[0])||void 0===m?void 0:m.selector;if(v&&(g=mp().querySelector(v)),g){var b,y=hp().getComputedStyle(g);if(p=null===(b=y)||void 0===b?void 0:b.display,"flex"===u&&"flex"!==p){var w,k,x=(null==e||null===(w=e.css[0])||void 0===w?void 0:w.property)||!1;if(x&&["align-self","flex-grow","flex-shrink","flex-basis"].includes(x))y=hp().getComputedStyle(g.parentNode),p=null===(k=y)||void 0===k?void 0:k.display}}}l&&(p=null===(f=t)||void 0===f||null===(f=f[s])||void 0===f?void 0:f[l]);if(!p){var C;s=sh(s);var _=null===(C=Bf.value)||void 0===C||null===(C=C.settings)||void 0===C?void 0:C[s];_&&(p=_)}if(p||l||(p=t[s]),p||0!==u.length){if(void 0===p&&(p=""),Array.isArray(p))return p&&!u&&"!="===c?void o.push(!0):void o.push(-1!==p.indexOf(u));if(Array.isArray(u)){var S=!1;return"="===c&&u.forEach((function(e){p==e&&(S=!0)})),"!="===c&&(S=!0,u.forEach((function(e){p==e&&(S=!1)}))),void o.push(S)}o.push(i[c](p,u))}else o.push("="===c)})),o.every((function(e){return!0===e})))},ch=new Op("BricksDB","templates"),uh={autoExpandCollapsePanel:function(){Rp.disablePanelAutoExpand||setTimeout((function(){var e=document.querySelectorAll(".control.control-code"),t=!1;e.forEach((function(e){null!==e.offsetParent&&(t=!0)})),Vf.isPanelExpanded=t}),100)},getCachedData:function(e,t){return ch.getCachedData(e,t)},cacheData:function(e,t){return ch.cacheData(e,t)},reloadCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600;Vf.isReloadingCanvas=!0,Bp(e),setTimeout((function(){Vf.isReloadingCanvas=!1}),t)},copyToClipboard:function(e,t){navigator.clipboard&&(window.isSecureContext?(navigator.clipboard.writeText(e),t&&th(t)):alert("Clipboard API rejected: Not in secure context (HTTPS)"))},debounce:qp,forceRender:Bp,noChanges:function(e,t){return JSON.stringify(e)===JSON.stringify(t)},rerenderElementId:function(e){e&&!Vf.rerenderElementIds.includes(e)&&Vf.rerenderElementIds.push(e)},rerenderLoopId:function(e){e&&!Vf.rerenderLoopIds.includes(e)&&Vf.rerenderLoopIds.push(e)},elementBelongsToLoopId:zp,nonCssSettingChanged:function(e,t){var n;if(this.loopId&&this.$_state.activeId&&this.$_state.activeId===this.id&&!this.$_noChanges(e,t)){var o=null===(n=this.$_getElementConfig(this.name))||void 0===n?void 0:n.controls;if(o){var i=!0;for(var r in e)if(JSON.stringify(null==e?void 0:e[r])!==JSON.stringify(null==t?void 0:t[r])){var a=o[this.$_getControlKeyPlain(r)];a&&(i=a.hasOwnProperty("css"))}i||(this.$_state.rerenderElementIds.includes(this.id)||this.$_state.rerenderLoopIds.includes(this.loopId)||this.$_state.rerenderElementIds.push(this.id),this.$_rerenderLoopId(this.loopId))}}},addBlock:function(e){void 0===e.index||e.index<0?e.parent.unshift(e.block):e.parent.splice(e.index+1,0,e.block)},deleteBlock:function(e){e.parent.splice(e.index,1),Vf.deleteItem=!1},setActiveElement:Hp,updateActiveElement:function(e,t){var n;if(null!=e&&e.id&&null!=t&&t.id&&(null==e?void 0:e.id)===(null==t?void 0:t.id)&&!Array.isArray(null==t?void 0:t.settings)){var o=Bf.value;null!==(n=Vf.activeElement)&&void 0!==n&&n.id&&null!=o&&o.id&&Vf.activeElement.id===o.id&&Object.keys(Vf.activeElement).forEach((function(e){o[e]=Vf.activeElement[e]}))}},stopPostMessages:Wp,sortElement:function(e){if(e.element){var t=nh(Hf.value),n=e.element,o=e.oldIndex,i=e.newIndex,r=n.parent;if(0==r){o=t.findIndex((function(e){return n.id===e.id}));var a=Wf.value[i];a&&(i=t.findIndex((function(e){return a.id===e.id}))),t.splice(o,1),t.splice(i,0,n)}else{var s=t.findIndex((function(e){return e.id===r}));-1!=s&&(t[s].children.splice(o,1),t[s].children.splice(i,0,n.id))}Vf[zf.value]=t}else console.warn('sortElement:error: No "data.element"',e)},moveElement:function(e){var t=e.element;if(t){var n=nh(Hf.value),o=n.findIndex((function(e){return e.id===t.id}));if(t.parent){var i=n.findIndex((function(e){return e.id===t.parent})),r=!!n[i]&&n[i];if(Array.isArray(null==r?void 0:r.children)){var a=r.children.findIndex((function(e){return e===t.id}));r.children.splice(a,1)}}if(t.parent=0==e.parentId?0:e.parentId,n[o].parent=t.parent,0==e.parentId){var s=n.filter((function(e){return 0==e.parent})),l=parseInt(e.index)>=s.length?s.length-1:e.index,c=s.length-1;s[l]&&(c=n.findIndex((function(e){return e.id===s[l].id}))),n.splice(o,1),n[c]?n.splice(c,0,t):n.push(t)}else{var u,d=n.findIndex((function(t){return t.id===e.parentId})),f=null===(u=n[d])||void 0===u?void 0:u.children;Array.isArray(f)&&(f.length>e.index?f.splice(e.index,0,t.id):f.push(t.id))}Vf[zf.value]=n}},deleteElement:function e(t,n,o){var i;if(t){if(o||(Wp(),n=Hf.value),n=n.filter((function(e){return e.id!==t.id})),0!=t.parent){var r=n.findIndex((function(e){return e.id===t.parent}));if(r>-1){var a=n[r].children.indexOf(t.id);a>-1&&n[r].children.splice(a,1)}}if(null!=t&&null!==(i=t.children)&&void 0!==i&&i.length&&t.children.forEach((function(t){var o=n.find((function(e){return e.id===t}));o&&(n=e(o,n,!0))})),o)return n;Vf[zf.value]=n;var s,l,c=window.top.document.querySelector('#bricks-structure [data-id="'.concat(t.id,'"]')),u=!1;if(c)null!==(s=c.nextElementSibling)&&void 0!==s&&s.dataset.id?u=c.nextElementSibling.dataset.id:null!==(l=c.previousElementSibling)&&void 0!==l&&l.dataset.id?u=c.previousElementSibling.dataset.id:t.parent&&(u=t.parent);Tn((function(){Vf.deleteItem?Vf.deleteItem=!1:(Vf.activeId=u,Hp()),setTimeout((function(){Vf.deleteElement=!1}),100)}))}},http:Up,savePost:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Vf.hasConflicts){if(Vf.notifications.length)return void(Vf.isSaving=!1);Vf.hasConflicts=!1}Vf.isSaving=!0;var n=zf.value,o={action:"bricks_save_post",area:n};if(Vf.templateType&&(o.templateType=Vf.templateType),t.force){var i=["colorPalette","globalClasses","globalClassesLocked","globalClassesCategories","globalVariables","globalVariablesCategories","globalElements","pinnedElements","pseudoClasses","themeStyles","pageSettings"];Vf.templateType?(i.push("templateSettings"),"header"===Vf.templateType?i.push("header"):"footer"===Vf.templateType?i.push("footer"):i.push("content")):i.push("content"),i.forEach((function(e){o[e]=JSON.stringify(Vf[e])}))}else Vf.unsavedChanges.forEach((function(e){o[e]=JSON.stringify(Vf[e])}));Rp.debug&&console.info("bricks_save_post:before",o,t),Array.isArray(Vf.unsavedChanges)&&Vf.unsavedChanges.includes("templateSettings")&&(o[n]=JSON.stringify(Vf[n])),null!=t&&t.skipNotifications||(o.globalClassesTimestamp=Vf.globalClassesTimestamp),o.globalChanges=JSON.stringify(Vf.globalChanges),!o.hasOwnProperty("globalClasses")&&Rp.builderGlobalClassesSync&&(o.globalClasses=JSON.stringify(Vf.globalClasses)),Up({data:o,success:function(n){var i,r,a,s,l,c;Rp.debug&&console.info("bricks_save_post:success",o,t,n.data);var u=Array.isArray(null===(i=n.data)||void 0===i?void 0:i.notifications)?n.data.notifications:[];if(Rp.builderGlobalClassesSync&&(null==t||!t.skipNotifications)&&u.length){var d;if(!Vf.unsavedChanges.includes("globalClasses")&&Array.isArray(null===(d=n.data)||void 0===d||null===(d=d.notifications)||void 0===d?void 0:d.globalClassesDb))Vf.globalClasses=n.data.notifications.globalClassesDb;else{Vf.notifications=u;var f=nh(Vf.globalClasses);u.forEach((function(e){null!=e&&e.conflict?Vf.hasConflicts=!0:"added"===e.action?e.data.forEach((function(e){f.push(e)})):"deleted"===e.action?e.data.forEach((function(e){f=f.filter((function(t){return t.id!==e.id}))})):"modified"===e.action&&e.data.forEach((function(e){f=f.map((function(t){return t.id===e.id&&(t=e),t}))}))})),Vf.globalClasses=f}return Vf.hasConflicts?void(Vf.isSaving=!1):void e({skipNotifications:!0})}Vf.hasConflicts=!1,null!==(r=n.data)&&void 0!==r&&r.globalClassesTimestamp&&(Vf.globalClassesTimestamp=n.data.globalClassesTimestamp),null!==(a=n.data)&&void 0!==a&&a.globalClassesUser&&(Vf.globalClassesUser=n.data.globalClassesUser),Vf.currentRevisionId="",Vf.notification=!1,Object.keys(Vf.globalChanges).forEach((function(e){Vf.globalChanges[e]=[]})),Vf.isSaving=!1,Vf.unsavedChanges=[],null!==(s=window.bricksPreviewWindow)&&void 0!==s&&null!==(s=s.location)&&void 0!==s&&s.href&&window.bricksPreviewWindow.location.reload(!0),setTimeout((function(){th("bricks_template"===Rp.postType?Rp.i18n.templateSaved:"save"),t.reload&&setTimeout((function(){location.reload()}),200)}),200),null!==(l=Vf.pageSettings)&&void 0!==l&&l.postName||null!==(c=Vf.pageSettings)&&void 0!==c&&c.postTitle?Up({data:{action:"bricks_get_builder_url"},success:function(e){var t;null!==(t=e.data)&&void 0!==t&&t.url&&(window.location=e.data.url)}}):"function"==typeof t.callback&&callback()}})},getPostId:function(){return Rp.template.preview.postId?Rp.template.preview.postId:Rp.postId},getElementComponent:function(e){var t=Zp(e.name);return null!=t&&t.component?t.component:document.getElementById("tmpl-bricks-element-".concat(e.name))?"bricks-element":"bricks-element-php"},getElementGlobalClassNames:function(e){var t=(null==e?void 0:e._cssGlobalClasses)||[],n=[];return t.forEach((function(e){var t=rh(e);n.includes(t)||n.push(t)})),n},getElementClasses:function(e){var t,n,o,i,r=(null==e?void 0:e.settings)||{},a=[];this.isElementPlaceholder||a.push("brxe-".concat(e.name)),"icon"===e.name&&null!=e&&null!==(t=e.settings)&&void 0!==t&&t.link&&(a=[]),Jp(e)&&(a.push("brx-draggable"),this.backgroundVideoUrl&&a.push("has-bg-video"),null!=r&&r._shapeDividers&&a.push("has-shape")),null!==(n=this.globalElement)&&void 0!==n&&n.global?a.push("brxe-".concat(this.globalElement.global)):zp(e)&&a.push("brxe-".concat(e.id)),this.$_state.isResizingElement&&a.push("is-resizing"),this.$_state.isPreviewing&&a.push("is-previewing"),this.$_state.activeId&&this.$_state.activeId===this.id&&(this.$_state.isPreviewing||this.$_state.draggingElement||a.push("is-active-element"));var s=this.$_getElementConfig(e.name);return(s&&(null==s?void 0:s.draggable)||!0)&&!this.$_state.isPreviewing&&(a.push("bricks-draggable-handle"),a.push("bricks-draggable-item"),this.$_state.fullAccess||a.push("bricks-draggable-off")),r._animation&&(a.push("brx-animated"),null!=r&&r._animationDuration&&a.push("animation-duration-".concat(r._animationDuration))),"mobile-menu"===this.$_state.activePanelGroup&&this.id===this.$_state.activeId&&a.push("show-mobile-menu"),"cartDetails"===this.$_state.activePanelGroup&&this.id===this.$_state.activeId&&a.push("show-cart-details"),this.$_state._addedClasses.hasOwnProperty(this.id)&&a.push(this.$_state._addedClasses[this.id]),null!=e&&null!==(o=e.attributes)&&void 0!==o&&o.class&&a.push(e.attributes.class),null!=r&&r._cssClasses&&(a=a.concat(r._cssClasses.split(" "))),null!=r&&null!==(i=r._hidden)&&void 0!==i&&i._cssClasses&&a.push(r._hidden._cssClasses),a},getElementConfig:Zp,getElementObject:function(e){return Hf.value.find((function(t){return t.id==e}))},getElementLabel:function(e){if(null!=e&&e.label)return e.label;var t=!(null==e||!e.name)&&Zp(e.name);return null==t?void 0:t.label},getElementIndex:function(e){if(0==e.parent)return Wf.value.findIndex((function(t){return t.id==e.id}));var t=Hf.value.find((function(t){return t.id==e.parent}));return t?t.children.findIndex((function(t){return t==e.id})):0},isNestable:Jp,isLocked:Yp,generateId:function(){for(var e="abcdefghijklmnopqrstuvwxyz",t="",n=0;n<6;n++)t+=e.charAt(Math.floor(26*Math.random()));return t},runElementScripts:function(e){var t=Zp(e),n=null==t?void 0:t.scripts;n&&(Array.isArray(n)||(n=[n]),setTimeout((function(){n.forEach((function(t){Rp.debug.includes("runElementScripts")&&console.warn("runElementScripts",e,t);var n=hp();"function"==typeof n[t]&&n[t]()}))}),200))},getBaseBreakpoint:Qp,getBaseBreakpointKey:function(){var e;return null===(e=Qp())||void 0===e?void 0:e.key},getBaseBreakpointWidth:Xp,getPreviewWidth:function(){var e=Vf.previewWrapperWidth,t=Vf.breakpoints,n=t.findIndex((function(e){return(null==e?void 0:e.key)===Vf.breakpointActive})),o=null==t?void 0:t[n];if(!o)return e;if("desktop"===o.key&&Vf.previewWidthLocked)return Vf.previewWidthLocked;if(null!=o&&o.widthBuilder)return null==o?void 0:o.widthBuilder;if(Yf.value)return n>0&&n==t.length-1?e:0===n?(null==o?void 0:o.width)-1:(null==o?void 0:o.width)+1;if(o.width>Xp())return o.width;if(null!=o&&o.base&&0===n){var i,r=null===(i=t[n+1])||void 0===i?void 0:i.width;return e>r?e:r+1}return o.width-1},getGlobalElement:eh,getFinalElement:function(e){return e=e||Bf.value,eh(e)||e},getEditTemplateUrl:function(){var e;if("template"===(null===(e=Bf.value)||void 0===e?void 0:e.name)){var t,n=null===(t=Bf.value)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.template;return n?"".concat(window.bricksData.siteUrl,"/?p=").concat(n,"&").concat(window.bricksData.builderParam,"=run"):""}},showMessage:th,showPanel:function(e){e?(Vf.activePanelGroup&&"style"!==Vf.activePanelTab&&(Vf.activePanelGroup=""),Tn((function(){e.hasOwnProperty("panel")&&(Vf.activePanel=e.panel),e.hasOwnProperty("group")&&(Vf.activePanelGroup=e.group)}))):Vf.fullAccess?Vf.activePanel="elements":"settings-page"!==Vf.activePanel&&(Vf.activePanel="settings-page",Vf.activePanelGroup="seo")},clone:nh,isRightClick:function(e){return 2===(null==e?void 0:e.button)},stringReplace:function(e,t){if(!Array.isArray(t))return e;var n=-1;return e.replace(/\%s/gi,(function(e){return n++,t[n]?t[n]:""}))},replaceCustomCssRoot:function(e,t,n){return"string"==typeof n?n.replaceAll(e,t):n},getNextBreakpointSetting:oh,activeClassRenamed:function(e,t){if(this.otherClasses.length&&(this.$_state.activeClass&&(null==e?void 0:e.id)&&(null==t?void 0:t.id)&&e.id===t.id&&e.name&&e.name!==t.name)){var n=this.otherClasses.findIndex((function(e){return e===t.name}));n>-1&&(this.otherClasses[n]=e.name)}},setLastSelectedClass:function(e){var t,n;if(!e)return Vf.activeClass="",void(Vf.activeClassIsLocked=!1);var o=null===(t=Vf.globalClassesSelected)||void 0===t?void 0:t[e];if(!o)return Vf.activeClass="",void(Vf.activeClassIsLocked=!1);var i=(null===(n=Bf.value)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n._cssGlobalClasses)||[];if(!Array.isArray(i)||!i.length)return Vf.activeClass="",void(Vf.activeClassIsLocked=!1);var r=ih(o,!0);Vf.activeClass=r&&i.includes(o)?r:"",Vf.activeClassIsLocked=!!o&&Yp(o)},getGlobalClass:ih,getGlobalClassName:rh,getGlobalVariableName:function(){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=null===(e=function(e){return Vf.globalVariables.find((function(t){return t.id===e}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""))||void 0===e?void 0:e.name;return n?t?"".concat(t).concat(n):n:""},getControlKeyActive:ah,getControlKeyPlain:sh,exportAsJsonFile:function(e,t){var n=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),o=window.URL.createObjectURL(n),i=document.createElement("a");i.style.display="none",i.href=o,i.download=t.includes(".json")?t:"".concat(t,".json"),i.click(),window.URL.revokeObjectURL(o)},initIsotope:function(){var e=this,t=jQuery(this.$refs.isotope).find(".bricks-layout-item");if(t.length){var n={itemSelector:".bricks-layout-item",masonry:{columnWidth:".bricks-isotope-sizer"},percentPosition:!0},o=jQuery(t[0]).hasClass("unsplash");o&&(n.transitionDuration=0),this.loading=!1,this.$nextTick((function(){e.isotopeInstance&&e.isotopeInstance.isotope("reloadItems"),e.isotopeInstance=jQuery(e.$refs.isotope).isotope(n),o&&jQuery(t).addClass("show");var i=e.$refs.isotopeFilters,r=e.isotopeInstance;jQuery(i).on("click","li",(function(){jQuery(i).find("li").removeClass("active"),jQuery(this).addClass("active"),r.isotope({filter:jQuery(this).attr("data-filter")})}))}))}},controlPopupToggle:function(){this.showPopup=!this.showPopup},getControlLabel:function(e){var t=e.hasOwnProperty("label")?e.label:"",n=e.hasOwnProperty("group")?e.group.replace("-"," ").replace("_",""):"";return Vf.searchControls&&n&&"border"!==n&&t.toLowerCase()!==n.toLowerCase()?"".concat(t," (").concat(n,")"):t},controlRequiredMet:lh,controlShow:function(e,t,n,o){return(null==t||!t.hidden)&&(!!lh(t,o)&&(!Array.isArray(null==t?void 0:t.exclude)||-1===t.exclude.indexOf(n)))},openMediaLibrary:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={frame:"select",upload:{},title:this.i18n.insertMedia,button:{text:this.i18n.insert},multiple:n};"any"!==t&&(o.library={type:t});var i=wp.media.frames.image=wp.media(o);"image/svg+xml"!==t||this.$_state.userCan.uploadSvg||i.on("router:render:browse",(function(e){e.unset("upload")})),i.on("insert select",(function(){if(!0===n){var o,r=i.state().get("selection").toJSON(),a=[];if(r){var s,l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Np(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(r);try{for(l.s();!(s=l.n()).done;){var c,u=s.value,d=-1!==u.filename.indexOf(".svg");o=null!=u&&null!==(c=u.sizes)&&void 0!==c&&c[e.size]?e.size:"full";var f=u.url,p=u.url;u.hasOwnProperty("sizes")&&(f=d?u.url:u.sizes.full.url,p=d?u.url:u.sizes[o].url),a.push({id:u.id,full:f,url:p})}}catch(e){l.e(e)}finally{l.f()}e.$emit("input",{images:a,size:o})}}else{var h=i.state().get("selection").first().toJSON();switch(t){case"audio":var m={id:h.id,filename:h.filename,mime:h.mime,url:h.url};e.$emit("input",m);break;case"image":var g=h.hasOwnProperty("sizes")?h.sizes.hasOwnProperty(e.size)?e.size:"full":"",v={id:h.id,filename:h.filename,size:g,full:h.hasOwnProperty("sizes")?h.sizes.full.url:h.url,url:h.hasOwnProperty("sizes")?h.sizes[g].url:h.url};e.$emit("input",v);break;case"image/svg+xml":var b={id:h.id,filename:h.filename,url:h.url};e.$emit("input",b);break;case"video":var y={id:h.id,filename:h.filename,mime:h.mime,url:h.url};e.$emit("input",y);break;case"any":var w={id:h.id,filename:h.filename,url:h.url};e.$emit("input",w);break;default:console.warn("No handler for mime type '".concat(t,"' defined."))}}})),i.on("open",(function(){var t;null!==i.content.get()&&i.content.get().hasOwnProperty("collection")&&i.content.get().collection._requery(!0);var n=i.state().get("selection"),o=[];null!==(t=e.value)&&void 0!==t&&t.id&&(o=[e.value.id]),Array.isArray(e.images)&&e.images.length&&e.images.forEach((function(e){o.push(e.id)})),o.forEach((function(e){var t=wp.media.attachment(e);t.fetch(),n.add(t)}))})),i.open()},cacheAjaxResults:function(e){var t=!!e.hasOwnProperty("key")&&e.key,n=!!e.hasOwnProperty("value")&&e.value;t&&n&&(Vf.ajaxCache.hasOwnProperty(t)||(Vf.ajaxCache[t]={}),Vf.ajaxCache[t]=Dp(Dp({},Vf.ajaxCache[t]),n))},isEditable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement;if(null!=e.closest(".structure-item"))return!1;if("bricks-panel-search"===e.id)return!1;if(e.isContentEditable)return!0;var t=e.tagName.toLowerCase();return"textarea"===t||"input"===t},writeToClipboard:function(e,t){var n={content:t,source:e,sourceUrl:window.bricksData.siteUrl,version:window.bricksData.version};if("bricksCopiedElements"===e||"bricksCopiedElement"===e){var o=[],i=[];if((Array.isArray(t)?t:[t]).forEach((function(e){var t;null!=e&&null!==(t=e.settings)&&void 0!==t&&t._cssGlobalClasses&&(o=o.concat(e.settings._cssGlobalClasses)),null!=e&&e.global&&i.push(e.global)})),o=Pp(new Set(o)),i=Pp(new Set(i)),o){var r=[];o.forEach((function(e){var t=Vf.globalClasses.find((function(t){return t.id===e}));t&&r.push(t)})),r&&(n.globalClasses=r)}if(i){var a=[];i.forEach((function(e){var t=Vf.globalElements.find((function(t){return t.global===e}));t&&a.push(t)})),a&&(n.globalElements=a)}}return new Promise((function(e,t){navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(JSON.stringify(n)).then(e,(function(){e(!1)})):e(!1)}))},readFromClipboard:function(e){return new Promise((function(t,n){try{navigator.clipboard.readText().then((function(o){var i=JSON.parse(o);(null==i?void 0:i.source)===e?t(i||{}):n()})).catch((function(){n()}))}catch(e){n()}}))},getDynamicDataContent:function(e){var t,n=(null==e?void 0:e.content)||!1,o=(null==e?void 0:e.context)||"text",i=(null==e?void 0:e.success)||!1,r=(null==Rp||null===(t=Rp.template)||void 0===t||null===(t=t.preview)||void 0===t?void 0:t.postId)||Rp.postId;if(n){if(null!=e&&e.checkState){var a="string"==typeof n?Array.from(n.matchAll(/\{([^{}"]+)\}/g),(function(e){return e[1]})):[],s=n.split("{").length-1,l=0,c="";if(a.forEach((function(e){var t=Vf.dynamicData[e];t&&(l++,c=c?c.replace("{".concat(e,"}"),t):n.replace("{".concat(e,"}"),t))})),c&&l===s)return c}var u={action:"bricks_get_dynamic_data_preview_content",postId:r,content:n,context:o};null!=e&&e.elementName&&(u.elementName=e.elementName),Up({data:u,success:i})}},postMessage:function(e){if(e=JSON.stringify(e),window.top==window.self){var t=document.getElementById("bricks-builder-iframe");t&&t.contentWindow.postMessage(e,Rp.siteUrl)}else window.top.postMessage(e,Rp.siteUrl)},getRevisions:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Up({data:{action:"bricks_get_revisions"},success:function(t){Vf.revisions=t.data,Tn((function(){!0===e&&void 0===Vf.notification&&Vf.revisions&&Vf.revisions.length&&("autosave"===Vf.revisions[0].type?Vf.notification="autosave":Vf.notification=!1),!Vf.currentRevisionId&&Vf.revisions&&Vf.revisions.length&&("autosave"===Vf.revisions[0].type&&Vf.revisions[1]&&"autosave"!==Vf.revisions[1].type?Vf.currentRevisionId=Vf.revisions[1].id:Vf.currentRevisionId=Vf.revisions[0].id)}))}})},revisionApply:function(){Vf.revisionId&&Vf.revisionData&&(Vf.currentRevisionId=Vf.revisionId,Vf[zf.value]=Vf.revisionData,th("".concat(Rp.i18n.revisionApplied," (ID: ").concat(Vf.revisionId,")")),Tn((function(){Vf.revisionData=null,Vf.revisionId=null})))},revisionPreview:function(e){Up({data:{action:"bricks_get_revision_data",revisionId:e,area:zf.value},success:function(t){Array.isArray(t.data)&&(Vf.revisionData=t.data,Vf.revisionId=e)}})},populateBuilder:function(){var e=Rp.loadData;e.hasOwnProperty("blocks")&&(console.info(e.blocks),delete e.blocks),Object.keys(e).forEach((function(t){Vf.hasOwnProperty(t)&&(Vf[t]=e[t])})),Rp.debug&&console.warn("loadData",e);var t=window.navigator.userAgentData?window.navigator.userAgentData.platform:window.navigator.platform;Vf.isMac=t.toLowerCase().includes("mac")}},dh=n(5311);var fh={goto:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!Vf.historyInProgress&&Vf.history.length){var n="undo"===e?Vf.historyIndex:Vf.historyIndex+1;if(0!==Vf.historyIndex||"undo"!==e){var o=Vf.history[n];o&&(Vf.historyInProgress=Date.now(),Object.keys(o).forEach((function(t){Vf.hasOwnProperty(t)&&("deleted"===o._action&&(Vf.activeId=!1),Vf[t]="undo"===e?(0,dh.patch)(Vf[t],o[t]):(0,dh.unpatch)(Vf[t],o[t]))})),Tn((function(){"undo"===e?Vf.historyIndex>0&&Vf.historyIndex--:Vf.historyIndex++,Vf.forceRender=Date.now(),t&&(Vf.rerenderControls=Date.now()),Vf.activeId&&!dp(Vf.activeId)&&uh.showPanel(),setTimeout((function(){Vf.historyInProgress=!1}),200)})))}}}};function ph(e){return ph="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},ph(e)}var hh=n(4225),mh=n.n(hh);var gh={key:0,id:"bricks-breakpoints"},vh={class:"header"},bh=["textContent","data-before"],yh={class:"actions"},wh={key:0,class:"form-group breakpoint-key"},kh=["textContent"],xh=["textContent"],Ch={class:"form-group breakpoint-label"},_h=["textContent"],Sh={class:"form-group breakpoint-label"},Th=["textContent"],$h={class:""},Eh=["textContent"],Ih={class:"form-group breakpoint-label"},Mh=["textContent"],Ah={class:""},Oh={class:"form-group breakpoint-icon"},Ph=["textContent"],Lh={class:"breakpoint-icon"},Dh={key:1,class:"form-group breakpoint-label"},Nh=["textContent"],jh={class:""},Vh={class:"form-group submit"},Fh=["value","disabled"],Rh=["textContent"],qh={key:1,class:"wrapper configure"},Bh=["textContent"],zh=["textContent"],Hh={key:2,class:"breakpoints"},Wh=["data-key"],Uh=["textContent","title","data-after"],Kh=["textContent"],Gh={class:"actions"},Zh={key:3,class:"wrapper"},Jh=["textContent"],Yh={class:"actions"},Qh=["textContent"],Xh=["textContent"];var em={data:function(){return{action:void 0,breakpointKey:void 0,breakpointLabel:void 0,breakpointWidth:void 0,breakpointWidthBuilder:void 0,breakpointIcon:void 0,breakpointIsBase:"desktop",breakpointUnit:"px"}},computed:{breakpoints:function(){return this.$_state.breakpoints},breakpointSelected:function(){var e=this;return this.breakpointKey?this.breakpoints.find((function(t){return t.key===e.breakpointKey})):{}},baseBreakpoint:function(){return this.$_getBaseBreakpoint()},activeBreakpoints:function(){return this.$_clone(this.breakpoints).filter((function(e){return!(null!=e&&e.paused)}))},disableFormSubmit:function(){return!this.breakpointKey||!this.breakpointLabel||!this.breakpointWidth}},methods:{isBaseBreakpoint:function(e){var t,n;return e=e||this.breakpointSelected,(null===(t=this.baseBreakpoint)||void 0===t?void 0:t.key)===(null===(n=e)||void 0===n?void 0:n.key)},setBaseBreakpoint:function(e){this.breakpointIsBase=e},isCustomBreakpoint:function(e){return e.custom},atMediaRule:function(e){if(null!=e&&e.base)return this.i18n.baseBreakpoint;var t=this.$_getBaseBreakpointWidth();return(null==e?void 0:e.width)>t?"min-width: ".concat(null==e?void 0:e.width).concat(this.breakpointUnit):"max-width: ".concat(null==e?void 0:e.width).concat(this.breakpointUnit)},updateBreakpoint:function(e,t){var n,o,i,r,a,s,l=this;"delete"===this.action&&(e=this.breakpointSelected);var c=this.breakpointKey||(null===(n=e)||void 0===n?void 0:n.key),u=this.breakpointWidthBuilder||(null===(o=e)||void 0===o?void 0:o.widthBuilder);this.$_http({data:{action:"bricks_update_breakpoints",do:t||this.action,key:c,label:this.breakpointLabel||(null===(i=e)||void 0===i?void 0:i.label),width:this.breakpointWidth||(null===(r=e)||void 0===r?void 0:r.width),widthBuilder:u,icon:this.breakpointIcon||(null===(a=e)||void 0===a?void 0:a.icon),base:this.breakpointIsBase||(null===(s=e)||void 0===s?void 0:s.base)},success:function(e){if(l.bricks.debug.includes("breakpoint")&&console.info("bricks_update_breakpoints",e.data),e.success){switch(c===l.$_state.breakpointActive&&u&&(l.$_state.previewWidth=u),t=t||l.action){case"create":l.$_showMessage("".concat(l.i18n.create,": ").concat(l.i18n.breakpoint));break;case"edit":l.$_showMessage("".concat(l.i18n.edited,": ").concat(l.i18n.breakpoint));break;case"reset":l.$_showMessage("".concat(l.i18n.reset,": ").concat(l.i18n.breakpoint));break;case"delete":l.$_showMessage("".concat(l.i18n.deleted,": ").concat(l.i18n.breakpoint));break;case"configure":l.$_showMessage("".concat(l.i18n.deleted,": ").concat(l.i18n.breakpoints))}if(l.breakpointKey=void 0,l.breakpointLabel=void 0,l.breakpointWidth=void 0,l.breakpointWidthBuilder=void 0,l.breakpointIcon=void 0,l.breakpointIsBase=void 0,l.action=void 0,e.data.breakpoints){l.$_state.breakpoints=e.data.breakpoints;var n=l.$_state.breakpoints.find((function(e){return null==e?void 0:e.base}));null!=n&&n.key&&(l.$_state.breakpointActive=n.key)}}else e.data.error&&alert(e.data.error)}})},editBreakpoint:function(e){var t=this;null!=e&&e.paused||(this.breakpointKey=null==e?void 0:e.key,this.breakpointIcon=(null==e?void 0:e.icon)||"desktop",this.action=void 0,this.$nextTick((function(){return t.action="edit"})))},confirmDelete:function(e){null!=e&&e.paused||(this.breakpointKey=e.key,this.action="delete")},cancelAction:function(){this.breakpointKey=void 0,this.breakpointLabel=void 0,this.breakpointWidth=void 0,this.breakpointIcon=void 0,this.breakpointIsBase=void 0,this.action=void 0}},watch:{"$_state.isPreviewing":{handler:function(){this.$_state.breakpointManager=!1}},breakpointLabel:function(e){"create"===this.action&&(this.breakpointKey=e?e.toLowerCase().replaceAll(" ","_").replaceAll("-","_"):"")},action:function(e,t){var n,o,i,r,a;if(e!==t)switch(e){case"create":this.breakpointKey=void 0,this.breakpointLabel=void 0,this.breakpointWidth=void 0,this.breakpointWidthBuilder=void 0,this.breakpointIcon="desktop";break;case"edit":this.breakpointLabel=null===(n=this.breakpointSelected)||void 0===n?void 0:n.label,this.breakpointWidth=null===(o=this.breakpointSelected)||void 0===o?void 0:o.width,this.breakpointWidthBuilder=null===(i=this.breakpointSelected)||void 0===i?void 0:i.widthBuilder,this.breakpointIcon=null===(r=this.breakpointSelected)||void 0===r?void 0:r.icon,this.breakpointIsBase=null===(a=this.breakpointSelected)||void 0===a?void 0:a.base}else this.action=void 0}}},tm=n(3744);var nm=(0,tm.Z)(em,[["render",function(e,t,n,o,i,r){var a,s=no("icon"),l=no("control-text"),c=no("control-number"),u=no("control-checkbox");return e.$_state.fullAccess&&e.$_state.breakpointManager?(Yr(),oa("div",gh,[ua("div",vh,[ua("div",{class:"title data-before data-after",textContent:de(e.i18n.breakpoints),"data-before":e.$_isMobileFirst.value?e.i18n.mobileFirst:null},null,8,bh),ua("div",yh,[da(s,{name:"add",class:"create","data-balloon":e.i18n.create,"data-balloon-pos":"bottom",onClick:t[0]||(t[0]=function(e){return i.action="create"===i.action?null:"create"})},null,8,["data-balloon"]),da(s,{name:"settings",class:"configure","data-balloon":e.i18n.configure,"data-balloon-pos":"bottom",onClick:t[1]||(t[1]=function(e){return i.action="configure"===i.action?null:"configure"})},null,8,["data-balloon"]),da(s,{name:"close",class:"close","data-balloon":e.i18n.close,"data-balloon-pos":"bottom",onClick:t[2]||(t[2]=function(t){return e.$_state.breakpointManager=!1})},null,8,["data-balloon"])])]),"create"===i.action||"edit"===i.action?(Yr(),oa("form",{key:0,onSubmit:t[8]||(t[8]=El((function(e){return r.updateBreakpoint()}),["prevent"]))},[i.breakpointKey?(Yr(),oa("div",wh,[ua("label",{for:"breakpoint-key",textContent:de(e.i18n.key)},null,8,kh),ua("code",{textContent:de(i.breakpointKey)},null,8,xh)])):va("",!0),ua("div",Ch,[ua("label",{for:"breakpoint-label",textContent:de("".concat(e.i18n.label," *"))},null,8,_h),da(l,{controlKey:"breakpoint-label",control:{hasDynamicData:!1},value:i.breakpointLabel,onInput:t[3]||(t[3]=function(e){return i.breakpointLabel=e})},null,8,["value"])]),ua("div",Sh,[ua("label",{for:"breakpoint-width",textContent:de("".concat(e.i18n.width," (").concat(i.breakpointUnit,") *"))},null,8,Th),ua("div",$h,[da(c,{controlKey:"breakpoint-width",control:{units:!1,min:240},value:i.breakpointWidth,onInput:t[4]||(t[4]=function(e){return i.breakpointWidth=e})},null,8,["value"]),r.isBaseBreakpoint()?(Yr(),oa("p",{key:0,class:"wrapper info-message",textContent:de(e.i18n.breakpointBaseMessage)},null,8,Eh)):va("",!0)])]),ua("div",Ih,[ua("label",{for:"breakpoint-builder-default-width",textContent:de("".concat(e.i18n.width," (").concat(e.i18n.builder,")"))},null,8,Mh),ua("div",Ah,[da(c,{controlKey:"breakpoint-builder-default-width",control:{units:!1,placeholder:i.breakpointWidth},value:i.breakpointWidthBuilder,onInput:t[5]||(t[5]=function(e){return i.breakpointWidthBuilder=e})},null,8,["control","value"])])]),ua("div",Oh,[ua("label",{for:"breakpoint-icon",textContent:de(e.i18n.icon)},null,8,Ph),ua("div",Lh,[(Yr(),oa(Wr,null,gi(["desktop-3","desktop-2","desktop","laptop","tablet-landscape","tablet-portrait","phone-landscape","phone-portrait"],(function(e,t){return da(s,{key:t,name:e,"data-balloon":e,"data-balloon-pos":"top",class:ee([{selected:e===i.breakpointIcon}]),onClick:function(t){return i.breakpointIcon=e}},null,8,["name","data-balloon","class","onClick"])})),64))])]),null!==(a=r.breakpointSelected)&&void 0!==a&&a.base||"create"===i.action?va("",!0):(Yr(),oa("div",Dh,[ua("label",{for:"breakpoint-is-base",textContent:de("".concat(e.i18n.baseBreakpoint))},null,8,Nh),ua("div",jh,[da(u,{controlKey:"breakpoint-is-base",value:i.breakpointIsBase,onInput:t[6]||(t[6]=function(e){return r.setBaseBreakpoint(e)})},null,8,["value"])])])),ua("div",Vh,[ua("input",{type:"submit",class:ee(i.action),value:"create"===i.action?e.i18n.create:e.i18n.update,disabled:r.disableFormSubmit},null,10,Fh),ua("button",{class:"cancel",onClick:t[7]||(t[7]=function(e){return r.cancelAction()}),textContent:de(e.i18n.cancel)},null,8,Rh)])],32)):va("",!0),"configure"===i.action?(Yr(),oa("div",qh,[ua("p",{class:"description",textContent:de(e.i18n.resetBreakpointsDescription)},null,8,Bh),ua("button",{class:"delete",textContent:de("".concat(e.i18n.reset,": ").concat(e.i18n.breakpoints)),onClick:t[9]||(t[9]=function(e){return r.updateBreakpoint()})},null,8,zh)])):va("",!0),r.breakpoints.length?(Yr(),oa("ul",Hh,[(Yr(!0),oa(Wr,null,gi(r.breakpoints,(function(t,n){return Yr(),oa("li",{key:t.key,"data-key":t.key,class:ee(["breakpoint",{base:r.isBaseBreakpoint(t)},{paused:null==t?void 0:t.paused},{active:i.breakpointKey===(null==t?void 0:t.key)},{custom:null==t?void 0:t.custom},{inactive:i.breakpointKey&&i.breakpointKey!==(null==t?void 0:t.key)},{disabled:"create"===i.action}])},[da(s,{class:"icon",name:null==t?void 0:t.icon},null,8,["name"]),ua("label",{class:ee(["label",{"data-after":null==t?void 0:t.custom}]),textContent:de(null==t?void 0:t.label),title:null==t?void 0:t.label,"data-after":null!=t&&t.custom?e.i18n.custom:""},null,10,Uh),ua("div",{class:"width",textContent:de(r.atMediaRule(t))},null,8,Kh),ua("div",Gh,[null!=t&&t.custom||null==t||!t.edited?va("",!0):(Yr(),ia(s,{key:0,name:"refresh",class:"reset","data-balloon":e.i18n.reset,"data-balloon-pos":"top",onClick:El((function(e){return r.updateBreakpoint(t,"reset")}),["stop"])},null,8,["data-balloon","onClick"])),t.custom?(Yr(),ia(s,{key:1,name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top",onClick:function(e){return r.confirmDelete(t)}},null,8,["data-balloon","onClick"])):va("",!0),da(s,{name:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top",onClick:function(e){return r.editBreakpoint(t)}},null,8,["data-balloon","onClick"])]),da(u,{class:"toggle",control:{readonly:!(null!=t&&t.custom)},"data-balloon":null!=t&&t.paused?e.i18n.paused:e.i18n.active,"data-balloon-pos":"top",value:!(null!=t&&t.paused),onInput:function(e){return r.updateBreakpoint(t,"pause")}},null,8,["control","data-balloon","value","onInput"])],10,Wh)})),128))])):va("",!0),"delete"===i.action?(Yr(),oa("div",Zh,[ua("p",{class:"info-message",textContent:de(e.i18n.breakpointDeleteDescription)},null,8,Jh),ua("div",Yh,[ua("button",{class:"delete",onClick:t[10]||(t[10]=function(e){return r.updateBreakpoint()}),textContent:de(e.i18n.delete)},null,8,Qh),ua("button",{class:"cancel",onClick:t[11]||(t[11]=function(e){return r.cancelAction()}),textContent:de(e.i18n.cancel)},null,8,Xh)])])):va("",!0)])):va("",!0)}]]),om=["data-balloon"],im=["innerHTML"],rm={key:0,class:"wrapper"},am=["textContent"],sm=["textContent","disabled"],lm={class:"notifications"},cm=["innerHTML"],um=["innerHTML"],dm={class:"content"},fm={class:"meta"},pm=["textContent"],hm=["textContent"],mm=["innerHTML"],gm={key:0,class:"actions"},vm=["onClick"],bm=["textContent"],ym=["onClick"],wm=["textContent"],km={key:1,class:"actions"},xm=["data-balloon","onClick"],Cm=["data-balloon","onClick"],_m=["innerHTML"];var Sm={data:function(){return{showCounter:!1}},computed:{hasConflicts:function(){return this.$_state.hasConflicts},notifications:function(){return this.$_state.notifications},notificationsCount:function(){return this.notifications.length}},methods:{handleModifiedClass:function(e,t){if("accept"===e){var n=this.$_clone(this.$_state.globalClasses),o=this.notifications[t];(Array.isArray(null==o?void 0:o.data)?o.data:[]).forEach((function(e){n=n.map((function(t){return t.id===e.id&&(t=e),t}))})),this.$_state.globalClasses=n,this.$_state.rerenderControls=Date.now()}this.$_state.notifications.splice(t,1)},toggleDetails:function(e){this.$_state.notifications[e].showDetails=!this.$_state.notifications[e].showDetails},getDetails:function(e){var t="";return e.data.forEach((function(e){t+='<li class="item">.'.concat(e.name,"</li>")})),t?'<ul class="items">'.concat(t,"</ul>"):""},getDate:function(e){var t=new Date(Number(1e3*e));if(isNaN(t.getTime()))return"Invalid Date";var n=new Date-t,o=Math.floor(n/1e3),i=Math.floor(o/60),r=Math.floor(i/60),a=Math.floor(r/24),s=Math.floor(a/7),l=Math.floor(a/30),c=Math.floor(a/365);return c>0?c+(1===c?" year ago":" years ago"):l>0?l+(1===l?" month ago":" months ago"):s>0?s+(1===s?" week ago":" weeks ago"):a>0?a+(1===a?" day ago":" days ago"):r>0?r+(1===r?" hour ago":" hours ago"):i>0?i+(1===i?" minute ago":" minutes ago"):o+(1===o?" second ago":" seconds ago")},markAsRead:function(e){this.$_state.notifications.splice(e,1)},markAllAsRead:function(){this.hasConflicts||(this.$_state.notifications=[],this.showNotifications=!1)},closeNotifications:function(){this.hasConflicts||(this.$_state.showNotifications=!1)}},watch:{hasConflicts:function(e,t){t&&!e&&this.$_savePost({skipNotifications:!0})},notificationsCount:{handler:function(){var e=this;this.notificationsCount?setTimeout((function(){e.showCounter=!0}),100):this.showCounter=!1,this.notifications.some((function(e){return e.conflict}))||(this.notificationsCount&&!this.$_state.showNotifications&&(this.$_state.showNotifications=!0),this.$_state.hasConflicts=!1)},immediate:!0}}};const Tm=(0,tm.Z)(Sm,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=ro("clickaway");return Io((Yr(),oa("div",{id:"bricks-notifications",class:ee([{"has-conflicts":r.hasConflicts}])},[ua("div",{class:ee(["counter",{show:i.showCounter}]),"data-balloon":e.i18n.notifications.title,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(t){return e.$_state.showNotifications=!e.$_state.showNotifications})},[ua("span",{innerHTML:r.notifications.length},null,8,im)],10,om),e.$_state.showNotifications||r.hasConflicts?(Yr(),oa("div",rm,[ua("header",null,[ua("h2",{class:"title",textContent:de(e.i18n.notifications.title)},null,8,am),ua("button",{onClick:t[1]||(t[1]=function(){return r.markAllAsRead&&r.markAllAsRead.apply(r,arguments)}),textContent:de(e.i18n.markAllAsRead),disabled:r.hasConflicts},null,8,sm)]),ua("main",lm,[(Yr(!0),oa(Wr,null,gi(r.notifications,(function(t,n){return Yr(),oa("div",{key:n+(null==t?void 0:t.action),class:ee(["notification",{conflict:null==t?void 0:t.conflict}])},[null!=t&&t.conflict?(Yr(),oa("div",{key:0,class:"message conflict",innerHTML:t.conflict},null,8,cm)):va("",!0),ua("div",{class:"avatar",innerHTML:t.avatar},null,8,um),ua("div",dm,[ua("div",fm,[ua("h6",{class:"author",textContent:de(t.author)},null,8,pm),ua("div",{class:"timestamp",textContent:de(r.getDate(t.timestamp))},null,8,hm)]),ua("div",{class:"desc",innerHTML:t.desc},null,8,mm),null!=t&&t.conflict?(Yr(),oa("div",gm,[ua("button",{onClick:El((function(e){return r.handleModifiedClass("accept",n)}),["stop"])},[ua("span",{textContent:de(e.i18n.accept)},null,8,bm),da(a,{name:"check"})],8,vm),ua("button",{onClick:El((function(e){return r.handleModifiedClass("discard",n)}),["stop"])},[ua("span",{textContent:de(e.i18n.discard)},null,8,wm),da(a,{name:"trash"})],8,ym)])):va("",!0),null!=t&&t.conflict?va("",!0):(Yr(),oa("div",km,[Array.isArray(t.data)?(Yr(),oa("button",{key:0,"data-balloon":e.i18n.details,"data-balloon-pos":"top",onClick:function(e){return r.toggleDetails(n)}},[da(a,{name:"preview"})],8,xm)):va("",!0),ua("button",{"data-balloon":e.i18n.close,"data-balloon-pos":"top",onClick:El((function(e){return r.markAsRead(n)}),["stop"])},[da(a,{name:"check"})],8,Cm)])),null!=t&&t.showDetails||null!=t&&t.conflict?(Yr(),oa("div",{key:2,class:"details",innerHTML:r.getDetails(t)},null,8,_m)):va("",!0)])],2)})),128))])])):va("",!0)],2)),[[As,r.notificationsCount],[s,r.closeNotifications]])}]]);var $m=Tm,Em={class:"group-wrapper left"},Im=["data-balloon"],Mm=["href","target"],Am=["src"],Om=["data-balloon"],Pm=["data-balloon"],Lm=["data-balloon"],Dm=["data-balloon"],Nm=["data-balloon"],jm=["data-balloon"],Vm=["data-balloon"],Fm={class:"group-wrapper breakpoints"},Rm=["data-balloon"],qm=["data-balloon"],Bm=["data-balloon","onClick"],zm=["data-balloon"],Hm=["value","readonly"],Wm={key:1,class:"text"},Um=["data-balloon"],Km=["value"],Gm=ua("label",{for:"preview-height",class:"unit"},"H",-1),Zm=["data-balloon"],Jm=["value","readonly"],Ym=["textContent"],Qm={class:"group-wrapper right"},Xm=["data-balloon"],eg=["data-balloon"],tg=["data-balloon"],ng=["data-balloon"],og=["data-balloon"],ig=["data-balloon"],rg=["href"],ag=["data-balloon"],sg=["data-balloon"],lg=["data-balloon"];var cg={data:function(){var e,t;return{postStatus:this.bricks.postStatus,editPostUrl:(null===(e=this.bricks)||void 0===e?void 0:e.editPostUrl)||"#",previewUrl:(null===(t=this.bricks)||void 0===t?void 0:t.previewUrl)||"#",scaleLabelHover:!1,widthLabelHover:!1,logoUrl:"",logoTooltip:"",classVarTooltip:""}},computed:{structureTooltip:function(){return this.$_state.showStructure?this.i18n.structure:"".concat(this.i18n.structure," (").concat(this.i18n.hidden,")")},breakpoints:function(){return this.$_state.breakpoints.filter((function(e){return!e.paused}))}},methods:{handleCssManagerSelection:function(){var e=this.$_state.activeCssPopup;this.$_state.popup=e},reloadCanvas:function(){var e=this;document.getElementById("bricks-builder-iframe")&&("main"===this.$_state.messageOrigin&&this.$_postMessage({key:"globalClasses",value:this.$_state.globalClasses}),this.$nextTick((function(){e.$_reloadCanvas()})))},togglePreview:function(){this.$_state.isPreviewing=!this.$_state.isPreviewing},togglePreviewWidthLocked:function(){"desktop"===this.$_state.breakpointActive&&(this.$_state.previewWidthLocked=!this.$_state.previewWidthLocked&&this.$_state.previewWidth)},getBreakpointLabel:function(e){var t=e.label;return e.base?t+=" (".concat(this.i18n.baseBreakpoint,")"):e.width<this.$_getBaseBreakpointWidth()?t+=" (<= ".concat(e.width,"px)"):e.width>this.$_getBaseBreakpointWidth()&&(t+=" (>= ".concat(e.width,"px)")),t},setBreakpoint:function(e){this.$_state.messageOrigin="main",this.$_state.breakpointActive=e},setPreviewWidth:function(e){var t,n,o=this,i=e>240?parseInt(e):240,r=this.$_getBaseBreakpointWidth(),a=this.breakpoints;a.forEach((function(e,t){var s=!!a[t+1]&&a[t+1];o.$_isMobileFirst.value?(null==s?void 0:s.width)<=i&&(n=s):!n&&i>r&&(null==e?void 0:e.width)>r&&(null==e?void 0:e.width)<i?n=e:i<r&&(null==s?void 0:s.width)>=i&&(n=s)})),null!==(t=n)&&void 0!==t&&t.key?this.$_state.breakpointActive=n.key:this.$_state.breakpointActive=this.$_getBaseBreakpointKey(),this.$nextTick((function(){o.$_state.previewWidth=i}))},setPreviewHeight:function(e){this.$_state.previewHeight=e?e>320?parseInt(e):320:null},setPreviewScaleMax:function(e,t){if(this.$_state.previewScaleActive){var n=e/100;n>1?n=1:n<.1&&(n=.1),this.$_state.previewScaleMax=n,t.target.value=Math.floor(100*this.$_previewScale.value)}},reloadPreviewWindow:function(){window.bricksPreview?(window.open("","bricksPreview"),window.bricksPreviewWindow.location.reload(!0)):window.bricksPreviewWindow=window.open(this.previewUrl,"bricksPreview")},publishPost:function(){var e=this;this.$_http({data:{action:"bricks_publish_post"},success:function(t){t=t.data,e.postStatus="publish",e.$_showMessage(e.i18n.published)}})},getPreviewHeight:function(){var e=this,t=this.$_state.breakpoints.find((function(t){return t.key===e.$_state.breakpointActive}));if(t){var n=(null==t?void 0:t.widthBuilder)||(null==t?void 0:t.width);if(n){var o=null!=t&&t.ratio?t.ratio.split(":"):[];if(2===o.length){var i=parseInt(o[0]),r=parseInt(o[1]);return Math.round(n/i*r)}return 0}}}},created:function(){var e=localStorage.getItem("activeCssPopup");switch(e&&(this.$_state.activeCssPopup=e),this.logoTooltip="".concat(this.i18n.goTo,": "),this.bricks.toolbarLogoLink||"current"){case"current":this.logoTooltip+=this.i18n.viewOnFrontend,this.logoUrl=this.bricks.previewUrl;break;case"home":this.logoTooltip+=this.i18n.homePage,this.logoUrl=this.bricks.homeUrl;break;case"dashboard":this.logoTooltip+=this.i18n.dashboard,this.logoUrl=this.bricks.adminUrl;break;case"postType":this.logoTooltip+=this.i18n.postType,this.logoUrl=this.bricks.postTypeUrl;break;case"wp":this.logoTooltip+=this.i18n.editInWordPress,this.logoUrl=this.editPostUrl;break;case"custom":this.logoUrl=this.bricks.toolbarLogoLinkCustom||this.bricks.previewUrl,this.logoTooltip+=this.i18n.custom}this.bricks.disableClassManager||(this.classVarTooltip+=this.i18n.classes),this.bricks.disableVariablesManager||(this.classVarTooltip&&(this.classVarTooltip+="/"),this.classVarTooltip+=this.i18n.variables)},watch:{"$_state.breakpointActive":{handler:function(){var e=this.$_getPreviewWidth();e&&(this.$_state.previewWidth=e)}},"$_state.previewWrapperWidth":{handler:function(){var e=this.$_getPreviewWidth();e&&(this.$_state.previewWidth=e)}},"$_state.previewWidthLocked":{handler:function(e){this.$_http({data:{action:"bricks_save_builder_width_locked",width:e}})}},"$_state.previewScaleActive":{handler:function(e){this.$_http({data:{action:"bricks_save_builder_scale_off",off:!e}})}}}};const ug=(0,tm.Z)(cg,[["render",function(e,t,n,o,i,r){var a,s=no("icon");return Yr(),oa("div",{id:"bricks-toolbar",class:ee([{"is-previewing":e.$_state.isPreviewing}]),onClick:t[29]||(t[29]=El((function(t){return e.$_showPanel()}),["self"]))},[ua("ul",Em,[ua("li",{"data-balloon":i.logoTooltip,"data-balloon-pos":"bottom-left",class:"logo"},[ua("a",{href:i.logoUrl,target:e.bricks.toolbarLogoLinkNewTab?"_blank":"_self"},[ua("img",{src:"".concat(e.bricks.assetsUrl,"images/bricks-favicon-b.svg"),alt:"Bricks"},null,8,Am)],8,Mm)],8,Im),e.$_state.fullAccess?(Yr(),oa("li",{key:0,class:ee(["pseudo-classes",{active:e.$_state.pseudoClassPopup},{highlight:e.$_state.pseudoClassActive},{"has-settings":e.$_hasPseudoSettings(null===(a=this.$_state.activeElement)||void 0===a?void 0:a.settings)}]),"data-balloon":e.i18n.pseudoClassTooltip,"data-balloon-pos":"bottom-left",onClick:t[0]||(t[0]=El((function(t){return e.$_state.pseudoClassPopup=!e.$_state.pseudoClassPopup}),["stop"]))},[da(s,{name:"cursor"})],10,Om)):va("",!0),e.$_state.fullAccess&&i.classVarTooltip?(Yr(),oa("li",{key:1,class:ee(["classes",{active:"classes"===e.$_state.activePanel}]),"data-balloon":i.classVarTooltip,"data-balloon-pos":"bottom",onClick:t[1]||(t[1]=El((function(e){return r.handleCssManagerSelection()}),["stop"]))},[da(s,{name:"css3"})],10,Pm)):va("",!0),ua("li",{class:ee(["pages",{active:"pages"===e.$_state.activePanel}]),"data-balloon":e.i18n.pages,"data-balloon-pos":"bottom",onClick:t[2]||(t[2]=El((function(t){return e.$_showPanel({panel:"pages"})}),["stop"]))},[da(s,{name:"pages"})],10,Lm),e.$_state.fullAccess?(Yr(),oa("li",{key:2,class:ee(["templates",{active:"templates"===e.$_state.activePanel}]),"data-balloon":e.i18n.templates,"data-balloon-pos":"bottom",onClick:t[3]||(t[3]=El((function(t){return e.$_state.popup="templates"}),["stop"]))},[da(s,{name:"folder"})],10,Dm)):va("",!0),ua("li",{class:ee(["settings",{active:"theme-styles"===e.$_state.activePanel||-1!==e.$_state.activePanel.indexOf("settings")}]),"data-balloon":e.i18n.settings,"data-balloon-pos":"bottom",onClick:t[4]||(t[4]=El((function(t){return e.$_showPanel({panel:"settings"})}),["stop"]))},[da(s,{name:"settings"})],10,Nm),ua("li",{class:ee(["docs",{active:"docs"===e.$_state.activePanel}]),"data-balloon":e.i18n.help,"data-balloon-pos":"bottom",onClick:t[5]||(t[5]=El((function(t){return e.$_state.popup="docs"}),["stop"]))},[da(s,{name:"help"})],10,jm),e.$_state.fullAccess?(Yr(),oa("li",{key:3,class:ee(["elements",{active:"elements"===e.$_state.activePanel}]),"data-balloon":e.i18n.elements,"data-balloon-pos":"bottom",onClick:t[6]||(t[6]=El((function(t){return e.$_showPanel()}),["stop"]))},[da(s,{name:"add"})],10,Vm)):va("",!0)]),ua("ul",Fm,[ua("li",{"data-balloon":e.i18n.reloadCanvas,"data-balloon-pos":"bottom",class:ee(["reload-canvas",{auto:e.bricks.customBreakpoints}]),onClick:t[7]||(t[7]=function(e){return r.reloadCanvas()})},[da(s,{name:"refresh",class:ee({"is-reloading-canvas":e.$_state.isReloadingCanvas})},null,8,["class"])],10,Rm),e.bricks.customBreakpoints?(Yr(),oa("li",{key:0,"data-balloon":e.i18n.breakpoints,"data-balloon-pos":"bottom",onClick:t[8]||(t[8]=function(t){return e.$_state.breakpointManager=!e.$_state.breakpointManager}),class:"manage-breakpoints"},[da(s,{name:"more"})],8,qm)):va("",!0),(Yr(!0),oa(Wr,null,gi(r.breakpoints,(function(t){return Yr(),oa("li",{key:t.key,class:ee(["breakpoint",{base:null==t?void 0:t.base},{active:e.$_state.breakpointActive===t.key},{paused:t.paused},{"has-settings":e.$_breakpointHasStyles(t.key)}]),"data-balloon":r.getBreakpointLabel(t),"data-balloon-pos":"bottom",onClick:El((function(e){return r.setBreakpoint(t.key)}),["stop"])},[da(s,{name:t.icon||"desktop"},null,8,["name"])],10,Bm)})),128)),ua("li",{class:ee(["preview-dimension","width",{locked:"desktop"===e.$_state.breakpointActive&&e.$_state.previewWidthLocked}]),"data-balloon":e.i18n.width+("desktop"===e.$_state.breakpointActive&&e.$_state.previewWidthLocked?" (".concat(e.i18n.desktop," ").concat(e.i18n.locked,")"):""),"data-balloon-pos":"bottom"},[ua("input",{id:"preview-width",type:"number",class:"number",value:e.$_state.previewWidth,placeholder:"-",readonly:"desktop"===e.$_state.breakpointActive&&e.$_state.previewWidthLocked,onBlur:t[9]||(t[9]=function(e){return r.setPreviewWidth(e.target.value)}),onKeyup:t[10]||(t[10]=Ml((function(e){return r.setPreviewWidth(e.target.value)}),["enter"]))},null,40,Hm),ua("label",{for:"preview-width",class:ee(["unit","width"]),onMouseenter:t[11]||(t[11]=function(e){return i.widthLabelHover=!0}),onMouseleave:t[12]||(t[12]=function(e){return i.widthLabelHover=!1}),onClick:t[13]||(t[13]=function(e){return r.togglePreviewWidthLocked()})},["desktop"===e.$_state.breakpointActive&&(i.widthLabelHover||e.$_state.previewWidthLocked)?(Yr(),ia(s,{key:0,class:"icon",name:"locked"})):(Yr(),oa("span",Wm,"W"))],32)],10,zm),ua("li",{class:"preview-dimension height","data-balloon":e.i18n.height,"data-balloon-pos":"bottom"},[ua("input",{id:"preview-height",type:"number",class:"number",placeholder:"-",value:e.$_state.previewHeight?e.$_state.previewHeight:"",onBlur:t[14]||(t[14]=function(e){return r.setPreviewHeight(e.target.value)}),onKeyup:t[15]||(t[15]=Ml((function(e){return r.setPreviewHeight(e.target.value)}),["enter"]))},null,40,Km),Gm],8,Um),ua("li",{class:"preview-dimension","data-balloon":"".concat(e.i18n.scale).concat(e.$_state.previewScaleActive?"":" (".concat(e.i18n.disabled,")")),"data-balloon-pos":"bottom"},[Io(ua("input",{id:"preview-scale",type:"number",class:"number",value:e.$_state.previewScaleActive?Math.floor(100*e.$_previewScale.value):100,readonly:!e.$_state.previewScaleActive,onBlur:t[16]||(t[16]=function(e){return r.setPreviewScaleMax(e.target.value,e)}),onKeyup:t[17]||(t[17]=Ml((function(e){return r.setPreviewScaleMax(e.target.value,e)}),["enter"]))},null,40,Jm),[[As,e.$_state.previewScaleActive]]),ua("label",{for:"preview-scale",class:ee(["unit","scale",{off:!e.$_state.previewScaleActive}]),textContent:de(!e.$_state.previewScaleActive||i.scaleLabelHover?"-":"%"),onMouseenter:t[18]||(t[18]=function(e){return i.scaleLabelHover=!0}),onMouseleave:t[19]||(t[19]=function(e){return i.scaleLabelHover=!1}),onClick:t[20]||(t[20]=function(t){return e.$_state.previewScaleActive=!e.$_state.previewScaleActive})},null,42,Ym)],8,Zm)]),ua("ul",Qm,[ua("li",{class:ee(["undo",{disabled:e.$_state.historyInProgress||e.$_state.history.length<2||0===e.$_state.historyIndex}]),"data-balloon":e.i18n.undo,"data-balloon-pos":"bottom",onClick:t[21]||(t[21]=El((function(t){return e.$_state.historyInProgress?null:e.$_goto("undo")}),["stop"]))},[da(s,{name:"undo"})],10,Xm),ua("li",{class:ee(["redo",{disabled:e.$_state.historyInProgress||e.$_state.historyIndex===e.$_state.history.length||e.$_state.historyIndex+1===e.$_state.history.length}]),"data-balloon":e.i18n.redo,"data-balloon-pos":"bottom",onClick:t[22]||(t[22]=El((function(t){return e.$_state.historyInProgress?null:e.$_goto("redo")}),["stop"]))},[da(s,{name:"redo"})],10,eg),ua("li",{class:ee(["history",{active:"history"===e.$_state.activePanel||"revisions"===e.$_state.activePanel}]),"data-balloon":"".concat(e.i18n.history,"/").concat(e.i18n.revisions),"data-balloon-pos":"bottom",onClick:t[23]||(t[23]=El((function(t){return e.$_showPanel({panel:"history"})}),["stop"]))},[da(s,{name:"revision"})],10,tg),ua("li",{class:ee(["structure",{active:"structure"===e.$_state.activePanel}]),"data-balloon":r.structureTooltip,"data-balloon-pos":"bottom",onClick:t[24]||(t[24]=El((function(t){return e.$_state.showStructure=!e.$_state.showStructure}),["stop"]))},[da(s,{name:e.$_state.showStructure?"structure":"structure-hidden"},null,8,["name"])],10,ng),"publish"!==i.postStatus&&e.$_state.userCan.publishPosts&&e.$_state.userCan.publishPages?(Yr(),oa("li",{key:0,onClick:t[25]||(t[25]=El((function(){return r.publishPost&&r.publishPost.apply(r,arguments)}),["stop"])),"data-balloon":e.i18n.publish,"data-balloon-pos":"bottom"},[da(s,{name:"publish"})],8,og)):va("",!0),ua("li",{class:"wordpress","data-balloon":e.i18n.editInWordPress,"data-balloon-pos":"bottom"},[ua("a",{href:i.editPostUrl},[da(s,{name:"wordpress"})],8,rg)],8,ig),ua("li",{class:ee(["new-tab",{active:e.$_state.isPreviewing}]),"data-balloon":e.i18n.viewOnFrontend,"data-balloon-pos":"bottom"},[ua("a",{onClick:t[26]||(t[26]=El((function(){return r.reloadPreviewWindow&&r.reloadPreviewWindow.apply(r,arguments)}),["stop"]))},[da(s,{name:"new-tab"})])],10,ag),ua("li",{class:ee(["preview",{active:e.$_state.isPreviewing}]),"data-balloon":e.$_state.isPreviewing?e.i18n.backToBuilder:e.i18n.previewMode,"data-balloon-pos":"bottom",onClick:t[27]||(t[27]=El((function(){return r.togglePreview&&r.togglePreview.apply(r,arguments)}),["stop"]))},[da(s,{name:"preview"})],10,sg),ua("li",{class:"save",onClick:t[28]||(t[28]=El((function(t){return e.$_savePost()}),["stop"])),"data-balloon":"draft"===i.postStatus?e.i18n.saveDraft:e.i18n.save,"data-balloon-pos":"bottom"},[e.$_state.isSaving?(Yr(),ia(s,{key:"refresh",name:"refresh",class:ee({"bricks-animation-load8":e.$_state.isSaving})},null,8,["class"])):(Yr(),ia(s,{key:"save",name:"save"}))],8,lg)])],2)}]]);var dg=ug,fg={id:"bricks-panel-inner",ref:"scrollbar"};var pg={id:"bricks-panel-header"},hg=["value"],mg={class:"actions"},gg=["data-balloon"],vg=["data-balloon"],bg=["data-balloon"],yg=["data-balloon"],wg=["href"],kg=["data-balloon"],xg={key:1,id:"bricks-panel-sticky"},Cg={key:0,id:"bricks-panel-tabs"},_g=["onClick"],Sg={key:0,class:"indicator"},Tg=["textContent"];var $g={id:"bricks-panel-element-classes"},Eg=["size","value","readonly","placeholder"],Ig={class:"actions"},Mg=["textContent","data-balloon"],Ag=["onClick"],Og=["data-class-id","textContent"],Pg={class:"input-wrapper"},Lg=["placeholder"],Dg={class:"actions"},Ng={key:1,class:"css-classes"},jg={key:0,class:"title"},Vg=["textContent"],Fg={key:1},Rg=["textContent"],qg={class:"actions"},Bg={key:2,class:"title"},zg=["innerHTML"],Hg={key:3},Wg=["onClick"],Ug=["textContent"],Kg={class:"actions"},Gg={key:4,class:"title"},Zg=["textContent"],Jg={key:5},Yg=["onClick","onMouseenter"],Qg={class:"name"},Xg={key:0,class:"actions"};function ev(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,a,s=[],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)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tv(e,t)}(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 tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var nv={setup:function(){return{activeId:sn(Vf,"activeId"),activeClass:sn(Vf,"activeClass"),globalClasses:sn(Vf,"globalClasses"),globalClassesLocked:sn(Vf,"globalClassesLocked"),globalClassesSelected:sn(Vf,"globalClassesSelected")}},props:{element:{type:Object,required:!0,default:function(){return{}}},settings:{type:Object,required:!0,default:function(){return{}}}},data:function(){return{mounted:!1,showActions:!1,action:void 0,classInput:"",deleteId:!1,classListNodes:void 0,selectedClassNode:void 0,selectedClassIndex:-1,elementCssId:"",importResults:[]}},computed:{elementClassIds:function(){var e;return Array.isArray(null===(e=this.settings)||void 0===e?void 0:e._cssGlobalClasses)?this.settings._cssGlobalClasses:[]},activeClassesCount:function(){var e=this;return this.elementClassIds.length?this.elementClassIds.filter((function(t){return e.$_getGlobalClassName(t)})).length:0},activeClassId:function(){var e;return null===(e=this.activeClass)||void 0===e?void 0:e.id},isLocked:function(){return!!this.activeClassId&&this.$_isLocked(this.activeClassId)},classesDisabled:function(){return this.bricks.disableGlobalClasses&&!this.settings.hasOwnProperty("_cssGlobalClasses")},hasActiveClass:function(){return this.elementClassIds.includes(this.activeClassId)},activeSelector:function(){var e,t="rename"===this.action&&null!==(e=this.settings)&&void 0!==e&&e._cssId?this.settings._cssId:"";return this.activeClass&&this.hasActiveClass&&(t="rename"===this.action?this.activeClass.name:".".concat(this.activeClass.name)),t},otherClasses:function(){var e=this,t=this.$_clone(this.globalClasses),n=[];return t.forEach((function(t){var o;e.elementClassIds.includes(t.id)||null!==(o=t.name)&&void 0!==o&&o.includes(e.classInput)&&(e.$_state.globalClassesLocked.includes(t.id)&&(t._locked=!0),n.push(t))})),n}},methods:{copyToClipboard:function(e){e&&this.$_copyToClipboard("#".concat(e),"".concat(this.i18n.copied,": #").concat(e))},classesImported:function(e){var t=this;Array.isArray(e)&&e.length&&(this.importResults=[],e.forEach((function(e){var n=[];e.forEach((function(e){t.globalClasses.find((function(t){return t.id===e.id}))||(t.globalClasses.push(e),n.push(e))})),t.importResults.push({text:"".concat(n.length,"/").concat(e.length," ").concat(t.i18n.globalClassesImported,"."),type:n.length?"success":"info"})})))},setElementCssId:function(e){var t,n;e?this.elementCssId=e:null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._cssId?this.elementCssId=this.element.settings._cssId:null!==(n=this.element)&&void 0!==n&&n.global?this.elementCssId="brxe-".concat(this.activeId):this.elementCssId=this.$_getElementId(this.element)},selectCssClass:function(e){e?this.globalClassesSelected[this.activeId]=e:this.globalClassesSelected.hasOwnProperty(this.activeId)&&delete this.globalClassesSelected[this.activeId],this.$_state.rerenderControls=Date.now()},clearCssClass:function(){this.selectCssClass(""),this.activeClass=void 0},createCssClasses:function(){var e=this;if(this.selectedClassNode&&(this.classInput=this.selectedClassNode.innerText.replace(/^\.+/,""),this.selectedClassNode.classList.contains("skip")))this.clearCssClass();else if(this.classInput){this.classInput=this.classInput.trim(),this.classInput=this.classInput.replaceAll("#",""),this.classInput=this.classInput.replace(/^\.+/,"");var t=this.classInput.split(" ");t.length&&t.forEach((function(t){if(t){var n;t=t.replace(/^\.+/,"");var o=e.globalClasses.find((function(e){return e.name===t}));if(o)n=o;else{var i=e.$_generateId();n={id:i,name:t,settings:{}};var r=e.$_clone(e.globalClasses);r.push(n),e.$_state.globalClasses=r,e.$_showMessage("".concat(e.i18n.created,": ").concat(e.i18n.cssClass))}e.$nextTick((function(){e.addClassToElement(n.id),e.$nextTick((function(){e.selectCssClass(n.id),e.classInput=""}))}))}}))}},exportCssClasses:function(){this.$_exportAsJsonFile(this.globalClasses,"bricks-css-classes")},importCssClasses:function(){this.action="import",this.$_state.showElementClasses=!1},renameSelector:function(e){var t=this;if(this.action=void 0,e&&((e=(e=e.trim()).replaceAll(" ","-")).startsWith(".")&&(e=e.replace(".","")),e.startsWith("#")&&(e=e.replace("#",""))),!this.activeClass)return e?this.settings._cssId=e:delete this.settings._cssId,void this.$_showMessage("".concat(this.i18n.rename));if(e){var n=this.globalClasses.find((function(t){return t.name===e}));if(n)this.activeClass=n;else{var o=this.globalClasses.find((function(e){return e.id===t.activeClassId}));Object.entries(null==o?void 0:o.settings).forEach((function(n){var i=ev(n,2),r=i[0],a=i[1];r.startsWith("_cssCustom")&&(o.settings[r]=t.$_replaceCustomCssRoot(".".concat(o.name),".".concat(e),a))})),o.name=e,this.activeClass=o}}},initRename:function(){this.action="rename",this.$refs.className.focus()},deleteGlobalClass:function(e){var t,n=this,o=this.$_clone(this.globalClasses),i=o.findIndex((function(t){return t.id===e})),r=null===(t=o[i])||void 0===t?void 0:t.name;this.removeClassFromElement(e),this.$nextTick((function(){-1!==i&&(o.splice(i,1),n.$_state.globalClasses=o),e===n.activeClassId&&(n.selectCssClass(""),n.activeClass=void 0),n.$_showMessage("".concat(n.i18n.deleted,": .").concat(r)),n.deleteId=!1}))},addClassToElement:function(e){var t,n=this;(this.$_stopPostMessages(),this.selectCssClass(e),this.activeClass=this.$_getGlobalClass(e,!0),this.elementClassIds.includes(e))||(null!==(t=this.settings)&&void 0!==t&&t._cssGlobalClasses?this.settings._cssGlobalClasses.push(e):this.settings._cssGlobalClasses=[e]);setTimeout((function(){n.$_state.showElementClasses=!1}),100)},removeClassFromElement:function(e){var t=this.elementClassIds.indexOf(e);-1!==t&&(this.$_stopPostMessages(),this.settings._cssGlobalClasses.splice(t,1),this.action=void 0,this.activeClass=void 0,this.selectCssClass(""))},setActiveClass:function(e){this.activeClassId===e&&(e=""),this.selectCssClass(e),this.activeClass=this.$_clone(this.$_getGlobalClass(e,!0)),this.$_state.showElementClasses=!1},resetIdStyles:function(){var e=this,t=this.$_getElementConfig(this.element.name);t&&(Object.keys(this.settings).forEach((function(n){var o=e.$_getControlKeyPlain(n),i=!!t.controls.hasOwnProperty(o)&&t.controls[o];i&&(i.hasOwnProperty("css")||i.hasOwnProperty("reset")?i.hasOwnProperty("default")?e.settings[n]=i.default:delete e.settings[n]:"_cssCustom"===n&&delete e.settings[n])})),this.$_showMessage(this.i18n.resetStyles),this.$nextTick((function(){e.$_state.rerenderControls=Date.now()})))},resetClassStyles:function(e){var t=this.$_clone(this.globalClasses),n=t.findIndex((function(t){return t.id===e}));t[n]&&(this.$_state.globalClasses[n].settings={}),e===this.activeClassId&&(this.activeClass.settings={}),this.$_showMessage(this.i18n.resetStyles)},lockClassId:function(e){var t=this.globalClassesLocked.indexOf(e);-1===t?this.globalClassesLocked.push(e):this.globalClassesLocked.splice(t,1)},copySettings:function(e){var t=this,n=this.$_getGlobalClass(e,!0),o=(null==n?void 0:n.settings)||{};if("#root"===e){var i=this.$_getElementConfig(this.element.name).controls;Object.keys(this.settings).forEach((function(e){var n=t.$_getControlKeyPlain(e);(i.hasOwnProperty(n)?i[n]:{}).hasOwnProperty("css")&&(o[e]=t.settings[e])}))}if(Object.keys(o).length){var r=null==n?void 0:n.name,a=this.$_clone(o);Object.keys(a).forEach((function(e){e.startsWith("_cssCustom")&&(a[e]=a[e].replaceAll(".".concat(r),"root"))})),this.$_writeToClipboard("bricksCopiedGlobalClassSettings",a).then((function(){t.$_showMessage("".concat(t.i18n.copied,": ").concat(t.i18n.styles))}))}else this.$_showMessage(this.i18n.nothingToCopy)},pasteSettings:function(e){var t=this;this.$_readFromClipboard("bricksCopiedGlobalClassSettings").then((function(n){var o=(null==n?void 0:n.content)||{},i=t.$_getGlobalClassName(e);Object.keys(o).forEach((function(e){e.startsWith("_cssCustom")&&(o[e]=o[e].replaceAll("root",".".concat(i)))})),o?t.pasteSettingsEnd(e,o):t.pasteSettingsFromElement(e),t.$_state.rerenderControls=Date.now()})).catch((function(){t.pasteSettingsFromElement(e)}))},pasteSettingsFromElement:function(e){var t=this;this.$_readFromClipboard("bricksCopiedElement").then((function(n){var o=(null==n?void 0:n.content)||{},i=(null==o?void 0:o.settings)||[];if(i){var r=t.$_getElementConfig(t.element.name).controls;Object.keys(i).forEach((function(e){var n=t.$_getControlKeyPlain(e),o=!!r.hasOwnProperty(n)&&r[n];o&&o.hasOwnProperty("css")||delete i[e]}))}i&&Object.keys(i).length?t.pasteSettingsEnd(e,i):t.$_showMessage(t.i18n.nothingToPaste)})).catch((function(){t.$_showMessage(t.i18n.nothingToPaste)}))},pasteSettingsEnd:function(e,t){var n,o=this,i=this.globalClasses.findIndex((function(t){return t.id===e}));-1!==i?(this.$_state.globalClasses[i].settings=t,(null===(n=this.$_state.globalClasses[i])||void 0===n?void 0:n.id)===this.activeClassId&&(this.activeClass=this.$_state.globalClasses[i])):Object.keys(t).forEach((function(e){o.element.settings[e]=t[e]}));this.$_showMessage(this.i18n.pasted)},onKeyup:function(e){var t=this;if(this.$_state.showElementClasses){switch(this.classListNodes=this.$el.querySelectorAll(".bricks-control-popup li"),this.selectedClassNode=this.$el.querySelector(".bricks-control-popup li.selected"),e.key){case"Escape":this.$_state.showElementClasses=!1;break;case"ArrowUp":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex>0&&(this.selectedClassIndex-=1);break;case"ArrowDown":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex+1<this.classListNodes.length&&(this.selectedClassIndex+=1)}if(this.selectedClassNode=this.classListNodes[this.selectedClassIndex],this.selectedClassNode){this.selectedClassNode.classList.toggle("selected");var n=this.$el.querySelector(".bricks-control-popup .css-classes"),o=this.$el.querySelector(".bricks-control-popup .input-wrapper");n&&o&&this.$nextTick((function(){return n.scrollTo({top:t.selectedClassNode.offsetTop-o.offsetHeight})}))}}else{var i;"Tab"===e.key&&null!==(i=document.activeElement)&&void 0!==i&&i.classList.contains("active-class")&&(this.$_state.showElementClasses=!0)}}},mounted:function(){var e=this;this.$_state.showElementClasses=!1,document.addEventListener("keyup",this.onKeyup),setTimeout((function(){e.mounted=!0}),100)},beforeUnmount:function(){this.$_state.showElementClasses=!1,document.removeEventListener("keyup",this.onKeyup)},watch:{"settings._cssGlobalClasses":{handler:function(e){var t;null!==(t=this.element)&&void 0!==t&&t.settings&&(e&&e.length||delete this.element.settings._cssGlobalClasses)},immediate:!0},"settings._cssId":function(e){this.setElementCssId(e)},"$_state.activeId":{handler:function(e){this.setElementCssId(),this.$_setLastSelectedClass(e)},immediate:!0},activeClassId:{handler:function(){this.$_state.activeClassIsLocked=this.activeClassId&&this.globalClassesLocked.includes(this.activeClassId),this.classInput=""}},globalClassesLocked:{handler:function(){this.$_state.activeClassIsLocked=this.activeClassId&&this.globalClassesLocked.includes(this.activeClassId)},deep:!0},"$_state.showElementClasses":{handler:function(e){var t=this;setTimeout((function(){e?t.$refs.classInput&&t.$refs.classInput.focus():t.selectedClassIndex=-1}),10)}},deleteId:function(e){var t=this;e&&setTimeout((function(){t.deleteId=!1}),2e3)}}};var ov=(0,tm.Z)(nv,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("sortable"),l=no("control-info"),c=no("panel-control-popup"),u=no("control-file-import");return Yr(),oa("div",$g,[ua("div",{class:ee(["active-class",{"show-popup":e.$_state.showElementClasses},{active:r.hasActiveClass&&!i.action},{"edit-only":r.classesDisabled||!e.$_state.fullAccess}]),onClick:t[9]||(t[9]=El((function(t){return"rename"!==i.action?e.$_state.showElementClasses=!e.$_state.showElementClasses:null}),["stop"])),tabindex:"0"},[ua("input",{type:"text",ref:"className",class:ee([{placeholder:!r.activeSelector}]),size:r.hasActiveClass&&!i.action&&r.activeSelector.length?r.activeSelector.length:999,value:r.activeSelector||"#".concat(i.elementCssId),autocomplete:"off",spellcheck:"false",readonly:!e.$_state.fullAccess||"rename"!==i.action,placeholder:"#".concat(i.elementCssId),onKeyup:t[0]||(t[0]=Ml((function(e){return r.renameSelector(e.target.value)}),["enter"]))},null,42,Eg),ua("div",Ig,[Io(da(a,{class:ee(["lock",{locked:r.isLocked}]),name:r.isLocked?"locked":"unlocked","data-balloon":r.isLocked?e.i18n.locked:e.i18n.unlocked,"data-balloon-pos":"top-right",onClick:t[1]||(t[1]=El((function(e){return r.lockClassId(r.activeClassId)}),["stop"]))},null,8,["class","name","data-balloon"]),[[As,r.hasActiveClass]]),Io(da(a,{name:"clipboard",class:"clipboard","data-balloon":"".concat(e.i18n.copy," (").concat(e.i18n.elementId,")"),"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=El((function(e){return r.copyToClipboard(i.elementCssId)}),["stop"]))},null,8,["data-balloon"]),[[As,!r.activeSelector]]),e.$_state.fullAccess&&"rename"!==i.action?(Yr(),ia(a,{key:0,name:"edit",class:"rename","data-balloon":"".concat(e.i18n.rename," (").concat(r.hasActiveClass?e.i18n.cssClassName:e.i18n.elementId,")"),"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=El((function(e){return r.initRename()}),["stop"]))},null,8,["data-balloon"])):va("",!0),e.$_state.fullAccess&&"rename"===i.action?(Yr(),ia(a,{key:1,name:"save",class:"save","data-balloon":e.i18n.save,"data-balloon-pos":"left",onClick:t[4]||(t[4]=El((function(t){return r.renameSelector(e.$refs.className.value)}),["stop"]))},null,8,["data-balloon"])):va("",!0),!e.$_state.fullAccess||r.hasActiveClass||i.action?va("",!0):(Yr(),ia(a,{key:2,name:"refresh",class:"reset","data-balloon":e.i18n.resetStyles,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=El((function(e){return r.resetIdStyles()}),["stop"]))},null,8,["data-balloon"])),r.hasActiveClass&&!i.action?(Yr(),ia(a,{key:3,name:"close",class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=El((function(e){return r.clearCssClass()}),["stop"]))},null,8,["data-balloon"])):va("",!0),"rename"===i.action?(Yr(),ia(a,{key:4,name:"close",class:"clear","data-balloon":e.i18n.cancel,"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=El((function(e){return i.action=void 0}),["stop"]))},null,8,["data-balloon"])):va("",!0)]),!r.classesDisabled&&r.activeClassesCount?(Yr(),oa("span",{key:0,class:"symbol counter",textContent:de(r.activeClassesCount),"data-balloon":e.i18n.activeClasses,"data-balloon-pos":"top-right",onClick:t[8]||(t[8]=El((function(t){return e.$_controlPopupToggle()}),["stop"]))},null,8,Mg)):va("",!0)],2),!r.classesDisabled&&r.elementClassIds.length?(Yr(),ia(s,{key:0,tag:"ul",parent:r.elementClassIds,options:{direction:"vertical",itemClass:"sortable",handleClass:"sortable",updateOn:"dragover"},class:ee(["element-classes",{disabled:!e.$_state.fullAccess}])},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.elementClassIds,(function(t,n){return Io((Yr(),oa("li",{key:t,class:ee([{active:t===r.activeClassId},{sortable:e.$_state.fullAccess}]),onClick:function(n){return e.$_state.fullAccess?r.setActiveClass(t):null}},[ua("span",{class:"name","data-class-id":t,textContent:de("".concat(e.$_getGlobalClassName(t,".")))},null,8,Og),e.$_state.fullAccess?(Yr(),ia(a,{key:0,name:"close","data-balloon":e.i18n.remove,"data-balloon-pos":"top",onClick:El((function(e){return r.removeClassFromElement(t)}),["stop"])},null,8,["data-balloon","onClick"])):va("",!0)],10,Ag)),[[As,e.$_getGlobalClassName(t)]])})),128))]})),_:1},8,["parent","class"])):va("",!0),!r.classesDisabled&&e.$_state.fullAccess&&i.mounted&&e.$_state.showElementClasses?(Yr(),ia(c,{key:1,show:e.$_state.showElementClasses,onClosePopup:t[22]||(t[22]=function(t){return e.$_state.showElementClasses=!1}),ref:"popup"},{default:Kn((function(){return[ua("div",Pg,[Io(ua("input",{ref:"classInput",type:"text",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[10]||(t[10]=function(e){return i.classInput=e}),onKeyup:t[11]||(t[11]=Ml((function(e){return r.createCssClasses()}),["enter"])),placeholder:"".concat(e.i18n.classNamePlaceholder," ...")},null,40,Lg),[[ml,i.classInput]]),ua("div",Dg,[i.classInput?va("",!0):(Yr(),ia(a,{key:0,name:"export",class:"export","data-balloon":e.i18n.export,"data-balloon-pos":"bottom-right",onClick:t[12]||(t[12]=function(e){return r.exportCssClasses()})},null,8,["data-balloon"])),i.classInput?va("",!0):(Yr(),ia(a,{key:1,name:"import",class:"import","data-balloon":e.i18n.import,"data-balloon-pos":"bottom-right",onClick:t[13]||(t[13]=function(e){return r.importCssClasses()})},null,8,["data-balloon"])),i.classInput?(Yr(),ia(a,{key:2,name:"save",class:"create","data-balloon":e.i18n.create,"data-balloon-pos":"bottom-right",onClick:t[14]||(t[14]=function(e){return r.createCssClasses()})},null,8,["data-balloon"])):va("",!0)])]),o.globalClasses.length?(Yr(),oa("div",Ng,[r.hasActiveClass?(Yr(),oa("h6",jg,[ua("span",{textContent:de(e.i18n.elementId)},null,8,Vg)])):va("",!0),r.hasActiveClass?(Yr(),oa("ul",Fg,[ua("li",{class:"skip",onClick:t[18]||(t[18]=function(e){return r.setActiveClass("")})},[ua("span",{class:"name",textContent:de("#".concat(i.elementCssId))},null,8,Rg),ua("div",qg,[da(a,{name:"clipboard","data-balloon":e.i18n.copyStyles,"data-balloon-pos":"top-right",onClick:t[15]||(t[15]=El((function(e){return r.copySettings("#root")}),["stop"]))},null,8,["data-balloon"]),da(a,{name:"import","data-balloon":e.i18n.pasteStyles,"data-balloon-pos":"top-right",onClick:t[16]||(t[16]=El((function(e){return r.pasteSettings("#root")}),["stop"]))},null,8,["data-balloon"]),da(a,{name:"refresh","data-balloon":e.i18n.resetStyles,"data-balloon-pos":"top-right",onClick:t[17]||(t[17]=El((function(e){return r.resetIdStyles()}),["stop"]))},null,8,["data-balloon"])])])])):va("",!0),r.elementClassIds.length?(Yr(),oa("h6",Bg,[ua("span",{innerHTML:e.i18n.elementClasses},null,8,zg)])):va("",!0),r.elementClassIds.length?(Yr(),oa("ul",Hg,[(Yr(!0),oa(Wr,null,gi(r.elementClassIds,(function(n,o){return Io((Yr(),oa("li",{key:n,class:ee([{locked:e.$_isLocked(n)}]),onClick:function(e){return r.setActiveClass(n)},onMouseleave:t[20]||(t[20]=function(e){return i.deleteId=!1})},[ua("span",{class:"name",textContent:de(e.$_getGlobalClassName(n,"."))},null,8,Ug),ua("div",Kg,[da(a,{name:"close","data-balloon":e.i18n.remove,"data-balloon-pos":"top-right",onClick:El((function(e){return r.removeClassFromElement(n)}),["stop"])},null,8,["data-balloon","onClick"]),da(a,{class:"lock",name:e.$_isLocked(n)?"locked":"unlocked","data-balloon":e.$_isLocked(n)?e.i18n.locked:e.i18n.unlocked,"data-balloon-pos":"top-right",onClick:El((function(e){return r.lockClassId(n)}),["stop"])},null,8,["name","data-balloon","onClick"]),da(a,{name:"clipboard","data-balloon":e.i18n.copyStyles,"data-balloon-pos":"top-right",onClick:El((function(e){return r.copySettings(n)}),["stop"])},null,8,["data-balloon","onClick"]),e.$_isLocked(n)?va("",!0):(Yr(),ia(a,{key:0,name:"import","data-balloon":e.i18n.pasteStyles,"data-balloon-pos":"top-right",onClick:El((function(e){return r.pasteSettings(n)}),["stop"])},null,8,["data-balloon","onClick"])),e.$_isLocked(n)?va("",!0):(Yr(),ia(a,{key:1,name:"refresh","data-balloon":e.i18n.resetStyles,"data-balloon-pos":"top-right",onClick:El((function(e){return r.resetClassStyles(n)}),["stop"])},null,8,["data-balloon","onClick"])),e.$_isLocked(n)||i.deleteId===n?va("",!0):(Yr(),ia(a,{key:2,name:"trash",class:"delete","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:El((function(e){return i.deleteId=n}),["stop"])},null,8,["data-balloon","onClick"])),i.deleteId===n?(Yr(),ia(a,{key:3,class:"confirm",name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:t[19]||(t[19]=El((function(e){return r.deleteGlobalClass(i.deleteId)}),["stop"]))},null,8,["data-balloon"])):va("",!0)])],42,Wg)),[[As,e.$_getGlobalClassName(n)]])})),128))])):va("",!0),r.otherClasses.length?(Yr(),oa("h6",Gg,[ua("span",{textContent:de("".concat(e.i18n.otherClasses," (").concat(r.otherClasses.length,")"))},null,8,Zg)])):va("",!0),r.otherClasses.length?(Yr(),oa("ul",Jg,[(Yr(!0),oa(Wr,null,gi(r.otherClasses,(function(n){return Yr(),oa("li",{key:n.id,class:ee([{locked:n._locked}]),onClick:function(e){return r.addClassToElement(n.id)},onMouseenter:function(e){return i.showActions=n.id}},[ua("span",Qg,"."+de(n.name),1),i.showActions===n.id?(Yr(),oa("div",Xg,[da(a,{class:"lock",name:n._locked?"locked":"unlocked","data-balloon":n._locked?e.i18n.locked:e.i18n.unlocked,"data-balloon-pos":"top-right",onClick:El((function(e){return r.lockClassId(n.id)}),["stop"])},null,8,["name","data-balloon","onClick"]),da(a,{name:"clipboard","data-balloon":e.i18n.copyStyles,"data-balloon-pos":"top-right",onClick:El((function(e){return r.copySettings(n.id)}),["stop"])},null,8,["data-balloon","onClick"]),n._locked||i.deleteId?i.deleteId===n.id?(Yr(),ia(a,{key:1,name:"check",class:"confirm","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:t[21]||(t[21]=El((function(e){return r.deleteGlobalClass(i.deleteId)}),["stop"]))},null,8,["data-balloon"])):va("",!0):(Yr(),ia(a,{key:0,name:"trash",class:"delete","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:El((function(e){return i.deleteId=n.id}),["stop"])},null,8,["data-balloon","onClick"]))])):va("",!0)],42,Yg)})),128))])):va("",!0)])):(Yr(),ia(l,{key:0,control:{content:e.i18n.globalClassesEmptyDescription}},null,8,["control"]))]})),_:1},8,["show"])):va("",!0),"import"===i.action?(Yr(),ia(u,{key:2,control:{fileType:"application/json",dragAndDropNote:e.i18n.importJsonDragAndDrop},results:i.importResults,onImported:r.classesImported,onCloseMe:t[23]||(t[23]=function(e){return i.action=""})},null,8,["control","results","onImported"])):va("",!0)])}]]),iv=["data-balloon","placeholder"];var rv={watch:{"$_state.showControlSearch":{handler:function(e){var t=this;setTimeout((function(){e?t.$refs.searchInput&&t.$refs.searchInput.focus():t.$_state.searchControls=""}),10)}}}};var av=(0,tm.Z)(rv,[["render",function(e,t,n,o,i,r){var a=no("icon");return e.$_state.showControlSearch&&"theme-styles"!==e.$_state.activePanel?(Yr(),oa("div",{key:0,id:"bricks-panel-controls-search",class:ee({active:e.$_state.searchControls})},[Io(ua("input",{ref:"searchInput",type:"search",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.$_state.searchControls=t}),"data-balloon":e.$_state.searchControls?e.i18n.searchSettings:"","data-balloon-pos":"top-left",placeholder:"".concat(e.i18n.searchSettings," ...")},null,8,iv),[[ml,e.$_state.searchControls]]),Io(da(a,{name:"close",class:"clear",onClick:t[1]||(t[1]=function(t){return e.$_state.searchControls=""})},null,512),[[As,e.$_state.searchControls]])],2)):va("",!0)}]]),sv={setup:function(){return{fullAccess:sn(Vf,"fullAccess"),activeId:sn(Vf,"activeId"),activePanelTab:sn(Vf,"activePanelTab"),pseudoClassActive:sn(Vf,"pseudoClassActive"),searchControls:sn(Vf,"searchControls")}},components:{PanelElementClasses:ov,PanelControlsSearch:av},data:function(){return{updateCustomCss:!0}},computed:{showTabs:function(){return!this.$_isNavMenuInsideDropdown(this.element)},activeClassId:function(){var e;return null===(e=this.$_activeClass.value)||void 0===e?void 0:e.id},activeElement:function(){return this.$_activeElement.value},globalElement:function(){return this.$_getGlobalElement(this.activeElement)},element:function(){return this.globalElement||this.activeElement},elementKey:function(){var e;return null===(e=this.element)||void 0===e?void 0:e.name},settings:function(){var e,t;return null!==(e=this.element)&&void 0!==e&&e.settings&&!Array.isArray(null===(t=this.element)||void 0===t?void 0:t.settings)?this.element.settings:{}},hasInteractions:function(){var e,t;return!(null===(e=this.$_activeClass.value)||void 0===e||null===(e=e.settings)||void 0===e||!e._interactions)||(null===(t=this.settings)||void 0===t?void 0:t._interactions)},showControls:function(){return!this.$_state.showConditions&&!this.$_state.showInteractions}},methods:{onInputLabel:function(e){this.$_stopPostMessages();var t=e.target.value;t?this.element.label=t:delete this.element.label}},watch:{activeId:function(){this.activeId?this.$_convertEmptySettings(this.element):this.$_showPanel(),this.activePanelTab=["content","style"].includes(this.activePanelTab)?this.activePanelTab:"content"},activeClassId:function(){if(this.activeClassId){var e=this.$_activeClass.value;null!=e&&e.settings&&!Array.isArray(null==e?void 0:e.settings)||(e.settings={})}},"$_state.showConditions":{handler:function(e){e&&(this.$_state.showInteractions=!1)}},"$_state.showInteractions":{handler:function(e){e&&(this.$_state.showConditions=!1)}},"$_state.showControlSearch":{handler:function(){this.$_state.showConditions=!1,this.$_state.showInteractions=!1}},"$_state.activeId":function(){var e=this;this.updateCustomCss=!1,setTimeout((function(){e.updateCustomCss=!0}),100)},"element.settings._cssId":function(e,t){var n;if(this.updateCustomCss){var o,i,r=!(!this.settings||null==this||null===(n=this.settings)||void 0===n||!n._cssCustom)&&this.$_clone(this.settings._cssCustom);if(r)!e&&t?(o="#".concat(t),i="#brxe-".concat(this.element.id)):e&&t?(o="#".concat(t),i="#".concat(e)):(r=r.replaceAll("#brxe-".concat(this.element.id),"#".concat(e)),o="#brxe-".concat(this.element.id),i="#".concat(e)),this.$_activeClass.value&&(i=".".concat(this.$_activeClass.value.name)),r=r.replaceAll(o,i),this.settings._cssCustom=r}},showTabs:function(e){e||(this.$_state.activePanelTab="content")}}};var lv=(0,tm.Z)(sv,[["render",function(e,t,n,o,i,r){var a,s=no("pseudo-classes"),l=no("icon"),c=no("panel-controls-search"),u=no("panel-element-classes"),d=no("panel-controls"),f=no("control-conditions"),p=no("control-interactions");return Yr(),oa("div",{id:"bricks-panel-element",class:ee([{conditions:e.$_state.showConditions},{interactions:e.$_state.showInteractions}])},[r.showControls?(Yr(),ia(s,{key:0})):va("",!0),ua("div",pg,[ua("input",{class:"title",type:"text",autocomplete:"off",spellcheck:"false",value:e.$_getElementLabel(r.element),onInput:t[0]||(t[0]=function(e){return r.onInputLabel(e)})},null,40,hg),ua("ul",mg,[e.$_state.fullAccess?(Yr(),oa("li",{key:0,class:ee({conditions:!0,active:e.$_state.showConditions,highlight:null===(a=r.settings)||void 0===a?void 0:a._conditions}),"data-balloon":e.i18n.conditions,"data-balloon-pos":"bottom-right"},[da(l,{name:"conditions",onClick:t[1]||(t[1]=function(t){return e.$_state.showConditions=!e.$_state.showConditions})})],10,gg)):va("",!0),e.$_state.fullAccess?(Yr(),oa("li",{key:1,class:ee({interactions:!0,active:e.$_state.showInteractions,highlight:r.hasInteractions}),"data-balloon":e.i18n.interactions,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(t){return e.$_state.showInteractions=!e.$_state.showInteractions})},[da(l,{name:"interactions"})],10,vg)):va("",!0),ua("li",{class:ee({active:e.$_state.showControlSearch,highlight:e.$_state.searchControls}),"data-balloon":e.i18n.searchSettings,"data-balloon-pos":"bottom-right"},[da(l,{name:"search",onClick:t[3]||(t[3]=function(t){return e.$_state.showControlSearch=!e.$_state.showControlSearch})})],10,bg),r.globalElement?(Yr(),oa("li",{key:2,"data-balloon":e.i18n.globalElement,"data-balloon-pos":"bottom-right"},[ua("a",{href:e.bricks.academy.globalElement,target:"_blank",rel:"noopener"},[da(l,{name:"globe",class:"global-element"})],8,wg)],8,yg)):va("",!0),r.globalElement?(Yr(),oa("li",{key:3,"data-balloon":"".concat(e.i18n.unlink," (").concat(e.i18n.globalElement,")"),"data-balloon-pos":"bottom-right",onClick:t[4]||(t[4]=function(t){return e.$_unlinkGlobalElement()})},[da(l,{name:"unlinked",class:"unlink"})],8,kg)):va("",!0)])]),r.showControls?(Yr(),oa("div",xg,[da(c),(Yr(),ia(u,{element:r.element,settings:r.settings,key:r.elementKey},null,8,["element","settings"])),r.showTabs&&o.fullAccess&&!o.searchControls&&["content","style"].includes(o.activePanelTab)?(Yr(),oa("ul",Cg,[(Yr(),oa(Wr,null,gi(["content","style"],(function(t,n){return ua("li",{key:n,class:ee({active:t===o.activePanelTab}),onClick:function(e){return o.activePanelTab=t}},["style"===t&&e.$_breakpointHasStyles(e.$_state.breakpointActive,!0)?(Yr(),oa("span",Sg)):va("",!0),ua("span",{class:"label",textContent:de(e.i18n[t])},null,8,Tg)],10,_g)})),64))])):va("",!0)])):va("",!0),r.showControls?(Yr(),ia(d,{type:"element",key:r.elementKey,block:r.element,settings:r.settings},null,8,["block","settings"])):e.$_state.fullAccess&&e.$_state.showConditions?(Yr(),ia(f,{key:3})):e.$_state.fullAccess&&e.$_state.showInteractions?(Yr(),ia(p,{key:4})):va("",!0)],2)}]]),cv={id:"bricks-panel-elements"},uv=["placeholder"],dv={id:"bricks-panel-elements-categories"},fv=["onClick"],pv={class:"wrap"},hv=["textContent"],mv=["href","data-balloon"],gv={class:"sortable-wrapper"},vv=["draggable","onDragstart","onDragend","data-element-name","data-element-global"],bv=["onClick"],yv=["title","innerHTML","onClick"],wv=["data-balloon"],kv=["data-balloon"],xv=["data-balloon","onClick"],Cv=["data-balloon","onClick"],_v=["data-balloon","onClick"],Sv=["data-balloon","onClick"],Tv={class:"no-results"},$v=["textContent"],Ev=["href","textContent"];function Iv(e){return Iv="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},Iv(e)}function Mv(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 Av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mv(Object(n),!0).forEach((function(t){Ov(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ov(e,t,n){var o;return o=function(e,t){if("object"!=Iv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Iv(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Iv(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pv={setup:function(){return{categoryNameGlobalElements:"globalElements",categoryNamePinnedElements:"pinnedElements",categoryNameSearchedElement:"searchedElements"}},data:function(){return{searchFor:"",hideCategories:[],animate:""}},computed:{elements:function(){var e,t=this,n=this.searchFor.toLowerCase(),o=this.$_clone(this.bricks.elements),i=this.$_clone(this.$_state.pinnedElements),r=[],a=!(null===(e=o)||void 0===e||!e.section)&&this.$_clone(o.section);a&&!i.includes("section")&&(delete o.section,o=Av({sectionElement:a},o));var s=function(e){var n=t.$_getElementConfig(e.name),o=null!=e&&e.label?[e.label]:[];return null!=n&&n.keywords&&(o=o.concat(n.keywords)),o.join(" ").toLowerCase()};Object.keys(o).forEach((function(e){var a=o[e],l=s(a);if(n.length&&a.category?a.category=t.categoryNameSearchedElement:i.includes(e)&&(a.category=t.categoryNamePinnedElements),!a.deprecated&&(!n.length||a.category&&l.includes(n)))if(Array.isArray(null==a?void 0:a.panelCondition)&&3===a.panelCondition.length){var c,u=a.panelCondition[0],d=a.panelCondition[1],f=a.panelCondition[2],p=null===(c=t.$_state)||void 0===c?void 0:c[u];"="===d&&(Array.isArray(f)&&f.includes(p)||p===f)&&r.push(a)}else r.push(a)}));var l=this.$_clone(this.$_state.globalElements);return l.length&&l.forEach((function(e){var o=s(e);n.length&&!o.includes(n)||(e.category=t.categoryNameGlobalElements,r.push(e)),i.includes(e.global)&&(e.category=t.categoryNamePinnedElements)})),r},categories:function(){var e={},t=this.$_clone(this.$_state.pinnedElements);if(this.$_clone(this.elements).forEach((function(t){t.category&&(e.hasOwnProperty(t.category)||(e[t.category]=[]),e[t.category].push(t))})),this.searchFor)return e;var n=this.bricks.elementsCatFirst?this.bricks.elementsCatFirst:void 0;if(n&&e.hasOwnProperty(n)){var o=this.$_clone(e);delete o.firstCategory,e=Av(Ov({},n,e[n]),o)}if(t.length&&e.hasOwnProperty(this.categoryNamePinnedElements)){var i=this.$_clone(e);delete i[this.categoryNamePinnedElements],e=Av(Ov({},this.categoryNamePinnedElements,e[this.categoryNamePinnedElements]),i)}return e}},methods:{addNewElement:function(e,t){this.$_isRightClick(t)||this.$_addNewElement(e,t)},searchForPaste:function(e){e.preventDefault(),this.$_pasteElements()},dragstart:function(e,t){if(this.$_state.fullAccess){var n=e.target.cloneNode(!0);n.style.width="".concat(e.target.clientWidth,"px"),n.style.height="".concat(e.target.clientHeight,"px"),n.classList.add("ghost"),n.classList.add(this.bricks.mode),document.body.appendChild(n),e.dataTransfer.setDragImage(n,0,0),n.style.position="fixed",n.style.top="-1000%",e.dataTransfer.setData("elementName",t.name);var o=this.$_clone(t),i={id:this.$_getGlobalElement(o.id)?o.id:this.$_generateId(),name:o.name,settings:{}};o.hasOwnProperty("template")&&(i.template=o.template),t.hasOwnProperty("global")&&(i.global=t.global);var r=o.controls;for(var a in r)r[a].hasOwnProperty("default")&&(i.settings[a]=r[a].default);this.$_state.draggingElement=i}},dragend:function(){this.$_state.draggingElement=!1},toggleCategory:function(e,t){if(!t.target.closest(".badge")){var n=this.hideCategories.indexOf(e);-1===n?this.hideCategories.push(e):this.hideCategories.splice(n,1)}},categoryClasses:function(e){return["category","category-".concat(e),{first:"post"===e&&"post"===this.bricks.postType}]},categoryText:function(e){if(!this.$_state.templateType||"single"!==e)return this.i18n.hasOwnProperty(e)?this.i18n[e]:e;switch(this.$_state.templateType){case"archive":case"author":case"error":case"search":return this.i18n[this.$_state.templateType];default:return this.i18n[e]}},deleteGlobalElement:function(e){var t=this;this.$_http({data:{action:"bricks_save_global_element",index:e},success:function(e){t.$_state.globalElements=e.data}})},pinToggle:function(e){var t=this;this.searchFor="";var n=(null==e?void 0:e.global)||(null==e?void 0:e.name);if(n){var o=this.$_state.pinnedElements.indexOf(n);-1===o?this.$_state.pinnedElements.push(n):this.$_state.pinnedElements.splice(o,1),this.animate=n,setTimeout((function(){t.animate=""}),3e3);var i=document.getElementById("bricks-panel-inner");i&&i.scroll({top:0,behavior:"smooth"})}}},mounted:function(){var e=this;this.searchFor="",this.$refs.searchInput.focus(),window.addEventListener("keydown",(function(t){if("Enter"===t.key){var n=t.target.dataset.elementName;if(n){t.preventDefault();var o={name:n},i=t.target.dataset.elementGlobal;if(i){o.global=i;var r=e.$_getGlobalElement(i);r&&r.hasOwnProperty("settings")&&(o.settings=e.$_clone(r.settings))}e.addNewElement({element:o,index:e.$_dynamicElements.value.length,parent:0},t)}}}))},watch:{"$_state.activePanel":function(e){var t=this;this.$nextTick((function(){"elements"===e&&(t.searchFor="",t.$refs.searchInput.focus())}))},searchFor:function(){this.searchFor&&(this.hideCategories=[])}}};var Lv=(0,tm.Z)(Pv,[["render",function(e,t,n,o,i,r){var a=this,s=no("icon");return Yr(),oa("div",cv,[ua("div",{id:"bricks-panel-header",class:ee({searching:i.searchFor})},[Io(ua("input",{id:"bricks-panel-search",ref:"searchInput",type:"search",autocomplete:"off",spellcheck:"false",placeholder:e.i18n.searchElements,onPaste:t[0]||(t[0]=function(e){return r.searchForPaste(e)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return i.searchFor=e})},null,40,uv),[[ml,i.searchFor]]),i.searchFor?(Yr(),ia(s,{key:"close",name:"close",class:"close",onClick:t[3]||(t[3]=function(e){return i.searchFor=""})})):(Yr(),ia(s,{key:"search",name:"search",class:"search",onClick:t[2]||(t[2]=function(t){return e.$refs.searchInput.focus()})}))],2),ua("ul",dv,[(Yr(!0),oa(Wr,null,gi(r.categories,(function(n,l){return Yr(),oa("li",{class:ee(r.categoryClasses(l)),key:l},[l!==o.categoryNameSearchedElement||l===o.categoryNameGlobalElements?(Yr(),oa("div",{key:0,class:ee(["category-title",{expand:!i.hideCategories.includes(l)}]),onClick:function(e){return r.toggleCategory(l,e)}},[ua("div",pv,[ua("span",{textContent:de(r.categoryText(l))},null,8,hv),"layout"===l?(Yr(),oa("a",{key:0,class:"badge",target:"_blank",href:e.bricks.academy.layout,"data-balloon":e.i18n.learnMore,"data-balloon-pos":"top"},[da(s,{name:"info"})],8,mv)):va("",!0)]),da(s,{name:i.hideCategories.includes(l)?"arrow-right":"arrow-down"},null,8,["name"])],10,fv)):va("",!0),Io(ua("ul",gv,[(Yr(!0),oa(Wr,null,gi(n,(function(n,c){var u;return Yr(),oa("li",{key:"".concat(n.name,"-").concat(c),tabindex:"0",class:ee([{"bricks-draggable-item":e.$_state.fullAccess&&!a.$_state.draggingElement},"bricks-add-element",{animate:i.animate===n.name}]),draggable:e.$_state.fullAccess,onDragstart:function(e){return r.dragstart(e,n)},onDragend:function(e){return r.dragend(e,n)},"data-element-name":n.name,"data-element-global":n.global},[ua("div",{class:"handle element-icon",onClick:function(e){return r.addNewElement({element:n},e)}},[ua("i",{class:ee(null===(u=e.$_getElementConfig(n.name))||void 0===u?void 0:u.icon)},null,2)],8,bv),ua("div",{class:"handle element-label",title:n.label,innerHTML:n.label,onClick:function(e){return r.addNewElement({element:n},e)}},null,8,yv),null!=n&&n.global&&l===o.categoryNamePinnedElements?(Yr(),oa("span",{key:0,class:"bricks-panel-actions-icon global-pinned","data-balloon":e.i18n.globalElement,"data-balloon-pos":"top-left"},[da(s,{name:"globe"})],8,wv)):va("",!0),null!=n&&n.global||"container"!==n.name?va("",!0):(Yr(),oa("span",{key:1,class:"bricks-panel-actions-icon layout-inserter",onClick:t[4]||(t[4]=El((function(t){return e.$_state.showContainerLayouts=!e.$_state.showContainerLayouts}),["stop"])),"data-balloon":e.i18n.layout,"data-balloon-pos":"top-left"},[da(s,{name:"columns"})],8,kv)),e.$_state.fullAccess&&!e.$_state.pinnedElements.includes((null==n?void 0:n.global)||(null==n?void 0:n.name))?(Yr(),oa("span",{key:2,class:"bricks-panel-actions-icon","data-balloon":e.i18n.pin,"data-balloon-pos":"top-right",onClick:El((function(e){return r.pinToggle(n)}),["stop"])},[da(s,{name:"pin"})],8,xv)):va("",!0),e.$_state.fullAccess&&e.$_state.pinnedElements.includes((null==n?void 0:n.global)||(null==n?void 0:n.name))?(Yr(),oa("span",{key:3,class:"bricks-panel-actions-icon","data-balloon":e.i18n.unpin,"data-balloon-pos":"top-right",onClick:El((function(e){return r.pinToggle(n)}),["stop"])},[da(s,{name:"pin"})],8,Cv)):va("",!0),(l===o.categoryNameGlobalElements&&e.$_state.deleteItem!==(null==n?void 0:n.global)?n.global:n.id)?(Yr(),oa("span",{key:4,class:"bricks-panel-actions-icon delete","data-balloon":e.i18n.delete,"data-balloon-pos":"top",onClick:El((function(t){return e.$_deleteConfirmation(null!=n&&n.global?n.global:n.id)}),["stop"])},[da(s,{name:"trash"})],8,_v)):va("",!0),(l===o.categoryNameGlobalElements&&e.$_state.deleteItem===(null==n?void 0:n.global)?n.global:n.id)?(Yr(),oa("span",{key:5,class:"bricks-panel-actions-icon confirm","data-balloon":e.i18n.sure,"data-balloon-pos":"top",onClick:El((function(e){return r.deleteGlobalElement(c)}),["stop"])},[da(s,{name:"check"})],8,Sv)):va("",!0)],42,vv)})),128))],512),[[As,l===o.categoryNameSearchedElement||!i.hideCategories.includes(l)]])],2)})),128))]),Io(ua("div",Tv,[da(s,{name:"no-results"}),ua("p",{textContent:de(e.i18n.nothingFound)},null,8,$v),ua("a",{href:e.bricks.academy.createElement,target:"_blank",class:"button",textContent:de(e.i18n.createYourOwnElements)},null,8,Ev)],512),[[As,i.searchFor.length&&!r.elements.length]])])}]]),Dv={id:"bricks-panel-pages"},Nv={id:"bricks-panel-header"},jv=["innerHTML"],Vv={class:"actions"},Fv=["data-balloon"],Rv={class:"panel-content"},qv=["data-balloon"],Bv=["placeholder"],zv=["placeholder"],Hv={class:"button-group"},Wv=["textContent"],Uv=["textContent"],Kv=ua("hr",null,null,-1),Gv={key:0,class:"results"},Zv=["href","title"],Jv=["textContent"],Yv=["innerHTML"],Qv={class:"actions"},Xv=["onClick","data-balloon"],eb={key:1,class:"no-results"},tb=["textContent"];var nb={data:function(){return{action:void 0,newPage:!1,newPageId:void 0,newPageTitle:void 0,searchValue:void 0,currentPostType:"bricks_template"===this.bricks.postType?"page":this.bricks.postType,postsQueryResults:[],postTypesControl:{options:this.bricks.postTypesSupported,clearable:!1,default:this.bricks.postType}}},computed:{currentResults:function(){var e=this;return this.searchValue?this.postsQueryResults.filter((function(t){return-1!==t.title.toLowerCase().indexOf(e.searchValue.toLowerCase())})):this.postsQueryResults}},methods:{getPages:function(e){var t=this;this.$_http({method:"GET",data:{action:"bricks_get_pages",postType:e,imageSize:"medium",addLanguageToPostTitle:!0},success:function(e){t.postsQueryResults=e.data,t.$nextTick((function(){t.$refs.search&&t.$refs.search.focus()}))}})},toggleCreateNew:function(){"create"===this.action?(this.action=void 0,this.newPageTitle=void 0):this.action="create"},cancel:function(){this.action=void 0,this.newPageTitle=void 0},createNew:function(){var e=this;this.newPageTitle&&this.$_http({type:"POST",data:{action:"bricks_create_new_page",title:this.newPageTitle,postType:this.currentPostType},success:function(t){e.newPageId=t.data,e.newPageTitle=void 0,e.getPages(e.currentPostType)}})},duplicatePostPage:function(e){var t=this;this.$_http({type:"POST",data:{action:"bricks_duplicate_post_page",postId:e},success:function(e){e.success?(t.$_showMessage("".concat(t.i18n.duplicate,": ").concat(t.i18n.created)),t.newPageId=e.data,t.newPageTitle=void 0,t.getPages(t.currentPostType)):console.log("Error: ".concat(e.data))}})}},mounted:function(){this.getPages(this.currentPostType)},watch:{currentPostType:function(e,t){e!==t&&(this.searchValue=void 0,this.newPageTitle=void 0,this.getPages(this.currentPostType))},action:function(){var e=this;this.searchValue=void 0,this.newPageTitle=void 0,this.$nextTick((function(){"create"===e.action?e.$refs.create.focus():e.$refs.search.focus()}))}}};const ob=(0,tm.Z)(nb,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-select");return Yr(),oa("div",Dv,[ua("div",Nv,[ua("div",{class:"title",innerHTML:e.i18n.pages},null,8,jv),ua("ul",Vv,[ua("li",{class:ee(["create",{active:"create"===i.action}]),"data-balloon":e.i18n.create,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(){return r.toggleCreateNew&&r.toggleCreateNew.apply(r,arguments)})},[da(a,{name:"add"})],10,Fv)])]),ua("main",Rv,[Io(ua("div",{"data-balloon":e.i18n.selectPostType,"data-balloon-pos":"top"},[Object.keys(i.postTypesControl).length>1?(Yr(),ia(s,{key:0,value:i.currentPostType,"onUpdate:value":t[1]||(t[1]=function(e){return i.currentPostType=e}),control:i.postTypesControl},null,8,["value","control"])):va("",!0)],8,qv),[[As,"create"!==i.action]]),Io(ua("input",{type:"search",ref:"search",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[2]||(t[2]=function(e){return i.searchValue=e}),placeholder:e.i18n.searchByTitle},null,8,Bv),[[As,"create"!==i.action],[ml,i.searchValue]]),Io(ua("input",{type:"text",ref:"create",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[3]||(t[3]=function(e){return i.newPageTitle=e}),onKeyup:t[4]||(t[4]=Ml((function(e){return r.createNew()}),["enter"])),placeholder:e.i18n.placeholderTitle},null,40,zv),[[As,"create"===i.action],[ml,i.newPageTitle]]),Io(ua("div",Hv,[ua("button",{class:ee([{active:i.newPageTitle}]),onClick:t[5]||(t[5]=function(e){return r.createNew()}),textContent:de("".concat(e.i18n.create," ").concat(i.currentPostType))},null,10,Wv),ua("button",{class:"cancel",onClick:t[6]||(t[6]=function(e){return r.cancel()}),textContent:de(e.i18n.cancel)},null,8,Uv)],512),[[As,"create"===i.action]]),Kv,r.currentResults.length?(Yr(),oa("ul",Gv,[(Yr(!0),oa(Wr,null,gi(r.currentResults,(function(t,n){return Yr(),oa("li",{key:n,class:ee([{active:e.bricks.postId==t.id}])},[ua("a",{href:t.editUrl,title:"/".concat(t.slug)},[e.bricks.postId==t.id?(Yr(),oa("span",{key:0,class:"editing",textContent:de(e.i18n.editing)},null,8,Jv)):va("",!0),ua("div",{class:"title",innerHTML:t.title},null,8,Yv)],8,Zv),ua("ul",Qv,[ua("li",{class:"action",onClick:El((function(e){return r.duplicatePostPage(t.id)}),["stop"]),"data-balloon":e.i18n.duplicate,"data-balloon-pos":"top-right"},[da(a,{name:"clone"})],8,Xv)])],2)})),128))])):(Yr(),oa("div",eb,[da(a,{name:"no-results"}),ua("p",{textContent:de(e.i18n.nothingFound)},null,8,tb)]))])])}]]);var ib=ob,rb={id:"bricks-panel-history",class:"history"},ab={id:"bricks-panel-header"},sb=["innerHTML"],lb={key:0,class:"actions"},cb=["data-balloon"],ub={id:"bricks-panel-sticky"},db={id:"bricks-panel-tabs"},fb=["onClick","innerHTML"],pb={class:"panel-content"},hb={key:0,class:"results"},mb=["onClick"],gb=["textContent"],vb=["textContent"];var bb={setup:function(){return{history:sn(Vf,"history"),historyIndex:sn(Vf,"historyIndex")}},methods:{goto:function(e){for(var t=this,n=Math.abs(e-this.historyIndex),o={},i=function(){if(e<t.historyIndex){var n=t.history[t.historyIndex];n&&(t.$_state.historyIndex--,Object.keys(n).forEach((function(e){t.$_state.hasOwnProperty(e)&&(o[e]=(0,dh.patch)(o[e]||t.$_state[e],n[e]))})))}else{var i=t.history[t.historyIndex+1];i&&(t.$_state.historyIndex++,Object.keys(i).forEach((function(e){t.$_state.hasOwnProperty(e)&&(o[e]=(0,dh.unpatch)(o[e]||t.$_state[e],i[e]))})))}},r=0;r<n;r++)i();Object.keys(o).forEach((function(e){t.$_state.historyInProgress=Date.now(),t.$_state.hasOwnProperty(e)&&(t.$_state[e]=o[e])})),this.$nextTick((function(){return t.$_state.historyInProgress=!1}))},deleteHistory:function(){this.history.length>1&&(this.$_state.historyIndex=0,this.$_state.history=[],this.$_showMessage(this.i18n.historyDeleted))}}};var yb=(0,tm.Z)(bb,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",rb,[ua("div",ab,[ua("div",{class:"title",innerHTML:"".concat(e.i18n.history," (").concat(o.history.length,")")},null,8,sb),e.$_state.fullAccess&&o.history.length>1?(Yr(),oa("ul",lb,[ua("li",{"data-balloon":e.i18n.delete,"data-balloon-pos":"bottom-right"},["deleteHistory"===e.$_state.deleteItem?(Yr(),ia(a,{key:"check",name:"check",onClick:t[0]||(t[0]=El((function(e){return r.deleteHistory()}),["stop"]))})):(Yr(),ia(a,{key:"trash",name:"trash",onClick:t[1]||(t[1]=El((function(t){return e.$_deleteConfirmation("deleteHistory")}),["stop"]))}))],8,cb)])):va("",!0)]),ua("div",ub,[ua("ul",db,[(Yr(),oa(Wr,null,gi(["history","revisions"],(function(t,n){return ua("li",{key:n,class:ee({active:t===e.$_state.activePanel}),onClick:function(n){return e.$_showPanel({panel:t})},innerHTML:e.i18n[t]},null,10,fb)})),64))])]),ua("main",pb,[o.history.length?(Yr(),oa("ul",hb,[(Yr(!0),oa(Wr,null,gi(o.history,(function(t,n){return Yr(),oa("li",{key:n,class:ee(["snapshot","history-index-".concat(n),{active:n===o.historyIndex}]),onClick:function(e){return r.goto(n)}},[ua("span",{class:"snapshot-label",textContent:de(e.i18n[t._label]||t._label)},null,8,gb),t._action?(Yr(),oa("span",{key:0,class:"snapshot-action",textContent:de(e.i18n[t._action])},null,8,vb)):va("",!0)],10,mb)})),128))])):va("",!0)])])}]]),wb={id:"bricks-panel-history",class:"revisions"},kb={id:"bricks-panel-header"},xb=["innerHTML"],Cb={key:0,class:"actions"},_b=["data-balloon"],Sb={id:"bricks-panel-sticky"},Tb={id:"bricks-panel-tabs"},$b=["onClick","innerHTML"],Eb={class:"panel-content"},Ib={class:"button-group"},Mb=["textContent","disabled"],Ab=["disabled","textContent"],Ob={key:0,class:"results"},Pb=["onClick"],Lb=["src","alt"],Db={class:"data"},Nb=["textContent","data-balloon"],jb=["innerHTML"],Vb={key:0,class:"action"},Fb={key:1,class:"no-results"},Rb=["textContent"];var qb={setup:function(){return{revisions:sn(Vf,"revisions"),revisionId:sn(Vf,"revisionId"),currentRevisionId:sn(Vf,"currentRevisionId"),revisionData:sn(Vf,"revisionData")}},methods:{discardRevision:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.revisionId&&e&&this.$_showMessage(this.i18n.revisionDiscarded),this.revisionData=null,this.revisionId=null},deleteRevisions:function(){var e=this;this.discardRevision(),this.$nextTick((function(){e.$_http({data:{action:"bricks_delete_all_revisions_of_post_id",postId:e.bricks.postId},success:function(t){e.revisionId="",e.revisions=Array.isArray(t.data.revisions)?t.data.revisions:[],t.data.revisions.length||e.$_showMessage(e.i18n.revisionsDeleted)}})}))},getRevisionTitle:function(e){var t;return t="autosave"===e.type?this.i18n.autosaveBy:e.id===this.currentRevisionId?this.i18n.currentVersionBy:this.i18n.revisionBy,t+=" "+e.author},deleteRevision:function(e){var t=this;this.$_http({data:{action:"bricks_delete_revision",revisionId:e},success:function(e){t.$_state.revisionId="",t.$_state.revisions=e.data}}),this.$_showMessage("".concat(this.i18n.revisionDeleted," (").concat(e,")"))}},mounted:function(){this.$_getRevisions()}};const Bb=(0,tm.Z)(qb,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-info");return Yr(),oa("div",wb,[ua("div",kb,[ua("div",{class:"title",innerHTML:"".concat(e.i18n.revisions," (").concat(o.revisions.length,")")},null,8,xb),e.$_state.fullAccess&&o.revisions.length?(Yr(),oa("ul",Cb,[ua("li",{"data-balloon":e.i18n.delete,"data-balloon-pos":"bottom-right"},["deleteAllRevisions"===e.$_state.deleteItem?(Yr(),ia(a,{key:"check",name:"check",onClick:t[0]||(t[0]=El((function(e){return r.deleteRevisions()}),["stop"]))})):(Yr(),ia(a,{key:"trash",name:"trash",onClick:t[1]||(t[1]=El((function(t){return e.$_deleteConfirmation("deleteAllRevisions")}),["stop"]))}))],8,_b)])):va("",!0)]),ua("div",Sb,[ua("ul",Tb,[(Yr(),oa(Wr,null,gi(["history","revisions"],(function(t,n){return ua("li",{key:n,class:ee({active:t===e.$_state.activePanel}),onClick:function(n){return e.$_showPanel({panel:t})},innerHTML:e.i18n[t]},null,10,$b)})),64))])]),ua("main",Eb,[da(s,{control:{content:e.i18n.panelRevisionsInfo}},null,8,["control"]),ua("div",Ib,[ua("button",{class:"cancel",onClick:t[2]||(t[2]=function(){return r.discardRevision&&r.discardRevision.apply(r,arguments)}),textContent:de(e.i18n.discard),disabled:!o.revisionId||!o.revisionData},null,8,Mb),ua("button",{class:ee(["apply",{active:o.revisionId&&o.revisionData}]),disabled:!o.revisionId||!o.revisionData,onClick:t[3]||(t[3]=function(t){return e.$_revisionApply()}),textContent:de(e.i18n.apply)},null,10,Ab)]),o.revisions.length?(Yr(),oa("ul",Ob,[(Yr(!0),oa(Wr,null,gi(o.revisions,(function(t,n){return Yr(),oa("li",{key:n,class:ee(["revision-id-".concat(t.id),{active:t.id===o.revisionId},{active:t.id===o.currentRevisionId&&!o.revisionId&&!o.revisionData}]),onClick:function(n){return e.$_revisionPreview(t.id)}},[ua("img",{class:"avatar",src:t.avatar,alt:t.author},null,8,Lb),ua("div",Db,[ua("div",{class:"date",textContent:de(t.humanDate),"data-balloon":t.date,"data-balloon-pos":"top"},null,8,Nb),ua("div",{class:"title",innerHTML:r.getRevisionTitle(t)},null,8,jb)]),e.$_state.fullAccess&&t.id!==o.revisionId?(Yr(),oa("div",Vb,[e.$_state.deleteItem===t.id?(Yr(),ia(a,{name:"check",key:"check",onClick:El((function(e){return r.deleteRevision(t.id)}),["stop"]),class:"bricks-panel-actions-icon confirm"},null,8,["onClick"])):(Yr(),ia(a,{name:"trash",key:"trash",onClick:El((function(n){return e.$_deleteConfirmation(t.id)}),["stop"]),class:"bricks-panel-actions-icon delete"},null,8,["onClick"]))])):va("",!0)],10,Pb)})),128))])):(Yr(),oa("div",Fb,[da(a,{name:"no-results"}),ua("p",{textContent:de(e.i18n.nothingFound)},null,8,Rb)]))])])}]]);var zb=Bb,Hb={id:"bricks-panel-settings"},Wb={id:"bricks-panel-header"},Ub=["innerHTML"],Kb={key:0,class:"bricks-panel-controls"},Gb={class:"control-groups"},Zb=["onClick"],Jb={class:"control-group-title"},Yb=["innerHTML"],Qb={key:0,class:"has-setting disabled"},Xb=[ua("span",{class:"indicator"},null,-1)];function ey(e){return ey="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},ey(e)}function ty(e,t,n){var o;return o=function(e,t){if("object"!=ey(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ey(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ey(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ny={data:function(){return{controlInfo:{type:"info",content:this.i18n.infoFullAccessRequired}}},computed:{settingsGroups:function(){var e=ty(ty({},"theme-styles",this.i18n.themeStyles),"settings-page",this.i18n.pageSettings);return"bricks_template"===this.bricks.postType&&(e["settings-template"]=this.i18n.templateSettings),e}},methods:{hasSettings:function(e){return"theme-styles"===e?Object.keys(this.$_state.themeStyleSettings).length>1:"settings-page"===e?Object.keys(this.$_state.pageSettings).length:"settings-template"===e?Object.keys(this.$_state.templateSettings).length:void 0}}};const oy=(0,tm.Z)(ny,[["render",function(e,t,n,o,i,r){var a=no("panel-control");return Yr(),oa("div",Hb,[ua("div",Wb,[ua("div",{class:"title",innerHTML:e.i18n.settings},null,8,Ub)]),e.$_state.fullAccess?(Yr(),oa("div",Kb,[ua("ul",Gb,[(Yr(!0),oa(Wr,null,gi(r.settingsGroups,(function(t,n){return Yr(),oa("li",{class:"control-group",key:n,onClick:function(t){return e.$_showPanel({panel:n})}},[ua("div",Jb,[ua("span",{innerHTML:t},null,8,Yb),r.hasSettings(n)?(Yr(),oa("span",Qb,Xb)):va("",!0)])],8,Zb)})),128))])])):(Yr(),ia(a,{key:1,class:"no-full-acess info",controlKey:"_settingsInfo",control:i.controlInfo},null,8,["control"]))])}]]);var iy=oy;var ry=["id"],ay={id:"bricks-panel-header"},sy=["innerHTML"],ly={key:0,class:"actions"},cy=["data-balloon"],uy=["data-balloon"],dy=["data-balloon"];var fy={components:{PanelControlsSearch:av},props:{settingType:{type:String,required:!0}},computed:{block:function(){var e=this.$_clone(this.bricks.controls.settings[this.settingType]);return e.id=this.settingType,e.settings=this.$_state["".concat(this.settingType,"Settings")],e},settings:function(){return this.block.settings},title:function(){switch(this.settingType){case"page":return this.i18n.pageSettings;case"template":return this.i18n.templateSettings}}},methods:{resetSettings:function(e){switch(this.$_state.deleteItem="",e){case"page":this.$_showMessage("".concat(this.i18n.page," ").concat(this.i18n.settingsResetted)),this.$_state.pageSettings={};break;case"template":this.$_showMessage("".concat(this.i18n.template," ").concat(this.i18n.settingsResetted)),this.$_state.templateSettings={}}}}};var py=(0,tm.Z)(fy,[["render",function(e,t,n,o,i,r){var a=no("pseudo-classes"),s=no("icon"),l=no("control-info"),c=no("panel-controls-search"),u=no("panel-controls");return Yr(),oa("div",{id:["bricks-panel-settings-"+n.settingType]},["page"===n.settingType?(Yr(),ia(a,{key:0})):va("",!0),ua("div",ay,[ua("div",{class:"title",innerHTML:r.title},null,8,sy),e.$_state.fullAccess?(Yr(),oa("ul",ly,[ua("li",{"data-balloon":e.i18n.searchSettings,"data-balloon-pos":"bottom-right"},[da(s,{name:"search",onClick:t[0]||(t[0]=function(t){return e.$_state.showControlSearch=!e.$_state.showControlSearch})})],8,cy),e.$_state.deleteItem===n.settingType?(Yr(),oa("li",{key:0,"data-balloon":e.i18n.sure,"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=El((function(e){return r.resetSettings(n.settingType)}),["stop"]))},[da(s,{name:"check"})],8,uy)):(Yr(),oa("li",{key:1,"data-balloon":e.i18n.reset,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=El((function(t){return e.$_deleteConfirmation(n.settingType)}),["stop"]))},[da(s,{name:"refresh"})],8,dy))])):va("",!0)]),"template"!==n.settingType||"header"!==e.$_state.templateType&&"footer"!==e.$_state.templateType?va("",!0):(Yr(),ia(l,{key:1,control:{content:e.bricks.template.defaultTemplatesDisabled?e.i18n.defaultTemplatesDisabled:e.i18n.defaultTemplatesEnabled}},null,8,["control"])),da(c),da(u,{type:n.settingType,block:r.block,settings:r.settings},null,8,["type","block","settings"])],8,ry)}]]),hy={components:{PanelSettingsBase:py}};var my=(0,tm.Z)(hy,[["render",function(e,t,n,o,i,r){var a=no("panel-settings-base");return Yr(),ia(a,{settingType:"page"})}]]);var gy={components:{PanelSettingsBase:py}};var vy=(0,tm.Z)(gy,[["render",function(e,t,n,o,i,r){var a=no("panel-settings-base");return Yr(),ia(a,{settingType:"template"})}]]),by={id:"bricks-panel-theme-styles"},yy={id:"bricks-panel-header"},wy=["innerHTML"],ky={class:"panel-content"},xy={class:"style-selector"},Cy={key:0,class:"bricks-panel-controls"},_y={class:"button-group"},Sy=["textContent"],Ty=["textContent"];var $y={setup:function(){return{activePanelGroup:sn(Vf,"activePanelGroup"),themeStyles:sn(Vf,"themeStyles"),themeStyleActive:sn(Vf,"themeStyleActive"),themeStyleSettings:sn(Vf,"themeStyleSettings")}},data:function(){return{activeStyle:void 0,action:void 0,newStyleLabel:void 0,infoMessage:void 0,importResults:[]}},computed:{block:function(){return{label:!!this.activeStyle&&this.themeStyles[this.activeStyle].label,controls:this.activePanelGroup?this.bricks.controls.themeStyles.controls[this.activePanelGroup]:this.bricks.controls.themeStyles.controls,controlGroups:this.bricks.controls.themeStyles.controlGroups}},settings:function(){return this.activePanelGroup&&this.themeStyleSettings[this.activePanelGroup]?this.themeStyleSettings[this.activePanelGroup]:{}},themeStyleInfo:function(){var e;return this.infoMessage?e=this.infoMessage:void 0===this.action&&(e=this.activeStyle?this.i18n.themeStyleActiveInfo:this.i18n.themeStyleSelectInfo),e?{content:e}:{}},themeStyleOptions:function(){var e=this,t={};return Object.keys(this.themeStyles).forEach((function(n){t[n]=e.themeStyles[n].label})),t},themeStyleControlOptions:function(){return{options:this.themeStyleOptions,placeholder:this.i18n.none,searchable:!0}},fileImportControl:function(){return{fileType:"application/json",schema:["id","label","settings"],dragAndDropNote:this.i18n.importJsonDragAndDrop}}},methods:{cancel:function(){this.action=void 0,this.infoMessage=void 0,this.newStyleLabel=void 0},closeMe:function(){this.action=void 0,this.importResults=[]},openEdit:function(){this.action="edit",this.newStyleLabel=this.themeStyles[this.activeStyle].label},createThemeStyle:function(){var e=this;if(this.newStyleLabel){var t=this.newStyleLabel.toLowerCase().replace(/-|\s/g,"_");if(Object.keys(this.themeStyleOptions).includes(t))this.infoMessage=this.i18n.themeStyleNameExists;else{this.infoMessage=void 0;var n=this.$_clone(this.themeStyles),o=this.activeStyle,i={id:t,label:this.newStyleLabel,settings:{_custom:!0}};0===Object.keys(n).length&&(i.settings.conditions={conditions:[{id:this.$_generateId(),main:"any"}]}),"edit"===this.action&&(i.oldId=o,i.settings=n[o].settings),n[i.id]={label:i.label,settings:i.settings},this.storeNewStyles([i]).then((function(t){e.activeStyle=i.id,"edit"===e.action&&delete n[o],e.themeStyles=n,e.themeStyleSettings=i.settings,e.$nextTick((function(){e.$_showMessage("created"===e.action?e.i18n.themeStyleCreated:e.i18n.themeStyleSaved),e.action=void 0,e.newStyleLabel=void 0}))}))}}},deleteStyle:function(){var e=this,t=this.activeStyle;this.$_http({data:{action:"bricks_delete_style",styleId:t},success:function(n){e.activeStyle=!1;var o=e.$_clone(e.themeStyles);delete o[t],e.themeStyles=o,e.action=void 0,e.newStyleLabel=void 0,e.$_showMessage(e.i18n.themeStyleDeleted)}})},exportStyle:function(){var e=this.$_clone(this.themeStyles[this.activeStyle]);e.id=this.activeStyle,this.$_exportAsJsonFile(e,"bricks-theme-style-".concat(this.activeStyle))},importStyle:function(e){var t=this;if(Array.isArray(e)&&e.length){this.importResults=[];var n=this.$_clone(this.themeStyles),o=[];e.forEach((function(e){n.hasOwnProperty(e.id)?t.importResults.push({text:t.i18n.fileNotImportedAlreadyExists.replace("%s",e.label),type:"error"}):(n[e.id]={label:e.label,settings:e.settings},o.push(e),t.importResults.push({text:t.i18n.fileImported.replace("%s",e.label),type:"success"}))})),o.length&&this.storeNewStyles(o).then((function(e){t.themeStyles=n}))}},storeNewStyles:function(e){var t=this;return new Promise((function(n,o){t.$_http({data:{action:"bricks_create_styles",styles:e},success:function(e){n(e)}})}))}},created:function(){this.activeStyle=this.themeStyleActive,Array.isArray(this.themeStyles)&&(this.themeStyles={})},watch:{activePanelGroup:function(){this.activePanelGroup&&!this.themeStyleSettings.hasOwnProperty(this.activePanelGroup)&&(this.themeStyleSettings[this.activePanelGroup]={})},activeStyle:function(){this.activePanelGroup="",this.themeStyleActive=this.activeStyle,this.activeStyle?this.themeStyleSettings=this.themeStyles[this.activeStyle].settings:this.themeStyleSettings={}}}};const Ey=(0,tm.Z)($y,[["render",function(e,t,n,o,i,r){var a=no("pseudo-classes"),s=no("control-info"),l=no("control-select"),c=no("control-text"),u=no("icon"),d=no("control-file-import"),f=no("panel-controls");return Yr(),oa("div",by,[da(a),ua("div",yy,[ua("div",{class:"title",innerHTML:e.i18n.themeStyles},null,8,wy)]),ua("main",ky,[da(s,{control:r.themeStyleInfo},null,8,["control"]),ua("div",xy,[void 0===i.action?(Yr(),ia(l,{key:0,value:i.activeStyle,"onUpdate:value":t[0]||(t[0]=function(e){return i.activeStyle=e}),control:r.themeStyleControlOptions},null,8,["value","control"])):va("",!0),"create"===i.action||"edit"===i.action?(Yr(),ia(c,{key:1,value:i.newStyleLabel,"onUpdate:value":t[1]||(t[1]=function(e){return i.newStyleLabel=e}),control:{placeholder:e.i18n.themeStyleNewName,hasDynamicData:!1},onKeyup:Ml(r.createThemeStyle,["enter"])},null,8,["value","control","onKeyup"])):va("",!0),Io(da(u,{name:"add","data-balloon":e.i18n.create,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return i.action="create"})},null,8,["data-balloon"]),[[As,void 0===i.action]]),Io(da(u,{name:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"bottom-right",onClick:r.openEdit},null,8,["data-balloon","onClick"]),[[As,void 0===i.action&&i.activeStyle]]),Io(da(u,{name:"export","data-balloon":e.i18n.export,"data-balloon-pos":"bottom-right",onClick:r.exportStyle},null,8,["data-balloon","onClick"]),[[As,"edit"===i.action]]),Io(da(u,{name:"import","data-balloon":e.i18n.import,"data-balloon-pos":"bottom-right",onClick:t[3]||(t[3]=function(e){return i.action="import"})},null,8,["data-balloon"]),[[As,"create"===i.action]]),Io(da(u,{name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"bottom-right",onClick:t[4]||(t[4]=function(t){return e.$_deleteConfirmation(i.activeStyle)})},null,8,["data-balloon"]),[[As,"edit"===i.action&&e.$_state.deleteItem!==i.activeStyle]]),Io(da(u,{name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"bottom-right",onClick:r.deleteStyle},null,8,["data-balloon","onClick"]),[[As,"edit"===i.action&&e.$_state.deleteItem===i.activeStyle]])]),"create"===i.action||"edit"===i.action?(Yr(),oa("div",Cy,[ua("div",_y,[ua("button",{onClick:t[5]||(t[5]=function(){return r.createThemeStyle&&r.createThemeStyle.apply(r,arguments)}),textContent:de("create"===i.action?e.i18n.create:e.i18n.save)},null,8,Sy),ua("button",{class:"cancel",onClick:t[6]||(t[6]=function(e){return r.cancel()}),textContent:de(e.i18n.cancel)},null,8,Ty)])])):va("",!0),"import"===i.action?(Yr(),ia(d,{key:1,control:r.fileImportControl,results:i.importResults,onImported:r.importStyle,onCloseMe:t[7]||(t[7]=function(e){return r.closeMe()})},null,8,["control","results","onImported"])):va("",!0)]),i.activeStyle&&"create"!==i.action?(Yr(),ia(f,{key:0,type:"style",block:r.block,settings:r.settings},null,8,["block","settings"])):va("",!0)])}]]);var Iy={setup:function(){var e,t,n=uh.generateId();window.bricksData.debug.includes("localstorage")&&console.info("windowId",n),window.addEventListener("focus",(function(e){window.bricksData.debug.includes("localstorage")&&console.warn("windowId:focus",n),localStorage.setItem("brx_active_window",n)})),window.addEventListener("storage",(function(t){t.key.startsWith("brx_state_")&&(clearTimeout(e),e=setTimeout((function(){var e=t.key.replace("brx_state_","");if(Vf.hasOwnProperty(e)){var n=JSON.parse(t.newValue);Vf.messageOrigin="main",Vf.isBroadcasting=Date.now(),window.bricksData.debug.includes("localstorage")&&console.warn("watch:localStorage",e,n),Vf[e]=n,"themeStyles"===e&&Vf.themeStyleActive&&Vf.themeStyles[Vf.themeStyleActive].settings?Vf.themeStyleSettings=Vf.themeStyles[Vf.themeStyleActive].settings:"globalElements"===e&&Tn((function(){return uh.forceRender(0)})),Tn((function(){Vf.rerenderControls=Date.now()}))}}),400))}));["breakpoints","colorPalette","globalClasses","globalClassesLocked","globalElements","globalVariables","pinnedElements","pseudoClasses","themeStyles"].forEach((function(e){_o((function(){return Vf[e]}),(function(o){Tn((function(){if(Vf.iframeLoaded){if(Vf.isBroadcasting)return window.bricksData.debug.includes("isBroadcasting")&&console.warn("watch:isBroadcasting",e,Vf[e]),void(Vf.isBroadcasting=!1);var i=localStorage.getItem("brx_active_window");i&&i!==n||(clearTimeout(t),t=setTimeout((function(){window.bricksData.debug.includes("localstorage")&&console.info("set:localStorage",e,o),localStorage.setItem("brx_state_".concat(e),JSON.stringify(o))}),400))}}))}),{deep:!0})}))},components:{PanelElement:lv,PanelElements:Lv,PanelPages:ib,PanelHistory:yb,PanelRevisions:zb,PanelSettings:iy,PanelSettingsPage:my,PanelSettingsTemplate:vy,PanelThemeStyles:Ey},data:function(){return{panelWidth:this.$_state.panelWidth,panelWidthNew:void 0,minimizePanel:!1,showMinimize:!1,mouseX:void 0,mouseY:void 0,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}},computed:{classes:function(){return["bricks-panel",this.$_state.isResizingPanel?"is-resizing":null,this.$_state.isPreviewing?"hide":null,this.minimizePanel?"minimize":null]},globalClassIds:function(){return Object.keys(this.$_state.globalClassIndexById)},allGlobalClassIds:function(){var e=[];return this.$_state.globalClasses.forEach((function(t){e.push(t.id)})),e.join(":")}},methods:{startResizingPanel:function(e){"bricks-panel-resizable"===e.target.id&&(this.viewportHeight=window.innerHeight,this.mouseX=e.clientX,this.mouseY=e.clientY,this.$_state.isResizingPanel=!0)},resizingPanel:function(e){if(this.$_state.isResizingPanel){var t=e.clientX-this.mouseX;this.bricks.isRtl&&(t=-t),this.panelWidthNew=this.$_state.panelWidth+t,this.panelWidthNew<240&&(this.panelWidthNew=240),this.panelWidthNew>600&&(this.panelWidthNew=600),this.$el.style.width="".concat(this.panelWidthNew,"px")}},stopResizingPanel:function(e){this.$_state.isResizingPanel&&(this.$_state.isResizingPanel=!1,this.$_state.panelWidth=this.panelWidthNew,this.$_http({data:{action:"bricks_save_panel_width",panelWidth:this.panelWidthNew}}))}},created:function(){var e=this;window.addEventListener("mousedown",(function(t){0==t.button&&e.startResizingPanel(t)})),window.addEventListener("mousemove",(function(t){e.resizingPanel(t)})),window.addEventListener("mouseup",(function(t){e.stopResizingPanel(t)}))},watch:{"$_activeClass.value":{handler:function(e,t){"main"!==this.$_state.messageOrigin||this.$_state.isSaving||(null!=e&&e.id&&null!=t&&t.id&&e.id===t.id&&!this.$_state.globalChanges.modified.includes(e.id)&&this.$_state.globalChanges.modified.push(e.id),this.$_postMessage({key:"activeClass",value:e}))},deep:!0},globalClassIds:function(e,t){var n=this;if(this.$_state.iframeLoaded)if(e.length>t.length)e.filter((function(e){return!t.includes(e)})).forEach((function(e){n.$_state.globalChanges.added.includes(e)||n.$_state.globalChanges.added.push(e)}));else if(e.length<t.length){t.filter((function(t){return!e.includes(t)})).forEach((function(e){n.$_state.globalChanges.deleted.includes(e)||n.$_state.globalChanges.deleted.push(e)}))}},allGlobalClassIds:function(){var e={};this.$_state.globalClasses.forEach((function(t,n){e[t.id]=n})),this.$_state.globalClassIndexById=e},"$_state.activeClass.id":function(e){this.$_state.activeClassIsLocked=e&&this.$_state.globalClassesLocked.includes(e)},"$_state.activeId":{handler:function(e){e?this.$_autoExpandCollapsePanel():this.$_state.highlightId=!1,this.$_state.activeClass="",this.$_state.pseudoClassActive="",this.$_state.isInlineEditing=!1,this.$_setActiveElement()}},"$_state.activeElement":{handler:function(e,t){this.$_updateActiveElement(e,t)},deep:!0},"$_state.activePanel":{handler:function(){var e=this;this.$_revisionApply(),this.$_state.activeClass="",this.$_state.pseudoClassActive="",this.$_state.isInlineEditing=!1,this.$_autoExpandCollapsePanel(),this.$nextTick((function(){"element"!==e.$_state.activePanel&&(e.$_state.activeClassIsLocked=!1),e.$refs.scrollbar.scrollTop=0}))}},"$_state.activePanelGroup":{handler:function(){this.$_autoExpandCollapsePanel()}},"$_state.activePanelTab":{handler:function(){this.$_autoExpandCollapsePanel(),this.$_state.showConditions=!1}},"$_state.themeStyleActive":{handler:function(e){e&&this.$_state.themeStyles[e].settings&&(this.$_state.themeStyleSettings=this.$_state.themeStyles[e].settings)}},"$_state.colorPalette":{handler:function(){this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette")},deep:!0},"$_state.globalVariables":{handler:function(){this.$_state.globalVariablesInlineCssVars=this.$_generateCss("globalVariables")},deep:!0},"$_state.dynamicData":{handler:function(){this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette")},deep:!0},"$_state.historyInProgress":function(e){if(!e){var t,n=null===(t=this.$_state.activeClass)||void 0===t?void 0:t.id;if(n){var o=this.$_state.globalClassIndexById[n],i=this.$_state.globalClasses[o];i&&(this.$_state.activeClass=this.$_clone(i))}}},"$_state.scrollToPanelTop":{handler:function(){this.$refs.scrollbar.scroll({top:0,behavior:"smooth"})}},"$_state.isPanelExpanded":{handler:function(e){var t=this;if(e){var n=.4*document.body.clientWidth;n>600&&(n=600),this.$_state.panelWidth=this.$_state.panelWidth,this.$nextTick((function(){t.$_state.panelWidth=n}))}else this.$_state.panelWidth=this.panelWidth}},"$_state.panelWidth":{handler:function(e){this.$_state.isPanelExpanded||(this.panelWidth=e)}},"$_state.pageSettings":{handler:function(e){window.bricksData.pageSettings=e},deep:!0,immediate:!0},"$_state.templateSettings":{handler:function(e){window.bricksData.templateSettings=e},deep:!0,immediate:!0}}};var My=(0,tm.Z)(Iy,[["render",function(e,t,n,o,i,r){var a=no("icon");return Io((Yr(),oa("div",{id:"bricks-panel",class:ee(r.classes),style:Z({width:"".concat(e.$_state.panelWidth,"px")})},[ua("div",{id:"bricks-panel-resizable",onMouseenter:t[0]||(t[0]=function(e){return i.showMinimize=!0}),onMouseleave:t[1]||(t[1]=function(e){return i.showMinimize=!1})},null,32),Io(da(a,{name:"arrow-left",id:"bricks-panel-toggle",class:ee({minimized:i.minimizePanel}),onMouseenter:t[2]||(t[2]=function(e){return i.showMinimize=!0}),onMouseleave:t[3]||(t[3]=function(e){return i.showMinimize=!1}),onClick:t[4]||(t[4]=function(e){return i.minimizePanel=!i.minimizePanel})},null,8,["class"]),[[As,i.showMinimize||i.minimizePanel]]),ua("div",fg,[["elements","element"].includes(e.$_state.activePanel)?va("",!0):(Yr(),ia(io("panel-".concat(e.$_state.activePanel)),{key:0})),Io((Yr(),ia(io("panel-elements"),null,null,512)),[[As,"elements"===e.$_state.activePanel]]),Io((Yr(),ia(io("panel-element"),null,null,512)),[[As,"element"===e.$_state.activePanel]])],512),(Yr(),ia(io("style"),{id:"bricks-inline-css-color-palettes",textContent:de(e.$_state.colorPaletteInlineCssVars)},null,8,["textContent"])),(Yr(),ia(io("style"),{id:"bricks-inline-css-variables",textContent:de(e.$_state.globalVariablesInlineCssVars)},null,8,["textContent"]))],6)),[[As,!e.$_state.isPreviewing]])}]]),Ay=["src"];var Oy=["innerHTML"],Py=["innerHTML"];var Ly={setup:function(){return{notification:sn(Vf,"notification")}},data:function(){return{templateBundle:!1}},computed:{description:function(){return"autosave"===this.notification?this.i18n.notifications.autosave.description:"svgBlockImport"===this.notification?this.i18n.notifications.svg.description:this.templateBundle&&this.bricks.themeStyles.hasOwnProperty(this.templateBundle)?this.$_stringReplace(this.i18n.notifications.templateBundle.description,[this.bricks.themeStyles[this.templateBundle].label]):void 0},buttonText:function(){switch(this.notification){case"autosave":return this.i18n.notifications.autosave.button;case"svgBlockImport":return this.i18n.gotIt;case"populateContent":return this.i18n.notifications.populateContent.button}if(this.templateBundle)return this.$_stringReplace(this.i18n.notifications.templateBundle.button,[this.bricks.themeStyles[this.templateBundle].label])}},methods:{runAction:function(){switch(this.notification){case"autosave":this.close(),this.$_showPanel({panel:"revisions"}),this.$_revisionPreview(this.$_state.revisions[0].id);break;case"svgBlockImport":this.close();break;case"populateContent":this.$_showPanel({panel:"settings-template",group:"template-preview"}),this.close()}this.templateBundle&&(this.$_showPanel({panel:"themeStyles"}),this.$_state.themeStyleActive=this.templateBundle,this.close())},close:function(){this.notification=!1}},watch:{notification:function(e){if(e&&-1!==e.indexOf("selectTemplateBundle")){var t=e.split(":");this.templateBundle=!!t.length&&t[1]}else this.templateBundle=!1}}};const Dy=(0,tm.Z)(Ly,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",{id:"bricks-notification",class:ee([o.notification,{show:r.description}])},[ua("div",{class:"description",innerHTML:r.description},null,8,Oy),Io(ua("button",{class:"action",onClick:t[0]||(t[0]=function(e){return r.runAction()}),innerHTML:r.buttonText},null,8,Py),[[As,r.buttonText]]),ua("button",{class:"close",onClick:t[1]||(t[1]=function(){return r.close&&r.close.apply(r,arguments)})},[da(a,{name:"close"})])],2)}]]);var Ny=Dy;var jy={class:"flex"},Vy={class:"title-wrapper"},Fy=["textContent"],Ry=["textContent"],qy={class:"actions"},By={class:"sign-all"},zy=["disabled"],Hy=["textContent"],Wy={class:"content"},Uy={class:"unsigned-code-elements"},Ky=["textContent"],Gy=["disabled","onClick"],Zy=["textContent"];var Jy={data:function(){return{isGeneratingCodeSignature:!1,reloadCanvas:!1}},computed:{unsignedCodeElements:function(){var e=this,t=[];return this.$_state.unsignedCodeIds.forEach((function(n){var o=e.$_getElementObject(n);if(!o){var i=e.$_getGlobalElement({global:n});i&&(o=i)}o&&t.push(e.$_clone(o))})),t},unsignedCodeCount:function(){return this.unsignedCodeElements.length}},methods:{getCode:function(e){var t,n,o;return null!==(t=e.settings)&&void 0!==t&&t.code?e.settings.code:null!==(n=e.settings)&&void 0!==n&&null!==(n=n.query)&&void 0!==n&&n.queryEditor?null===(o=e.settings)||void 0===o||null===(o=o.query)||void 0===o?void 0:o.queryEditor:void 0},generateCodeSignature:function(){var e,t,n,o=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r){var a=this.$_state.unsignedCodeIds[0]||null;if(!a)return this.isGeneratingCodeSignature=!1,void(this.$_state.activeUnsignedCodeId=null);(i=this.$_getElementObject(a))||(i=this.$_getGlobalElement({global:a}))}var s=this.$_getGlobalElement({global:null===(e=i)||void 0===e?void 0:e.id});s&&(i=s),i&&(s&&(this.reloadCanvas=!0),this.$_state.activeUnsignedCodeId=(null===(t=i)||void 0===t?void 0:t.id)||(null===(n=i)||void 0===n?void 0:n.global),this.isGeneratingCodeSignature=!0,this.$_state.activeId=i.id,this.$_state.activeElement=i,this.$_http({data:{action:"bricks_generate_code_signature",element:JSON.stringify(i)},success:function(e){var t;o.isGeneratingCodeSignature=!1,o.$_state.activeUnsignedCodeId=null,null!==(t=e.data)&&void 0!==t&&t.element&&(s?s.settings=e.data.element.settings:o.$_state.activeElement=e.data.element),o.$nextTick((function(){r?o.generateCodeSignature(i,!0):(o.$_showMessage(o.i18n.codeSigned),o.reloadCanvas?(o.$_reloadCanvas(),o.reloadCanvas=!1):o.$_forceRender())}))}}))}},beforeUnmount:function(){this.$_state.activeUnsignedCodeId=null},watch:{unsignedCodeCount:{handler:function(){this.unsignedCodeCount||(this.$_reloadCanvas(0,0),this.$_state.popup="",this.$_showMessage(this.i18n.codeSigned))},immediate:!0}}};var Yy=(0,tm.Z)(Jy,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-code");return Yr(),oa("div",null,[ua("header",jy,[ua("div",Vy,[ua("h2",{class:"title",textContent:de(e.i18n.unsignedCode)},null,8,Fy),ua("p",{class:"description",textContent:de(e.i18n.codeSignaturesDescription)},null,8,Ry)]),ua("ul",qy,[ua("li",By,[ua("button",{class:"button",disabled:0===r.unsignedCodeElements.length,onClick:t[0]||(t[0]=function(e){return r.generateCodeSignature(null,!0)})},[ua("span",{textContent:de(e.i18n.signAll)},null,8,Hy),da(a,{name:"touch-id"})],8,zy)])])]),ua("main",Wy,[ua("ul",Uy,[(Yr(!0),oa(Wr,null,gi(r.unsignedCodeElements,(function(t){return Yr(),oa("li",{key:t.id,class:ee(["unsigned-code-element",{active:t.id===e.$_state.activeUnsignedCodeId}])},[ua("h4",{class:"name",textContent:de("".concat(e.i18n.element,": ").concat(e.$_getElementLabel(t)))},null,8,Ky),da(s,{value:r.getCode(t)},null,8,["value"]),ua("button",{class:"button",disabled:i.isGeneratingCodeSignature,onClick:function(e){return r.generateCodeSignature(t,!1)}},[ua("span",{textContent:de(e.i18n.signCode)},null,8,Zy),da(a,{name:"touch-id"})],8,Gy)],2)})),128))])])])}]]),Qy=["placeholder"],Xy={class:"filters"},ew=["textContent","onClick"],tw=["data-balloon"],nw=[ua("i",{class:"icon fa fa-envelope"},null,-1)],ow=["href","data-balloon"],iw=[ua("i",{class:"icon fa fa-keyboard"},null,-1)],rw={class:"title-wrapper"},aw=["textContent"],sw=["href","data-balloon"],lw={class:"results"},cw=["onClick"],uw={class:"title-wrapper"},dw=["textContent"],fw={class:"icons"},pw=["href","data-balloon"],hw=["data-balloon"],mw=["innerHTML"],gw=["innerHTML"],vw={class:"notification"},bw=["innerHTML"],yw={class:"notification"},ww=["innerHTML"],kw=["href","innerHTML"];function xw(e){return xw="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},xw(e)}function Cw(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Cw=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof v?t:v,a=Object.create(r.prototype),s=new M(o||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var C=y.prototype=v.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,a,s){var l=d(e[i],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==xw(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,i){n(e,o,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,o){var i=f;return function(r,a){if(i===h)throw new Error("Generator is already running");if(i===m){if("throw"===r)throw a;return{value:e,done:!0}}for(o.method=r,o.arg=a;;){var s=o.delegate;if(s){var l=$(s,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===f)throw i=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=h;var c=d(t,n,o);if("normal"===c.type){if(i=o.done?m:p,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i=m,o.method="throw",o.arg=c.arg)}}}function $(t,n){var o=n.method,i=t.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(xw(t)+" is not iterable")}return b.prototype=y,i(C,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,i,r){void 0===r&&(r=Promise);var a=new S(u(e,n,o,i),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=A,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(o,i){return s.type="throw",s.arg=t,n.next=o,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function _w(e,t,n,o,i,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,i)}var Sw={data:function(){return{articles:[],topics:{},activeArticle:void 0,activeTopic:"",error:!1,loading:!0,searchFor:"",previousTopic:!1}},computed:{currentArticles:function(){var e=this;return this.searchFor?this.articles.filter((function(t){return t.title.toLowerCase().includes(e.searchFor.toLowerCase())||t.content.toLowerCase().includes(e.searchFor.toLowerCase())})):this.activeArticle?this.articles.filter((function(t){return t.slug===e.activeArticle})):this.activeTopic?this.articles.filter((function(t){return t.topic===e.activeTopic})):this.articles}},methods:{openLinkInNewTab:function(e){"A"===e.target.tagName&&(e.preventDefault(),window.open(e.target.href))},setTopic:function(e){this.searchFor="";var t=e!==this.activeTopic&&e;this.activeArticle=!1,this.activeTopic=t},openArticle:function(e){this.activeArticle||(this.activeArticle=e.slug,this.activeTopic=!1,this.$nextTick((function(){PR.prettyPrint()})))}},created:function(){var e,t=this;this.articles.length?this.loading=!1:(e=Cw().mark((function e(){var n,o;return Cw().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.bricks.debug&&console.time("async"),n="https://academy.bricksbuilder.io/api/bricksacademy/all?timestamp=".concat(Date.now()),e.next=4,fetch(n);case 4:return o=e.sent,e.abrupt("return",o.json());case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,i){var r=e.apply(t,n);function a(e){_w(r,o,i,a,s,"next",e)}function s(e){_w(r,o,i,a,s,"throw",e)}a(void 0)}))})().then((function(e){t.bricks.debug&&console.timeEnd("async");var n={},o=[];for(var i in t.bricks.debug&&console.warn("getArticles:articlesByTopic",e),e)t.activeTopic||(t.activeTopic=i),n[i]=e[i].length,o=o.concat(e[i]);t.articles=o,t.topics=n,t.loading=!1,t.error=!1})).catch((function(e){t.bricks.debug&&console.warn("error",e),t.error=!0,t.loading=!1}))},watch:{searchFor:function(e){e?(this.activeArticle=!1,this.activeTopic=!1):this.activeTopic=this.previousTopic},activeTopic:{handler:function(e){e&&(this.previousTopic=e)},immediate:!0},loading:function(){this.$nextTick((function(){PR.prettyPrint()}))}}};const Tw=(0,tm.Z)(Sw,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",null,[ua("aside",null,[Io(ua("input",{type:"search",class:"search",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.searchFor=e}),placeholder:e.i18n.placeholderSearchDocumentation},null,8,Qy),[[ml,i.searchFor]]),ua("ul",Xy,[(Yr(!0),oa(Wr,null,gi(i.topics,(function(e,t,n){return Yr(),oa("li",{key:t,class:ee({active:t===i.activeTopic}),textContent:de("".concat(t.replace("-"," ")," (").concat(e,")")),onClick:function(e){return r.setTopic(t)}},null,10,ew)})),128))]),ua("p",{class:"need-help",onClick:t[1]||(t[1]=function(){return e.toggleContactForm&&e.toggleContactForm.apply(e,arguments)})},[ua("a",{href:"https://bricksbuilder.io/contact/?utm_source=in_builder",target:"_blank",rel:"noopener","data-balloon":e.i18n.contactUs,"data-balloon-pos":"top-left"},nw,8,tw),ua("a",{href:e.bricks.academy.keyboardShortcuts,target:"_blank",rel:"noopener","data-balloon":e.i18n.keyboardShortcuts,"data-balloon-pos":"top-left"},iw,8,ow)])]),ua("main",null,[Io(ua("div",rw,[ua("h3",{class:"title",textContent:de(i.searchFor?"".concat(r.currentArticles.length," ").concat(e.i18n.resultsFor," ").concat(i.searchFor):e.i18n.bricksAcademy)},null,8,aw),ua("a",{class:"link",href:e.bricks.academy.home,target:"_blank","data-balloon":e.i18n.visitBricksAcademy,"data-balloon-pos":"top-right"},[da(a,{name:"new-tab"})],8,sw)],512),[[As,!i.activeArticle]]),Io(ua("ul",lw,[(Yr(!0),oa(Wr,null,gi(r.currentArticles,(function(n,o){return Yr(),oa("li",{class:ee(["article",{open:n.slug===i.activeArticle}]),key:o,onClick:function(e){return r.openArticle(n)}},[ua("div",uw,[ua("h4",{class:"title",textContent:de(n.title)},null,8,dw),ua("div",fw,[ua("a",{class:"link",href:n.permalink,target:"_blank","data-balloon":e.i18n.visitDocs,"data-balloon-pos":"top"},[da(a,{name:"new-tab"})],8,pw),ua("span",{class:"close","data-balloon":e.i18n.close,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=El((function(e){return r.setTopic(i.previousTopic)}),["stop"]))},[da(a,{name:"close"})],8,hw)])]),Io(ua("div",{class:"excerpt",innerHTML:n.excerpt},null,8,mw),[[As,i.activeArticle!==n.slug]]),Io(ua("div",{class:"content",innerHTML:n.content,onClick:t[3]||(t[3]=function(e){return r.openLinkInNewTab(e)})},null,8,gw),[[As,i.activeArticle===n.slug]])],10,cw)})),128))],512),[[As,!i.loading&&r.currentArticles.length]]),Io(ua("div",vw,[ua("p",{innerHTML:e.i18n.nothingFoundKeyword},null,8,bw)],512),[[As,!i.loading&&!i.error&&!r.currentArticles.length]]),Io(ua("div",yw,[ua("p",{innerHTML:e.i18n.errorBricksAcademy404},null,8,ww),ua("a",{href:e.bricks.academy.home,target:"_blank",innerHTML:e.i18n.visitBricksAcademy},null,8,kw)],512),[[As,!i.loading&&i.error]])])])}]]);var $w=Tw,Ew=["innerHTML"],Iw=["innerHTML"],Mw={class:"actions"},Aw=["textContent"],Ow=["textContent"];var Pw={methods:{goBack:function(){window.history.go(-1)},takeOver:function(){wp.heartbeat&&(wp.heartbeat.enqueue("bricks_set_post_lock",!0),wp.heartbeat.connectNow()),this.$_state.popup=!1}}};var Lw=(0,tm.Z)(Pw,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",null,[ua("div",{class:"title",innerHTML:e.i18n.lockedUserTitle},null,8,Ew),ua("p",{class:"text",innerHTML:e.$_stringReplace(e.i18n.lockedUserText,["<span>".concat(e.$_state.lockedUser,"</span>")])},null,8,Iw),ua("div",Mw,[ua("button",{class:"bricks-button go-back",textContent:de(e.i18n.lockedUserGoBack),onClick:t[0]||(t[0]=function(e){return r.goBack()})},null,8,Aw),ua("button",{class:"bricks-button take-over",textContent:de(e.i18n.lockedUserTakeOver),onClick:t[1]||(t[1]=function(e){return r.takeOver()})},null,8,Ow)])])}]]),Dw={class:"template-source"},Nw=["textContent"],jw={class:"actions"},Vw=["data-balloon"],Fw=["textContent"],Rw=["data-balloon"],qw=["textContent"],Bw={class:"sub-header flex"},zw={class:"template-filters flex"},Hw=["placeholder"],Ww={class:"actions flex"},Uw=["data-balloon"],Kw=["data-balloon"],Gw=["data-balloon"],Zw=["data-balloon"],Jw={key:0,class:"action-wrapper theme-style"},Yw=["innerHTML"],Qw={class:"actions"},Xw=["textContent"],ek=["textContent"],tk={key:1,class:"action-wrapper color-palette"},nk=["innerHTML"],ok={class:"actions"},ik=["textContent"],rk=["textContent"],ak=["data-balloon"],sk={key:2,class:"action-wrapper global-variables"},lk=["innerHTML"],ck={class:"actions"},uk=["textContent"],dk=["textContent"],fk={class:"action-wrapper create"},pk=["textContent"],hk=["placeholder"],mk=["textContent","disabled"],gk=["textContent"],vk={class:"action-wrapper save"},bk={class:"title"},yk=["placeholder"],wk=["textContent"],kk=["textContent"],xk={class:"action-wrapper import"},Ck=["textContent"],_k=["textContent"],Sk=["textContent"],Tk=["textContent"],$k={class:"bricks-layout-wrapper","data-layout":"masonry",ref:"isotope"},Ek=["src"],Ik={class:"title-wrapper"},Mk=["textContent"],Ak={class:"title-actions"},Ok=["onClick","textContent"],Pk=["href","textContent"],Lk={class:"overlay-wrapper"},Dk={class:"item-header"},Nk={class:"labels"},jk=["textContent","data-balloon"],Vk=["textContent"],Fk={class:"actions"},Rk=["onClick","data-balloon"],qk=["onClick","data-balloon"],Bk=["href","data-balloon"],zk=["href","data-balloon"],Hk={key:0,class:"user"},Wk=["href","textContent"],Uk=["textContent"],Kk=["textContent","data-balloon"],Gk={class:"notification"},Zk={class:"message"},Jk=["textContent"],Yk={class:"notification loading"},Qk=ga('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1),Xk=["textContent"];function ex(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ex=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof v?t:v,a=Object.create(r.prototype),s=new M(o||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var C=y.prototype=v.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,a,s){var l=d(e[i],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ax(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,i){n(e,o,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,o){var i=f;return function(r,a){if(i===h)throw new Error("Generator is already running");if(i===m){if("throw"===r)throw a;return{value:e,done:!0}}for(o.method=r,o.arg=a;;){var s=o.delegate;if(s){var l=$(s,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===f)throw i=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=h;var c=d(t,n,o);if("normal"===c.type){if(i=o.done?m:p,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i=m,o.method="throw",o.arg=c.arg)}}}function $(t,n){var o=n.method,i=t.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(ax(t)+" is not iterable")}return b.prototype=y,i(C,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,i,r){void 0===r&&(r=Promise);var a=new S(u(e,n,o,i),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=A,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(o,i){return s.type="throw",s.arg=t,n.next=o,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function tx(e,t,n,o,i,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,i)}function nx(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var r=e.apply(t,n);function a(e){tx(r,o,i,a,s,"next",e)}function s(e){tx(r,o,i,a,s,"throw",e)}a(void 0)}))}}function ox(e,t,n){var o;return o=function(e,t){if("object"!=ax(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ax(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ax(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ix(e){return function(e){if(Array.isArray(e))return rx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return rx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rx(e,t)}(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.")}()}function rx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ax(e){return ax="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},ax(e)}var sx={setup:function(){return{saveAsTemplate:sn(Vf,"saveAsTemplate")}},data:function(){return{templateSource:"myTemplates",myTemplates:[],remoteTemplatesBySource:{},importImages:!1,errorMessage:void 0,isInsertingTemplate:!1,templateAction:void 0,templateTitle:void 0,templateType:void 0,templateBundle:void 0,templateTags:void 0,dragging:!1,searchValue:void 0,loading:!1,refreshing:!1,filterTemplateBundle:void 0,filterTemplateTag:void 0,filterTemplateType:void 0,controlTemplateType:{options:this.bricks.template.types,placeholder:this.i18n.templateType},replaceContent:!1,templateThemeStyle:!1,templateColorPalette:[],colorPaletteTitle:!1,template:!1,templateElements:!1,templateGlobalVariables:[]}},computed:{remoteTemplatesCurrent:function(){return this.remoteTemplatesBySource.hasOwnProperty(this.templateSource)?this.remoteTemplatesBySource[this.templateSource]:{}},templates:function(){var e,t=this,n=[];"myTemplates"===this.templateSource?n=this.myTemplates||[]:n=Array.isArray(null===(e=this.remoteTemplatesCurrent)||void 0===e?void 0:e.templates)?this.remoteTemplatesCurrent.templates:[];return void 0!==this.searchValue&&(n=n.filter((function(e){return-1!==e.title.toLowerCase().indexOf(t.searchValue.toLowerCase())}))),this.filterTemplateBundle&&(n=n.filter((function(e){return-1!==e.bundles.indexOf(t.filterTemplateBundle)}))),this.filterTemplateTag&&this.filterTemplateTag.length&&(n=n.filter((function(e){return e.tags.some((function(e){return t.filterTemplateTag.includes(e)}))}))),this.filterTemplateType&&(n=n.filter((function(e){return e.type===t.filterTemplateType}))),n},message:function(){return this.errorMessage||this.i18n.noTemplatesFound},templateBundleOptions:function(){var e;return"myTemplates"===this.templateSource?this.bricks.template.bundles:(null===(e=this.remoteTemplatesCurrent)||void 0===e?void 0:e.bundles)||[]},controlTemplateBundle:function(){return{options:this.templateBundleOptions,placeholder:this.i18n.templateBundle}},templateTagsOptions:function(){var e;return"myTemplates"===this.templateSource?this.bricks.template.tags:(null===(e=this.remoteTemplatesCurrent)||void 0===e?void 0:e.tags)||[]},controlTemplateTag:function(){return{options:this.templateTagsOptions,placeholder:this.i18n.templateTag,add:!0,multiple:Object.keys(this.templateTagsOptions).length>1}},templateSourceOptions:function(){var e=this,t={myTemplates:this.i18n.myTemplates};return Array.isArray(this.bricks.remoteTemplateSettings)&&this.bricks.remoteTemplateSettings.forEach((function(n){if(null!=n&&n.url){var o=n.name&&""!==n.name.trim()?n.name:n.url;t[n.url]=n.url.includes("https://bricksbuilder.io")?e.i18n.communityTemplates:o}})),t},importTemplateFormWrapperClasses:function(){return["bricks-template-import-form",this.dragging?"dragging":null]},templateCanBeSaved:function(){return this.saveAsTemplate?this.templateTitle:this.templateTitle&&this.templateType},remoteTemplatesReleasedAfterCancellationCount:function(){return Array.isArray(this.templates)?this.templates.filter((function(e){return e.hasOwnProperty("cancelled")})).length:0}},methods:{getTemplateTypeLabel:function(e){return e=(e=e.replace("wc_","WooCommerce: ")).replaceAll("_"," ")},setColorPalette:function(e){var t=this;Object.keys(e).forEach((function(n){if("object"===ax(e))if(null!=e&&e.id&&(null!=e&&e.hex||null!=e&&e.rgb)){var o=t.$_clone(e);o.name="Color #".concat(t.templateColorPalette.length+1),t.templateColorPalette.find((function(e){return e.id===o.id}))||t.templateColorPalette.push(o)}else t.setColorPalette(e[n])}))},insertTemplate:function(e){var t=this;if(null!=e&&e.content?this.templateElements=this.$_clone(e.content):null!=e&&e.header?this.templateElements=this.$_clone(e.header):null!=e&&e.footer&&(this.templateElements=this.$_clone(e.footer)),Array.isArray(this.templateElements)){if(this.template=e,"myTemplates"===this.templateSource||this.$_state.userCan.executeCode||this.templateElements.forEach((function(e,n){var o,i,r,a;null!=e&&null!==(o=e.settings)&&void 0!==o&&o.executeCode&&delete t.templateElements[n].settings.executeCode,"svg"===(null==e?void 0:e.name)&&null!=e&&null!==(i=e.settings)&&void 0!==i&&i.code&&delete t.templateElements[n].settings.code,null!=e&&null!==(r=e.settings)&&void 0!==r&&null!==(r=r.query)&&void 0!==r&&r.queryEditor&&delete t.templateElements[n].settings.query.queryEditor,null!=e&&null!==(a=e.settings)&&void 0!==a&&null!==(a=a.query)&&void 0!==a&&a.useQueryEditor&&delete t.templateElements[n].settings.query.useQueryEditor})),this.templateColorPalette=[],this.templateGlobalVariables=[],this.templateThemeStyle=void 0,"myTemplates"!==this.templateSource){var n,o=(null==e?void 0:e.global_classes)||!1,i={};if(Array.isArray(o)){var r=this.$_state.globalClasses;o.forEach((function(e){var t=r.find((function(t){return t.id===e.id}));t||((t=r.find((function(t){return t.name===e.name})))?i[e.id]=t.id:r.push(e))}))}Object.keys(i).length&&Object.keys(i).forEach((function(e){var n=i[e];t.templateElements.forEach((function(o,i){var r,a=null==o||null===(r=o.settings)||void 0===r?void 0:r._cssGlobalClasses;Array.isArray(a)&&(a.forEach((function(t,o){t===e&&(a[o]=n)})),t.templateElements[i].settings._cssGlobalClasses=a)}))})),this.setColorPalette(this.templateElements);var a,s=null==e?void 0:e.themeStyle;if(s)null!==(a=this.$_state.themeStyles)&&void 0!==a&&a[s.id]||(this.templateThemeStyle=s,this.templateAction="theme-style",this.setColorPalette(s.settings));var l=null===(n=this.remoteTemplatesBySource[this.templateSource])||void 0===n?void 0:n.globalVariables;if(Array.isArray(l)&&l.length){var c=this.$_state.globalVariables.map((function(e){return e.name})),u=l.filter((function(e){return!c.includes(e.name)}));u.forEach((function(e){delete e.category})),u.length&&(this.templateGlobalVariables=u,this.templateAction="global-variables")}}this.templateColorPalette.length&&(this.colorPaletteTitle=e.title),this.templateAction||this.convertTemplate(this.templateElements),this.$nextTick((function(){var n=!(null==e||!e.bundles||!e.bundles.length)&&e.bundles[0];n&&t.bricks.themeStyles.hasOwnProperty(n)&&(t.$_state.notification="selectTemplateBundle:".concat(n))}))}else alert(this.i18n.templateInsertErrorNoData)},filterGlobalVariables:function(e){var t=this.globalVariables.map((function(e){return e.name}));return e.filter((function(e){return!t.includes(e.name)}))},importGlobalVariables:function(e){e&&(this.$_state.globalVariables=[].concat(ix(this.$_state.globalVariables),ix(this.templateGlobalVariables))),this.templateGlobalVariables=[],this.templateThemeStyle?this.templateAction="theme-style":this.templateColorPalette.length?this.templateAction="color-palette":this.convertTemplate(this.templateElements)},importThemeStyle:function(e){if(!1===e)return this.templateThemeStyle=void 0,void(this.templateAction=this.templateColorPalette.length?"color-palette":void 0);var t=this.$_clone(this.$_state.themeStyles),n=this.templateThemeStyle;t[n.id]={label:n.label,settings:n.settings},this.$_state.themeStyles=t,this.$_state.themeStyleActive=n.id,this.$_state.themeStyleSettings=n.settings,this.templateThemeStyle=void 0,this.templateGlobalVariables.length?this.templateAction="global-variables":this.templateColorPalette.length?this.templateAction="color-palette":this.convertTemplate(this.templateElements)},importColorPalette:function(e){if(!1===e)return this.templateAction=void 0,void(this.templateColorPalette=[]);var t=this.$_clone(this.$_state.colorPalette);t.push({id:this.$_generateId(),name:this.colorPaletteTitle,colors:this.templateColorPalette}),this.$_state.colorPalette=t,this.templateAction=void 0,this.templateColorPalette=[]},userCanEditTemplate:function(e){return"myTemplates"===this.templateSource&&(e.id!=this.bricks.postId&&(this.bricks.isAdmin||this.bricks.author===e.author))},getEditTemplateLink:function(e){return-1===e.indexOf("?")?"".concat(e,"?").concat(this.bricks.builderParam,"=run"):"".concat(e,"&").concat(this.bricks.builderParam,"=run")},templateExportUrl:function(e){if("myTemplates"===this.templateSource)return"".concat(this.bricks.ajaxUrl,"?action=bricks_export_template&nonce=").concat(this.bricks.nonce,"&templateId=").concat(e,"&builder=true")},cancel:function(){this.templateAction=void 0,this.templateTitle=void 0,this.templateType=void 0,this.templateBundle=void 0,this.templateTags=void 0,this.saveAsTemplate=!1},createTemplate:function(){var e=this;this.templateTitle&&this.templateType&&this.$_http({data:{action:"bricks_create_template",templateData:{templateTitle:this.templateTitle,templateType:this.templateType,templateBundle:this.templateBundle,templateTags:this.templateTags}},success:function(t){e.myTemplates=t.data,e.templateSource="myTemplates",e.templateAction=void 0,e.templateTitle=void 0,e.templateType=void 0,e.templateBundle=void 0,e.templateTags=void 0,e.$_showMessage(e.i18n.templateCreated)}})},deleteTemplate:function(e){var t=this;this.$_http({data:{action:"bricks_delete_template",templateId:e},success:function(e){var n=e.data.length;t.myTemplates.length!==n&&(t.myTemplates=e.data,t.$_state.deleteItem=!1,t.$_showMessage(t.i18n.templateDeleted))}})},saveTemplate:function(){var e=this;if(this.templateCanBeSaved){var t="content";"header"===this.templateType?t="header":"footer"===this.templateType&&(t="footer");var n=[];if(this.saveAsTemplate){var o=this.$_clone(this.saveAsTemplate);o.parent=0,n.push(o);!function t(o){o.children.forEach((function(o){var i,r=e.$_dynamicElements.value.find((function(e){return e.id===o}));r&&(n.push(r),e.$_isNestable(r)&&null!=r&&null!==(i=r.children)&&void 0!==i&&i.length&&t(r))}))}(o)}else n=this.$_dynamicElements.value;var i=ox({templateTitle:this.templateTitle,templateType:this.templateType,templateBundle:this.templateBundle,templateTags:this.templateTags},t,n);Object.keys(this.$_state.pageSettings)&&(i.pageSettings=this.$_state.pageSettings),this.$_http({data:{action:"bricks_save_template",templateData:JSON.stringify(i)},success:function(t){e.myTemplates=t.data.myTemplates,e.templateAction=void 0,e.templateTitle=void 0,e.templateType=void 0,e.templateBundle=void 0,e.templateTags=void 0,e.$_showMessage(e.i18n.savedAsTemplate)}})}},importFiles:function(e){var t=this,n=new FormData;n.append("action","bricks_import_template"),n.append("builder","true"),n.append("templateId",this.$_generateId());for(var o=0;o<e.length;o++){var i=e[o];n.append("files[".concat(o,"]"),i)}n.append("globalClasses",JSON.stringify(this.$_state.globalClasses)),n.append("pseudoClasses",JSON.stringify(this.$_state.pseudoClasses)),this.$_http({data:n,processData:!1,contentType:!1,success:function(e){var n,o,i,r,a,s;e.data.hasOwnProperty("error")?alert(e.data.error):(t.bricks.debug.includes("template")&&console.warn("bricks_import_template",e.data),Array.isArray(null===(n=e.data)||void 0===n?void 0:n.my_templates)&&null!==(o=e.data.my_templates)&&void 0!==o&&o.length&&(t.myTemplates=e.data.my_templates),Array.isArray(null===(i=e.data)||void 0===i?void 0:i.global_classes)&&null!==(r=e.data)&&void 0!==r&&r.global_classes.length&&(t.$_state.globalClasses=e.data.global_classes),Array.isArray(null===(a=e.data)||void 0===a?void 0:a.pseudo_classes)&&null!==(s=e.data)&&void 0!==s&&s.pseudo_classes.length&&(t.$_state.pseudoClasses=e.data.pseudo_classes),t.templateAction=void 0,t.$_showMessage(t.i18n.templateImported))}})},getRemoteTemplates:function(){var e=arguments,t=this;return nx(ex().mark((function n(){var o,i,r;return ex().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.length>0&&void 0!==e[0]&&e[0],i="remoteTemplates_".concat(t.templateSource),6048e5,n.prev=3,o){n.next=11;break}return n.next=7,t.$_getCachedData(i,6048e5);case 7:if(!(r=n.sent)){n.next=11;break}return t.remoteTemplatesBySource[t.templateSource]=r,n.abrupt("return");case 11:t.fetchRemoteTemplates(i),n.next=18;break;case 14:n.prev=14,n.t0=n.catch(3),console.error("Error fetching templates:",n.t0),t.errorMessage="Failed to load templates";case 18:case"end":return n.stop()}}),n,null,[[3,14]])})))()},fetchRemoteTemplates:function(e){var t,n=this;this.$_http({data:{action:"bricks_get_remote_templates_data",source:this.templateSource},beforeSend:function(){n.loading=!0,n.refreshing=!0,n.bricks.debug&&console.time("get_remote_templates_data")},success:(t=nx(ex().mark((function t(o){var i,r,a;return ex().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.loading=!1,n.refreshing=!1,n.bricks.debug&&(console.timeEnd("get_remote_templates_data"),console.info("get_remote_templates_data",o.data)),null!==(i=o.data)&&void 0!==i&&i.error){t.next=12;break}return t.prev=4,t.next=7,n.$_cacheData(e,o.data);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(4),console.error("Error caching templates data:",t.t0);case 12:if(null===(r=o.data)||void 0===r||!r.error){t.next=15;break}return n.errorMessage=null===(a=o.data)||void 0===a?void 0:a.error,t.abrupt("return");case 15:n.errorMessage=void 0,n.remoteTemplatesBySource[n.templateSource]=o.data;case 17:case"end":return t.stop()}}),t,null,[[4,9]])}))),function(e){return t.apply(this,arguments)})})},onDragOver:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!0},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1},onDrop:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1,this.importFiles(e.dataTransfer.files)},onNoDroppable:function(e){e.target.closest(".media-modal")||(e.preventDefault(),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none")},convertTemplate:function(e){var t=this;this.loading=!0,this.isInsertingTemplate=!0,this.templateThemeStyle=void 0,this.templateColorPalette=[];var n=function(){var n=nx(ex().mark((function n(){var o,i;return ex().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.$_clone(e),o={action:"bricks_convert_template",templateData:JSON.stringify(e),importImages:t.importImages,nonce:t.bricks.nonce},n.next=4,jQuery.ajax({context:t,url:t.bricks.ajaxUrl,type:"POST",data:o,beforeSend:function(e){t.bricks.debug&&console.info("beforeSend:res:data",e,o)}});case 4:return i=n.sent,n.abrupt("return",i.data);case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n().then((function(e){t.bricks.debug&&console.warn("convertTemplate",e);var n=!(null==e||!e.elements||!Array.isArray(e.elements))&&e.elements;n&&(t.replaceContent?(t.$_showPanel(),t.$_state[t.$_dynamicArea.value]=n):t.$_state[t.$_dynamicArea.value]=t.mergeTemplateAndContent(n),setTimeout((function(){t.$_state.popup=!1,t.$_showMessage(t.i18n.templateInserted),t.scrollToInsertedTemplate(n)}),400))}))},mergeTemplateAndContent:function(e){var t=this.$_clone(this.$_dynamicElements.value),n=!!this.$_state.activeId&&this.$_activeElement.value,o=!!n&&t.findIndex((function(e){return e.id===n.id})),i=n?n.parent:0;return 0==i||!1===o?t.concat(e):(e.forEach((function(e){0==e.parent&&(e.parent=i)})),t.splice.apply(t,[o+1,0].concat(ix(e))),t.forEach((function(o,r){if(o.id===i){var a,s=o.children.findIndex((function(e){return e===n.id}));if(-1!==s)(a=o.children).splice.apply(a,[s+1,0].concat(ix(e.filter((function(e){return e.parent==i})).map((function(e){return e.id}))))),t[r]=o}})),t)},scrollToInsertedTemplate:function(e){var t=document.getElementById("bricks-builder-iframe").contentWindow,n=t.document;if(Array.isArray(e)&&e.length){var o=this.$_dynamicElements.value.find((function(t){return t.id===e[0].id})),i=this.$_getElementNode(o,n);if(i){var r=i.getBoundingClientRect().top;t.scrollBy({top:r,behavior:"smooth"})}}}},created:function(){var e=this;localStorage.getItem("brx_template_import_images")&&(this.importImages=!0);var t=localStorage.getItem("brx_template_source");t&&this.templateSourceOptions.hasOwnProperty(t)&&(this.templateSource=t),this.$_http({data:{action:"bricks_get_my_templates_data"},success:function(t){e.myTemplates=t.data}})},mounted:function(){var e;(this.$refs.search&&this.$refs.search.focus(),window.addEventListener("dragenter",this.onNoDroppable),window.addEventListener("dragover",this.onNoDroppable),window.addEventListener("drop",this.onNoDroppable),this.saveAsTemplate)&&(this.templateAction="save",null!==(e=this.saveAsTemplate)&&void 0!==e&&e.label&&(this.templateTitle=this.saveAsTemplate.label));this.$refs.templateImportForm.addEventListener("dragover",this.onDragOver),this.$refs.templateImportForm.addEventListener("dragleave",this.onDragLeave),this.$refs.templateImportForm.addEventListener("drop",this.onDrop)},beforeUnmount:function(){this.saveAsTemplate=!1,window.removeEventListener("dragenter",this.onNoDroppable),window.removeEventListener("dragover",this.onNoDroppable),window.removeEventListener("drop",this.onNoDroppable),this.$refs.templateImportForm.removeEventListener("dragover",this.onDragOver),this.$refs.templateImportForm.removeEventListener("dragleave",this.onDragLeave),this.$refs.templateImportForm.removeEventListener("drop",this.onDrop)},watch:{importImages:function(e){e?localStorage.setItem("brx_template_import_images",!0):localStorage.removeItem("brx_template_import_images")},templateAction:function(e,t){e||-1===["theme-style","global-variables","color-palette"].indexOf(t)||this.convertTemplate(this.templateElements)},templateSource:function(){"myTemplates"!==this.templateSource&&this.getRemoteTemplates(),this.filterTemplateBundle=void 0,this.filterTemplateTag=void 0,localStorage.setItem("brx_template_source",this.templateSource)}}};const lx=(0,tm.Z)(sx,[["render",function(e,t,n,o,i,r){var a=no("control-select"),s=no("control-checkbox"),l=no("icon");return Yr(),oa("div",null,[ua("header",null,[ua("div",Dw,[ua("h2",{class:"title",textContent:de(e.i18n.source)},null,8,Nw),da(a,{value:i.templateSource,"onUpdate:value":t[0]||(t[0]=function(e){return i.templateSource=e}),control:{options:this.templateSourceOptions,clearable:!1}},null,8,["value","control"])]),ua("ul",jw,[ua("li",{class:"import-images","data-balloon":i.importImages?e.i18n.importImagesEnabled:e.i18n.importImagesDisabled,"data-balloon-pos":"bottom-right","data-balloon-length":"medium"},[ua("label",{class:ee({disabled:!i.importImages}),onClick:t[1]||(t[1]=function(e){return i.importImages=!i.importImages}),textContent:de(e.i18n.importImages)},null,10,Fw),da(s,{value:i.importImages,"onUpdate:value":t[2]||(t[2]=function(e){return i.importImages=e}),control:{type:"checkbox"},controlKey:"importImages"},null,8,["value"])],8,Vw),ua("li",{class:"replace-content","data-balloon":i.replaceContent?e.i18n.replaceContentEnabled:e.i18n.replaceContentDisabled,"data-balloon-pos":"bottom-right","data-balloon-length":"medium"},[ua("label",{class:ee({disabled:!i.replaceContent}),onClick:t[3]||(t[3]=function(e){return i.replaceContent=!i.replaceContent}),textContent:de(e.i18n.replaceContent)},null,10,qw),da(s,{value:i.replaceContent,"onUpdate:value":t[4]||(t[4]=function(e){return i.replaceContent=e}),control:{type:"checkbox"},controlKey:"replaceContent"},null,8,["value"])],8,Rw)])]),ua("div",Bw,[Io(ua("div",zw,[Object.keys(r.templateBundleOptions).length>0?(Yr(),ia(a,{key:0,value:i.filterTemplateBundle,"onUpdate:value":t[5]||(t[5]=function(e){return i.filterTemplateBundle=e}),control:r.controlTemplateBundle},null,8,["value","control"])):va("",!0),Object.keys(r.templateTagsOptions).length>0?(Yr(),ia(a,{key:1,value:i.filterTemplateTag,"onUpdate:value":t[6]||(t[6]=function(e){return i.filterTemplateTag=e}),control:r.controlTemplateTag},null,8,["value","control"])):va("",!0),da(a,{value:i.filterTemplateType,"onUpdate:value":t[7]||(t[7]=function(e){return i.filterTemplateType=e}),control:i.controlTemplateType},null,8,["value","control"]),Io(ua("input",{type:"search",ref:"search","onUpdate:modelValue":t[8]||(t[8]=function(e){return i.searchValue=e}),autocomplete:"off",spellcheck:"false",placeholder:e.i18n.searchTemplates},null,8,Hw),[[ml,i.searchValue]])],512),[[As,!i.templateAction]]),ua("ul",Ww,[Io(ua("li",{class:ee(["reload",{active:i.refreshing}]),"data-balloon":e.i18n.reload,"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=function(e){return r.getRemoteTemplates(!0)})},[da(l,{name:"refresh"})],10,Uw),[[As,"myTemplates"!==i.templateSource]]),ua("li",{class:ee(["create",{active:"create"===i.templateAction}]),"data-balloon":e.i18n.createTemplate,"data-balloon-pos":"top-right",onClick:t[10]||(t[10]=function(e){return i.templateAction="create"})},[da(l,{name:"add"})],10,Kw),ua("li",{class:ee(["save",{active:"save"===i.templateAction}]),"data-balloon":e.i18n.saveAsTemplate,"data-balloon-pos":"top-right",onClick:t[11]||(t[11]=function(e){return i.templateAction="save"})},[da(l,{name:"save"})],10,Gw),ua("li",{class:ee(["import",{active:"import"===i.templateAction}]),"data-balloon":e.i18n.importTemplate,"data-balloon-pos":"top-right",onClick:t[12]||(t[12]=function(e){return i.templateAction="import"})},[da(l,{name:"import"})],10,Zw)])]),ua("main",{class:ee(["content",{loading:i.loading}])},["theme-style"===i.templateAction&&i.templateThemeStyle?(Yr(),oa("div",Jw,[ua("p",{innerHTML:e.i18n.importTemplateThemeStyle},null,8,Yw),ua("div",Qw,[ua("button",{onClick:t[13]||(t[13]=El((function(e){return r.importThemeStyle(!0)}),["stop"])),textContent:de(e.i18n.yes)},null,8,Xw),ua("button",{onClick:t[14]||(t[14]=El((function(e){return r.importThemeStyle(!1)}),["stop"])),textContent:de(e.i18n.no)},null,8,ek)])])):va("",!0),"color-palette"===i.templateAction&&i.templateColorPalette?(Yr(),oa("div",tk,[ua("p",{innerHTML:e.i18n.importTemplateColorPalette},null,8,nk),ua("div",ok,[ua("button",{onClick:t[15]||(t[15]=El((function(e){return r.importColorPalette(!0)}),["stop"])),textContent:de(e.i18n.yes)},null,8,ik),ua("button",{onClick:t[16]||(t[16]=El((function(e){return r.importColorPalette(!1)}),["stop"])),textContent:de(e.i18n.no)},null,8,rk)]),ua("ul",null,[(Yr(!0),oa(Wr,null,gi(i.templateColorPalette,(function(e,t){return Yr(),oa("li",{key:t,style:Z({backgroundColor:e.hasOwnProperty("rgb")?e.rgb:e.hex}),"data-balloon":e.hasOwnProperty("rgb")?e.rgb:e.hex,"data-balloon-pos":"bottom"},null,12,ak)})),128))])])):va("",!0),"global-variables"===i.templateAction&&i.templateGlobalVariables.length>0?(Yr(),oa("div",sk,[ua("p",{innerHTML:e.i18n.importTemplateGlobalVariables},null,8,lk),ua("div",ck,[ua("button",{onClick:t[17]||(t[17]=El((function(e){return r.importGlobalVariables(!0)}),["stop"])),textContent:de(e.i18n.yes)},null,8,uk),ua("button",{onClick:t[18]||(t[18]=El((function(e){return r.importGlobalVariables(!1)}),["stop"])),textContent:de(e.i18n.no)},null,8,dk)]),ua("ul",null,[(Yr(!0),oa(Wr,null,gi(i.templateGlobalVariables,(function(e,t){return Yr(),oa("li",{key:t}," --"+de(e.name)+": "+de(e.value),1)})),128))])])):va("",!0),Io(ua("div",fk,[ua("div",{class:"title",textContent:de(e.i18n.createTemplateTitle)},null,8,pk),Io(ua("input",{type:"text",class:"input create",ref:"create","onUpdate:modelValue":t[19]||(t[19]=function(e){return i.templateTitle=e}),onKeyup:t[20]||(t[20]=Ml((function(){return r.createTemplate&&r.createTemplate.apply(r,arguments)}),["enter"])),placeholder:e.i18n.createTemplateTitlePlaceholder+" *"},null,40,hk),[[ml,i.templateTitle]]),da(a,{value:i.templateType,"onUpdate:value":t[21]||(t[21]=function(e){return i.templateType=e}),control:i.controlTemplateType},null,8,["value","control"]),da(a,{value:i.templateBundle,"onUpdate:value":t[22]||(t[22]=function(e){return i.templateBundle=e}),control:r.controlTemplateBundle},null,8,["value","control"]),da(a,{value:i.templateTags,"onUpdate:value":t[23]||(t[23]=function(e){return i.templateTags=e}),control:r.controlTemplateTag},null,8,["value","control"]),ua("button",{textContent:de(e.i18n.createTemplate),class:ee({active:i.templateTitle&&i.templateType}),disabled:!i.templateTitle||!i.templateType,onClick:t[24]||(t[24]=function(){return r.createTemplate&&r.createTemplate.apply(r,arguments)})},null,10,mk),ua("button",{class:"cancel",textContent:de(e.i18n.cancel),onClick:t[25]||(t[25]=function(){return r.cancel&&r.cancel.apply(r,arguments)})},null,8,gk)],512),[[As,"create"===i.templateAction]]),Io(ua("div",vk,[ua("div",bk,de(e.i18n.saveAsTemplate)+" ("+de(o.saveAsTemplate?e.i18n.element:e.bricks.postType)+") ",1),Io(ua("input",{type:"text",class:"input save",ref:"templateTitle","onUpdate:modelValue":t[26]||(t[26]=function(e){return i.templateTitle=e}),onKeyup:t[27]||(t[27]=Ml((function(){return r.saveTemplate&&r.saveTemplate.apply(r,arguments)}),["enter"])),placeholder:"".concat(e.i18n.placeholderTemplateName," *")},null,40,yk),[[ml,i.templateTitle]]),da(a,{value:i.templateType,"onUpdate:value":t[28]||(t[28]=function(e){return i.templateType=e}),control:i.controlTemplateType},null,8,["value","control"]),da(a,{value:i.templateBundle,"onUpdate:value":t[29]||(t[29]=function(e){return i.templateBundle=e}),control:r.controlTemplateBundle},null,8,["value","control"]),da(a,{value:i.templateTags,"onUpdate:value":t[30]||(t[30]=function(e){return i.templateTags=e}),control:r.controlTemplateTag},null,8,["value","control"]),ua("button",{textContent:de(e.i18n.saveAsTemplate),class:ee({active:r.templateCanBeSaved}),onClick:t[31]||(t[31]=function(){return r.saveTemplate&&r.saveTemplate.apply(r,arguments)})},null,10,wk),ua("button",{class:"cancel",textContent:de(e.i18n.cancel),onClick:t[32]||(t[32]=function(){return r.cancel&&r.cancel.apply(r,arguments)})},null,8,kk)],512),[[As,"save"===i.templateAction]]),Io(ua("div",xk,[ua("div",{class:"title",textContent:de(e.i18n.importTemplate)},null,8,Ck),ua("form",{class:ee(r.importTemplateFormWrapperClasses),ref:"templateImportForm",ondrop:""},[Io(ua("p",{textContent:de(e.i18n.importTemplateDragAndDrop)},null,8,_k),[[As,e.$_importHasDnDSupport]]),ua("input",{type:"file",id:"bricks-template-import-input",name:"files[]",multiple:"",onChange:t[33]||(t[33]=function(e){return r.importFiles(e.target.files)})},null,32),ua("label",{for:"bricks-template-import-input",textContent:de(e.i18n.selectFilesToImport)},null,8,Sk)],2),ua("button",{class:"cancel",textContent:de(e.i18n.cancel),onClick:t[34]||(t[34]=function(){return r.cancel&&r.cancel.apply(r,arguments)})},null,8,Tk)],512),[[As,"import"===i.templateAction]]),Io(ua("ul",$k,[(Yr(!0),oa(Wr,null,gi(r.templates,(function(n,o){return Yr(),oa("li",{key:o,class:"bricks-layout-item",onMouseleave:t[36]||(t[36]=function(t){return e.activeTemplate=void 0})},[ua("div",{class:ee(["bricks-layout-item-inner",{"has-img":n.thumbnail}])},[n.thumbnail?(Yr(),oa("img",{key:0,src:n.thumbnail,class:ee([n.cancelled?"cancelled":null])},null,10,Ek)):va("",!0),ua("div",Ik,[n.title?(Yr(),oa("div",{key:0,class:"title",textContent:de(n.title)},null,8,Mk)):va("",!0),ua("div",Ak,[-1===n.type.indexOf("wc_")||-1!==n.type.indexOf("wc_")&&e.bricks.wooCommerceActive?(Yr(),oa("button",{key:0,class:"download",onClick:function(e){return r.insertTemplate(r.templates[o])},textContent:de(e.i18n.insert)},null,8,Ok)):va("",!0),"myTemplates"===i.templateSource&&r.userCanEditTemplate(n)?(Yr(),oa("a",{key:1,class:"download",href:r.getEditTemplateLink(n.permalink),textContent:de(e.i18n.edit)},null,8,Pk)):va("",!0)])]),ua("div",Lk,[ua("div",Dk,[ua("div",Nk,[Io(ua("span",{class:"button text type",textContent:de(r.getTemplateTypeLabel(n.type)),"data-balloon":e.i18n.type,"data-balloon-pos":"top"},null,8,jk),[[As,n.type]]),Io(ua("span",{class:"button editing",textContent:de(e.i18n.editing)},null,8,Vk),[[As,e.bricks.postId==n.id]])]),ua("div",Fk,[r.userCanEditTemplate(n)&&e.$_state.deleteItem===n.id?(Yr(),oa("span",{key:0,class:"button confirm",onClick:El((function(e){return r.deleteTemplate(n.id)}),["stop"]),"data-balloon":e.i18n.sure,"data-balloon-pos":"top"},[da(l,{class:"delete",name:"check"})],8,Rk)):va("",!0),r.userCanEditTemplate(n)&&e.$_state.deleteItem!==n.id?(Yr(),oa("span",{key:1,class:"button delete",onClick:El((function(t){return e.$_deleteConfirmation(n.id)}),["stop"]),"data-balloon":e.i18n.delete,"data-balloon-pos":"top"},[da(l,{class:"delete",name:"trash"})],8,qk)):va("",!0),"myTemplates"===i.templateSource?(Yr(),oa("a",{key:2,class:"button export",href:r.templateExportUrl(n.id),target:"_blank","data-balloon":e.i18n.export,"data-balloon-pos":"top"},[da(l,{class:"export",name:"export"})],8,Bk)):va("",!0),ua("a",{class:"button",href:n.permalink,target:"_blank","data-balloon":e.i18n.preview,"data-balloon-pos":"top"},[da(l,{class:"preview",name:"preview"})],8,zk)])]),n.author?(Yr(),oa("div",Hk,[ua("span",{class:"avatar",style:Z({backgroundImage:"url("+n.author.avatar+")"})},null,4),n.author.url?(Yr(),oa("a",{key:0,href:n.author.url,target:"_blank",onClick:t[35]||(t[35]=El((function(){}),["stop"])),textContent:de(n.author.name)},null,8,Wk)):(Yr(),oa("span",{key:1,textContent:de(n.author.name)},null,8,Uk))])):va("",!0)]),n.cancelled?(Yr(),oa("span",{key:1,class:"button text new",textContent:de(e.i18n.new),"data-balloon":e.i18n.templateReleaseAfterCancellation,"data-balloon-pos":"top"},null,8,Kk)):va("",!0)],2)],32)})),128))],512),[[As,!i.loading&&r.templates.length&&!i.templateAction]]),Io(ua("div",Gk,[da(l,{name:"no-results"}),ua("div",Zk,[r.message?(Yr(),oa("p",{key:0,textContent:de(r.message)},null,8,Jk)):va("",!0)])],512),[[As,!i.loading&&!r.templates.length&&!i.templateAction]]),Io(ua("div",Yk,[Qk,ua("p",{textContent:de(i.isInsertingTemplate?"".concat(e.i18n.insertTemplate," ..."):"".concat(e.i18n.loadingTemplates," ..."))},null,8,Xk)],512),[[As,i.loading&&!i.templateThemeStyle&&!i.templateColorPalette.length]])],2)])}]]);var cx=lx,ux={key:0},dx={class:"filters"},fx=["textContent"],px=["textContent"],hx={class:"actions"},mx=["textContent"],gx=["data-balloon"],vx=["textContent"],bx={class:"sub-header flex"},yx={class:"search-wrapper"},wx=["placeholder"],kx=["textContent"],xx=["innerHTML"],Cx={key:0,class:"photos"},_x={class:"bricks-layout-wrapper isotope","data-layout":"masonry",ref:"isotope"},Sx=["src"],Tx={class:"overlay-wrapper"},$x={class:"item-header"},Ex={class:"button likes"},Ix=["onKeyup","placeholder"],Mx=["onClick"],Ax={key:0},Ox={key:0},Px=["textContent"],Lx=["textContent"],Dx={class:"user"},Nx=["href"],jx=["textContent"],Vx=ua("li",{class:"bricks-layout-item bricks-isotope-sizer"},null,-1),Fx=["textContent"],Rx={class:"brxe-alert rate-limit-reached"},qx=["textContent"],Bx={class:"loading"},zx=[ga('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)],Hx={class:"notification"},Wx=["textContent"],Ux={class:"notification"},Kx=["innerHTML"],Gx=["innerHTML"];function Zx(e){return Zx="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},Zx(e)}function Jx(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Jx=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof v?t:v,a=Object.create(r.prototype),s=new M(o||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var C=y.prototype=v.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,a,s){var l=d(e[i],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Zx(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,i){n(e,o,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,o){var i=f;return function(r,a){if(i===h)throw new Error("Generator is already running");if(i===m){if("throw"===r)throw a;return{value:e,done:!0}}for(o.method=r,o.arg=a;;){var s=o.delegate;if(s){var l=$(s,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===f)throw i=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=h;var c=d(t,n,o);if("normal"===c.type){if(i=o.done?m:p,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i=m,o.method="throw",o.arg=c.arg)}}}function $(t,n){var o=n.method,i=t.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Zx(t)+" is not iterable")}return b.prototype=y,i(C,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,i,r){void 0===r&&(r=Promise);var a=new S(u(e,n,o,i),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=A,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(o,i){return s.type="throw",s.arg=t,n.next=o,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Yx(e,t,n,o,i,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,i)}var Qx={data:function(){var e;return{renameFile:!1,downloading:[],downloadedItems:[],isotopeInstance:null,isSearch:!1,searchFor:void 0,searchResultsZero:!1,searchResultsTotal:null,searchResultsTotalPages:null,apiKey:null===(e=this.$_state.globalSettings)||void 0===e?void 0:e.apiKeyUnsplash,unsplash:{per_page:30,page:1,order_by:"latest",query:null},unsplashPhotos:[],loading:!0,error:!1,isLoadingMore:!1,rateLimitReached:!1,waitForNameInput:void 0,newFileName:""}},computed:{unsplashUrl:function(){return this.isSearch?"https://api.unsplash.com/search/photos?client_id=".concat(this.apiKey,"&per_page=").concat(this.unsplash.per_page,"&page=").concat(this.unsplash.page,"&query=").concat(this.unsplash.query):"https://api.unsplash.com/photos?client_id=".concat(this.apiKey,"&per_page=").concat(this.unsplash.per_page,"&page=").concat(this.unsplash.page,"&order_by=").concat(this.unsplash.order_by)},showLoadMore:function(){return!(!this.unsplashPhotos.length||this.rateLimitReached)&&(!this.isSearch||!!(this.searchResultsTotalPages&&this.unsplash.page<this.searchResultsTotalPages))},downloadText:function(){return"".concat(this.i18n.downloading,": ").concat(this.downloading.length)}},methods:{initDownload:function(e,t){if(!this.hasBeenDownloaded(e))if(this.renameFile){this.waitForNameInput=e.id;var n=t.currentTarget.parentNode.querySelector("input.rename");n&&this.$nextTick((function(){n.focus()}))}else this.downloadItem(e)},continueDownload:function(e){this.newFileName&&(e.renamed=this.newFileName),this.waitForNameInput=void 0,this.newFileName="",this.downloadItem(e)},isDownloading:function(e){return!(null==e||!e.id)&&-1!=this.downloading.indexOf(e.id)},hasBeenDownloaded:function(e){return!(null==e||!e.id)&&-1!=this.downloadedItems.indexOf(e.id)},downloadItem:function(e){var t,n,o=this;this.isDownloading(e.id)||this.downloading.push(e.id),(t=Jx().mark((function e(t){var n,i,r,a,s;return Jx().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.hasOwnProperty("renamed")?[t.renamed]:[t.user.first_name?t.user.first_name.toLowerCase():"",t.user.last_name?t.user.last_name.toLowerCase():"",t.id.toLowerCase()],i={Authorization:"Client-ID ".concat(o.apiKey)},r=t.links.download_location,e.next=5,fetch(r,{method:"GET",headers:i});case 5:return a=e.sent,e.next=8,a.json();case 8:s=e.sent;try{r=s.url,o.$_http({data:{action:"bricks_download_image",download_url:r,file_name:n.join("-")},success:function(e){e=e.data,o.bricks.debug&&console.info("bricks_download_image:url:id",r,e),-1!=o.isDownloading(t)&&o.downloading.splice(o.downloading.indexOf(t.id),1),o.hasBeenDownloaded(t)||o.downloadedItems.push(t.id)}})}catch(e){}case 10:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function a(e){Yx(r,o,i,a,s,"next",e)}function s(e){Yx(r,o,i,a,s,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)})(e)},orderByClass:function(e){return this.unsplash.order_by!==e||this.isSearch?null:"active"},order:function(e){this.clearSearch(),this.unsplash.order_by=e,this.unsplash.page=1},search:function(){this.searchFor?(this.isSearch=!0,this.unsplashPhotos=[],this.unsplash.query=this.searchFor):this.clearSearch()},clearSearch:function(){this.isSearch=!1,this.searchFor=void 0,this.searchResultsTotal=null,this.searchResultsTotalPages=null},getUnsplashPhotos:function(){var e=this;this.apiKey?this.unsplashUrl&&fetch(this.unsplashUrl).then((function(t){if(!(t.headers.get("x-ratelimit-remaining")<1))return e.rateLimitReached=!1,t.json();e.rateLimitReached=!0})).then((function(t){var n;1===e.unsplash.page&&(e.unsplashPhotos=[]),e.isSearch?(e.searchResultsTotal=t.total,e.searchResultsTotalPages=t.total_pages,0===e.searchResultsTotal?e.searchResultsZero=!0:e.searchResultsZero=!1,n=t.results):n=t,e.unsplashPhotos=e.unsplashPhotos.concat(n),setTimeout((function(){e.$_initIsotope()}),1e3),setTimeout((function(){e.showLoadMore&&new BricksIntersect({element:e.$refs.loadMoreButton,root:e.$refs.loadMoreButton?e.$refs.loadMoreButton.closest(".content"):null,callback:function(){e.loadMore()},once:!1})}),2e3)})).catch((function(t){e.error=e.i18n.unsplashErrorInvalidApiKey})):this.error=this.i18n.unsplashErrorNoApiKey},loadMore:function(){var e=this;!this.showLoadMore||this.isLoadingMore||this.rateLimitReached||(this.isLoadingMore=!0,this.unsplash.page++,setTimeout((function(){e.isLoadingMore=!1}),1e3))}},mounted:function(){window.addEventListener("resize",this.$_initIsotope())},beforeUnmount:function(){window.removeEventListener("resize",this.$_initIsotope)},watch:{searchFor:function(){this.searchFor||this.clearSearch()},renameFile:function(){this.renameFile||(this.waitForNameInput=void 0)},unsplashUrl:{handler:"getUnsplashPhotos",immediate:!0}}};const Xx=(0,tm.Z)(Qx,[["render",function(e,t,n,o,i,r){var a=no("control-checkbox"),s=no("icon");return Yr(),oa("div",null,[!i.error&&i.apiKey?(Yr(),oa("header",ux,[ua("ul",dx,[ua("li",{class:ee([r.orderByClass("latest")]),onClick:t[0]||(t[0]=function(e){return r.order("latest")}),textContent:de(e.i18n.latest)},null,10,fx),ua("li",{class:ee([r.orderByClass("popular")]),onClick:t[1]||(t[1]=function(e){return r.order("popular")}),textContent:de(e.i18n.mostPopular)},null,10,px)]),ua("ul",hx,[Io(ua("span",{class:"download-info",textContent:de(r.downloadText)},null,8,mx),[[As,i.downloading.length]]),ua("li",{class:"rename-images","data-balloon":i.renameFile?e.i18n.renameImagesEnabled:e.i18n.renameImagesDisabled,"data-balloon-pos":"bottom-right"},[ua("label",{class:ee({disabled:!i.renameFile}),onClick:t[2]||(t[2]=function(e){return i.renameFile=!i.renameFile}),textContent:de(e.i18n.renameImages)},null,10,vx),da(a,{value:i.renameFile,"onUpdate:value":t[3]||(t[3]=function(e){return i.renameFile=e}),control:{type:"checkbox"},controlKey:"renameFile"},null,8,["value"])],8,gx)])])):va("",!0),ua("div",bx,[ua("div",yx,[Io(ua("input",{type:"search","onUpdate:modelValue":t[4]||(t[4]=function(e){return i.searchFor=e}),autocomplete:"off",spellcheck:"false",onKeyup:t[5]||(t[5]=Ml((function(){return r.search&&r.search.apply(r,arguments)}),["enter"])),placeholder:e.i18n.unsplashSearchPlaceholder},null,40,wx),[[ml,i.searchFor]]),Io(ua("span",{textContent:de(i.searchResultsTotal+" "+e.i18n.results)},null,8,kx),[[As,i.searchResultsTotal]])]),ua("div",{class:"powered-by",innerHTML:e.i18n.poweredByUnsplash},null,8,xx)]),ua("main",{class:ee(["content",{centered:!i.unsplashPhotos.length}])},[i.unsplashPhotos.length?(Yr(),oa("div",Cx,[ua("ul",_x,[(Yr(!0),oa(Wr,null,gi(i.unsplashPhotos,(function(n,o){var a;return Yr(),oa("li",{class:"bricks-layout-item unsplash",key:o},[ua("div",{class:ee(["bricks-layout-item-inner","has-img",{downloaded:r.isDownloading(n)||r.hasBeenDownloaded(n)}])},[ua("img",{src:null==n||null===(a=n.urls)||void 0===a?void 0:a.small},null,8,Sx),ua("div",Tx,[ua("div",$x,[ua("div",Ex,[da(s,{name:"heart"}),ma(" "+de(null==n?void 0:n.likes),1)])]),Io(ua("input",{type:"text",class:"rename","onUpdate:modelValue":t[6]||(t[6]=function(e){return i.newFileName=e}),autocomplete:"off",spellcheck:"false",onKeyup:Ml((function(e){return r.continueDownload(n)}),["enter"]),placeholder:e.i18n.newImageName},null,40,Ix),[[As,i.waitForNameInput===(null==n?void 0:n.id)],[ml,i.newFileName]]),Io(ua("button",{class:ee(["download",{downloading:r.isDownloading(n)}]),onClick:El((function(e){return r.initDownload(n,e)}),["stop"])},[r.hasBeenDownloaded(n)?(Yr(),oa("span",{key:1,textContent:de(e.i18n.downloaded)},null,8,Lx)):(Yr(),oa("span",Ax,[r.isDownloading(n)?(Yr(),oa("span",Ox,[da(s,{name:"refresh"})])):(Yr(),oa("span",{key:1,textContent:de(e.i18n.clickToDownload)},null,8,Px))]))],10,Mx),[[As,i.waitForNameInput!==(null==n?void 0:n.id)]]),ua("div",Dx,[ua("a",{href:"".concat(n.user.links.html,"/?utm_source=bricksbuilderio&utm_medium=referral"),target:"_blank",onClick:t[7]||(t[7]=El((function(){}),["stop"]))},[ua("span",{class:"avatar",style:Z({backgroundImage:"url(".concat(n.user.profile_image.small,")")})},null,4),ua("span",{textContent:de(n.user.username)},null,8,jx)],8,Nx)])])],2)])})),128)),Vx],512),Io(ua("button",{onClick:t[8]||(t[8]=function(){return r.loadMore&&r.loadMore.apply(r,arguments)}),class:"button load-more",textContent:de(e.i18n.loadMore),ref:"loadMoreButton"},null,8,Fx),[[As,r.showLoadMore]]),Io(ua("div",Rx,[ua("p",{class:"alert info",textContent:de(e.i18n.unsplashErrorRateLimitReached)},null,8,qx)],512),[[As,i.rateLimitReached]])])):va("",!0),Io(ua("div",Bx,zx,512),[[As,!i.error&&i.apiKey&&i.loading]]),Io(ua("div",Hx,[da(s,{name:"no-results"}),ua("p",{textContent:de(e.i18n.nothingFoundKeyword)},null,8,Wx)],512),[[As,!i.error&&i.searchResultsZero]]),Io(ua("div",Ux,[ua("p",{innerHTML:i.error},null,8,Kx),ua("div",{innerHTML:e.i18n.unsplashSetApiKey},null,8,Gx)],512),[[As,i.error]])],2)])}]]);var eC=Xx,tC={class:"flex"},nC={class:"css-manager-source"},oC=["textContent"],iC={class:"sources"},rC=["textContent","onClick"],aC=["textContent"],sC={class:"actions"},lC=["data-balloon"],cC=["data-balloon"],uC=["data-balloon"],dC={class:"sub-header flex"},fC={class:"class-filters"},pC={class:"content"},hC={key:1,class:"column info"},mC={class:"toolbar"},gC=["textContent"],vC={class:"content"},bC=["innerHTML"],yC=["innerHTML"],wC=["innerHTML"],kC=["innerHTML"],xC=["innerHTML"],CC={key:0,class:"import action-wrapper"},_C=["textContent"];var SC={class:"column classes"},TC={class:"toolbar"},$C=["textContent"],EC={class:"actions flex"},IC=["data-balloon"],MC=["data-balloon"],AC=["data-balloon"],OC={class:"content"},PC=["onClick","onDragstart","onMouseenter"],LC={class:"name"},DC={key:1,class:"actions flex"},NC={key:1,class:"no-results"},jC={class:"input-wrapper"},VC=["placeholder"],FC={class:"actions"};function RC(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,a,s=[],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)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qC(e,t)}(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 qC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var BC={props:["includeString","excludeString","filterBy","sortBy"],setup:function(){return{activeClass:sn(Vf,"activeClass"),globalClasses:sn(Vf,"globalClasses"),globalClassesLocked:sn(Vf,"globalClassesLocked"),globalClassesSelectedManager:sn(Vf,"globalClassesSelectedManager"),globalClassesCategoriesSelected:sn(Vf,"globalClassesCategoriesSelected")}},data:function(){return{mounted:!1,showActions:!1,action:void 0,classInput:"",importResults:[],classListNodes:void 0,selectedClassNode:void 0,selectedClassIndex:-1,isCtrlPressed:!1,isShiftPressed:!1}},computed:{filteredClasses:function(){var e=this,t=this.$_clone(this.globalClasses);if(this.globalClassesCategoriesSelected.length&&(t=this.globalClassesCategoriesSelected.includes("uncategorized")?t.filter((function(e){return!e.category})):t.filter((function(t){return e.globalClassesCategoriesSelected.includes(t.category)}))),this.includeString&&(t=this.includeString.startsWith(".")?t.filter((function(t){return".".concat(t.name).startsWith(e.includeString)})):this.includeString.endsWith(".")?t.filter((function(t){return"".concat(t.name,".").endsWith(e.includeString)})):t.filter((function(t){return t.name.includes(e.includeString)}))),this.excludeString&&(t=this.excludeString.startsWith(".")?t.filter((function(t){return!".".concat(t.name).startsWith(e.excludeString)})):this.excludeString.endsWith(".")?t.filter((function(t){return!"".concat(t.name,".").endsWith(e.excludeString)})):t.filter((function(t){return!t.name.includes(e.excludeString)}))),"alphabetically"===this.sortBy&&t.sort((function(e,t){return e.name.localeCompare(t.name)})),Array.isArray(this.filterBy)){var n=new Set;["content","header","footer"].forEach((function(t){Vf[t]&&e.collectUsedClasses(Vf[t],n)})),this.filterBy.includes("usedOnPage")&&(t=t.filter((function(e){return n.has(e.id)}))),this.filterBy.includes("unusedOnPage")&&(t=t.filter((function(e){return!n.has(e.id)}))),this.filterBy.includes("hasStyles")&&(t=t.filter((function(e){return Object.keys(e.settings).length}))),this.filterBy.includes("hasNoStyles")&&(t=t.filter((function(e){return!Object.keys(e.settings).length}))),this.filterBy.includes("locked")&&(t=t.filter((function(t){return e.globalClassesLocked.includes(t.id)}))),this.filterBy.includes("unlocked")&&(t=t.filter((function(t){return!e.globalClassesLocked.includes(t.id)})))}return t.forEach((function(t){t._locked=e.globalClassesLocked.includes(t.id)})),t},elementClassIds:function(){var e;return Array.isArray(null===(e=this.settings)||void 0===e?void 0:e._cssGlobalClasses)?this.settings._cssGlobalClasses:[]},activeClassesCount:function(){var e=this;return this.elementClassIds.length?this.elementClassIds.filter((function(t){return e.$_getGlobalClassName(t)})).length:0},activeClassId:function(){var e;return null===(e=this.activeClass)||void 0===e?void 0:e.id},isLocked:function(){return!!this.activeClassId&&this.$_isLocked(this.activeClassId)}},methods:{dragstart:function(e,t){this.globalClassesSelectedManager.length<2&&(this.globalClassesSelectedManager=[this.filteredClasses[t].id])},selectAll:function(){this.globalClassesSelectedManager.length?this.globalClassesSelectedManager=[]:this.globalClassesSelectedManager=this.filteredClasses.map((function(e){return e.id}))},exportSelectedClasses:function(){var e=this,t=this.globalClasses.filter((function(t){return e.globalClassesSelectedManager.includes(t.id)}));this.$_exportAsJsonFile(t,"bricks-selected-css-classes")},deleteSelectedClasses:function(){var e=this;Vf.globalClasses=Vf.globalClasses.filter((function(t){return!e.globalClassesSelectedManager.includes(t.id)})),this.globalClassesSelectedManager=[],this.$_showMessage("".concat(this.i18n.deleted))},deleteGlobalClass:function(e){var t=this.globalClasses.findIndex((function(t){return t.id===e}));if(-1!==t){this.$_showMessage("".concat(this.i18n.deleted,": .").concat(this.globalClasses[t].name)),this.globalClasses.splice(t,1);var n=this.globalClassesSelectedManager.indexOf(e);-1!==n&&this.globalClassesSelectedManager.splice(n,1)}},collectUsedClasses:function(e,t){var n=this;Array.isArray(e)&&e.forEach((function(e){e.settings&&e.settings._cssGlobalClasses&&e.settings._cssGlobalClasses.forEach((function(e){return t.add(e)})),e.children&&n.collectUsedClasses(e.children,t)}))},selectCssClass:function(e){var t=this,n=null==e?void 0:e.id;n?(this.globalClassesSelectedManager=[n],this.$nextTick((function(){var e=t.$refs.classItem.find((function(e,o){return t.filteredClasses[o].id===n}));e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}))):delete this.globalClassesSelectedManager[n],this.$_state.rerenderControls=Date.now()},createClass:function(){var e=this;if(this.selectedClassNode&&(this.classInput=this.selectedClassNode.innerText.replace(/^\.+/,""),this.selectedClassNode.classList.contains("skip")))return this.selectCssClass(""),void(this.activeClass=void 0);if(this.classInput){this.classInput=this.classInput.trim(),this.classInput=this.classInput.replaceAll("#",""),this.classInput=this.classInput.replace(/^\.+/,"");var t=this.classInput.split(" ");t.length&&t.forEach((function(t){if(t){var n;t=t.replace(/^\.+/,"");var o=e.globalClasses.find((function(e){return e.name===t}));if(o)n=o;else{var i=e.$_generateId();n={id:i,name:t,settings:{}};var r=1===Vf.globalClassesCategoriesSelected.length&&e.globalClassesCategoriesSelected[0];r&&"uncategorized"!==r&&(n.category=r),e.globalClasses.push(n),e.$_showMessage("".concat(e.i18n.created,": ").concat(e.i18n.cssClass))}e.$nextTick((function(){e.selectCssClass(n),e.classInput=""}))}}))}},renameSelector:function(e){var t=this;if(this.action=void 0,e&&((e=(e=e.trim()).replaceAll(" ","-")).startsWith(".")&&(e=e.replace(".","")),e.startsWith("#")&&(e=e.replace("#",""))),!this.activeClass)return e?this.settings._cssId=e:delete this.settings._cssId,void this.$_showMessage("".concat(this.i18n.rename));if(e){var n=this.globalClasses.find((function(t){return t.name===e}));if(n)this.activeClass=n;else{var o=this.globalClasses.find((function(e){return e.id===t.activeClassId}));Object.entries(null==o?void 0:o.settings).forEach((function(n){var i=RC(n,2),r=i[0],a=i[1];r.startsWith("_cssCustom")&&(o.settings[r]=t.$_replaceCustomCssRoot(".".concat(o.name),".".concat(e),a))})),o.name=e,this.activeClass=o}}},selectClass:function(e,t,n){var o=this;if(e.target.closest(".lock"))this.lockClassId(t.id);else if(e.target.closest(".delete"))this.$_state.deleteItem===t.id?this.deleteGlobalClass(t.id):this.$_deleteConfirmation(t.id);else{if(this.isShiftPressed&&-1!==this.selectedClassIndex)for(var i=this.filteredClasses.findIndex((function(e){return e.id===o.globalClassesSelectedManager[0]})),r=n,a=Math.min(i,r),s=Math.max(i,r),l=a;l<=s;l++){var c=this.filteredClasses[l];this.globalClassesSelectedManager.includes(c.id)||this.globalClassesSelectedManager.push(c.id)}else if(this.isCtrlPressed){var u=this.globalClassesSelectedManager.indexOf(t.id);-1!==u?this.globalClassesSelectedManager.splice(u,1):this.globalClassesSelectedManager.push(t.id)}else this.globalClassesSelectedManager.includes(null==t?void 0:t.id)?this.globalClassesSelectedManager=[]:this.globalClassesSelectedManager=[null==t?void 0:t.id];this.selectedClassIndex=n}},lockClassId:function(e){var t=this.globalClassesLocked.indexOf(e);-1===t?this.globalClassesLocked.push(e):this.globalClassesLocked.splice(t,1)},copySettings:function(e){var t=this,n=this.$_getGlobalClass(e,!0),o=(null==n?void 0:n.settings)||{};if("#root"===e){var i=this.$_getElementConfig(this.element.name).controls;Object.keys(this.settings).forEach((function(e){var n=t.$_getControlKeyPlain(e);(i.hasOwnProperty(n)?i[n]:{}).hasOwnProperty("css")&&(o[e]=t.settings[e])}))}if(Object.keys(o).length){var r=null==n?void 0:n.name,a=this.$_clone(o);Object.keys(a).forEach((function(e){e.startsWith("_cssCustom")&&(a[e]=a[e].replaceAll(".".concat(r),"root"))})),this.$_writeToClipboard("bricksCopiedGlobalClassSettings",a).then((function(){t.$_showMessage("".concat(t.i18n.copied,": ").concat(t.i18n.styles))}))}else this.$_showMessage(this.i18n.nothingToCopy)},pasteSettings:function(e){var t=this;this.$_readFromClipboard("bricksCopiedGlobalClassSettings").then((function(n){var o=(null==n?void 0:n.content)||{},i=t.$_getGlobalClassName(e);Object.keys(o).forEach((function(e){e.startsWith("_cssCustom")&&(o[e]=o[e].replaceAll("root",".".concat(i)))})),o?t.pasteSettingsEnd(e,o):t.pasteSettingsFromElement(e),t.$_state.rerenderControls=Date.now()})).catch((function(){t.pasteSettingsFromElement(e)}))},pasteSettingsFromElement:function(e){var t=this;this.$_readFromClipboard("bricksCopiedElement").then((function(n){var o=(null==n?void 0:n.content)||{},i=(null==o?void 0:o.settings)||[];if(i){var r=t.$_getElementConfig(t.element.name).controls;Object.keys(i).forEach((function(e){var n=t.$_getControlKeyPlain(e),o=!!r.hasOwnProperty(n)&&r[n];o&&o.hasOwnProperty("css")||delete i[e]}))}i&&Object.keys(i).length?t.pasteSettingsEnd(e,i):t.$_showMessage(t.i18n.nothingToPaste)})).catch((function(){t.$_showMessage(t.i18n.nothingToPaste)}))},pasteSettingsEnd:function(e,t){var n,o=this,i=this.globalClasses.findIndex((function(t){return t.id===e}));-1!==i?(this.globalClasses[i].settings=t,(null===(n=this.globalClasses[i])||void 0===n?void 0:n.id)===this.activeClassId&&(this.activeClass=this.globalClasses[i])):Object.keys(t).forEach((function(e){o.element.settings[e]=t[e]}));this.$_showMessage(this.i18n.pasted)},onKeydown:function(e){"Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!0),"Shift"===e.key&&(this.isShiftPressed=!0)},onKeyup:function(e){var t=this;switch("Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!1),"Shift"===e.key&&(this.isShiftPressed=!1),this.classListNodes=this.$el.querySelectorAll(".bricks-control-popup li"),this.selectedClassNode=this.$el.querySelector(".bricks-control-popup li.selected"),e.key){case"ArrowUp":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex>0&&(this.selectedClassIndex-=1);break;case"ArrowDown":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex+1<this.classListNodes.length&&(this.selectedClassIndex+=1)}if(this.selectedClassNode=this.classListNodes[this.selectedClassIndex],this.selectedClassNode){this.selectedClassNode.classList.toggle("selected");var n=this.$el.querySelector(".bricks-control-popup .css-classes"),o=this.$el.querySelector(".bricks-control-popup .input-wrapper");n&&o&&this.$nextTick((function(){return n.scrollTo({top:t.selectedClassNode.offsetTop-o.offsetHeight})}))}},onWindowBlur:function(){this.isCtrlPressed=!1,this.isShiftPressed=!1},clearClassInput:function(){this.classInput=""}},mounted:function(){var e=this;setTimeout((function(){e.mounted=!0}),100),document.addEventListener("keyup",this.onKeyup),document.addEventListener("keydown",this.onKeydown),window.addEventListener("blur",this.onWindowBlur)},beforeUnmount:function(){document.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keydown",this.onKeydown),window.removeEventListener("blur",this.onWindowBlur)},watch:{globalClassesLocked:{handler:function(){this.$_state.activeClassIsLocked=this.activeClassId&&this.globalClassesLocked.includes(this.activeClassId)},deep:!0}}};var zC=(0,tm.Z)(BC,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("sortable"),l=no("control-info");return Yr(),oa("div",SC,[ua("div",TC,[ua("h6",{textContent:de("".concat(e.i18n.classes," (").concat(r.filteredClasses.length,")"))},null,8,$C),ua("ul",EC,[Io(ua("li",{"data-balloon":e.i18n.exportSelected,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(e){return r.exportSelectedClasses()})},[da(a,{name:"export"})],8,IC),[[As,o.globalClassesSelectedManager.length]]),Io(ua("li",{"data-balloon":"".concat(e.i18n.delete," (").concat(o.globalClassesSelectedManager.length,")"),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(t){return"classes"===e.$_state.deleteItem?r.deleteSelectedClasses():e.$_deleteConfirmation("classes")})},[da(a,{name:"classes"===e.$_state.deleteItem?"check":"trash"},null,8,["name"])],8,MC),[[As,o.globalClassesSelectedManager.length]]),ua("li",{"data-balloon":o.globalClassesSelectedManager.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selection):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return r.selectAll()})},[da(a,{name:o.globalClassesSelectedManager.length?"square-fill":"square"},null,8,["name"])],8,AC)])]),ua("div",OC,[i.mounted&&r.filteredClasses.length?(Yr(),ia(s,{key:0,tag:"ul",parent:o.globalClasses,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.filteredClasses,(function(t,n){return Yr(),oa("li",{key:t.id,ref_for:!0,ref:"classItem",class:ee(["sortable",{selected:o.globalClassesSelectedManager.includes(t.id)}]),onClick:El((function(e){return r.selectClass(e,t,n)}),["stop"]),onDragstart:function(e){return r.dragstart(e,n)},onMouseenter:function(e){return i.showActions=t.id}},[i.showActions===t.id?(Yr(),ia(a,{key:0,name:"move",class:"move"})):va("",!0),ua("span",LC,"."+de(t.name),1),i.showActions===t.id?(Yr(),oa("div",DC,[da(a,{class:ee(["lock",{locked:t._locked}]),name:t._locked?"locked":"unlocked","data-balloon":t._locked?e.i18n.unlock:e.i18n.lock,"data-balloon-pos":0===n?"bottom-right":"top-right"},null,8,["class","name","data-balloon","data-balloon-pos"]),!t._locked&&o.globalClassesSelectedManager.length<=1?(Yr(),ia(a,{key:0,class:"delete",name:e.$_state.deleteItem===t.id?"check":"trash","data-balloon":e.i18n.delete,"data-balloon-pos":0===n?"bottom-right":"top-right"},null,8,["name","data-balloon","data-balloon-pos"])):va("",!0)])):va("",!0)],42,PC)})),128))]})),_:1},8,["parent"])):(Yr(),oa("div",NC,[da(l,{control:{content:e.i18n.nothingFound}},null,8,["control"])]))]),ua("div",jC,[Io(ua("input",{ref:"classInput","onUpdate:modelValue":t[3]||(t[3]=function(e){return i.classInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.classNamePlaceholder," ..."),onKeyup:t[4]||(t[4]=Ml((function(e){return r.createClass()}),["enter"]))},null,40,VC),[[ml,i.classInput]]),ua("div",FC,[i.classInput.length?(Yr(),ia(a,{key:0,name:"save","data-balloon":e.i18n.create,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=function(e){return r.createClass()})},null,8,["data-balloon"])):va("",!0)])])])}]]),HC={class:"column categories"},WC={class:"toolbar"},UC=["textContent"],KC={class:"actions flex"},GC=["data-balloon"],ZC=["data-balloon"],JC={class:"content"},YC=["textContent"],QC={class:"count"},XC=["textContent"],e_={class:"count"},t_=["data-category-id","onClick"],n_=["id","value","readonly"],o_={class:"flex"},i_={class:"actions flex"},r_={class:"count"},a_={class:"input-wrapper"},s_=["placeholder"],l_={key:0,class:"actions"};function c_(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u_(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var d_={data:function(){return{categoryInput:"",selectedCategoryIndex:-1}},computed:{showDeleteButton:function(){return this.selectedCategories.length&&!this.selectedCategories.includes("uncategorized")},activeCategory:function(){return this.$_state.globalClassesCategoryActive},selectedCategories:function(){return this.$_state.globalClassesCategoriesSelected},countByCategoryId:function(){var e,t={},n=c_(this.$_state.globalClasses);try{for(n.s();!(e=n.n()).done;){var o=e.value,i=null==o?void 0:o.category;i&&(t.hasOwnProperty(i)?t[i]++:t[i]=1)}}catch(e){n.e(e)}finally{n.f()}return t}},mounted:function(){document.addEventListener("keyup",this.onKeyup),document.addEventListener("keydown",this.onKeydown),window.addEventListener("blur",this.onWindowBlur)},beforeUnmount:function(){document.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keydown",this.onKeydown),window.removeEventListener("blur",this.onWindowBlur)},methods:{isSelected:function(e){return"all"===e?0===this.selectedCategories.length:"uncategorized"===e?this.selectedCategories.includes("uncategorized"):this.selectedCategories.includes(e)},selectAll:function(){this.selectedCategoryIndex=-1,this.selectedCategories.length?this.$_state.globalClassesCategoriesSelected=[]:this.$_state.globalClassesCategoriesSelected=this.$_state.globalClassesCategories.map((function(e){return e.id}))},selectCategory:function(e,t){var n=null==e?void 0:e.id;if("uncategorized"===e)return this.$_state.globalClassesCategoriesSelected=["uncategorized"],void(this.selectedCategoryIndex=-1);if(!n)return this.$_state.globalClassesCategoriesSelected=[],void(this.selectedCategoryIndex=-1);if(this.isShiftPressed&&-1!==this.selectedCategoryIndex)for(var o=Math.min(this.selectedCategoryIndex,t),i=Math.max(this.selectedCategoryIndex,t),r=o;r<=i;r++){var a=this.$_state.globalClassesCategories[r];this.selectedCategories.includes(a.id)||this.selectedCategories.push(a.id)}else if(this.isCtrlPressed){var s=this.selectedCategories.indexOf(n);-1!==s?this.selectedCategories.splice(s,1):this.selectedCategories.push(n)}else this.$_state.globalClassesCategoriesSelected=[n];this.selectedCategoryIndex=t},createCategory:function(){var e=this;if(this.categoryInput&&(this.categoryInput=this.categoryInput.trim(),"all"!==this.categoryInput.toLowerCase()&&"uncategorized"!==this.categoryInput.toLowerCase())){var t=this.$_state.globalClassesCategories.find((function(t){return t.name===e.categoryInput}));if(t)this.$_state.globalClassesCategoryActive=t.id;else{var n={id:this.$_generateId(),name:this.categoryInput};this.$_state.globalClassesCategories.push(n),this.$_showMessage("".concat(this.i18n.saved,": ").concat(this.i18n.category)),this.$nextTick((function(){e.categoryInput="";var t=e.$refs.categoryItem.find((function(t,o){return e.$_state.globalClassesCategories[o].id===n.id}));t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}))}}},updateCategory:function(){var e=this,t=this.$el.querySelector("li.active input");t&&t.value&&(this.$_state.globalClassesCategories=this.$_state.globalClassesCategories.map((function(n){return n.id===e.activeCategory&&(n.name=t.value),n})),this.$_showMessage("".concat(this.i18n.updated,": ").concat(this.i18n.category))),this.$_state.globalClassesCategoryActive=null},deleteSelectedCategories:function(e){var t=this;if(e)return this.$_state.globalClassesCategories=this.$_state.globalClassesCategories.filter((function(t){return t.id!==e})),this.$_state.globalClasses.forEach((function(t){t.category===e&&delete t.category})),this.$_state.globalClassesCategoriesSelected=[],void this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.category));this.$_state.globalClassesCategories=this.$_state.globalClassesCategories.filter((function(e){return!t.selectedCategories.includes(e.id)})),this.$_state.globalClasses.forEach((function(e){null!=e&&e.category&&t.selectedCategories.includes(e.category)&&delete e.category})),this.$_state.globalClassesCategoriesSelected=[],this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.category))},onKeydown:function(e){"Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!0),"Shift"===e.key&&(this.isShiftPressed=!0)},onKeyup:function(e){var t=this;switch("Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!1),"Shift"===e.key&&(this.isShiftPressed=!1),this.classListNodes=this.$el.querySelectorAll(".bricks-control-popup li"),this.selectedClassNode=this.$el.querySelector(".bricks-control-popup li.selected"),e.key){case"ArrowUp":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex>0&&(this.selectedClassIndex-=1);break;case"ArrowDown":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex+1<this.classListNodes.length&&(this.selectedClassIndex+=1)}if(this.selectedClassNode=this.classListNodes[this.selectedClassIndex],this.selectedClassNode){this.selectedClassNode.classList.toggle("selected");var n=this.$el.querySelector(".bricks-control-popup .css-classes"),o=this.$el.querySelector(".bricks-control-popup .input-wrapper");n&&o&&this.$nextTick((function(){return n.scrollTo({top:t.selectedClassNode.offsetTop-o.offsetHeight})}))}},onWindowBlur:function(){this.isCtrlPressed=!1,this.isShiftPressed=!1}},watch:{activeCategory:function(){var e=this;this.$nextTick((function(){var t=e.$el.querySelector("li.active input");t&&t.focus()}))},selectedCategories:function(e){1!==e.length&&(this.$_state.globalClassesCategoryActive=null)}}};var f_=(0,tm.Z)(d_,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("sortable");return Yr(),oa("div",HC,[ua("div",WC,[ua("h6",{textContent:de(e.i18n.categories)},null,8,UC),ua("ul",KC,[r.showDeleteButton?(Yr(),oa("li",{key:0,"data-balloon":"categories"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.delete," (").concat(r.selectedCategories.length,")"),"data-balloon-pos":"bottom-right"},[da(a,{name:"categories"===e.$_state.deleteItem?"check":"trash",onClick:t[0]||(t[0]=function(t){return"categories"===e.$_state.deleteItem?r.deleteSelectedCategories():e.$_deleteConfirmation("categories")})},null,8,["name"])],8,GC)):va("",!0),ua("li",{"data-balloon":r.selectedCategories.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selection):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(e){return r.selectAll("all")})},[da(a,{name:r.selectedCategories.length?"square-fill":"square"},null,8,["name"])],8,ZC)])]),ua("div",JC,[da(s,{tag:"ul",parent:e.$_state.globalClassesCategories,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Kn((function(){return[ua("li",{class:ee(["all",{selected:r.isSelected("all")}]),onClick:t[2]||(t[2]=El((function(e){return r.selectCategory("all")}),["stop"]))},[ua("span",{class:"name",textContent:de("".concat(e.i18n.all))},null,8,YC),ua("span",QC,de(e.$_state.globalClasses.length),1)],2),ua("li",{class:ee(["uncategorized",{selected:r.isSelected("uncategorized")}]),onClick:t[3]||(t[3]=El((function(e){return r.selectCategory("uncategorized")}),["stop"]))},[ua("span",{class:"name",textContent:de("".concat(e.i18n.uncategorized))},null,8,XC),ua("span",e_,de(e.$_state.globalClasses.filter((function(e){return!(null!=e&&e.category)})).length),1)],2),(Yr(!0),oa(Wr,null,gi(e.$_state.globalClassesCategories,(function(n,o){return Yr(),oa("li",{key:n.id,ref_for:!0,ref:"categoryItem",class:ee([{active:n.id===r.activeCategory},{selected:r.isSelected(n.id)},{sortable:n.id!==r.activeCategory}]),"data-category-id":n.id,onClick:El((function(e){return r.selectCategory(n,o)}),["stop"])},[da(a,{name:"move",class:"move"}),ua("input",{type:"text",id:n.id,class:"name",autocomplete:"off",spellcheck:"false",onKeyup:t[4]||(t[4]=Ml((function(e){return r.updateCategory()}),["enter"])),value:n.name,readonly:n.id!==r.activeCategory},null,40,n_),ua("div",o_,[Io(ua("div",i_,[Io(da(a,{name:"save","data-balloon":e.i18n.save,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=El((function(e){return r.updateCategory()}),["stop"]))},null,8,["data-balloon"]),[[As,r.activeCategory]]),Io(da(a,{name:"close","data-balloon":e.i18n.cancel,"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=El((function(t){return e.$_state.globalClassesCategoryActive=null}),["stop"]))},null,8,["data-balloon"]),[[As,r.activeCategory]]),Io(da(a,{name:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:El((function(t){return e.$_state.globalClassesCategoryActive=n.id}),["stop"])},null,8,["data-balloon","onClick"]),[[As,!r.activeCategory]]),Io(da(a,{name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:El((function(e){return r.deleteSelectedCategories(n.id)}),["stop"])},null,8,["data-balloon","onClick"]),[[As,r.activeCategory===n.id]])],512),[[As,1===r.selectedCategories.length&&r.selectedCategories.includes(n.id)]]),ua("span",r_,de(r.countByCategoryId[null==n?void 0:n.id]||0),1)])],10,t_)})),128))]})),_:1},8,["parent"])]),ua("div",a_,[Io(ua("input",{ref:"categoryInput","onUpdate:modelValue":t[7]||(t[7]=function(e){return i.categoryInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.categoryNamePlaceholder," ..."),onKeyup:t[8]||(t[8]=Ml((function(e){return r.createCategory()}),["enter"]))},null,40,s_),[[ml,i.categoryInput]]),i.categoryInput?(Yr(),oa("div",l_,[da(a,{name:"save","data-balloon":e.i18n.create,"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=function(e){return r.createCategory()})},null,8,["data-balloon"])])):va("",!0)])])}]]),p_={class:"column edit"},h_={class:"toolbar"},m_=["textContent"],g_={class:"content"},v_={class:"actions flex"},b_=["textContent"],y_=["textContent"],w_=["textContent"],k_=["textContent"],x_={key:0,class:"rename"},C_={key:0,class:"form-group"},__=["textContent"],S_={key:1,class:"form-group"},T_=["textContent"],$_={key:2,class:"form-group"},E_=["textContent"],I_={key:3,class:"form-group"},M_=["textContent"],A_={key:4,class:"form-group"},O_=["textContent"],P_={class:"quick-actions"},L_=["textContent","disabled"],D_={class:"form-group"},N_=["textContent"],j_={class:"quick-actions"},V_=["textContent"],F_={key:2,class:"lock"},R_={key:3,class:"duplicate"},q_={class:"form-group"},B_=["textContent"],z_={class:"form-group"},H_=["textContent"],W_={class:"form-group"},U_=["textContent"],K_={class:"form-group"},G_=["textContent"],Z_={class:"quick-actions"},J_=["textContent","disabled"],Y_={class:"selected-classes"},Q_=["textContent"],X_=["textContent"],eS={key:4,class:"preview-classes"},tS=["textContent"],nS=["innerHTML"];function oS(e){return oS="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},oS(e)}function iS(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 rS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iS(Object(n),!0).forEach((function(t){aS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aS(e,t,n){var o;return o=function(e,t){if("object"!=oS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=oS(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==oS(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sS={data:function(){return{action:"rename",selectedCategory:"",activeClass:"",renameFindString:"",renameReplaceString:"",renamePrefix:"",renameSuffix:"",duplicateFindString:"",duplicateReplaceString:"",duplicatePrefix:"",duplicateSuffix:""}},computed:{selectedClassPreview:function(){var e=this,t=[];return["rename","duplicate"].includes(this.action)?(this.selectedClassIds.forEach((function(n){var o=e.$_state.globalClasses.find((function(e){return e.id===n})),i=null==o?void 0:o.name;i&&(e.activeClass.name&&(i=e.activeClass.name),"rename"===e.action?(e.renameFindString&&(i=i.replace(new RegExp(e.renameFindString,"g"),"<span>".concat(e.renameReplaceString,"</span>"))),e.renamePrefix&&(i="<span>".concat(e.renamePrefix,"</span>").concat(i)),e.renameSuffix&&(i="".concat(i,"<span>").concat(e.renameSuffix,"</span>"))):"duplicate"===e.action&&(e.duplicateFindString&&(i=i.replace(new RegExp(e.duplicateFindString,"g"),"<span>".concat(e.duplicateReplaceString,"</span>"))),e.duplicatePrefix&&(i="<span>".concat(e.duplicatePrefix,"</span>").concat(i)),e.duplicateSuffix&&(i="".concat(i,"<span>").concat(e.duplicateSuffix,"</span>"))),i&&t.push(i))})),t):t},selectedClassIds:function(){return this.$_state.globalClassesSelectedManager},categoryControl:function(){var e={uncategorized:this.i18n.uncategorized};return this.$_state.globalClassesCategories.forEach((function(t){e[t.id]=t.name})),{options:e,placeholder:this.i18n.select}},canRename:function(){var e;return!(!this.activeClass||null===(e=this.activeClass)||void 0===e||!e.name)||(!!((this.renameFindString||this.renamePrefix||this.renameSuffix)&&this.selectedClassIds.length>1)||void 0)},canDuplicate:function(){if((this.duplicateFindString||this.duplicatePrefix||this.duplicateSuffix)&&this.selectedClassIds.length)return!0}},methods:{setCategory:function(){var e=this;this.selectedCategory&&(this.$_state.globalClasses.forEach((function(t,n){e.selectedClassIds.includes(t.id)&&("uncategorized"===e.selectedCategory?t.category="":t.category=e.selectedCategory,e.$_state.globalClasses[n]=t)})),this.$_showMessage(this.i18n.updated))},lockClasses:function(){var e=this;this.selectedClassIds.forEach((function(t){e.$_state.globalClassesLocked.includes(t)||e.$_state.globalClassesLocked.push(t)})),this.$_showMessage(this.i18n.locked)},unlockClasses:function(){var e=this;this.selectedClassIds.forEach((function(t){var n=e.$_state.globalClassesLocked.indexOf(t);-1!==n&&e.$_state.globalClassesLocked.splice(n,1)})),this.$_showMessage(this.i18n.unlocked)},renameClasses:function(){var e=this;if(this.canRename)if(this.activeClass){var t=this.$_state.globalClasses.findIndex((function(t){return t.id===e.activeClass.id}));this.$_state.globalClasses.find((function(t){return t.name===e.activeClass.name}))?(alert("".concat(this.i18n.error,": ").concat(this.i18n.classNameExists)),this.activeClass.name=this.$_state.globalClasses[t].name):this.$_state.globalClasses[t].name=this.activeClass.name}else if(this.renamePrefix||this.renameSuffix||this.renameFindString){var n=0;this.selectedClassIds.forEach((function(t){var o=e.$_state.globalClasses.findIndex((function(e){return e.id===t})),i=e.$_clone(e.$_state.globalClasses[o]),r=i.name;e.renameFindString&&(r=r.replace(new RegExp(e.renameFindString,"g"),e.renameReplaceString));var a="".concat(e.renamePrefix).concat(r).concat(e.renameSuffix);a&&(e.$_state.globalClasses.some((function(e){return e.name===a}))||(i.name=a,e.$_state.globalClasses[o]=i,n++))})),this.$_showMessage("".concat(this.i18n.classesRenamed," (").concat(n,")")),this.renameFindString="",this.renameReplaceString="",this.renamePrefix="",this.renameSuffix=""}},duplicateClasses:function(){var e=this;if(this.canDuplicate){var t=[],n=0;this.selectedClassIds.forEach((function(o){var i=e.$_state.globalClasses.findIndex((function(e){return e.id===o})),r=e.$_clone(e.$_state.globalClasses[i]),a=r.name;e.duplicateFindString&&(a=a.replace(new RegExp(e.duplicateFindString,"g"),e.duplicateReplaceString));var s="".concat(e.duplicatePrefix).concat(a).concat(e.duplicateSuffix);if(s&&!e.$_state.globalClasses.some((function(e){return e.name===s}))){var l=rS(rS({},r),{},{id:e.$_generateId(),name:s});t.push(l),e.$_state.globalClasses.splice(i+1,0,l),n++}})),this.$_showMessage("".concat(this.i18n.classesDuplicated," (").concat(n,")")),this.duplicateFindString="",this.duplicateReplaceString="",this.duplicatePrefix="",this.duplicateSuffix=""}}},watch:{"$_state.globalClassesSelectedManager":{handler:function(e){if(1===e.length){var t=this.$_state.globalClasses.find((function(t){return t.id===e[0]}));this.activeClass=this.$_clone(t),t.category?this.selectedCategory=t.category:this.selectedCategory=""}else this.activeClass="",this.selectedCategory=""},immediate:!0,deep:!0}}};const lS=(0,tm.Z)(sS,[["render",function(e,t,n,o,i,r){var a=no("control-select"),s=no("icon");return Yr(),oa("div",p_,[ua("div",h_,[ua("h6",{textContent:de("".concat(e.i18n.edit," (").concat(e.$_state.globalClassesSelectedManager.length,")"))},null,8,m_)]),ua("div",g_,[ua("div",v_,[ua("button",{class:ee({active:"rename"===i.action}),onClick:t[0]||(t[0]=function(e){return i.action="rename"}),textContent:de(e.i18n.rename)},null,10,b_),e.$_state.globalClassesCategories.length?(Yr(),oa("button",{key:0,class:ee({active:"categorize"===i.action}),onClick:t[1]||(t[1]=function(e){return i.action="categorize"}),textContent:de(e.i18n.categorize)},null,10,y_)):va("",!0),ua("button",{class:ee({active:"lock"===i.action}),onClick:t[2]||(t[2]=function(e){return i.action="lock"}),textContent:de(e.i18n.lock)},null,10,w_),ua("button",{class:ee({active:"duplicate"===i.action}),onClick:t[3]||(t[3]=function(e){return i.action="duplicate"}),textContent:de(e.i18n.duplicate)},null,10,k_)]),"rename"===i.action?(Yr(),oa("div",x_,[ua("form",{onSubmit:t[10]||(t[10]=El((function(){}),["prevent"]))},[1===e.$_state.globalClassesSelectedManager.length?(Yr(),oa("div",C_,[ua("label",{textContent:de(e.i18n.name)},null,8,__),Io(ua("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.activeClass.name=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.activeClass.name]])])):va("",!0),e.$_state.globalClassesSelectedManager.length>1?(Yr(),oa("div",S_,[ua("label",{textContent:de(e.i18n.find)},null,8,T_),Io(ua("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return i.renameFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renameFindString]])])):va("",!0),e.$_state.globalClassesSelectedManager.length>1?(Yr(),oa("div",$_,[ua("label",{textContent:de(e.i18n.replaceWith)},null,8,E_),Io(ua("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return i.renameReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renameReplaceString]])])):va("",!0),e.$_state.globalClassesSelectedManager.length>1?(Yr(),oa("div",I_,[ua("label",{textContent:de(e.i18n.addPrefix)},null,8,M_),Io(ua("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return i.renamePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renamePrefix]])])):va("",!0),e.$_state.globalClassesSelectedManager.length>1?(Yr(),oa("div",A_,[ua("label",{textContent:de(e.i18n.addSuffix)},null,8,O_),Io(ua("input",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return i.renameSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renameSuffix]])])):va("",!0),ua("div",P_,[ua("button",{class:"save",onClick:t[9]||(t[9]=function(){return r.renameClasses&&r.renameClasses.apply(r,arguments)}),textContent:de(e.i18n.rename),disabled:!r.canRename},null,8,L_)])],32)])):"categorize"===i.action?(Yr(),oa("form",{key:1,onSubmit:t[13]||(t[13]=El((function(){}),["prevent"])),class:"categorize"},[ua("div",D_,[ua("label",{textContent:de(e.i18n.category)},null,8,N_),da(a,{value:i.selectedCategory,"onUpdate:value":t[11]||(t[11]=function(e){return i.selectedCategory=e}),control:r.categoryControl},null,8,["value","control"])]),ua("div",j_,[ua("button",{class:"save",onClick:t[12]||(t[12]=function(){return r.setCategory&&r.setCategory.apply(r,arguments)}),textContent:de(e.i18n.update)},null,8,V_)])],32)):"lock"===i.action?(Yr(),oa("div",F_,[ua("form",{onSubmit:t[16]||(t[16]=El((function(){}),["prevent"])),class:"quick-actions"},[ua("button",{onClick:t[14]||(t[14]=function(){return r.lockClasses&&r.lockClasses.apply(r,arguments)})},[da(s,{class:"lock",name:"locked"}),ma(" "+de(e.i18n.lock),1)]),ua("button",{onClick:t[15]||(t[15]=function(){return r.unlockClasses&&r.unlockClasses.apply(r,arguments)})},[da(s,{class:"unlock",name:"unlocked"}),ma(" "+de(e.i18n.unlock),1)])],32)])):"duplicate"===i.action?(Yr(),oa("div",R_,[ua("form",{onSubmit:t[22]||(t[22]=El((function(){}),["prevent"]))},[ua("div",q_,[ua("label",{textContent:de(e.i18n.find)},null,8,B_),Io(ua("input",{"onUpdate:modelValue":t[17]||(t[17]=function(e){return i.duplicateFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicateFindString]])]),ua("div",z_,[ua("label",{textContent:de(e.i18n.replaceWith)},null,8,H_),Io(ua("input",{"onUpdate:modelValue":t[18]||(t[18]=function(e){return i.duplicateReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicateReplaceString]])]),ua("div",W_,[ua("label",{textContent:de(e.i18n.addPrefix)},null,8,U_),Io(ua("input",{"onUpdate:modelValue":t[19]||(t[19]=function(e){return i.duplicatePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicatePrefix]])]),ua("div",K_,[ua("label",{textContent:de(e.i18n.addSuffix)},null,8,G_),Io(ua("input",{"onUpdate:modelValue":t[20]||(t[20]=function(e){return i.duplicateSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicateSuffix]])]),ua("div",Z_,[ua("button",{class:"save",onClick:t[21]||(t[21]=function(){return r.duplicateClasses&&r.duplicateClasses.apply(r,arguments)}),textContent:de(e.i18n.duplicate),disabled:!r.canDuplicate},null,8,J_)])],32)])):va("",!0),ua("div",Y_,[ua("h6",{textContent:de("".concat(e.i18n.selectedClasses," (").concat(r.selectedClassIds.length,")"))},null,8,Q_),ua("ul",null,[(Yr(!0),oa(Wr,null,gi(r.selectedClassIds,(function(t,n){return Yr(),oa("li",{key:t},[ua("span",{textContent:de(".".concat(e.$_getGlobalClassName(t)))},null,8,X_),da(s,{name:"close-box",onClick:function(t){return e.$_state.globalClassesSelectedManager.splice(n,1)}},null,8,["onClick"])])})),128))])]),r.selectedClassPreview.length?(Yr(),oa("div",eS,[ua("h6",{textContent:de("".concat(e.i18n.preview,":"))},null,8,tS),ua("ul",null,[(Yr(!0),oa(Wr,null,gi(r.selectedClassPreview,(function(e,t){return Yr(),oa("li",{key:t,innerHTML:e},null,8,nS)})),128))])])):va("",!0)])])}]]);var cS={components:{ClassesListView:zC,CategoriesListView:f_,ClassesEditor:lS},data:function(){return{managerSource:"classes",action:null,view:null,includeString:"",excludeString:"",filterBy:null,sortBy:null,category:null,importResults:[]}},computed:{sourceOptions:function(){var e={classes:this.i18n.classes,variables:this.i18n.variables};return this.bricks.disableClassManager&&delete e.classes,this.bricks.disableVariablesManager&&delete e.variables,e},showSearchInfo:function(){return this.includeString||this.excludeString}},methods:{saveClasses:function(){"alphabetically"===this.sortBy&&this.$_state.globalClasses.sort((function(e,t){return e.name.localeCompare(t.name)})),this.$_savePost()},classesImported:function(e){var t=this;Array.isArray(e)&&e.length&&(this.importResults=[],e.forEach((function(e){var n=[];e.forEach((function(e){t.$_state.globalClasses.find((function(t){return t.id===e.id}))||(t.$_state.globalClasses.push(e),n.push(e))})),t.importResults.push({text:"".concat(n.length,"/").concat(e.length," ").concat(t.i18n.globalClassesImported,"."),type:n.length?"success":"info"})})))}},watch:{"$_state.globalClassesCategoryActive":{handler:function(e){e?(this.view="category",this.category=this.$_state.globalClassesCategories.find((function(t){return t.id===e}))):(this.view=null,this.category=null)},immediate:!0},managerSource:function(){this.$_state.activeCssPopup=this.managerSource,this.$_state.popup=this.managerSource},"$_state.globalClassesCategoriesSelected":{handler:function(){this.$_state.globalClassesSelectedManager=[]},deep:!0,immediate:!0},"$_state.globalClassesSelectedManager":{handler:function(e){this.view=e.length?"edit":null},deep:!0,immediate:!0}}};const uS=(0,tm.Z)(cS,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-text"),l=no("control-select"),c=no("CategoriesListView"),u=no("ClassesListView"),d=no("ClassesEditor"),f=no("control-file-import");return Yr(),oa("div",null,[ua("header",tC,[ua("div",nC,[ua("h2",{class:"title",textContent:de(e.i18n.manage)},null,8,oC),ua("ul",iC,[(Yr(!0),oa(Wr,null,gi(r.sourceOptions,(function(t,n){return Yr(),oa("li",{class:ee(["source",n,{active:n===e.$_state.activeCssPopup}]),textContent:de(t),onClick:function(e){return i.managerSource=n}},null,10,rC)})),256))]),ua("p",{class:ee(["search-info",{show:r.showSearchInfo}]),textContent:de(e.i18n.globalClassManagerSearchInfo)},null,10,aC)]),ua("ul",sC,[ua("li",{class:ee(["import",{active:"import"===i.action}]),"data-balloon":e.i18n.import,"data-balloon-pos":"top",onClick:t[0]||(t[0]=function(e){return i.action="import"})},[da(a,{name:"import"})],10,lC),ua("li",{class:"export","data-balloon":e.i18n.export,"data-balloon-pos":"top",onClick:t[1]||(t[1]=function(t){return e.$_exportAsJsonFile(e.$_state.globalClasses,"bricks-css-classes")})},[da(a,{name:"export"})],8,cC),ua("li",{class:"save","data-balloon":e.i18n.save,"data-balloon-pos":"top",onClick:t[2]||(t[2]=function(){return r.saveClasses&&r.saveClasses.apply(r,arguments)})},[da(a,{name:"save"})],8,uC)])]),Io(ua("div",dC,[ua("ul",fC,[ua("li",{class:ee([{active:i.includeString}])},[da(a,{name:"search"}),da(s,{value:i.includeString,"onUpdate:value":t[3]||(t[3]=function(e){return i.includeString=e}),control:{dd:!1,clearable:!0,autoComplete:"off",spellcheck:!1,placeholder:"".concat(e.i18n.className," (").concat(e.i18n.include,")")}},null,8,["value","control"])],2),ua("li",{class:ee([{active:i.excludeString}])},[da(a,{name:"search"}),da(s,{value:i.excludeString,"onUpdate:value":t[4]||(t[4]=function(e){return i.excludeString=e}),control:{dd:!1,clearable:!0,placeholder:"".concat(e.i18n.className," (").concat(e.i18n.exclude,")")}},null,8,["value","control"])],2),ua("li",{class:ee([{active:i.sortBy}])},[da(a,{name:"sort-a-to-z"}),da(l,{value:i.sortBy,"onUpdate:value":t[5]||(t[5]=function(e){return i.sortBy=e}),control:{options:{alphabetically:e.i18n.alphabetically},placeholder:e.i18n.sort}},null,8,["value","control"])],2),ua("li",{class:ee([{active:i.filterBy}])},[da(a,{name:"filter-by"}),da(l,{value:i.filterBy,"onUpdate:value":t[6]||(t[6]=function(e){return i.filterBy=e}),control:{options:{usedOnPage:e.i18n.usedOnThisPage,unusedOnPage:e.i18n.unusedOnThisPage,hasStyles:e.i18n.hasStyles,hasNoStyles:e.i18n.hasNoStyles,locked:e.i18n.locked,unlocked:e.i18n.unlocked},multiple:!0,placeholder:e.i18n.filter}},null,8,["value","control"])],2)])],512),[[As,"import"!==i.action]]),Io(ua("main",pC,[da(c),da(u,{"include-string":i.includeString,"exclude-string":i.excludeString,"filter-by":i.filterBy,"sort-by":i.sortBy},null,8,["include-string","exclude-string","filter-by","sort-by"]),"edit"===i.view?(Yr(),ia(d,{key:0})):(Yr(),oa("div",hC,[ua("div",mC,[ua("h6",{textContent:de(e.i18n.globalClassManagerInfoTitle)},null,8,gC)]),ua("div",vC,[ua("ol",null,[ua("li",{innerHTML:e.i18n.globalClassManagerInfoCategory},null,8,bC),ua("li",{innerHTML:e.i18n.globalClassManagerInfoClass},null,8,yC),ua("li",{innerHTML:e.i18n.globalClassManagerInfoBulk},null,8,wC),ua("li",{innerHTML:e.i18n.globalClassManagerInfoOrder},null,8,kC),ua("li",{innerHTML:e.i18n.globalClassManagerInfoCategorize},null,8,xC)])])]))],512),[[As,!i.action]]),"import"===i.action?(Yr(),oa("div",CC,[ua("div",{class:"title",textContent:de("".concat(e.i18n.import,": ").concat(e.i18n.classes))},null,8,_C),da(f,{control:{fileType:"application/json",dragAndDropNote:e.i18n.importJsonDragAndDrop},results:i.importResults,onImported:r.classesImported,onCloseMe:t[7]||(t[7]=function(e){return i.action=void 0})},null,8,["control","results","onImported"])])):va("",!0)])}]]);var dS=uS,fS={class:"flex"},pS={class:"css-manager-source"},hS=["textContent"],mS={class:"sources"},gS=["textContent","onClick"],vS=["textContent"],bS={class:"actions"},yS=["data-balloon"],wS=["data-balloon"],kS=["data-balloon"],xS={class:"sub-header flex"},CS={class:"class-filters"},_S={class:"content"},SS={key:1,class:"column info"},TS={class:"toolbar"},$S=["textContent"],ES={class:"content"},IS=["innerHTML"],MS=["innerHTML"],AS=["innerHTML"],OS=["innerHTML"],PS=["innerHTML"],LS={key:0,class:"content import action-wrapper"},DS=["textContent"],NS={class:"import-textarea"},jS=["textContent"],VS=["textContent"];var FS={class:"column variables"},RS={class:"toolbar"},qS=["textContent"],BS={class:"actions flex"},zS=["data-balloon"],HS=["data-balloon"],WS=["data-balloon"],US={class:"content"},KS=["onClick","onDragstart"],GS={id:"variable-item"},ZS={class:"variable-name-container"},JS=ua("span",{class:"variable-prefix"},"--",-1),YS=["value","onInput"],QS={class:"variable-value-container"},XS=["value","onInput"],eT={class:"actions flex"},tT={key:1,class:"no-results"},nT={class:"new-variable-wrapper"},oT={class:"variable-name"},iT=ua("span",{class:"variable-prefix"},"--",-1),rT=["placeholder"],aT={class:"variable-value"},sT=["placeholder"],lT={class:"actions"};function cT(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,a,s=[],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)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uT(e,t)}(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 uT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function dT(e){return dT="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},dT(e)}var fT={props:["includeString","excludeString","filterBy","sortBy"],setup:function(){return{activeVariable:sn(Vf,"activeVariable"),globalVariables:sn(Vf,"globalVariables"),globalVariablesSelected:sn(Vf,"globalVariablesSelected"),globalVariablesCategoriesSelected:sn(Vf,"globalVariablesCategoriesSelected")}},data:function(){return{showActions:!1,action:void 0,newVariableName:"",newVariableValue:"",importResults:[],variableListNodes:void 0,selectedVariableNode:void 0,selectedVariableIndex:-1,isCtrlPressed:!1,isShiftPressed:!1}},computed:{isEditorActive:function(){return"edit"===this.view},filteredVariables:function(){var e=this,t=this.$_clone(this.globalVariables);if(this.globalVariablesCategoriesSelected.length&&(t=this.globalVariablesCategoriesSelected.includes("uncategorized")?t.filter((function(e){return!e.category})):t.filter((function(t){return e.globalVariablesCategoriesSelected.includes(t.category)}))),this.includeString&&(t=this.includeString.startsWith(".")?t.filter((function(t){return".".concat(t.name).startsWith(e.includeString)})):this.includeString.endsWith(".")?t.filter((function(t){return"".concat(t.name,".").endsWith(e.includeString)})):t.filter((function(t){return t.name.includes(e.includeString)}))),this.excludeString&&(t=this.excludeString.startsWith(".")?t.filter((function(t){return!".".concat(t.name).startsWith(e.excludeString)})):this.excludeString.endsWith(".")?t.filter((function(t){return!"".concat(t.name,".").endsWith(e.excludeString)})):t.filter((function(t){return!t.name.includes(e.excludeString)}))),"alphabetically"===this.sortBy&&t.sort((function(e,t){return e.name.localeCompare(t.name)})),Array.isArray(this.filterBy)){var n=new Set;["content","header","footer"].forEach((function(t){Vf[t]&&e.collectUsedVariables(Vf[t],n)})),this.filterBy.includes("usedOnPage")&&(t=t.filter((function(e){return n.has(e.name)}))),this.filterBy.includes("unusedOnPage")&&(t=t.filter((function(e){return!n.has(e.name)})))}return t},elementVariableIds:function(){var e;return Array.isArray(null===(e=this.settings)||void 0===e?void 0:e._cssGlobalVariables)?this.settings._cssGlobalVariables:[]},activeVariablesCount:function(){var e=this;return this.elementVariableIds.length?this.elementVariableIds.filter((function(t){return e.$_getGlobalVariableName(t)})).length:0},activeVariableId:function(){var e;return null===(e=this.activeVariable)||void 0===e?void 0:e.id}},methods:{updateVariable:function(e,t,n){var o=this.globalVariables.findIndex((function(t){return t.id===e}));-1!==o&&(n?this.globalVariables[o].name=t:this.globalVariables[o].value=t)},dragstart:function(e,t){this.globalVariablesSelected.length<2&&(this.globalVariablesSelected=[this.filteredVariables[t].id])},selectAll:function(){this.globalVariablesSelected.length?this.globalVariablesSelected=[]:this.globalVariablesSelected=this.filteredVariables.map((function(e){return e.id}))},exportSelectedVariables:function(){var e=this,t=this.globalVariables.filter((function(t){return e.globalVariablesSelected.includes(t.id)}));this.$_exportAsJsonFile(t,"bricks-selected-css-variables")},deleteSelectedVariables:function(){var e=this;Vf.globalVariables=Vf.globalVariables.filter((function(t){return!e.globalVariablesSelected.includes(t.id)})),this.globalVariablesSelected=[],this.$_showMessage("".concat(this.i18n.deleted))},deleteGlobalVariable:function(e){var t=this.globalVariables.findIndex((function(t){return t.id===e}));if(-1!==t){this.$_showMessage("".concat(this.i18n.deleted,": .").concat(this.globalVariables[t].name)),this.globalVariables.splice(t,1);var n=this.globalVariablesSelected.indexOf(e);-1!==n&&this.globalVariablesSelected.splice(n,1)}},collectUsedVariables:function(e,t){e.forEach((function n(o){o.settings&&function e(n){Object.values(n).forEach((function(n){"string"==typeof n?function(e){for(var n,o=/var\(--(.*?)\)/g;null!==(n=o.exec(e));)t.add(n[1])}(n):"object"===dT(n)&&null!==n&&(Array.isArray(n)?n.forEach((function(t){return e(t)})):e(n))}))}(o.settings),o.children&&o.children.forEach((function(t){var o=e.find((function(e){return e.id===t}));o&&n(o)}))}))},traverseSettings:function(e,t){var n=this;Object.values(e).forEach((function(e){"string"==typeof e?function(e){for(var n,o=/var\(--(.*?)\)/g;null!==(n=o.exec(e));)t.add(n[1])}(e):"object"===dT(e)&&null!==e&&(Array.isArray(e)?e.forEach((function(e){return n.traverseSettings(e,t)})):n.traverseSettings(e,t))}))},checkSettingForVariables:function(e,t){Object.values(e).forEach((function(e){if("string"==typeof e&&e.startsWith("var(--")){var n=e.substring(4,e.length-1);t.add(n)}}))},selectCssVariable:function(e){var t=this,n=null==e?void 0:e.id;n?(this.globalVariablesSelected=[n],this.$nextTick((function(){var e=t.$refs.variableItem.find((function(e,o){return t.filteredVariables[o].id===n}));e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}))):delete this.globalVariablesSelected[n],this.$_state.rerenderControls=Date.now()},createVariable:function(){if(""!==this.newVariableName&&""!==this.newVariableValue){this.newVariableName.startsWith("var(")&&(this.newVariableName=this.newVariableName.substring(4,this.newVariableName.length-1)),this.newVariableName.startsWith("--")&&(this.newVariableName=this.newVariableName.substring(2));var e=this.newVariableName.trim().replace(/^var\(--/,"").replace(/\)$/,"");if(e){var t=this.newVariableValue.trim();if(this.globalVariables.find((function(t){return t.name===e})))this.$_showMessage("Variable already exists.");else{var n={id:this.$_generateId(),name:e,value:t};1===this.globalVariablesCategoriesSelected.length&&"uncategorized"!==this.globalVariablesCategoriesSelected[0]&&(n.category=this.globalVariablesCategoriesSelected[0]),this.globalVariables.push(n),this.$_showMessage("Variable created: ".concat(e)),this.newVariableName="",this.newVariableValue=""}}else this.$_showMessage("Please enter a variable name.")}},renameSelector:function(e){var t=this;if(this.action=void 0,e&&((e=(e=e.trim()).replaceAll(" ","-")).startsWith(".")&&(e=e.replace(".","")),e.startsWith("#")&&(e=e.replace("#",""))),!this.activeVariable)return e?this.settings._cssId=e:delete this.settings._cssId,void this.$_showMessage("".concat(this.i18n.rename));if(e){var n=this.globalVariables.find((function(t){return t.name===e}));if(n)this.activeVariable=n;else{var o=this.globalVariables.find((function(e){return e.id===t.activeVariableId}));Object.entries(null==o?void 0:o.settings).forEach((function(n){var i=cT(n,2),r=i[0],a=i[1];r.startsWith("_cssCustom")&&(o.settings[r]=t.$_replaceCustomCssRoot(".".concat(o.name),".".concat(e),a))})),o.name=e,this.activeVariable=o}}},selectVariable:function(e,t){var n=this;if(this.isShiftPressed&&-1!==this.selectedVariableIndex)for(var o=this.filteredVariables.findIndex((function(e){return e.id===n.globalVariablesSelected[0]})),i=t,r=Math.min(o,i),a=Math.max(o,i),s=r;s<=a;s++){var l=this.filteredVariables[s];this.globalVariablesSelected.includes(l.id)||this.globalVariablesSelected.push(l.id)}else if(this.isCtrlPressed){var c=this.globalVariablesSelected.indexOf(e.id);-1!==c?this.globalVariablesSelected.splice(c,1):this.globalVariablesSelected.push(e.id)}else this.globalVariablesSelected.includes(null==e?void 0:e.id)?this.globalVariablesSelected=[]:this.globalVariablesSelected=[null==e?void 0:e.id];this.selectedVariableIndex=t},copySettings:function(e){var t=this,n=this.$_getGlobalVariable(e,!0),o=(null==n?void 0:n.settings)||{};if("#root"===e){var i=this.$_getElementConfig(this.element.name).controls;Object.keys(this.settings).forEach((function(e){var n=t.$_getControlKeyPlain(e);(i.hasOwnProperty(n)?i[n]:{}).hasOwnProperty("css")&&(o[e]=t.settings[e])}))}if(Object.keys(o).length){var r=null==n?void 0:n.name,a=this.$_clone(o);Object.keys(a).forEach((function(e){e.startsWith("_cssCustom")&&(a[e]=a[e].replaceAll(".".concat(r),"root"))})),this.$_writeToClipboard("bricksCopiedGlobalVariableSettings",a).then((function(){t.$_showMessage("".concat(t.i18n.copied,": ").concat(t.i18n.styles))}))}else this.$_showMessage(this.i18n.nothingToCopy)},pasteSettings:function(e){var t=this;this.$_readFromClipboard("bricksCopiedGlobalVariableSettings").then((function(n){var o=(null==n?void 0:n.content)||{},i=t.$_getGlobalVariableName(e);Object.keys(o).forEach((function(e){e.startsWith("_cssCustom")&&(o[e]=o[e].replaceAll("root",".".concat(i)))})),o?t.pasteSettingsEnd(e,o):t.pasteSettingsFromElement(e),t.$_state.rerenderControls=Date.now()})).catch((function(){t.pasteSettingsFromElement(e)}))},pasteSettingsFromElement:function(e){var t=this;this.$_readFromClipboard("bricksCopiedElement").then((function(n){var o=(null==n?void 0:n.content)||{},i=(null==o?void 0:o.settings)||[];if(i){var r=t.$_getElementConfig(t.element.name).controls;Object.keys(i).forEach((function(e){var n=t.$_getControlKeyPlain(e),o=!!r.hasOwnProperty(n)&&r[n];o&&o.hasOwnProperty("css")||delete i[e]}))}i&&Object.keys(i).length?t.pasteSettingsEnd(e,i):t.$_showMessage(t.i18n.nothingToPaste)})).catch((function(){t.$_showMessage(t.i18n.nothingToPaste)}))},pasteSettingsEnd:function(e,t){var n,o=this,i=this.globalVariables.findIndex((function(t){return t.id===e}));-1!==i?(this.globalVariables[i].settings=t,(null===(n=this.globalVariables[i])||void 0===n?void 0:n.id)===this.activeVariableId&&(this.activeVariable=this.globalVariables[i])):Object.keys(t).forEach((function(e){o.element.settings[e]=t[e]}));this.$_showMessage(this.i18n.pasted)},onKeydown:function(e){"Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!0),"Shift"===e.key&&(this.isShiftPressed=!0)},onKeyup:function(e){var t=this;switch("Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!1),"Shift"===e.key&&(this.isShiftPressed=!1),this.variableListNodes=this.$el.querySelectorAll(".bricks-control-popup li"),this.selectedVariableNode=this.$el.querySelector(".bricks-control-popup li.selected"),e.key){case"ArrowUp":this.selectedVariableNode&&this.selectedVariableNode.variableList.remove("selected"),this.selectedVariableIndex>0&&(this.selectedVariableIndex-=1);break;case"ArrowDown":this.selectedVariableNode&&this.selectedVariableNode.variableList.remove("selected"),this.selectedVariableIndex+1<this.variableListNodes.length&&(this.selectedVariableIndex+=1)}if(this.selectedVariableNode=this.variableListNodes[this.selectedVariableIndex],this.selectedVariableNode){this.selectedVariableNode.variableList.toggle("selected");var n=this.$el.querySelector(".bricks-control-popup .css-variables"),o=this.$el.querySelector(".bricks-control-popup .input-wrapper");n&&o&&this.$nextTick((function(){return n.scrollTo({top:t.selectedVariableNode.offsetTop-o.offsetHeight})}))}},onWindowBlur:function(){this.isCtrlPressed=!1,this.isShiftPressed=!1},clearVariableInput:function(){this.variableInput=""}},mounted:function(){document.addEventListener("keyup",this.onKeyup),document.addEventListener("keydown",this.onKeydown),window.addEventListener("blur",this.onWindowBlur)},beforeUnmount:function(){document.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keydown",this.onKeydown),window.removeEventListener("blur",this.onWindowBlur)}};var pT=(0,tm.Z)(fT,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("sortable"),l=no("control-info");return Yr(),oa("div",FS,[ua("div",RS,[ua("h6",{textContent:de("".concat(e.i18n.variables," (").concat(r.filteredVariables.length,")"))},null,8,qS),ua("ul",BS,[Io(ua("li",{"data-balloon":e.i18n.exportSelected,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(e){return r.exportSelectedVariables()})},[da(a,{name:"export"})],8,zS),[[As,o.globalVariablesSelected.length]]),Io(ua("li",{"data-balloon":"".concat(e.i18n.delete," (").concat(o.globalVariablesSelected.length,")"),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(t){return"variables"===e.$_state.deleteItem?r.deleteSelectedVariables():e.$_deleteConfirmation("variables")})},[da(a,{name:"variables"===e.$_state.deleteItem?"check":"trash"},null,8,["name"])],8,HS),[[As,o.globalVariablesSelected.length]]),ua("li",{"data-balloon":o.globalVariablesSelected.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selection):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return r.selectAll()})},[da(a,{name:o.globalVariablesSelected.length?"square-fill":"square"},null,8,["name"])],8,WS)])]),ua("div",US,[r.filteredVariables.length?(Yr(),ia(s,{key:0,tag:"ul",parent:o.globalVariables,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.filteredVariables,(function(t,n){return Yr(),oa("li",{key:t.id,ref_for:!0,ref:"variableItem",class:ee(["sortable",{selected:o.globalVariablesSelected.includes(t.id)}]),onClick:El((function(e){return r.selectVariable(t,n)}),["stop"]),onDragstart:function(e){return r.dragstart(e,n)}},[da(a,{name:"move",class:"move"}),ua("div",GS,[ua("div",ZS,[JS,ua("input",{type:"text",class:"variable-name",value:t.name,onInput:function(e){return r.updateVariable(t.id,e.target.value,!0)}},null,40,YS)]),ua("div",QS,[da(a,{name:"equal",class:"value-icon"}),ua("input",{type:"text",class:"variable-value",value:t.value,onInput:function(e){return r.updateVariable(t.id,e.target.value,!1)}},null,40,XS)])]),ua("div",eT,[o.globalVariablesSelected.length<=1?(Yr(),ia(a,{key:0,name:e.$_state.deleteItem===t.id?"check":"trash","data-balloon":e.i18n.delete,"data-balloon-pos":0===n?"bottom-right":"top-right",onClick:El((function(n){return e.$_state.deleteItem===t.id?r.deleteGlobalVariable(t.id):e.$_deleteConfirmation(t.id)}),["stop"])},null,8,["name","data-balloon","data-balloon-pos","onClick"])):va("",!0)])],42,KS)})),128))]})),_:1},8,["parent"])):(Yr(),oa("div",tT,[da(l,{control:{content:e.i18n.globalVariableManagerNothingFound}},null,8,["control"])]))]),ua("div",nT,[ua("div",oT,[iT,Io(ua("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return i.newVariableName=e}),type:"text",placeholder:e.i18n.variableNamePlaceholder},null,8,rT),[[ml,i.newVariableName]])]),ua("div",aT,[Io(ua("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.newVariableValue=e}),type:"text",spellcheck:"false",placeholder:e.i18n.value},null,8,sT),[[ml,i.newVariableValue]])]),ua("div",lT,[da(a,{name:"save","data-balloon":e.i18n.create,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=function(e){return r.createVariable()})},null,8,["data-balloon"])])])])}]]),hT={class:"column categories"},mT={class:"toolbar"},gT=["textContent"],vT={class:"actions flex"},bT=["data-balloon"],yT=["data-balloon"],wT={class:"content"},kT=["textContent"],xT={class:"count"},CT=["textContent"],_T={class:"count"},ST=["data-category-id","onClick"],TT=["id","value","readonly"],$T={class:"flex"},ET={class:"actions flex"},IT={class:"count"},MT={class:"input-wrapper"},AT=["placeholder"],OT={key:0,class:"actions"};function PT(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return LT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LT(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function LT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var DT={data:function(){return{variableInput:"",selectedVariableIndex:-1}},computed:{showDeleteButton:function(){return this.selectedVariables.length&&!this.selectedVariables.includes("uncategorized")},activeCategory:function(){return this.$_state.globalVariablesCategoryActive},selectedVariables:function(){return this.$_state.globalVariablesCategoriesSelected},countByCategoryId:function(){var e,t={},n=PT(this.$_state.globalVariables);try{for(n.s();!(e=n.n()).done;){var o=e.value,i=null==o?void 0:o.category;i&&(Object.prototype.hasOwnProperty.call(t,i)?t[i]++:t[i]=1)}}catch(e){n.e(e)}finally{n.f()}return t}},watch:{activeCategory:function(){var e=this;this.$nextTick((function(){var t=e.$el.querySelector("li.active input");t&&t.focus()}))},selectedVariables:function(e){1!==e.length&&(this.$_state.globalVariablesCategoryActive=null)}},mounted:function(){document.addEventListener("keyup",this.onKeyup),document.addEventListener("keydown",this.onKeydown),window.addEventListener("blur",this.onWindowBlur)},beforeUnmount:function(){document.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keydown",this.onKeydown),window.removeEventListener("blur",this.onWindowBlur)},methods:{isSelected:function(e){return"all"===e?0===this.selectedVariables.length:"uncategorized"===e?this.selectedVariables.includes("uncategorized"):this.selectedVariables.includes(e)},selectAll:function(){this.selectedVariableIndex=-1,this.selectedVariables.length?this.$_state.globalVariablesCategoriesSelected=[]:this.$_state.globalVariablesCategoriesSelected=this.$_state.globalVariablesCategories.map((function(e){return e.id}))},selectVariable:function(e,t){var n=null==e?void 0:e.id;if("uncategorized"===e)return this.$_state.globalVariablesCategoriesSelected=["uncategorized"],void(this.selectedVariableIndex=-1);if(!n)return this.$_state.globalVariablesCategoriesSelected=[],void(this.selectedVariableIndex=-1);if(this.isShiftPressed&&-1!==this.selectedVariableIndex)for(var o=Math.min(this.selectedVariableIndex,t),i=Math.max(this.selectedVariableIndex,t),r=o;r<=i;r++){var a=this.$_state.globalVariablesCategories[r];this.selectedVariables.includes(a.id)||this.selectedVariables.push(a.id)}else if(this.isCtrlPressed){var s=this.selectedVariables.indexOf(n);-1!==s?this.selectedVariables.splice(s,1):this.selectedVariables.push(n)}else this.$_state.globalVariablesCategoriesSelected=[n];this.selectedVariableIndex=t},createVariable:function(){var e=this;if(this.variableInput&&(this.variableInput=this.variableInput.trim(),"all"!==this.variableInput.toLowerCase()&&"uncategorized"!==this.variableInput.toLowerCase())){var t=this.$_state.globalVariablesCategories.find((function(t){return t.name===e.variableInput}));if(t)this.$_state.globalVariablesCategoryActive=t.id;else{var n={id:this.$_generateId(),name:this.variableInput};this.$_state.globalVariablesCategories.push(n),this.$_showMessage("".concat(this.i18n.saved,": ").concat(this.i18n.variable)),this.$nextTick((function(){e.variableInput="";var t=e.$refs.variableItem.find((function(t,o){return e.$_state.globalVariablesCategories[o].id===n.id}));t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}))}}},updateCategory:function(){var e=this,t=this.$el.querySelector("li.active input");t&&t.value&&(this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map((function(n){return n.id===e.activeCategory&&(n.name=t.value),n})),this.$_showMessage("".concat(this.i18n.updated,": ").concat(this.i18n.category))),this.$_state.globalVariablesCategoryActive=null},deleteSelectedVariables:function(e){var t=this;if(e)return this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.filter((function(t){return t.id!==e})),this.$_state.globalVariables.forEach((function(t){t.category===e&&delete t.category})),this.$_state.globalVariablesCategoriesSelected=[],void this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.variable));this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.filter((function(e){return!t.selectedVariables.includes(e.id)})),this.$_state.globalVariables.forEach((function(e){null!=e&&e.category&&t.selectedVariables.includes(e.category)&&delete e.category})),this.$_state.globalVariablesCategoriesSelected=[],this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.variable))},onKeydown:function(e){"Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!0),"Shift"===e.key&&(this.isShiftPressed=!0)},onKeyup:function(e){var t=this;switch("Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!1),"Shift"===e.key&&(this.isShiftPressed=!1),this.variableListNodes=this.$el.querySelectorAll(".bricks-control-popup li"),this.selectedVariableNode=this.$el.querySelector(".bricks-control-popup li.selected"),e.key){case"ArrowUp":this.selectedVariableNode&&this.selectedVariableNode.classList.remove("selected"),this.selectedVariableIndex>0&&(this.selectedVariableIndex-=1);break;case"ArrowDown":this.selectedVariableNode&&this.selectedVariableNode.classList.remove("selected"),this.selectedVariableIndex+1<this.variableListNodes.length&&(this.selectedVariableIndex+=1)}if(this.selectedVariableNode=this.variableListNodes[this.selectedVariableIndex],this.selectedVariableNode){this.selectedVariableNode.classList.toggle("selected");var n=this.$el.querySelector(".bricks-control-popup .variables"),o=this.$el.querySelector(".bricks-control-popup .input-wrapper");n&&o&&this.$nextTick((function(){return n.scrollTo({top:t.selectedVariableNode.offsetTop-o.offsetHeight})}))}},onWindowBlur:function(){this.isCtrlPressed=!1,this.isShiftPressed=!1}}};var NT=(0,tm.Z)(DT,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("sortable");return Yr(),oa("div",hT,[ua("div",mT,[ua("h6",{textContent:de(e.i18n.categories)},null,8,gT),ua("ul",vT,[r.showDeleteButton?(Yr(),oa("li",{key:0,"data-balloon":"variables"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.delete," (").concat(r.selectedVariables.length,")"),"data-balloon-pos":"bottom-right"},[da(a,{name:"variables"===e.$_state.deleteItem?"check":"trash",onClick:t[0]||(t[0]=function(t){return"variables"===e.$_state.deleteItem?r.deleteSelectedVariables():e.$_deleteConfirmation("variables")})},null,8,["name"])],8,bT)):va("",!0),ua("li",{"data-balloon":r.selectedVariables.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selection):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(e){return r.selectAll("all")})},[da(a,{name:r.selectedVariables.length?"square-fill":"square"},null,8,["name"])],8,yT)])]),ua("div",wT,[da(s,{tag:"ul",parent:e.$_state.globalVariablesCategories,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Kn((function(){return[ua("li",{class:ee(["all",{selected:r.isSelected("all")}]),onClick:t[2]||(t[2]=El((function(e){return r.selectVariable("all")}),["stop"]))},[ua("span",{class:"name",textContent:de("".concat(e.i18n.all))},null,8,kT),ua("span",xT,de(e.$_state.globalVariables.length),1)],2),ua("li",{class:ee(["uncategorized",{selected:r.isSelected("uncategorized")}]),onClick:t[3]||(t[3]=El((function(e){return r.selectVariable("uncategorized")}),["stop"]))},[ua("span",{class:"name",textContent:de("".concat(e.i18n.uncategorized))},null,8,CT),ua("span",_T,de(e.$_state.globalVariables.filter((function(e){return!(null!=e&&e.category)})).length),1)],2),(Yr(!0),oa(Wr,null,gi(e.$_state.globalVariablesCategories,(function(n,o){return Yr(),oa("li",{key:n.id,ref_for:!0,ref:"variableItem",class:ee([{active:n.id===r.activeCategory},{selected:r.isSelected(n.id)},{sortable:n.id!==r.activeCategory}]),"data-category-id":n.id,onClick:El((function(e){return r.selectVariable(n,o)}),["stop"])},[da(a,{name:"move",class:"move"}),ua("input",{id:n.id,type:"text",class:"name",autocomplete:"off",spellcheck:"false",value:n.name,readonly:n.id!==r.activeCategory,onKeyup:t[4]||(t[4]=Ml((function(e){return r.updateCategory()}),["enter"]))},null,40,TT),ua("div",$T,[Io(ua("div",ET,[Io(da(a,{name:"save","data-balloon":e.i18n.save,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=El((function(e){return r.updateCategory()}),["stop"]))},null,8,["data-balloon"]),[[As,r.activeCategory]]),Io(da(a,{name:"close","data-balloon":e.i18n.cancel,"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=El((function(t){return e.$_state.globalVariablesCategoryActive=null}),["stop"]))},null,8,["data-balloon"]),[[As,r.activeCategory]]),Io(da(a,{name:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:El((function(t){return e.$_state.globalVariablesCategoryActive=n.id}),["stop"])},null,8,["data-balloon","onClick"]),[[As,!r.activeCategory]]),Io(da(a,{name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:El((function(e){return r.deleteSelectedVariables(n.id)}),["stop"])},null,8,["data-balloon","onClick"]),[[As,r.activeCategory===n.id]])],512),[[As,1===r.selectedVariables.length&&r.selectedVariables.includes(n.id)]]),ua("span",IT,de(r.countByCategoryId[null==n?void 0:n.id]||0),1)])],10,ST)})),128))]})),_:1},8,["parent"])]),ua("div",MT,[Io(ua("input",{ref:"variableInput","onUpdate:modelValue":t[7]||(t[7]=function(e){return i.variableInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.categoryNamePlaceholder," ..."),onKeyup:t[8]||(t[8]=Ml((function(e){return r.createVariable()}),["enter"]))},null,40,AT),[[ml,i.variableInput]]),i.variableInput?(Yr(),oa("div",OT,[da(a,{name:"save","data-balloon":e.i18n.create,"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=function(e){return r.createVariable()})},null,8,["data-balloon"])])):va("",!0)])])}]]),jT={class:"column edit"},VT={class:"toolbar"},FT=["textContent"],RT={class:"content"},qT={class:"actions flex"},BT=["textContent"],zT=["textContent"],HT=["textContent"],WT={key:0,class:"rename"},UT={key:0,class:"form-group"},KT=["textContent"],GT={key:1,class:"form-group"},ZT=["textContent"],JT={key:2,class:"form-group"},YT=["textContent"],QT={key:3,class:"form-group"},XT=["textContent"],e$={key:4,class:"form-group"},t$=["textContent"],n$={class:"quick-actions"},o$=["textContent","disabled"],i$={class:"form-group"},r$=["textContent"],a$={class:"quick-actions"},s$=["textContent"],l$={key:3,class:"duplicate"},c$={class:"form-group"},u$=["textContent"],d$={class:"form-group"},f$=["textContent"],p$={class:"form-group"},h$=["textContent"],m$={class:"form-group"},g$=["textContent"],v$={class:"quick-actions"},b$=["textContent","disabled"],y$={class:"selected-variables"},w$=["textContent"],k$=["textContent"],x$={key:4,class:"preview-variables"},C$=["textContent"],_$=["innerHTML"];function S$(e){return S$="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},S$(e)}function T$(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 $$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T$(Object(n),!0).forEach((function(t){E$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E$(e,t,n){var o;return o=function(e,t){if("object"!=S$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=S$(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==S$(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I$={data:function(){return{action:"rename",selectedCategory:"",activeVariable:"",renameFindString:"",renameReplaceString:"",renamePrefix:"",renameSuffix:"",duplicateFindString:"",duplicateReplaceString:"",duplicatePrefix:"",duplicateSuffix:""}},computed:{selectedVariablePreview:function(){var e=this,t=[];return["rename","duplicate"].includes(this.action)?(this.selectedVariableIds.forEach((function(n){var o=e.$_state.globalVariables.find((function(e){return e.id===n})),i=null==o?void 0:o.name;i&&(e.activeVariable.name&&(i=e.activeVariable.name),"rename"===e.action?(e.renameFindString&&(i=i.replace(new RegExp(e.renameFindString,"g"),"<span>".concat(e.renameReplaceString,"</span>"))),e.renamePrefix&&(i="<span>".concat(e.renamePrefix,"</span>").concat(i)),e.renameSuffix&&(i="".concat(i,"<span>").concat(e.renameSuffix,"</span>"))):"duplicate"===e.action&&(e.duplicateFindString&&(i=i.replace(new RegExp(e.duplicateFindString,"g"),"<span>".concat(e.duplicateReplaceString,"</span>"))),e.duplicatePrefix&&(i="<span>".concat(e.duplicatePrefix,"</span>").concat(i)),e.duplicateSuffix&&(i="".concat(i,"<span>").concat(e.duplicateSuffix,"</span>"))),i&&t.push(i))})),t):t},selectedVariableIds:function(){return this.$_state.globalVariablesSelected},categoryControl:function(){var e={uncategorized:this.i18n.uncategorized};return this.$_state.globalVariablesCategories.forEach((function(t){e[t.id]=t.name})),{options:e,placeholder:this.i18n.select}},canRename:function(){var e;return!(!this.activeVariable||null===(e=this.activeVariable)||void 0===e||!e.name)||(!!((this.renameFindString||this.renamePrefix||this.renameSuffix)&&this.selectedVariableIds.length>1)||void 0)},canDuplicate:function(){if((this.duplicateFindString||this.duplicatePrefix||this.duplicateSuffix)&&this.selectedVariableIds.length)return!0}},methods:{setCategory:function(){var e=this;this.selectedCategory&&(this.$_state.globalVariables.forEach((function(t,n){e.selectedVariableIds.includes(t.id)&&("uncategorized"===e.selectedCategory?t.category="":t.category=e.selectedCategory,e.$_state.globalVariables[n]=t)})),this.$_showMessage(this.i18n.updated))},lockVariables:function(){var e=this;this.selectedVariableIds.forEach((function(t){e.$_state.globalVariablesLocked.includes(t)||e.$_state.globalVariablesLocked.push(t)})),this.$_showMessage(this.i18n.locked)},unlockVariables:function(){var e=this;this.selectedVariableIds.forEach((function(t){var n=e.$_state.globalVariablesLocked.indexOf(t);-1!==n&&e.$_state.globalVariablesLocked.splice(n,1)})),this.$_showMessage(this.i18n.unlocked)},renameVariables:function(){var e=this;if(this.canRename)if(this.activeVariable){var t=this.$_state.globalVariables.findIndex((function(t){return t.id===e.activeVariable.id}));this.$_state.globalVariables.find((function(t){return t.name===e.activeVariable.name}))?(alert("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists)),this.activeVariable.name=this.$_state.globalVariables[t].name):this.$_state.globalVariables[t].name=this.activeVariable.name}else if(this.renamePrefix||this.renameSuffix||this.renameFindString){var n=0;this.selectedVariableIds.forEach((function(t){var o=e.$_state.globalVariables.findIndex((function(e){return e.id===t})),i=e.$_clone(e.$_state.globalVariables[o]),r=i.name;e.renameFindString&&(r=r.replace(new RegExp(e.renameFindString,"g"),e.renameReplaceString));var a="".concat(e.renamePrefix).concat(r).concat(e.renameSuffix);a&&(e.$_state.globalVariables.some((function(e){return e.name===a}))||(i.name=a,e.$_state.globalVariables[o]=i,n++))})),this.$_showMessage("".concat(this.i18n.variablesRenamed," (").concat(n,")")),this.renameFindString="",this.renameReplaceString="",this.renamePrefix="",this.renameSuffix=""}},duplicateVariables:function(){var e=this;if(this.canDuplicate){var t=[],n=0;this.selectedVariableIds.forEach((function(o){var i=e.$_state.globalVariables.findIndex((function(e){return e.id===o})),r=e.$_clone(e.$_state.globalVariables[i]),a=r.name;e.duplicateFindString&&(a=a.replace(new RegExp(e.duplicateFindString,"g"),e.duplicateReplaceString));var s="".concat(e.duplicatePrefix).concat(a).concat(e.duplicateSuffix);if(s&&!e.$_state.globalVariables.some((function(e){return e.name===s}))){var l=$$($$({},r),{},{id:e.$_generateId(),name:s});t.push(l),e.$_state.globalVariables.splice(i+1,0,l),n++}})),this.$_showMessage("".concat(this.i18n.variablesDuplicated," (").concat(n,")")),this.duplicateFindString="",this.duplicateReplaceString="",this.duplicatePrefix="",this.duplicateSuffix=""}}},watch:{"$_state.globalVariablesSelected":{handler:function(e){if(1===e.length){var t=this.$_state.globalVariables.find((function(t){return t.id===e[0]}));this.activeVariable=this.$_clone(t),t.category?this.selectedCategory=t.category:this.selectedCategory=""}else this.activeVariable="",this.selectedCategory=""},immediate:!0,deep:!0}}};const M$=(0,tm.Z)(I$,[["render",function(e,t,n,o,i,r){var a=no("control-info"),s=no("control-select"),l=no("icon");return Yr(),oa("div",jT,[ua("div",VT,[ua("h6",{textContent:de("".concat(e.i18n.edit," (").concat(e.$_state.globalVariablesSelected.length,")"))},null,8,FT)]),ua("div",RT,[ua("div",qT,[ua("button",{class:ee({active:"rename"===i.action}),onClick:t[0]||(t[0]=function(e){return i.action="rename"}),textContent:de(e.i18n.rename)},null,10,BT),e.$_state.globalVariablesCategories.length?(Yr(),oa("button",{key:0,class:ee({active:"categorize"===i.action}),onClick:t[1]||(t[1]=function(e){return i.action="categorize"}),textContent:de(e.i18n.categorize)},null,10,zT)):va("",!0),ua("button",{class:ee({active:"duplicate"===i.action}),onClick:t[2]||(t[2]=function(e){return i.action="duplicate"}),textContent:de(e.i18n.duplicate)},null,10,HT)]),"rename"===i.action?(Yr(),oa("div",WT,[ua("form",{onSubmit:t[9]||(t[9]=El((function(){}),["prevent"]))},[1===e.$_state.globalVariablesSelected.length?(Yr(),oa("div",UT,[ua("label",{textContent:de(e.i18n.name)},null,8,KT),Io(ua("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return i.activeVariable.name=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.activeVariable.name]])])):va("",!0),e.$_state.globalVariablesSelected.length>1?(Yr(),oa("div",GT,[ua("label",{textContent:de(e.i18n.find)},null,8,ZT),Io(ua("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return i.renameFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renameFindString]])])):va("",!0),e.$_state.globalVariablesSelected.length>1?(Yr(),oa("div",JT,[ua("label",{textContent:de(e.i18n.replaceWith)},null,8,YT),Io(ua("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return i.renameReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renameReplaceString]])])):va("",!0),e.$_state.globalVariablesSelected.length>1?(Yr(),oa("div",QT,[ua("label",{textContent:de(e.i18n.addPrefix)},null,8,XT),Io(ua("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return i.renamePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renamePrefix]])])):va("",!0),e.$_state.globalVariablesSelected.length>1?(Yr(),oa("div",e$,[ua("label",{textContent:de(e.i18n.addSuffix)},null,8,t$),Io(ua("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return i.renameSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.renameSuffix]])])):va("",!0),ua("div",n$,[ua("button",{class:"save",onClick:t[8]||(t[8]=function(){return r.renameVariables&&r.renameVariables.apply(r,arguments)}),textContent:de(e.i18n.rename),disabled:!r.canRename},null,8,o$)])],32)])):va("",!0),"rename"===i.action?(Yr(),ia(a,{key:1,class:"info",control:{content:e.i18n.globalVariableManagerRenameNotice}},null,8,["control"])):"categorize"===i.action?(Yr(),oa("form",{key:2,onSubmit:t[12]||(t[12]=El((function(){}),["prevent"])),class:"categorize"},[ua("div",i$,[ua("label",{textContent:de(e.i18n.category)},null,8,r$),da(s,{value:i.selectedCategory,"onUpdate:value":t[10]||(t[10]=function(e){return i.selectedCategory=e}),control:r.categoryControl},null,8,["value","control"])]),ua("div",a$,[ua("button",{class:"save",onClick:t[11]||(t[11]=function(){return r.setCategory&&r.setCategory.apply(r,arguments)}),textContent:de(e.i18n.update)},null,8,s$)])],32)):"duplicate"===i.action?(Yr(),oa("div",l$,[ua("form",{onSubmit:t[18]||(t[18]=El((function(){}),["prevent"]))},[ua("div",c$,[ua("label",{textContent:de(e.i18n.find)},null,8,u$),Io(ua("input",{"onUpdate:modelValue":t[13]||(t[13]=function(e){return i.duplicateFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicateFindString]])]),ua("div",d$,[ua("label",{textContent:de(e.i18n.replaceWith)},null,8,f$),Io(ua("input",{"onUpdate:modelValue":t[14]||(t[14]=function(e){return i.duplicateReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicateReplaceString]])]),ua("div",p$,[ua("label",{textContent:de(e.i18n.addPrefix)},null,8,h$),Io(ua("input",{"onUpdate:modelValue":t[15]||(t[15]=function(e){return i.duplicatePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicatePrefix]])]),ua("div",m$,[ua("label",{textContent:de(e.i18n.addSuffix)},null,8,g$),Io(ua("input",{"onUpdate:modelValue":t[16]||(t[16]=function(e){return i.duplicateSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ml,i.duplicateSuffix]])]),ua("div",v$,[ua("button",{class:"save",onClick:t[17]||(t[17]=function(){return r.duplicateVariables&&r.duplicateVariables.apply(r,arguments)}),textContent:de(e.i18n.duplicate),disabled:!r.canDuplicate},null,8,b$)])],32)])):va("",!0),ua("div",y$,[ua("h6",{textContent:de("".concat(e.i18n.selectedVariables," (").concat(r.selectedVariableIds.length,")"))},null,8,w$),ua("ul",null,[(Yr(!0),oa(Wr,null,gi(r.selectedVariableIds,(function(t,n){return Yr(),oa("li",{key:t},[ua("span",{textContent:de("--".concat(e.$_getGlobalVariableName(t)))},null,8,k$),da(l,{name:"close-box",onClick:function(t){return e.$_state.globalVariablesSelected.splice(n,1)}},null,8,["onClick"])])})),128))])]),r.selectedVariablePreview.length?(Yr(),oa("div",x$,[ua("h6",{textContent:de("".concat(e.i18n.preview,":"))},null,8,C$),ua("ul",null,[(Yr(!0),oa(Wr,null,gi(r.selectedVariablePreview,(function(e,t){return Yr(),oa("li",{key:t,innerHTML:e},null,8,_$)})),128))])])):va("",!0)])])}]]);function A$(e){return function(e){if(Array.isArray(e))return L$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P$(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.")}()}function O$(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,a,s=[],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)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||P$(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 P$(e,t){if(e){if("string"==typeof e)return L$(e,t);var n=Object.prototype.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)?L$(e,t):void 0}}function L$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var D$={components:{VariablesListView:pT,CategoriesListView:NT,VariablesEditor:M$},data:function(){return{managerSource:"variables",action:null,view:null,includeString:"",excludeString:"",filterBy:null,sortBy:null,category:null,importResults:[],cssVariablesInput:""}},computed:{sourceOptions:function(){var e={classes:this.i18n.classes,variables:this.i18n.variables};return this.bricks.disableClassManager&&delete e.classes,this.bricks.disableVariablesManager&&delete e.variables,e},showSearchInfo:function(){return this.includeString||this.excludeString}},watch:{"$_state.globalVariablesCategoryActive":{handler:function(e){e?(this.view="category",this.category=this.$_state.globalVariablesCategories.find((function(t){return t.id===e}))):(this.view=null,this.category=null)},immediate:!0},"$_state.globalVariablesCategoriesSelected":{handler:function(){this.$_state.globalVariablesSelected=[]},deep:!0,immediate:!0},"$_state.globalVariablesSelected":{handler:function(e){this.view=e.length>1?"edit":null},deep:!0,immediate:!0},managerSource:function(){this.$_state.activeCssPopup=this.managerSource,this.$_state.popup=this.managerSource}},methods:{exportVariables:function(){var e={variables:this.$_state.globalVariables,categories:this.$_state.globalVariablesCategories};this.$_exportAsJsonFile(e,"bricks-css-variables")},saveVariables:function(){"alphabetically"===this.sortBy&&this.$_state.globalVariables.sort((function(e,t){return e.name.localeCompare(t.name)})),this.$_savePost()},parseCSSVariables:function(){return this.cssVariablesInput.split(";").map((function(e){return e.trim()})).filter((function(e){return e.startsWith("--")})).map((function(e){var t=O$(e.split(":").map((function(e){return e.trim()})),2),n=t[0],o=t[1];return{name:n=n.replace(/^--/,""),value:o}}))},importVariablesFromTextarea:function(){var e=this.parseCSSVariables(),t=this.addUniqueVariables(e);this.importResults.push({text:"".concat(this.i18n.variablesImported," (").concat(t.length,")"),type:t.length?"success":"info"}),this.cssVariablesInput=""},importVariablesFromFile:function(e){var t=this;Array.isArray(e)&&e.length&&(this.importResults=[],e.forEach((function(e){var n=(null==e?void 0:e.variables)||[],o=t.addUniqueVariables(n);t.importResults.push({text:"".concat(t.i18n.variablesImported," (").concat(o.length,"/").concat(n.length,")"),type:o.length?"success":"info"});var i=(null==e?void 0:e.categories)||[],r=[];(i.forEach((function(e){t.$_state.globalVariablesCategories.find((function(t){return t.name===e.name}))||r.push(e)})),r.length)&&(confirm(t.i18n.variableCategoriesImportConfirm)&&(t.$_state.globalVariablesCategories=[].concat(A$(t.$_state.globalVariablesCategories),r),t.importResults.push({text:"".concat(t.i18n.categoriesImported," (").concat(r.length,"/").concat(i.length,")"),type:r.length?"success":"info"})))})))},addUniqueVariables:function(e){var t=this,n=[];return e.forEach((function(e){t.$_state.globalVariables.find((function(t){return t.name===e.name}))||(e.id=t.$_generateId(),t.$_state.globalVariables.push(e),n.push(e))})),n}}};const N$=(0,tm.Z)(D$,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-text"),l=no("control-select"),c=no("CategoriesListView"),u=no("VariablesListView"),d=no("VariablesEditor"),f=no("control-textarea"),p=no("control-file-import");return Yr(),oa("div",null,[ua("header",fS,[ua("div",pS,[ua("h2",{class:"title",textContent:de(e.i18n.manage)},null,8,hS),ua("ul",mS,[(Yr(!0),oa(Wr,null,gi(r.sourceOptions,(function(t,n){return Yr(),oa("li",{class:ee(["source",n,{active:n===e.$_state.activeCssPopup}]),textContent:de(t),onClick:function(e){return i.managerSource=n}},null,10,gS)})),256))]),ua("p",{class:ee(["search-info",{show:r.showSearchInfo}]),textContent:de(e.i18n.globalVariableManagerSearchInfo)},null,10,vS)]),ua("ul",bS,[ua("li",{class:ee(["import",{active:"import"===i.action}]),"data-balloon":e.i18n.import,"data-balloon-pos":"top",onClick:t[0]||(t[0]=function(e){return i.action="import"})},[da(a,{name:"import"})],10,yS),ua("li",{class:"export","data-balloon":e.i18n.export,"data-balloon-pos":"top",onClick:t[1]||(t[1]=function(e){return r.exportVariables()})},[da(a,{name:"export"})],8,wS),ua("li",{class:"save","data-balloon":e.i18n.save,"data-balloon-pos":"top",onClick:t[2]||(t[2]=function(){return r.saveVariables&&r.saveVariables.apply(r,arguments)})},[da(a,{name:"save"})],8,kS)])]),Io(ua("div",xS,[ua("ul",CS,[ua("li",{class:ee([{active:i.includeString}])},[da(a,{name:"search"}),da(s,{value:i.includeString,"onUpdate:value":t[3]||(t[3]=function(e){return i.includeString=e}),control:{dd:!1,clearable:!0,autoComplete:"off",spellcheck:!1,placeholder:"".concat(e.i18n.variableName," (").concat(e.i18n.include,")")}},null,8,["value","control"])],2),ua("li",{class:ee([{active:i.excludeString}])},[da(a,{name:"search"}),da(s,{value:i.excludeString,"onUpdate:value":t[4]||(t[4]=function(e){return i.excludeString=e}),control:{dd:!1,clearable:!0,placeholder:"".concat(e.i18n.variableName," (").concat(e.i18n.exclude,")")}},null,8,["value","control"])],2),ua("li",{class:ee([{active:i.sortBy}])},[da(a,{name:"sort-a-to-z"}),da(l,{value:i.sortBy,"onUpdate:value":t[5]||(t[5]=function(e){return i.sortBy=e}),control:{options:{alphabetically:e.i18n.alphabetically},placeholder:e.i18n.sort}},null,8,["value","control"])],2),ua("li",{class:ee([{active:i.filterBy}])},[da(a,{name:"filter-by"}),da(l,{value:i.filterBy,"onUpdate:value":t[6]||(t[6]=function(e){return i.filterBy=e}),control:{options:{usedOnPage:e.i18n.usedOnThisPage,unusedOnPage:e.i18n.unusedOnThisPage},multiple:!0,placeholder:e.i18n.filter}},null,8,["value","control"])],2)])],512),[[As,"import"!==i.action]]),Io(ua("main",_S,[da(c),da(u,{"include-string":i.includeString,"exclude-string":i.excludeString,"filter-by":i.filterBy,"sort-by":i.sortBy},null,8,["include-string","exclude-string","filter-by","sort-by"]),"edit"===i.view?(Yr(),ia(d,{key:0})):(Yr(),oa("div",SS,[ua("div",TS,[ua("h6",{textContent:de(e.i18n.globalVariableManagerInfoTitle)},null,8,$S)]),ua("div",ES,[ua("ol",null,[ua("li",{innerHTML:e.i18n.globalVariableManagerInfoCategory},null,8,IS),ua("li",{innerHTML:e.i18n.globalVariableManagerInfoVariable},null,8,MS),ua("li",{innerHTML:e.i18n.globalVariableManagerInfoBulk},null,8,AS),ua("li",{innerHTML:e.i18n.globalVariableManagerInfoOrder},null,8,OS),ua("li",{innerHTML:e.i18n.globalVariableManagerInfoCategorize},null,8,PS)])])]))],512),[[As,!i.action]]),"import"===i.action?(Yr(),oa("div",LS,[ua("div",{class:"title",textContent:de("".concat(e.i18n.import,": ").concat(e.i18n.variables))},null,8,DS),ua("div",NS,[ua("p",{class:"desc",textContent:de("".concat(e.i18n.globalVariableManagerImportTextarea,":"))},null,8,jS),da(f,{control:{placeholder:"--size-small: 1em;\n--size-medium: 1.3em;\n--size-large: 1.6em;",rows:5,hasDynamicData:!1,spellcheck:!1},value:i.cssVariablesInput,onInput:t[7]||(t[7]=function(e){return i.cssVariablesInput=e})},null,8,["value"]),i.cssVariablesInput?(Yr(),oa("button",{key:0,onClick:t[8]||(t[8]=function(){return r.importVariablesFromTextarea&&r.importVariablesFromTextarea.apply(r,arguments)}),textContent:de(e.i18n.importCssVariables)},null,8,VS)):va("",!0)]),da(p,{control:{fileType:"application/json",dragAndDropNote:e.i18n.importJsonDragAndDrop},results:i.importResults,onImported:r.importVariablesFromFile,onCloseMe:t[9]||(t[9]=function(e){return i.action=void 0})},null,8,["control","results","onImported"])])):va("",!0)])}]]);var j$={setup:function(){return{popup:sn(Vf,"popup")}},components:{PopupCodeSignatures:Yy,PopupClasses:dS,PopupVariables:N$,PopupDocs:$w,PopupLockedUser:Lw,PopupTemplates:cx,PopupUnsplash:eC},methods:{close:function(){!1===["locked-user","conflicts"].includes(this.popup)&&(this.popup=!1)}}};var V$={id:"bricks-template-type","data-builder-mode":"light"},F$={class:"inner"},R$=["innerHTML"],q$=["innerHTML"];var B$={data:function(){return{control:{options:this.bricks.controlOptions.templateTypes,placeholder:this.i18n.select}}},methods:{setTemplateType:function(e){this.$_state.templateType=e}}};var z$={components:{TheNotification:Ny,ThePopup:(0,tm.Z)(j$,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",{id:"bricks-popup",class:ee(o.popup),onClick:t[0]||(t[0]=El((function(e){return r.close()}),["self"]))},[(Yr(),ia(io(o.popup?"popup-".concat(o.popup):null),{id:"bricks-popup-inner"}))],2)}]]),TheTemplateType:(0,tm.Z)(B$,[["render",function(e,t,n,o,i,r){var a=no("control-select");return Yr(),oa("div",V$,[ua("div",F$,[ua("h2",{class:"title",innerHTML:e.i18n.templateType},null,8,R$),ua("p",{class:"subtitle",innerHTML:e.i18n.templateTypeDescription},null,8,q$),da(a,{control:i.control,onInput:t[0]||(t[0]=function(e){return r.setTemplateType(e)})},null,8,["control"])])])}]])},computed:{unsignedCodeIds:function(){var e=this;if(!this.$_state.codeExecutionEnabled)return[];var t=[];return this.$_clone(this.$_dynamicElements.value).forEach((function(n){var o,i,r,a,s,l,c,u,d,f,p=e.$_getGlobalElement(n);p&&(n=p,null!=p&&p.global&&(n.id=p.global)),"code"!==(null===(o=n)||void 0===o?void 0:o.name)||null===(i=n)||void 0===i||null===(i=i.settings)||void 0===i||!i.code||null===(r=n)||void 0===r||null===(r=r.settings)||void 0===r||!r.executeCode||null!==(a=n)&&void 0!==a&&null!==(a=a.settings)&&void 0!==a&&a.signature||t.push(n.id),"svg"!==(null===(s=n)||void 0===s?void 0:s.name)||null===(l=n.settings)||void 0===l||!l.code||null!==(c=n.settings)&&void 0!==c&&c.signature||t.push(n.id),null===(u=n)||void 0===u||null===(u=u.settings)||void 0===u||null===(u=u.query)||void 0===u||!u.queryEditor||null===(d=n)||void 0===d||null===(d=d.settings)||void 0===d||null===(d=d.query)||void 0===d||!d.useQueryEditor||null!==(f=n)&&void 0!==f&&null!==(f=f.settings)&&void 0!==f&&null!==(f=f.query)&&void 0!==f&&f.signature||t.push(n.id)})),t.reduce((function(e,t){return e.includes(t)||e.push(t),e}),[])},unsignedCodeCount:function(){return this.$_state.codeExecutionEnabled&&this.unsignedCodeIds.length},urlParams:function(){return new URLSearchParams(document.location.search.substring(1))},previewCss:function(){var e=this.urlParams.get("css");if(e)return this.$_state.activeElement?this.$_generateCss("element",this.$_clone(this.$_state.activeElement)):void 0},previewState:function(){var e=this.urlParams.get("preview"),t=this.$_state[e]?JSON.stringify(this.$_state[e]):"";return!!t&&"/* $_state.".concat(e,": */\n").concat(t)},marginLeft:function(){return(this.$_state.previewWrapperWidth-this.$_state.previewWidth*this.$_previewScale.value)/2},popup:function(){var e=this.$_state.popup;return"templates"!==e||this.$_state.fullAccess?e:""},classes:function(){var e=[this.$_state.breakpointActive];return this.$_state.showStructure&&e.push("show-structure"),this.$_state.isPreviewing?(e.push("is-previewing"),e):(this.$_state.isResizingPanel&&e.push("resizing-panel"),this.$_state.isReloadingCanvas&&e.push("is-reloading-canvas"),e)},previewUrl:function(){return"".concat(window.location.href,"&").concat(this.bricks.builderPreviewParam)},iframeStyle:function(){var e=this.$_state.previewHeight,t=this.$_state.previewWidth;if(this.$_state.isPreviewing)return{height:e?"".concat(e,"px"):null,width:t?"".concat(t,"px"):null};var n={},o=this.$_previewScale.value;if(1!==o){var i=this.$_state.previewWrapperHeight/o;n.height="".concat(i,"px")}return this.$_state.previewScaleActive||delete n.height,e&&(n.height="".concat(e,"px")),t&&(n.width="".concat(t,"px"),this.$_state.previewScaleActive||t>this.$_state.previewWrapperWidth&&(n.width="".concat(this.$_state.previewWrapperWidth,"px"),this.$_state.previewWidth=this.$_state.previewWrapperWidth)),n.marginLeft=this.$_state.previewWrapperWidth>t*o?"".concat(this.marginLeft,"px"):null,n.transform=this.$_state.previewScaleActive&&1!==o?"scale(".concat(o,")"):null,n}},methods:{iframeLoaded:function(){var e=this;this.$refs.iframe.contentWindow.performance.now=function(){return performance.now()},this.$refs.iframe.contentWindow.addEventListener("click",(function(e){Object.defineProperty(e,"timeStamp",{get:function(){return performance.now()}})}),!0),this.populateBuilder(),setTimeout((function(){e.$_state.iframeLoaded=!0,e.$_state.showStructure=!0}),200),setTimeout((function(){e.initHeartbeatApi(),e.initAutosave(),e.$_getRevisions(!0)}),1e3)},populateBuilder:function(){var e=this,t=window.bricksData.loadData;t.hasOwnProperty("blocks")&&(console.info(t.blocks),delete t.blocks),Object.keys(t).forEach((function(n){e.$_state.hasOwnProperty(n)&&(e.$_state[n]=t[n])})),window.bricksData.debug&&console.warn("loadData",t);var n=window.navigator.userAgentData?window.navigator.userAgentData.platform:window.navigator.platform;this.$_state.isMac=n.toLowerCase().includes("mac")},initHeartbeatApi:function(){var e=this;jQuery(document).on({"heartbeat-send":function(t,n){n.bricks={postId:e.bricks.postId}},"heartbeat-tick":function(t,n){var o=!!n.hasOwnProperty("lockedUser")&&n.lockedUser;o&&(e.$_state.popup="locked-user",e.$_state.lockedUser=o)},"heartbeat-tick.wp-refresh-nonces":function(e,t){t.hasOwnProperty("bricks")&&(t.bricks.hasOwnProperty("heartbeatNonce")&&(window.heartbeatSettings.nonce=t.bricks.heartbeatNonce),t.bricks.hasOwnProperty("bricksNonce")&&(window.bricksData.nonce=t.bricks.bricksNonce,wp.heartbeat&&wp.heartbeat.connectNow()))},"heartbeat-error":function(e,t,n,o){console.log(n),console.log(o)}}),wp.heartbeat&&wp.heartbeat.connectNow()},initAutosave:function(){var e=this;if(!this.bricks.autosave.disabled){var t=this.bricks.autosave.interval;t<15&&(t=15),setInterval((function(){e.$_state.isSaving||e.$_state.unsavedChanges.includes(e.$_dynamicArea.value)&&e.$_http({data:{action:"bricks_create_autosave",area:e.$_dynamicArea.value,elements:JSON.stringify(e.$_dynamicElements.value)},beforeSend:function(){e.$_state.isSaving=!0},success:function(){e.$_state.isSaving=!1}})}),1e3*t)}}},mounted:function(){var e=this;new ResizeObserver((function(){setTimeout((function(){e.$_state.previewWrapperWidth=e.$refs.preview.offsetWidth,e.$_state.previewWrapperHeight=e.$refs.preview.offsetHeight}),0)})).observe(this.$refs.preview)},watch:{"$_state.activeUnsignedCodeId":{handler:function(e){e&&(this.$_state.popup="code-signatures")}},unsignedCodeCount:{handler:function(){this.$_state.unsignedCodeIds=this.unsignedCodeIds},immediate:!0}}};const H$=(0,tm.Z)(z$,[["render",function(e,t,n,o,i,r){var a=no("the-notification"),s=no("the-popup"),l=no("the-template-type"),c=no("control-code");return Yr(),oa("div",{ref:"preview",id:"bricks-preview",class:ee(r.classes)},[ua("div",{id:"bricks-builder-iframe-wrapper",ref:"iframeWrapper",style:Z(r.iframeStyle)},[ua("iframe",{ref:"iframe",id:"bricks-builder-iframe",src:r.previewUrl,onLoad:t[0]||(t[0]=function(){return r.iframeLoaded&&r.iframeLoaded.apply(r,arguments)})},null,40,Ay)],4),da(a),r.popup?(Yr(),ia(s,{key:0})):va("",!0),r.iframeLoaded||!e.bricks.isTemplate||e.$_state.templateType?va("",!0):(Yr(),ia(l,{key:1})),r.previewCss?(Yr(),ia(c,{class:"bricks-builder-data-preview css",key:r.previewCss,control:{mode:"css",replace:!1,readOnly:!0},value:r.previewCss},null,8,["value"])):r.previewState?(Yr(),ia(c,{class:"bricks-builder-data-preview state",key:r.previewState,control:{mode:"php",replace:!1,readOnly:!0},value:r.previewState},null,8,["value"])):va("",!0)],2)}]]);var W$=H$,U$={id:"bricks-panel-header"},K$=["innerHTML"],G$={class:"actions"},Z$=["data-balloon"],J$=["data-balloon"],Y$=["data-balloon"],Q$=["data-balloon"],X$=["data-balloon"],eE={class:"panel-content"},tE={key:1,class:"no-results"},nE=["textContent"],oE=ua("div",{id:"bricks-draggable-placeholder"},null,-1);var iE={setup:function(){return{dynamicElements:Hf,rootElements:Wf}},computed:{hasUnsignedCode:function(){return this.$_state.userCan.executeCode&&this.$_state.codeExecutionEnabled&&this.$_state.unsignedCodeIds.length}},methods:{removeElements:function(){this.$_showPanel(),this.$_state[this.$_dynamicArea.value]=[],this.$_state.activeId=null},deselectActiveElement:function(e){e.target.classList.contains("bricks-draggable-root")&&("element"===this.$_state.activePanel&&(this.$_state.activePanel="elements"),this.$_state.activeId=!1)}},watch:{"$_state.revisionId":{handler:function(e){this.$_state.showStructure=!e}},"$_state.draggingElement":{handler:function(e){if(!e){var t=document.getElementById("bricks-draggable-placeholder");t&&(t.classList.remove("show"),document.body.appendChild(t))}}},"$_state.activeId":{handler:function(e){var t=this;if(this.bricks.structureAutoSync&&this.$_state.showStructure){var n=this.$el.querySelector("#element-".concat(e));n&&setTimeout((function(){t.$_state.showContextMenu&&"main"===t.$_state.messageOrigin||n.scrollIntoView({behavior:"smooth",block:"center"})}),10)}},immediate:!1}}};var rE=(0,tm.Z)(iE,[["render",function(e,t,n,o,i,r){var a=no("debug-info"),s=no("icon"),l=no("structure-sortable");return Io((Yr(),oa("div",{id:"bricks-structure",class:ee(["bricks-panel",{"is-previewing":e.$_state.isPreviewing}])},[e.bricks.debug?(Yr(),ia(a,{key:0})):va("",!0),ua("div",U$,[ua("div",{class:"title",innerHTML:e.i18n.structure},null,8,K$),ua("ul",G$,[r.hasUnsignedCode?(Yr(),oa("li",{key:0,class:"unsigned-code","data-balloon":e.i18n.unsignedCode,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(t){return e.$_state.popup="code-signatures"})},[da(s,{name:"touch-id"})],8,Z$)):va("",!0),e.$_state.fullAccess&&o.rootElements.length?(Yr(),oa("li",{key:1,"data-balloon":"".concat(e.i18n.copy," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[da(s,{name:"clipboard",onClick:t[1]||(t[1]=function(t){return e.$_copyElements(e.$_dynamicElements.value,"".concat(e.i18n.copiedToClipboard,": ").concat(e.i18n.elements))})})],8,J$)):va("",!0),e.$_state.fullAccess?(Yr(),oa("li",{key:2,"data-balloon":"".concat(e.i18n.paste," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[da(s,{name:"import",onClick:t[2]||(t[2]=function(t){return e.$_pasteElements(e.i18n.elements)})})],8,Y$)):va("",!0),e.$_state.fullAccess&&o.rootElements.length?(Yr(),oa("li",{key:3,"data-balloon":"structure"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.remove," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[da(s,{name:"structure"===e.$_state.deleteItem?"check":"trash",onClick:t[3]||(t[3]=function(t){return"structure"===e.$_state.deleteItem?r.removeElements():e.$_deleteConfirmation("structure")})},null,8,["name"])],8,Q$)):va("",!0),o.rootElements.length?(Yr(),oa("li",{key:4,"data-balloon":e.$_state.structureExpandAll?"".concat(e.i18n.collapse," (").concat(e.i18n.all,")"):"".concat(e.i18n.expand," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[da(s,{name:e.$_state.structureExpandAll?"collapse":"expand",onClick:t[4]||(t[4]=function(t){return e.$_state.structureExpandAll=!e.$_state.structureExpandAll})},null,8,["name"])],8,X$)):va("",!0)])]),ua("main",eE,[o.rootElements.length?(Yr(),ia(l,{key:0,onClick:t[5]||(t[5]=El((function(e){return r.deselectActiveElement(e)}),["self"])),class:"bricks-draggable-root",elements:o.rootElements},null,8,["elements"])):(Yr(),oa("div",tE,[da(s,{name:"cursor-click"}),ua("p",{textContent:de(e.i18n.placeholderEmptyCanvas)},null,8,nE)]))]),oE],2)),[[As,e.$_state.showStructure]])}]]),aE={class:"bricks-loading-inner"},sE=ga('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1),lE={class:"title"},cE=["src"],uE=["innerHTML"],dE=ua("a",{class:"sub-title",href:"https://bricksbuilder.io",target:"_blank"},"bricksbuilder.io",-1);var fE={data:function(){return{show:!0,loaded:!1}},computed:{version:function(){var e=this.bricks.version;if(e.includes("-")){var t=e.split("-");return'<span class="number">'.concat(t[0],'</span><span class="type">').concat(t[1],"</span>")}return'<span class="number">'.concat(e,"</span>")}},mounted:function(){var e=this;setTimeout((function(){e.show=!1}),5e3)},watch:{"$_state.iframeLoaded":function(e){var t=this;e&&setTimeout((function(){t.loaded=!0,setTimeout((function(){t.show=!1}),200)}),400)}}};var pE=(0,tm.Z)(fE,[["render",function(e,t,n,o,i,r){return i.show?(Yr(),oa("div",{key:0,id:"bricks-preloader",class:ee([{loaded:i.loaded},{show:i.show}])},[ua("div",aE,[sE,ua("div",lE,[ua("img",{src:e.bricks.assetsUrl+"images/bricks-logo-text.svg",alt:"Bricks"},null,8,cE),ua("label",{class:"version",innerHTML:r.version},null,8,uE)]),dE])],2)):va("",!0)}]]),hE=["innerHTML"];var mE={data:function(){return{message:"",show:!1,style:{}}},methods:{centerMessage:function(){var e=document.getElementById("bricks-builder-iframe-wrapper");if(e){var t=e.getBoundingClientRect();this.style.left=t.left+t.width/2+"px"}}},mounted:function(){var e=this.$_getIframeWindow();if(e){var t=this.centerMessage;e.addEventListener("resize",this.$_debounce("centerMessage",t,200))}},watch:{"$_state.iframeLoaded":function(){var e=this;setTimeout((function(){e.centerMessage()}),200)},"$_state.showStructure":function(){var e=this;setTimeout((function(){e.centerMessage()}),200)},"$_state.isPreviewing":function(){var e=this;setTimeout((function(){e.centerMessage()}),200)},"$_state.popup":{handler:function(e){e?this.style={}:this.centerMessage()}},"$_state.message":function(e){var t=this;null!=e&&e.text?(this.message=e.text,this.show=!0,setTimeout((function(){t.show=!1,setTimeout((function(){t.message="",t.$_state.message=!1}),100)}),(null==e?void 0:e.duration)||2e3)):(this.message="",this.show=!1)}}};var gE=(0,tm.Z)(mE,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",{id:"bricks-message",class:ee({show:i.show}),style:Z(i.style),onClick:t[0]||(t[0]=function(t){return e.$_state.message=!1}),innerHTML:i.message},null,14,hE)}]]),vE={key:0},bE=["href","textContent"],yE={key:1,class:"sep"},wE=["innerHTML"],kE=["data-balloon"],xE=["textContent"],CE=["innerHTML"],_E=["textContent"],SE=["innerHTML"],TE=["textContent"],$E=["textContent"],EE=["textContent"],IE=["textContent"],ME={key:2,class:"insert sep"},AE=["textContent"],OE={class:"buttons"},PE=["data-balloon"],LE=["data-balloon"],DE={"data-balloon":"Div","data-balloon-pos":"top"},NE={class:"wrap sep"},jE=["textContent"],VE={class:"buttons"},FE=["data-balloon"],RE=["data-balloon"],qE=["data-balloon"],BE={"data-balloon":"Div","data-balloon-pos":"top"},zE=["textContent"],HE={class:"buttons"},WE=["data-balloon"],UE=["data-balloon"],KE=["data-balloon"],GE={"data-balloon":"Div","data-balloon-pos":"top"},ZE=["innerHTML"],JE=["innerHTML"],YE=["innerHTML"];var QE={data:function(){return{show:!1,insertLabel:void 0,wrapLabel:void 0,convertLabel:void 0,editTemplateUrl:void 0}},computed:{element:function(){return this.$_activeElement.value},elementConfig:function(){var e;return this.$_getElementConfig(null===(e=this.element)||void 0===e?void 0:e.name)},globalElement:function(){return this.$_getGlobalElement(this.element)}},methods:{convertTo:function(e,t){e.name=t,this.closeMe()},insertNewElement:function(e,t){var n=Array.isArray(this.element.children)?this.element.children.length:0;this.$_addNewElement({element:{name:e},index:n,parent:this.element.id},t)},closeMe:function(e){var t=this;!this.$_state.showContextMenu||null!=e&&e.ctrlKey||this.$nextTick((function(){return t.$_state.showContextMenu=!1}))},saveAsTemplate:function(){this.$_state.saveAsTemplate=this.element,this.$_state.popup="templates"},saveAsGlobalElement:function(){var e=this,t=this.$_clone(this.element);delete t.id,delete t.parent,t.global=this.$_generateId(),this.$_http({data:{action:"bricks_save_global_element",element:t},success:function(n){e.$_state.globalElements=n.data,e.$_showMessage("".concat(e.i18n.saved,": ").concat(e.i18n.globalElement)),e.element.global=t.global}})},deleteElement:function(e){this.$_isDeletable(e)&&(this.$_state.deleteElement=e)},copyStyles:function(){var e=this,t=this.$_clone(this.element);null!=t&&t.settings&&this.$_writeToClipboard("bricksCopiedElement",t).then((function(){e.$_showMessage("".concat(e.i18n.copied,": ").concat(e.i18n.styles))}))},pasteStyles:function(){var e=this;this.$_isLocked()||this.$_readFromClipboard("bricksCopiedElement").then((function(t){var n,o=(null==t?void 0:t.content)||{},i=(null==t?void 0:t.globalClasses)||[];if(null!=o&&o.settings){var r=e.$_clone(e.element);null!=r&&r.settings&&!Array.isArray(r.settings)||(r.settings={});var a=null===(n=e.elementConfig)||void 0===n?void 0:n.controls;a&&(Object.keys(o.settings).forEach((function(t){var n=o.settings[t],s=e.$_getControlKeyPlain(t),l=!!a.hasOwnProperty(s)&&a[s],c=!1;if(null!=l&&l.css)c=!0;else if("repeater"===l.type)c=!0;else if(null!=l&&l.pasteStyles)c=l.pasteStyles;else if("_cssGlobalClasses"===s){var u,d=e.$_state.globalClasses.map((function(e){return e.id})),f=[];n.forEach((function(t){if(-1===d.indexOf(t)){var n=i.find((function(e){return e.id===t}));n&&(e.$_state.globalClasses.push(n),d.push(t),f.push(t))}else f.push(t)})),c=!(null===(u=n=f)||void 0===u||!u.length)}else l||(c=!1);if(!1!==c)if("repeater"===l.type){var p=a[s].fields;n.forEach((function(n,o){Object.keys(n).forEach((function(i){var a=p[e.$_getControlKeyPlain(i)];a&&a.hasOwnProperty("css")&&r.settings[t][o]&&(r.settings[t][o][i]=n[i])}))}))}else if("code"===l.type){var h=o.hasOwnProperty("_cssId")?"#".concat(o._cssId):"#brxe-".concat(o.id),m=r.hasOwnProperty("_cssId")?"#".concat(r._cssId):"#brxe-".concat(r.id);r.settings[t]=n.replaceAll(h,m)}else r.settings[t]=n})),e.element.settings=r.settings,e.$nextTick((function(){e.$_state.rerenderControls=Date.now(),e.$_showMessage("".concat(e.i18n.pasted,": ").concat(e.i18n.styles))})))}})).catch((function(){}))},onKeyDown:function(e){this.$_state.activeId&&(this.$_isShortcutModifier(e)?this.$_state.insertAfter=!0:"Shift"!==e.key&&this.$_state.insertAfter&&(this.$_state.insertAfter=!1))},onKeyUp:function(e){this.$_state.insertAfter&&(this.$_state.insertAfter=!1)}},mounted:function(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)},beforeUnmount:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)},watch:{"$_state.showContextMenu":{handler:function(e){e?("main"===this.$_state.messageOrigin&&window.self==window.top||"iframe"===this.$_state.messageOrigin&&window.self!=window.top)&&(this.show=!0):this.show=!1,this.show&&(this.$_state.insertAfter=!1,this.$_state.isInlineEditing=!1)}},"$_state.activeId":{handler:function(e){e?this.editTemplateUrl=this.$_getEditTemplateUrl():this.$_state.showContextMenu=!1}},"$_state.breakpointActive":{handler:function(){this.$_state.showContextMenu=!1}},"$_state.draggingElement":{handler:function(e){e&&(this.$_state.showContextMenu=!1)}}}};const XE=(0,tm.Z)(QE,[["render",function(e,t,n,o,i,r){var a,s,l,c,u,d,f,p,h,m,g,v,b,y,w,k,x,C,_,S,T=this,$=ro("clickaway");return Io((Yr(),oa("div",{id:"bricks-builder-context-menu",onClick:t[46]||(t[46]=function(){return r.closeMe&&r.closeMe.apply(r,arguments)})},[ua("ul",null,[i.editTemplateUrl?(Yr(),oa("li",vE,[ua("a",{href:i.editTemplateUrl,textContent:de(e.i18n.editTemplate)},null,8,bE)])):va("",!0),i.editTemplateUrl?(Yr(),oa("li",yE)):va("",!0),ua("li",{onClick:t[1]||(t[1]=function(t){return e.$_copyElements()})},[ua("span",{innerHTML:e.i18n.copy,class:"label"},null,8,wE),ua("span",{class:"action","data-balloon":"#".concat(e.$_getElementId(r.element)),"data-balloon-pos":"top",onClick:t[0]||(t[0]=El((function(t){return e.$_copyToClipboard("#".concat(e.$_getElementId(r.element)),"".concat(e.i18n.copied,": #").concat(e.$_getElementId(r.element)))}),["stop"]))},"#",8,kE),ua("span",{textContent:de("".concat(e.$_state.isMac?"CMD":"CTRL"," + C")),class:"shortcut"},null,8,xE)]),ua("li",{class:"sep",onClick:t[2]||(t[2]=function(t){return e.$_pasteElements()})},[ua("span",{innerHTML:e.i18n.paste,class:"label"},null,8,CE),ua("span",{textContent:de("".concat(e.$_state.isMac?"CMD":"CTRL"," + V")),class:"shortcut"},null,8,_E)]),ua("li",{class:ee([{disabled:!e.$_isCloneable(r.element)}]),onClick:t[3]||(t[3]=function(t){return e.$_isCloneable(r.element)?e.$_cloneElement():null})},[ua("span",{innerHTML:e.i18n.duplicate,class:"label"},null,8,SE),ua("span",{textContent:de("".concat(e.$_state.isMac?"CMD":"CTRL"," + SHIFT + D")),class:"shortcut"},null,8,TE)],2),ua("li",{class:ee(["delete","sep",{disabled:!e.$_isDeletable(r.element)}]),onClick:t[4]||(t[4]=function(e){return r.deleteElement(r.element)}),textContent:de(e.i18n.delete)},null,10,$E),ua("li",{onClick:t[5]||(t[5]=function(e){return r.copyStyles()}),textContent:de(e.i18n.copyStyles)},null,8,EE),ua("li",{class:ee(["sep",{"bricks-is-locked":e.$_isLocked()}]),onClick:t[6]||(t[6]=function(e){return r.pasteStyles()}),textContent:de(e.i18n.pasteStyles)},null,10,IE),e.$_isNestable()?(Yr(),oa("li",ME,[ua("span",{textContent:de("".concat(e.$_state.insertAfter?e.i18n.insertAfter:e.i18n.insert," (").concat(i.insertLabel||e.i18n[null===(a=this.bricks)||void 0===a?void 0:a.builderInsertElement]||"block",")")),onClick:t[7]||(t[7]=function(e){var t;return r.insertNewElement((null===(t=T.bricks)||void 0===t?void 0:t.builderInsertElement)||"block",e)}),class:"label"},null,8,AE),ua("div",OE,[Io(ua("span",{"data-balloon":e.i18n.container,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(s=e.$_getElementConfig("container"))||void 0===s?void 0:s.icon),onClick:t[8]||(t[8]=function(e){return r.insertNewElement("container")}),onMouseenter:t[9]||(t[9]=function(t){return i.insertLabel=e.i18n.container}),onMouseleave:t[10]||(t[10]=function(e){return i.insertLabel=void 0})},null,34)],8,PE),[[As,"container"!==(null===(l=this.bricks)||void 0===l?void 0:l.builderInsertElement)]]),Io(ua("span",{"data-balloon":e.i18n.block,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(c=e.$_getElementConfig("block"))||void 0===c?void 0:c.icon),onClick:t[11]||(t[11]=function(e){return r.insertNewElement("block")}),onMouseenter:t[12]||(t[12]=function(t){return i.insertLabel=e.i18n.block}),onMouseleave:t[13]||(t[13]=function(e){return i.insertLabel=void 0})},null,34)],8,LE),[[As,"block"!==(null===(u=this.bricks)||void 0===u?void 0:u.builderInsertElement)]]),Io(ua("span",DE,[ua("i",{class:ee(null===(d=e.$_getElementConfig("div"))||void 0===d?void 0:d.icon),onMouseenter:t[14]||(t[14]=function(t){return i.insertLabel=e.i18n.div}),onMouseleave:t[15]||(t[15]=function(e){return i.insertLabel=void 0}),onClick:t[16]||(t[16]=function(e){return r.insertNewElement("div")})},null,34)],512),[[As,"div"!==(null===(f=this.bricks)||void 0===f?void 0:f.builderInsertElement)]])])])):va("",!0),ua("li",NE,[ua("span",{textContent:de("".concat(e.i18n.wrap," (").concat(i.wrapLabel||e.i18n[null===(p=this.bricks)||void 0===p?void 0:p.builderWrapElement]||e.i18n.block,")")),class:"label",onClick:t[17]||(t[17]=function(t){var n;return e.$_wrapInNestable(r.element,(null===(n=T.bricks)||void 0===n?void 0:n.builderWrapElement)||"block")})},null,8,jE),ua("div",VE,[Io(ua("span",{"data-balloon":e.i18n.section,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(h=e.$_getElementConfig("section"))||void 0===h?void 0:h.icon),onClick:t[18]||(t[18]=function(t){return e.$_wrapInNestable(r.element,"section")}),onMouseenter:t[19]||(t[19]=function(t){return i.wrapLabel=e.i18n.section}),onMouseleave:t[20]||(t[20]=function(e){return i.wrapLabel=void 0})},null,34)],8,FE),[[As,0==r.element.parent&&"section"!=r.element.name]]),Io(ua("span",{"data-balloon":e.i18n.container,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(m=e.$_getElementConfig("container"))||void 0===m?void 0:m.icon),onClick:t[21]||(t[21]=function(t){return e.$_wrapInNestable(r.element,"container")}),onMouseenter:t[22]||(t[22]=function(t){return i.wrapLabel=e.i18n.container}),onMouseleave:t[23]||(t[23]=function(e){return i.wrapLabel=void 0})},null,34)],8,RE),[[As,"container"!==(null===(g=this.bricks)||void 0===g?void 0:g.builderWrapElement)]]),Io(ua("span",{"data-balloon":e.i18n.block,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(v=e.$_getElementConfig("block"))||void 0===v?void 0:v.icon),onClick:t[24]||(t[24]=function(t){return e.$_wrapInNestable(r.element,"block")}),onMouseenter:t[25]||(t[25]=function(t){return i.wrapLabel=e.i18n.block}),onMouseleave:t[26]||(t[26]=function(e){return i.wrapLabel=void 0})},null,34)],8,qE),[[As,"block"!==(null===(b=this.bricks)||void 0===b?void 0:b.builderWrapElement)]]),Io(ua("span",BE,[ua("i",{class:ee(null===(y=e.$_getElementConfig("div"))||void 0===y?void 0:y.icon),onMouseenter:t[27]||(t[27]=function(t){return i.wrapLabel=e.i18n.div}),onMouseleave:t[28]||(t[28]=function(e){return i.wrapLabel=void 0}),onClick:t[29]||(t[29]=function(t){return e.$_wrapInNestable(r.element,"div")})},null,34)],512),[[As,"div"!==(null===(w=this.bricks)||void 0===w?void 0:w.builderWrapElement)]])])]),["section","container","block","div"].includes(r.element.name)?(Yr(),oa("li",{key:3,class:"convert sep",onClick:t[42]||(t[42]=El((function(){}),["stop"]))},[ua("span",{textContent:de("".concat(e.i18n.convert," ").concat(i.convertLabel?"(".concat(i.convertLabel,")"):"")),class:"label"},null,8,zE),ua("div",HE,[Io(ua("span",{"data-balloon":e.i18n.section,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(k=e.$_getElementConfig("section"))||void 0===k?void 0:k.icon),onClick:t[30]||(t[30]=function(e){return r.convertTo(r.element,"section")}),onMouseenter:t[31]||(t[31]=function(t){return i.convertLabel=e.i18n.section}),onMouseleave:t[32]||(t[32]=function(e){return i.convertLabel=void 0})},null,34)],8,WE),[[As,!(null!==(x=r.element)&&void 0!==x&&x.parent&&0!=r.element.parent||"section"==r.element.name)]]),Io(ua("span",{"data-balloon":e.i18n.container,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(C=e.$_getElementConfig("container"))||void 0===C?void 0:C.icon),onClick:t[33]||(t[33]=function(e){return r.convertTo(r.element,"container")}),onMouseenter:t[34]||(t[34]=function(t){return i.convertLabel=e.i18n.container}),onMouseleave:t[35]||(t[35]=function(e){return i.convertLabel=void 0})},null,34)],8,UE),[[As,"container"!=r.element.name]]),Io(ua("span",{"data-balloon":e.i18n.block,"data-balloon-pos":"top"},[ua("i",{class:ee(null===(_=e.$_getElementConfig("block"))||void 0===_?void 0:_.icon),onMouseenter:t[36]||(t[36]=function(t){return i.convertLabel=e.i18n.block}),onMouseleave:t[37]||(t[37]=function(e){return i.convertLabel=void 0}),onClick:t[38]||(t[38]=function(e){return r.convertTo(r.element,"block")})},null,34)],8,KE),[[As,"block"!=r.element.name]]),Io(ua("span",GE,[ua("i",{class:ee(null===(S=e.$_getElementConfig("div"))||void 0===S?void 0:S.icon),onMouseenter:t[39]||(t[39]=function(t){return i.convertLabel=e.i18n.div}),onMouseleave:t[40]||(t[40]=function(e){return i.convertLabel=void 0}),onClick:t[41]||(t[41]=function(e){return r.convertTo(r.element,"div")})},null,34)],512),[[As,"div"!=r.element.name]])])])):va("",!0),e.$_isNestable(r.element)?(Yr(),oa("li",{key:4,class:"save sep",onClick:t[43]||(t[43]=function(e){return r.saveAsTemplate()}),innerHTML:e.i18n.saveAsTemplate},null,8,ZE)):va("",!0),r.globalElement?(Yr(),oa("li",{key:5,class:"unlink",onClick:t[44]||(t[44]=function(t){return e.$_unlinkGlobalElement()}),innerHTML:"".concat(e.i18n.unlink," (").concat(e.i18n.globalElement,")")},null,8,JE)):va("",!0),r.globalElement||"slider-nested"===r.element.name?va("",!0):(Yr(),oa("li",{key:6,class:"save",onClick:t[45]||(t[45]=function(e){return r.saveAsGlobalElement()}),innerHTML:e.i18n.saveAsGlobalElement},null,8,YE))])])),[[As,i.show],[$,r.closeMe]])}]]);var eI={setup:function(){var e,t,n=Ut(!0);return e="main",window.addEventListener("message",(function(t){var n=function(e){try{var t=JSON.parse(e);if("object"===ph(t)&&t.hasOwnProperty("key")&&t.hasOwnProperty("value"))return t}catch(e){return!1}return!1}(t.data);n&&(null!=n&&n.ignoreOrigin?Vf[n.key]=n.value:"messageOrigin"!==n.key&&Vf.messageOrigin===e||(Vf[n.key]=n.value))})),t="iframe",Object.keys(Vf).forEach((function(e){_o((function(){return Vf[e]}),(function(n){if(Vf.messageOrigin!==t&&(!1!==Vf.sendPostMessage||!["globalClasses",zf.value].includes(e))&&"debounceIds"!==e&&"globalClassIndexById"!==e&&"rerenderLoopIds"!==e&&"rerenderElementIds"!==e){var o={key:e,value:n};(window.bricksData.message.includes(e)||"any"===window.bricksData.message)&&console.info({time:Date.now(),key:e,value:n,size:mh()(JSON.stringify(o)),store:mh()(JSON.stringify(Vf))});var i=JSON.stringify(o),r=document.getElementById("bricks-builder-iframe");window.top==window.self?r&&r.contentWindow.postMessage(i,window.bricksData.siteUrl):window.top.postMessage(i,window.bricksData.siteUrl)}}),{deep:!0})})),ai((function(){var e=window.bricksData.adminUrl,t=new XMLHttpRequest;t.open("GET",e,!0),t.onreadystatechange=function(){t.readyState===XMLHttpRequest.DONE&&uh.http({method:"GET",fetch:!1,data:{action:"bricks_get_current_user_id"},error:function(e){n.value=!1,window.bricksData.debug.includes("bricks_get_current_user_id")&&console.warn("bricks_get_current_user_id:error",e),window.bricksData.loginUrl&&(window.location=window.bricksData.loginUrl)},success:function(e){window.bricksData.debug.includes("bricks_get_current_user_id")&&console.info("bricks_get_current_user_id:success",e)}})},t.send()})),si((function(){var e;Vf.fullAccess&&document.addEventListener("contextmenu",(function(e){var t;if(Vf.isPreviewing)Vf.showContextMenu=!1;else if(!e.target.closest("#bricks-panel-elements")){var n=e.target.closest(".bricks-draggable-item");if(n||(n=e.target.closest(".bricks-element-placeholder")),n){var o,i=void 0;if(null!==(t=n)&&void 0!==t&&null!==(t=t.dataset)&&void 0!==t&&t.id&&(i=(i=null===(o=n)||void 0===o||null===(o=o.dataset)||void 0===o?void 0:o.id).substr(i.length-6)),i&&i===Vf.showContextMenu)Vf.showContextMenu=!1;else{e.preventDefault(),e.stopPropagation(),Vf.activeId=i,Vf.activePanel="element",Vf.showContextMenu=i;var r=e.clientY,a=e.clientX;Tn((function(){var e=document.getElementById("bricks-builder-context-menu");e&&(r+e.offsetHeight>window.innerHeight&&(r=window.innerHeight-e.offsetHeight),a+e.offsetWidth>window.innerWidth&&(a=window.innerWidth-e.offsetWidth-16),e.style.top="".concat(r,"px"),e.style.left="".concat(a,"px"))}))}}}})),document.addEventListener("keydown",(function(e){var t,n,o,i,r,a=Bf.value,s=Hf.value,l=Wf.value,c=e.key?e.key.toLowerCase():"",u=Vf.isMac?"metaKey":"ctrlKey";if(window.bricksData.debug.includes("keydown")&&(console.info("keydown:metaKey === Mac; ctrlKey === Windows"),console.warn("keydown:key:cmdCtrl:e",c,u,e)),"escape"===c&&("conflicts"!==Vf.popup&&(Vf.popup=!1),Vf.showContainerLayouts=!1,Vf.showContextMenu=!1,"bricks-panel-search"===document.activeElement.id?document.activeElement.blur():document.activeElement.closest("[contenteditable]")?document.activeElement.closest("[contenteditable]").blur():("BODY"===document.activeElement.tagName||document.activeElement.closest("#bricks-structure")||document.activeElement.closest("#bricks-panel-search"))&&(Vf.activePanel="elements",Vf.activeId=!1)),e[u]&&e.shiftKey)switch(c){case"arrowright":if(uh.isEditable())return;null!=a&&null!==(t=a.children)&&void 0!==t&&t.length&&(e.preventDefault(),Vf.activeId=a.children[0],Vf.scrollToElementId=Vf.activeId,Vf.activePanel="element");break;case"arrowleft":if(uh.isEditable()||null==a||!a.id)return;e.preventDefault(),0!=a.parent?(Vf.activeId=a.parent,Vf.scrollToElementId=Vf.activeId,Vf.activePanel="element"):(Vf.activeId=!1,Vf.activePanel="elements");break;case"arrowup":case"arrowdown":if(uh.isEditable()||Vf.isInlineEditing)return;if(e.preventDefault(),!Vf.activeId)return Vf.activeId=l[0].id,Vf.scrollToElementId=Vf.activeId,void(Vf.activePanel="element");if(null!=a&&a.id&&a.parent){var d,f=a.parent,p=s.find((function(e){return e.id===f}));if(null!=p&&null!==(d=p.children)&&void 0!==d&&d.length){var h=p.children.findIndex((function(e){return e===Vf.activeId})),m="arrowdown"===c?h+1:h-1;p.children[m]&&(Vf.activeId=p.children[m],Vf.scrollToElementId=Vf.activeId,Vf.activePanel="element")}}else if(!a.parent){var g=l.findIndex((function(e){return e.id===Vf.activeId}));return void(l[g="arrowdown"===c?g+1:g-1]&&(Vf.activeId=l[g].id,Vf.scrollToElementId=Vf.activeId,Vf.activePanel="element"))}break;case"e":e.preventDefault(),uh.showPanel();var v=window.top.document.getElementById("bricks-panel-search");v&&v.focus();break;case"f":e.preventDefault(),Vf.showControlSearch=!Vf.showControlSearch;break;case"s":e.preventDefault(),uh.savePost({force:!0});break;case"v":e.preventDefault();var b=window.top.document.querySelector("#bricks-toolbar .new-tab a");b&&b.click();break;case"z":if(Vf.isInlineEditing)return;if(null!==(n=document.activeElement)&&void 0!==n&&n.closest(".CodeMirror"))return;e.preventDefault(),fh.goto("redo");break;case"d":if(!lp(a))return;e.preventDefault(),ip();break;case"l":e.preventDefault(),Vf.fullAccess&&(Vf.popup=!Vf.popup&&"templates");break;case"p":e.preventDefault(),rp(!1,null===(o=window.bricksData)||void 0===o?void 0:o.builderWrapElement);break;case"x":e.preventDefault(),Vf.showStructure=!Vf.showStructure;break;case"h":e.preventDefault(),uh.showPanel({panel:"history"})}else if(e[u])switch(c){case".":Vf.fullAccess&&(window.bricksData.disableClassManager&&window.bricksData.disableVariablesManager||(Vf.popup=Vf.activeCssPopup));break;case"enter":window.bricksData.disableGlobalClasses||Vf.isInlineEditing||null==a||!a.id||(Vf.showElementClasses=!Vf.showElementClasses);break;case"delete":if(!cp(a))return;!Vf.isInlineEditing&&null!=a&&a.id&&(Vf.deleteElement=a);break;case"b":e.preventDefault(),!Vf.isInlineEditing&&document.activeElement&&document.activeElement.blur();var y,w,k=uh.clone(Vf.breakpoints).filter((function(e){return!(null!=e&&e.paused)})),x=k.findIndex((function(e){return e.key===Vf.breakpointActive}));null!==(i=k[x+=1])&&void 0!==i&&i.key?Vf.breakpointActive=null===(y=k[x])||void 0===y?void 0:y.key:Vf.breakpointActive=null===(w=k[0])||void 0===w?void 0:w.key;break;case"p":e.preventDefault(),Vf.isPreviewing=!Vf.isPreviewing;break;case"s":e.shiftKey||(e.preventDefault(),uh.savePost());break;case"c":case"v":if(!Vf.fullAccess||Vf.isPreviewing||Vf.isPanelExpanded||uh.isEditable()||window.getSelection().toString())return;"c"===c?(e.preventDefault(),bp()):"v"===c&&("INPUT"!==document.activeElement.tagName||"INPUT"===document.activeElement.tagName&&document.activeElement.hasAttribute("readonly"))&&(e.preventDefault(),yp());break;case"z":if(Vf.isInlineEditing)return;if(e.shiftKey)return;if(null!==(r=document.activeElement)&&void 0!==r&&r.closest(".CodeMirror"))return;e.preventDefault(),fh.goto("undo")}})),e="main",_o((function(){return Vf.unsavedChanges}),(function(e){e.length&&!window.location.search.includes("dev")?window.onbeforeunload=function(){return"Are you sure you want to leave the builder without saving? All your unsaved changes will be lost!"}:window.onbeforeunload=null}),{deep:!0}),["header","content","footer","pageSettings","templateSettings","breakpoints","colorPalette","globalClasses","globalClassesLocked","globalClassesCategories","globalVariables","globalVariablesCategories","globalElements","pinnedElements","pseudoClasses","themeStyles"].forEach((function(t){_o((function(){return Vf[t]}),(function(n){Vf.messageOrigin===e&&Vf.iframeLoaded&&(Vf.isBroadcasting||Vf.unsavedChanges.includes(t)||Vf.unsavedChanges.push(t))}),{deep:!0})})),window.addEventListener("focus",(function(e){setTimeout((function(){Vf.messageOrigin="main",Vf.showContainerLayouts=!1,Vf.isInlineEditing=!1}),1)})),window.addEventListener("mousedown",(function(e){Vf.messageOrigin="main",Vf.showContainerLayouts=!1,Vf.isInlineEditing=!1}))})),{secure:n}},watch:{"$_state.templateType":function(e){var t;e&&(t="main",[zf.value,"globalClasses"].forEach((function(e){var n=Ua((function(){return JSON.stringify(Vf[e])})),o=!1;_o([n],(function(n,i){if(!o&&Vf.messageOrigin===t&&!Vf.historyInProgress&&Vf.iframeLoaded){o=Date.now();var r=100;(uh.isEditable()||Vf.isSpacingElement||Vf.isResizingPanel)&&(r=600),setTimeout((function(){i=JSON.parse(i),n=uh.clone(Vf[e]);var t=(0,dh.diff)(n,i);if(t){var r=window.bricksData.i18n,a={_label:"globalClasses"===e?r.cssClass:r.element,_action:""};if(n.length>i.length)a._action="added";else if(n.length<i.length)a._action="deleted";else{var s;if(a._action="moved","globalClasses"===e){if(null!==(s=Rf.value)&&void 0!==s&&s.name)a._label=Rf.value.name,a._action="edited";else if(!Vf.history.length){var l=uh.clone(a);return l._label="start",l._action="",l[e]=t,Vf.history.push(l),void(o=!1)}}else Vf.activeElement&&(a._label=uh.getElementLabel(uh.clone(Vf.activeElement)),a._action="edited")}if(a[e]=t,!Vf.history.length){var c=uh.clone(a);c._label="start",c._action="",Vf.history.push(c)}Vf.history.length>Vf.historyIndex+1&&(0===Vf.historyIndex?Vf.history=[Vf.history.at(-1)]:Vf.history.length=Vf.historyIndex),Vf.history.length>=50&&Vf.history.shift(),Vf.history.push(a),Vf.historyIndex=Vf.history.length-1,o=!1}else o=!1}),r)}}))})))},"$_state.deleteElement":{handler:function(e){e&&this.$_deleteElement(e)}}},components:{TheBreakpoints:nm,TheNotifications:$m,TheToolbar:dg,ThePanel:My,ThePreview:W$,TheStructure:rE,ThePreloader:pE,TheMessage:gE,TheContextMenu:XE,TheNotification:Ny}};var tI=(0,tm.Z)(eI,[["render",function(e,t,n,o,i,r){var a=no("the-breakpoints"),s=no("the-notifications"),l=no("the-toolbar"),c=no("the-panel"),u=no("the-preview"),d=no("the-structure"),f=no("the-preloader"),p=no("the-message"),h=no("the-context-menu");return Yr(),oa(Wr,null,[o.secure&&e.$_state.fullAccess&&e.bricks.customBreakpoints?(Yr(),ia(a,{key:0})):va("",!0),o.secure?(Yr(),ia(s,{key:1})):va("",!0),o.secure?(Yr(),ia(l,{key:2})):va("",!0),o.secure?(Yr(),ia(c,{key:3})):va("",!0),o.secure?(Yr(),ia(u,{key:4})):va("",!0),o.secure?(Yr(),ia(d,{key:5})):va("",!0),o.secure?(Yr(),ia(f,{key:6})):va("",!0),o.secure?(Yr(),ia(p,{key:7})):va("",!0),o.secure&&e.$_state.fullAccess?(Yr(),ia(h,{key:8})):va("",!0)],64)}]]);function nI(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,a,s=[],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)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||rI(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 oI(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 iI(e){return function(e){if(Array.isArray(e))return aI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rI(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.")}()}function rI(e,t){if(e){if("string"==typeof e)return aI(e,t);var n=Object.prototype.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)?aI(e,t):void 0}}function aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function sI(e,t,n){var o;return o=function(e,t){if("object"!=lI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lI(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==lI(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lI(e){return lI="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},lI(e)}var cI=window.bricksData,uI=function(e){return Number.isFinite(Number(e))},dI=function(){var e=uh.clone(Vf.colorPalette);if(!e.length)return{};var t={};return e.forEach((function(e){e.colors&&Array.isArray(e.colors)&&e.colors.forEach((function(e){e.id&&(t[e.id]=e)}))})),t},fI=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"element",o=null==e?void 0:e.id,i=null==e?void 0:e.settings,r=null==e?void 0:e._cssGlobalClass,a=null==e?void 0:e.loopId;if(i){var s="",l="";r&&(l=".".concat(r),cI.disableClassChaining||(l=".".concat(r,".brxe-").concat(e.name))),o&&!r&&(null!=e&&e.global?l=".brxe-".concat(e.global):a?(l=a===o?".brxe-".concat(o):".brxe-".concat(a," .brxe-").concat(o),l+=".brxe-".concat(e.name)):l=null==i||!i._cssId||null!=i&&i._cssId.includes("{")?"#brxe-".concat(o):"#".concat(i._cssId));var c={};Vf.breakpoints.forEach((function(e){c[e.key]={}}));var u,d=function(r){var u,d=i[r];if(!d)return 0;var f="";if(r.startsWith("_cssCustom")||"customCss"===r){var p;if(a){var h=new RegExp("#brxe-".concat(o),"g");d=d.replaceAll(h,".brxe-".concat(o))}var m=null===(p=cI.fonts)||void 0===p?void 0:p.custom;"object"===lI(m)&&d.includes("font-family")&&Object.keys(m).forEach((function(e){var t=m[e];if(d.includes(t.id)||d.includes(t.family)){var n=!(null==t||!t.css)&&Object.keys(t.css);n&&(Vf.activeCustomFonts[t.id]=n)}})),d&&(f="/* CUSTOM CSS */\n".concat(d,"\n"))}if("global"===n&&f)return{v:f};var g=r,v="desktop";Vf.breakpoints.map((function(e){return e.key})).sort((function(e,t){return t.length-e.length})).forEach((function(e){"desktop"===v&&"desktop"!==e&&r.indexOf(e)>0&&(g=(g=g.replace(":".concat(e),"")).replace("_".concat(e),""),v=e)}));var b="";-1!==r.indexOf("_hover")?(g=g.replace("_hover",""),b=":hover"):Vf.pseudoClasses.forEach((function(e){-1!==r.indexOf(e)&&(g=g.replace(e,""),b=e)}));var y=null==t?void 0:t[g];if(!y)return 0;if("icon"===y.type&&(null==y||!y.css)&&null!==(u=d)&&void 0!==u&&u.svg&&Object.keys(d).length>2&&(y.css=[{selector:null!=y&&y.root?"":"svg"}]),"element"===n&&"repeater"===y.type&&c.hasOwnProperty(v))return s+=pI(e,d,y),0;var w=Array.isArray(null==y?void 0:y.css)?y.css:[];f&&c.hasOwnProperty(v)&&f.split("{").length===f.split("}").length&&(c[v]._customCss=f),w.forEach((function(e){if(!e.hasOwnProperty("required")||d===e.required){var t=l,n=(null==e?void 0:e.property)||"",o=d,r=null==e?void 0:e.important,a=mI(y,n,o,r);"number"===y.type&&y.unit&&(o+=y.unit),e.hasOwnProperty("value")&&(e.value&&e.value.includes("%s")?("content"===e.property&&(o=(o=o.replaceAll('"',"")).replaceAll("'","")),null!=y&&y.units&&!isNaN(o)&&(o+="px"),a="".concat(e.property,": ").concat(e.value.replaceAll("%s",o))):a="".concat(e.property,": ").concat(e.value),r&&(a+=" !important"));var s=e.hasOwnProperty("selector")?e.selector:"";if(s.includes(", ")&&(s=s.replaceAll(", ",", ".concat(t," "))),!s||b.includes(":before")||b.includes(":after")||(s.startsWith("&")?s=s.substring(1):s.includes(".repeater-item")&&s.includes(" &")?s=" "+s.replace(" &",""):t+=" ",t+=s),"gradient"===y.type){var u,f,p=(null===(u=o)||void 0===u?void 0:u.applyTo)||"background";if(null!==(f=o)&&void 0!==f&&f.cssSelector&&(s&&(t=t.replace(s,"")),t+=" ".concat(o.cssSelector)),"overlay"===p)c.hasOwnProperty(v)&&(c[v][":where(".concat(t," > *)")]="position: relative",i.hasOwnProperty(uh.getControlKeyPlain("_position"))||(c[v].hasOwnProperty(t)?c[v][t]+="position: relative;":c[v][t]="position: relative;")),e.hasOwnProperty("value")||(t+="::before")}if(b!==Vf.pseudoClassActive||b.includes(":before")||b.includes(":after")||b.includes(":nth-child")||(b=""),b&&t.includes(", ")&&(t=t.replaceAll(", ","".concat(b,", "))),-1!==t.indexOf("{pseudo}")?t=t.replaceAll("{pseudo}",b):t+=b,b&&(t=t.replaceAll(" :",":")),a&&c.hasOwnProperty(v))c[v].hasOwnProperty(t)||(c[v][t]=""),-1===c[v][t].split(";").indexOf(a)&&(c[v][t]+="".concat(a,";"))}}))};for(var f in i)if(0!==(u=d(f))&&u)return u.v;var p=uh.clone(Vf.breakpoints),h=p.findIndex((function(e){return e.base}));return h>0&&p.unshift(p.splice(h,1)[0]),p.forEach((function(e){if(null==e||!e.paused){var t=c[e.key],o=Object.keys(t);o.length&&o.forEach((function(o){var i="element"===n?"":"".concat(n.toUpperCase(),": ");i+=e.label.toUpperCase();var r=e.width>uh.getBaseBreakpointWidth(),a="".concat(o," {").concat(t[o],"}");if("_customCss"!==o&&"_repeater"!==o||(a=t[o]),a){var l="\n/* ".concat(i," */\n");e.hasOwnProperty("base")?l+=a:(l+="@media (".concat(r?"min-width":"max-width",": ").concat(e.width,"px) {\n"),l+=a,l+="}\n"),s+=l}}))}})),s}},pI=function(e,t,n){var o="",i=(null==n?void 0:n.fields)||[],r=(null==n?void 0:n.selector)||".repeater-item",a=1;return t.forEach((function(t,n){var s=function(){var s,c,u,d=uh.getControlKeyPlain(l);if("id"===d||"titleEditable"===d)return 0;var f=(null==i?void 0:i[d])||!1;if(!f)return cI.debug&&console.warn("ERROR: No control found for repeater item controlKey: ".concat(d)),0;var p,h=null==t?void 0:t[l];"icon"===f.type&&(null===(s=f)||void 0===s||!s.css)&&null!=h&&h.svg&&Object.keys(h).length>2&&(f.css=[{selector:null!==(p=f)&&void 0!==p&&p.root?"":"svg"}]);if(!f.hasOwnProperty("css"))return 0;var m=null!=e&&null!==(c=e.settings)&&void 0!==c&&c.hasLoop?" .swiper-slide":' .swiper-slide[data-brx-swiper-index="'.concat(n,'"]');(f=uh.clone(f)).css.forEach((function(e,o){var i=f.css[o].selector;switch(r){case"swiperJs":e.selector?f.css[o].selector="".concat(m," ").concat(e.selector):f.css[o].selector=m;break;case"fieldId":var s=(null==t?void 0:t.id)||n;f.css[o].selector='.repeater-item [data-field-id="'.concat(s,'"]');break;default:f.css[o].selector=i?"".concat(r,":nth-child(").concat(a,") ").concat(i):"".concat(r,":nth-child(").concat(a,")")}})),null!==(u=e.settings)&&void 0!==u&&u._cssId&&!e.settings._cssId.includes("{")&&(t._cssId=e.settings._cssId),e.settings=t;var g=sI({},d,f);o+=fI(e,g,"element")};for(var l in t)s();a++})),o},hI=function(e){var t,n=dI(),o=null==e?void 0:e.id;if(null!=e&&e.raw){if(e.raw.includes("{")&&e.raw.includes("}")){var i=e.raw.replaceAll(/[{}]/g,"").trim();return Vf.dynamicData.hasOwnProperty(i)?Vf.dynamicData[i]:(Vf.dynamicData[i]="",uh.getDynamicDataContent({content:"{".concat(i,"}"),checkState:!0,success:function(e){Array.isArray(Vf.dynamicData)&&(Vf.dynamicData={});var t=e.data.content;t.startsWith("{")||(Vf.dynamicData[i]=t),Tn((function(){Vf.colorPaletteInlineCssVars=gI("colorPalette"),"main"===Vf.messageOrigin&&uh.postMessage({key:"dynamicData",value:Vf.dynamicData,ignoreOrigin:!0})}))}}),"var(--brx-dd-".concat(i,")"))}if(!o)return e.raw}return o&&n.hasOwnProperty(o)?null!==(t=n[o])&&void 0!==t&&t.raw?n[o].raw:"var(--bricks-color-".concat(o,")"):null!=e&&e.rgb?e.rgb:!(null==e||!e.hex)&&e.hex},mI=function(e,t,n){var o,i,r,a,s,l,c,u,d,f,p,h,m,g,v,b=arguments.length>3&&void 0!==arguments[3]&&arguments[3],y=[],w=e.directions?Object.keys(e.directions):["top","right","bottom","left"];if("object"===lI(n))switch(e.type){case"background":for(var k in n)switch(k){case"color":var x=hI(n[k]);x&&y.push("background-".concat(k,": ").concat(x));break;case"image":y.push("background-size: cover");var C=uh.clone(n[k]);C.hasOwnProperty("url")&&C.url&&y.push("background-".concat(k,": url(").concat(C.url,")"));break;case"attachment":y.push("background-attachment: ".concat(n[k]));break;case"blendMode":y.push("background-blend-mode: ".concat(n[k]));break;case"repeat":y.push("background-repeat: ".concat(n[k]));break;case"position":if("custom"===n[k]){var _=[];n.hasOwnProperty("positionX")?_.push(n.positionX):_.push("center"),n.hasOwnProperty("positionY")?_.push(n.positionY):_.push("center"),y.push("background-position: ".concat(_.join(" ")))}else y.push("background-position: ".concat(n[k]));break;case"size":"custom"!==(null===(o=n)||void 0===o?void 0:o.size)&&y.push("background-size: ".concat(n[k]));break;case"custom":if("custom"===(null===(i=n)||void 0===i?void 0:i.size)){var S,T=null!==(S=(v=n[k])?v.replace(/{(.*?)}/g,(function(e,t){return t=t.trim(),Vf.dynamicData.hasOwnProperty(t)?Vf.dynamicData[t]:e})):v)&&void 0!==S?S:n[k];T&&y.push("background-size: ".concat(T))}}break;case"border":var $,E=!1,I=!1,M=null===(r=n)||void 0===r?void 0:r.width;if(M&&w.forEach((function(e){var t,o,i,r,a=M.hasOwnProperty(e)?M[e]:"",s=(null==M||null===(t=M.unit)||void 0===t?void 0:t[e])||"";""===a&&""===s||(/^\d+$/.test(a)&&""===s&&(s=Vf.defaultUnit),a.toString().includes(s)&&(s=""),y.push("border-".concat(e,"-width: ").concat(a).concat(s)),null!==(o=n)&&void 0!==o&&o.style&&(y.push("border-".concat(e,"-style: ").concat(n.style)),E=!0),null!==(i=n)&&void 0!==i&&i.color&&(y.push("border-".concat(e,"-color: ").concat(hI(null===(r=n)||void 0===r?void 0:r.color))),I=!0))})),!E&&null!==(a=n)&&void 0!==a&&a.style&&y.push("border-style: ".concat(n.style)),!I&&null!==(s=n)&&void 0!==s&&s.color)y.push("border-color: ".concat(hI(null===($=n)||void 0===$?void 0:$.color)));if(null!==(l=n)&&void 0!==l&&l.radius){var A,O=null===(A=n)||void 0===A?void 0:A.radius,P=[],L=void 0;w.forEach((function(e){var t,n=O.hasOwnProperty(e)?O[e]:"",o=(null==O||null===(t=O.unit)||void 0===t?void 0:t[e])||"";if(""!==n||""!==o){switch(e){case"top":e="top-left";break;case"right":e="top-right";break;case"bottom":e="bottom-right";break;case"left":e="bottom-left"}/^\d+$/.test(n)&&""===o&&(o=Vf.defaultUnit),P.push("border-".concat(e,"-radius: ").concat(n).concat(o)),L=(null==L||L=="".concat(n).concat(o))&&"".concat(n).concat(o)}})),4===P.length&&L?y.push("border-radius: ".concat(L)):P.forEach((function(e){return y.push(e)}))}break;case"box-shadow":var D=[];if(n.hasOwnProperty("inset")&&n.inset&&D.push("inset"),null!==(c=n)&&void 0!==c&&c.values){["offsetX","offsetY","blur","spread"].forEach((function(e){var t,o,i=null!==(t=n.values)&&void 0!==t&&t[e]?null===(o=n.values)||void 0===o?void 0:o[e]:0;!i||isNaN(i)||i.toString().includes(Vf.defaultUnit)||(i+=Vf.defaultUnit),D.push(i)}))}if(null!==(u=n)&&void 0!==u&&u.color){var N=hI(n.color);N&&D.push(N)}else D.push("transparent");y.push("".concat(t,": ").concat(D.join(" ").trim()));break;case"checkbox":break;case"color":var j=hI(n);j&&y.push("".concat(t,": ").concat(j));break;case"dimensions":case"spacing":var V=(null===(d=n)||void 0===d?void 0:d.unit)||{};w.forEach((function(e){var o=n.hasOwnProperty(e)?n[e]:"",i=V.hasOwnProperty(e)?V[e]:"";if(""!==o||""!==i){var r=parseFloat(o);if(o&&!i)!(!o||!r)&&o.toString().length===r.toString().length&&(o="".concat(r).concat(Vf.defaultUnit));else"-"===i||"none"===i?o=r:i&&(i.includes("(")?o=i:o+=i);("string"==typeof o&&o.endsWith("auto")||"auto"===i)&&(o="auto");var a=e;t&&(a=t.includes("{key}")?t.replaceAll("{key}",e):"".concat(t,"-").concat(e)),y.push("".concat(a,": ").concat(o))}}));break;case"filters":var F=Object.keys(n),R=[];F.forEach((function(e){var t=n[e];if(""!==t){switch(e){case"blur":t+="px";break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t+="%";break;case"hue-rotate":t+="deg"}R.push("".concat(e,"(").concat(t,")"))}})),y.push("filter: ".concat(R.join(" ")));break;case"gradient":if(null===(f=n)||void 0===f||!f.colors)return;var q="background-image: ";null!==(p=n)&&void 0!==p&&p.repeat&&(q+="repeating-");var B=(null===(h=n)||void 0===h?void 0:h.gradientType)||"linear";if(q+="".concat(B,"-gradient("),"linear"===B&&null!==(m=n)&&void 0!==m&&m.angle&&(q+="".concat(n.angle,"deg, ")),"radial"===B){var z,H,W,U,K=(null===(z=n)||void 0===z?void 0:z.radialShape)||"",G=(null===(H=n)||void 0===H?void 0:H.radialSize)||"",Z=(null===(W=n)||void 0===W?void 0:W.radialPosition)||"center";if("custom"===Z)Z=(null===(U=n)||void 0===U?void 0:U.radialCustomPosition)||"center";q+="".concat(K," ").concat(G," at ").concat(Z,", ")}if("conic"===B){var J,Y,Q,X=null!==(J=n)&&void 0!==J&&J.conicAngle?"".concat(n.conicAngle,"deg"):"0deg",ee=(null===(Y=n)||void 0===Y?void 0:Y.conicPosition)||"center";if("custom"===ee)ee=(null===(Q=n)||void 0===Q?void 0:Q.conicCustomPosition)||"center";q+="from ".concat(X," at ").concat(ee,", ")}1===n.colors.length&&n.colors.push(n.colors[0]);var te=[];n.colors.forEach((function(e){if(e.color){var t,n,o,i,r=null!==(t=null==e?void 0:e.stop)&&void 0!==t?t:"";if(r&&(isNaN(r)||(r+="%"),r=" ".concat(r)),null!==(n=e.color)&&void 0!==n&&n.raw){var a=hI(e.color);a||(a=e.color.raw),a&&!a.startsWith("{")&&te.push("".concat(a).concat(r))}else null!==(o=e.color)&&void 0!==o&&o.rgb?te.push("".concat(e.color.rgb).concat(r)):null!==(i=e.color)&&void 0!==i&&i.hex&&te.push("".concat(e.color.hex).concat(r))}})),1===te.length&&te.push(te[0]),q+=te.join(", "),q+=")","text"===n.applyTo?(y.push("-webkit-background-clip: text"),y.push("-webkit-text-fill-color: transparent")):"overlay"===n.applyTo&&(q+='; position: absolute; content: ""; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none'),y.push(q);break;case"icon":var ne=[];for(var oe in n){var ie=n[oe];switch(oe){case"height":case"width":isNaN(ie)||(ie+="px"),ne.push("".concat(oe,": ").concat(ie));break;case"strokeWidth":isNaN(ie)||(ie+="px"),y.push("stroke-width: ".concat(ie,"\n"));break;case"stroke":case"fill":var re=hI(ie);y.push("".concat(oe,": ").concat(re,"\n"))}}ne.length&&y.push(ne.join("; "));break;case"image":var ae=n.url;y.push("".concat(t,": url(").concat(ae,")"));break;case"radio":1===n.length?y.push("".concat(t,": ").concat(n[0])):console.warn("Control type radio has more than one value");break;case"text-shadow":var se=[],le=(null===(g=n)||void 0===g?void 0:g.values)||null;if(le){var ce=(null==le?void 0:le.offsetX)||0;uI(ce)&&(ce+=Vf.defaultUnit),se.push(ce);var ue=(null==le?void 0:le.offsetY)||0;uI(ue)&&(ue+=Vf.defaultUnit),se.push(ue);var de=(null==le?void 0:le.blur)||0;uI(de)&&(de+=Vf.defaultUnit),se.push(de)}if(n.hasOwnProperty("color")){var fe=hI(n.color);fe&&se.push(fe)}else se.push("transparent");y.push("".concat(t,": ").concat(se.join(" ").trim()));break;case"transform":var pe="transform:";Object.keys(n).forEach((function(e){var t=n[e];switch(e){case"translateX":case"translateY":!Math.sign(t)||t.includes("var")||t.includes("calc")||(t+="px");break;case"rotateX":case"rotateY":case"rotateZ":case"skewX":case"skewY":t=parseInt(t),t+="deg"}pe+=" ".concat(e,"(").concat(t,")")})),y.push(pe);break;case"typography":var he=[],me=function(){var e,t,o,i,r,a,s=n[ge];switch(ge){case"color":var l=hI(s);l&&he.push("".concat(ge,": ").concat(l));break;case"font-family":if((r=s).startsWith("custom_font_")){var c,u,d=r;Vf.activeCustomFonts.includes(d)||Vf.activeCustomFonts.push(d);var f=null===(c=cI.fonts)||void 0===c?void 0:c.custom;null!=f&&null!==(u=f[d])&&void 0!==u&&u.family&&(r=f[d].family)}var p=null!==(e=n)&&void 0!==e&&e.fallback?", ".concat(n.fallback):"";if(he.push('font-family: "'.concat(r,'"').concat(p)),a=!!Array.isArray(null===(t=cI.fonts)||void 0===t?void 0:t.google)&&cI.fonts.google.find((function(e){return(null==e?void 0:e.family)===r}))){var h;r=r.replace(/\s+/g,"+");var m,g=[],v={};if(Array.isArray(null===(h=a)||void 0===h?void 0:h.variants))null===(m=a)||void 0===m||m.variants.forEach((function(e){v={},"italic"===e?(v.ital="1",v.wght="400"):e.includes("italic")?(v.ital="1",v.wght=e.replace("italic","")):v.wght=e,g.push(v)}));g=g.filter((function(e,t,n){return t===n.findIndex((function(t){return JSON.stringify(t)===JSON.stringify(e)}))}));var b=[];g.forEach((function(e){Vf.activeGoogleFonts[r]&&Vf.activeGoogleFonts[r].includes(e)||b.push(e)})),b.length&&(Vf.activeGoogleFonts.hasOwnProperty(r)?Vf.activeGoogleFonts[r].concat(b):Vf.activeGoogleFonts[r]=b)}break;case"font-variation-settings":if(r=n["font-family"],s&&he.push("".concat(ge,": ").concat(s)),!r)break;if(a=!!Array.isArray(null===(o=cI.fonts)||void 0===o?void 0:o.google)&&cI.fonts.google.find((function(e){return(null==e?void 0:e.family)===r})),r=r.replace(/\s+/g,"+"),a&&s){var y={};s.split(",").forEach((function(e){var t=e.trim().split(" "),n=t[0].replace(/['"]+/g,""),o=t[1];n&&o&&(y[n]=isNaN(o)?0:o)})),Object.keys(y).length&&(Vf.activeGoogleFonts.hasOwnProperty(r)?Vf.activeGoogleFonts[r].find((function(e){return JSON.stringify(e)===JSON.stringify(y)}))||Vf.activeGoogleFonts[r].push(y):Vf.activeGoogleFonts[r]=[y])}break;case"text-shadow":var w=[],k=(null===(i=s)||void 0===i?void 0:i.values)||null;if(k){var x=(null==k?void 0:k.offsetX)||0;uI(x)&&(x+=Vf.defaultUnit),w.push(x);var C=(null==k?void 0:k.offsetY)||0;uI(C)&&(C+=Vf.defaultUnit),w.push(C);var _=(null==k?void 0:k.blur)||0;uI(_)&&(_+=Vf.defaultUnit),w.push(_)}if(s.hasOwnProperty("color")){var S=hI(s.color);S&&w.push(S)}else w.push("transparent");he.push("".concat(ge,": ").concat(w.join(" ").trim()));break;default:if(s&&"font-variants"!==ge&&"fallback"!==ge){if("font-size"===ge||"letter-spacing"===ge)parseFloat(s)==s&&(s+=Vf.defaultUnit);he.push("".concat(ge,": ").concat(s))}}};for(var ge in n)me();he.length&&y.push(he.join("; "));break;default:console.warn("generateCssRulesString: control object type '".concat(e.type,"' not defined"))}else{if("number"===e.type&&(!e.hasOwnProperty("unit")||"number"!=typeof n&&n.includes(e.unit)?e.hasOwnProperty("units")&&e.units&&!isNaN(n)&&(n+="px"):n+=e.unit),-1!==t.indexOf("transform:")){var ve=t.split(":");t=ve[0],n=ve[1]+"("+n+")"}"pointer-events"!==t&&y.push("".concat(t,": ").concat(n))}if(y.length){var be=[];return y.forEach((function(e){be.push(b?"".concat(e," !important"):e)})),(be=iI(new Set(be))).join("; ")}},gI=function(e,t,n,o){var i,r,a;switch("object"===lI(t)&&(t=uh.clone(t)),e){case"element":if(n=!!cI.elements.hasOwnProperty(t.name)&&cI.elements[t.name].controls){var s=fI(t,n,"element");return s&&(s="/* ELEMENT: ".concat(t.name.toUpperCase().replaceAll("-"," ")," */\n").concat(s)),s}return void console.warn('error:generateCss: controls for element "'.concat(t.name,'" not found.'));case"global":return fI(t,n,"global");case"page":return fI(t,n,"page");case"themeStyles":a="\n/* THEME STYLES */\n";var l={},c={},u=cI.controls.themeStyles.controls;for(var d in u){var f=u[d],p=Vf.themeStyleSettings[d];for(var h in f)l["_".concat(d,"_").concat(h)]=f[h];for(var m in p)c["_".concat(d,"_").concat(m)]=p[m]}var g=null===(i=c)||void 0===i?void 0:i._typography_typographyHeadings;g&&(delete c._typography_typographyHeadings,c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach((function(t){sI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({_typography_typographyHeadings:g},c));var v=fI(t={settings:c},n=l,"theme_styles");return a+=v;case"globalClass":var b="string"==typeof t?uh.getGlobalClass(t):t,y=o||(null==b?void 0:b.settings)||{},w=n||[];if(null==b||!b.name||!w.length)return;return a="",w.forEach((function(e){var t,n=null===(t=cI.elements)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.controls;if(n){var o=fI({name:e,settings:y,_cssGlobalClass:null==b?void 0:b.name},n);o&&(a+=o)}})),a;case"colorPalette":var k=[],x=dI();return t&&x.hasOwnProperty(null===(r=t)||void 0===r?void 0:r.id)&&(x[t.id]=t),Object.keys(x).forEach((function(e){var t=x[e],n=(null==t?void 0:t.rgb)||(null==t?void 0:t.hex),o="--bricks-color-".concat(e);null!=t&&t.raw&&t.raw.startsWith("var(")&&(o=t.raw.replace("var(","").replace(")","")),n&&k.push("".concat(o,": ").concat(n,";"))})),Object.entries(Vf.dynamicData).forEach((function(e){var t=nI(e,2),n=t[0],o=t[1];o&&"string"==typeof o&&((o=o.trim()).startsWith("#")||o.startsWith("var(")||o.startsWith("rgb(")||o.startsWith("rgba(")||o.startsWith("hsl(")||o.startsWith("hsla("))&&k.push("--brx-dd-".concat(n,": ").concat(o,";"))})),k.length&&(a="\n/* COLOR VARS */\n :root { \n"+k.join("\n")+"\n}"),a;case"globalVariables":a="\n/* GLOBAL VARIABLES */\n :root { \n",Vf.globalVariables.forEach((function(e){var t=e.name,n=e.value;a+=" --".concat(t,": ").concat(n,";\n")})),a+="}\n";break;case"header":case"content":case"footer":a="\n/* ".concat(e.toUpperCase()," CSS */\n"),a+=function(e,t){if(Array.isArray(e)){e=uh.clone(e);var n="";return e.forEach((function(o){if(delete o.loopId,uh.getElementConfig(o.name).hasOwnProperty("controls")){var i;"global"!==t&&Vf.globalElements.forEach((function(e){null!=e&&e.global&&null!=o&&o.global&&e.global===o.global&&(o.settings=e.settings,o.id=o.global)}));var r=uh.elementBelongsToLoopId(o,e);r&&(o.loopId=r);var a=null==o||null===(i=o.settings)||void 0===i?void 0:i.template;if(a&&"template"===(null==o?void 0:o.name)){var s,l=null===(s=Vf.templateElements)||void 0===s?void 0:s[a];Array.isArray(l)&&l.forEach((function(e){r&&(e.loopId=r),n+=fI(e,cI.elements[e.name].controls)}))}n+=fI(o,cI.elements[o.name].controls)}})),n}}(Vf[e]);break;case"templateHeader":a="\n/* TEMPLATE HEADER CSS */\n";var C={settings:"header"===zf.value?Vf.templateSettings:Vf.templateHeaderSettings},_=cI.controls.settings.template.controls;a+=fI(C,_);break;case"templateSettings":a="\n/* TEMPLATE SETTINGS CSS (POPUP) */\n";var S={settings:Vf.templateSettings},T=cI.controls.settings.template.controls;a+=fI(S,T);break;default:console.warn('generateCss: cssType "'.concat(e,'" is not defined!'))}return a},vI=function(e){if(!e)return!1;var t=Vf.pseudoClasses;return Object.keys(e).filter((function(e){return t.some((function(t){return e.endsWith(t)}))})).length},bI=function(e,t){var n,o,i=Vf.activeElement,r=null==i?void 0:i.settings;if(null!==(n=Rf.value)&&void 0!==n&&n.settings&&(r=Rf.value.settings),!r)return!1;var a=null===(o=uh.getElementConfig(null==i?void 0:i.name))||void 0===o?void 0:o.controls;return Object.keys(r).find((function(n){var o=uh.getControlKeyPlain(n,e),i=null==a?void 0:a[o],r=null==i?void 0:i.css;if("desktop"===e&&n===o)return t?"style"===(null==i?void 0:i.tab)&&r:r;var s=n.split(":")[1]||"";return s&&s===e?t?"style"===(null==i?void 0:i.tab)&&r:r:void 0}))},yI={controlUnits:{px:{min:-9999,max:9999,step:1},em:{min:-999,max:999,step:.1},rem:{min:-999,max:999,step:.1},vh:{min:-999,max:999,step:1},vw:{min:-999,max:999,step:1},"%":{min:-999,max:999,step:1},auto:{min:0,max:0,step:1},"-":{min:0,max:0,step:1}}};var wI={id:"bricks-debug-info"},kI=["for","textContent"],xI=["textContent"];var CI={data:function(){return{show:!0}},computed:{debug:function(){var e=this,t=this.bricks.debug?this.bricks.debug.split(","):[],n=[];return this.bricks.debug&&t.forEach((function(t){e.$_state.hasOwnProperty(t)&&n.push(t)})),n}}};var _I=(0,tm.Z)(CI,[["render",function(e,t,n,o,i,r){return Yr(),oa("ul",wI,[(Yr(!0),oa(Wr,null,gi(r.debug,(function(t,n){return Io((Yr(),oa("li",{key:t,class:ee(t)},[ua("label",{for:t,textContent:de(t)},null,8,kI),ua("pre",{textContent:de(e.$_state[t])},null,8,xI)],2)),[[As,i.show]])})),128)),ua("li",{class:"debug-toggle",onClick:t[0]||(t[0]=function(e){return i.show=!i.show}),"data-balloon":"Debug Info","data-balloon-pos":"bottom"}," x ")])}]]),SI=["innerHTML"];var TI={props:{name:{type:String,required:!0}},methods:{getSVG:function(){try{return n(3685)("./".concat(this.name,".svg"))}catch(e){this.bricks.debug.includes("catch")&&console.warn("Icon.vue:error",e)}}}};var $I=(0,tm.Z)(TI,[["render",function(e,t,n,o,i,r){return Yr(),oa("span",{class:"bricks-svg-wrapper",innerHTML:r.getSVG()},null,8,SI)}]]);function EI(e){return function(e){if(Array.isArray(e))return II(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return II(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return II(e,t)}(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.")}()}function II(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var MI={name:"sortable",emits:["dragstart"],props:{tag:{required:!1,type:String,default:"div"},element:{type:Object,default:function(){return{}}},parent:{required:!0,type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}}},data:function(){var e,t,n,o,i;return{updateOn:(null===(e=this.options)||void 0===e?void 0:e.updateOn)||"dragend",direction:(null===(t=this.options)||void 0===t?void 0:t.direction)||"vertical",itemClass:(null===(n=this.options)||void 0===n?void 0:n.itemClass)||"bricks-sortable-item",handleClass:(null===(o=this.options)||void 0===o?void 0:o.handleClass)||!1,sortingClass:(null===(i=this.options)||void 0===i?void 0:i.sortingClass)||"sorting",itemNodes:[],draggable:!1,oldIndex:!1,newIndex:!1,delay:0}},methods:{mousedown:function(e){e.stopPropagation(),0===e.button&&this.handleClass&&e.target.classList.contains(this.handleClass)&&(e.target.isContentEditable||Array.isArray(this.parent)&&this.parent.length<2||(this.draggable=e.target.closest(".".concat(this.itemClass)),this.draggable&&this.draggable&&(this.draggable.setAttribute("draggable",!0),this.addListeners())))},dragstart:function(){this.$emit("dragstart"),this.draggable.classList.add(this.sortingClass),this.itemNodes=this.draggable.parentNode.querySelectorAll(":scope > .".concat(this.itemClass)),this.itemNodes=EI(this.itemNodes),this.oldIndex=this.itemNodes.indexOf(this.draggable)},dragover:function(e){if(e.preventDefault(),e.dataTransfer.dropEffect="move",Number.isInteger(this.oldIndex)){var t=e.target.closest(".".concat(this.itemClass));if(t&&t.parentNode===this.draggable.parentNode&&t!==this.draggable){var n=this.itemNodes.indexOf(t);if(Number.isInteger(n)&&this.newIndex!==n){this.newIndex=n;var o="before";if("horizontal"===this.direction){var i=t.getBoundingClientRect();o=e.clientX-i.left<i.width/2?"before":"after"}else o=this.newIndex<this.oldIndex?"before":"after";t.insertAdjacentElement("before"===o?"beforebegin":"afterend",this.draggable),"dragover"===this.updateOn&&this.updateStore(),this.itemNodes=this.$el.querySelectorAll(":scope > .".concat(this.itemClass)),this.itemNodes=EI(this.itemNodes)}}}},end:function(e){var t=this;this.draggable&&(e.preventDefault(),"dragover"!==this.updateOn&&this.updateStore(),Tn((function(){t.removeListeners()})))},updateStore:function(){if(Number.isInteger(this.oldIndex)&&Number.isInteger(this.newIndex)&&this.oldIndex!==this.newIndex){var e=this.parent.splice(this.oldIndex,1);this.parent.splice(this.newIndex,0,e[0])}},addListeners:function(){this.draggable&&(this.draggable.addEventListener("dragstart",this.dragstart),this.draggable.addEventListener("dragend",this.end)),this.$el.addEventListener("dragover",this.dragover)},removeListeners:function(){this.draggable&&(this.draggable.removeEventListener("dragstart",this.dragstart),this.draggable.removeEventListener("dragend",this.end),this.draggable.removeAttribute("draggable"),this.draggable.classList.remove(this.sortingClass),this.draggable=void 0),this.oldIndex=void 0,this.newIndex=void 0,this.$el.removeEventListener("dragover",this.dragover)}},mounted:function(){var e=this;this.$el.addEventListener("mousedown",this.mousedown),window.addEventListener("mouseup",this.end),window.addEventListener("drop",this.end),this.$el.addEventListener("dragenter",(function(t){"LI"===t.target.tagName&&t.target.closest(".categories")&&!e.draggable&&t.target.classList.add("add")})),this.$el.addEventListener("dragleave",(function(t){"LI"===t.target.tagName&&t.target.closest(".categories")&&!e.draggable&&t.target.classList.remove("add")})),this.$el.addEventListener("dragover",(function(e){e.preventDefault()})),this.$el.addEventListener("drop",(function(t){if(!e.draggable&&t.target.classList.contains("add")){t.preventDefault();var n=t.target.dataset.categoryId;e.$_state.globalClassesSelectedManager.forEach((function(t){var o=e.$_state.globalClassIndexById[t],i=e.$_state.globalClasses[o];n?i.category=n:delete i.category})),e.$_state.globalVariablesSelected.forEach((function(t){var o=e.$_state.globalVariables.find((function(e){return e.id===t}));o&&(n?o.category=n:delete o.category)})),e.$_state.globalClassesSelectedManager=[],e.$_state.globalVariablesSelected=[],t.target.classList.remove("add")}}))},beforeUnmount:function(){this.$el.removeEventListener("mousedown",this.mousedown),window.removeEventListener("mouseup",this.end),window.removeEventListener("drop",this.end)},render:function(){return Ga(this.tag,{},this.$slots.default())}},AI={key:0,id:"panel-pseudo-classes"},OI=["placeholder"],PI=["data-balloon","textContent"],LI=["data-balloon","textContent"],DI={class:"input-wrapper content"},NI=["onClick"],jI=["textContent"],VI={class:"actions"},FI={key:0,class:"delete"},RI={key:1,class:"delete"},qI={key:2,class:"clear"};var BI={setup:function(){return{activePanel:sn(Vf,"activePanel"),pseudoClassPopup:sn(Vf,"pseudoClassPopup"),pseudoClassActive:sn(Vf,"pseudoClassActive"),pseudoClasses:sn(Vf,"pseudoClasses")}},data:function(){return{showPopup:!1,classInput:"",deleteId:!1}},computed:{controlKey:function(){return this.$_getControlKeyActive("_content")},content:{get:function(){return this.settings[this.controlKey]},set:function(e){this.settings[this.controlKey]=e}},settings:function(){var e,t;return"theme-styles"===this.activePanel?this.$_state.themeStyleSettings:"settings-page"===this.activePanel?this.$_state.pageSettings:this.$_activeClass.value?(null===(t=this.$_activeClass.value)||void 0===t?void 0:t.settings)||{}:(null===(e=this.$_activeElement.value)||void 0===e?void 0:e.settings)||{}},pseudoClassesTotal:function(){var e=this,t=0;return this.pseudoClasses.forEach((function(n){e.hasPseudoClassSettings(n)&&t++})),t}},methods:{setPseudoClass:function(e){this.pseudoClassActive=e,this.showPopup=!1},createPseudoClass:function(){var e=this.classInput;((e=e.trim()).startsWith(":")||(e=e.replaceAll(" ","-")),this.$_state.breakpoints.some((function(t){return t.key===e})))||e&&(-1===e.indexOf(":")&&(e=":"+e),-1===this.pseudoClasses.indexOf(e)&&(this.pseudoClasses.push(e),this.$_showMessage(this.i18n.pseudoClassCreated),this.$_showMessage(e.includes("::")?this.i18n.pseudoElementCreated:this.i18n.pseudoClassCreated)),this.pseudoClassActive=e,this.classInput="",this.showPopup=!1)},clearPseudoClassSettings:function(e){var t=this,n=this.$_clone(this.settings);if("theme-styles"===this.activePanel)Object.keys(n).forEach((function(o){var i=n[o];for(var r in i)-1!==r.indexOf(e)&&delete t.settings[o][r]}));else for(var o in n)-1!==o.indexOf(e)&&delete this.settings[o]},hasPseudoClassSettings:function(e){var t=this.$_clone(this.settings);return Object.keys(t).filter((function(t){return t.endsWith(e)})).length},pseudoClassIsDeletable:function(e){return-1===[":hover",":active",":focus"].indexOf(e)},deletePseudoClass:function(e){var t=this.pseudoClasses.indexOf(e);-1!==t&&(this.pseudoClasses.splice(t,1),this.$_showMessage(e.includes("::")?this.i18n.pseudoElementDeleted:this.i18n.pseudoClassDeleted),this.pseudoClassActive="")}},watch:{pseudoClasses:{handler:function(e,t){this.pseudoClassActive&&!e.includes(this.pseudoClassActive)&&t.length!=e.length&&(this.pseudoClassActive="")}},pseudoClassPopup:function(e){e||(this.pseudoClassActive="")},showPopup:function(e){var t=this;setTimeout((function(){e&&t.$refs.classInput&&t.$refs.classInput.focus()}),10)},deleteId:function(e){var t=this;e&&setTimeout((function(){t.deleteId=!1}),2e3)}}};var zI=(0,tm.Z)(BI,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-text"),l=no("panel-control-popup");return o.pseudoClassPopup?(Yr(),oa("div",AI,[ua("div",{class:ee(["input-wrapper",{"show-popup":i.showPopup}])},[Io(ua("input",{ref:"classInput",type:"text",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.classInput=e}),onClick:t[1]||(t[1]=El((function(t){return e.$_controlPopupToggle()}),["stop"])),onKeyup:t[2]||(t[2]=Ml((function(e){return r.createPseudoClass()}),["enter"])),placeholder:"".concat(e.i18n.pseudoClassPlaceholder," ...")},null,40,OI),[[ml,i.classInput]]),!r.pseudoClassesTotal||i.showPopup||o.pseudoClassActive?va("",!0):(Yr(),oa("span",{key:0,class:"symbol","data-balloon":e.i18n.active,"data-balloon-pos":"bottom-right",textContent:de(r.pseudoClassesTotal),onClick:t[3]||(t[3]=El((function(t){return e.$_controlPopupToggle()}),["stop"]))},null,8,PI)),i.classInput?(Yr(),ia(a,{key:1,name:"save",class:"create","data-balloon":i.showPopup?null:e.i18n.create,"data-balloon-pos":"bottom-right",onClick:t[4]||(t[4]=function(e){return r.createPseudoClass()})},null,8,["data-balloon"])):va("",!0),o.pseudoClassActive?(Yr(),ia(a,{key:2,class:"clear",name:"close","data-balloon":i.showPopup?null:e.i18n.clear,"data-balloon-pos":"bottom-right",onClick:t[5]||(t[5]=El((function(e){return r.setPseudoClass("")}),["stop"]))},null,8,["data-balloon"])):va("",!0),o.pseudoClassActive?(Yr(),oa("div",{key:3,class:"active-pseudo-class","data-balloon":i.showPopup?null:e.i18n.pseudoClassActive,"data-balloon-pos":"bottom-right",textContent:de(o.pseudoClassActive),onClick:t[6]||(t[6]=El((function(t){return e.$_controlPopupToggle()}),["stop"]))},null,8,LI)):va("",!0)],2),ua("div",DI,[o.pseudoClassActive.includes(":before")||o.pseudoClassActive.includes(":after")?(Yr(),ia(s,{key:0,value:r.content,"onUpdate:value":t[7]||(t[7]=function(e){return r.content=e}),control:{placeholder:e.i18n.content,hasDynamicData:"text"},controlKey:r.controlKey},null,8,["value","control","controlKey"])):va("",!0)]),i.showPopup?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[9]||(t[9]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[ua("ul",null,[(Yr(!0),oa(Wr,null,gi(o.pseudoClasses,(function(n){return Yr(),oa("li",{key:n,onClick:function(e){return r.setPseudoClass(n)},onMouseleave:t[8]||(t[8]=function(e){return i.deleteId=!1})},[ua("span",{class:"name",textContent:de(n)},null,8,jI),ua("div",VI,[r.pseudoClassIsDeletable(n)&&!i.deleteId?(Yr(),oa("span",FI,[da(a,{name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:El((function(e){return i.deleteId=n}),["stop"])},null,8,["data-balloon","onClick"])])):va("",!0),i.deleteId===n?(Yr(),oa("span",RI,[da(a,{name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:El((function(e){return r.deletePseudoClass(n)}),["stop"])},null,8,["data-balloon","onClick"])])):va("",!0),r.hasPseudoClassSettings(n)?(Yr(),oa("span",qI,[da(a,{name:"close","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:El((function(e){return r.clearPseudoClassSettings(n)}),["stop"])},null,8,["data-balloon","onClick"])])):va("",!0)])],40,NI)})),128))])]})),_:1},8,["show"])):va("",!0)])):va("",!0)}]]),HI={class:"bricks-panel-controls"},WI={key:0,class:"controls"},UI=["data-controlkey"],KI={key:1,class:"no-results search-controls"},GI=["textContent"],ZI=["textContent"],JI={key:2,class:"controls"},YI=["data-controlkey"],QI={key:3,class:"control-groups"},XI=["data-control-group"],eM=["onClick"],tM=["onMouseover"],nM={key:0,class:"indicator"},oM=["onClick"],iM=["innerHTML"],rM=["data-controlkey"],aM={key:0,class:"control"},sM={class:"control-inner"};function lM(e){return lM="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},lM(e)}var cM={setup:function(){return{activeId:sn(Vf,"activeId"),activePanel:sn(Vf,"activePanel"),activePanelTab:sn(Vf,"activePanelTab"),activePanelGroup:sn(Vf,"activePanelGroup"),themeStyleSettings:sn(Vf,"themeStyleSettings"),searchControls:sn(Vf,"searchControls")}},props:{type:{type:String,required:!0},block:{type:Object,required:!1,default:function(){return{}}},settings:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{groupHasSettingsHover:!1,refreshKey:this.$_generateId()}},computed:{name:function(){var e;return null===(e=this.block)||void 0===e?void 0:e.name},config:function(){return"element"===this.type?this.$_getElementConfig(this.name):this.block},controls:function(){var e,t,n=this,o="object"===lM(null===(e=this.config)||void 0===e?void 0:e.controls)?this.config.controls:{};return!["brx-nav-nested-items","brx-dropdown-content"].includes(null===(t=this.block)||void 0===t||null===(t=t.settings)||void 0===t||null===(t=t._hidden)||void 0===t?void 0:t._cssClasses)||this.settings.hasOwnProperty("hasLoop")||this.settings.hasOwnProperty("query")||(o=Object.keys(o).filter((function(e){return"hasLoop"!==e&&"query"!==e&&"loopSeparator"!==e})).reduce((function(e,t){return e[t]=o[t],e}),{})),"nav-menu"===this.name&&this.$_isNavMenuInsideDropdown(this.block)&&(o=Object.keys(o).filter((function(e){var t;return"menu"===e||"style"===(null===(t=o[e])||void 0===t?void 0:t.tab)})).reduce((function(e,t){return e[t]=o[t],e}),{})),this.searchControls&&(o=Object.keys(o).filter((function(e){return"separator"!==o[e].type&&(-1!==e.toLowerCase().indexOf(n.searchControls.toLowerCase())||o[e].hasOwnProperty("label")&&-1!==o[e].label.toLowerCase().indexOf(n.searchControls.toLowerCase()))})).reduce((function(e,t){return e[t]=o[t],e}),{})),this.$_state.fullAccess||(o=Object.keys(o).filter((function(e){var t;return!o[e].hasOwnProperty("css")&&(null===(t=o[e])||void 0===t||!t.fullAccess)})).reduce((function(e,t){return e[t]=o[t],e}),{})),"code"!==this.name||this.$_state.userCan.executeCode||(this.settings.hasOwnProperty("executeCode")&&this.settings.executeCode?o=Object.keys(o).filter((function(e){return"_"===e[0]||"infoExecuteCodeOff"===e})).reduce((function(e,t){return e[t]=o[t],e}),{}):delete o.executeCode),"object"===lM(o)?o:{}},controlsGroupless:function(){var e={};for(var t in this.controls){var n=this.controls[t];null==n||!n.tab||"style"===n.tab||null!=n&&n.group||this.isDeprecated(n,t)||(e[t]=n)}return Object.keys(e).length?e:void 0},controlGroups:function(){var e,t=null===(e=this.config)||void 0===e?void 0:e.controlGroups;if(t)return"nav-menu"===this.name&&this.$_isNavMenuInsideDropdown(this.block)&&(t=Object.keys(t).filter((function(e){var n;return"style"===(null===(n=t[e])||void 0===n?void 0:n.tab)})).reduce((function(e,n){return e[n]=t[n],e}),{})),this.$_state.fullAccess||(t=Object.keys(t).filter((function(e){return!t[e].hasOwnProperty("fullAccess")||t[e].hasOwnProperty("fullAccess")&&1!=t[e].fullAccess})).reduce((function(e,n){return e[n]=t[n],e}),{})),t},activeClass:function(){return this.$_activeClass.value}},methods:{getSettings:function(e){var t,n=this.activeClass;return n&&"element"===this.activePanel&&"icon"!==this.controls[e].type&&(null!==(t=this.controls[e])&&void 0!==t&&t.css||"_cssCustom"===e||"_cssClasses"===e)?(null==n?void 0:n.settings)||{}:this.settings},isDeprecated:function(e,t){return(null==e?void 0:e.deprecated)&&!this.settings.hasOwnProperty(t)},controlGroupHasSettings:function(e){var t=this;if("theme-styles"===this.activePanel)return!(!this.themeStyleSettings[e]||!Object.keys(this.themeStyleSettings[e]).length);var n=this.getGroupControls(e);return Object.keys(n).some((function(e){return-1!==Object.keys(t.getSettings(e)).indexOf(t.$_getControlKeyActive(e))}))},resetGroupSettings:function(e){var t=this;if(!this.$_isLocked()){var n=this.getGroupControls(e),o=!1;if("theme-styles"===this.activePanel)for(var i in o=!0,this.themeStyleSettings[e]){var r=this.$_getControlKeyPlain(i);(r=this.$_getControlKeyActive(r))===i&&delete this.themeStyleSettings[e][i]}else{var a,s=this.settings;if("element"===this.activePanel)null!==(a=this.activeClass)&&void 0!==a&&a.settings&&"_shapes"!==e&&(s=this.activeClass.settings);for(var l in n)for(var c in o||(o=!0),s)(c===this.$_getControlKeyActive(l)||c===this.$_getControlKeyActive(l,!1))&&delete s[c]}switch(this.activePanel){case"settings-page":this.$_state.pageSettings=this.$_state.pageSettings;break;case"settings-template":this.$_state.templateSettings=this.$_state.templateSettings;break;case"theme-styles":this.$_state.themeStyles=this.$_state.themeStyles}o&&(this.groupHasSettingsHover=!1,this.refreshKey=this.$_generateId(),this.$nextTick((function(){"element"===t.activePanel&&t.$_forceRender(0)})))}},controlGroupClasses:function(e,t){var n=["control-group",{open:this.activePanelGroup===t}];return this.$_controlRequiredMet(e,this.settings)||n.push("hide"),n},getGroupControls:function(e){var t={};for(var n in this.controls){var o;(null===(o=this.controls[n])||void 0===o?void 0:o.group)===e&&(t[n]=this.controls[n])}return t},toggleGroup:function(e){this.activePanelGroup=this.activePanelGroup===e?"":e},migrateSettingKeys:function(){var e=this,t=function(){var t=n,o=e.settings[n];t=t.replace("_hover",":hover"),e.$_state.breakpoints.forEach((function(e){"desktop"===e.key||null!=e&&e.custom||(t=t.replace("_".concat(e.key),":".concat(e.key)))})),t!==n&&(delete e.settings[n],e.settings[t]=o)};for(var n in this.settings)t()}},mounted:function(){this.migrateSettingKeys(),"element"===this.type&&"form"===this.name&&"object"===lM(this.controlGroups)&&this.controlGroups.hasOwnProperty("fields")&&(this.activePanelGroup="fields")},watch:{activePanel:{handler:function(e,t){"element"===e&&"elements"===t&&(this.refreshKey=this.$_generateId()),-1!==["settings-page","theme-styles"].indexOf(e)&&(this.searchControls="")},immediate:!0}}};const uM=(0,tm.Z)(cM,[["render",function(e,t,n,o,i,r){var a=no("panel-control"),s=no("icon"),l=no("control-info");return Yr(),oa("div",HI,[o.searchControls?(Yr(),oa("ul",WI,[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Yr(),oa("li",{key:"".concat(t,"-").concat(o.activeId,"-").concat(i.refreshKey),"data-controlkey":t},[da(a,{controlKey:t,controls:r.controls,control:e,block:n.block,settings:r.getSettings(t)},null,8,["controlKey","controls","control","block","settings"])],8,UI)})),128))])):va("",!0),o.searchControls&&!Object.keys(r.controls).length?(Yr(),oa("div",KI,[da(s,{name:"no-results"}),ua("p",{textContent:de(e.i18n.noSearchControlsFound)},null,8,GI),ua("button",{textContent:de(e.i18n.clearSearchControlFilters),onClick:t[0]||(t[0]=function(e){return o.searchControls=""})},null,8,ZI)])):va("",!0),!o.searchControls&&r.controlsGroupless?Io((Yr(),oa("ul",JI,[(Yr(!0),oa(Wr,null,gi(r.controlsGroupless,(function(e,t){return Yr(),oa("li",{key:"".concat(t,"-").concat(o.activeId,"-").concat(i.refreshKey),"data-controlkey":t},[da(a,{controlKey:t,controls:r.controls,control:e,block:n.block,settings:r.getSettings(t)},null,8,["controlKey","controls","control","block","settings"])],8,YI)})),128))],512)),[[As,"style"!==o.activePanelTab]]):va("",!0),!o.searchControls&&r.controlGroups?(Yr(),oa("ul",QI,[(Yr(!0),oa(Wr,null,gi(r.controlGroups,(function(c,u){return Io((Yr(),oa("li",{key:"".concat(u,"-").concat(i.refreshKey),class:ee(r.controlGroupClasses(c,u)),"data-control-group":u},[ua("div",{class:"control-group-title",onClick:function(e){return r.toggleGroup(u)}},[r.controlGroupHasSettings(u)?(Yr(),oa("span",{key:0,onMouseover:function(t){return e.$_state.fullAccess&&!e.$_isLocked()?i.groupHasSettingsHover=u:null},onMouseleave:t[1]||(t[1]=function(e){return i.groupHasSettingsHover=!1}),class:ee(["has-setting",e.$_isLocked()?"bricks-is-locked":null])},[i.groupHasSettingsHover!==u?(Yr(),oa("span",nM)):(Yr(),oa("span",{key:1,class:"reset",onClick:El((function(e){return r.resetGroupSettings(u)}),["stop"])},[da(s,{name:"close"})],8,oM))],42,tM)):va("",!0),ua("span",{innerHTML:c.title},null,8,iM),da(s,{name:"arrow-right",class:"arrow"})],8,eM),(Yr(!0),oa(Wr,null,gi(r.getGroupControls(u),(function(e,t){return Yr(),oa("div",{key:"".concat(t,"-").concat(o.activeId,"-").concat(i.refreshKey),"data-controlkey":t},[r.isDeprecated(e,t)||o.activePanelGroup!==u?va("",!0):(Yr(),ia(a,{key:0,controlKey:t,controls:r.controls,control:e,block:n.block,settings:r.getSettings(t)},null,8,["controlKey","controls","control","block","settings"]))],8,rM)})),128)),Object.keys(r.getGroupControls(u)).length||e.$_state.fullAccess?va("",!0):(Yr(),oa("div",aM,[ua("div",sM,[da(l,{class:"info",style:{"margin-top":"10px"},control:{content:e.i18n.infoFullAccessRequired}},null,8,["control"])])]))],10,XI)),[[As,o.activePanelTab===c.tab||"element"!==n.type]])})),128))])):va("",!0)])}]]);var dM=uM,fM={key:0,class:"indicator"},pM=["title","for","data-balloon","data-balloon-pos","data-balloon-length"],hM=["innerHTML"],mM={key:0,class:"icon info"},gM=["data-balloon"],vM=["innerHTML"];var bM={props:{controlKey:{required:!0,type:String},controls:{required:!1,type:Object},control:{required:!0,type:Object},block:{required:!1},settings:{required:!1,default:function(){return{}}}},data:function(){var e,t;return{showControl:!1,hasSettingsHover:!1,refreshKey:this.$_generateId(),resetKey:this.$_generateId(),placeholder:null===(e=this.control)||void 0===e?void 0:e.placeholder,direction:null===(t=this.control)||void 0===t?void 0:t.direction}},computed:{tooltipContent:function(){var e,t,n=null===(e=this.control)||void 0===e?void 0:e.info;this.tooltip&&(n=null===(t=this.tooltip)||void 0===t?void 0:t.content,n||"string"!=typeof this.tooltip||(n=this.tooltip));return n},tooltipPosition:function(){var e;return this.tooltipContent?(null===(e=this.tooltip)||void 0===e?void 0:e.position)||"top-left":null},description:function(){var e,t;return(null===(e=this.control)||void 0===e?void 0:e.description)||(null===(t=this.control)||void 0===t?void 0:t.desc)},settingKey:function(){var e,t;return"icon"===this.controlType?this.controlKey:null!==(e=this.control)&&void 0!==e&&e.hasOwnProperty("css")||null!==(t=this.control)&&void 0!==t&&t.hasOwnProperty("breakpoints")?this.$_getControlKeyActive(this.controlKey):this.controlKey},value:function(){return this.settings[this.settingKey]},rerender:function(){var e,t,n,o,i,r;return!!(null!==(e=this.controls)&&void 0!==e&&e.rerender||null!==(t=this.control)&&void 0!==t&&t.rerender||"gutter"===this.controlKey||"icon"===this.controlType)||!1!==(null===(n=this.$parent)||void 0===n?void 0:n.rerender)&&!1!==(null===(o=this.controls)||void 0===o?void 0:o.rerender)&&!1!==(null===(i=this.control)||void 0===i?void 0:i.rerender)&&(null===(r=this.control)||void 0===r||!r.css)},controlKeyComputed:function(){return["code","editor"].includes(this.controlType)?"".concat(this.$_state.activeId,"-").concat(this.settingKey,"-").concat(this.resetKey):"".concat(this.$_state.activeId,"-").concat(this.settingKey,"-").concat(this.refreshKey)},controlType:function(){var e,t=null===(e=this.control)||void 0===e?void 0:e.type;return"dimensions"===t&&(t="spacing"),t},hasSettings:function(){return-1===this.controlKey.indexOf("_typography")&&-1===this.controlKey.indexOf("_background")&&this.settings&&this.settings[this.settingKey]},controlClasses:function(){var e,t=["control","control-".concat(this.control.type)];return this.$_isLocked()&&"icon"!==this.controlType&&(null!==(e=this.control)&&void 0!==e&&e.css||this.controlKey.includes("_cssCustom"))&&t.push("bricks-is-locked"),t},controlInnerClasses:function(){var e=["control-inner"],t=!!this.control.hasOwnProperty("inline")&&this.control.inline,n=!!this.control.hasOwnProperty("small")&&this.control.small,o=this.control.hasOwnProperty("popup");return(t||!t&&!o&&["background","border","box-shadow","checkbox","color","icon","number","text-shadow","transform","typography"].includes(this.controlType))&&e.push("control-inline"),(n||!n&&!o&&["background","border","box-shadow","checkbox","color","icon","transform","typography"].includes(this.controlType))&&e.push("control-small"),e},clearable:function(){return!this.control.hasOwnProperty("clearable")||this.control.clearable},tooltip:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.tooltip},fields:function(){var e;return(null===(e=this.settings)||void 0===e?void 0:e.fields)||[]},label:function(){return this.$_getControlLabel(this.control)},name:function(){return this.block?this.block.name:this.$_activeElement.value.name},hasLabel:function(){return this.label&&"apply"!==this.controlType},labelHeight:function(){return this.hasLabel?"20px":"34px"}},methods:{resetSettings:function(){var e;this.$_isLocked()||(this.updateControl(""),this.refreshKey=this.$_generateId(),this.resetKey=this.$_generateId(),null!==(e=this.control)&&void 0!==e&&e.css&&this.$_forceRender(0))},updateControl:function(e){var t,n=this;if(!(this.$_isLocked()&&"icon"!==this.controlType&&(this.control.css||this.controlKey.includes("_cssCustom"))||(this.$_stopPostMessages(),null!==(t=this.control)&&void 0!==t&&t.reloadScripts&&this.$_runElementScripts(this.name),(Number.isInteger(e)||0===e)&&(e=e.toString()),this.$_noChanges(this.settings[this.settingKey],e)))){e?this.settings[this.settingKey]=e:delete this.settings[this.settingKey],this.hasSettingsHover=!1,this.rerender&&this.$_forceRender(100);var o=this.$_getIframeDoc();"headerPosition"===this.controlKey&&o&&(o.body.classList.remove("brx-header-left"),o.body.classList.remove("brx-header-right"),e&&o.body.classList.add("brx-header-".concat(e))),"siteLayout"===this.controlKey&&o&&(o.body.classList.remove("brx-wide"),o.body.classList.remove("brx-boxed"),e&&o.body.classList.add("brx-".concat(e))),this.$nextTick((function(){n.$emit("updated",e)}))}},setPlaceholder:function(){var e,t,n=this,o=this.$_getNextBreakpointSetting(this.settings,this.controlKey);o?this.placeholder=o:null!==(e=this.control)&&void 0!==e&&e.hasOwnProperty("placeholder")?this.placeholder=o||this.control.placeholder:null!==(t=this.control)&&void 0!==t&&t.css&&setTimeout((function(){var e,t,i,r=null===(e=n.control)||void 0===e||null===(e=e.css)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.selector,a=null===(t=n.control)||void 0===t||null===(t=t.css)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.property,s=n.$_getElementId(n.block);if(i=r&&n.$_isValidCssSelector(r)?n.$_getIframeDoc().querySelector("#".concat(s," ").concat(r)):n.$_getElementNode(n.$_activeElement.value,"iframe"),a&&"grid-template-columns"!==a)if(a.includes("height")||a.includes("width")||a.includes("top")||a.includes("right")||a.includes("bottom")||a.includes("left"))n.placeholder=o;else if(i){var l=n.$_getIframeWindow().getComputedStyle(i),c=l[a];c&&(n.placeholder=c,n.i18n.hasOwnProperty(c)&&(n.placeholder=n.i18n[c])),"flex"!==l.display||"justify-content"!==a&&"align-items"!==a?"flex"!==l.display||"justify-self"!==a&&"align-self"!==a?["margin","padding"].includes(a)&&(n.placeholder={},["Top","Right","Bottom","Left"].forEach((function(e){c=l["".concat(a).concat(e)],o&&o.hasOwnProperty(e.toLowerCase())&&(c=o[e.toLowerCase()]),"string"==typeof c&&c.endsWith(n.$_state.defaultUnit)&&(c=c.replace(n.$_state.defaultUnit,"")),"0"!=c&&(n.placeholder[e.toLowerCase()]=c)}))):i.parentNode&&(l=n.$_getIframeWindow().getComputedStyle(i.parentNode))["flex-direction"]&&(n.direction=l["flex-direction"]):l["flex-direction"]&&(n.direction=l["flex-direction"])}}),10)},checkShowControl:function(){var e=this;setTimeout((function(){var t;e.controlKey.startsWith("_gridItem")?e.showControl=!(null===(t=e.block)||void 0===t||!t.parent)&&e.$_elementHasCssGrid(e.block.parent):e.showControl=e.$_controlShow(e.controls,e.control,e.controlKey,e.settings)}),10)}},watch:{"$_state.breakpointActive":{handler:function(){this.setPlaceholder(),this.checkShowControl()}},"$_state.rerenderControls":{handler:function(){var e=this;setTimeout((function(){e.resetKey=e.$_generateId(),e.refreshKey=e.$_generateId(),e.setPlaceholder(),e.checkShowControl()}),0)}},settings:{handler:function(){this.checkShowControl()},deep:!0,immediate:!0},fields:{handler:function(){var e,t;if(null!==(e=this.control)&&void 0!==e&&e.map_fields&&null!==(t=this.settings)&&void 0!==t&&t.fields){var n={};this.settings.fields.forEach((function(e){n[e.id]=e.label?e.label:e.type})),this.controls[this.controlKey].options=n}},deep:!0,immediate:!0},value:{handler:function(e){if(this.setPlaceholder(),"direction"!==this.controlType&&"_display"!==this.settingKey||(this.$_state.rerenderControls=Date.now()),"mailchimpList"===this.controlKey){var t=this.bricks.mailchimpLists,n=e?t[e].groups:{};window.bricksData.elements.form.controls.mailchimpGroups.key=Date.now(),window.bricksData.elements.form.controls.mailchimpGroups.options=n,this.$_state.rerenderControls=Date.now()}},deep:!0,immediate:!0}}};var yM=(0,tm.Z)(bM,[["render",function(e,t,n,o,i,r){var a,s,l=no("icon");return i.showControl?(Yr(),oa("div",{key:0,class:ee(r.controlClasses)},[ua("div",{class:ee(r.controlInnerClasses)},[r.hasSettings?(Yr(),oa("span",{key:0,onMouseenter:t[1]||(t[1]=function(t){return e.$_state.fullAccess&&!e.$_isLocked()&&r.clearable?i.hasSettingsHover=!0:null}),onMouseleave:t[2]||(t[2]=function(e){return i.hasSettingsHover=!1}),class:ee(["has-setting",e.$_isLocked()&&"icon"!==r.controlType?"bricks-is-locked":null]),style:Z({height:r.labelHeight,top:r.hasLabel||"code"!==r.controlType?null:"24px"})},[!i.hasSettingsHover||i.hasSettingsHover&&!r.clearable?(Yr(),oa("span",fM)):(Yr(),oa("span",{key:1,class:"reset",onClick:t[0]||(t[0]=El((function(e){return r.resetSettings()}),["stop"]))},[da(l,{name:"close"})]))],38)):va("",!0),r.hasLabel?(Yr(),oa("label",{key:1,title:n.control.title,for:n.controlKey,"data-balloon":r.tooltipContent,"data-balloon-pos":r.tooltipPosition,"data-balloon-length":"string"==typeof(null===(a=r.tooltip)||void 0===a?void 0:a.length)?r.tooltip.length:null,"data-balloon-break":""},[ua("span",{innerHTML:r.label},null,8,hM),n.control.info?(Yr(),oa("span",mM,[da(l,{name:"info"})])):va("",!0),n.control.deprecated?(Yr(),oa("span",{key:1,class:"icon deprecated","data-balloon":e.i18n.deprecated,"data-balloon-pos":"top"},[da(l,{name:"deprecated"})],8,gM)):va("",!0)],8,pM)):va("",!0),(Yr(),ia(io("control-".concat(r.controlType)),{key:r.controlKeyComputed,type:null===(s=n.control)||void 0===s?void 0:s.type,control:n.control,controlKey:n.controlKey,settings:n.settings,value:r.value,placeholder:i.placeholder,direction:i.direction,block:n.block,class:ee(n.control.class),"data-balloon":!r.hasLabel&&r.tooltipContent?r.tooltipContent:null,"data-balloon-pos":!r.hasLabel&&r.tooltipPosition?r.tooltipPosition:null,onInput:t[3]||(t[3]=function(e){return r.updateControl(e)})},null,40,["type","control","controlKey","settings","value","placeholder","direction","block","class","data-balloon","data-balloon-pos"]))],2),r.description?(Yr(),oa("div",{key:0,class:"description",innerHTML:r.description},null,8,vM)):va("",!0)],2)):va("",!0)}]]),wM={class:"bricks-control-popup bottom"};var kM={emits:["closePopup"],props:{controlKey:{type:String,required:!1},show:{type:Boolean,required:!1,default:!1}},methods:{closePopup:function(e){if(this.show){var t=e.target.closest(".media-modal"),n=e.target.closest(".bricks-control-preview");t||n&&n.nextSibling===this.$el||this.$emit("closePopup")}}}};var xM=(0,tm.Z)(kM,[["render",function(e,t,n,o,i,r){var a=ro("clickaway");return Io((Yr(),oa("div",wM,[bi(e.$slots,"default")])),[[As,n.show],[a,r.closePopup]])}]]),CM={class:"control-visual","data-control":"flex-direction"};var _M={emits:["input"],props:{settings:{required:!1,default:function(){return{}}},value:{type:String,required:!1,default:""},placeholder:{type:String},control:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{direction:"",reverse:""}},created:function(){this.value&&(this.value.includes("column")?this.direction="column":this.value.includes("row")&&(this.direction="row"),this.value.includes("-reverse")&&(this.reverse="-reverse"))},methods:{setDirection:function(e){this.value.includes(e)?(this.direction="",this.reverse=""):this.direction=e,this.$emit("input","".concat(this.direction).concat(this.reverse))},toggleReverse:function(){this.reverse=this.reverse?"":"-reverse",this.reverse&&!this.direction&&(this.direction=this.placeholder),this.$emit("input","".concat(this.direction).concat(this.reverse))}},watch:{value:function(){var e;!1!==(null===(e=this.control)||void 0===e?void 0:e.rerender)&&this.$_forceRender(400)}}};var SM=(0,tm.Z)(_M,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",CM,[da(a,{name:"controls/direction/column",class:ee(["column",{active:"column"===i.direction},{computed:!n.value&&"column"===n.placeholder}]),onClick:t[0]||(t[0]=function(e){return r.setDirection("column")}),"data-balloon":"".concat(e.i18n.vertical," (column)"),"data-balloon-pos":"top"},null,8,["class","data-balloon"]),da(a,{name:"controls/direction/row",class:ee(["row",{active:"row"===i.direction},{computed:!n.value&&"row"===n.placeholder}]),onClick:t[1]||(t[1]=function(e){return r.setDirection("row")}),"data-balloon":"".concat(e.i18n.horizontal," (row)"),"data-balloon-pos":"top"},null,8,["class","data-balloon"]),da(a,{name:"controls/direction/reverse",class:ee(["reverse",{active:i.reverse}]),onClick:t[2]||(t[2]=function(e){return r.toggleReverse()}),"data-balloon":e.i18n.reverse,"data-balloon-pos":"top"},null,8,["class","data-balloon"])])}]]);var TM={emits:["input"],props:{settings:{required:!1,default:function(){return{}}},value:{type:String,required:!1,default:""},placeholder:{type:String,required:!1},direction:{type:String,required:!1,default:"column"},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String}},computed:{isHorizontal:function(){return this.direction.includes("row")},items:function(){var e,t=this,n=[{value:"flex-start",tooltip:"start"},{value:"center",tooltip:"center"},{value:"flex-end",tooltip:"end"},{value:"stretch",tooltip:"stretch"}];return this.controlKey.startsWith("_alignItems")&&n.push({value:"baseline",tooltip:"baseline"}),null!==(e=this.control)&&void 0!==e&&e.exclude?n.filter((function(e){return!t.control.exclude.includes(e.value)})):n}},methods:{getIconName:function(e){return"".concat(null==e?void 0:e.value).concat(this.isHorizontal?"-y":"")},setAlignment:function(e){this.$emit("input",e===this.value?"":e)}}};var $M=(0,tm.Z)(TM,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",{class:ee(["control-visual",{grow:r.items.length>3}]),"data-control":"align-items"},[(Yr(!0),oa(Wr,null,gi(r.items,(function(t,o){return Yr(),ia(a,{class:ee([{active:n.value===t.value},r.isHorizontal?"horizontal":"vertical"]),name:"controls/align-items/".concat(r.getIconName(t)),onClick:function(e){return r.setAlignment(t.value)},"data-balloon":e.i18n[t.tooltip],"data-balloon-pos":"top"},null,8,["class","name","onClick","data-balloon"])})),256))],2)}]]),EM={class:ee(["control-visual"]),"data-control":"justify-content"};var IM={emits:["input"],props:{settings:{required:!1,default:function(){return{}}},value:{type:String,required:!1,default:""},placeholder:{type:String,required:!1},direction:{type:String,required:!1,default:"column"},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1}},computed:{isHorizontal:function(){return this.direction.includes("row")},items:function(){var e,t=this,n=[{value:"flex-start",tooltip:"start"},{value:"center",tooltip:"center"},{value:"flex-end",tooltip:"end"},{value:"space-between",tooltip:"spaceBetween"},{value:"space-around",tooltip:"spaceAround"},{value:"space-evenly",tooltip:"spaceEvenly"}];return null!==(e=this.control)&&void 0!==e&&e.exclude?n.filter((function(e){return-1===e.value.indexOf(t.control.exclude)})):n}},methods:{getIconName:function(e){return"".concat(null==e?void 0:e.value).concat(this.isHorizontal?"-y":"")},setAlignment:function(e){this.$emit("input",e===this.value?"":e)}}};var MM=(0,tm.Z)(IM,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",EM,[(Yr(!0),oa(Wr,null,gi(r.items,(function(t,o){return Yr(),ia(a,{class:ee([{active:n.value===t.value},r.isHorizontal?"horizontal":"vertical"]),name:"controls/justify-content/".concat(r.getIconName(t)),onClick:function(e){return r.setAlignment(t.value)},"data-balloon":e.i18n[t.tooltip],"data-balloon-pos":"top"},null,8,["class","name","onClick","data-balloon"])})),256))])}]]),AM={"data-control":"apply"},OM=["disabled"],PM=["innerHTML"];var LM={props:{control:{type:Object,required:!0}},data:function(){var e,t;return{label:(null===(e=this.control)||void 0===e?void 0:e.label)||this.i18n.apply,reload:null===(t=this.control)||void 0===t?void 0:t.reload}}};var DM=(0,tm.Z)(LM,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",AM,[ua("button",{class:"button",onClick:t[0]||(t[0]=function(t){return e.$_savePost({reload:i.reload})}),disabled:e.$_state.isSaving},[e.$_state.isSaving?(Yr(),ia(a,{key:0,name:"refresh",class:"bricks-animation-load8"})):(Yr(),oa("span",{key:1,innerHTML:i.label},null,8,PM))],8,OM)])}]]),NM={"data-control":"audio"},jM=["textContent"],VM={key:0,controls:"",ref:"player"},FM=["src","type"],RM=["textContent"],qM=["textContent"],BM=["textContent"];var zM={emits:["input"],props:{value:{required:!1},control:{type:Object,required:!0}},computed:{url:function(){return!!this.value&&this.value.url},mime:function(){return!!this.value&&this.value.mime},filename:function(){return!!this.value&&this.value.filename}},watch:{value:function(){var e=this;this.$nextTick((function(){e.value&&e.$refs.player.load()}))}}};var HM=(0,tm.Z)(zM,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",NM,[ua("label",{textContent:de(r.filename?r.filename:e.i18n.noFileSelected),style:{"text-align":"center"}},null,8,jM),r.url?(Yr(),oa("audio",VM,[ua("source",{src:r.url,type:r.mime},null,8,FM),ua("span",{textContent:de(e.i18n.html5AudioNoBrowserSupport)},null,8,RM)],512)):va("",!0),r.url?(Yr(),oa("button",{key:1,onClick:t[0]||(t[0]=function(t){return e.$emit("input","")}),textContent:de(e.i18n.removeFile)},null,8,qM)):(Yr(),oa("button",{key:2,onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("audio")}),textContent:de(e.i18n.selectFile)},null,8,BM))])}]]),WM={"data-control":"background"},UM=["data-balloon"];var KM={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{showPopup:!1,popup:!this.control.hasOwnProperty("popup")||this.control.popup,background:this.value||{}}},computed:{colorPreviewTooltip:function(){var e,t=null!==(e=this.value)&&void 0!==e&&e.color?this.$_clone(this.value.color):null;if(t)return null!=t&&t.raw?t.raw:null!=t&&t.rgb?t.rgb:null!=t&&t.hex?t.hex:void 0},controls:function(){var e=this,t=this.$_activeClass.value||this.$_state.pseudoClassActive||"desktop"!==this.$_state.breakpointActive,n=this.$_state.breakpoints.reduce((function(e,t){return e[t.key]=t.label,e}),{}),o={color:{type:"color",label:this.i18n.backgroundColor,inline:!0,small:!0},image:{type:"image"},blendMode:{type:"select",label:this.i18n.backgroundBlendMode,placeholder:this.i18n.normal,options:this.bricks.controlOptions.blendMode,required:["image","!=",""]},attachment:{type:"select",label:this.i18n.backgroundAttachment,placeholder:this.i18n.scroll,options:this.bricks.controlOptions.backgroundAttachment,required:["image","!=",""],description:this.i18n.descriptionParallax},position:{type:"select",label:this.i18n.backgroundPosition,placeholder:this.i18n.topLeft,options:this.bricks.controlOptions.backgroundPosition,required:["image","!=",""]},positionX:{type:"number",units:!0,label:this.i18n.xAxis,required:[".position","=","custom"]},positionY:{type:"number",units:!0,label:this.i18n.yAxis,required:[".position","=","custom"]},repeat:{type:"select",label:this.i18n.backgroundRepeat,placeholder:"Repeat",options:this.bricks.controlOptions.backgroundRepeat,required:["image","!=",""]},size:{type:"select",label:this.i18n.backgroundSize,placeholder:this.i18n.cover,options:this.bricks.controlOptions.backgroundSize,required:["image","!=",""]},custom:{type:"text",label:this.i18n.backgroundCustomSize,placeholder:this.i18n.backgroundCustomSizePlaceholder,required:[".size","=","custom"]},videoUrl:{type:"text",label:this.i18n.backgroundVideo,placeholder:"https://www.youtube.com/watch?v=rzfmZC3kg3M",description:this.i18n.backgroundVideoDescription,hasDynamicData:"text"},videoAspectRatio:{type:"text",label:this.i18n.backgroundVideoAspectRatio,placeholder:"16:9",inline:!0,small:!0,hasDynamicData:!1,required:["videoUrl","!=",""]},videoScale:{type:"number",label:this.i18n.scale,min:1,max:10,inline:!0,small:!0,placeholder:1,required:["videoUrl","!=",""]},videoStartTime:{type:"number",label:"".concat(this.i18n.startTime," (s)"),min:0,inline:!0,small:!0,placeholder:0,required:["videoUrl","!=",""]},videoEndTime:{type:"number",label:"".concat(this.i18n.endTime," (s)"),inline:!0,small:!0,required:["videoUrl","!=",""]},videoPlayOnce:{type:"checkbox",label:this.i18n.playOnce,inline:!0,small:!0,required:["videoUrl","!=",""]},videoShowAtBreakpoint:{type:"select",options:n,label:this.i18n.startPlayAt,inline:!0,small:!0,placeholder:this.i18n.anyBreakpoint,description:this.i18n.backgroundVideoStartAt,required:["videoUrl","!=",""]}};return t&&Object.keys(o).forEach((function(e){o[e].hasOwnProperty("required")&&"image"===o[e].required[0]&&delete o[e].required})),Object.keys(o).forEach((function(t){var n;o[t].rerender=!1;var i=null===(n=e.control)||void 0===n?void 0:n.exclude;Array.isArray(i)?i.includes(t)&&delete o[t]:i&&t.startsWith(i)&&delete o[t]})),o},icon:function(){var e,t;return null!==(e=this.value)&&void 0!==e&&e.videoUrl?"video":null!==(t=this.value)&&void 0!==t&&t.image?"image":"color"},style:function(){var e,t;if(null!==(e=this.value)&&void 0!==e&&null!==(e=e.image)&&void 0!==e&&e.url)return{backgroundImage:"url(".concat(this.value.image.url,")")};if(null!==(t=this.value)&&void 0!==t&&t.color){var n,o;if(null!==(n=this.value.color)&&void 0!==n&&n.rgb)return{color:"".concat(this.value.color.rgb," !important")};if(null!==(o=this.value.color)&&void 0!==o&&o.hex)return{color:"".concat(this.value.color.hex," !important")}}}},created:function(){Array.isArray(this.background)&&(this.background={})},watch:{background:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var GM=(0,tm.Z)(KM,[["render",function(e,t,n,o,i,r){var a,s=no("icon"),l=no("panel-control"),c=no("panel-control-popup");return Yr(),oa("div",WM,[i.popup?(Yr(),oa("div",{key:0,class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[ua("span",{class:"color-value-tooltip","data-balloon":r.colorPreviewTooltip,"data-balloon-pos":"top-right"},null,8,UM),Io(ua("span",{class:ee(["bricks-control-transparency-pattern",{"has-bg":null===(a=r.style)||void 0===a?void 0:a.backgroundImage}]),style:Z(r.style)},null,6),[[As,r.style]]),Io(da(s,{name:r.icon},null,8,["name"]),[[As,!r.style]])])):va("",!0),i.popup&&i.showPopup&&!e.$_isLocked()?(Yr(),ia(c,{key:1,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Yr(),ia(l,{key:t,controlKey:t,control:e,settings:i.background},null,8,["controlKey","control","settings"])})),128))]})),_:1},8,["show"])):i.popup?va("",!0):(Yr(!0),oa(Wr,{key:2},gi(r.controls,(function(e,t){return Yr(),ia(l,{key:t,controlKey:t,control:e,settings:i.background},null,8,["controlKey","control","settings"])})),128))])}]]),ZM={"data-control":"border"};var JM={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0}},data:function(){var e;return{showPopup:!1,border:this.value||{},exclude:(null===(e=this.control)||void 0===e?void 0:e.exclude)||[]}},computed:{controls:function(){var e={width:{type:"spacing",hasVariables:!0,switchUi:!1,ui:"variables-ui",label:this.i18n.width,min:0},style:{type:"select",label:this.i18n.style,options:this.bricks.controlOptions.borderStyle,inline:!0},color:{type:"color",label:this.i18n.color,inline:!0},radius:{type:"dimensions",hasVariables:!0,label:this.i18n.radius,labelDirection:{top:this.i18n.topLeft,right:this.i18n.topRight,bottom:this.i18n.bottomRight,left:this.i18n.bottomLeft},linkOpposites:!1,min:0}};return Object.keys(e).forEach((function(t){e[t].rerender=!1})),e}},watch:{border:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var YM=(0,tm.Z)(JM,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",ZM,[ua("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"edit"})]),i.showPopup&&!e.$_isLocked()?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Io((Yr(),ia(s,{key:t,control:e,controlKey:t,settings:i.border},null,8,["control","controlKey","settings"])),[[As,-1===i.exclude.indexOf(t)]])})),128))]})),_:1},8,["show"])):va("",!0)])}]]),QM={"data-control":"box-shadow"};var XM={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0}},data:function(){return{showPopup:!1,boxShadow:this.value?this.value:{},exclude:this.control.hasOwnProperty("exclude")?this.control.exclude:[]}},computed:{controls:function(){var e={values:{type:"dimensions",hasVariables:!0,label:this.i18n.boxShadow,directions:{offsetX:"X",offsetY:"Y",blur:this.i18n.blur,spread:this.i18n.spread},linkedIcon:!1,units:!1},color:{type:"color",label:this.i18n.color,inline:!0},inset:{type:"checkbox",label:this.i18n.inset}};return Object.keys(e).forEach((function(t){e[t].rerender=!1})),e}},watch:{boxShadow:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var eA=(0,tm.Z)(XM,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",QM,[ua("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"edit"})]),i.showPopup&&!e.$_isLocked()?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Io((Yr(),ia(s,{key:t,control:e,controlKey:t,settings:i.boxShadow},null,8,["control","controlKey","settings"])),[[As,-1===i.exclude.indexOf(t)]])})),128))]})),_:1},8,["show"])):va("",!0)])}]]),tA={"data-control":"checkbox"},nA=["id","name","readonly"];var oA={emits:["update:value","input"],props:{value:{type:[String,Boolean]},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1}},created:function(){"true"===this.value?this.$emit("input",!0):"false"===this.value&&this.$emit("input",!1)},computed:{checked:{get:function(){var e;return"_addedClasses"===this.controlKey?this.$_state._addedClasses.hasOwnProperty(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.id):this.value},set:function(e){var t,n,o,i;null!==(t=this.control)&&void 0!==t&&t.readonly||("_addedClasses"!==this.controlKey?(this.$emit("update:value",e),this.$emit("input",e)):e?this.$_state._addedClasses[null===(n=this.$_state.activeElement)||void 0===n?void 0:n.id]=(null===(o=this.control)||void 0===o?void 0:o.class)||"show":delete this.$_state._addedClasses[null===(i=this.$_state.activeElement)||void 0===i?void 0:i.id])}}}};var iA=(0,tm.Z)(oA,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",tA,[Io(ua("input",{type:"checkbox",id:n.controlKey,name:n.controlKey,"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.checked=e}),readonly:n.control.readonly},null,8,nA),[[gl,r.checked]])])}]]),rA={class:"header"},aA={key:0,class:"actions"},sA=["data-balloon"],lA=["textContent"],cA=["textContent","placeholder"];var uA=n(4631),dA=n.n(uA);n(1994),n(6876),n(6702),n(9589),n(8386);const fA={escape:92,throws:!1};function pA(e){return e>47&&e<58}function hA(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function mA(e){return pA(e)||gA(e)}function gA(e){return 95===e||hA(e)}function vA(e){return 32===e||9===e||160===e}function bA(e){return vA(e)||10===e||13===e}function yA(e,t){t=Object.assign(Object.assign({},fA),t);const n=e.pos,o=e.peek();if(e.eat(wA)){for(;!e.eof();)switch(e.next()){case o:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1}function wA(e){return 39===e||34===e}function kA(e,t,n,o){o=Object.assign(Object.assign({},fA),o);const i=e.pos;if(e.eat(t)){let r,a=1;for(;!e.eof();)if(!yA(e,o))if(r=e.next(),r===t)a++;else if(r===n){if(a--,!a)return e.start=i,!0}else r===o.escape&&e.next();if(e.pos=i,o.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}class xA{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new xA(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new CA(`${e} at ${t+1}`,t,this.string)}}class CA extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function _A(e){return e.tokens[e.pos]}function SA(e){return e.tokens[e.pos++]}function TA(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function $A(e){return e.pos<e.size}function EA(e,t){const n=_A(e);return!(!n||!t(n))&&(e.pos++,!0)}function IA(e,t,n=_A(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function MA(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const i=AA(n,t);if($A(n))throw IA(n,"Unexpected character");return i}function AA(e,t){const n={type:"TokenGroup",elements:[]};let o,i=n;const r=[];for(;$A(e)&&(o=PA(e,t)||OA(e,t));)if(i.elements.push(o),EA(e,tO))r.push(i),i=o;else{if(EA(e,nO))continue;if(EA(e,oO))do{r.length&&(i=r.pop())}while(EA(e,oO))}return n}function OA(e,t){if(EA(e,XA)){const n=AA(e,t);return qA(SA(e),"group",!1)&&(n.repeat=function(e){return UA(_A(e))?e.tokens[e.pos++]:void 0}(e)),n}}function PA(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&EA(e,KA))for(;$A(e);){const{pos:t}=e;if(!EA(e,ZA)||!EA(e,KA)){e.pos=t;break}}for(;$A(e)&&EA(e,GA););if(e.pos!==n)return e.start=n,!0;return!1}(e,t)&&(o.name=TA(e));$A(e);)if(e.start=e.pos,o.repeat||eO(o)||!EA(e,UA))if(!o.value&&FA(e))o.value=RA(e);else{if(!(n=DA(e,"id",t)||DA(e,"class",t)||LA(e))){!eO(o)&&EA(e,iO)&&(o.selfClose=!0,!o.repeat&&EA(e,UA)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return eO(o)?void 0:o}function LA(e){if(EA(e,JA)){const t=[];let n;for(;$A(e);)if(n=NA(e))t.push(n);else{if(EA(e,YA))break;if(!EA(e,HA))throw IA(e,`Unexpected "${_A(e).type}" token`)}return t}}function DA(e,t,n){if(BA(_A(e),t)){e.pos++;const i={name:[(o=t,{type:"Literal",value:o})]};return n.jsx&&FA(e)?(i.value=RA(e),i.expression=!0):i.value=VA(e)?TA(e):void 0,i}var o}function NA(e){return jA(e)?{value:TA(e)}:VA(e,!0)?{name:TA(e),value:EA(e,WA)&&(jA(e)||VA(e,!0))?TA(e):void 0}:void 0}function jA(e){const t=e.pos,n=_A(e);if(zA(n)){for(e.pos++;$A(e);)if(zA(SA(e),n.single))return e.start=t,!0;throw IA(e,"Unclosed quote",n)}return!1}function VA(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;$A(e);){const n=_A(e);if(o.expression)qA(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(zA(n)||BA(n)||HA(n)||UA(n))break;if(qA(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function FA(e){const t=e.pos;if(EA(e,QA)){let n=0;for(;$A(e);){const t=SA(e);if(qA(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function RA(e){let t=e.start,n=e.pos;return qA(e.tokens[t],"expression",!0)&&t++,qA(e.tokens[n-1],"expression",!1)&&n--,TA(e,t,n)}function qA(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function BA(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function zA(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function HA(e){return Boolean(e&&"WhiteSpace"===e.type)}function WA(e){return BA(e,"equal")}function UA(e){return Boolean(e&&"Repeater"===e.type)}function KA(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function GA(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function ZA(e){return BA(e,"class")}function JA(e){return qA(e,"attribute",!0)}function YA(e){return qA(e,"attribute",!1)}function QA(e){return qA(e,"expression",!0)}function XA(e){return qA(e,"group",!0)}function eO(e){return!e.name&&!e.value&&!e.attributes}function tO(e){return BA(e,"child")}function nO(e){return BA(e,"sibling")}function oO(e){return BA(e,"climb")}function iO(e){return BA(e,"close")}function rO(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function aO(e){const t=new xA(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let i,r=0;for(;!t.eof();){if(r=t.peek(),i=sO(t,o),!i)throw t.error("Unexpected character");n.push(i),"Quote"===i.type?o.quote=r===o.quote?0:r:"Bracket"===i.type&&(o[i.context]+=i.open?1:-1)}return n}function sO(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let o="";if(e.eatWhile(pA)?(t=Number(e.current()),o=e.eat(58)?lO(e):""):hA(e.peek())&&(o=lO(e)),e.eat(125))return{type:"Field",index:t,name:o,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let o=!1,i=1,r=0;if(e.eat(64)){for(;e.eat(94);)r++;o=e.eat(45),e.start=e.pos,e.eatWhile(pA)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:i,parent:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(pA)?n=Number(e.current()):o=!0,{type:"Repeater",count:n,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(bA))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let o="";for(;!e.eof();){if(rO(e)){o+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||cO(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!mO(n))break;if(uO(n,t)||dO(n,t)||wA(n)||fO(n))break}o+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:o,start:n,end:e.pos}}(e,t)||function(e){const t=pO(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(wA(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=fO(t);if(n)return{type:"Bracket",open:hO(t),context:n,start:e.pos++,end:e.pos}}(e)}function lO(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function cO(e,t){const n=pO(e);return!(!n||t.quote||t.expression)&&(!t.attribute||"equal"===n)}function uO(e,t){return bA(e)&&!t.expression}function dO(e,t){return 42===e&&!t.attribute&&!t.expression}function fO(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function pO(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function hO(e){return 123===e||91===e||40===e}function mO(e){return mA(e)||45===e||58===e||33===e}const gO={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},vO={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}"},Operator(e){return gO[e.operator]},Field(e,t){return null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,i=t.repeaters[o];if(i&&(n=e.reverse?e.base+i.count-i.value-1:e.base+i.value,e.parent)){const r=Math.max(0,o-e.parent);if(r!==o){const e=t.repeaters[r];n+=i.count*e.value}}let r=String(n);for(;r.length<e.size;)r="0"+r;return r},WhiteSpace(e){return e.value}};function bO(e,t){if(!vO[e.type])throw new Error(`Unknown token ${e.type}`);return vO[e.type](e,t)}const yO=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,wO=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function kO(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const i={type:"Abbreviation",children:_O(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var i;let r;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];r=void 0!==e?t.text[e]:t.text.join("\n")}else r=null!==(i=t.text)&&void 0!==i?i:"";return r},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=AO(MO(i.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;OO(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";yO.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):wO.test(t)&&(o=`mailto:${t}`);const i=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));i?i.value||(i.value=[o]):e.attributes=[{name:"href",value:[o],valueType:"doubleQuote"}]}(e,n)}}return i}function xO(e,t){let n=[];if(e.repeat){const o=e.repeat,i=Object.assign({},o);let r;i.count=i.implicit&&Array.isArray(t.text)?t.cleanText.length:i.count||1,t.repeaters.push(i);for(let o=0;o<i.count;o++){if(i.value=o,e.repeat=i,r=EO(e)?_O(e,t):CO(e,t),i.implicit&&!t.inserted){const e=MO(r),n=e&&AO(e);n&&OO(n,t.getText(i.value))}if(n=n.concat(r),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,i.implicit&&(t.inserted=!0)}else n=n.concat(EO(e)?_O(e,t):CO(e,t));return n}function CO(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&TO(e.name,t),value:e.value&&$O(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let i=[o];for(const o of e.elements)n=n.concat(xO(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(SO(n,t))}return o.name||o.attributes||!o.value||o.value.some(IO)?o.children=n:i=i.concat(n),i}function _O(e,t){let n=[];for(const o of e.elements)n=n.concat(xO(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function SO(e,t){let n,o=!1,i=!1,r=e.expression?"expression":"raw";const a=e.name&&TO(e.name,t);if(a&&"!"===a[0]&&(o=!0),a&&"."===a[a.length-1]&&(i=!0),e.value){const o=e.value.slice();if(zA(o[0])){const e=o.shift();o.length&&MO(o).type===e.type&&o.pop(),r=e.single?"singleQuote":"doubleQuote"}else qA(o[0],"expression",!0)&&(r="expression",o.shift(),qA(MO(o),"expression",!1)&&o.pop());n=$O(o,t)}return{name:i||o?a.slice(o?1:0,i?-1:void 0):a,value:n,boolean:i,implied:o,valueType:r}}function TO(e,t){let n="";for(let o=0;o<e.length;o++)n+=bO(e[o],t);return n}function $O(e,t){const n=[];let o="";for(let i,r=0;r<e.length;r++)i=e[r],IO(i)?(o&&(n.push(o),o=""),n.push(i)):o+=bO(i,t);return o&&n.push(o),n}function EO(e){return"TokenGroup"===e.type}function IO(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function MO(e){return e[e.length-1]}function AO(e){return e.children.length?AO(MO(e.children)):e}function OO(e,t){if(e.value){"string"==typeof MO(e.value)?e.value[e.value.length-1]+=t:e.value.push(t)}else e.value=[t]}function PO(e,t){try{return kO(MA("string"==typeof e?aO(e):e,t),t)}catch(t){throw t instanceof CA&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function LO(e,t){let n,o=0;const i=new xA(e),r=[];for(;!i.eof();){if(n=DO(i,0===o&&!t),!n)throw i.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&WO(i,r),o+=n.open?1:-1,o<0))throw i.error("Unexpected bracket",n.start);r.push(n),HO(n)&&(n=FO(i))&&r.push(n)}return r}function DO(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let o="";if(e.eatWhile(pA)?(n=Number(e.current()),o=e.eat(58)?NO(e):""):hA(e.peek())&&(o=NO(e)),e.eat(125))return{type:"Field",index:n,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,o=e.eatWhile(pA),i=e.pos;if(e.eat(46)){const t=e.eatWhile(pA);o||t||(e.pos=i)}e.pos===n&&(e.pos=t);return e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(gA),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let o="",i="";if(e.eatWhile(qO)?(o=e.substring(n,e.pos),i=VO(e)):e.eat(116)?(o="0",i=VO(e)||"0"):i=VO(e),o||i||e.eof()){const{r:n,g:r,b:a,a:s}=function(e,t){let n="0",o="0",i="0",r=Number(null!=t&&""!==t?t:1);if("t"===e)r=0;else switch(e.length){case 0:break;case 1:n=o=i=e+e;break;case 2:n=o=i=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],i=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),i=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(i,16),a:r}}(o,i);return{type:"ColorValue",r:n,g:r,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return jO(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(wA(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||FO(e)||function(e){const t=e.pos;if(e.eatWhile(bA))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;e.eat(RO)?e.eatWhile(n?BO:zO):e.eat(gA)?e.eatWhile(t?zO:BO):(e.eat(46),e.eatWhile(zO));if(n!==e.pos)return e.start=n,jO(e,e.start=n)}(e,t)}function NO(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function jO(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function VO(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(pA)?e.current():"1"):""}function FO(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function RO(e){return 64===e||36===e}function qO(e){return pA(e)||hA(e,65,70)}function BO(e){return mA(e)||45===e}function zO(e){return gA(e)||37===e||47===e}function HO(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function WO(e,t){let n=0,o=0;for(;t.length;){const e=(i=t)[i.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var i;n!==o&&t.push(jO(e,n,o))}function UO(e){return e.tokens[e.pos]}function KO(e){return e.pos<e.size}function GO(e,t){return!!t(UO(e))&&(e.pos++,!0)}function ZO(e,t,n=UO(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function JO(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let i;for(;KO(n);)if(i=YO(n,t))o.push(i);else if(!GO(n,aP))throw ZO(n,"Unexpected token");return o}function YO(e,t){let n,o,i=!1;const r=[],a=UO(e),s=!!t.value;for(s||!eP(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&eP(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,GO(e,dP)),s&&GO(e,iP);KO(e);)if(GO(e,cP))i=!0;else if(o=QO(e,s))r.push(o);else if(!GO(e,lP))break;if(n||r.length||i)return{name:n,value:r,important:i}}function QO(e,t){const n=[];let o,i;for(;KO(e);)if(o=UO(e),uP(o))e.pos++,eP(o)&&(i=XO(e))?n.push({type:"FunctionCall",name:o.value,arguments:i}):n.push(o);else{if(!(dP(o)||t&&iP(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function XO(e){const t=e.pos;if(GO(e,nP)){const n=[];let o;for(;KO(e)&&!GO(e,oP);)if(o=QO(e,!0))n.push(o);else if(!GO(e,iP)&&!GO(e,sP))throw ZO(e,"Unexpected token");return e.start=t,n}}function eP(e){return e&&"Literal"===e.type}function tP(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function nP(e){return tP(e,!0)}function oP(e){return tP(e,!1)}function iP(e){return e&&"WhiteSpace"===e.type}function rP(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function aP(e){return rP(e,"+")}function sP(e){return rP(e,",")}function lP(e){return sP(e)}function cP(e){return rP(e,"!")}function uP(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function dP(e){return rP(e,":")||rP(e,"-")}function fP(e,t){try{return JO("string"==typeof e?LO(e,t&&t.value):e,t)}catch(t){throw t instanceof CA&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}const pP={mark:!0,preview:!0,autoRenameTags:!0,markTagPairs:!0,previewOpenTag:!1,attributeQuotes:"double",markupStyle:"html",comments:!1,commentsTemplate:"\x3c!-- /[#ID][.CLASS] --\x3e",bem:!1};function hP(e,t){return t||(t=e.getOption("emmet")),Object.assign(Object.assign({},pP),t)}const mP={escape:92,throws:!1};function gP(e){return e>47&&e<58}function vP(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function bP(e){return gP(e)||yP(e)}function yP(e){return 95===e||vP(e)}function wP(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function kP(e,t){t=Object.assign(Object.assign({},mP),t);const n=e.pos,o=e.peek();if(e.eat(xP)){for(;!e.eof();)switch(e.next()){case o:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1}function xP(e){return 39===e||34===e}function CP(e,t,n,o){o=Object.assign(Object.assign({},mP),o);const i=e.pos;if(e.eat(t)){let r,a=1;for(;!e.eof();)if(!kP(e,o))if(r=e.next(),r===t)a++;else if(r===n){if(a--,!a)return e.start=i,!0}else r===o.escape&&e.next();if(e.pos=i,o.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}class _P{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new _P(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new SP(`${e} at ${t+1}`,t,this.string)}}class SP extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}const TP={xml:!1,allTokens:!1,special:{style:null,script:["","text/javascript","application/x-javascript","javascript","typescript","ts","coffee","coffeescript"]},empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]},$P={throws:!1};function EP(e={}){return Object.assign(Object.assign({},TP),e)}function IP(e){return e.split("").map((e=>e.charCodeAt(0)))}function MP(e,t){const n=e.pos;for(let o=0;o<t.length;o++)if(!e.eat(t[o]))return e.pos=n,!1;return e.start=n,!0}function AP(e,t,n,o){const i=e.pos;if(MP(e,t)){for(;!e.eof();){if(MP(e,n))return e.start=i,!0;e.pos++}return o?(e.start=i,!0):(e.pos=i,!1)}return e.pos=i,!1}function OP(e){return vP(e)||58===e||95===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191}function PP(e){return OP(e)||45===e||46===e||gP(e)||183===e||e>=768&&e<=879}function LP(e){const t=e.pos;return!!e.eat(OP)&&(e.eatWhile(PP),e.start=t,!0)}function DP(e){return 62===e||47===e}function NP(e){return!(isNaN(e)||xP(e)||wP(e)||DP(e))}function jP(e){return CP(e,60,62,$P)||CP(e,40,41,$P)||CP(e,91,93,$P)||CP(e,123,125,$P)}function VP(e,t){const n=[];let o=0,i=e.length;t&&(o=t.length+1,i-="/>"===e.slice(-2)?2:1);const r=new _P(e,o,i);for(;!r.eof();)if(r.eatWhile(wP),FP(r)){const e={name:r.current(),nameStart:r.start,nameEnd:r.pos};r.eat(61)&&RP(r)&&(e.value=r.current(),e.valueStart=r.start,e.valueEnd=r.pos),n.push(e)}else r.pos++;return n}function FP(e){const t=e.pos;return e.eat(42)||e.eat(35)?(LP(e),e.start=t,!0):jP(e)||LP(e)}function RP(e){return kP(e,$P)||jP(e)||function(e){const t=e.pos;if(e.eatWhile(NP))return e.start=t,!0}(e)}const qP=IP("<![CDATA["),BP=IP("]]>"),zP=IP("\x3c!--"),HP=IP("--\x3e"),WP=IP("<?"),UP=IP("?>"),KP=IP("<%"),GP=IP("%>");function ZP(e,t,n){const o=new _P(e),i=n?n.special:null,r=!!n&&n.allTokens;let a,s,l,c,u,d=!1,f=null;for(;!o.eof();){const n=o.pos;if(QP(o)){if(r&&!1===t("#cdata",4,o.start,o.pos))break}else if(XP(o)){if(r&&!1===t("#comment",6,o.start,o.pos))break}else if(tL(o)){if(r&&!1===t("#erb",7,o.start,o.pos))break}else if(f=eL(o)){if(r&&!1===t(f,5,o.start,o.pos))break}else if(o.eat(60)){if(a=o.eat(47)?2:1,l=o.pos,LP(o)&&(c=o.pos,2!==a&&(JP(o),o.eatWhile(wP),o.eat(47)&&(a=3)),o.eat(62))){if(s=o.substring(l,c),!1===t(s,a,n,o.pos))break;if(1===a&&i&&nL(i,s,e,n,o.pos)){for(u=IP(s),d=!1;!o.eof();){if(YP(o,u)){d=!0;break}o.pos++}if(d&&!1===t(s,2,o.start,o.pos))break}}}else o.pos++}}function JP(e){for(;!e.eof();)if(e.eatWhile(wP),FP(e))e.eat(61)&&RP(e);else{if(DP(e.peek()))break;e.pos++}}function YP(e,t){const n=e.pos;return e.eat(60)&&e.eat(47)&&MP(e,t)&&e.eat(62)?(e.start=n,!0):(e.pos=n,!1)}function QP(e){return AP(e,qP,BP,!0)}function XP(e){return AP(e,zP,HP,!0)}function eL(e){const t=e.pos;if(MP(e,WP)&&LP(e)){const n=e.current();for(;!e.eof()&&!MP(e,UP);)kP(e)||e.pos++;return e.start=t,n}return e.pos=t,null}function tL(e){const t=e.pos;if(MP(e,KP)){for(;!e.eof()&&!MP(e,GP);)kP(e)||e.pos++;return e.start=t,!0}return e.pos=t,!1}function nL(e,t,n,o,i){if(t in e){const r=e[t];if(!Array.isArray(r))return!0;const a=VP(n.substring(o+t.length+1,i-1));return r.includes(function(e,t){for(let o=0;o<e.length;o++){const i=e[o];if(i.name===t)return i.value&&(xP((n=i.value).charCodeAt(0))&&(n=n.slice(1)),xP(n.charCodeAt(n.length-1))&&(n=n.slice(0,-1)),n)}var n}(a,"type")||"")}return!1}function oL(e,t){const n=new _P(e),o={start:-1,end:-1,propertyStart:-1,propertyEnd:-1,propertyDelimiter:-1,expression:0};let i;const r=(e,i=n.start,r=o.start,a=o.end)=>!1===t(e,r,a,i);for(;!n.eof();)if(!rL(n)&&!iL(n))if(n.start=n.pos,(i=n.eat(125))||n.eat(59)){if(-1!==o.propertyStart){if(r("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd))return;if(-1===o.start&&(o.start=o.end=n.start),r("propertyValue"))return}else if(-1!==o.start&&r("propertyName"))return;if(i&&(o.start=n.start,o.end=n.pos,r("blockEnd")))return;sL(o)}else if(n.eat(123)){if(-1===o.start&&-1===o.propertyStart&&(o.start=o.end=n.pos),-1!==o.propertyStart&&(o.start=o.propertyStart),r("selector"))return;sL(o)}else n.eat(58)&&!lL(n,o)?(-1===o.propertyStart&&(o.propertyStart=o.start),o.propertyEnd=o.end,o.propertyDelimiter=n.pos-1,o.start=o.end=-1):(-1===o.start&&(o.start=n.pos),n.eat(40)?o.expression++:n.eat(41)?o.expression--:aL(n)||n.pos++,o.end=n.pos);-1!==o.propertyStart&&r("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd)||-1!==o.start&&r(-1!==o.propertyStart?"propertyValue":"propertyName",-1)}function iL(e){return e.eatWhile(wP)}function rL(e){const t=e.pos;if(e.eat(47)&&e.eat(42)){for(e.start=t;!e.eof();)if(e.eat(42)){if(e.eat(47))return!0}else e.pos++;return!0}return e.pos=t,!1}function aL(e){const t=e.peek();if(xP(t)){for(e.start=e.pos++;!e.eof()&&!(e.eat(t)||e.eat(10)||e.eat(13));)e.eat(92),e.pos++;return!0}}function sL(e){e.start=e.end=e.propertyStart=e.propertyEnd=e.propertyDelimiter=-1}function lL(e,t){return t.expression||e.eatWhile(58)}const cL=[43,47,42,44];function uL(e,t=0){let n=-1,o=0,i=0;const r=[],a=new _P(e);for(;!a.eof();)i=a.pos,a.eat(wP)||a.eat(dL)||fL(a)?(o||-1===n||(r.push([t+n,t+i]),n=-1),a.eatWhile(wP)):(-1===n&&(n=a.pos),a.eat(40)?o++:a.eat(41)?o--:aL(a)||a.pos++);return-1!==n&&n!==a.pos&&r.push([t+n,t+a.pos]),r}function dL(e){return cL.includes(e)}function fL(e){const t=e.pos;return!(!e.eat(45)||!e.eat(wP))||(e.pos=t,!1)}function pL(e){return e.tokens[e.pos]}function hL(e){return e.tokens[e.pos++]}function mL(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function gL(e){return e.pos<e.size}function vL(e,t){const n=pL(e);return!(!n||!t(n))&&(e.pos++,!0)}function bL(e,t,n=pL(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function yL(e,t){const n={type:"TokenGroup",elements:[]};let o,i=n;const r=[];for(;gL(e)&&(o=kL(e,t)||wL(e,t));)if(i.elements.push(o),vL(e,zL))r.push(i),i=o;else{if(vL(e,HL))continue;if(vL(e,WL))do{r.length&&(i=r.pop())}while(vL(e,WL))}return n}function wL(e,t){if(vL(e,qL)){const n=yL(e,t);return IL(hL(e),"group",!1)&&(n.repeat=function(e){return LL(pL(e))?e.tokens[e.pos++]:void 0}(e)),n}}function kL(e,t){let n;const o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&vL(e,DL))for(;gL(e);){const{pos:t}=e;if(!vL(e,jL)||!vL(e,DL)){e.pos=t;break}}for(;gL(e)&&vL(e,NL););if(e.pos!==n)return e.start=n,!0;return!1}(e,t)&&(o.name=mL(e));gL(e);)if(e.start=e.pos,o.repeat||BL(o)||!vL(e,LL))if(!o.value&&$L(e))o.value=EL(e);else{if(!(n=CL(e,"id",t)||CL(e,"class",t)||xL(e))){!BL(o)&&vL(e,UL)&&(o.selfClose=!0,!o.repeat&&vL(e,LL)&&(o.repeat=e.tokens[e.pos-1]));break}o.attributes?o.attributes=o.attributes.concat(n):o.attributes=Array.isArray(n)?n.slice():[n]}else o.repeat=e.tokens[e.pos-1];return BL(o)?void 0:o}function xL(e){if(vL(e,VL)){const t=[];let n;for(;gL(e);)if(n=_L(e))t.push(n);else{if(vL(e,FL))break;if(!vL(e,OL))throw bL(e,`Unexpected "${pL(e).type}" token`)}return t}}function CL(e,t,n){if(ML(pL(e),t)){e.pos++;const i={name:[(o=t,{type:"Literal",value:o})]};return n.jsx&&$L(e)?(i.value=EL(e),i.expression=!0):i.value=TL(e)?mL(e):void 0,i}var o}function _L(e){return SL(e)?{value:mL(e)}:TL(e,!0)?{name:mL(e),value:vL(e,PL)&&(SL(e)||TL(e,!0))?mL(e):void 0}:void 0}function SL(e){const t=e.pos,n=pL(e);if(AL(n)){for(e.pos++;gL(e);)if(AL(hL(e),n.single))return e.start=t,!0;throw bL(e,"Unclosed quote",n)}return!1}function TL(e,t){const n=e.pos,o={attribute:0,expression:0,group:0};for(;gL(e);){const n=pL(e);if(o.expression)IL(n,"expression")&&(o[n.context]+=n.open?1:-1);else{if(AL(n)||ML(n)||OL(n)||LL(n))break;if(IL(n)){if(!t)break;if(n.open)o[n.context]++;else{if(!o[n.context])break;o[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function $L(e){const t=e.pos;if(vL(e,RL)){let n=0;for(;gL(e);){const t=hL(e);if(IL(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function EL(e){let t=e.start,n=e.pos;return IL(e.tokens[t],"expression",!0)&&t++,IL(e.tokens[n-1],"expression",!1)&&n--,mL(e,t,n)}function IL(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function ML(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function AL(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function OL(e){return Boolean(e&&"WhiteSpace"===e.type)}function PL(e){return ML(e,"equal")}function LL(e){return Boolean(e&&"Repeater"===e.type)}function DL(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function NL(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function jL(e){return ML(e,"class")}function VL(e){return IL(e,"attribute",!0)}function FL(e){return IL(e,"attribute",!1)}function RL(e){return IL(e,"expression",!0)}function qL(e){return IL(e,"group",!0)}function BL(e){return!e.name&&!e.value&&!e.attributes}function zL(e){return ML(e,"child")}function HL(e){return ML(e,"sibling")}function WL(e){return ML(e,"climb")}function UL(e){return ML(e,"close")}function KL(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function GL(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let o="";if(e.eatWhile(gP)?(t=Number(e.current()),o=e.eat(58)?ZL(e):""):vP(e.peek())&&(o=ZL(e)),e.eat(125))return{type:"Field",index:t,name:o,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let o=!1,i=1,r=0;if(e.eat(64)){for(;e.eat(94);)r++;o=e.eat(45),e.start=e.pos,e.eatWhile(gP)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:o,base:i,parent:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,o=!1;return e.eatWhile(gP)?n=Number(e.current()):o=!0,{type:"Repeater",count:n,value:0,implicit:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(wP))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let o="";for(;!e.eof();){if(KL(e)){o+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||JL(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!nD(n))break;if(YL(n,t)||QL(n,t)||xP(n)||XL(n))break}o+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:o,start:n,end:e.pos}}(e,t)||function(e){const t=eD(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(xP(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=XL(t);if(n)return{type:"Bracket",open:tD(t),context:n,start:e.pos++,end:e.pos}}(e)}function ZL(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function JL(e,t){const n=eD(e);return!(!n||t.quote||t.expression)&&(!t.attribute||"equal"===n)}function YL(e,t){return wP(e)&&!t.expression}function QL(e,t){return 42===e&&!t.attribute&&!t.expression}function XL(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function eD(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function tD(e){return 123===e||91===e||40===e}function nD(e){return bP(e)||45===e||58===e||33===e}const oD={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},iD={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}"},Operator(e){return oD[e.operator]},Field(e,t){return null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const o=t.repeaters.length-1,i=t.repeaters[o];if(i&&(n=e.reverse?e.base+i.count-i.value-1:e.base+i.value,e.parent)){const r=Math.max(0,o-e.parent);if(r!==o){const e=t.repeaters[r];n+=i.count*e.value}}let r=String(n);for(;r.length<e.size;)r="0"+r;return r},WhiteSpace(e){return e.value}};function rD(e,t){if(!iD[e.type])throw new Error(`Unknown token ${e.type}`);return iD[e.type](e,t)}const aD=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,sD=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function lD(e,t={}){let n,o=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter((e=>e.trim())):t.text);const i={type:"Abbreviation",children:dD(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var i;let r;if(o=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];r=void 0!==e?t.text[e]:t.text.join("\n")}else r=null!==(i=t.text)&&void 0!==i?i:"";return r},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!o){const e=bD(vD(i.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;yD(e,n),"a"===e.name&&t.href&&function(e,t){var n;let o="";aD.test(t)?(o=t,/\w+:/.test(o)||o.startsWith("//")||(o=`http://${o}`)):sD.test(t)&&(o=`mailto:${t}`);const i=null===(n=e.attributes)||void 0===n?void 0:n.find((e=>"href"===e.name));i?i.value||(i.value=[o]):e.attributes=[{name:"href",value:[o],valueType:"doubleQuote"}]}(e,n)}}return i}function cD(e,t){let n=[];if(e.repeat){const o=e.repeat,i=Object.assign({},o);let r;i.count=i.implicit&&Array.isArray(t.text)?t.cleanText.length:i.count||1,t.repeaters.push(i);for(let o=0;o<i.count;o++){if(i.value=o,e.repeat=i,r=mD(e)?dD(e,t):uD(e,t),i.implicit&&!t.inserted){const e=vD(r),n=e&&bD(e);n&&yD(n,t.getText(i.value))}if(n=n.concat(r),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=o,i.implicit&&(t.inserted=!0)}else n=n.concat(mD(e)?dD(e,t):uD(e,t));return n}function uD(e,t){let n=[];const o={type:"AbbreviationNode",name:e.name&&pD(e.name,t),value:e.value&&hD(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let i=[o];for(const o of e.elements)n=n.concat(cD(o,t));if(e.attributes){o.attributes=[];for(const n of e.attributes)o.attributes.push(fD(n,t))}return o.name||o.attributes||!o.value||o.value.some(gD)?o.children=n:i=i.concat(n),i}function dD(e,t){let n=[];for(const o of e.elements)n=n.concat(cD(o,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function fD(e,t){let n,o=!1,i=!1,r=e.expression?"expression":"raw";const a=e.name&&pD(e.name,t);if(a&&"!"===a[0]&&(o=!0),a&&"."===a[a.length-1]&&(i=!0),e.value){const o=e.value.slice();if(AL(o[0])){const e=o.shift();o.length&&vD(o).type===e.type&&o.pop(),r=e.single?"singleQuote":"doubleQuote"}else IL(o[0],"expression",!0)&&(r="expression",o.shift(),IL(vD(o),"expression",!1)&&o.pop());n=hD(o,t)}return{name:i||o?a.slice(o?1:0,i?-1:void 0):a,value:n,boolean:i,implied:o,valueType:r}}function pD(e,t){let n="";for(let o=0;o<e.length;o++)n+=rD(e[o],t);return n}function hD(e,t){const n=[];let o="";for(let i,r=0;r<e.length;r++)i=e[r],gD(i)?(o&&(n.push(o),o=""),n.push(i)):o+=rD(i,t);return o&&n.push(o),n}function mD(e){return"TokenGroup"===e.type}function gD(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function vD(e){return e[e.length-1]}function bD(e){return e.children.length?bD(vD(e.children)):e}function yD(e,t){if(e.value){"string"==typeof vD(e.value)?e.value[e.value.length-1]+=t:e.value.push(t)}else e.value=[t]}function wD(e,t){try{const n="string"==typeof e?function(e){const t=new _P(e),n=[],o={group:0,attribute:0,expression:0,quote:0};let i,r=0;for(;!t.eof();){if(r=t.peek(),i=GL(t,o),!i)throw t.error("Unexpected character");n.push(i),"Quote"===i.type?o.quote=r===o.quote?0:r:"Bracket"===i.type&&(o[i.context]+=i.open?1:-1)}return n}(e):e;return lD(function(e,t={}){const n={tokens:o=e,start:0,pos:0,size:o.length};var o;const i=yL(n,t);if(gL(n))throw bL(n,"Unexpected character");return i}(n,t),t)}catch(t){throw t instanceof SP&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function kD(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let o="";if(e.eatWhile(gP)?(n=Number(e.current()),o=e.eat(58)?xD(e):""):vP(e.peek())&&(o=xD(e)),e.eat(125))return{type:"Field",index:n,name:o,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,o=e.eatWhile(gP),i=e.pos;if(e.eat(46)){const t=e.eatWhile(gP);o||t||(e.pos=i)}e.pos===n&&(e.pos=t);return e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(yP),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let o="",i="";if(e.eatWhile($D)?(o=e.substring(n,e.pos),i=_D(e)):e.eat(116)?(o="0",i=_D(e)||"0"):i=_D(e),o||i||e.eof()){const{r:n,g:r,b:a,a:s}=function(e,t){let n="0",o="0",i="0",r=Number(null!=t&&""!==t?t:1);if("t"===e)r=0;else switch(e.length){case 0:break;case 1:n=o=i=e+e;break;case 2:n=o=i=e;break;case 3:n=e[0]+e[0],o=e[1]+e[1],i=e[2]+e[2];break;default:n=(e+=e).slice(0,2),o=e.slice(2,4),i=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(o,16),b:parseInt(i,16),a:r}}(o,i);return{type:"ColorValue",r:n,g:r,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return CD(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let o=!1;if(xP(t)){for(e.pos++;!e.eof();){if(e.eat(t)){o=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(o?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||SD(e)||function(e){const t=e.pos;if(e.eatWhile(wP))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;e.eat(TD)?e.eatWhile(n?ED:ID):e.eat(yP)?e.eatWhile(t?ID:ED):(e.eat(46),e.eatWhile(ID));if(n!==e.pos)return e.start=n,CD(e,e.start=n)}(e,t)}function xD(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function CD(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function _D(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(gP)?e.current():"1"):""}function SD(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function TD(e){return 64===e||36===e}function $D(e){return gP(e)||vP(e,65,70)}function ED(e){return bP(e)||45===e}function ID(e){return yP(e)||37===e||47===e}function MD(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function AD(e,t){let n=0,o=0;for(;t.length;){const e=(i=t)[i.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,o||(o=e.end),t.pop()}var i;n!==o&&t.push(CD(e,n,o))}function OD(e){return e.tokens[e.pos]}function PD(e){return e.pos<e.size}function LD(e,t){return!!t(OD(e))&&(e.pos++,!0)}function DD(e,t,n=OD(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const o=new Error(t);return o.pos=n&&n.start,o}function ND(e,t){let n,o,i=!1;const r=[],a=OD(e),s=!!t.value;for(s||!FD(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&FD(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,LD(e,JD)),s&&LD(e,zD);PD(e);)if(LD(e,GD))i=!0;else if(o=jD(e,s))r.push(o);else if(!LD(e,KD))break;if(n||r.length||i)return{name:n,value:r,important:i}}function jD(e,t){const n=[];let o,i;for(;PD(e);)if(o=OD(e),ZD(o))e.pos++,FD(o)&&(i=VD(e))?n.push({type:"FunctionCall",name:o.value,arguments:i}):n.push(o);else{if(!(JD(o)||t&&zD(o)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function VD(e){const t=e.pos;if(LD(e,qD)){const n=[];let o;for(;PD(e)&&!LD(e,BD);)if(o=jD(e,!0))n.push(o);else if(!LD(e,zD)&&!LD(e,UD))throw DD(e,"Unexpected token");return e.start=t,n}}function FD(e){return e&&"Literal"===e.type}function RD(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function qD(e){return RD(e,!0)}function BD(e){return RD(e,!1)}function zD(e){return e&&"WhiteSpace"===e.type}function HD(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function WD(e){return HD(e,"+")}function UD(e){return HD(e,",")}function KD(e){return UD(e)}function GD(e){return HD(e,"!")}function ZD(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function JD(e){return HD(e,":")||HD(e,"-")}function YD(e,t){try{const n="string"==typeof e?function(e,t){let n,o=0;const i=new _P(e),r=[];for(;!i.eof();){if(n=kD(i,0===o&&!t),!n)throw i.error("Unexpected character");if("Bracket"===n.type&&(!o&&n.open&&AD(i,r),o+=n.open?1:-1,o<0))throw i.error("Unexpected bracket",n.start);r.push(n),MD(n)&&(n=SD(i))&&r.push(n)}return r}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),o=[];let i;for(;PD(n);)if(i=ND(n,t))o.push(i);else if(!LD(n,WD))throw DD(n,"Unexpected token");return o}(n,t)}catch(t){throw t instanceof SP&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function QD(e,t,n){if(e&&t){e.length&&n&&eN(e,n);for(const n of t)eN(e,n);return e}const o=e||t;return o&&o.slice()}function XD(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function eN(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function tN(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function nN(e){return"AbbreviationNode"===e.type}function oN(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const i=tN(e);nN(i.node)&&(i.node.children=i.node.children.concat(oN(n,t)))}else o.push(n),n.children=oN(n,t)}return e.children=o}function iN(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function rN(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function aN(e,t){hN(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function sN(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,o=n.length-1;t<=o;t++)aN(e,n[t]),t!==o&&lN(e,!0)}function lN(e,t){const n=e.options["output.baseIndent"];aN(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];aN(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function cN(e,t,n){hN(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function uN(e,t){return mN(e,t.options["output.attributeCase"])}function dN(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function fN(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function pN(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?pN(e.name,t):Boolean(e.value&&!e.attributes)}function hN(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function mN(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const gN={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function vN(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(nN(n))return n}}(t),i=n.context?n.context.name:"",r=((o?o.name:i)||"").toLowerCase();e.name=gN[r]||(pN(r,n)?"span":"div")}const bN={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},yN=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function wN(e,t){return Math.floor(Math.random()*(t-e)+e)}function kN(e,t){const n=e.length,o=Math.min(n,t),i=[];for(;i.length<o;){const t=e[wN(0,n)];i.includes(t)||i.push(t)}return i}function xN(e,t){var n,o;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(o="?!...")[wN(0,o.length-1)])}function CN(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?wN(0,1):t>6&&t<=12?wN(0,2):wN(1,4);for(let i,r=0;r<o;r++)i=wN(0,t-2),n.test(e[i])||(e[i]+=",");return e}function _N(e,t,n){const o=[];let i,r=0;for(n&&e.common&&(i=e.common.slice(0,t),r+=i.length,o.push(xN(CN(i),".")));r<t;)i=kN(e.words,Math.min(wN(2,30),t-r)),r+=i.length,o.push(xN(CN(i)));return o.join(" ")}function SN(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function TN(e){return"select"!==e.name}const $N=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,EN=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,IN=e=>/^[a-z]\-/i.test(e),MN=e=>/^[a-z]/i.test(e);function AN(e,t,n){!function(e){const t=ON(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(FN),t.block=DN(t.classNames),jN(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=ON(e),i=[],{options:r}=n,a=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const s=e;(t=e.match($N))&&(o=LN(a,t[1].length,n.context)+r["bem.element"]+t[2],i.push(o),e=e.slice(t[0].length)),(t=e.match(EN))&&(o||(o=LN(a,t[1].length),i.push(o)),i.push(`${o}${r["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&i.push(s)}const s=i.filter(FN);s.length&&jN(e,s.join(" "))}(e,t,n)}function ON(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=VN(n.value);break}e._bem=PN(t)}return e._bem}function PN(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:DN(t)}}function LN(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=ON(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=PN(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function DN(e){return NN(e,IN)||NN(e,MN)||void 0}function NN(e,t){for(const n of e){if($N.test(n)||EN.test(n))break;if(t(n))return n}}function jN(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function VN(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function FN(e,t,n){return!!e&&n.indexOf(e)===t}function RN(e,t,n){const o=(e,o,r)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,o,r,n,i),n.current=s,n.parent=a},i=(e,t,i)=>{n.ancestors.push(n.current),o(e,t,i),n.ancestors.pop()};e.children.forEach(o)}function qN(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:rN(e.options)}}const BN=[{type:"Field",index:0,name:""}];function zN(e){return!!e&&(!e.name&&!e.attributes)}function HN(e,t){return!!e&&pN(e,t)}function WN(e){return"object"==typeof e&&"Field"===e.type}function UN(e,t){const{out:n}=t;let o=-1;for(const i of e)"string"==typeof i?sN(n,i):(cN(n,t.field+i.index,i.name),i.index>o&&(o=i.index));-1!==o&&(t.field+=o+1)}function KN(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function GN(e){const t=[],n={pos:0,text:e};let o,i=n.pos,r=n.pos;for(;n.pos<n.text.length;)r=n.pos,(o=ZN(n))?(i!==n.pos&&t.push(e.slice(i,r)),t.push(o),i=n.pos):n.pos++;return i!==n.pos&&t.push(e.slice(i)),t}function ZN(e){if(91===JN(e)){const t=++e.pos;let n=t,o=t,i=1;for(;e.pos<e.text.length;){const r=JN(e);if(YN(r)){for(n=e.pos;QN(JN(e));)e.pos++;o=e.pos}else{if(91===r)i++;else if(93===r&&0==--i)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function JN(e,t=e.pos){return e.text.charCodeAt(t)}function YN(e){return e>=65&&e<=90}function QN(e){return YN(e)||e>47&&e<58||95===e||45===e}function XN(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function ej(e,t,n){const o={},{out:i}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?sN(i,e):o[e.name]&&(sN(i,e.before),UN(o[e.name],n),sN(i,e.after))}const tj=/^<([\w\-:]+)[\s>]/;function nj(e,t){const n=qN(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?GN(t["comment.before"]):void 0,after:t["comment.after"]?GN(t["comment.after"]):void 0}}(t),RN(e,oj,n),n.out.value}function oj(e,t,n,o,i){const{out:r,config:a}=o,s=aj(e,t,n,o),l=function(e){const{config:t,parent:n}=e;if(!n||zN(n)||n.name&&t.options["output.formatSkip"].includes(n.name))return 0;return 1}(o);if(r.level+=l,s&&lN(r,!0),e.name){const t=function(e,t){return mN(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){XN(e,t)&&t.comment.before&&ej(e,t.comment.before,t)}(e,o),sN(r,`<${t}`),e.attributes)for(const t of e.attributes)KN(t)&&ij(t,o);if(!e.selfClosing||e.children.length||e.value){if(sN(r,">"),!rj(e,o,i)){if(e.value){const t=e.value.some(sj)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=tj.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&lN(o.out,++r.level),UN(e.value,o),t&&lN(o.out,--r.level)}if(e.children.forEach(i),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&lN(o.out,++r.level),UN(BN,o),t&&lN(o.out,--r.level)}}sN(r,`</${t}>`),function(e,t){XN(e,t)&&t.comment.after&&ej(e,t.comment.after,t)}(e,o)}else sN(r,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!rj(e,o,i)&&e.value&&(UN(e.value,o),e.children.forEach(i));if(s&&t===n.length-1&&o.parent){const e=zN(o.parent)?0:1;lN(r,r.level-e)}r.level-=l}function ij(e,t){const{out:n,config:o}=t;if(e.name){const i=uN(e.name,o),r=dN(e,o,!0),a=dN(e,o);let s=e.value;fN(e,o)&&!s?o.options["output.compactBoolean"]||(s=[i]):s||(s=BN),sN(n," "+i),s?(sN(n,"="+r),UN(s,t),sN(n,a)):"html"!==o.options["output.selfClosingStyle"]&&sN(n,"="+r+a)}}function rj(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(WN);if(-1!==o){UN(e.value.slice(0,o),t);const i=t.out.line;let r=o+1;return e.children.forEach(n),t.out.line!==i&&"string"==typeof e.value[r]&&sN(t.out,e.value[r++].trimLeft()),UN(e.value.slice(r),t),!0}}return!1}function aj(e,t,n,o){const{config:i,parent:r}=o;if(!i.options["output.format"])return!1;if(0===t&&!r)return!1;if(r&&zN(r)&&1===n.length)return!1;if(zN(e)){if(zN(n[t-1])||zN(n[t+1])||e.value.some(sj)||e.value.some(WN)&&e.children.length)return!0}if(pN(e,i)){if(0===t){for(let e=0;e<n.length;e++)if(!pN(n[e],i))return!0}else if(!pN(n[t-1],i))return!0;if(i.options["output.inlineBreak"]){let e=1,o=t,r=t;for(;HN(n[--o],i);)e++;for(;HN(n[++r],i);)e++;if(e>=i.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(aj(e.children[t],t,e.children,o))return!0;return!1}return!0}function sj(e){return"string"==typeof e&&/\r|\n/.test(e)}function lj(e,t,n){const o=qN(t);return o.options=n||{},RN(e,cj,o),o.out.value}function cj(e,t,n,o,i){const{out:r,options:a}=o,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)uj(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),c=o.parent?1:0;r.level+=c,function(e,t,n,o){if(!o.parent&&0===t)return!1;return!zN(e)}(e,t,0,o)&&lN(r,!0),!e.name||"div"===e.name&&s.length||sN(r,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)if(n.value)if("class"===n.name){sN(t.out,".");UN(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)}else sN(t.out,"#"),UN(n.value,t)}(s,o),function(e,t){if(e.length){const{out:n,config:o,options:i}=t;i.beforeAttribute&&sN(n,i.beforeAttribute);for(let r=0;r<e.length;r++){const a=e[r];sN(n,uN(a.name||"",o)),fN(a,o)&&!a.value?!o.options["output.compactBoolean"]&&i.booleanValue&&sN(n,"="+i.booleanValue):(sN(n,"="+dN(a,o,!0)),UN(a.value||BN,t),sN(n,dN(a,o))),r!==e.length-1&&i.glueAttribute&&sN(n,i.glueAttribute)}i.afterAttribute&&sN(n,i.afterAttribute)}}(l.filter(KN),o),!e.selfClosing||e.value||e.children.length?(!function(e,t){if(!e.value&&e.children.length)return;const n=e.value||BN,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:i,options:r}=t;if(1===o.length)(e.name||e.attributes)&&aN(i," "),UN(n,t);else{const e=[];let n=0;for(const t of o){const o=dj(t);e.push(o),o>n&&(n=o)}i.level++;for(let a=0;a<o.length;a++)lN(i,!0),r.beforeTextLine&&aN(i,r.beforeTextLine),UN(o[a],t),r.afterTextLine&&(aN(i," ".repeat(n-e[a])),aN(i,r.afterTextLine));i.level--}}(e,o),e.children.forEach(i)):o.options.selfClose&&sN(r,o.options.selfClose),r.level-=c}function uj(e){return"class"===e.name||"id"===e.name}function dj(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const fj={html:nj,haml:function(e,t){return lj(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return lj(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return lj(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function pj(e,t){let n;if("string"==typeof e){let o=t;t.options["jsx.enabled"]&&(o=Object.assign(Object.assign({},o),{jsx:!0})),t.options["markup.href"]&&(o=Object.assign(Object.assign({},o),{href:!0})),e=wD(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],i=e=>{const r=e.name&&t.snippets[e.name];if(!r||n.includes(r))return null;const a=wD(r,t);n.push(r),oN(a,i),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],i=e.attributes||[];t.attributes=o?i.concat(n):n.concat(i)}iN(e,t)}return a};return oN(e,i),e}(e,t),function(e,t,n){const o=[e],i=e=>{t(e,o,n),o.push(e),e.children.forEach(i),o.pop()};e.children.forEach(i)}(e,hj,t),t.text=null!=n?n:t.text,e}function hj(e,t,n){!function(e,t,n){!e.name&&e.attributes&&vN(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const i of e.attributes)if(i.name){const e=i.name;if(e in o){const n=o[e];"class"===e?n.value=QD(n.value,i.value," "):XD(n,i,t)}else n.push(o[e]=Object.assign({},i))}else n.push(i);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(yN))){const i=bN[o[1]]||bN.latin,r=o[2]?Math.max(1,Number(o[2])):30,a=wN(r,o[3]?Math.max(r,Number(o[3].slice(1))):r),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[_N(i,a,!s||0===s.value)],e.repeat&&t.length>1&&vN(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(TN))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(SN)}(e),n.options["bem.enabled"]&&AN(e,t,n)}const mj=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,gj={value:!0};function vj(e,t){const n=t.match(mj);if(n){const t={},o=n[2]?n[2].split("|").map(yj):[];for(const e of o)for(const n of e)kj(n,t);return{type:"Property",key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function bj(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function yj(e){return YD(e.trim(),gj)[0].value}function wj(e){return"Property"===e.type}function kj(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function xj(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,i=t.length;if(!n&&o>i)return 0;const r=Math.min(o,i),a=Math.max(o,i);let s=1,l=1,c=a,u=0,d=0,f=!1,p=!1;for(;s<o;){for(u=e.charCodeAt(s),f=!1,p=!1;l<i;){if(d=t.charCodeAt(l),u===d){f=!0,c+=a-(p?s:l);break}p=45===d,l++}if(!f){if(!n)return 0;break}s++}const h=a-r;return c*(s/a)/(Cj(a)-Cj(h))}function Cj(e){return e*(e+1)/2}function _j(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Tj(e.r)&&Tj(e.g)&&Tj(e.b)?$j:Ej;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];1!==e.a&&t.push(Sj(e.a,8));return`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Sj(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Tj(e){return!(e%17)}function $j(e){return(e>>4).toString(16)}function Ej(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}function Ij(e,t,n){const o=n.options["stylesheet.json"];if(e.name){sN(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],i=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!i||i.unit&&"px"!==i.unit){const i=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&aN(t,i);for(let o=0;o<e.value.length;o++)0!==o&&aN(t,", "),Aj(e.value[o],t,n);o&&aN(t,i)}else aN(t,String(i.value))}(e,t,n):cN(t,0,""),o?aN(t,","):(Mj(e,t,!0),aN(t,n.options["stylesheet.after"]))}else{for(const o of e.value)for(const e of o.value)Oj(e,t,n);Mj(e,t,e.value.length>0)}}function Mj(e,t,n){e.important&&(n&&aN(t," "),aN(t,"!important"))}function Aj(e,t,n){for(let o=0,i=-1;o<e.value.length;o++){const r=e.value[o];0===o||"Field"===r.type&&r.start===i||aN(t," "),Oj(r,t,n),i=r.end}}function Oj(e,t,n){if("ColorValue"===e.type)aN(t,_j(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)sN(t,e.value);else if("NumberValue"===e.type)sN(t,Sj(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";sN(t,n+e.value+n)}else if("Field"===e.type)cN(t,e.index,e.name);else if("FunctionCall"===e.type){aN(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&aN(t,", "),Aj(e.arguments[o],t,n);aN(t,")")}}const Pj="lg";function Lj(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(vj(n,e[n]));return function(e){e=e.slice().sort(bj);const t=[];let n;for(const o of e.filter(wj)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=YD(e,{value:Wj(t)}));const i=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter((e=>"Raw"===e.type));if("@@property"===t.context.name)return e.filter((e=>"Property"===e.type))}return e}(o,t);for(const n of e)Dj(n,i,t);return e}function Dj(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Pj&&(n=e)}if(n||e.name===Pj)return n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Rj(Bj(0,""))]},t.context||(e.name="background-image"),e.value=[Rj(n)],!0;return!1}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(Wj(n)){const i=n.context.name,r=t.find((e=>"Property"===e.type&&e.property===i));Nj(e,n,r,o),e.snippet=r}else if(e.name){const i=jj(e.name,t,o,!0);e.snippet=i,i&&("Property"===i.type?function(e,t,n){const o=e.name,i=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(o,t.key);if(i){if(e.value.length)return e;const o=Fj(i,n,t);if(!o)return e;e.value.push(Rj(o))}if(e.name=t.property,e.value.length)Nj(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(zj)?o:o.map((e=>Hj(e,n)))}}(e,i,n):function(e,t){let n,o=0;const i=/\$\{(\d+)(:[^}]+)?\}/g,r=e.value[0],a=[];for(;n=i.exec(t.value);)o!==n.index&&a.push(qj(t.value.slice(o,n.index))),o=n.index+n[0].length,r&&r.value.length?a.push(r.value.shift()):a.push(Bj(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(o);s&&a.push(qj(s));e.name=void 0,e.value=[Rj(...a)]}(e,i))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const i of e.value)for(const r of i.value)"NumberValue"===r.type&&(r.unit?r.unit=n[r.unit]||r.unit:0===r.value||o.includes(e.name)||(r.unit=r.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Nj(e,t,n,o){for(const i of e.value){const e=[];for(const r of i.value)if("Literal"===r.type)e.push(Fj(r.value,t,n,o)||r);else if("FunctionCall"===r.type){const i=Fj(r.name,t,n,o);i&&"FunctionCall"===i.type?e.push(Object.assign(Object.assign({},i),{arguments:r.arguments.concat(i.arguments.slice(r.arguments.length))})):e.push(r)}else e.push(r);i.value=e}}function jj(e,t,n=0,o=!1){let i=null,r=0;for(const n of t){const t=xj(e,Vj(n),o);if(1===t)return n;t&&t>=r&&(r=t,i=n)}return r>=n?i:null}function Vj(e){return"string"==typeof e?e:e.key}function Fj(e,t,n,o){let i;if(n){if(i=jj(e,Object.keys(n.keywords),o))return n.keywords[i];for(const t of n.dependencies)if(i=jj(e,Object.keys(t.keywords),o))return t.keywords[i]}return(i=jj(e,t.options["stylesheet.keywords"],o))?qj(i):null}function Rj(...e){return{type:"CSSValue",value:e}}function qj(e){return{type:"Literal",value:e}}function Bj(e,t){return{type:"Field",index:e,name:t}}function zj(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(zj))return!0;return!1}function Hj(e,t,n={index:1}){let o=[];for(const i of e.value)switch(i.type){case"ColorValue":o.push(Bj(n.index++,_j(i,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(Bj(n.index++,i.value));break;case"NumberValue":o.push(Bj(n.index++,`${i.value}${i.unit}`));break;case"StringValue":const e="single"===i.quote?"'":'"';o.push(Bj(n.index++,e+i.value+e));break;case"FunctionCall":o.push(Bj(n.index++,i.name),qj("("));for(let e=0,r=i.arguments.length;e<r;e++)o=o.concat(Hj(i.arguments[e],t,n).value),e!==r-1&&o.push(qj(", "));o.push(qj(")"));break;default:o.push(i)}return Object.assign(Object.assign({},e),{value:o})}function Wj(e){return!!e.context&&("@@value"===e.context.name||!e.context.name.startsWith("@@"))}const Uj={markup:"html",stylesheet:"css"},Kj={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},Gj={markup:{snippets:Zj({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Zj({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:Zj({"!!!":"{doctype html}"})},stylesheet:{snippets:Zj({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Zj(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function Jj(e,t,n,o,i={}){const r=Gj[e],a=i[e],s=Gj[t],l=i[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kj[n]),r&&r[n]),s&&s[n]),a&&a[n]),l&&l[n]),o[n])}"#.*:$-_!@%^+>/".split("").map((e=>e.charCodeAt(0)));function Yj(e,t){const n=function(e={},t={}){const n=e.type||"markup",o=e.syntax||Uj[n];return Object.assign(Object.assign(Object.assign({},Kj),e),{type:n,syntax:o,variables:Jj(n,o,"variables",e,t),snippets:Jj(n,o,"snippets",e,t),options:Jj(n,o,"options",e,t)})}(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const o=rN(t.options),i=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)i&&0!==n&&lN(o,!0),Ij(e[n],o,t);return o.value}(Lj(e,t),t)}(e,n):function(e,t){return function(e,t){return(fj[t.syntax]||nj)(e,t)}(pj(e,t),t)}(e,n)}const Qj={"{":"}","[":"]","(":")"},Xj=[];for(const e of Object.keys(Qj))Xj.push(Qj[e]);function eV(e){return 32===e||9===e||160===e||10===e||13===e}function tV(e,t){const n=e[e.length-1];!t||t[0]===t[1]||n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function nV(e,t=0){const n=[],o=e.length;let i=0,r=0,a=0;for(;i<o;){a=i;if(eV(e.charCodeAt(i++))){for(r!==a&&n.push([t+r,t+a]);eV(e.charCodeAt(i));)i++;r=i}}return r!==i&&n.push([t+r,t+i]),n}function oV(e){return'"'===e||"'"===e}function iV(e){const{value:t}=e;return t&&function(e){return!!e&&(t=e,t.length>1&&oV(t[0])&&t[0]===t.slice(-1)||function(e){return"{"===e[0]&&"}"===e.slice(-1)}(e));var t}(t)?t.slice(1,-1):t}function rV(e){return e.length>0?e[e.length-1]:void 0}function aV(e,t){const n=EP(t),o=[],i=[];return ZP(e,((e,t,n,r)=>{if(3===t)i.push({name:e,open:[n,r]});else if(1===t){const t={name:e,open:[n,r]};o.push(t),i.push(t)}else for(;o.length;){const t=o.pop();if(t.name===e){t.close=[n,r];break}}}),n),i}function sV(e,t,n){return n?function(e,t){let n=null,o="",i=-1,r=-1;if(ZP(e,((e,a,s,l)=>{if(s>=t)return!1;1!==a&&3!==a||(o=e,n=a,i=s,r=l)})),null!==n)return lV(e,o,i,r)}(e,t):function(e,t){let n;return ZP(e,((o,i,r,a)=>{if((1===i||3===i)&&a>t)return n=lV(e,o,r,a),!1})),n}(e,t)}function lV(e,t,n,o){const i=[[n+1,n+1+t.length]],r=e.slice(n,o);for(const e of VP(r,t))if(null!=e.value){tV(i,[n+e.nameStart,n+e.valueEnd]);const t=cV(e);if(t[0]!==t[1]&&(tV(i,[n+t[0],n+t[1]]),"class"===e.name)){const e=nV(r.slice(t[0],t[1]),n+t[0]);for(const t of e)tV(i,t)}}else tV(i,[n+e.nameStart,n+e.nameEnd]);return{start:n,end:o,ranges:i}}function cV(e){const t=e.value,n=t[0],o=t[t.length-1];return'"'===n||"'"===n?[e.valueStart+1,e.valueEnd-(o===n?1:0)]:"{"===n&&"}"===o?[e.valueStart+1,e.valueEnd-1]:[e.valueStart,e.valueEnd]}function uV(e,t,n){return n?function(e,t){const n={type:null,start:-1,end:-1,valueStart:-1,valueEnd:-1,valueDelimiter:-1};if(oL(e,((e,o,i,r)=>{if(o>=t&&"propertyValue"!==e)return!1;"selector"===e||"propertyName"===e?(n.start=o,n.end=i,n.type=e,n.valueStart=n.valueEnd=n.valueDelimiter=-1):"propertyValue"===e&&(n.valueStart=o,n.valueEnd=i,n.valueDelimiter=r)})),"selector"===n.type)return{start:n.start,end:n.end,ranges:[[n.start,n.end]]};if("propertyName"===n.type){const t={start:n.start,end:n.end,ranges:[]};if(-1!==n.valueStart){t.end=-1!==n.valueDelimiter?n.valueDelimiter+1:n.valueEnd,tV(t.ranges,[n.start,t.end]),tV(t.ranges,[n.valueStart,n.valueEnd]);for(const o of uL(e.substring(n.valueStart,n.valueEnd)))tV(t.ranges,[o[0]+n.valueStart,o[1]+n.valueStart])}else tV(t.ranges,[n.start,n.end]);return t}}(e,t):function(e,t){let n,o;return oL(e,((i,r,a,s)=>{if(!(r<t)){if("selector"===i)return n={start:r,end:a,ranges:[[r,a]]},!1;if("propertyName"===i)o=[r,a,s];else{if("propertyValue"===i){n={start:r,end:-1!==s?s+1:a,ranges:[]},o&&(n.start=o[0],tV(n.ranges,[o[0],n.end])),tV(n.ranges,[r,a]);for(const t of uL(e.substring(r,a)))tV(n.ranges,[t[0]+r,t[1]+r]);return!1}if(o)return n={start:o[0],end:o[1],ranges:[[o[0],o[1]]]},!1}}})),n}(e,t)}function dV(e,t,n={}){const o={type:"html",ancestors:[],current:null,css:null},i=[],r=[],a=EP({xml:n.xml,allTokens:!0});return ZP(e,((e,n,s,l)=>!(s>=t)&&(s<t&&t<l?(o.current={name:e,type:n,range:[s,l]},!1):(1===n&&function(e,t){return!t.xml&&t.empty.includes(e)}(e,a)&&(n=3),void(1===n?r.push(mV(i,e,n,s,l)):2===n&&r.length&&rV(r).name===e&&gV(i,r.pop()))))),a),r.forEach((e=>{o.ancestors.push({name:e.name,range:[e.start,e.end]})})),n.skipCSS||(o.css=function(e,t,n){let o=null;if(n.current){const i=n.current;if(1===i.type||2===i.type){const n=e.slice(i.range[0],i.range[1]);VP(n,i.name).some((r=>{if("style"===r.name&&null!=r.value){const[a,s]=function(e,t,n=0){let o=t.valueStart,i=t.valueEnd;return oV(e[o])&&o++,oV(e[i-1])&&i>o&&i--,[n+o,n+i]}(n,r,i.range[0]);if(t>=a&&t<=s)return o=fV(e.slice(a,s),t-a,[a,s]),vV(o,a),o.inline=!0,!0}}))}}else if(n.ancestors.length){const i=rV(n.ancestors);if("style"===i.name){const n=i.range[1];let r=e.length;ZP(e.slice(i.range[1]),((e,t,o)=>{if(e===i.name&&2===t)return r=o+n,!1})),o=fV(e.slice(n,r),t-n,[n,r]),vV(o,n)}}return o}(e,t,o)),o}function fV(e,t,n){const o={type:"css",ancestors:[],current:null,inline:!1,embedded:n},i=[],r=[];return oL(e,((n,a,s)=>{if(a>=t)return!1;if(a<t&&t<=s)return o.current={name:e.slice(a,s),type:n,range:[a,s]},!1;switch(n){case"selector":case"propertyName":r.push(mV(i,e.slice(a,s),n,a,s));break;case"propertyValue":case"blockEnd":gV(i,r.pop())}})),r.forEach((e=>{o.ancestors.push({name:e.name,type:e.type,range:[e.start,e.end]})})),o}function pV(e,t){const n=rV(t.ancestors);if(n){const t={};for(const o of VP(e.slice(n.range[0],n.range[1]),n.name))t[o.name]=iV(o)||"";return{name:n.name,attributes:t}}}function hV(e){if(e.inline)return{name:"@@property"};const t=rV(e.ancestors);let n="@@global";return e.current&&("propertyValue"===e.current.type&&t?n=t.name:"selector"!==e.current.type&&"propertyName"!==e.current.type||t||(n="@@section")),{name:n}}function mV(e,t,n,o,i){if(e.length){const r=e.pop();return r.name=t,r.type=n,r.start=o,r.end=i,r}return{name:t,type:n,start:o,end:i}}function gV(e,t){t&&e.push(t)}function vV(e,t){e.ancestors.forEach((e=>{bV(e.range,t)})),e.current&&bV(e.current.range,t)}function bV(e,t){e[0]+=t,e[1]+=t}const yV="<",wV=/^[a-zA-Z.#\[\(]$/,kV=/^[\s>;"\']?[a-zA-Z.#!@\[\(]$/,xV=/^[\s;"\']?[a-zA-Z!@]$/;const CV=String.fromCodePoint(65520),_V=String.fromCodePoint(65521),SV="$$emmet",TV={"{":"}","[":"]","(":")"};for(const e of Object.keys(TV));let $V=0;function EV(e,t){const n=OV(e,t);let o=0,i=n.length;for(;o<i&&jV(n[o]);)o++;for(;i>o&&jV(n[i-1]);)i--;return[t[0]+o,t[0]+i]}function IV(e,t,n){return e.operation((()=>{const o=function(e,t=0){const n=[];let o,i="",r=null,a=0,s=0;for(;s<e.length;)o=e.charAt(s++),o!==CV&&o!==_V||(i+=e.slice(a,s-1),a=s,o===CV?(r=[t+i.length,t+i.length],n.push(r)):r&&(r[1]=t+i.length,r=null));return{ranges:n,snippet:i+e.slice(a)}}(n,t[0]),[i,r]=PV(e,t);if(e.replaceRange(o.snippet,i,r),o.ranges.length){const t=o.ranges.map((t=>{const[n,o]=PV(e,t);return{head:n,anchor:o}}));e.setSelections(t)}return!0}))}function MV(e){const t=e.getCursor();return e.indexFromPos(t)}function AV(e){return e.getValue()}function OV(e,t){const[n,o]=PV(e,t);return e.getRange(n,o)}function PV(e,t){return[e.posFromIndex(t[0]),e.posFromIndex(t[1])]}function LV(e){const{value:t}=e;return t&&function(e){return!!e&&(NV(e)||(t=e,"{"===t[0]&&"}"===t.slice(-1)));var t}(t)?t.slice(1,-1):t}function DV(e){return'"'===e||"'"===e}function NV(e){return e.length>1&&DV(e[0])&&e[0]===e.slice(-1)}function jV(e){return/^[\s\n\r]+$/.test(e)}function VV(e){return e.constructor.Pass}function FV(e,t){const n=e.indexFromPos(t.head),o=e.indexFromPos(t.anchor);return[Math.min(n,o),Math.max(n,o)]}function RV(e,t){return e[0]===t[0]&&e[1]===t[1]}function qV(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function BV(e){return e[0]===e[1]}function zV(e,t="emmet-error-snippet"){const n=e.message.split("\n")[0];return`<div class="${t}">\n <div class="${t}-ptr">\n <div class="${t}-line"></div>\n <div class="${t}-tip"></div>\n <div class="${t}-spacer">${" ".repeat(e.pos||0)}</div>\n </div>\n <div class="${t}-message">${function(e){const t={"<":"<",">":">","&":"&"};return e.replace(/[<>&]/g,(e=>t[e]))}(n.replace(/\s+at\s+\d+$/,""))}</div>\n </div>`}function HV(e){return e.length>0?e[e.length-1]:void 0}function WV(e){return SV in e}function UV(e){return WV(e)||(e[SV]={id:String($V++)}),e[SV]}const KV={xml:!1,allTokens:!1,special:{style:null,script:["","text/javascript","application/x-javascript","javascript","typescript","ts","coffee","coffeescript"]},empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]},GV={throws:!1};function ZV(e={}){return Object.assign(Object.assign({},KV),e)}function JV(e){return e.split("").map((e=>e.charCodeAt(0)))}function YV(e,t){const n=e.pos;for(let o=0;o<t.length;o++)if(!e.eat(t[o]))return e.pos=n,!1;return e.start=n,!0}function QV(e,t,n,o){const i=e.pos;if(YV(e,t)){for(;!e.eof();){if(YV(e,n))return e.start=i,!0;e.pos++}return o?(e.start=i,!0):(e.pos=i,!1)}return e.pos=i,!1}function XV(e){return hA(e)||58===e||95===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191}function eF(e){return XV(e)||45===e||46===e||pA(e)||183===e||e>=768&&e<=879}function tF(e){const t=e.pos;return!!e.eat(XV)&&(e.eatWhile(eF),e.start=t,!0)}function nF(e){return 62===e||47===e}function oF(e){return!(isNaN(e)||wA(e)||bA(e)||nF(e))}function iF(e){return kA(e,60,62,GV)||kA(e,40,41,GV)||kA(e,91,93,GV)||kA(e,123,125,GV)}function rF(e,t){const n=[];let o=0,i=e.length;t&&(o=t.length+1,i-="/>"===e.slice(-2)?2:1);const r=new xA(e,o,i);for(;!r.eof();)if(r.eatWhile(bA),aF(r)){const e={name:r.current(),nameStart:r.start,nameEnd:r.pos};r.eat(61)&&sF(r)&&(e.value=r.current(),e.valueStart=r.start,e.valueEnd=r.pos),n.push(e)}else r.pos++;return n}function aF(e){const t=e.pos;return e.eat(42)||e.eat(35)?(tF(e),e.start=t,!0):iF(e)||tF(e)}function sF(e){return yA(e,GV)||iF(e)||function(e){const t=e.pos;if(e.eatWhile(oF))return e.start=t,!0}(e)}const lF=JV("<![CDATA["),cF=JV("]]>"),uF=JV("\x3c!--"),dF=JV("--\x3e"),fF=JV("<?"),pF=JV("?>"),hF=JV("<%"),mF=JV("%>");function gF(e,t,n){const o=new xA(e),i=n?n.special:null,r=!!n&&n.allTokens;let a,s,l,c,u,d=!1,f=null;for(;!o.eof();){const n=o.pos;if(yF(o)){if(r&&!1===t("#cdata",4,o.start,o.pos))break}else if(wF(o)){if(r&&!1===t("#comment",6,o.start,o.pos))break}else if(xF(o)){if(r&&!1===t("#erb",7,o.start,o.pos))break}else if(f=kF(o)){if(r&&!1===t(f,5,o.start,o.pos))break}else if(o.eat(60)){if(a=o.eat(47)?2:1,l=o.pos,tF(o)&&(c=o.pos,2!==a&&(vF(o),o.eatWhile(bA),o.eat(47)&&(a=3)),o.eat(62))){if(s=o.substring(l,c),!1===t(s,a,n,o.pos))break;if(1===a&&i&&CF(i,s,e,n,o.pos)){for(u=JV(s),d=!1;!o.eof();){if(bF(o,u)){d=!0;break}o.pos++}if(d&&!1===t(s,2,o.start,o.pos))break}}}else o.pos++}}function vF(e){for(;!e.eof();)if(e.eatWhile(bA),aF(e))e.eat(61)&&sF(e);else{if(nF(e.peek()))break;e.pos++}}function bF(e,t){const n=e.pos;return e.eat(60)&&e.eat(47)&&YV(e,t)&&e.eat(62)?(e.start=n,!0):(e.pos=n,!1)}function yF(e){return QV(e,lF,cF,!0)}function wF(e){return QV(e,uF,dF,!0)}function kF(e){const t=e.pos;if(YV(e,fF)&&tF(e)){const n=e.current();for(;!e.eof()&&!YV(e,pF);)yA(e)||e.pos++;return e.start=t,n}return e.pos=t,null}function xF(e){const t=e.pos;if(YV(e,hF)){for(;!e.eof()&&!YV(e,mF);)yA(e)||e.pos++;return e.start=t,!0}return e.pos=t,!1}function CF(e,t,n,o,i){if(t in e){const r=e[t];if(!Array.isArray(r))return!0;const a=rF(n.substring(o+t.length+1,i-1));return r.includes(function(e,t){for(let o=0;o<e.length;o++){const i=e[o];if(i.name===t)return i.value&&(wA((n=i.value).charCodeAt(0))&&(n=n.slice(1)),wA(n.charCodeAt(n.length-1))&&(n=n.slice(0,-1)),n)}var n}(a,"type")||"")}return!1}function _F(e,t,n,o){if(e.length){const i=e.pop();return i.name=t,i.start=n,i.end=o,i}return{name:t,start:n,end:o}}function SF(e,t){e.push(t)}function TF(e,t,n,o){const i=rF(e.slice(t,n),o);return i.forEach((e=>{e.nameStart+=t,e.nameEnd+=t,null!=e.value&&(e.valueStart+=t,e.valueEnd+=t)})),i}function $F(e,t){return!t.xml&&t.empty.includes(e)}function EF(e){return e.length?e[e.length-1]:null}const IF=["xml","xsl","jsx"],MF=["html","htmlmixed","vue"],AF=["css","scss","less"],OF=["jsx","tsx"],PF=["haml","jade","pug","slim"].concat(MF,IF,OF),LF=["sass","sss","stylus","postcss"].concat(AF);function DF(e,t){let n,o,i=NF(e);if(FF(i)){const r=AV(e);o=dV(r,t,{xml:VF(i)}),o.css&&(i=function(e,t){const n=HV(t.ancestors);if(n&&"style"===n.name)for(const t of rF(e.slice(n.range[0],n.range[1]),n.name))if("type"===t.name)return LV(t)}(r,o)||"css",n=o.css.inline,o=o.css)}else RF(i)&&(o=fV(AV(e),t));return{type:jF(i),syntax:i,inline:n,context:o}}function NF(e){const t=e.getMode();return t?"htmlmixed"===t.name?"html":t.name||"":""}function jF(e){return e&&LF.includes(e)?"stylesheet":"markup"}function VF(e){return!!e&&IF.includes(e)}function FF(e){return!!e&&(MF.includes(e)||VF(e))}function RF(e){return!!e&&AF.includes(e)}function qF(e){return!!e&&OF.includes(e)}function BF(e,t){if(!0===e)return!0;if(Array.isArray(e)){const n=[t.type,t.syntax];return t.inline&&n.push(`${t.type}-inline`,`${t.syntax}-inline`),n.some((t=>e.includes(t)))}return!1}function zF(e,t,n){if(e&&t){e.length&&n&&WF(e,n);for(const n of t)WF(e,n);return e}const o=e||t;return o&&o.slice()}function HF(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function WF(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function UF(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function KF(e){return"AbbreviationNode"===e.type}function GF(e,t,n){let o=[];for(const n of e.children){const e=t(n);if(e){o=o.concat(e.children);const i=UF(e);KF(i.node)&&(i.node.children=i.node.children.concat(GF(n,t)))}else o.push(n),n.children=GF(n,t)}return e.children=o}function ZF(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function JF(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function YF(e,t){rR(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function QF(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,o=n.length-1;t<=o;t++)YF(e,n[t]),t!==o&&XF(e,!0)}function XF(e,t){const n=e.options["output.baseIndent"];YF(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];YF(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function eR(e,t,n){rR(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function tR(e,t){return aR(e,t.options["output.attributeCase"])}function nR(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function oR(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function iR(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?iR(e.name,t):Boolean(e.value&&!e.attributes)}function rR(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function aR(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const sR={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function lR(e,t,n){const o=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(KF(n))return n}}(t),i=n.context?n.context.name:"",r=((o?o.name:i)||"").toLowerCase();e.name=sR[r]||(iR(r,n)?"span":"div")}const cR={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},uR=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function dR(e,t){return Math.floor(Math.random()*(t-e)+e)}function fR(e,t){const n=e.length,o=Math.min(n,t),i=[];for(;i.length<o;){const t=e[dR(0,n)];i.includes(t)||i.push(t)}return i}function pR(e,t){var n,o;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(o="?!...")[dR(0,o.length-1)])}function hR(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let o=0;o=t>3&&t<=6?dR(0,1):t>6&&t<=12?dR(0,2):dR(1,4);for(let i,r=0;r<o;r++)i=dR(0,t-2),n.test(e[i])||(e[i]+=",");return e}function mR(e,t,n){const o=[];let i,r=0;for(n&&e.common&&(i=e.common.slice(0,t),r+=i.length,o.push(pR(hR(i),".")));r<t;)i=fR(e.words,Math.min(dR(2,30),t-r)),r+=i.length,o.push(pR(hR(i)));return o.join(" ")}function gR(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function vR(e){return"select"!==e.name}const bR=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,yR=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,wR=e=>/^[a-z]\-/i.test(e),kR=e=>/^[a-z]/i.test(e);function xR(e,t,n){!function(e){const t=CR(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(MR),t.block=TR(t.classNames),ER(e,t.classNames.join(" ")))}(e),function(e,t,n){const o=CR(e),i=[],{options:r}=n,a=t.slice(1).concat(e);for(let e of o.classNames){let t,o="";const s=e;(t=e.match(bR))&&(o=SR(a,t[1].length,n.context)+r["bem.element"]+t[2],i.push(o),e=e.slice(t[0].length)),(t=e.match(yR))&&(o||(o=SR(a,t[1].length),i.push(o)),i.push(`${o}${r["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&i.push(s)}const s=i.filter(MR);s.length&&ER(e,s.join(" "))}(e,t,n)}function CR(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=IR(n.value);break}e._bem=_R(t)}return e._bem}function _R(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:TR(t)}}function SR(e,t=0,n){let o=Math.max(e.length-t,0);do{const t=e[o];if(t){const e=CR(t);if(e.block)return e.block}}while(0<o--);if(n){const e=function(e){return e._bem||(e._bem=_R(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function TR(e){return $R(e,wR)||$R(e,kR)||void 0}function $R(e,t){for(const n of e){if(bR.test(n)||yR.test(n))break;if(t(n))return n}}function ER(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function IR(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function MR(e,t,n){return!!e&&n.indexOf(e)===t}function AR(e,t,n){const o=(e,o,r)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,o,r,n,i),n.current=s,n.parent=a},i=(e,t,i)=>{n.ancestors.push(n.current),o(e,t,i),n.ancestors.pop()};e.children.forEach(o)}function OR(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:JF(e.options)}}const LR=[{type:"Field",index:0,name:""}];function DR(e){return!!e&&(!e.name&&!e.attributes)}function NR(e,t){return!!e&&iR(e,t)}function jR(e){return"object"==typeof e&&"Field"===e.type}function VR(e,t){const{out:n}=t;let o=-1;for(const i of e)"string"==typeof i?QF(n,i):(eR(n,t.field+i.index,i.name),i.index>o&&(o=i.index));-1!==o&&(t.field+=o+1)}function FR(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function RR(e){const t=[],n={pos:0,text:e};let o,i=n.pos,r=n.pos;for(;n.pos<n.text.length;)r=n.pos,(o=qR(n))?(i!==n.pos&&t.push(e.slice(i,r)),t.push(o),i=n.pos):n.pos++;return i!==n.pos&&t.push(e.slice(i)),t}function qR(e){if(91===BR(e)){const t=++e.pos;let n=t,o=t,i=1;for(;e.pos<e.text.length;){const r=BR(e);if(zR(r)){for(n=e.pos;HR(BR(e));)e.pos++;o=e.pos}else{if(91===r)i++;else if(93===r&&0==--i)return{before:e.text.slice(t,n),after:e.text.slice(o,e.pos++),name:e.text.slice(n,o)};e.pos++}}}}function BR(e,t=e.pos){return e.text.charCodeAt(t)}function zR(e){return e>=65&&e<=90}function HR(e){return zR(e)||e>47&&e<58||95===e||45===e}function WR(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function UR(e,t,n){const o={},{out:i}=n;for(const t of e.attributes)t.name&&t.value&&(o[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?QF(i,e):o[e.name]&&(QF(i,e.before),VR(o[e.name],n),QF(i,e.after))}const KR=/^<([\w\-:]+)[\s>]/;function GR(e,t){const n=OR(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?RR(t["comment.before"]):void 0,after:t["comment.after"]?RR(t["comment.after"]):void 0}}(t),AR(e,ZR,n),n.out.value}function ZR(e,t,n,o,i){const{out:r,config:a}=o,s=QR(e,t,n,o),l=function(e){const{config:t,parent:n}=e;if(!n||DR(n)||n.name&&t.options["output.formatSkip"].includes(n.name))return 0;return 1}(o);if(r.level+=l,s&&XF(r,!0),e.name){const t=function(e,t){return aR(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){WR(e,t)&&t.comment.before&&UR(e,t.comment.before,t)}(e,o),QF(r,`<${t}`),e.attributes)for(const t of e.attributes)FR(t)&&JR(t,o);if(!e.selfClosing||e.children.length||e.value){if(QF(r,">"),!YR(e,o,i)){if(e.value){const t=e.value.some(XR)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=KR.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&XF(o.out,++r.level),VR(e.value,o),t&&XF(o.out,--r.level)}if(e.children.forEach(i),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&XF(o.out,++r.level),VR(LR,o),t&&XF(o.out,--r.level)}}QF(r,`</${t}>`),function(e,t){WR(e,t)&&t.comment.after&&UR(e,t.comment.after,t)}(e,o)}else QF(r,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!YR(e,o,i)&&e.value&&(VR(e.value,o),e.children.forEach(i));if(s&&t===n.length-1&&o.parent){const e=DR(o.parent)?0:1;XF(r,r.level-e)}r.level-=l}function JR(e,t){const{out:n,config:o}=t;if(e.name){const i=tR(e.name,o),r=nR(e,o,!0),a=nR(e,o);let s=e.value;oR(e,o)&&!s?o.options["output.compactBoolean"]||(s=[i]):s||(s=LR),QF(n," "+i),s?(QF(n,"="+r),VR(s,t),QF(n,a)):"html"!==o.options["output.selfClosingStyle"]&&QF(n,"="+r+a)}}function YR(e,t,n){if(e.value&&e.children.length){const o=e.value.findIndex(jR);if(-1!==o){VR(e.value.slice(0,o),t);const i=t.out.line;let r=o+1;return e.children.forEach(n),t.out.line!==i&&"string"==typeof e.value[r]&&QF(t.out,e.value[r++].trimLeft()),VR(e.value.slice(r),t),!0}}return!1}function QR(e,t,n,o){const{config:i,parent:r}=o;if(!i.options["output.format"])return!1;if(0===t&&!r)return!1;if(r&&DR(r)&&1===n.length)return!1;if(DR(e)){if(DR(n[t-1])||DR(n[t+1])||e.value.some(XR)||e.value.some(jR)&&e.children.length)return!0}if(iR(e,i)){if(0===t){for(let e=0;e<n.length;e++)if(!iR(n[e],i))return!0}else if(!iR(n[t-1],i))return!0;if(i.options["output.inlineBreak"]){let e=1,o=t,r=t;for(;NR(n[--o],i);)e++;for(;NR(n[++r],i);)e++;if(e>=i.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(QR(e.children[t],t,e.children,o))return!0;return!1}return!0}function XR(e){return"string"==typeof e&&/\r|\n/.test(e)}function eq(e,t,n){const o=OR(t);return o.options=n||{},AR(e,tq,o),o.out.value}function tq(e,t,n,o,i){const{out:r,options:a}=o,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const o of e.attributes)nq(o)?t.push(o):n.push(o);return{primary:t,secondary:n}}(e),c=o.parent?1:0;r.level+=c,function(e,t,n,o){if(!o.parent&&0===t)return!1;return!DR(e)}(e,t,0,o)&&XF(r,!0),!e.name||"div"===e.name&&s.length||QF(r,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)if(n.value)if("class"===n.name){QF(t.out,".");VR(n.value.map((e=>"string"==typeof e?e.replace(/\s+/g,"."):e)),t)}else QF(t.out,"#"),VR(n.value,t)}(s,o),function(e,t){if(e.length){const{out:n,config:o,options:i}=t;i.beforeAttribute&&QF(n,i.beforeAttribute);for(let r=0;r<e.length;r++){const a=e[r];QF(n,tR(a.name||"",o)),oR(a,o)&&!a.value?!o.options["output.compactBoolean"]&&i.booleanValue&&QF(n,"="+i.booleanValue):(QF(n,"="+nR(a,o,!0)),VR(a.value||LR,t),QF(n,nR(a,o))),r!==e.length-1&&i.glueAttribute&&QF(n,i.glueAttribute)}i.afterAttribute&&QF(n,i.afterAttribute)}}(l.filter(FR),o),!e.selfClosing||e.value||e.children.length?(!function(e,t){if(!e.value&&e.children.length)return;const n=e.value||LR,o=function(e){const t=[];let n=[];for(const o of e)if("string"==typeof o){const e=o.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(o);return n.length&&t.push(n),t}(n),{out:i,options:r}=t;if(1===o.length)(e.name||e.attributes)&&YF(i," "),VR(n,t);else{const e=[];let n=0;for(const t of o){const o=oq(t);e.push(o),o>n&&(n=o)}i.level++;for(let a=0;a<o.length;a++)XF(i,!0),r.beforeTextLine&&YF(i,r.beforeTextLine),VR(o[a],t),r.afterTextLine&&(YF(i," ".repeat(n-e[a])),YF(i,r.afterTextLine));i.level--}}(e,o),e.children.forEach(i)):o.options.selfClose&&QF(r,o.options.selfClose),r.level-=c}function nq(e){return"class"===e.name||"id"===e.name}function oq(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const iq={html:GR,haml:function(e,t){return eq(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return eq(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return eq(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function rq(e,t){let n;if("string"==typeof e){let o=t;t.options["jsx.enabled"]&&(o=Object.assign(Object.assign({},o),{jsx:!0})),t.options["markup.href"]&&(o=Object.assign(Object.assign({},o),{href:!0})),e=PO(e,o),n=t.text,t.text=void 0}return e=function(e,t){const n=[],o=t.options["output.reverseAttributes"],i=e=>{const r=e.name&&t.snippets[e.name];if(!r||n.includes(r))return null;const a=PO(r,t);n.push(r),GF(a,i),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],i=e.attributes||[];t.attributes=o?i.concat(n):n.concat(i)}ZF(e,t)}return a};return GF(e,i),e}(e,t),function(e,t,n){const o=[e],i=e=>{t(e,o,n),o.push(e),e.children.forEach(i),o.pop()};e.children.forEach(i)}(e,aq,t),t.text=null!=n?n:t.text,e}function aq(e,t,n){!function(e,t,n){!e.name&&e.attributes&&lR(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],o={};for(const i of e.attributes)if(i.name){const e=i.name;if(e in o){const n=o[e];"class"===e?n.value=zF(n.value,i.value," "):HF(n,i,t)}else n.push(o[e]=Object.assign({},i))}else n.push(i);e.attributes=n}(e,n),function(e,t,n){let o;if(e.name&&(o=e.name.match(uR))){const i=cR[o[1]]||cR.latin,r=o[2]?Math.max(1,Number(o[2])):30,a=dR(r,o[3]?Math.max(r,Number(o[3].slice(1))):r),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[mR(i,a,!s||0===s.value)],e.repeat&&t.length>1&&lR(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(vR))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(gR)}(e),n.options["bem.enabled"]&&xR(e,t,n)}const sq=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,lq={value:!0};function cq(e,t){const n=t.match(sq);if(n){const t={},o=n[2]?n[2].split("|").map(dq):[];for(const e of o)for(const n of e)pq(n,t);return{type:"Property",key:e,property:n[1],value:o,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function uq(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function dq(e){return fP(e.trim(),lq)[0].value}function fq(e){return"Property"===e.type}function pq(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function hq(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const o=e.length,i=t.length;if(!n&&o>i)return 0;const r=Math.min(o,i),a=Math.max(o,i);let s=1,l=1,c=a,u=0,d=0,f=!1,p=!1;for(;s<o;){for(u=e.charCodeAt(s),f=!1,p=!1;l<i;){if(d=t.charCodeAt(l),u===d){f=!0,c+=a-(p?s:l);break}p=45===d,l++}if(!f){if(!n)return 0;break}s++}const h=a-r;return c*(s/a)/(mq(a)-mq(h))}function mq(e){return e*(e+1)/2}function gq(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&bq(e.r)&&bq(e.g)&&bq(e.b)?yq:wq;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];1!==e.a&&t.push(vq(e.a,8));return`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function vq(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function bq(e){return!(e%17)}function yq(e){return(e>>4).toString(16)}function wq(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}function kq(e,t,n){const o=n.options["stylesheet.json"];if(e.name){QF(t,(o?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const o=n.options["stylesheet.json"],i=o?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!i||i.unit&&"px"!==i.unit){const i=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);o&&YF(t,i);for(let o=0;o<e.value.length;o++)0!==o&&YF(t,", "),Cq(e.value[o],t,n);o&&YF(t,i)}else YF(t,String(i.value))}(e,t,n):eR(t,0,""),o?YF(t,","):(xq(e,t,!0),YF(t,n.options["stylesheet.after"]))}else{for(const o of e.value)for(const e of o.value)_q(e,t,n);xq(e,t,e.value.length>0)}}function xq(e,t,n){e.important&&(n&&YF(t," "),YF(t,"!important"))}function Cq(e,t,n){for(let o=0,i=-1;o<e.value.length;o++){const r=e.value[o];0===o||"Field"===r.type&&r.start===i||YF(t," "),_q(r,t,n),i=r.end}}function _q(e,t,n){if("ColorValue"===e.type)YF(t,gq(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)QF(t,e.value);else if("NumberValue"===e.type)QF(t,vq(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";QF(t,n+e.value+n)}else if("Field"===e.type)eR(t,e.index,e.name);else if("FunctionCall"===e.type){YF(t,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&YF(t,", "),Cq(e.arguments[o],t,n);YF(t,")")}}const Sq="lg";function Tq(e,t){var n;const o=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(cq(n,e[n]));return function(e){e=e.slice().sort(uq);const t=[];let n;for(const o of e.filter(fq)){for(;t.length;){if(n=t[t.length-1],o.property.startsWith(n.property)&&45===o.property.charCodeAt(n.property.length)){n.dependencies.push(o),t.push(o);break}t.pop()}t.length||t.push(o)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=o),"string"==typeof e&&(e=fP(e,{value:jq(t)}));const i=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter((e=>"Raw"===e.type));if("@@property"===t.context.name)return e.filter((e=>"Property"===e.type))}return e}(o,t);for(const n of e)$q(n,i,t);return e}function $q(e,t,n){if(!function(e,t){let n=null;const o=1===e.value.length?e.value[0]:null;if(o&&1===o.value.length){const e=o.value[0];"FunctionCall"===e.type&&e.name===Sq&&(n=e)}if(n||e.name===Sq)return n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Oq(Lq(0,""))]},t.context||(e.name="background-image"),e.value=[Oq(n)],!0;return!1}(e,n)){const o=n.options["stylesheet.fuzzySearchMinScore"];if(jq(n)){const i=n.context.name,r=t.find((e=>"Property"===e.type&&e.property===i));Eq(e,n,r,o),e.snippet=r}else if(e.name){const i=Iq(e.name,t,o,!0);e.snippet=i,i&&("Property"===i.type?function(e,t,n){const o=e.name,i=function(e,t){for(let n=0,o=0;n<e.length;n++){if(o=t.indexOf(e[n],o),-1===o)return e.slice(n);o++}return""}(o,t.key);if(i){if(e.value.length)return e;const o=Aq(i,n,t);if(!o)return e;e.value.push(Oq(o))}if(e.name=t.property,e.value.length)Eq(e,n,t);else if(t.value.length){const o=t.value[0];e.value=1===t.value.length||o.some(Dq)?o:o.map((e=>Nq(e,n)))}}(e,i,n):function(e,t){let n,o=0;const i=/\$\{(\d+)(:[^}]+)?\}/g,r=e.value[0],a=[];for(;n=i.exec(t.value);)o!==n.index&&a.push(Pq(t.value.slice(o,n.index))),o=n.index+n[0].length,r&&r.value.length?a.push(r.value.shift()):a.push(Lq(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(o);s&&a.push(Pq(s));e.name=void 0,e.value=[Oq(...a)]}(e,i))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],o=t.options["stylesheet.unitless"];for(const i of e.value)for(const r of i.value)"NumberValue"===r.type&&(r.unit?r.unit=n[r.unit]||r.unit:0===r.value||o.includes(e.name)||(r.unit=r.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Eq(e,t,n,o){for(const i of e.value){const e=[];for(const r of i.value)if("Literal"===r.type)e.push(Aq(r.value,t,n,o)||r);else if("FunctionCall"===r.type){const i=Aq(r.name,t,n,o);i&&"FunctionCall"===i.type?e.push(Object.assign(Object.assign({},i),{arguments:r.arguments.concat(i.arguments.slice(r.arguments.length))})):e.push(r)}else e.push(r);i.value=e}}function Iq(e,t,n=0,o=!1){let i=null,r=0;for(const n of t){const t=hq(e,Mq(n),o);if(1===t)return n;t&&t>=r&&(r=t,i=n)}return r>=n?i:null}function Mq(e){return"string"==typeof e?e:e.key}function Aq(e,t,n,o){let i;if(n){if(i=Iq(e,Object.keys(n.keywords),o))return n.keywords[i];for(const t of n.dependencies)if(i=Iq(e,Object.keys(t.keywords),o))return t.keywords[i]}return(i=Iq(e,t.options["stylesheet.keywords"],o))?Pq(i):null}function Oq(...e){return{type:"CSSValue",value:e}}function Pq(e){return{type:"Literal",value:e}}function Lq(e,t){return{type:"Field",index:e,name:t}}function Dq(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(Dq))return!0;return!1}function Nq(e,t,n={index:1}){let o=[];for(const i of e.value)switch(i.type){case"ColorValue":o.push(Lq(n.index++,gq(i,t.options["stylesheet.shortHex"])));break;case"Literal":o.push(Lq(n.index++,i.value));break;case"NumberValue":o.push(Lq(n.index++,`${i.value}${i.unit}`));break;case"StringValue":const e="single"===i.quote?"'":'"';o.push(Lq(n.index++,e+i.value+e));break;case"FunctionCall":o.push(Lq(n.index++,i.name),Pq("("));for(let e=0,r=i.arguments.length;e<r;e++)o=o.concat(Nq(i.arguments[e],t,n).value),e!==r-1&&o.push(Pq(", "));o.push(Pq(")"));break;default:o.push(i)}return Object.assign(Object.assign({},e),{value:o})}function jq(e){return!!e.context&&("@@value"===e.context.name||!e.context.name.startsWith("@@"))}const Vq={markup:"html",stylesheet:"css"},Fq={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},Rq={markup:{snippets:qq({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:qq({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:qq({"!!!":"{doctype html}"})},stylesheet:{snippets:qq({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function qq(e){const t={};return Object.keys(e).forEach((n=>{for(const o of n.split("|"))t[o]=e[n]})),t}function Bq(e={},t={}){const n=e.type||"markup",o=e.syntax||Vq[n];return Object.assign(Object.assign(Object.assign({},Fq),e),{type:n,syntax:o,variables:zq(n,o,"variables",e,t),snippets:zq(n,o,"snippets",e,t),options:zq(n,o,"options",e,t)})}function zq(e,t,n,o,i={}){const r=Rq[e],a=i[e],s=Rq[t],l=i[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fq[n]),r&&r[n]),s&&s[n]),a&&a[n]),l&&l[n]),o[n])}function Hq(e,t=0){return{text:e,start:t,pos:e.length}}function Wq(e){return e.pos===e.start}function Uq(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function Kq(e){if(!Wq(e))return e.text.charCodeAt(--e.pos)}function Gq(e,t){if(Wq(e))return!1;const n="function"==typeof t?t(Uq(e)):t===Uq(e);return n&&e.pos--,!!n}function Zq(e,t){const n=e.pos;for(;Gq(e,t););return e.pos<n}function Jq(e){return 39===e||34===e}const Yq={91:93,40:41,123:125};function Qq(e){const t=e.pos;if(!Gq(e,62))return!1;let n=!1;for(Gq(e,47);!Wq(e);){if(Zq(e,oB),tB(e)){if(Gq(e,47)){n=Gq(e,60);break}if(Gq(e,60)){n=!0;break}if(Gq(e,oB))continue;if(Gq(e,61)){if(tB(e))continue;break}if(eB(e)){n=!0;break}break}if(!Xq(e))break}return e.pos=t,n}function Xq(e){return function(e){const t=e.pos;if(function(e){const t=e.pos,n=Kq(e);if(Jq(n))for(;!Wq(e);)if(Kq(e)===n&&92!==Uq(e))return!0;return e.pos=t,!1}(e)&&Gq(e,61)&&tB(e))return!0;return e.pos=t,!1}(e)||eB(e)}function eB(e){const t=e.pos,n=[];for(;!Wq(e);){const t=Uq(e);if(aB(t))n.push(t);else if(rB(t)){if(n.pop()!==Yq[t])break}else if(!iB(t))break;e.pos--}return!(t===e.pos||!Gq(e,61)||!tB(e))||(e.pos=t,!1)}function tB(e){return Zq(e,nB)}function nB(e){return 58===e||45===e||function(e){return e&=-33,e>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function oB(e){return 32===e||9===e}function iB(e){return!isNaN(e)&&61!==e&&!oB(e)&&!Jq(e)}function rB(e){return 123===e||40===e||91===e}function aB(e){return 125===e||41===e||93===e}const sB=e=>e.charCodeAt(0),lB="#.*:$-_!@%^+>/".split("").map(sB),cB={type:"markup",lookAhead:!0,prefix:""};function uB(e,t=e.length,n={}){const o=Object.assign(Object.assign({},cB),n);let i;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),o.lookAhead&&(t=function(e,t,n){Jq(e.charCodeAt(t))&&t++;for(;mB(e.charCodeAt(t),n.type);)t++;return t}(e,t,o));const r=function(e,t,n){if(!n)return 0;const o=Hq(e),i=n.split("").map(sB);let r;o.pos=t;for(;!Wq(o);)if(!dB(o,93,91)&&!dB(o,125,123)){if(r=o.pos,fB(o,i))return r;o.pos--}return-1}(e,t,o.prefix||"");if(-1===r)return;const a=Hq(e,r);a.pos=t;const s=[];for(;!Wq(a);){if(i=Uq(a),s.includes(125)){if(125===i){s.push(i),a.pos--;continue}if(123!==i){a.pos--;continue}}if(mB(i,o.type))s.push(i);else if(hB(i,o.type)){if(s.pop()!==Yq[i])break}else{if(s.includes(93)||s.includes(125)){a.pos--;continue}if(Qq(a)||!pB(i))break}a.pos--}if(!s.length&&a.pos!==t){const o=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:o,location:t-o.length,start:n.prefix?r-n.prefix.length:t-o.length,end:t}}}function dB(e,t,n){const o=e.pos;if(Gq(e,t))for(;!Wq(e);){if(Gq(e,n))return!0;e.pos--}return e.pos=o,!1}function fB(e,t){const n=e.pos;let o=!1;for(let n=t.length-1;n>=0&&!Wq(e)&&Gq(e,t[n]);n--)o=0===n;return o||(e.pos=n),o}function pB(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||lB.includes(e)}function hB(e,t){return 40===e||"markup"===t&&(91===e||123===e)}function mB(e,t){return 41===e||"markup"===t&&(93===e||125===e)}function gB(e,t){const n=Bq(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const o=JF(t.options),i=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter((e=>e.snippet)));for(let n=0;n<e.length;n++)i&&0!==n&&XF(o,!0),kq(e[n],o,t);return o.value}(Tq(e,t),t)}(e,n):function(e,t){return function(e,t){return(iq[t.syntax]||GR)(e,t)}(rq(e,t),t)}(e,n)}function vB(e,t){const n=new xA(e),o={start:-1,end:-1,propertyStart:-1,propertyEnd:-1,propertyDelimiter:-1,expression:0};let i;const r=(e,i=n.start,r=o.start,a=o.end)=>!1===t(e,r,a,i);for(;!n.eof();)if(!yB(n)&&!bB(n))if(n.start=n.pos,(i=n.eat(125))||n.eat(59)){if(-1!==o.propertyStart){if(r("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd))return;if(-1===o.start&&(o.start=o.end=n.start),r("propertyValue"))return}else if(-1!==o.start&&r("propertyName"))return;if(i&&(o.start=n.start,o.end=n.pos,r("blockEnd")))return;kB(o)}else if(n.eat(123)){if(-1===o.start&&-1===o.propertyStart&&(o.start=o.end=n.pos),-1!==o.propertyStart&&(o.start=o.propertyStart),r("selector"))return;kB(o)}else n.eat(58)&&!xB(n,o)?(-1===o.propertyStart&&(o.propertyStart=o.start),o.propertyEnd=o.end,o.propertyDelimiter=n.pos-1,o.start=o.end=-1):(-1===o.start&&(o.start=n.pos),n.eat(40)?o.expression++:n.eat(41)?o.expression--:wB(n)||n.pos++,o.end=n.pos);-1!==o.propertyStart&&r("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd)||-1!==o.start&&r(-1!==o.propertyStart?"propertyValue":"propertyName",-1)}function bB(e){return e.eatWhile(bA)}function yB(e){const t=e.pos;if(e.eat(47)&&e.eat(42)){for(e.start=t;!e.eof();)if(e.eat(42)){if(e.eat(47))return!0}else e.pos++;return!0}return e.pos=t,!1}function wB(e){const t=e.peek();if(wA(t)){for(e.start=e.pos++;!e.eof()&&!(e.eat(t)||e.eat(10)||e.eat(13));)e.eat(92),e.pos++;return!0}}function kB(e){e.start=e.end=e.propertyStart=e.propertyEnd=e.propertyDelimiter=-1}function xB(e,t){return t.expression||e.eatWhile(58)}function CB(e,t){const n=[],o=[],i=[];let r=null;const a=(e,t,o)=>{if(n.length){const i=n.pop();return i.start=e,i.end=t,i.delimiter=o,i}return{start:e,end:t,delimiter:o,firstChild:null}},s=e=>{e.firstChild=null,n.push(e)},l=()=>{r&&(s(r),r=null)};return vB(e,((n,c,u,d)=>{if("blockEnd"===n){l();let n=o.pop();if(!n)return;if(n.start<=t&&t<=u){let t=_B(e,n.delimiter+1,c);for($B(i,[n.start,u]),t&&$B(i,t);n.firstChild;){const o=n.firstChild;t=_B(e,o.delimiter+1,o.end-1),$B(i,[o.start,o.end]),t&&$B(i,t),n=o}return!1}{const e=EB(o);e&&!e.firstChild?(n.end=u,e.firstChild=n):s(n)}}else if("propertyName"===n)l(),r=a(c,u,d),((e,t,n)=>{const i=EB(o);i&&!i.firstChild&&(i.firstChild=a(e,t,n))})(c,u,d);else if("propertyValue"===n){if(r){if(r.start<=t&&u>=t)return $B(i,[r.start,d+1]),$B(i,[c,u]),l(),!1;const e=EB(o);e&&e.firstChild&&e.firstChild.start===r.start&&(e.firstChild.end=-1!==d?d+1:u),l()}}else o.push(a(c,u,d)),l()})),o.length=n.length=0,i}function _B(e,t,n){for(;t<n&&bA(e.charCodeAt(t));)t++;for(;n>t&&bA(e.charCodeAt(n-1));)n--;return t!==n?[t,n]:null}function SB(e,t,n,o){if(e.length){const i=e.pop();return i[0]=t,i[1]=n,i[2]=o,i}return[t,n,o]}function TB(e,t){return t&&e.push(t),null}function $B(e,t){const n=e.length?e[e.length-1]:null;n&&n[0]===t[0]&&n[1]===t[1]||t[0]===t[1]||e.push(t)}function EB(e){return e.length?e[e.length-1]:null}const IB=VB("null",0);function MB(e){const t=e.pos;return!(!e.eat(46)||!e.eatWhile(pA))||(!(!e.eatWhile(pA)||e.eat(46)&&!e.eatWhile(pA))||(e.pos=t,!1))}function AB(e,t){return VB("num",parseFloat(e),t)}function OB(e,t=0){return 45===e&&(t+=2),VB("op1",e,t)}function PB(e,t=0){return 42===e?t+=1:47!==e&&92!==e||(t+=2),VB("op2",e,t)}function LB(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function DB(e){return function(e){return 43===e}(e)||NB(e)}function NB(e){return 45===e}function jB(e){return 43===e||45===e||42===e||47===e||92===e}function VB(e,t,n=0){return{type:e,value:t,priority:n}}const FB={lookAhead:!0,whitespace:!0};function RB(e){if(pA(qB(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=qB(e),46===t){if(n)break;n=!0}else if(!pA(t))break;e.pos--}return!0}return!1}function qB(e){return e.text.charCodeAt(e.pos-1)}function BB(e){return e.text.charCodeAt(e.pos)}const zB={45:e=>-e},HB={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)};function WB(e){if(Array.isArray(e)||(e=function(e){const t="string"==typeof e?new xA(e):e;let n,o=0,i=21;const r=[];for(;!t.eof();)t.eatWhile(vA),t.start=t.pos,MB(t)?(0==(1&i)&&LB("Unexpected number",t),r.push(AB(t.current())),i=10):jB(t.peek())?(n=t.next(),DB(n)&&16&i?(NB(n)&&r.push(OB(n,o)),i=21):(0==(2&i)&&LB("Unexpected operator",t),r.push(PB(n,o)),i=21)):t.eat(40)?(0==(4&i)&&LB('Unexpected "("',t),o+=10,i=53):t.eat(41)?(o-=10,32&i?r.push(IB):0==(8&i)&&LB('Unexpected ")"',t),i=14):LB("Unknown character",t);(o<0||o>=10)&&LB('Unmatched "()"',t);const a=function(e){const t=[],n=[];let o=0;for(let i=0;i<e.length;i++){const r=e[i];if("num"===r.type)n.push(r);else{for(o+="op1"===r.type?1:2;t.length&&r.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(r)}}return o+1===n.length+t.length?n.concat(t.reverse()):null}(r);return null===a&&LB("Parity",t),a}(e)),!e||!e.length)return null;const t=[];let n,o,i;for(let r=0,a=e.length;r<a;r++){const a=e[r];if("num"===a.type)t.push(a.value);else if("op2"===a.type)o=t.pop(),n=t.pop(),i=HB[a.value],t.push(i(n,o));else{if("op1"!==a.type)throw new Error("Invalid expression");n=t.pop(),i=zB[a.value],t.push(i(n))}}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}function UB(e,t,n){const o=null!=t?e.posFromIndex(t):e.getCursor(),i=NF(e)||"html",r=hP(e),a={"output.baseIndent":GB(e,o.line),"output.indent":ZB(e),"output.field":KB(),"output.format":!n,"output.attributeQuotes":r.attributeQuotes};return"html"===i&&(a["output.selfClosingStyle"]=r.markupStyle,a["output.compactBoolean"]="html"===r.markupStyle),FF(i)&&(r.comments&&(a["comment.enabled"]=!0,r.commentsTemplate&&(a["comment.after"]=r.commentsTemplate)),a["bem.enabled"]=r.bem,a["stylesheet.shortHex"]=r.shortHex),a}function KB(){let e=-1;return(t,n)=>-1===e||e===t?(e=t,n?CV+n+_V:CV):n||""}function GB(e,t){const n=e.getLine(t).match(/^\s+/);return n?n[0]:""}function ZB(e){return e.getOption("indentWithTabs")?"\t":" ".repeat(e.getOption("indentUnit")||0)}let JB={};function YB(e,t,n){let o={cache:JB};const i={"output.field":KB(),"output.format":!n||!n.inline};n&&(Object.assign(o,n),n.options&&Object.assign(i,n.options)),o.options=i;const r=hP(e);return r.config&&(o=Bq(o,r.config)),gB(t,o)}function QB(e,t,n="markup",o){return uB(e,t,Object.assign({lookAhead:"stylesheet"!==n,type:n},o))}function XB(e,t,n=!1,o=!1){const i={xml:o};return n?function(e,t,n){const o=[],i=[],r=ZV(n),a=[],s=(e,t,n)=>{if(o.length){const i=o.pop();return i.name=e,i.ranges.push(t,n),i}return{name:e,ranges:[t,n]}},l=e=>{e.ranges.length=0,e.firstChild=void 0,o.push(e)};return gF(e,((e,n,o,c)=>{if(2===n){if(!i.length)return;let n=EF(i);if(n.name===e){if(n.ranges[0]<=t&&t<=c){for(a.push({name:e,open:n.ranges.slice(0,2),close:[o,c]});n.firstChild;){const e=n.firstChild,t={name:e.name,open:e.ranges.slice(0,2)};e.ranges.length>2&&(t.close=e.ranges.slice(2,4)),a.push(t),l(n),n=e}return!1}{i.pop();const e=EF(i);e&&!e.firstChild?(n.ranges.push(o,c),e.firstChild=n):l(n)}}}else if(3===n||$F(e,r)){if(o<t&&t<c)return a.push({name:e,open:[o,c]}),!1;const n=EF(i);n&&!n.firstChild&&(n.firstChild=s(e,o,c))}else i.push(s(e,o,c))}),r),i.length=o.length=0,a}(e,t,i):function(e,t,n){const o=[],i=[],r=ZV(n),a=[];return gF(e,((e,n,s,l)=>{if(2===n){const n=EF(i);n&&n.name===e&&(n.start<t&&t<l&&a.push({name:e,open:[n.start,n.end],close:[s,l]}),SF(o,i.pop()))}else 3===n||$F(e,r)?s<t&&t<l&&a.push({name:e,open:[s,l]}):i.push(_F(o,e,s,l))}),r),i.length=o.length=0,a}(e,t,i)}function ez(e,t,n){return n?CB(e,t):function(e,t){const n=[],o=[],i=[];let r=null;return vB(e,((a,s,l,c)=>{if("selector"===a)o.push(SB(n,s,l,c));else if("blockEnd"===a){const r=o.pop();if(r&&r[0]<t&&l>t){const t=_B(e,r[2]+1,s);t&&$B(i,t),$B(i,[r[0],l])}if(r&&TB(n,r),!o.length)return!1}else"propertyName"===a?(r&&TB(n,r),r=SB(n,s,l,c)):"propertyValue"===a&&r&&r[0]<t&&Math.max(c,l)>t&&($B(i,[s,l]),$B(i,[r[0],-1!==c?c+1:l]));"propertyName"!==a&&r&&(TB(n,r),r=null)})),i}(e,t)}function tz(e,t,n,o){return n?uV(e,t,o):sV(e,t,o)}function nz(e,t,n){const o=function(e,t=e.length,n){const o=Object.assign(Object.assign({},FB),n),i={text:e,pos:t};let r;if(o.lookAhead&&41===BB(i)){i.pos++;const t=e.length;for(;i.pos<t&&(r=BB(i),41===r||o.whitespace&&bA(r));)i.pos++}const a=i.pos;let s=0;for(;i.pos>=0;)if(!RB(i)){if(r=qB(i),41===r)s++;else if(40===r){if(!s)break;s--}else if(!(o.whitespace&&bA(r)||DB(r)||jB(r)))break;i.pos--}if(i.pos!==a&&!s){for(;bA(BB(i));)i.pos++;return[i.pos,a]}return null}(e,t,n);if(o)try{const[t,n]=o,i=WB(e.slice(t,n));if(null!==i)return{start:t,end:n,result:i,snippet:i.toFixed(4).replace(/\.?0+$/,"")}}catch(e){console.error(e)}}function oz(e,t,n){const o=AV(e);let i;if(null==n){const t=e.getMode();n=!!t&&VF(t.name)}const r=function(e,t,n){const o=[],i=[],r=ZV(n);let a=null;return gF(e,((n,s,l,c)=>{if(1===s&&$F(n,r)&&(s=3),1===s)i.push(_F(o,n,l,c));else if(3===s){if(l<t&&t<c)return a={name:n,attributes:TF(e,l,c,n),open:[l,c]},!1}else{const r=EF(i);if(r&&r.name===n){if(r.start<t&&t<c)return a={name:n,attributes:TF(e,r.start,r.end,n),open:[r.start,r.end],close:[l,c]},!1;i.length&&SF(o,i.pop())}}}),r),i.length=o.length=0,a}(o,t,{xml:n});if(r){const{open:e,close:t}=r;i={name:r.name,open:e,close:t},r.attributes&&(i.attributes={},r.attributes.forEach((e=>{let t=e.value;t&&NV(t)&&(t=t.slice(1,-1)),i.attributes[e.name]=null==t?null:t})))}return i}function iz(e,t){const n=DF(e,t),{context:o}=n,i={type:n.type,syntax:n.syntax||"html",options:UB(e,t,n.inline)};if(o){const t=AV(e);"html"===o.type&&o.ancestors.length?i.context=function(e,t){const n=HV(t.ancestors);if(n){const t={};for(const o of rF(e.slice(n.range[0],n.range[1]),n.name))t[o.name]=LV(o)||"";return{name:n.name,attributes:t}}}(t,o):"css"===o.type&&(i.context=function(e){if(e.inline)return{name:"@@property"};const t=HV(e.ancestors);let n="@@global";return e.current&&("propertyValue"===e.current.type&&t?n=t.name:"selector"!==e.current.type&&"propertyName"!==e.current.type||t||(n="@@section")),{name:n}}(o))}return i}const rz="emmet-abbreviation",az="emmet-abbreviation-preview";function sz(e,t){return t}const lz=new class{constructor(){this.marker=null,this.preview=null,this.forcedMarker=null}get id(){return UV(this.cm).id}substr(e,t){const n=this.cm.getValue();return void 0===e&&void 0===t?n:n.slice(e||0,t)}replace(e,t,n){this.cm.replaceRange(e,this.cm.posFromIndex(t),this.cm.posFromIndex(n))}syntax(){return NF(this.cm)}size(){return this.cm.getValue().length}config(e){return iz(this.cm,e)}outputOptions(e,t){return UB(this.cm,e,t)}previewConfig(e){return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{"output.field":sz,"output.indent":" ","output.baseIndent":""})})}allowTracking(e){return uz(this.cm,e)}mark(e){const{cm:t}=this;this.disposeMarker();const[n,o]=PV(t,e.range);this.marker=t.markText(n,o,{inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,className:rz}),e.forced&&!this.forcedMarker&&(this.forcedMarker=document.createElement("div"),this.forcedMarker.className=`${rz}-marker`,t.addWidget(n,this.forcedMarker,!1))}unmark(){this.disposeMarker(),this.hidePreview()}showPreview(e){const{cm:t}=this,n=hP(t);if(!BF(n.preview,DF(t,e.range[0])))return;let o,i=!1;if("error"===e.type?(o=zV(e.error),i=!0):!e.forced&&e.simple||(o=e.preview),o){if(!this.preview){const o=document.createElement("div");o.className=az;const i=t.posFromIndex(e.range[0]);n.attachPreview?n.attachPreview(t,o,i):t.addWidget(i,o,!1),this.preview=new this.cm.constructor(o,{mode:t.getOption("mode"),readOnly:"nocursor",lineNumbers:!1});const r=document.createElement("div");r.className=`${az}-error`,o.appendChild(r)}const r=this.preview.getWrapperElement().parentElement;r.classList.toggle("has-error",i),i?r.querySelector(`.${az}-error`).innerHTML=o:this.preview.setValue(o)}else this.hidePreview()}hidePreview(){this.preview&&(this.preview.getWrapperElement().parentElement.remove(),this.preview=null)}isCSS(e){return RF(e)}syntaxType(e){return jF(e)}isHTML(e){return FF(e)}isXML(e){return VF(e)}isJSX(e){return qF(e)}run(e,t){const{cm:n}=this;this.cm=e;const o=t();return this.cm=n,o}disposeMarker(){this.marker&&(this.marker.clear(),this.marker=null),this.forcedMarker&&(this.forcedMarker.remove(),this.forcedMarker=null)}},cz=new class{constructor(){this.cache=new Map,this.trackers=new Map,this.lastPos=new Map}getLastPost(e){return this.lastPos.get(e.id)}setLastPos(e,t){this.lastPos.set(e.id,t)}getTracker(e){return this.trackers.get(e.id)}typingAbbreviation(e,t){var n;const o=e.substr(Math.max(0,t-2),t),i=e.syntax();let r=-1,a=t,s=0;if(e.isJSX(i)?2===o.length&&o[0]===yV&&wV.test(o[1])&&(r=t-2,s=yV.length):kV.test(o)&&(r=t-1),r>=0){const i=o[o.length-1];i in Qj&&e.substr(t,t+1)===Qj[i]&&a++;const l=this.getActivationContext(e,t);if(l){if("stylesheet"===l.type&&!xV.test(o))return;const t=this.startTracking(e,r,a,{offset:s,config:l});if(t&&"abbreviation"===t.type&&"@@section"===(null===(n=l.context)||void 0===n?void 0:n.name)){const{abbreviation:n,preview:o}=t;if(o.startsWith(n)&&/^:\s*;?$/.test(o.slice(n.length)))return void this.stopTracking(e)}return t}}}startTracking(e,t,n,o){const i=(null==o?void 0:o.config)||e.config(t),r=this.createTracker(e,[t,n],Object.assign({config:i},o));if(r)return this.trackers.set(e.id,r),r;this.trackers.delete(e.id)}stopTracking(e,t){const n=this.getTracker(e);n&&(e.unmark(n),n.forced&&!(null==t?void 0:t.skipRemove)&&e.replace("",n.range[0],n.range[1]),(null==t?void 0:t.force)?this.cache.delete(e.id):this.storeTracker(e,n),this.trackers.delete(e.id))}createTracker(e,t,n){if(t[0]>=t[1])return null;let o=e.substr(t[0],t[1]);const{config:i}=n;if(n.offset&&(o=o.slice(n.offset)),!o||/[\r\n]/.test(o))return null;const r={abbreviation:o,range:t,config:i,forced:!!n.forced,offset:n.offset||0,lastPos:t[1],lastLength:e.size()};try{let t,n=!1;"stylesheet"===i.type?t=YD(o):(t=wD(o,{jsx:"jsx"===i.syntax}),n=this.isSimpleMarkupAbbreviation(t));const a=e.previewConfig(i);return Object.assign(Object.assign({},r),{type:"abbreviation",simple:n,preview:Yj(t,a)})}catch(e){return Object.assign(Object.assign({},r),{type:"error",error:e})}}storeTracker(e,t){this.cache.set(e.id,t)}getStoredTracker(e){return this.cache.get(e.id)}restoreTracker(e,t){const n=this.getStoredTracker(e);if(n&&n.range[0]<=t&&n.range[1]>=t){const[t,o]=n.range;if(e.substr(t+n.offset,o)===n.abbreviation)return this.trackers.set(e.id,n),n.lastLength=e.size(),n}}handleChange(e,t){const n=this.getTracker(e),o=this.getLastPost(e);if(this.setLastPos(e,t),!n)return null!=o&&o===t-1&&e.allowTracking(t)?this.typingAbbreviation(e,t):void 0;const{lastPos:i}=n;let{range:r}=n;if(i<r[0]||i>r[1])return void this.stopTracking(e);const a=e.size()-n.lastLength;if(r=r.slice(),function(e,t,n){t<0?n===e[0]?(e[0]+=t,e[1]+=t):e[0]<n&&n<=e[1]&&(e[1]+=t):t>0&&e[0]<=n&&n<=e[1]&&(e[1]+=t)}(r,a,i),r[0]===r[1]&&n.forced)return n.abbreviation="",n;const s=this.createTracker(e,r,n);if(s&&(n.forced||function(e,t,n){if("error"===e.type){if(t[1]===n)return!1;const{abbreviation:o}=e,i=t[0];let r=t[1];for(;r>i&&Xj.includes(o[r-i-1]);)r--;return r!==n}return!0}(s,r,t)))return s.lastPos=t,this.trackers.set(e.id,s),e.mark(s),s;this.stopTracking(e)}handleSelectionChange(e,t){this.setLastPos(e,t);const n=this.getTracker(e)||this.restoreTracker(e,t);if(n)return n.lastPos=t,n}getActivationContext(e,t){const n=e.syntax(),o=e.substr();if(e.isCSS(n))return this.getCSSActivationContext(e,t,n,fV(o,t));if(!e.isHTML(n))return{syntax:n,type:e.syntaxType(n),options:e.outputOptions(t)};{const i=dV(o,t,{xml:e.isXML(n)});if(i.css)return this.getCSSActivationContext(e,t,function(e,t){const n=rV(t.ancestors);if(n&&"style"===n.name)for(const t of VP(e.slice(n.range[0],n.range[1]),n.name))if("type"===t.name)return iV(t)}(o,i)||"css",i.css);if(!i.current)return{syntax:n,type:"markup",context:pV(o,i),options:e.outputOptions(t)}}}getCSSActivationContext(e,t,n,o){if(!o.current)return;return"propertyName"===o.current.type||"propertyValue"===o.current.type||this.isTypingBeforeSelector(e,t,o)?{syntax:n,type:"stylesheet",context:hV(o),options:e.outputOptions(t,o.inline)}:void 0}isTypingBeforeSelector(e,t,{current:n}){if(n&&"selector"===n.type&&n.range[0]===t-1){return 1===e.substr(n.range[0],n.range[1]).split(/[\n\r]/)[0].trim().length}return!1}isSimpleMarkupAbbreviation(e){if(1===e.children.length&&!e.children[0].children.length){const t=e.children[0];return!t.name||/^[a-z]/i.test(t.name)}return!e.children.length}disposeEditor(e){this.cache.delete(e.id),this.trackers.delete(e.id),this.lastPos.delete(e.id)}};function uz(e,t){if(dz(e,t)){const n=function(e,t){const n=e.posFromIndex(t),o=e.getModeAt(n);return o&&"xml"===o.name?o.configuration||o.name:o&&o.name}(e,t);return!!n&&(function(e){return!!e&&(PF.includes(e)||LF.includes(e))}(n)||qF(n))}return!1}function dz(e,t){return BF(hP(e).mark,DF(e,t))}function fz(e,t,n){return lz.run(e,(()=>{const e=lz.syntax(),o=lz.isJSX(e)?yV:"",i=cz.getActivationContext(lz,t),r=QB(lz.substr(),t,jF(null==i?void 0:i.syntax),{prefix:o});if(r){const e=cz.startTracking(lz,r.start,r.end,{offset:o.length,config:i});if(e){if("error"===e.type&&n)return void cz.stopTracking(lz,{force:!0});lz.showPreview(e)}return e}}))}function pz(e){return lz.run(e,(()=>cz.getTracker(lz)))}function hz(e,t){return lz.run(e,(()=>cz.stopTracking(lz,t)))}function mz(e,t){return t>=e.range[0]&&t<=e.range[1]}const gz="emmet-open-tag",vz="emmet-close-tag";function bz(e){let t,n=null,o=null;function i(e,t,n){o&&o.dataset.pos===String(t)||(r(),o=function(e,t,n){const o=document.createElement("div");return o.className="emmet-tag-preview",o.innerText=n,o.dataset.pos=String(t),e.addWidget(e.posFromIndex(t),o,!1),o}(e,t,n))}function r(){o&&(o.remove(),o=null)}const a=e=>{n||(n=aV(e.getValue()));const o=MV(e);let a=function(e,t,n){let o;return"string"==typeof e&&(e=aV(e,n)),e.some((e=>{const n=e.open[0],i=e.close?e.close[1]:e.open[1];if(t<n)return!0;t>n&&t<i&&(o=e)})),o}(n,o);if(a){a.preview||(a.preview=function(e,t){let n="",o="";const i=[];rF(OV(e,t.open),t.name).forEach((e=>{"class"===e.name&&e.value?n="."+Cz(e.value).replace(/\s+/g,"."):"id"===e.name&&e.value?o="#"+Cz(e.value):i.push(e.value?`${e.name}=${e.value}`:e.name)}));const r=i.length?`[${i.join(" ")}]`:"",a=o+n+r;return a?t.name+a:""}(e,a)),!function(e,t,n){return t.close&&t.preview&&hP(e).previewOpenTag&&n>t.close[0]&&n<t.close[1]}(e,a,o)?r():i(e,a.close[1],a.preview);const t=a.name.length;a=Object.assign(Object.assign({},a),{open:[a.open[0]+1,a.open[0]+1+t]}),a.close&&(a.close=[a.close[0]+2,a.close[0]+2+t])}!a||t&&RV(t.open,a.open)?!a&&t&&yz(e):(yz(e),function(e,{open:t,close:n,preview:o}){kz(e,e.posFromIndex(t[0]),e.posFromIndex(t[1]),gz),n&&kz(e,e.posFromIndex(n[0]),e.posFromIndex(n[1]),vz)}(e,a)),t=a},s=e=>{if(n=null,hP(e).autoRenameTags){const{open:n,close:o}=wz(e);if(n&&o){const i=e.getCursor(),r=n.find(),a=o.find();let s=!1;Tz(e,r)||Tz(e,a)?s=!0:function(e,t,n){const o=e.getRange(t.from,t.to),i=e.getRange(n.from,n.to);return o!==i}(e,r,a)&&(_z(r,i)?s=xz(e,r,a):_z(a,i)&&(s=xz(e,a,r))),s&&(yz(e),t=null)}}};return e.on("cursorActivity",a),e.on("change",s),()=>{yz(e),r(),e.off("cursorActivity",a),e.off("cursorActivity",s),n=t=null}}function yz(e){const{open:t,close:n}=wz(e);t&&t.clear(),n&&n.clear()}function wz(e){let t,n;return e.getAllMarks().forEach((e=>{e.className===gz?t=e:e.className===vz&&(n=e)})),{open:t,close:n}}function kz(e,t,n,o,i){return e.markText(t,n,{className:o,inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,attributes:i})}function xz(e,t,n){const o=e.getRange(t.from,t.to),i=o.match(/[\w:.-]+/),r=i?i[0]:"";return e.getRange(n.from,n.to)!==r&&e.replaceRange(r,n.from,n.to),o!==r}function Cz(e){return NV(e)?e.slice(1,-1):e}function _z(e,t,n){return n?Sz(t,e.from)>0&&Sz(t,e.to)<0:Sz(t,e.from)>=0&&Sz(t,e.to)<=0}function Sz(e,t){return e.line-t.line||e.ch-t.ch}function Tz(e,t){return""===e.getRange(t.from,t.to)}function $z(e,t){const n=new Error(e);return n.ch=t.pos,n}function Ez(e,t,n="Unexpected character"){return t.parseError=$z(n.replace(/\s+at\s+\d+$/,""),e),e.skipToEnd(),"invalidchar"}function Iz(e){return e[e.length-1]}function Mz(){return{startState(){return{attribute:0,expression:0,group:0,quote:0,braces:[],tokens:[],scanner:new xA("")}},token(e,t){const{scanner:n}=t;n.string=e.string,n.pos=e.pos,n.start=e.start,n.end=e.string.length;const o=n.peek(),i=sO(n,t);if(!i)return Ez(e,t);if(e.pos=n.pos,"Quote"===i.type)t.quote=o===t.quote?0:o;else if("Bracket"===i.type)if(i.open)t[i.context]++,t.braces.push(i);else{t[i.context]--;const e=Iz(t.braces);e&&e.context===i.context&&t.braces.pop()}if(e.eol()&&t.braces.length&&!t.parseError){const n=Iz(t.braces).start;return t.parseError=$z(`No closing brace at ${n}`,e),null}const r=function(e,t){const n=Iz(t.tokens);switch(e.type){case"Bracket":return"bracket";case"Field":return"variable-2";case"Literal":if(t.attribute)return n&&"Operator"===n.type&&"equal"===n.operator?"string-2":t.quote?"string":"attribute";if(t.quote)return"string";if(n&&"Operator"===n.type){if("class"===n.operator)return"variable-2";if("id"===n.operator)return"variable-3"}return"tag";case"Operator":return"class"===e.operator?"variable-2":"id"===e.operator?"variable-3":`operator ${e.operator}`;case"Repeater":case"RepeaterPlaceholder":return"meta";case"Quote":return"string";case"RepeaterNumber":return"number"}return""}(i,t);return t.tokens.push(i),r}}}function Az(){return{startState(){return{brackets:0,tokens:[],scanner:new xA("")}},token(e,t){const{scanner:n}=t;n.string=e.string,n.pos=e.pos,n.start=e.start,n.end=e.string.length;const o=DO(n,0===t.brackets);if(!o)return Ez(e,t);if("Bracket"===o.type&&(t.brackets+=o.open?1:-1,t.brackets<0))return Ez(e,t,"Unexpected bracket");e.pos=n.pos;const i=function(e,t){switch(e.type){case"Bracket":return"bracket";case"Field":return"variable-2";case"Literal":return"tag";case"Operator":return`operator ${e.operator}`;case"ColorValue":return"variable-3";case"NumberValue":return"number";case"StringValue":return"string"}return null}(o);return t.tokens.push(o),i}}}function Oz(){return{token(e){return e.eatWhile(Pz)?"tag":e.eat(Lz)?"operator":(e.skipToEnd(),"invalidchar")}}}function Pz(e){return/[a-zA-Z0-9-_$@!:]/.test(e)}function Lz(e){return"|"===e}function Dz(e,t){if(e.somethingSelected())return VV(e);if(t)return function(e){const t=MV(e);if(hP(e).mark){const n=pz(e);return n&&mz(n,t)&&"abbreviation"===n.type?(Nz(e,n.abbreviation,n.range,n.config),void hz(e,{skipRemove:!0})):VV(e)}return function(e,t){return lz.run(e,(()=>t(cz,lz)))}(e,((n,o)=>{const i=n.getActivationContext(o,t);if(i){const n=e.posFromIndex(t),o=QB(e.getLine(n.line),n.ch,jF(i.syntax));if(o){const r=t-n.ch;return void Nz(e,o.abbreviation,[o.start+r,o.end+r],i)}}return VV(e)}))}(e);const n=MV(e),o=e.posFromIndex(n),i=e.getLine(o.line),r=iz(e,n),a=QB(i,o.ch,jF(r.syntax));if(a){const t=n-o.ch;Nz(e,a.abbreviation,[a.start+t,a.end+t],r)}}function Nz(e,t,n,o){IV(e,n,YB(e,t,o))}function jz(e){if(!pz(e))return VV(e);hz(e,{force:!0})}function Vz(e){hz(e),fz(e,MV(e))}function Fz(e){let t=pz(e);if(hz(e),t&&t.forced)return;const[n,o]=FV(e,e.listSelections()[0]);t=function(e,t,n,o){return lz.run(e,(()=>{const e=cz.startTracking(lz,t,n,o);return e&&lz.showPreview(e),e}))}(e,n,o,{forced:!0}),n!==o&&e.setSelection(e.posFromIndex(o))}function Rz(e){const t=e.listSelections().map((t=>function(e,t,n){if(o=t,i=n,o.sticky===i.sticky&&0===function(e,t){return e.line-t.line||e.ch-t.ch}(o,i)){if("xml"===e.getModeAt(t).name){const n=e.getTokenAt(t),o=e.getTokenAt(Object.assign({},t,{ch:t.ch+1}));return"tag bracket"===n.type&&">"===n.string&&"tag bracket"===o.type&&"</"===o.string}}var o,i}(e,t.anchor,t.head)));if(!t.some(Boolean))return VV(e);e.operation((()=>{const n=e.listSelections(),o=e.getDoc().lineSeparator(),i=ZB(e),r=[];for(let a=n.length-1;a>=0;a--){const s=n[a],l=GB(e,s.anchor.line);let c=l;t[a]?(c+=i,e.replaceRange(o+c+o+l,s.anchor,s.head)):e.replaceRange(o+l,s.anchor,s.head);const u={line:s.anchor.line+1,ch:c.length};r.unshift({anchor:u,head:u})}e.setSelections(r)}))}const qz="emmet-panel",Bz="emmet-error";function zz(e){const t=NF(e),n=MV(e),o=oz(e,n,VF(t)),i=function(e,t,n){if(t[0]===t[1]&&n){const{open:o,close:i}=n,r=t[0];if(Hz(o,r)||i&&Hz(i,r))return[o[0],i?i[1]:o[1]];if(i)return EV(e,[o[1],i[0]])}return t}(e,function(e){return FV(e,e.listSelections()[0])}(e),o),r=iz(e,i[0]);r.text=function(e,t,n=!1){const o=e.posFromIndex(t[0]),i=GB(e,o.line),r=OV(e,t).split("\n"),a=r.map((e=>e.startsWith(i)?e.slice(i.length):e));return n?a:a.join("\n")}(e,i,!0);let a=function(){const e=document.createElement("div");return e.className=qz,e.innerHTML=`<div class="${qz}-wrapper">\n <input type="text" placeholder="Enter abbreviation" autofocus />\n <div class="${qz}-error"></div>\n </div>`,e}(),s=a.querySelector("input"),l=a.querySelector(`.${qz}-error`),c=!1;function u(t){t&&t.stopPropagation(),f();const n=s.value.trim();if(n)try{const t=YB(e,n,r);IV(e,i,t),c=!0,a.classList.contains(Bz)&&(l.innerHTML="",a.classList.remove(Bz))}catch(e){c=!1,a.classList.add(Bz),l.innerHTML=zV(e),console.error(e)}}function d(e){27===e.keyCode?(e.stopPropagation(),e.preventDefault(),p()):13===e.keyCode&&(e.stopPropagation(),e.preventDefault(),h())}function f(){c&&e.undo()}function p(){f(),m(),e.focus()}function h(){m(),e.focus()}function m(){s.removeEventListener("input",u),s.removeEventListener("change",u),s.removeEventListener("paste",u),s.removeEventListener("keydown",d),s.removeEventListener("blur",p),a.remove(),a=s=l=null}a.emmet={submit:h,cancel:p,update:u},s.addEventListener("input",u),s.addEventListener("change",u),s.addEventListener("paste",u),s.addEventListener("keydown",d),e.getWrapperElement().appendChild(a),s.focus()}function Hz(e,t){return e[0]<t&&t<e[1]}function Wz(e,t){const n=NF(e);if(!FF(n)&&!RF(n))return VV(e);{const o=t?function(e,t){const n=[];for(const o of e.listSelections()){const i=FV(e,o),r=Kz(e,i[0],t,!0);let a,s=r.findIndex((e=>RV(i,e)));s<r.length-1?a=r[s+1]:-1!==s&&(a=r.find((e=>qV(e,i)))),n.push(a||i)}return n}(e,n):function(e,t){const n=[];for(const o of e.listSelections()){const i=FV(e,o),r=Kz(e,i[0],t).find((e=>qV(e,i)&&e[1]>i[1]));n.push(r||i)}return n}(e,n);e.setSelections(o.map((t=>({anchor:e.posFromIndex(t[0]),head:e.posFromIndex(t[1])}))))}}function Uz(e,t){const n=e[e.length-1];n&&RV(n,t)||e.push(t)}function Kz(e,t,n,o){const i=AV(e);if(RF(n))return ez(i,t,o);const r=[],a=XB(i,t,o,VF(n));for(const e of a)e.close?(Uz(r,[e.open[1],e.close[0]]),Uz(r,[e.open[0],e.close[1]])):Uz(r,[e.open[0],e.open[1]]);return r.sort(((e,t)=>o?e[0]-t[0]:t[0]-e[0]))}const Gz=["\x3c!--","--\x3e"],Zz=["/*","*/"];function Jz(e){const t=e.listSelections().slice().reverse();e.operation((()=>{for(const n of t){const t=FV(e,n),{syntax:o}=DF(e,t[0]),i=o&&RF(o)?Zz:Gz,r=eH(e,t[0]);if(r&&r.commentStart)Yz(e,r);else if(r&&BV(t)){let t=0;for(const n of Xz(e,r.range,i).reverse())t+=Yz(e,n);Qz(e,[r.range[0],r.range[1]-t],i)}else if(BV(t)){const t=e.getLine(n.anchor.line),o=FV(e,{anchor:{line:n.anchor.line,ch:0},head:{line:n.anchor.line,ch:t.length}});Qz(e,EV(e,o),i)}else Qz(e,t,i)}}))}function Yz(e,{range:t,commentStart:n,commentEnd:o}){const i=OV(e,t);if(n&&i.startsWith(n)){let r=n.length,a=o&&i.endsWith(o)?o.length:0;jV(i[r])&&(r+=1),a&&jV(i[i.length-a-1])&&(a+=1);const s=PV(e,[t[1]-a,t[1]]),l=PV(e,[t[0],t[0]+r]);return e.replaceRange("",s[0],s[1]),e.replaceRange("",l[0],l[1]),r+a}return 0}function Qz(e,t,n){const[o,i]=PV(e,t);e.replaceRange(" "+n[1],i,i),e.replaceRange(n[0]+" ",o,o)}function Xz(e,t,n){const o=[],i=OV(e,t);let r=t[0],a=0;for(;;){const e=i.indexOf(n[0],a);if(-1===e)break;{a=e+n[0].length;const t=i.indexOf(n[1],a);-1!==t&&(a=t+n[1].length,o.push({range:[r+e,r+a],commentStart:n[0],commentEnd:n[1]}))}}return o}function eH(e,t){const{syntax:n}=DF(e,t);if(n){if(FF(n))return function(e,t,n=!1){const o=[],i=[],r=ZV({xml:n,allTokens:!0});let a;return gF(e,((e,n,s,l)=>{if(1===n&&function(e,t){return!t.xml&&t.empty.includes(e)}(e,r)&&(n=3),1===n)i.push(function(e,t,n,o){if(e.length){const i=e.pop();return i.name=t,i.start=n,i.end=o,i}return{name:t,start:n,end:o}}(o,e,s,l));else if(3===n){if(s<t&&t<l)return a={range:[s,l]},!1}else if(2===n){const n=(c=i).length?c[c.length-1]:null;if(n&&n.name===e){if(n.start<t&&t<l)return a={range:[n.start,l]},!1;i.length&&function(e,t){e.push(t)}(o,i.pop())}}else if(s<t&&t<l)return a={range:[s,l]},6===n&&(a.commentStart=Gz[0],a.commentEnd=Gz[1]),!1;var c}),r),i.length=o.length=0,a}(AV(e),t,VF(n));if(RF(n)){const n=AV(e),o=function(e,t){const n=new xA(e);for(;!n.eof()&&t>n.pos;){const e=n.pos;if(tH(n,47,42)){for(;!n.eof()&&!tH(n,42,47);)n.pos++;if(e<t&&t<n.pos)return{range:[e,n.pos],commentStart:Zz[0],commentEnd:Zz[1]}}else if(tH(n,47,47)){for(;!n.eof()&&!n.eat(13)&&!n.eat(10);)n.pos++;if(e<t&&t<n.pos)return{range:[e,n.pos],commentStart:"//"}}else n.pos++}}(n,t);if(o)return o;const i=function(e,t){const n=[],o=[];let i=null,r=null;const a=()=>{r&&(TB(n,r),r=null)};return vB(e,((e,s,l,c)=>{if("selector"===e)a(),o.push(SB(n,s,l,c));else if("blockEnd"===e){a();const e=o.pop();if(e&&e[0]<t&&t<l)return i={type:"selector",start:e[0],end:l,bodyStart:e[2]+1,bodyEnd:s},!1}else if("propertyName"===e)a(),r=SB(n,s,l,c);else if("propertyValue"===e){if(r&&r[0]<t&&t<l)return i={type:"property",start:r[0],end:c+1,bodyStart:s,bodyEnd:l},!1;a()}})),i}(n,t);if(i)return{range:[i.start,i.end]}}}}function tH(e,t,n){const{pos:o}=e;return!(!e.eat(t)||!e.eat(n))||(e.pos=o,!1)}function nH(e){const t=e.getCursor(),n=nz(e.getLine(t.line),t.ch);if(n){const o={line:t.line,ch:n.start},i={line:t.line,ch:n.end};e.replaceRange(n.snippet,o,i)}}function oH(e,t){const n=function(e,t,n){const o=AV(e),i=o.length;let r=t;for(;r<i&&r>=0;){r+=n;const t=o[r],i=o[r+1],a=o[r-1];if(DV(t)&&i===t&&"="===a)return r+1;if("<"===t&&">"===a)return r;if(iH(t)){const t=e.posFromIndex(r),n=e.getLine(t.line);if(!n||jV(n))return e.indexFromPos({line:t.line,ch:n.length})}}}(e,MV(e)+t,t);null!=n&&e.setCursor(e.posFromIndex(n))}function iH(e){return"\r"===e||"\n"===e}function rH(e){let t=MV(e);const n=[t,Math.min(t+1,e.getValue().length)];"<"===OV(e,n)&&t++;const{syntax:o}=DF(e,t);if(FF(o)){const n=oz(e,t,VF(o));if(n&&n.open&&n.close){const{open:o,close:i}=n,r=o[0]<=t&&t<o[1]?i[0]:o[0];e.setCursor(e.posFromIndex(r))}}}function aH(e,t=1){e.operation((()=>{const n=e.listSelections().slice().reverse().map((n=>{let o=FV(e,n);if(BV(o)){const t=e.getLine(n.anchor.line),i=n.anchor.ch,r=function(e,t){let n,o=!1,i=t,r=t;const a=e.length;for(;i<a;){if(n=e.charCodeAt(i),sH(n)){if(o)break;o=!0}else if(!pA(n))break;i++}for(;r>=0;){if(n=e.charCodeAt(r-1),sH(n)){if(o)break;o=!0}else if(!pA(n))break;r--}r>0&&"-"===e[r-1]&&r--;if(r!==i)return[r,i]}(t,i);r&&(o=[o[0]-i+r[0],o[0]-i+r[1]])}if(!BV(o)){let i=function(e,t,n=3){const o=parseFloat(e)+t;if(isNaN(o))return e;const i=o<0;let r=Math.abs(o).toFixed(n);r=r.replace(/\.?0+$/,""),"."!==e[0]&&!e.startsWith("-.")||"0"!==r[0]||(r=r.slice(1));return(i?"-":"")+r}(OV(e,o),t);IV(e,o,i),n={anchor:e.posFromIndex(o[0]),head:e.posFromIndex(o[0]+i.length)}}return n}));e.setSelections(n)}))}function sH(e){return 46===e}function lH(e){e.operation((()=>{const t=e.listSelections().slice().reverse().map((t=>{const n=oz(e,e.indexFromPos(t.anchor));if(n){!function(e,{open:t,close:n}){if(n){const o=EV(e,[t[1],n[0]]);if(BV(o))IV(e,[t[0],n[1]],"");else{IV(e,[o[1],n[1]],"");const i=e.posFromIndex(t[0]),r=e.posFromIndex(n[1]);if(i.line!==r.line){let n=i.line+2;const a=cH(e,t[0]),s=cH(e,o[0]);for(;n<=r.line;){const t=e.indexFromPos({line:n,ch:0}),o=[t,t+s.length];jV(OV(e,o))&&(console.log('replace "%s" with "%s"',OV(e,o),a),IV(e,o,a)),n++}}IV(e,[t[0],o[0]],"")}}else IV(e,t,"")}(e,n);const t=e.posFromIndex(n.open[0]);return{anchor:t,head:t}}return t}));e.setSelections(t)}))}function cH(e,t){return GB(e,e.posFromIndex(t).line)}function uH(e,t=!1){const n=NF(e);if(!RF(n)&&!FF(n))return;const o=e.listSelections()[0],i=FV(e,o),r=AV(e);let a=tz(r,i[0],RF(n),t);if(a){let o=dH(i,a.ranges,t);if(!o){a=tz(r,t?a.start:a.end,RF(n),t),a&&(o=dH(i,a.ranges,t))}if(o){const[t,n]=PV(e,o);e.setSelection(t,n)}}}function dH(e,t,n=!1){n&&(t=t.slice().reverse());let o,i=!1;for(const r of t){if(i)return r;RV(r,e)?i=!0:!o&&(qV(r,e)||n&&r[0]<=e[0]||!n&&r[0]>=e[0])&&(o=r)}if(!i)return o}function fH(e){const t=e.listSelections().slice().reverse(),n=[];e.operation((()=>{for(const o of t){const t=e.indexFromPos(o.anchor),{syntax:i}=DF(e,t),r=oz(e,t,VF(i));if(r){const{open:t,close:o}=r;if(o){IV(e,[t[1],o[1]],"");let i=jV(pH(e,t[1]-2))?"/":" /";IV(e,[t[1]-1,t[1]-1],i),n.push(hH(e,t[1]+i.length))}else{const o=`</${r.name}>`;if(IV(e,[t[1],t[1]],o),"/"===pH(e,t[1]-2)){let o=t[1]-2,i=t[1]-1;jV(pH(e,o-1))&&o--,IV(e,[o,i],""),n.push(hH(e,t[1]-i+o))}else n.push(hH(e,t[1]))}}else n.push(o)}e.setSelections(n)}))}function pH(e,t){return OV(e,[t,t+1])}function hH(e,t){const n=e.posFromIndex(t);return{anchor:n,head:n}}function mH(e,t){if("undo"===t.origin&&1===t.text.length){const n=e.indexFromPos(t.from);!function(e,t,n){lz.run(e,(()=>{const e=cz.getStoredTracker(lz);e&&"abbreviation"===e.type&&n===e.abbreviation&&e.range[0]===t&&cz.restoreTracker(lz,t)}))}(e,n,t.text[0])}}function gH(e,t){if("paste"===t.origin&&1===t.text.length&&uz(e,e.indexFromPos(t.from))){const n=e.indexFromPos(t.from)+t.text[0].length;fz(e,n,!0)}}var vH=function(e){Object.assign(e.commands,{emmetExpandAbbreviation:e=>Dz(e,!0),emmetExpandAbbreviationAll:e=>Dz(e,!1),emmetCaptureAbbreviation:Vz,emmetResetAbbreviation:jz,emmetEnterAbbreviationMode:Fz,emmetInsertLineBreak:Rz,emmetWrapWithAbbreviation:zz,emmetBalance:Wz,emmetBalanceInward:e=>Wz(e,!0),emmetToggleComment:Jz,emmetEvaluateMath:nH,emmetGoToNextEditPoint:e=>oH(e,1),emmetGoToPreviousEditPoint:e=>oH(e,-1),emmetGoToTagPair:rH,emmetIncrementNumber1:e=>aH(e,1),emmetIncrementNumber01:e=>aH(e,.1),emmetIncrementNumber10:e=>aH(e,10),emmetDecrementNumber1:e=>aH(e,-1),emmetDecrementNumber01:e=>aH(e,-.1),emmetDecrementNumber10:e=>aH(e,-10),emmetRemoveTag:lH,emmetSelectNextItem:e=>uH(e),emmetSelectPreviousItem:e=>uH(e,!0),emmetSplitJoinTag:fH}),e.defineOption("emmet",pP,((e,t)=>{WV(e)||(e.on("change",mH),e.on("change",gH));const n=UV(e);(t=hP(e,t)).mark&&!n.tracker?n.tracker=function(e){const t=e=>{lz.run(e,(()=>{cz.handleChange(lz,MV(e))}))},n=e=>{lz.run(e,(()=>{const t=MV(e);if(!dz(e,t))return;const n=cz.handleSelectionChange(lz,t);n&&(mz(n,t)?lz.showPreview(n):lz.hidePreview())}))};return e.on("change",t),e.on("focus",n),e.on("cursorActivity",n),()=>{lz.run(e,(()=>cz.disposeEditor(lz))),e.off("change",t),e.off("focus",n),e.off("cursorActivity",n)}}(e):!t.mark&&n.tracker&&(n.tracker(),n.tracker=null),t.markTagPairs&&!n.tagMatch?n.tagMatch=bz(e):!t.markTagPairs&&n.tagMatch&&(n.tagMatch(),n.tagMatch=null)})),e.defineMode("emmet-abbreviation",Mz),e.defineMode("emmet-css-abbreviation",Az),e.defineMode("emmet-snippet",Oz),e.defineExtension("expandAbbreviation",(function(e,t=iz(this,0)){return YB(this,e,t)})),e.defineExtension("emmetOptions",(function(e=0){return iz(this,e)})),e.defineExtension("parseAbbreviation",(function(e,t){return"stylesheet"===t?JO(LO(e)):MA(aO(e),{jsx:"jsx"===t})})),e.defineExtension("getEmmetCompletion",(function(e){return"number"!=typeof e&&(e=this.indexFromPos(e)),function(e,t){const n=pz(e)||fz(e,t);if(n&&mz(n,t)&&"abbreviation"===n.type){const{abbreviation:t,preview:o}=n;return{text:t,displayText:o,hint:()=>{hz(e);const o=YB(e,t,n.config);IV(e,n.range,o)},from:e.posFromIndex(n.range[0]),to:e.posFromIndex(n.range[1])}}}(this,e)}))};vH(dA());var bH={emits:["input"],props:{value:{type:[String,Object],required:!1},control:{type:Object,required:!1,default:function(){return{}}}},data:function(){var e;return{code:this.value,codemirror:void 0,cursorPosition:void 0,mode:this.control.hasOwnProperty("mode")?this.control.mode:"css",readOnly:!!this.control.hasOwnProperty("readOnly")&&this.control.readOnly,replace:!this.control.hasOwnProperty("replace")||this.control.replace,theme:this.control.hasOwnProperty("theme")?this.control.theme:"dark"===this.bricks.mode?"one-dark":"default",isRunning:!1,hasUnexecutedCode:!1,hasDynamicData:!!this.control.hasOwnProperty("hasDynamicData")&&this.control.hasDynamicData,showDynamicPicker:!1,placeholder:null===(e=this.control)||void 0===e?void 0:e.placeholder,showVariablePicker:!1}},computed:{hasVariables:function(){return!this.bricks.disableVariablesManager&&(this.control.hasOwnProperty("hasVariables")?this.control.hasVariables:"css"===this.mode)},hasUnsignedCode:function(){return this.$_state.unsignedCodeIds.includes(this.element.id)},isPanelExpanded:function(){return this.$_state.isPanelExpanded},globalElement:function(){return this.$_getGlobalElement(this.element)},finalElement:function(){return this.$_getFinalElement(this.element)},element:function(){return this.$_activeElement.value},name:function(){return this.element?this.element.name:""},language:function(){var e;return null===(e=this.$_activeElement.value)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.language},executeCode:function(){var e,t;return this.control.hasOwnProperty("executeCode")?this.control.executeCode:["code","svg"].includes(null===(e=this.finalElement)||void 0===e?void 0:e.name)&&(null===(t=this.finalElement)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.executeCode)},cssId:function(){var e,t,n;return null!==(e=this.$_activeClass.value)&&void 0!==e&&e.name?".".concat(null===(n=this.$_activeClass.value)||void 0===n?void 0:n.name):null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._cssId?"#".concat(this.element.settings._cssId):"#".concat(this.$_getElementId(this.element))}},methods:{getValue:function(){var e=this.codemirror.getValue();if(e&&"css"==this.mode&&this.replace)e=this.$_replaceCustomCssRoot("%root%",this.cssId,e);else if(e&&"json"===this.mode)try{e=JSON.parse(e)}catch(e){console.warn("JSON.parse error",e)}return e},runCode:function(){var e=this;this.executeCode&&(this.$emit("input",this.getValue()),this.generateCodeSignature(),this.hasUnexecutedCode=!1,this.isRunning=!0,setTimeout((function(){e.isRunning=!1}),800))},listenerToRun:function(e){this.isPanelExpanded&&this.executeCode&&(e[this.$_state.isMac?"metaKey":"ctrlKey"]&&"r"==e.key&&(e.preventDefault(),this.runCode()))},initCodeMirror:function(e){var t=this,n=this.$el.querySelector(".CodeMirror");e=e||!1,n&&n.remove(),this.$refs.textarea&&(this.codemirror=dA().fromTextArea(this.$refs.textarea,{readOnly:this.readOnly,mode:this.mode,htmlMode:"xml"===this.mode,tabSize:2,lineNumbers:!0,lineWrapping:!0,theme:this.theme,autoRefresh:!0,autofocus:e,suppressErrorLogging:!1,extraKeys:{"Cmd-Z":function(e){e.historySize().undo&&(e.undo(),"settings-page"!==t.$_state.activePanel&&t.$_goto("undo",!1))},"Ctrl-Z":function(e){e.historySize().undo&&(e.undo(),"settings-page"!==t.$_state.activePanel&&t.$_goto("undo",!1))},"Shift-Cmd-Z":function(e){e.historySize().redo&&(e.redo(),"settings-page"!==t.$_state.activePanel&&t.$_goto("redo",!1))},"Shift-Ctrl-Z":function(e){e.historySize().redo&&(e.redo(),"settings-page"!==t.$_state.activePanel&&t.$_goto("redo",!1))},Tab:function(e){var t,n=e.getCursor(),o=e.getLine(n.line);if(!(null==e||null===(t=e.display)||void 0===t||!t.sizer)&&e.display.sizer.querySelector(".emmet-abbreviation-preview"))e.execCommand("emmetExpandAbbreviation");else{if("r"!==o.charAt(n.ch-1))return dA().Pass;e.replaceRange("%root%",{line:n.line,ch:n.ch-1},{line:n.line,ch:n.ch})}},Esc:"emmetResetAbbreviation",Enter:"emmetInsertLineBreak"},placeholder:this.placeholder}),this.codemirror.on("focus",(function(e){t.cursorPosition=e.getCursor(),t.bricks.disablePanelAutoExpand||(t.$_state.isPanelExpanded=!0)})),this.codemirror.on("blur",(function(){var e=t.getValue();t.executeCode&&e!==t.code&&(t.hasUnexecutedCode=!0),t.$emit("input",e),t.code=e})),this.codemirror.on("change",(function(){var e=t.getValue();t.hasUnexecutedCode=!0,t.$emit("input",e),t.code=e})))},addDynamicTag:function(e){var t=this;null!=e&&e.name&&("php"===this.mode&&this.codemirror.setOption("mode","text/plain"),this.codemirror.replaceSelection(e.name),this.$nextTick((function(){t.code=t.getValue(),"php"===t.mode&&setTimeout(t.initCodeMirror,0)})))},addVariable:function(e){if(null!=e&&e.name){var t="var(--".concat(e.name,")");"php"===this.mode&&this.codemirror.setOption("mode","text/plain"),this.codemirror.replaceSelection(t),this.code=this.getValue(),"php"===this.mode&&setTimeout(this.initCodeMirror,0)}},closeDynamicPicker:function(){this.showDynamicPicker=!1},generateCodeSignature:function(){var e=this;this.$_http({data:{action:"bricks_generate_code_signature",element:JSON.stringify(this.finalElement)},success:function(t){var n;e.isRunning=!1;var o=null===(n=t.data)||void 0===n||null===(n=n.element)||void 0===n?void 0:n.settings;o&&(e.globalElement?e.globalElement.settings=o:e.$_state.activeElement.settings=o,e.$_showMessage(e.i18n.codeSigned),e.$_forceRender())}})}},mounted:function(){if(this.code&&"json"===this.mode)try{this.code=JSON.stringify(this.code)}catch(e){console.warn("JSON.parse error",e)}else this.code&&"css"===this.mode&&this.replace&&(this.code=this.$_replaceCustomCssRoot(this.cssId,"%root%",this.code));window.addEventListener("keydown",this.listenerToRun),setTimeout(this.initCodeMirror,110)},beforeUnmount:function(){window.removeEventListener("keydown",this.listenerToRun)},watch:{"$_state.isPanelExpanded":{handler:function(e,t){var n=this;if(e&&this.codemirror){var o=this.codemirror.getCursor();setTimeout((function(){n.initCodeMirror(!0),n.$nextTick((function(){n.codemirror.setCursor({line:o.line,ch:o.ch})}))}),110)}}},"$_state.activeClass.id":{handler:function(){var e=this;this.$nextTick((function(){e.value?"css"===e.mode&&e.replace&&(e.code=e.$_replaceCustomCssRoot(e.cssId,"%root%",e.value)):e.code="",e.$nextTick((function(){e.$_state.rerenderControls=Date.now()}))}))}},"$_state.isSaving":{handler:function(e){var t=this;e&&this.executeCode&&document.activeElement.closest(".control-code")&&this.$nextTick((function(){return t.$_savePost()}))}},language:function(e){"code"!==this.name||this.executeCode||(this.mode=["css","javascript","php"].includes(e)?e:"css")},mode:function(){this.initCodeMirror()},"$_state.panelWidth":{handler:function(){var e=this;setTimeout((function(){e.initCodeMirror()}),110)}},"$_state.rerenderControls":{handler:function(){this.initCodeMirror()}}}};var yH=(0,tm.Z)(bH,[["render",function(e,t,n,o,i,r){var a,s=no("icon"),l=no("control-variable-picker"),c=no("control-dynamic-tag-picker");return Yr(),oa("div",{class:ee([{expand:r.isPanelExpanded}]),"data-control":"code"},[ua("div",rA,[!1===i.readOnly?(Yr(),oa("div",aA,[i.code&&r.executeCode?(Yr(),oa("div",{key:0,class:ee(["sign",{unsigned:i.hasUnexecutedCode||r.hasUnsignedCode},{"is-running":i.isRunning}]),"data-balloon":"".concat(e.$_state.isMac?"CMD + R":"CTRL + R"),"data-balloon-pos":"top-right",onClick:t[0]||(t[0]=El((function(e){return r.runCode()}),["stop"]))},[ua("span",{textContent:de(e.i18n.signCode)},null,8,lA),da(s,{name:"touch-id"})],10,sA)):va("",!0),da(s,{class:"toggle",name:r.isPanelExpanded?"arrow-left":"arrow-right","data-balloon":r.isPanelExpanded?e.i18n.collapse:e.i18n.expand,"data-balloon-pos":"top-right",onClick:t[1]||(t[1]=El((function(t){return e.$_state.isPanelExpanded=!e.$_state.isPanelExpanded}),["stop"]))},null,8,["name","data-balloon"])])):va("",!0)]),ua("textarea",{ref:"textarea",cols:"30",rows:"10",textContent:de(i.code),placeholder:i.placeholder},null,8,cA),r.hasVariables?(Yr(),ia(l,{key:0,control:{context:r.hasVariables},isOpen:i.showVariablePicker,onCloseMe:t[2]||(t[2]=function(e){return i.showVariablePicker=!1}),onInput:r.addVariable,onToggle:t[3]||(t[3]=function(e){return i.showVariablePicker=!i.showVariablePicker})},null,8,["control","isOpen","onInput"])):va("",!0),i.hasDynamicData?(Yr(),ia(c,{key:1,control:{context:"text"},isOpen:i.showDynamicPicker,syncExpand:null===(a=n.control)||void 0===a?void 0:a.syncExpand,onCloseMe:r.closeDynamicPicker,onInput:r.addDynamicTag,onToggle:t[4]||(t[4]=function(e){return i.showDynamicPicker=!i.showDynamicPicker})},null,8,["isOpen","syncExpand","onCloseMe","onInput"])):va("",!0)],2)}]]),wH={"data-control":"color"},kH=["data-balloon"],xH=["onClick"],CH=["data-balloon"],_H={key:0,class:"color-name"},SH=["onClick","textContent"],TH={class:"actions"},$H={class:"sliders"},EH={class:"label-actions"},IH=["textContent"],MH=["textContent"],AH=["textContent"],OH=["textContent"],PH=["placeholder"],LH=["textContent"],DH=["textContent"],NH=["textContent"],jH={class:"bricks-control-transparency-pattern"},VH={class:"color-inputs"},FH={class:"hex"},RH={class:"color-input"},qH=["id"],BH=["for"],zH={class:"rgb"},HH={class:"color-input"},WH=["id"],UH=["for"],KH={class:"color-input"},GH=["id"],ZH=["for"],JH={class:"color-input"},YH=["id"],QH=["for"],XH={class:"color-input"},eW=["id"],tW=["for"],nW={class:"hsl"},oW={class:"color-input"},iW=["id"],rW=["for"],aW={class:"color-input"},sW=["id"],lW=["for"],cW={class:"color-input"},uW=["id"],dW=["for"],fW={class:"color-input"},pW=["id"],hW=["for"],mW={class:"raw"},gW={class:"color-input"},vW=["for","textContent"],bW={class:"color-modes"},yW=["data-balloon"],wW=["data-balloon"],kW=["data-balloon"],xW=["textContent"],CW=["data-balloon"],_W={class:"color-palette-selector"},SW={class:"palette-actions"},TW={key:1,class:"button-group"},$W=["disabled","textContent"],EW=["textContent"];function IW(e){return IW="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},IW(e)}var MW=/^\s+/,AW=/\s+$/;function OW(e,t){if(t=t||{},(e=e||"")instanceof OW)return e;if(!(this instanceof OW))return new OW(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,o=null,i=null,r=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(MW,"").replace(AW,"").toLowerCase();var t,n=!1;if(ZW[e])e=ZW[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=lU.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=lU.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=lU.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=lU.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=lU.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=lU.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=lU.hex8.exec(e))return{r:eU(t[1]),g:eU(t[2]),b:eU(t[3]),a:iU(t[4]),format:n?"name":"hex8"};if(t=lU.hex6.exec(e))return{r:eU(t[1]),g:eU(t[2]),b:eU(t[3]),format:n?"name":"hex"};if(t=lU.hex4.exec(e))return{r:eU(t[1]+""+t[1]),g:eU(t[2]+""+t[2]),b:eU(t[3]+""+t[3]),a:iU(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=lU.hex3.exec(e))return{r:eU(t[1]+""+t[1]),g:eU(t[2]+""+t[2]),b:eU(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==IW(e)&&(cU(e.r)&&cU(e.g)&&cU(e.b)?(l=e.r,c=e.g,u=e.b,t={r:255*QW(l,255),g:255*QW(c,255),b:255*QW(u,255)},a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):cU(e.h)&&cU(e.s)&&cU(e.v)?(o=nU(e.s),i=nU(e.v),t=function(e,t,n){e=6*QW(e,360),t=QW(t,100),n=QW(n,100);var o=Math.floor(e),i=e-o,r=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=o%6,c=[n,a,r,r,s,n][l],u=[s,n,n,a,r,r][l],d=[r,r,s,n,n,a][l];return{r:255*c,g:255*u,b:255*d}}(e.h,o,i),a=!0,s="hsv"):cU(e.h)&&cU(e.s)&&cU(e.l)&&(o=nU(e.s),r=nU(e.l),t=function(e,t,n){var o,i,r;function a(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=QW(e,360),t=QW(t,100),n=QW(n,100),0===t)o=i=r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=a(l,s,e+1/3),i=a(l,s,e),r=a(l,s,e-1/3)}return{r:255*o,g:255*i,b:255*r}}(e.h,o,r),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));var l,c,u;return n=YW(n),{ok:a,format:e.format||s,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 PW(e,t,n){e=QW(e,255),t=QW(t,255),n=QW(n,255);var o,i,r=Math.max(e,t,n),a=Math.min(e,t,n),s=(r+a)/2;if(r==a)o=i=0;else{var l=r-a;switch(i=s>.5?l/(2-r-a):l/(r+a),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:s}}function LW(e,t,n){e=QW(e,255),t=QW(t,255),n=QW(n,255);var o,i,r=Math.max(e,t,n),a=Math.min(e,t,n),s=r,l=r-a;if(i=0===r?0:l/r,r==a)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:s}}function DW(e,t,n,o){var i=[tU(Math.round(e).toString(16)),tU(Math.round(t).toString(16)),tU(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 NW(e,t,n,o){return[tU(oU(o)),tU(Math.round(e).toString(16)),tU(Math.round(t).toString(16)),tU(Math.round(n).toString(16))].join("")}function jW(e,t){t=0===t?0:t||10;var n=OW(e).toHsl();return n.s-=t/100,n.s=XW(n.s),OW(n)}function VW(e,t){t=0===t?0:t||10;var n=OW(e).toHsl();return n.s+=t/100,n.s=XW(n.s),OW(n)}function FW(e){return OW(e).desaturate(100)}function RW(e,t){t=0===t?0:t||10;var n=OW(e).toHsl();return n.l+=t/100,n.l=XW(n.l),OW(n)}function qW(e,t){t=0===t?0:t||10;var n=OW(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))),OW(n)}function BW(e,t){t=0===t?0:t||10;var n=OW(e).toHsl();return n.l-=t/100,n.l=XW(n.l),OW(n)}function zW(e,t){var n=OW(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,OW(n)}function HW(e){var t=OW(e).toHsl();return t.h=(t.h+180)%360,OW(t)}function WW(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=OW(e).toHsl(),o=[OW(e)],i=360/t,r=1;r<t;r++)o.push(OW({h:(n.h+r*i)%360,s:n.s,l:n.l}));return o}function UW(e){var t=OW(e).toHsl(),n=t.h;return[OW(e),OW({h:(n+72)%360,s:t.s,l:t.l}),OW({h:(n+216)%360,s:t.s,l:t.l})]}function KW(e,t,n){t=t||6,n=n||30;var o=OW(e).toHsl(),i=360/n,r=[OW(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,r.push(OW(o));return r}function GW(e,t){t=t||6;for(var n=OW(e).toHsv(),o=n.h,i=n.s,r=n.v,a=[],s=1/t;t--;)a.push(OW({h:o,s:i,v:r})),r=(r+s)%1;return a}OW.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=YW(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=LW(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=LW(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=PW(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=PW(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 DW(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=[tU(Math.round(e).toString(16)),tU(Math.round(t).toString(16)),tU(Math.round(n).toString(16)),tU(oU(o))];if(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))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0);return 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*QW(this._r,255))+"%",g:Math.round(100*QW(this._g,255))+"%",b:Math.round(100*QW(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*QW(this._r,255))+"%, "+Math.round(100*QW(this._g,255))+"%, "+Math.round(100*QW(this._b,255))+"%)":"rgba("+Math.round(100*QW(this._r,255))+"%, "+Math.round(100*QW(this._g,255))+"%, "+Math.round(100*QW(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(JW[DW(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+NW(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=OW(e);n="#"+NW(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 OW(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(RW,arguments)},brighten:function(){return this._applyModification(qW,arguments)},darken:function(){return this._applyModification(BW,arguments)},desaturate:function(){return this._applyModification(jW,arguments)},saturate:function(){return this._applyModification(VW,arguments)},greyscale:function(){return this._applyModification(FW,arguments)},spin:function(){return this._applyModification(zW,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(KW,arguments)},complement:function(){return this._applyCombination(HW,arguments)},monochromatic:function(){return this._applyCombination(GW,arguments)},splitcomplement:function(){return this._applyCombination(UW,arguments)},triad:function(){return this._applyCombination(WW,[3])},tetrad:function(){return this._applyCombination(WW,[4])}},OW.fromRatio=function(e,t){if("object"==IW(e)){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:nU(e[o]));e=n}return OW(e,t)},OW.equals=function(e,t){return!(!e||!t)&&OW(e).toRgbString()==OW(t).toRgbString()},OW.random=function(){return OW.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},OW.mix=function(e,t,n){n=0===n?0:n||50;var o=OW(e).toRgb(),i=OW(t).toRgb(),r=n/100;return OW({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})},OW.readability=function(e,t){var n=OW(e),o=OW(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},OW.isReadable=function(e,t,n){var o,i,r=OW.readability(e,t);switch(i=!1,o=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7}return i},OW.mostReadable=function(e,t,n){var o,i,r,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,r=n.level,a=n.size;for(var c=0;c<t.length;c++)(o=OW.readability(e,t[c]))>l&&(l=o,s=OW(t[c]));return OW.isReadable(e,s,{level:r,size:a})||!i?s:(n.includeFallbackColors=!1,OW.mostReadable(e,["#fff","#000"],n))};var ZW=OW.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"},JW=OW.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(ZW);function YW(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function QW(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 XW(e){return Math.min(1,Math.max(0,e))}function eU(e){return parseInt(e,16)}function tU(e){return 1==e.length?"0"+e:""+e}function nU(e){return e<=1&&(e=100*e+"%"),e}function oU(e){return Math.round(255*parseFloat(e)).toString(16)}function iU(e){return eU(e)/255}var rU,aU,sU,lU=(aU="[\\s|\\(]+("+(rU="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+rU+")[,|\\s]+("+rU+")\\s*\\)?",sU="[\\s|\\(]+("+rU+")[,|\\s]+("+rU+")[,|\\s]+("+rU+")[,|\\s]+("+rU+")\\s*\\)?",{CSS_UNIT:new RegExp(rU),rgb:new RegExp("rgb"+aU),rgba:new RegExp("rgba"+sU),hsl:new RegExp("hsl"+aU),hsla:new RegExp("hsla"+sU),hsv:new RegExp("hsv"+aU),hsva:new RegExp("hsva"+sU),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 cU(e){return!!lU.CSS_UNIT.exec(e)}var uU={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!1}},data:function(){return{changed:!1,showPopup:!1,storedColor:void 0,randomId:this.$_generateId(),colorMode:"hex",deleteColor:!1,editColorIndex:!1,inputSaturationStyles:null,inputLightnessStyles:null,inputAlphaStyles:null,inputRaw:null,inputHex:null,inputHue:0,inputSaturation:100,inputLightness:50,inputRed:0,inputGreen:0,inputBlue:0,inputAlpha:1,placeholderRaw:"",activePaletteId:void 0,paletteAction:void 0,paletteName:"",colorName:"",colorsView:"grid",importResults:[],colorsFromRaw:{},isPopulatingFromRaw:!1}},computed:{getRawPlaceholder:function(){var e,t,n,o,i=this;return this.placeholderRaw?this.placeholderRaw:null!==(e=this.value)&&void 0!==e&&e.raw?this.value.raw:null!==(t=this.value)&&void 0!==t&&t.id?(this.colorPalette.forEach((function(e){if(Array.isArray(null==e?void 0:e.colors)){var t=e.colors.find((function(e){return(null==e?void 0:e.id)===i.value.id}));null!=t&&t.raw&&(o=t.raw)}})),o||"var(--bricks-color-".concat(null===(n=this.value)||void 0===n?void 0:n.id,")")):"var(--my-color)"},colorPalette:function(){return this.$_state.colorPalette},colorPaletteIsDefault:function(){var e;return this.activePaletteId&&(null===(e=this.colorPalette.find((function(e){return null==e?void 0:e.default})))||void 0===e?void 0:e.id)===this.activePaletteId},palettes:function(){return this.hasLocalPalette?this.control.palette:this.colorPalette},colorPreviewStyles:function(){var e,t,n=this.colorPreviewTooltip;this.colorsFromRaw[null===(e=this.value)||void 0===e?void 0:e.id]&&(n=this.colorsFromRaw[null===(t=this.value)||void 0===t?void 0:t.id]);if(n&&-1!==n.indexOf("{")&&-1!==n.indexOf("}")){var o=n.replaceAll(/[{}]/g,"");n="var(--brx-dd-".concat(o,")")}return n?{color:"".concat(n," !important")}:null},colorPreviewTooltip:function(){var e=this.$_clone(this.value);return this.inputRaw?this.inputRaw:this.placeholderRaw?this.placeholderRaw:null!=e&&e.raw?e.raw:null!=e&&e.rgb?e.rgb:null!=e&&e.hex?e.hex:void 0},hasLocalPalette:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.palette},paletteDropdownControl:function(){if(this.hasLocalPalette)return{};var e={};return this.palettes.forEach((function(t){e[t.id]=t.name})),{placeholder:this.i18n.selectColorPalette,options:e,multiple:!1,clearable:!1}},activePalette:function(){var e=this;return this.palettes.find((function(t){return t.id===e.activePaletteId}))},activePaletteColors:function(){var e;return(null===(e=this.activePalette)||void 0===e?void 0:e.colors)||[]},activePaletteColorsLength:function(){return this.activePaletteColors.length},fileImportControl:function(){return{fileType:"application/json",schema:["id","name","colors"],dragAndDropNote:this.i18n.importJsonDragAndDrop}},hslInputs:function(){return[this.inputHue,this.inputSaturation,this.inputLightness]}},methods:{copyToClipboard:function(e){var t=(null==e?void 0:e.raw)||"var(--bricks-color-".concat(e.id,")");this.$_copyToClipboard(t,"".concat(this.i18n.copied,": ").concat(t))},clearColor:function(e){var t,n,o,i;if(e)switch(e){case"raw":this.inputRaw=null,null===(t=this.value)||void 0===t||delete t.raw;break;case"hex":this.inputHex=null,null===(n=this.value)||void 0===n||delete n.hex;break;case"rgb":this.inputRed=0,this.inputGreen=0,this.inputBlue=0,this.inputAlpha="",null===(o=this.value)||void 0===o||delete o.rgb;break;case"hsl":this.inputHue=0,this.inputSaturation=100,this.inputLightness=50,this.inputAlpha="",null===(i=this.value)||void 0===i||delete i.hsl}else this.placeholderRaw=null,this.inputRaw=null,this.inputHex=null,this.inputHue=0,this.inputSaturation=100,this.inputLightness=50,this.inputRed=0,this.inputGreen=0,this.inputBlue=0,this.inputAlpha=1,this.$emit("input",!1)},colorPaletteToggleDefault:function(){var e=this;this.$_state.colorPalette.forEach((function(t){e.activePaletteId&&t.id===e.activePaletteId?null!=t&&t.default?delete t.default:t.default=!0:delete t.default}))},colorPaletteStyles:function(e,t){var n,o,i;if(this.colorsFromRaw[null===(n=e)||void 0===n?void 0:n.id])return{backgroundColor:this.colorsFromRaw[e.id]};if(!1!==this.editColorIndex&&t===this.editColorIndex&&this.value&&(e=this.$_clone(this.value)),null!==(o=e)&&void 0!==o&&o.raw){var r=e.raw;if(r&&-1!==r.indexOf("{")&&-1!==r.indexOf("}")){var a=r.replaceAll(/[{}]/g,"");r="var(--brx-dd-".concat(a,")")}return{backgroundColor:r}}var s=OW((null===(i=e)||void 0===i?void 0:i.rgb)||e.hex);return s.isValid()?{backgroundColor:s.toRgbString()}:void 0},closeMe:function(){this.paletteAction=void 0,this.importResults=[]},selectColor:function(e){var t,n,o=this;if(!this.deleteColor&&null!==(t=e)&&void 0!==t&&t.id){this.changed=!1,e=this.$_clone(e),this.inputRaw=null,this.editColorIndex=!1;var i,r,a,s=this.activePaletteColors.find((function(t){var n;return(null==t?void 0:t.id)===(null===(n=e)||void 0===n?void 0:n.id)}));if(this.placeholderRaw=null!=s&&s.raw?this.$_clone(s.raw):null,null!==(n=e)&&void 0!==n&&n.raw)this.placeholderRaw=e.raw,null!==(i=e)&&void 0!==i&&i.hex||null!==(r=e)&&void 0!==r&&r.rgb||null!==(a=e)&&void 0!==a&&a.hsl?delete e.raw:(this.inputRaw=e.raw,this.colorMode="raw");this.$emit("input",e),this.$nextTick((function(){var t,n;if(e=(null===(t=e)||void 0===t?void 0:t.rgb)||(null===(n=e)||void 0===n?void 0:n.hex)){var i,r,a,s=OW(e);s=s.toRgb(),o.inputRed=null===(i=s)||void 0===i?void 0:i.r,o.inputGreen=null===(r=s)||void 0===r?void 0:r.g,o.inputBlue=null===(a=s)||void 0===a?void 0:a.b,o.inputAlpha=OW(e).getAlpha(),o.updateColor("rgb",!1)}else o.populateFromRaw(e)}))}},updateColor:function(e,t,n){var o=this;e=e||this.colorMode;var i,r,a,s=this.value?this.$_clone(this.value):{};switch("raw"!==e||!t||n||this.inputRaw||(t=!1),t&&!1===this.editColorIndex&&(null!=s&&s.id&&delete s.id,null!=s&&s.name&&delete s.name,"raw"!==e&&(null!=s&&s.raw&&delete s.raw,this.inputRaw="",this.placeholderRaw="")),e){case"raw":this.inputRaw=n,!1===this.editColorIndex&&(this.placeholderRaw=null),n?s.raw=n:delete s.raw;break;case"hex":if(!this.inputHex)return void this.clearColor();if(!(i=OW(this.inputHex)).isValid())return;r=i.toRgb(),this.inputRed=Math.ceil(r.r),this.inputGreen=Math.ceil(r.g),this.inputBlue=Math.ceil(r.b),this.inputAlpha=i.getAlpha(),a=i.toHsl(),this.inputHue=Math.ceil(a.h),this.inputSaturation=Math.ceil(100*a.s),this.inputLightness=Math.ceil(100*a.l);break;case"rgb":i=r={r:Math.ceil(this.inputRed),g:Math.ceil(this.inputGreen),b:Math.ceil(this.inputBlue)},this.inputHex=OW(r).toHexString(),a=OW(r).toHsl(),this.inputHue=Math.ceil(a.h),this.inputSaturation=Math.ceil(100*a.s),this.inputLightness=Math.ceil(100*a.l);break;case"hsl":i=a={h:Math.ceil(this.inputHue),s:Math.ceil(this.inputSaturation),l:Math.ceil(this.inputLightness)},this.inputHex=OW(a).toHexString(),r=OW(a).toRgb(),this.inputRed=Math.ceil(r.r),this.inputGreen=Math.ceil(r.g),this.inputBlue=Math.ceil(r.b)}i&&((i=OW(i)).setAlpha(this.inputAlpha),1==this.inputAlpha?(s.hex=i.toHexString(),delete s.rgb,delete s.hsl):(s.hex=i.toHexString(),s.rgb=i.toRgbString(),s.hsl=i.toHslString())),this.isPopulatingFromRaw||JSON.stringify(s)===JSON.stringify(this.value)||(this.$emit("input",!!Object.keys(s).length&&s),this.bricks.debug.includes("updateColor")&&console.warn("updateColor",s,this.value)),this.$nextTick((function(){return o.changed=t}))},populateFromRaw:function(e){var t,n,o,i,r,a,s=this;if(e=e||this.value,!(null===(t=e=this.$_clone(e))||void 0===t||!t.id||null===(n=e)||void 0===n||!n.raw||null!==(o=e)&&void 0!==o&&o.hex||null!==(i=e)&&void 0!==i&&i.rgb||null!==(r=e)&&void 0!==r&&r.hsl)){this.changed=!1;var l=null===(a=e)||void 0===a?void 0:a.raw.replace("var(","").replace(")","");if(l=(l=getComputedStyle(this.$_getIframeDoc().documentElement).getPropertyValue(l)).trim())if(this.isPopulatingFromRaw=!0,this.colorsFromRaw[e.id]=l,this.value&&e.id===this.value.id){if(l.startsWith("#"))this.inputHex=l,this.updateColor("hex",!1);else if(l.startsWith("rgb")){var c=l.substring(l.indexOf("(")+1,l.indexOf(")"));(c=c.split(","))[0]&&(this.inputRed=c[0]),c[1]&&(this.inputGreen=c[1]),c[2]&&(this.inputBlue=c[2]),c[3]&&(this.inputAlpha=c[3]),this.updateColor("rgb",!1)}else if(l.startsWith("hsl")){var u=l.substring(l.indexOf("(")+1,l.indexOf(")"));(u=u.split(","))[0]&&(this.inputHue=u[0]),u[1]&&(this.inputSaturation=parseInt(u[1])),u[2]&&(this.inputLightness=parseInt(u[2])),u[3]&&(this.inputAlpha=u[3]),this.updateColor("hsl",!1)}else{var d=OW(l);d.isValid()&&(this.inputHex=d.toHexString()),this.updateColor("hex",!1)}this.$nextTick((function(){return s.isPopulatingFromRaw=!1}))}else this.isPopulatingFromRaw=!1;else this.isPopulatingFromRaw=!1}},cancelColorEdit:function(){this.storedColor?(this.selectColor(this.storedColor),this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette",this.storedColor)):this.clearColor(),this.storedColor=void 0,this.colorName="",this.editColorIndex=!1,this.changed=!1},onInputAlpha:function(){this.updateColor("rgb",!0)},manageColorsInPalette:function(e,t){var n,o,i=this,r=this.colorPalette.findIndex((function(e){return e.id===i.activePaletteId}));if(-1!==r){var a,s=Array.isArray(this.activePaletteColors)?this.$_clone(this.activePaletteColors):[],l=s[t],c=s.findIndex((function(e){return e.id===(null==l?void 0:l.id)}));switch(e){case"add":if(null!==(n=a=this.$_clone(this.value))&&void 0!==n&&n.raw&&a.raw.startsWith("var(")&&s.find((function(e){return(null==e?void 0:e.raw)===a.raw})))return void alert("CSS variable already exists: ".concat(a.raw));a.id=this.$_generateId(),a.name="".concat(this.i18n.color," #").concat(s.length+1),s.push(a),this.selectColor(a);break;case"delete":var u;if(t===c&&this.clearColor(),a=this.$_clone(this.value),this.colorsFromRaw[null===(o=a)||void 0===o?void 0:o.id])delete this.colorsFromRaw[null===(u=a)||void 0===u?void 0:u.id];s.splice(t,1);break;case"edit":this.editColorIndex=t,this.colorName=this.$_clone(l.name),t!==c&&this.selectColor(l),this.storedColor=this.$_clone(this.value);break;case"save":a=this.$_clone(this.value),this.colorName&&(a.name=this.colorName),this.inputRaw?a.raw=this.inputRaw:this.placeholderRaw&&(a.raw=this.placeholderRaw),s[this.editColorIndex]=a}this.$_state.colorPalette[r].colors=s,this.bricks.debug.includes("colorPalette")&&console.warn(e,s),this.savePalettesInDatabase().then((function(){if(i.deleteColor=!1,"save"===e){var t,n,o,r;if(null!==(t=a=i.$_clone(a))&&void 0!==t&&t.raw)i.placeholderRaw=a.raw,null!==(n=a)&&void 0!==n&&n.hex||null!==(o=a)&&void 0!==o&&o.rgb||null!==(r=a)&&void 0!==r&&r.hsl?delete a.raw:i.populateFromRaw(a);i.$emit("input",a),i.$nextTick((function(){i.editColorIndex=!1,i.changed=!1,i.inputRaw=null}))}}))}},savePalette:function(){var e=this,t=this.$_clone(this.colorPalette);switch(this.paletteAction){case"create":if(!this.paletteName)return;t.push({id:this.$_generateId(),name:this.paletteName,colors:[]});break;case"delete":var n=t.findIndex((function(t){return t.id===e.activePaletteId}));-1!==n&&(t.splice(n,1),this.activePaletteId=t.length?t[0].id:void 0);break;case"edit":if(!this.paletteName)return void(this.paletteAction=void 0);var o=t.findIndex((function(t){return t.id===e.activePaletteId}));-1!==o&&(t[o].name=this.paletteName)}this.$_state.colorPalette=t,this.savePalettesInDatabase().then((function(){e.togglePaletteAction()}))},savePalettesInDatabase:function(e){var t=this;return e&&(this.$_state.colorPalette=e),new Promise((function(e){t.$_http({data:{action:"bricks_save_color_palette",colorPalette:t.$_state.colorPalette},success:function(t){e(t)}})}))},togglePaletteAction:function(e){var t;"edit"===e?this.paletteName=(null===(t=this.activePalette)||void 0===t?void 0:t.name)||"":this.paletteName=void 0;this.paletteAction=this.paletteAction&&this.paletteAction===e?void 0:e},toggleColorsView:function(){this.colorsView="grid"===this.colorsView?"list":"grid"},exportPalette:function(){var e=this,t=this.colorPalette.find((function(t){return t.id===e.activePaletteId})),n=null!=t&&t.name?t.name.toLowerCase().replace(/-|\s/g,"_"):t.id;this.$_exportAsJsonFile(t,"bricks-color-palette-".concat(n))},importPalette:function(e){var t=this;if(e&&!(e.length<=0)){this.importResults=[];var n=this.$_clone(this.colorPalette),o=n.map((function(e){return e.name.toLowerCase()}));e.forEach((function(e){o.includes(e.name.toLowerCase())?t.importResults.push({text:t.i18n.fileNotImportedAlreadyExists.replace("%s",e.name),type:"error"}):(n.push({id:t.$_generateId(),name:e.name,colors:e.colors}),o.push(e.name.toLowerCase()),t.importResults.push({text:t.i18n.fileImported.replace("%s",e.name),type:"success"}))})),this.savePalettesInDatabase(n)}},getColorTooltip:function(e){if("list"!==this.colorsView){if(null!=e&&e.raw)return e.raw;var t=null==e?void 0:e.name;return null!=e&&e.hex&&(t+=" (".concat(e.hex,")")),t}},updateInputRangeStyles:function(){var e=this.$_clone(this.value),t=OW((null==e?void 0:e.rgb)||(null==e?void 0:e.hex)||this.inputHex),n=this.bricks.isRtl?"to left":"to right";t.isValid()&&(this.inputSaturationStyles={backgroundImage:"linear-gradient(".concat(n,", gray, ").concat(t.toHslString(),")")},this.inputLightnessStyles={backgroundImage:"linear-gradient(".concat(n,", black, ").concat(t.toHslString(),", white)")},this.inputAlphaStyles={backgroundImage:"linear-gradient(".concat(n,", transparent, ").concat(t.toHslString(),")")})}},mounted:function(){var e,t,n,o,i,r=this,a=this.colorPalette.find((function(e){return null==e?void 0:e.default}));if(a?i=a.id:this.palettes.length&&(i=this.palettes[this.palettes.length-1].id),this.value){var s,l,c,u=this.$_clone(this.value),d=!1;if(this.colorPalette.forEach((function(e){if(null!=e&&e.colors&&null!=e&&e.colors.length){var t=e.colors.find((function(e){var t;return(null==e?void 0:e.id)===(null===(t=u)||void 0===t?void 0:t.id)}));t&&(d=!0,r.activePaletteId=e.id,JSON.stringify(u)!==JSON.stringify(t)&&r.$emit("input",r.$_clone(t)),u=r.$_clone(t))}})),this.activePaletteId||(this.activePaletteId=i),d||(this.changed=!0),null!==(e=u)&&void 0!==e&&e.raw)this.placeholderRaw=u.raw,null!==(s=u)&&void 0!==s&&s.hex||null!==(l=u)&&void 0!==l&&l.rgb||null!==(c=u)&&void 0!==c&&c.hsl||(this.inputRaw=u.raw);var f=OW((null===(t=u)||void 0===t?void 0:t.rgb)||(null===(n=u)||void 0===n?void 0:n.hex)||(null===(o=u)||void 0===o?void 0:o.raw));if(f.isValid()){var p=f.toHexString(),h=f.toHsl(),m=f.toRgb(),g=f.getAlpha();this.inputHex=p,this.inputHue=Math.ceil(h.h),this.inputSaturation=Math.ceil(100*h.s),this.inputLightness=Math.ceil(100*h.l),this.inputRed=Math.ceil(m.r),this.inputGreen=Math.ceil(m.g),this.inputBlue=Math.ceil(m.b),this.inputAlpha=g}this.inputRaw?this.colorMode="raw":this.colorMode=1==this.inputAlpha?"hex":"rgb"}else i&&(this.activePaletteId=i)},watch:{hslInputs:function(){this.updateInputRangeStyles()},value:{handler:function(e){var t=this.$_clone(e),n=this.activePaletteColors.find((function(e){return(null==e?void 0:e.id)===(null==t?void 0:t.id)}));null!=n&&n.raw&&(t.raw=n.raw),this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette",t),this.updateInputRangeStyles(),null!=t&&t.hex||null!=t&&t.rgb||null!=t&&t.hsl||null!=t&&t.raw||this.$emit("input",!1)},deep:!0,immediate:!1},activePaletteId:{handler:function(){var e=this;this.$_clone(this.activePaletteColors).forEach((function(t){e.populateFromRaw(t)}))}},activePaletteColorsLength:{handler:function(){var e=this;this.$_clone(this.activePaletteColors).forEach((function(t){e.populateFromRaw(t)}))}},colorsView:function(){var e=this;if("list"===this.colorsView){var t=document.getElementById("bricks-panel-inner");this.$nextTick((function(){t&&t.scroll({top:e.$el.getBoundingClientRect().top,behavior:"smooth"})}))}}}};const dU=(0,tm.Z)(uU,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-text"),l=no("sortable"),c=no("control-select"),u=no("control-checkbox"),d=no("control-info"),f=no("control-file-import"),p=no("panel-control-popup");return Yr(),oa("div",wH,[ua("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[ua("span",{class:"color-value-tooltip","data-balloon":r.colorPreviewTooltip,"data-balloon-pos":"top-right"},null,8,kH),Io(ua("span",{class:ee([{"bricks-control-transparency-pattern":r.colorPreviewStyles}]),style:Z(r.colorPreviewStyles)},null,6),[[As,n.value]]),Io(da(a,{name:"color"},null,512),[[As,!r.colorPreviewStyles]])]),i.showPopup&&!e.$_isLocked()?(Yr(),ia(p,{key:0,show:i.showPopup,onClosePopup:t[56]||(t[56]=function(e){return i.showPopup=!1})},{default:Kn((function(){var o,p,h,m;return[Io(da(l,{tag:"ul",parent:r.activePaletteColors,options:{direction:"grid"===i.colorsView?"horizontal":"vertical",itemClass:"color",handleClass:"sortable"},class:ee(["color-palette",i.colorsView])},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.activePaletteColors,(function(o,l){var c,u;return Yr(),oa("li",{key:(null==o?void 0:o.id)||o.name,class:ee(["color",{edit:i.editColorIndex===l},{active:(null===(c=n.value)||void 0===c?void 0:c.id)===o.id}]),onClick:El((function(e){return i.editColorIndex!==l?r.selectColor(o):null}),["stop"]),onMouseenter:t[3]||(t[3]=function(e){return i.deleteColor=!1}),onMouseleave:t[4]||(t[4]=function(e){return i.deleteColor=!1})},[ua("div",{class:ee(["color-button",{sortable:!1===i.editColorIndex}]),"data-balloon":r.getColorTooltip(o),"data-balloon-pos":"bottom",style:Z(r.colorPaletteStyles(o,l))},null,14,CH),"list"===i.colorsView?(Yr(),oa("div",_H,[i.editColorIndex!==l?(Yr(),oa("span",{key:0,onClick:El((function(e){return r.selectColor(o)}),["stop"]),textContent:de(null!=o&&o.name?o.name:null!=o&&o.hex?o.hex:"")},null,8,SH)):(Yr(),ia(s,{key:1,onBlur:t[1]||(t[1]=function(e){return i.editColorIndex=!1}),value:i.colorName,"onUpdate:value":t[2]||(t[2]=function(e){return i.colorName=e}),control:{placeholder:e.i18n.color,hasDynamicData:!1}},null,8,["value","control"])),ua("div",TH,[da(a,{name:"clipboard","data-balloon":e.i18n.copyToClipboard,"data-balloon-pos":"top",onClick:El((function(e){return r.copyToClipboard(o)}),["stop"])},null,8,["data-balloon","onClick"]),Io(da(a,{name:i.editColorIndex===l?"check":"edit","data-balloon":i.editColorIndex===l?e.i18n.save:e.i18n.edit,"data-balloon-pos":"top",onClick:El((function(e){return r.manageColorsInPalette(i.editColorIndex===l?"save":"edit",l)}),["stop"])},null,8,["name","data-balloon","onClick"]),[[As,(null===(u=n.value)||void 0===u?void 0:u.id)===(null==o?void 0:o.id)]]),Io(da(a,{name:"trash",class:"delete","data-balloon":e.i18n.delete,"data-balloon-pos":"top",onClick:El((function(e){return i.deleteColor=null==o?void 0:o.id}),["stop"])},null,8,["data-balloon","onClick"]),[[As,!1===i.editColorIndex&&!i.deleteColor]]),Io(da(a,{name:"check",class:"confirm","data-balloon":e.i18n.confirm,"data-balloon-pos":"top",onClick:El((function(e){return r.manageColorsInPalette("delete",l)}),["stop"])},null,8,["data-balloon","onClick"]),[[As,!1===i.editColorIndex&&i.deleteColor===(null==o?void 0:o.id)]]),Io(da(a,{name:"close","data-balloon":e.i18n.cancel,"data-balloon-pos":"top",onClick:El(r.cancelColorEdit,["stop"])},null,8,["data-balloon","onClick"]),[[As,i.editColorIndex===l]])])])):va("",!0)],42,xH)})),128))]})),_:1},8,["parent","options","class"]),[[As,!i.paletteAction&&r.activePaletteColors.length]]),ua("div",$H,[ua("div",EH,[Io(ua("label",{class:ee(["label-action",{update:!1!==i.editColorIndex}]),textContent:de(e.i18n.save),onClick:t[5]||(t[5]=function(e){return r.manageColorsInPalette(!1===i.editColorIndex?"add":"save",i.editColorIndex)})},null,10,IH),[[As,Array.isArray(r.palettes)&&r.palettes.length&&i.changed&&n.value&&Object.keys(n.value).length]]),Io(ua("label",{textContent:de(e.i18n.cancel),class:"label-action",onClick:t[6]||(t[6]=function(){return r.cancelColorEdit&&r.cancelColorEdit.apply(r,arguments)})},null,8,MH),[[As,i.editColorIndex]]),Io(ua("label",{textContent:de(e.i18n.clear),class:"label-action",onClick:t[7]||(t[7]=function(e){return r.clearColor()})},null,8,AH),[[As,!i.editColorIndex]]),Io(da(a,{class:"icon",name:"grid"===i.colorsView?"columns":"grid","data-balloon":"grid"===i.colorsView?"".concat(e.i18n.list," (").concat(e.i18n.edit,")"):e.i18n.grid,"data-balloon-pos":"top-right",onClick:El(r.toggleColorsView,["stop"])},null,8,["name","data-balloon","onClick"]),[[As,!i.paletteAction]])]),ua("label",{textContent:de(e.i18n.hue),class:"hue title"},null,8,OH),Io(ua("input",{type:"range",min:"0",max:"360",step:"1","onUpdate:modelValue":t[8]||(t[8]=function(e){return i.inputHue=e}),onInput:t[9]||(t[9]=function(e){return r.updateColor("hsl",!0)}),class:"hue-picker title",placeholder:i.inputHue?null:"#000000"},null,40,PH),[[ml,i.inputHue]]),ua("label",{textContent:de(e.i18n.saturation),class:"title"},null,8,LH),Io(ua("input",{type:"range",min:"0",max:"100",step:"1","onUpdate:modelValue":t[10]||(t[10]=function(e){return i.inputSaturation=e}),onInput:t[11]||(t[11]=function(e){return r.updateColor("hsl",!0)}),style:Z(i.inputSaturationStyles),class:"saturation-picker"},null,36),[[ml,i.inputSaturation]]),ua("label",{textContent:de(e.i18n.lightness),class:"title"},null,8,DH),Io(ua("input",{type:"range",min:"0",max:"100",step:"1","onUpdate:modelValue":t[12]||(t[12]=function(e){return i.inputLightness=e}),onInput:t[13]||(t[13]=function(e){return r.updateColor("hsl",!0)}),style:Z(i.inputLightnessStyles),class:"lightness-picker"},null,36),[[ml,i.inputLightness]]),ua("label",{textContent:de(e.i18n.alpha),class:"title"},null,8,NH),ua("div",jH,[Io(ua("input",{type:"range",min:"0",max:"1",step:"0.01","onUpdate:modelValue":t[14]||(t[14]=function(e){return i.inputAlpha=e}),onInput:t[15]||(t[15]=function(){return r.onInputAlpha&&r.onInputAlpha.apply(r,arguments)}),style:Z(i.inputAlphaStyles),class:"alpha-picker"},null,36),[[ml,i.inputAlpha]])])]),ua("div",VH,[Io(ua("div",FH,[ua("div",RH,[Io(ua("input",{id:["hex-".concat(i.randomId)],type:"text","onUpdate:modelValue":t[16]||(t[16]=function(e){return i.inputHex=e}),onInput:t[17]||(t[17]=function(e){return r.updateColor("hex",!0)})},null,40,qH),[[ml,i.inputHex]]),ua("label",{for:["hex-".concat(i.randomId)]},"hex",8,BH)])],512),[[As,"hex"==i.colorMode]]),Io(ua("div",zH,[ua("div",HH,[Io(ua("input",{id:["rgb-r-".concat(i.randomId)],type:"number",min:"0",max:"255",step:"1","onUpdate:modelValue":t[18]||(t[18]=function(e){return i.inputRed=e}),onInput:t[19]||(t[19]=function(e){return r.updateColor("rgb",!0)})},null,40,WH),[[ml,i.inputRed]]),ua("label",{for:["rgb-r-".concat(i.randomId)]},"r",8,UH)]),ua("div",KH,[Io(ua("input",{id:["rgb-g-".concat(i.randomId)],type:"number",min:"0",max:"255",step:"1","onUpdate:modelValue":t[20]||(t[20]=function(e){return i.inputGreen=e}),onInput:t[21]||(t[21]=function(e){return r.updateColor("rgb",!0)})},null,40,GH),[[ml,i.inputGreen]]),ua("label",{for:["rgb-g-".concat(i.randomId)]},"g",8,ZH)]),ua("div",JH,[Io(ua("input",{id:["rgb-b-".concat(i.randomId)],type:"number",min:"0",max:"255",step:"1","onUpdate:modelValue":t[22]||(t[22]=function(e){return i.inputBlue=e}),onInput:t[23]||(t[23]=function(e){return r.updateColor("rgb",!0)})},null,40,YH),[[ml,i.inputBlue]]),ua("label",{for:["rgb-b-".concat(i.randomId)]},"b",8,QH)]),ua("div",XH,[Io(ua("input",{id:["rgb-a-".concat(i.randomId)],type:"number",min:"0",max:"1",step:"0.01","onUpdate:modelValue":t[24]||(t[24]=function(e){return i.inputAlpha=e}),onInput:t[25]||(t[25]=function(e){return r.updateColor("rgb",!0)})},null,40,eW),[[ml,i.inputAlpha]]),ua("label",{for:["rgb-a-".concat(i.randomId)]},"a",8,tW)])],512),[[As,"rgb"==i.colorMode]]),Io(ua("div",nW,[ua("div",oW,[Io(ua("input",{id:["hsl-h-".concat(i.randomId)],type:"number",min:"0",max:"360",step:"1","onUpdate:modelValue":t[26]||(t[26]=function(e){return i.inputHue=e}),onInput:t[27]||(t[27]=function(e){return r.updateColor("hsl",!0)})},null,40,iW),[[ml,i.inputHue]]),ua("label",{for:["hsl-h-".concat(i.randomId)]},"h",8,rW)]),ua("div",aW,[Io(ua("input",{id:["hsl-s-".concat(i.randomId)],type:"number",min:"0",max:"100",step:"1","onUpdate:modelValue":t[28]||(t[28]=function(e){return i.inputSaturation=e}),onInput:t[29]||(t[29]=function(e){return r.updateColor("hsl",!0)})},null,40,sW),[[ml,i.inputSaturation]]),ua("label",{for:["hsl-s-".concat(i.randomId)]},"s",8,lW)]),ua("div",cW,[Io(ua("input",{id:["hsl-l-".concat(i.randomId)],type:"number",min:"0",max:"100",step:"1","onUpdate:modelValue":t[30]||(t[30]=function(e){return i.inputLightness=e}),onInput:t[31]||(t[31]=function(e){return r.updateColor("hsl",!0)})},null,40,uW),[[ml,i.inputLightness]]),ua("label",{for:["hsl-l-".concat(i.randomId)]},"l",8,dW)]),ua("div",fW,[Io(ua("input",{id:["hsl-a-".concat(i.randomId)],type:"number",min:"0",max:"1",step:"0.01","onUpdate:modelValue":t[32]||(t[32]=function(e){return i.inputAlpha=e}),onInput:t[33]||(t[33]=function(e){return r.updateColor("hsl",!0)})},null,40,pW),[[ml,i.inputAlpha]]),ua("label",{for:["hsl-a-".concat(i.randomId)]},"a",8,hW)])],512),[[As,"hsl"==i.colorMode]]),Io(ua("div",mW,[ua("div",gW,[da(s,{control:{placeholder:r.getRawPlaceholder,hasDynamicData:"text",hasVariables:!0},controlKey:"raw-".concat(i.randomId),value:i.inputRaw,onInput:t[34]||(t[34]=function(e){return r.updateColor("raw",!0,e)}),onKeyup:t[35]||(t[35]=Ml((function(t){return!1===i.editColorIndex?null:r.manageColorsInPalette("save",e.colorIndex)}),["enter"]))},null,8,["control","controlKey","value"]),ua("label",{for:["raw-".concat(i.randomId)],textContent:de(e.i18n.raw)},null,8,vW)])],512),[[As,"raw"==i.colorMode]])]),ua("ul",bW,[ua("li",{class:ee({active:"hex"==i.colorMode})},[ua("span",{class:"text",textContent:"hex",onClick:t[36]||(t[36]=function(e){return i.colorMode="hex"})}),Io(ua("span",{class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"bottom",onClick:t[37]||(t[37]=function(e){return r.clearColor("hex")})},null,8,yW),[[As,null===(o=n.value)||void 0===o?void 0:o.hex]])],2),ua("li",{class:ee({active:"rgb"==i.colorMode})},[ua("span",{class:"text",textContent:"rgb",onClick:t[38]||(t[38]=function(e){return i.colorMode="rgb"})}),Io(ua("span",{class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"bottom",onClick:t[39]||(t[39]=function(e){return r.clearColor("rgb")})},null,8,wW),[[As,null===(p=n.value)||void 0===p?void 0:p.rgb]])],2),ua("li",{class:ee({active:"hsl"==i.colorMode})},[ua("span",{class:"text",textContent:"hsl",onClick:t[40]||(t[40]=function(e){return i.colorMode="hsl"})}),Io(ua("span",{class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"bottom",onClick:t[41]||(t[41]=function(e){return r.clearColor("hsl")})},null,8,kW),[[As,null===(h=n.value)||void 0===h?void 0:h.hsl]])],2),ua("li",{class:ee({active:"raw"==i.colorMode})},[ua("span",{class:"text",textContent:de(e.i18n.raw),onClick:t[42]||(t[42]=function(e){return i.colorMode="raw"})},null,8,xW),Io(ua("span",{class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"bottom",onClick:t[43]||(t[43]=function(e){return r.clearColor("raw")})},null,8,CW),[[As,null===(m=n.value)||void 0===m?void 0:m.raw]])],2)]),ua("div",_W,[r.hasLocalPalette||i.paletteAction?va("",!0):(Yr(),ia(c,{key:0,value:i.activePaletteId,"onUpdate:value":t[44]||(t[44]=function(e){return i.activePaletteId=e}),disabled:void 0!==i.paletteAction,control:r.paletteDropdownControl,"data-balloon":e.i18n.selectColorPalette,"data-balloon-pos":"top"},null,8,["value","disabled","control","data-balloon"])),"create"===i.paletteAction||"edit"===i.paletteAction||"delete"===i.paletteAction?(Yr(),ia(s,{key:1,value:i.paletteName,"onUpdate:value":t[45]||(t[45]=function(e){return i.paletteName=e}),control:{placeholder:e.i18n.newColorPalette,hasDynamicData:!1},onKeyup:t[46]||(t[46]=Ml((function(e){return r.savePalette()}),["enter"]))},null,8,["value","control"])):va("",!0),ua("div",SW,[Io(da(a,{name:"add","data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[47]||(t[47]=El((function(e){return r.togglePaletteAction("create")}),["stop"]))},null,8,["data-balloon"]),[[As,!i.paletteAction]]),"create"===i.paletteAction?(Yr(),ia(a,{key:0,"data-balloon":e.i18n.import,"data-balloon-pos":"top-right",name:"import",onClick:t[48]||(t[48]=El((function(e){return i.paletteAction="import"}),["stop"]))},null,8,["data-balloon"])):va("",!0),Io(da(a,{name:"edit","data-balloon":"".concat(e.i18n.edit," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[49]||(t[49]=El((function(e){return r.togglePaletteAction("edit")}),["stop"]))},null,8,["data-balloon"]),[[As,!i.paletteAction]]),"edit"===i.paletteAction?(Yr(),ia(a,{key:1,"data-balloon":e.i18n.export,"data-balloon-pos":"top-right",name:"export",onClick:El(r.exportPalette,["stop"])},null,8,["data-balloon","onClick"])):va("",!0),Io(da(a,{name:"trash","data-balloon":"".concat(e.i18n.delete," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[50]||(t[50]=El((function(e){return i.paletteAction="delete"}),["stop"]))},null,8,["data-balloon"]),[[As,"edit"===i.paletteAction]]),Io(da(a,{name:"check","data-balloon":e.i18n.confirm,"data-balloon-pos":"top-right",onClick:t[51]||(t[51]=El((function(e){return r.savePalette()}),["stop"]))},null,8,["data-balloon"]),[[As,"delete"===i.paletteAction]]),Io(da(u,{control:{type:"checkbox"},value:r.colorPaletteIsDefault,"data-balloon":e.i18n.default,"data-balloon-pos":"top-right",onInput:t[52]||(t[52]=function(e){return r.colorPaletteToggleDefault()})},null,8,["value","data-balloon"]),[[As,"edit"===i.paletteAction]])])]),r.activePaletteColors.length?va("",!0):(Yr(),ia(d,{key:0,control:{content:e.i18n.newColorPaletteCreateFirstColor}},null,8,["control"])),"create"===i.paletteAction||"edit"===i.paletteAction||"delete"===i.paletteAction?(Yr(),oa("div",TW,[ua("button",{onClick:t[53]||(t[53]=El((function(e){return r.savePalette()}),["stop"])),disabled:!i.paletteName,textContent:de("create"===i.paletteAction?e.i18n.create:e.i18n.save)},null,8,$W),ua("button",{class:"cancel",onClick:t[54]||(t[54]=El((function(e){return i.paletteAction=void 0}),["stop"])),textContent:de(e.i18n.cancel)},null,8,EW)])):va("",!0),"import"===i.paletteAction?(Yr(),ia(f,{key:2,control:r.fileImportControl,results:i.importResults,onImported:r.importPalette,onCloseMe:t[55]||(t[55]=function(e){return r.closeMe()})},null,8,["control","results","onImported"])):va("",!0)]})),_:1},8,["show"])):va("",!0)])}]]);var fU=dU,pU={class:"bricks-panel-controls"},hU={"data-control":"conditions"},mU={class:"title-wrapper"},gU=["textContent"],vU={class:"actions"},bU=["data-balloon"],yU=["data-balloon"],wU={key:0,class:"conditions"},kU=["data-label"],xU=["data-label"],CU={class:"actions"},_U={key:1,class:"no-results"},SU=["href","textContent"];var TU={computed:{element:function(){return this.$_getFinalElement()},elementConditions:function(){var e;return(null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._conditions)||[]},conditionControls:function(){return this.bricks.controls.conditions},keyOptions:function(){var e=this,t={};return Object.keys(this.conditionControls).forEach((function(n){var o;t[n]=null===(o=e.conditionControls[n])||void 0===o?void 0:o.label})),t}},methods:{keyUpdated:function(e,t){delete t.compare,delete t.value,delete t.dynamic_data},setCompare:function(e,t){t?e.compare=t:delete e.compare},getCompareControl:function(e){var t;return e&&null!==(t=this.conditionControls[e])&&void 0!==t&&t.compare?this.conditionControls[e].compare:{type:"text",hasDynamicData:!1,placeholder:"=="}},getValueControl:function(e){var t;return e&&null!==(t=this.conditionControls[e])&&void 0!==t&&t.value?this.conditionControls[e].value:{type:"text"}},addCondition:function(){var e,t;null!==(e=this.element)&&void 0!==e&&e.settings?null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._conditions||(this.element.settings._conditions=[]):this.element.settings={_conditions:[]},this.elementConditions.push([{id:this.$_generateId()}])},addItem:function(e){this.elementConditions[e].push({id:this.$_generateId()})},deleteItem:function(e,t){this.elementConditions[e].splice(t,1),this.elementConditions[e].length||this.elementConditions.splice(e,1)}},watch:{elementConditions:{handler:function(e){var t,n;e.length?(null!==(n=this.element)&&void 0!==n&&n.settings||(this.element.settings={}),this.element.settings._conditions=e):null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._conditions&&delete this.element.settings._conditions},deep:!0}}};var $U=(0,tm.Z)(TU,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("control-info");return Yr(),oa("div",pU,[ua("div",hU,[ua("div",mU,[ua("div",{class:"title",textContent:de(e.i18n.conditions)},null,8,gU),ua("div",vU,[ua("div",{class:"add",onClick:t[0]||(t[0]=function(e){return r.addCondition()}),"data-balloon":e.i18n.add,"data-balloon-pos":"bottom-right"},[da(a,{name:"add"})],8,bU),ua("div",{class:"close",onClick:t[1]||(t[1]=function(t){return e.$_state.showConditions=!1}),"data-balloon":e.i18n.close,"data-balloon-pos":"bottom-right"},[da(a,{name:"close"})],8,yU)])]),r.elementConditions.length?(Yr(),oa("ul",wU,[(Yr(!0),oa(Wr,null,gi(r.elementConditions,(function(t,n){return Yr(),oa("li",{key:n,class:ee(["condition",{"has-label":n+1<r.elementConditions.length}]),"data-label":e.i18n.or},[(Yr(!0),oa(Wr,null,gi(t,(function(o,i){return Yr(),oa("div",{key:null==o?void 0:o.id,class:ee(["item",{"has-label":i+1<t.length}]),"data-label":e.i18n.and},[ua("div",CU,[da(a,{name:"add",onClick:function(e){return r.addItem(n)},"data-balloon":"".concat(e.i18n.add," (").concat(e.i18n.condition,")"),"data-balloon-pos":"bottom-right"},null,8,["onClick","data-balloon"]),da(a,{name:"trash",onClick:function(e){return r.deleteItem(n,i)},"data-balloon":"".concat(e.i18n.delete," (").concat(e.i18n.condition,")"),"data-balloon-pos":"bottom-right"},null,8,["onClick","data-balloon"])]),da(s,{controlKey:"key",control:{type:"select",options:r.keyOptions,searchable:!0,placeholder:e.i18n.conditionSelect},settings:o,value:null==o?void 0:o.key,onUpdated:function(e){return r.keyUpdated(e,o)}},null,8,["control","settings","value","onUpdated"]),Io(da(s,{controlKey:"dynamic_data",control:{type:"text",placeholder:e.i18n.dynamicData},settings:o},null,8,["control","settings"]),[[As,"dynamic_data"===(null==o?void 0:o.key)]]),Io(da(s,{controlKey:"compare",control:r.getCompareControl(null==o?void 0:o.key),settings:o},null,8,["control","settings"]),[[As,null==o?void 0:o.key]]),Io(da(s,{controlKey:"value",control:r.getValueControl(null==o?void 0:o.key),settings:o},null,8,["control","settings"]),[[As,null==o?void 0:o.key]])],10,xU)})),128))],10,kU)})),128))])):(Yr(),oa("div",_U,[da(l,{control:{content:e.i18n.noConditionsSet}},null,8,["control"]),ua("a",{href:e.bricks.academy.conditions,target:"_blank",class:"button",textContent:de(e.i18n.learnMore)},null,8,SU)]))])])}]]),EU={"data-control":"date-picker"},IU=["value","placeholder"];var MU=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],AU={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},OU={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},PU=OU,LU=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},DU=function(e){return!0===e?1:0};function NU(e,t){var n;return function(){var o=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(o,i)}),t)}}var jU=function(e){return e instanceof Array?e:[e]};function VU(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function FU(e,t,n){var o=window.document.createElement(e);return t=t||"",n=n||"",o.className=t,void 0!==n&&(o.textContent=n),o}function RU(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function qU(e,t){return t(e)?e:e.parentNode?qU(e.parentNode,t):void 0}function BU(e,t){var n=FU("div","numInputWrapper"),o=FU("input","numInput "+e),i=FU("span","arrowUp"),r=FU("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?o.type="number":(o.type="text",o.pattern="\\d*"),void 0!==t)for(var a in t)o.setAttribute(a,t[a]);return n.appendChild(o),n.appendChild(i),n.appendChild(r),n}function zU(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var HU=function(){},WU=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},UU={D:HU,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*DU(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var o=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(o-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:HU,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:HU,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},KU={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},GU={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[GU.w(e,t,n)]},F:function(e,t,n){return WU(GU.n(e,t,n)-1,!1,t)},G:function(e,t,n){return LU(GU.h(e,t,n))},H:function(e){return LU(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[DU(e.getHours()>11)]},M:function(e,t){return WU(e.getMonth(),!0,t)},S:function(e){return LU(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return LU(e.getFullYear(),4)},d:function(e){return LU(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return LU(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return LU(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},ZU=function(e){var t=e.config,n=void 0===t?AU:t,o=e.l10n,i=void 0===o?OU:o,r=e.isMobile,a=void 0!==r&&r;return function(e,t,o){var r=o||i;return void 0===n.formatDate||a?t.split("").map((function(t,o,i){return GU[t]&&"\\"!==i[o-1]?GU[t](e,r,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,r)}},JU=function(e){var t=e.config,n=void 0===t?AU:t,o=e.l10n,i=void 0===o?OU:o;return function(e,t,o,r){if(0===e||e){var a,s=r||i,l=e;if(e instanceof Date)a=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)a=new Date(e);else if("string"==typeof e){var c=t||(n||AU).dateFormat,u=String(e).trim();if("today"===u)a=new Date,o=!0;else if(n&&n.parseDate)a=n.parseDate(e,c);else if(/Z$/.test(u)||/GMT$/.test(u))a=new Date(e);else{for(var d=void 0,f=[],p=0,h=0,m="";p<c.length;p++){var g=c[p],v="\\"===g,b="\\"===c[p-1]||v;if(KU[g]&&!b){m+=KU[g];var y=new RegExp(m).exec(e);y&&(d=!0)&&f["Y"!==g?"push":"unshift"]({fn:UU[g],val:y[++h]})}else v||(m+=".")}a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach((function(e){var t=e.fn,n=e.val;return a=t(a,n,s)||a})),a=d?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===o&&a.setHours(0,0,0,0),a;n.errorHandler(new Error("Invalid date provided: "+l))}}};function YU(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var QU=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},XU=function(e,t,n){return 3600*e+60*t+n},eK=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},tK={DAY:864e5};function nK(e){var t=e.defaultHour,n=e.defaultMinute,o=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),r=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<i&&(t=i),t===i&&n<r&&(n=r),t===i&&n===r&&o<a&&(o=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(o=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:o}}n(1895);var oK=function(){return oK=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},oK.apply(this,arguments)},iK=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},rK=300;function aK(e,t){var n={config:oK(oK({},AU),lK.defaultConfig),l10n:PU};function o(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function i(e){return e.bind(n)}function r(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function a(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||YU(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),o=nK(n.config);t.setHours(o.hours,o.minutes,o.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,o=zU(e),i=o;void 0!==n.amPM&&o===n.amPM&&(n.amPM.textContent=n.l10n.amPM[DU(n.amPM.textContent===n.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),a=parseFloat(i.getAttribute("max")),s=parseFloat(i.getAttribute("step")),l=parseInt(i.value,10),c=e.delta||(t?38===e.which?1:-1:0),u=l+s*c;if(void 0!==i.value&&2===i.value.length){var d=i===n.hourElement,f=i===n.minuteElement;u<r?(u=a+u+DU(!d)+(DU(d)&&DU(!n.amPM)),f&&m(void 0,-1,n.hourElement)):u>a&&(u=i===n.hourElement?u-a-DU(!n.amPM):r,f&&m(void 0,1,n.hourElement)),n.amPM&&d&&(1===s?u+l===23:Math.abs(u-l)>s)&&(n.amPM.textContent=n.l10n.amPM[DU(n.amPM.textContent===n.l10n.amPM[0])]),i.value=LU(u)}}(e);var i=n._input.value;s(),X(),n._input.value!==i&&n._debouncedChange()}function s(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,o=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(n.minuteElement.value,10)||0)%60,r=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=o,t=n.amPM.textContent,o=e%12+12*DU(t===n.l10n.amPM[1]));var a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===YU(n.latestSelectedDateObj,n.config.minDate,!0),s=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===YU(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var l=XU(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),u=XU(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=XU(o,i,r);if(d>u&&d<l){var f=eK(l);o=f[0],i=f[1],r=f[2]}}else{if(s){var p=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(o=Math.min(o,p.getHours()))===p.getHours()&&(i=Math.min(i,p.getMinutes())),i===p.getMinutes()&&(r=Math.min(r,p.getSeconds()))}if(a){var h=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(o=Math.max(o,h.getHours()))===h.getHours()&&i<h.getMinutes()&&(i=h.getMinutes()),i===h.getMinutes()&&(r=Math.max(r,h.getSeconds()))}}c(o,i,r)}}function l(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&c(t.getHours(),t.getMinutes(),t.getSeconds())}function c(e,t,o){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,o||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=LU(n.config.time_24hr?e:(12+e)%12+12*DU(e%12==0)),n.minuteElement.value=LU(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[DU(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=LU(o)))}function u(e){var t=zU(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&M(n)}function d(e,t,o,i){return t instanceof Array?t.forEach((function(t){return d(e,t,o,i)})):e instanceof Array?e.forEach((function(e){return d(e,t,o,i)})):(e.addEventListener(t,o,i),void n._handlers.push({remove:function(){return e.removeEventListener(t,o,i)}}))}function f(){G("onChange")}function p(e,t){var o=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),i=n.currentYear,r=n.currentMonth;try{void 0!==o&&(n.currentYear=o.getFullYear(),n.currentMonth=o.getMonth())}catch(e){e.message="Invalid date supplied: "+o,n.config.errorHandler(e)}t&&n.currentYear!==i&&(G("onYearChange"),x()),!t||n.currentYear===i&&n.currentMonth===r||G("onMonthChange"),n.redraw()}function h(e){var t=zU(e);~t.className.indexOf("arrow")&&m(e,t.classList.contains("arrowUp")?1:-1)}function m(e,t,n){var o=e&&zU(e),i=n||o&&o.parentNode&&o.parentNode.firstChild,r=Z("increment");r.delta=t,i&&i.dispatchEvent(r)}function g(e,t,o,i){var r=A(t,!0),a=FU("span",e,t.getDate().toString());return a.dateObj=t,a.$i=i,a.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===YU(t,n.now)&&(n.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),r?(a.tabIndex=-1,J(t)&&(a.classList.add("selected"),n.selectedDateElem=a,"range"===n.config.mode&&(VU(a,"startRange",n.selectedDates[0]&&0===YU(t,n.selectedDates[0],!0)),VU(a,"endRange",n.selectedDates[1]&&0===YU(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(YU(e,n.selectedDates[0])>=0&&YU(e,n.selectedDates[1])<=0)}(t)&&!J(t)&&a.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),G("onDayCreate",a),a}function v(e){e.focus(),"range"===n.config.mode&&D(e)}function b(e){for(var t=e>0?0:n.config.showMonths-1,o=e>0?n.config.showMonths:-1,i=t;i!=o;i+=e)for(var r=n.daysContainer.children[i],a=e>0?0:r.children.length-1,s=e>0?r.children.length:-1,l=a;l!=s;l+=e){var c=r.children[l];if(-1===c.className.indexOf("hidden")&&A(c.dateObj))return c}}function y(e,t){var i=o(),r=O(i||document.body),a=void 0!==e?e:r?i:void 0!==n.selectedDateElem&&O(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&O(n.todayDateElem)?n.todayDateElem:b(t>0?1:-1);void 0===a?n._input.focus():r?function(e,t){for(var o=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,i=t>0?n.config.showMonths:-1,r=t>0?1:-1,a=o-n.currentMonth;a!=i;a+=r)for(var s=n.daysContainer.children[a],l=o-n.currentMonth===a?e.$i+t:t<0?s.children.length-1:0,c=s.children.length,u=l;u>=0&&u<c&&u!=(t>0?c:-1);u+=r){var d=s.children[u];if(-1===d.className.indexOf("hidden")&&A(d.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return v(d)}n.changeMonth(r),y(b(r),0)}(a,t):v(a)}function w(e,t){for(var o=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,i=n.utils.getDaysInMonth((t-1+12)%12,e),r=n.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay",u=i+1-o,d=0;u<=i;u++,d++)a.appendChild(g("flatpickr-day "+l,new Date(e,t-1,u),0,d));for(u=1;u<=r;u++,d++)a.appendChild(g("flatpickr-day",new Date(e,t,u),0,d));for(var f=r+1;f<=42-o&&(1===n.config.showMonths||d%7!=0);f++,d++)a.appendChild(g("flatpickr-day "+c,new Date(e,t+1,f%r),0,d));var p=FU("div","dayContainer");return p.appendChild(a),p}function k(){if(void 0!==n.daysContainer){RU(n.daysContainer),n.weekNumbers&&RU(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var o=new Date(n.currentYear,n.currentMonth,1);o.setMonth(n.currentMonth+t),e.appendChild(w(o.getFullYear(),o.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&D()}}function x(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var o=FU("option","flatpickr-monthDropdown-month");o.value=new Date(n.currentYear,t).getMonth().toString(),o.textContent=WU(t,n.config.shorthandCurrentMonth,n.l10n),o.tabIndex=-1,n.currentMonth===t&&(o.selected=!0),n.monthsDropdownContainer.appendChild(o)}}}function C(){var e,t=FU("div","flatpickr-month"),o=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=FU("span","cur-month"):(n.monthsDropdownContainer=FU("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),d(n.monthsDropdownContainer,"change",(function(e){var t=zU(e),o=parseInt(t.value,10);n.changeMonth(o-n.currentMonth),G("onMonthChange")})),x(),e=n.monthsDropdownContainer);var i=BU("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&r.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(r.setAttribute("max",n.config.maxDate.getFullYear().toString()),r.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var a=FU("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(i),o.appendChild(a),t.appendChild(o),{container:t,yearElement:r,monthElement:e}}function _(){RU(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=C();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function S(){n.weekdayContainer?RU(n.weekdayContainer):n.weekdayContainer=FU("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=FU("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return T(),n.weekdayContainer}function T(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=iK(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=iK(t.splice(e,t.length),t.splice(0,e)));for(var o=n.config.showMonths;o--;)n.weekdayContainer.children[o].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function $(e,t){void 0===t&&(t=!0);var o=t?e:e-n.currentMonth;o<0&&!0===n._hidePrevMonthArrow||o>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=o,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,G("onYearChange"),x()),k(),G("onMonthChange"),Y())}function E(e){return n.calendarContainer.contains(e)}function I(e){if(n.isOpen&&!n.config.inline){var t=zU(e),o=E(t),i=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!o&&!E(e.relatedTarget),r=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&r&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&a(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function M(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,o=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),o&&(n.redraw(),G("onYearChange"),x())}}function A(e,t){var o;void 0===t&&(t=!0);var i=n.parseDate(e,void 0,t);if(n.config.minDate&&i&&YU(i,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&i&&YU(i,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!n.config.enable,a=null!==(o=n.config.enable)&&void 0!==o?o:n.config.disable,s=0,l=void 0;s<a.length;s++){if("function"==typeof(l=a[s])&&l(i))return r;if(l instanceof Date&&void 0!==i&&l.getTime()===i.getTime())return r;if("string"==typeof l){var c=n.parseDate(l,void 0,!0);return c&&c.getTime()===i.getTime()?r:!r}if("object"==typeof l&&void 0!==i&&l.from&&l.to&&i.getTime()>=l.from.getTime()&&i.getTime()<=l.to.getTime())return r}return!r}function O(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function P(e){var t=e.target===n._input,o=n._input.value.trimEnd()!==Q();!t||!o||e.relatedTarget&&E(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function L(t){var i=zU(t),r=n.config.wrap?e.contains(i):i===n._input,l=n.config.allowInput,c=n.isOpen&&(!l||!r),u=n.config.inline&&r&&!l;if(13===t.keyCode&&r){if(l)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(E(i)||c||u){var d=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:d?(t.preventDefault(),a(),B()):z(t);break;case 27:t.preventDefault(),B();break;case 8:case 46:r&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(d||r)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var f=o();if(void 0!==n.daysContainer&&(!1===l||f&&O(f))){var p=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),$(p),y(b(1),0)):y(void 0,p)}}break;case 38:case 40:t.preventDefault();var h=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),M(n.currentYear-h),y(b(1),0)):d||y(void 0,7*h):i===n.currentYearElement?M(n.currentYear-h):n.config.enableTime&&(!d&&n.hourElement&&n.hourElement.focus(),a(t),n._debouncedChange());break;case 9:if(d){var m=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),g=m.indexOf(i);if(-1!==g){var v=m[g+(t.shiftKey?-1:1)];t.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],s(),X();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],s(),X()}(r||E(i))&&G("onKeyDown",t)}function D(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var o=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),r=Math.min(o,n.selectedDates[0].getTime()),a=Math.max(o,n.selectedDates[0].getTime()),s=!1,l=0,c=0,u=r;u<a;u+=tK.DAY)A(new Date(u),!0)||(s=s||u>r&&u<a,u<i&&(!l||u>l)?l=u:u>i&&(!c||u<c)&&(c=u));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach((function(t){var r=t.dateObj.getTime(),a=l>0&&r<l||c>0&&r>c;if(a)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));s&&!a||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(o<=n.selectedDates[0].getTime()?"startRange":"endRange"),i<o&&r===i?t.classList.add("startRange"):i>o&&r===i&&t.classList.add("endRange"),r>=l&&(0===c||r<=c)&&QU(r,i,o)&&t.classList.add("inRange")))}))}}function N(){!n.isOpen||n.config.static||n.config.inline||R()}function j(e){return function(t){var o=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),i=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==o&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=o.getHours()>0||o.getMinutes()>0||o.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return A(e)})),n.selectedDates.length||"min"!==e||l(o),X()),n.daysContainer&&(q(),void 0!==o?n.currentYearElement[e]=o.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!i&&void 0!==o&&i.getFullYear()===o.getFullYear())}}function V(){return n.config.wrap?e.querySelector("[data-input]"):e}function F(){"object"!=typeof n.config.locale&&void 0===lK.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=oK(oK({},lK.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?lK.l10ns[n.config.locale]:void 0),KU.D="("+n.l10n.weekdays.shorthand.join("|")+")",KU.l="("+n.l10n.weekdays.longhand.join("|")+")",KU.M="("+n.l10n.months.shorthand.join("|")+")",KU.F="("+n.l10n.months.longhand.join("|")+")",KU.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===oK(oK({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===lK.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=ZU(n),n.parseDate=JU({config:n.config,l10n:n.l10n})}function R(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){G("onPreCalendarPosition");var t=e||n._positionElement,o=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=n.calendarContainer.offsetWidth,r=n.config.position.split(" "),a=r[0],s=r.length>1?r[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,u="above"===a||"below"!==a&&c<o&&l.top>o,d=window.pageYOffset+l.top+(u?-o-2:t.offsetHeight+2);if(VU(n.calendarContainer,"arrowTop",!u),VU(n.calendarContainer,"arrowBottom",u),!n.config.inline){var f=window.pageXOffset+l.left,p=!1,h=!1;"center"===s?(f-=(i-l.width)/2,p=!0):"right"===s&&(f-=i-l.width,h=!0),VU(n.calendarContainer,"arrowLeft",!p&&!h),VU(n.calendarContainer,"arrowCenter",p),VU(n.calendarContainer,"arrowRight",h);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=f+i>window.document.body.offsetWidth,v=m+i>window.document.body.offsetWidth;if(VU(n.calendarContainer,"rightMost",g),!n.config.static)if(n.calendarContainer.style.top=d+"px",g)if(v){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(o=document.createElement("style"),document.head.appendChild(o),o.sheet);var o}();if(void 0===b)return;var y=window.document.body.offsetWidth,w=Math.max(0,y/2-i/2),k=b.cssRules.length,x="{left:"+l.left+"px;right:auto;}";VU(n.calendarContainer,"rightMost",!1),VU(n.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,k),n.calendarContainer.style.left=w+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=m+"px";else n.calendarContainer.style.left=f+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function q(){n.config.noCalendar||n.isMobile||(x(),Y(),k())}function B(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function z(e){e.preventDefault(),e.stopPropagation();var t=qU(zU(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var o=t,i=n.latestSelectedDateObj=new Date(o.dateObj.getTime()),r=(i.getMonth()<n.currentMonth||i.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=o,"single"===n.config.mode)n.selectedDates=[i];else if("multiple"===n.config.mode){var a=J(i);a?n.selectedDates.splice(parseInt(a),1):n.selectedDates.push(i)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=i,n.selectedDates.push(i),0!==YU(i,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(s(),r){var l=n.currentYear!==i.getFullYear();n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth(),l&&(G("onYearChange"),x()),G("onMonthChange")}if(Y(),k(),X(),r||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():v(o),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||u)&&B()}f()}}n.parseDate=JU({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=d,n._setHoursFromDate=l,n._positionCalendar=R,n.changeMonth=$,n.changeYear=M,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var o=nK(n.config);c(o.hours,o.minutes,o.seconds)}n.redraw(),e&&G("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));G("onClose")},n.onMouseOver=D,n._createElement=FU,n.createDay=g,n.destroy=function(){void 0!==n.config&&G("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete n[e]}catch(e){}}))},n.isEnabled=A,n.jumpToDate=p,n.updateValue=X,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var o=zU(e);o&&o.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void G("onOpen")}if(n._input.disabled||n.config.inline)return;var i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),G("onOpen"),R(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=q,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var o in Object.assign(n.config,e),e)void 0!==H[o]&&H[o].forEach((function(e){return e()}));else n.config[e]=t,void 0!==H[e]?H[e].forEach((function(e){return e()})):MU.indexOf(e)>-1&&(n.config[e]=jU(t));n.redraw(),X(!0)},n.setDate=function(e,t,o){void 0===t&&(t=!1);void 0===o&&(o=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);W(e,o),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),p(void 0,t),l(),0===n.selectedDates.length&&n.clear(!1);X(t),t&&G("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var H={locale:[F,T],showMonths:[_,r,S],minDate:[p],maxDate:[p],positionElement:[K],clickOpens:[function(){!0===n.config.clickOpens?(d(n._input,"focus",n.open),d(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function W(e,t){var o=[];if(e instanceof Array)o=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)o=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":o=[n.parseDate(e,t)];break;case"multiple":o=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case"range":o=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?o:o.filter((function(e){return e instanceof Date&&A(e,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function U(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function K(){n._positionElement=n.config.positionElement||n._input}function G(e,t){if(void 0!==n.config){var o=n.config[e];if(void 0!==o&&o.length>0)for(var i=0;o[i]&&i<o.length;i++)o[i](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(Z("change")),n.input.dispatchEvent(Z("input")))}}function Z(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function J(e){for(var t=0;t<n.selectedDates.length;t++){var o=n.selectedDates[t];if(o instanceof Date&&0===YU(o,e))return""+t}return!1}function Y(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach((function(e,t){var o=new Date(n.currentYear,n.currentMonth,1);o.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=WU(o.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=o.getMonth().toString(),e.value=o.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Q(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,o){return"range"!==n.config.mode||n.config.enableTime||o.indexOf(e)===t})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function X(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Q(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Q(n.config.altFormat)),!1!==e&&G("onValueUpdate")}function ee(e){var t=zU(e),o=n.prevMonthNav.contains(t),i=n.nextMonthNav.contains(t);o||i?$(o?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=oK(oK({},JSON.parse(JSON.stringify(e.dataset||{}))),t),a={};n.config.parseDate=r.parseDate,n.config.formatDate=r.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=U(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=U(e)}});var s="time"===r.mode;if(!r.dateFormat&&(r.enableTime||s)){var l=lK.defaultConfig.dateFormat||AU.dateFormat;a.dateFormat=r.noCalendar||s?"H:i"+(r.enableSeconds?":S":""):l+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||s)&&!r.altFormat){var c=lK.defaultConfig.altFormat||AU.altFormat;a.altFormat=r.noCalendar||s?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:j("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:j("max")});var u=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:u("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:u("max")}),"time"===r.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,a,r);for(var d=0;d<o.length;d++)n.config[o[d]]=!0===n.config[o[d]]||"true"===n.config[o[d]];MU.filter((function(e){return void 0!==n.config[e]})).forEach((function(e){n.config[e]=jU(n.config[e]||[]).map(i)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<n.config.plugins.length;d++){var f=n.config.plugins[d](n)||{};for(var p in f)MU.indexOf(p)>-1?n.config[p]=jU(f[p]).map(i).concat(n.config[p]):void 0===r[p]&&(n.config[p]=f[p])}r.altInputClass||(n.config.altInputClass=V().className+" "+n.config.altInputClass);G("onParseConfig")}(),F(),function(){if(n.input=V(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=FU(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");K()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&W(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=FU("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=FU("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=FU("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=FU("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,_(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(VU(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(VU(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],Y(),n.monthNav)),n.innerContainer=FU("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=FU("div","flatpickr-weekwrapper");e.appendChild(FU("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=FU("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),o=t.weekWrapper,i=t.weekNumbers;n.innerContainer.appendChild(o),n.weekNumbers=i,n.weekWrapper=o}n.rContainer=FU("div","flatpickr-rContainer"),n.rContainer.appendChild(S()),n.daysContainer||(n.daysContainer=FU("div","flatpickr-days"),n.daysContainer.tabIndex=-1),k(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=nK(n.config);n.timeContainer=FU("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=FU("span","flatpickr-time-separator",":"),o=BU("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=o.getElementsByTagName("input")[0];var i=BU("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=i.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=LU(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=LU(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(o),n.timeContainer.appendChild(t),n.timeContainer.appendChild(i),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var r=BU("flatpickr-second");n.secondElement=r.getElementsByTagName("input")[0],n.secondElement.value=LU(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(FU("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(r)}n.config.time_24hr||(n.amPM=FU("span","flatpickr-am-pm",n.l10n.amPM[DU((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());VU(n.calendarContainer,"rangeMode","range"===n.config.mode),VU(n.calendarContainer,"animate",!0===n.config.animate),VU(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var r=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!r&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var a=FU("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(a,n.element),a.appendChild(n.element),n.altInput&&a.appendChild(n.altInput),a.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),(function(t){return d(t,"click",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=FU("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}d(n.mobileInput,"change",(function(e){n.setDate(zU(e).value,!1,n.mobileFormatStr),G("onChange"),G("onClose")}))}();var e=NU(N,50);n._debouncedChange=NU(f,rK),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&d(n.daysContainer,"mouseover",(function(e){"range"===n.config.mode&&D(zU(e))}));d(n._input,"keydown",L),void 0!==n.calendarContainer&&d(n.calendarContainer,"keydown",L);n.config.inline||n.config.static||d(window,"resize",e);void 0!==window.ontouchstart?d(window.document,"touchstart",I):d(window.document,"mousedown",I);d(window.document,"focus",I,{capture:!0}),!0===n.config.clickOpens&&(d(n._input,"focus",n.open),d(n._input,"click",n.open));void 0!==n.daysContainer&&(d(n.monthNav,"click",ee),d(n.monthNav,["keyup","increment"],u),d(n.daysContainer,"click",z));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return zU(e).select()};d(n.timeContainer,["increment"],a),d(n.timeContainer,"blur",a,{capture:!0}),d(n.timeContainer,"click",h),d([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&d(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&d(n.amPM,"click",(function(e){a(e)}))}n.config.allowInput&&d(n._input,"blur",P)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&l(n.config.noCalendar?n.latestSelectedDateObj:void 0),X(!1)),r();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&o&&R(),G("onReady")}(),n}function sK(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),o=[],i=0;i<n.length;i++){var r=n[i];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=aK(r,t||{}),o.push(r._flatpickr)}catch(e){console.error(e)}}return 1===o.length?o[0]:o}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return sK(this,e)},HTMLElement.prototype.flatpickr=function(e){return sK([this],e)});var lK=function(e,t){return"string"==typeof e?sK(window.document.querySelectorAll(e),t):e instanceof Node?sK([e],t):sK(e,t)};lK.defaultConfig={},lK.l10ns={en:oK({},PU),default:oK({},PU)},lK.localize=function(e){lK.l10ns.default=oK(oK({},lK.l10ns.default),e)},lK.setDefaults=function(e){lK.defaultConfig=oK(oK({},lK.defaultConfig),e)},lK.parseDate=JU({}),lK.formatDate=ZU({}),lK.compareDates=YU,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return sK(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=lK);var cK=lK,uK=n(7908),dK=n.n(uK);function fK(e){return fK="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},fK(e)}function pK(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 hK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pK(Object(n),!0).forEach((function(t){mK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mK(e,t,n){var o;return o=function(e,t){if("object"!=fK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fK(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==fK(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gK={emits:["input"],props:["value","control"],data:function(){return{flatpickrInstance:null,showDynamicPicker:!1}},computed:{flatpickrValue:function(){return this.value},flatpickrPlaceholder:function(){var e,t=(null===(e=this.control)||void 0===e?void 0:e.placeholder)||"";return this.flatpickrValue?"":t}},methods:{initFlatpickr:function(){var e={enableTime:!this.control.hasOwnProperty("enableTime")||this.control.enableTime,altInput:!this.control.hasOwnProperty("altInput")||this.control.altInput},t=this.bricks.locale.split("_")[0];null!==dK()&&void 0!==dK()&&dK()[t]&&(e.locale=t);var n=this.control.options||{},o=hK(hK({},e),n);this.flatpickrInstance=new cK(this.$refs.flatpickr,o)},addDynamicTag:function(e){}},mounted:function(){this.initFlatpickr()},beforeUnmount:function(){this.flatpickrInstance.destroy()},watch:{flatpickrValue:function(){this.flatpickrValue||this.flatpickrInstance.destroy()}}};var vK=(0,tm.Z)(gK,[["render",function(e,t,n,o,i,r){var a,s=no("control-dynamic-tag-picker");return Yr(),oa("div",EU,[ua("input",{ref:"flatpickr",value:r.flatpickrValue,onInput:t[0]||(t[0]=function(t){return e.$emit("input",t.target.value)}),placeholder:r.flatpickrPlaceholder},null,40,IU),null!==(a=n.control)&&void 0!==a&&a.hasDynamicData?(Yr(),ia(s,{key:0,control:{context:"text"},controlKey:"date",isOpen:i.showDynamicPicker,onCloseMe:t[1]||(t[1]=function(e){return i.showDynamicPicker=!1}),onInput:r.addDynamicTag,onToggle:t[2]||(t[2]=function(e){return i.showDynamicPicker=!i.showDynamicPicker})},null,8,["isOpen","onInput"])):va("",!0)])}]]),bK={"data-control":"editor"},yK={class:"bricks-wp-editor-wrapper",ref:"editor"};var wK={emits:["input"],props:["value","control","controlKey"],data:function(){return{editorId:"brickswpeditor-".concat(this.$_generateId()),textarea:!1,editorQuicktags:{}}},methods:{initTinyMCE:function(){var e=this;this.$refs.editor.innerHTML=this.bricks.wpEditor.replace(/brickswpeditor/g,this.editorId).replace("%%BRICKS_EDITOR_CONTENT_PLACEHOLDER%%",this.value?this.value:"");var t=jQuery.extend(!0,{},tinyMCEPreInit.mceInit.brickswpeditor);t.selector="#".concat(this.editorId);var n=this.bricks.dynamicTags,o={};n.forEach((function(t){var n=t.hasOwnProperty("group")?t.group:"other";o.hasOwnProperty(n)||(o[n]={text:e.i18n.hasOwnProperty(n)?e.i18n[n]:n,menu:[]}),o[n].menu.push({text:t.label,value:t.name})}));var i=[];Object.keys(o).forEach((function(e){i.push(o[e])})),t.setup=function(t){t.addButton("tagPickerButton",{text:" ",type:"listbox",icon:"icon ion-ios-flash",tooltip:e.i18n.dynamicData,onselect:function(e){t.insertContent(this.value())},values:i,onPostRender:function(){this.value("")}}),e.textarea=document.getElementById(e.editorId),e.textarea&&(e.textarea.addEventListener("focus",e.listenToTextareaInput),e.textarea.addEventListener("input",e.listenToTextareaInput)),t.on("focus",(function(){e.$_state.messageOrigin="main",e.bricks.disablePanelAutoExpand||(e.$_state.isPanelExpanded=!0),e.$_state.isInlineEditing=!1})),t.on("change keyup undo redo blur",(function(n){"main"===e.$_state.messageOrigin&&e.$emit("input",t.getContent())})),t.on("keydown",(function(t){var n=t.key?t.key.toLowerCase():"",o=e.$_state.isMac?"metaKey":"ctrlKey";t[o]&&"s"===n?(t.preventDefault(),e.$_savePost({force:null==t?void 0:t.shiftKey})):t[o]&&"p"===n&&(t.preventDefault(),e.$_state.isPreviewing=!e.$_state.isPreviewing)}))},tinyMCEPreInit.mceInit[this.editorId]=jQuery.extend(!0,{},t),this.editorQuicktags=jQuery.extend(!0,{},tinyMCEPreInit.qtInit.brickswpeditor),this.editorQuicktags.id=this.editorId,tinyMCEPreInit.qtInit[this.editorId]=this.editorQuicktags,this.editorQuicktags=quicktags(tinyMCEPreInit.qtInit[this.editorId]),this.editorQuicktags.canvas.addEventListener("input",this.listenToQuickTags),this.editorQuicktags.toolbar.addEventListener("click",this.listenToQuickTags),this.$nextTick((function(){switchEditors.go(e.editorId,"tmce")}))},listenToTextareaInput:function(e){"element"===this.$_state.activePanel&&(this.bricks.disablePanelAutoExpand||(this.$_state.isPanelExpanded=!0)),"main"===this.$_state.messageOrigin&&this.$emit("input",e.target.value)},listenToQuickTags:function(){"main"===this.$_state.messageOrigin&&this.$emit("input",this.editorQuicktags.canvas.value)}},mounted:function(){this.initTinyMCE()},beforeUnmount:function(){this.textarea.removeEventListener("input",this.listenToTextareaInput),this.textarea=!1,this.editorQuicktags.canvas.removeEventListener("input",this.listenToQuickTags),this.editorQuicktags.toolbar.removeEventListener("click",this.listenToQuickTags),tinymce.EditorManager.execCommand("mceRemoveEditor",!0,this.editorId),delete tinyMCEPreInit.mceInit[this.editorId],delete tinyMCEPreInit.qtInit[this.editorId],delete QTags.instances[this.editorId]},watch:{value:{handler:function(e){e&&void 0!==e||(e="","main"===this.$_state.messageOrigin&&this.$emit("input","")),tinymce.activeEditor&&("iframe"===this.$_state.messageOrigin||this.$_state.isInlineEditing)&&tinymce.activeEditor.setContent(e)},deep:!0,immediate:!1}}};var kK=(0,tm.Z)(wK,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",bK,[ua("div",yK,null,512)])}]]),xK={"data-control":"file"},CK=["textContent"],_K=["textContent"],SK=["textContent"];var TK={emits:["input"],props:{value:{required:!1},control:{type:Object,required:!0}},computed:{id:function(){return!!this.value&&this.value.id},filename:function(){return!!this.value&&this.value.filename}}};var $K=(0,tm.Z)(TK,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",xK,[ua("label",{textContent:de(r.filename?r.filename:e.i18n.noFileSelected)},null,8,CK),r.id?(Yr(),oa("button",{key:0,onClick:t[0]||(t[0]=function(t){return e.$emit("input","")}),textContent:de(e.i18n.removeFile)},null,8,_K)):(Yr(),oa("button",{key:1,onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("any")}),textContent:de(e.i18n.selectFile)},null,8,SK))])}]]),EK={"data-control":"filters"},IK={class:"sliders"},MK={class:"label-actions"},AK=["textContent"],OK=["textContent"],PK={class:"filter"},LK=["value"],DK=["textContent"],NK={class:"filter"},jK=["value"],VK=["textContent"],FK={class:"filter"},RK=["value"],qK=["textContent"],BK={class:"filter"},zK=["value"],HK=["textContent"],WK={class:"filter"},UK=["value"],KK=["textContent"],GK={class:"filter"},ZK=["value"],JK=["textContent"],YK={class:"filter"},QK=["value"],XK=["textContent"],eG={class:"filter"},tG=["value"];var nG={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0}},data:function(){return{showPopup:!1,filter:this.value?this.value:{}}},methods:{updateFilter:function(e,t){t.length?this.filter[e]=t:delete this.filter[e]}},watch:{filter:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var oG=(0,tm.Z)(nG,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-number"),l=no("panel-control-popup");return Yr(),oa("div",EK,[ua("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"filter"})]),i.showPopup&&!e.$_isLocked()?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[18]||(t[18]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[ua("div",IK,[ua("div",MK,[ua("label",{textContent:de(e.i18n.clear),class:"label-action",onClick:t[1]||(t[1]=function(e){return i.filter={}})},null,8,AK)]),ua("label",{textContent:de(e.i18n.blur),class:"title"},null,8,OK),ua("div",PK,[ua("input",{type:"range",min:"0",max:"10",step:"0.1",value:i.filter.blur,onInput:t[2]||(t[2]=function(e){return r.updateFilter("blur",e.target.value)}),class:"range-blur"},null,40,LK),da(s,{control:{min:0,max:10,step:.1,hasVariables:!1},value:i.filter.blur,onInput:t[3]||(t[3]=function(e){return r.updateFilter("blur",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.brightness),class:"title"},null,8,DK),ua("div",NK,[ua("input",{type:"range",min:"0",max:"200",step:"1",value:i.filter.brightness,onInput:t[4]||(t[4]=function(e){return r.updateFilter("brightness",e.target.value)}),class:"range-brightness"},null,40,jK),da(s,{control:{min:0,max:200,step:1,hasVariables:!1},value:i.filter.brightness,onInput:t[5]||(t[5]=function(e){return r.updateFilter("brightness",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.contrast),class:"title"},null,8,VK),ua("div",FK,[ua("input",{type:"range",min:"0",max:"200",step:"1",value:i.filter.contrast,onInput:t[6]||(t[6]=function(e){return r.updateFilter("contrast",e.target.value)}),class:"range-contrast"},null,40,RK),da(s,{control:{min:0,max:200,step:1,hasVariables:!1},value:i.filter.contrast,onInput:t[7]||(t[7]=function(e){return r.updateFilter("contrast",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.hue),class:"title"},null,8,qK),ua("div",BK,[ua("input",{type:"range",min:"0",max:"360",step:"1",value:i.filter["hue-rotate"],onInput:t[8]||(t[8]=function(e){return r.updateFilter("hue-rotate",e.target.value)}),class:"range-hue-rotate"},null,40,zK),da(s,{control:{min:0,max:360,step:1,hasVariables:!1},value:i.filter["hue-rotate"],onInput:t[9]||(t[9]=function(e){return r.updateFilter("hue-rotate",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.invert),class:"title"},null,8,HK),ua("div",WK,[ua("input",{type:"range",min:"0",max:"100",step:"1",value:i.filter.invert,onInput:t[10]||(t[10]=function(e){return r.updateFilter("invert",e.target.value)}),class:"range-invert"},null,40,UK),da(s,{control:{min:0,max:100,step:1,hasVariables:!1},value:i.filter.invert,onInput:t[11]||(t[11]=function(e){return r.updateFilter("invert",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.opacity),class:"title"},null,8,KK),ua("div",GK,[ua("input",{type:"range",min:"0",max:"100",step:"1",value:i.filter.opacity,onInput:t[12]||(t[12]=function(e){return r.updateFilter("opacity",e.target.value)}),class:"range-opacity"},null,40,ZK),da(s,{control:{min:0,max:100,step:1,hasVariables:!1},value:i.filter.opacity,onInput:t[13]||(t[13]=function(e){return r.updateFilter("opacity",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.saturation),class:"title"},null,8,JK),ua("div",YK,[ua("input",{type:"range",min:"0",max:"200",step:"1",value:i.filter.saturate,onInput:t[14]||(t[14]=function(e){return r.updateFilter("saturate",e.target.value)}),class:"range-saturate"},null,40,QK),da(s,{control:{min:0,max:200,step:1,hasVariables:!1},value:i.filter.saturate,onInput:t[15]||(t[15]=function(e){return r.updateFilter("saturate",e)})},null,8,["value"])]),ua("label",{textContent:de(e.i18n.sepia),class:"title"},null,8,XK),ua("div",eG,[ua("input",{type:"range",min:"0",max:"100",step:"1",value:i.filter.sepia,onInput:t[16]||(t[16]=function(e){return r.updateFilter("sepia",e.target.value)}),class:"range-sepia"},null,40,tG),da(s,{control:{min:0,max:100,step:1,hasVariables:!1},value:i.filter.sepia,onInput:t[17]||(t[17]=function(e){return r.updateFilter("sepia",e)})},null,8,["value"])])])]})),_:1},8,["show"])):va("",!0)])}]]),iG={"data-control":"gradient"};var rG={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0}},data:function(){return{gradient:this.value?this.value:{},controls:{applyTo:{type:"select",options:{background:this.i18n.background,overlay:this.i18n.overlay,text:this.i18n.text},placeholder:this.i18n.background,label:this.i18n.applyTo,inline:!0},cssSelector:{type:"text",placeholder:".bricks-button",label:this.i18n.cssSelector,hasDynamicData:!1,inline:!0},gradientType:{type:"select",inline:!0,options:{linear:this.i18n.linear,radial:this.i18n.radial,conic:this.i18n.conic},placeholder:this.i18n.linear,label:this.i18n.type},radialShape:{type:"select",inline:!0,options:{ellipse:this.i18n.ellipse,circle:this.i18n.circle},placeholder:this.i18n.ellipse,label:this.i18n.shape,required:["gradientType","=","radial"]},radialSize:{type:"select",inline:!0,options:{"closest-side":this.i18n.closestSide,"farthest-side":this.i18n.farthestSide,"closest-corner":this.i18n.closestCorner,"farthest-corner":this.i18n.farthestCorner},placeholder:this.i18n.farthestCorner,label:this.i18n.size,required:["gradientType","=","radial"]},radialPosition:{type:"select",inline:!0,options:this.bricks.controlOptions.backgroundPosition,placeholder:this.i18n.center,label:this.i18n.position,required:["gradientType","=","radial"]},radialCustomPosition:{type:"text",inline:!0,label:"".concat(this.i18n.position," (").concat(this.i18n.custom,")"),placeholder:"center",required:[["gradientType","=","radial"],["radialPosition","=","custom"]]},conicAngle:{type:"number",hasVariables:!0,inline:!0,large:!0,min:0,max:360,label:this.i18n.startingAngle,required:["gradientType","=","conic"]},conicPosition:{type:"select",inline:!0,options:this.bricks.controlOptions.backgroundPosition,label:this.i18n.position,required:[["gradientType","=","conic"]]},conicCustomPosition:{type:"text",inline:!0,label:"".concat(this.i18n.position," (").concat(this.i18n.custom,")"),placeholder:"center",required:[["gradientType","=","conic"],["conicPosition","=","custom"]]},angle:{type:"number",min:0,max:360,large:!0,label:this.i18n.angle,required:["gradientType","=",["","linear"]]},repeat:{type:"checkbox",label:this.i18n.repeat},repeatInfo:{type:"info",content:this.i18n.gradientRepeatInfo,required:["repeat","!=",""]},colors:{type:"repeater",label:this.i18n.colors,placeholder:this.i18n.color,fields:{color:{type:"color",label:this.i18n.color,inline:!0},stop:{type:"number",min:0,max:100,hasVariables:!0,label:this.i18n.colorStop,info:"".concat(this.i18n.default,": %")}},description:this.i18n.gardientColorsDescription}}}},watch:{gradient:{handler:function(){this.$emit("input",this.gradient)},deep:!0}}};var aG=(0,tm.Z)(rG,[["render",function(e,t,n,o,i,r){var a=no("panel-control");return Yr(),oa("div",iG,[(Yr(!0),oa(Wr,null,gi(i.controls,(function(e,t){return Yr(),ia(a,{key:t,control:e,controlKey:t,settings:i.gradient},null,8,["control","controlKey","settings"])})),128))])}]]),sG={"data-control":"icon"},lG=["src"],cG={key:0,class:"svg-wrapper"},uG={key:1,class:"icons-wrapper"},dG=["placeholder"],fG={ref:"icons"},pG=["title","onClick"],hG=["title"];var mG=["fa-42-group","fa-500px","fa-accessible-icon","fa-accusoft","fa-adn","fa-adversal","fa-affiliatetheme","fa-airbnb","fa-algolia","fa-alipay","fa-amazon-pay","fa-amazon","fa-amilia","fa-android","fa-angellist","fa-angrycreative","fa-angular","fa-app-store-ios","fa-app-store","fa-apper","fa-apple-pay","fa-apple","fa-artstation","fa-asymmetrik","fa-atlassian","fa-audible","fa-autoprefixer","fa-avianex","fa-aviato","fa-aws","fa-bandcamp","fa-battle-net","fa-behance-square","fa-behance","fa-bilibili","fa-bimobject","fa-bitbucket","fa-bitcoin","fa-bity","fa-black-tie","fa-blackberry","fa-blogger-b","fa-blogger","fa-bluetooth-b","fa-bluetooth","fa-bootstrap","fa-bots","fa-btc","fa-buffer","fa-buromobelexperte","fa-buy-n-large","fa-buysellads","fa-canadian-maple-leaf","fa-cc-amazon-pay","fa-cc-amex","fa-cc-apple-pay","fa-cc-diners-club","fa-cc-discover","fa-cc-jcb","fa-cc-mastercard","fa-cc-paypal","fa-cc-stripe","fa-cc-visa","fa-centercode","fa-centos","fa-chrome","fa-chromecast","fa-cloudflare","fa-cloudscale","fa-cloudsmith","fa-cloudversify","fa-cmplid","fa-codepen","fa-codiepie","fa-confluence","fa-connectdevelop","fa-contao","fa-cotton-bureau","fa-cpanel","fa-creative-commons-by","fa-creative-commons-nc-eu","fa-creative-commons-nc-jp","fa-creative-commons-nc","fa-creative-commons-nd","fa-creative-commons-pd-alt","fa-creative-commons-pd","fa-creative-commons-remix","fa-creative-commons-sa","fa-creative-commons-sampling-plus","fa-creative-commons-sampling","fa-creative-commons-share","fa-creative-commons-zero","fa-creative-commons","fa-critical-role","fa-css3-alt","fa-css3","fa-cuttlefish","fa-d-and-d-beyond","fa-d-and-d","fa-dailymotion","fa-dashcube","fa-debian","fa-deezer","fa-delicious","fa-deploydog","fa-deskpro","fa-dev","fa-deviantart","fa-dhl","fa-diaspora","fa-digg","fa-digital-ocean","fa-discord","fa-discourse","fa-dochub","fa-docker","fa-draft2digital","fa-dribbble-square","fa-dribbble","fa-dropbox","fa-drupal","fa-dyalog","fa-earlybirds","fa-ebay","fa-edge-legacy","fa-edge","fa-elementor","fa-ello","fa-ember","fa-empire","fa-envira","fa-erlang","fa-ethereum","fa-etsy","fa-evernote","fa-expeditedssl","fa-facebook-f","fa-facebook-messenger","fa-facebook-square","fa-facebook","fa-fantasy-flight-games","fa-fedex","fa-fedora","fa-figma","fa-firefox-browser","fa-firefox","fa-first-order-alt","fa-first-order","fa-firstdraft","fa-flickr","fa-flipboard","fa-fly","fa-font-awesome-alt","fa-font-awesome-flag","fa-font-awesome-logo-full","fa-font-awesome","fa-fonticons-fi","fa-fonticons","fa-fort-awesome-alt","fa-fort-awesome","fa-forumbee","fa-foursquare","fa-free-code-camp","fa-freebsd","fa-fulcrum","fa-galactic-republic","fa-galactic-senate","fa-get-pocket","fa-gg-circle","fa-gg","fa-git-alt","fa-git-square","fa-git","fa-github-alt","fa-github-square","fa-github","fa-gitkraken","fa-gitlab-square","fa-gitlab","fa-gitter","fa-glide-g","fa-glide","fa-gofore","fa-golang","fa-goodreads-g","fa-goodreads","fa-google-drive","fa-google-pay","fa-google-play","fa-google-plus-g","fa-google-plus-square","fa-google-plus","fa-google-wallet","fa-google","fa-gratipay","fa-grav","fa-gripfire","fa-grunt","fa-guilded","fa-gulp","fa-hacker-news-square","fa-hacker-news","fa-hackerrank","fa-hashnode","fa-hips","fa-hire-a-helper","fa-hive","fa-hooli","fa-hornbill","fa-hotjar","fa-houzz","fa-html5","fa-hubspot","fa-ideal","fa-imdb","fa-innosoft","fa-instagram-square","fa-instagram","fa-instalod","fa-intercom","fa-internet-explorer","fa-invision","fa-ioxhost","fa-itch-io","fa-itunes-note","fa-itunes","fa-java","fa-jedi-order","fa-jenkins","fa-jira","fa-joget","fa-joomla","fa-js-square","fa-js","fa-jsfiddle","fa-kaggle","fa-keybase","fa-keycdn","fa-kickstarter-k","fa-kickstarter","fa-korvue","fa-laravel","fa-lastfm-square","fa-lastfm","fa-leanpub","fa-less","fa-line","fa-linkedin-in","fa-linkedin","fa-linode","fa-linux","fa-lyft","fa-magento","fa-mailchimp","fa-mandalorian","fa-markdown","fa-mastodon","fa-maxcdn","fa-mdb","fa-medapps","fa-medium-m","fa-medium","fa-medrt","fa-meetup","fa-megaport","fa-mendeley","fa-meta","fa-microblog","fa-microsoft","fa-mix","fa-mixcloud","fa-mixer","fa-mizuni","fa-modx","fa-monero","fa-napster","fa-neos","fa-nfc-directional","fa-nfc-symbol","fa-nimblr","fa-node-js","fa-node","fa-npm","fa-ns8","fa-nutritionix","fa-octopus-deploy","fa-odnoklassniki-square","fa-odnoklassniki","fa-odysee","fa-old-republic","fa-opencart","fa-openid","fa-opera","fa-optin-monster","fa-orcid","fa-osi","fa-padlet","fa-page4","fa-pagelines","fa-palfed","fa-patreon","fa-paypal","fa-perbyte","fa-periscope","fa-phabricator","fa-phoenix-framework","fa-phoenix-squadron","fa-php","fa-pied-piper-alt","fa-pied-piper-hat","fa-pied-piper-pp","fa-pied-piper-square","fa-pied-piper","fa-pinterest-p","fa-pinterest-square","fa-pinterest","fa-pix","fa-playstation","fa-product-hunt","fa-pushed","fa-python","fa-qq","fa-quinscape","fa-quora","fa-r-project","fa-raspberry-pi","fa-ravelry","fa-react","fa-reacteurope","fa-readme","fa-rebel","fa-red-river","fa-reddit-alien","fa-reddit-square","fa-reddit","fa-redhat","fa-rendact","fa-renren","fa-replyd","fa-researchgate","fa-resolving","fa-rev","fa-rocketchat","fa-rockrms","fa-rust","fa-safari","fa-salesforce","fa-sass","fa-schlix","fa-screenpal","fa-scribd","fa-searchengin","fa-sellcast","fa-sellsy","fa-servicestack","fa-shirtsinbulk","fa-shopify","fa-shopware","fa-simplybuilt","fa-sistrix","fa-sith","fa-sitrox","fa-sketch","fa-skyatlas","fa-skype","fa-slack-hash","fa-slack","fa-slideshare","fa-snapchat-ghost","fa-snapchat-square","fa-snapchat","fa-soundcloud","fa-sourcetree","fa-space-awesome","fa-speakap","fa-speaker-deck","fa-spotify","fa-square-behance","fa-square-dribbble","fa-square-facebook","fa-square-font-awesome-stroke","fa-square-font-awesome","fa-square-git","fa-square-github","fa-square-gitlab","fa-square-google-plus","fa-square-hacker-news","fa-square-instagram","fa-square-js","fa-square-lastfm","fa-square-odnoklassniki","fa-square-pied-piper","fa-square-pinterest","fa-square-reddit","fa-square-snapchat","fa-square-steam","fa-square-threads","fa-square-tumblr","fa-square-twitter","fa-square-viadeo","fa-square-vimeo","fa-square-whatsapp","fa-square-x-twitter","fa-square-xing","fa-square-youtube","fa-squarespace","fa-stack-exchange","fa-stack-overflow","fa-stackpath","fa-staylinked","fa-steam-square","fa-steam-symbol","fa-steam","fa-sticker-mule","fa-strava","fa-stripe-s","fa-stripe","fa-stubber","fa-studiovinari","fa-stumbleupon-circle","fa-stumbleupon","fa-superpowers","fa-supple","fa-suse","fa-swift","fa-symfony","fa-teamspeak","fa-telegram-plane","fa-telegram","fa-tencent-weibo","fa-the-red-yeti","fa-themeco","fa-themeisle","fa-think-peaks","fa-threads","fa-tiktok","fa-trade-federation","fa-trello","fa-tumblr-square","fa-tumblr","fa-twitch","fa-twitter-square","fa-twitter","fa-typo3","fa-uber","fa-ubuntu","fa-uikit","fa-umbraco","fa-uncharted","fa-uniregistry","fa-unity","fa-unsplash","fa-untappd","fa-ups","fa-usb","fa-usps","fa-ussunnah","fa-vaadin","fa-viacoin","fa-viadeo-square","fa-viadeo","fa-viber","fa-vimeo-square","fa-vimeo-v","fa-vimeo","fa-vine","fa-vk","fa-vnv","fa-vuejs","fa-watchman-monitoring","fa-waze","fa-weebly","fa-weibo","fa-weixin","fa-whatsapp-square","fa-whatsapp","fa-whmcs","fa-wikipedia-w","fa-windows","fa-wirsindhandwerk","fa-wix","fa-wizards-of-the-coast","fa-wodu","fa-wolf-pack-battalion","fa-wordpress-simple","fa-wordpress","fa-wpbeginner","fa-wpexplorer","fa-wpforms","fa-wpressr","fa-wsh","fa-x-twitter","fa-xbox","fa-xing-square","fa-xing","fa-y-combinator","fa-yahoo","fa-yammer","fa-yandex-international","fa-yandex","fa-yarn","fa-yelp","fa-yoast","fa-youtube-square","fa-youtube","fa-zhihu"],gG=["fa-address-book","fa-address-card","fa-bell-slash","fa-bell","fa-bookmark","fa-building","fa-calendar-check","fa-calendar-days","fa-calendar-minus","fa-calendar-plus","fa-calendar-xmark","fa-calendar","fa-chart-bar","fa-chess-bishop","fa-chess-king","fa-chess-knight","fa-chess-pawn","fa-chess-queen","fa-chess-rook","fa-circle-check","fa-circle-dot","fa-circle-down","fa-circle-left","fa-circle-pause","fa-circle-play","fa-circle-question","fa-circle-right","fa-circle-stop","fa-circle-up","fa-circle-user","fa-circle-xmark","fa-circle","fa-clipboard","fa-clock","fa-clone","fa-closed-captioning","fa-comment-dots","fa-comment","fa-comments","fa-compass","fa-copy","fa-copyright","fa-credit-card","fa-envelope-open","fa-envelope","fa-eye-slash","fa-eye","fa-face-angry","fa-face-dizzy","fa-face-flushed","fa-face-frown-open","fa-face-frown","fa-face-grimace","fa-face-grin-beam-sweat","fa-face-grin-beam","fa-face-grin-hearts","fa-face-grin-squint-tears","fa-face-grin-squint","fa-face-grin-stars","fa-face-grin-tears","fa-face-grin-tongue-squint","fa-face-grin-tongue-wink","fa-face-grin-tongue","fa-face-grin-wide","fa-face-grin-wink","fa-face-grin","fa-face-kiss-beam","fa-face-kiss-wink-heart","fa-face-kiss","fa-face-laugh-beam","fa-face-laugh-squint","fa-face-laugh-wink","fa-face-laugh","fa-face-meh-blank","fa-face-meh","fa-face-rolling-eyes","fa-face-sad-cry","fa-face-sad-tear","fa-face-smile-beam","fa-face-smile-wink","fa-face-smile","fa-face-surprise","fa-face-tired","fa-file-audio","fa-file-code","fa-file-excel","fa-file-image","fa-file-lines","fa-file-pdf","fa-file-powerpoint","fa-file-video","fa-file-word","fa-file-zipper","fa-file","fa-flag","fa-floppy-disk","fa-folder-closed","fa-folder-open","fa-folder","fa-font-awesome","fa-futbol","fa-gem","fa-hand-back-fist","fa-hand-lizard","fa-hand-peace","fa-hand-point-down","fa-hand-point-left","fa-hand-point-right","fa-hand-point-up","fa-hand-pointer","fa-hand-scissors","fa-hand-spock","fa-hand","fa-handshake","fa-hard-drive","fa-heart","fa-hospital","fa-hourglass-half","fa-hourglass","fa-id-badge","fa-id-card","fa-image","fa-images","fa-keyboard","fa-lemon","fa-life-ring","fa-lightbulb","fa-map","fa-message","fa-money-bill-1","fa-moon","fa-newspaper","fa-note-sticky","fa-object-group","fa-object-ungroup","fa-paper-plane","fa-paste","fa-pen-to-square","fa-rectangle-list","fa-rectangle-xmark","fa-registered","fa-share-from-square","fa-snowflake","fa-square-caret-down","fa-square-caret-left","fa-square-caret-right","fa-square-caret-up","fa-square-check","fa-square-full","fa-square-minus","fa-square-plus","fa-square","fa-star-half-stroke","fa-star-half","fa-star","fa-sun","fa-thumbs-down","fa-thumbs-up","fa-trash-can","fa-user","fa-window-maximize","fa-window-minimize","fa-window-restore"],vG=["fa-0","fa-1","fa-2","fa-3","fa-4","fa-5","fa-6","fa-7","fa-8","fa-9","fa-a","fa-address-book","fa-address-card","fa-align-center","fa-align-justify","fa-align-left","fa-align-right","fa-anchor-circle-check","fa-anchor-circle-exclamation","fa-anchor-circle-xmark","fa-anchor-lock","fa-anchor","fa-angle-down","fa-angle-left","fa-angle-right","fa-angle-up","fa-angles-down","fa-angles-left","fa-angles-right","fa-angles-up","fa-ankh","fa-apple-whole","fa-archway","fa-arrow-down-1-9","fa-arrow-down-9-1","fa-arrow-down-a-z","fa-arrow-down-long","fa-arrow-down-short-wide","fa-arrow-down-up-across-line","fa-arrow-down-up-lock","fa-arrow-down-wide-short","fa-arrow-down-z-a","fa-arrow-down","fa-arrow-left-long","fa-arrow-left","fa-arrow-pointer","fa-arrow-right-arrow-left","fa-arrow-right-from-bracket","fa-arrow-right-long","fa-arrow-right-to-bracket","fa-arrow-right-to-city","fa-arrow-right","fa-arrow-rotate-left","fa-arrow-rotate-right","fa-arrow-trend-down","fa-arrow-trend-up","fa-arrow-turn-down","fa-arrow-turn-up","fa-arrow-up-1-9","fa-arrow-up-9-1","fa-arrow-up-a-z","fa-arrow-up-from-bracket","fa-arrow-up-from-ground-water","fa-arrow-up-from-water-pump","fa-arrow-up-long","fa-arrow-up-right-dots","fa-arrow-up-right-from-square","fa-arrow-up-short-wide","fa-arrow-up-wide-short","fa-arrow-up-z-a","fa-arrow-up","fa-arrows-down-to-line","fa-arrows-down-to-people","fa-arrows-left-right-to-line","fa-arrows-left-right","fa-arrows-rotate","fa-arrows-spin","fa-arrows-split-up-and-left","fa-arrows-to-circle","fa-arrows-to-dot","fa-arrows-to-eye","fa-arrows-turn-right","fa-arrows-turn-to-dots","fa-arrows-up-down-left-right","fa-arrows-up-down","fa-arrows-up-to-line","fa-asterisk","fa-at","fa-atom","fa-audio-description","fa-austral-sign","fa-award","fa-b","fa-baby-carriage","fa-baby","fa-backward-fast","fa-backward-step","fa-backward","fa-bacon","fa-bacteria","fa-bacterium","fa-bag-shopping","fa-bahai","fa-baht-sign","fa-ban-smoking","fa-ban","fa-bandage","fa-bangladeshi-taka-sign","fa-barcode","fa-bars-progress","fa-bars-staggered","fa-bars","fa-baseball-bat-ball","fa-baseball","fa-basket-shopping","fa-basketball","fa-bath","fa-battery-empty","fa-battery-full","fa-battery-half","fa-battery-quarter","fa-battery-three-quarters","fa-bed-pulse","fa-bed","fa-beer-mug-empty","fa-bell-concierge","fa-bell-slash","fa-bell","fa-bezier-curve","fa-bicycle","fa-binoculars","fa-biohazard","fa-bitcoin-sign","fa-blender-phone","fa-blender","fa-blog","fa-bold","fa-bolt-lightning","fa-bolt","fa-bomb","fa-bone","fa-bong","fa-book-atlas","fa-book-bible","fa-book-bookmark","fa-book-journal-whills","fa-book-medical","fa-book-open-reader","fa-book-open","fa-book-quran","fa-book-skull","fa-book-tanakh","fa-book","fa-bookmark","fa-border-all","fa-border-none","fa-border-top-left","fa-bore-hole","fa-bottle-droplet","fa-bottle-water","fa-bowl-food","fa-bowl-rice","fa-bowling-ball","fa-box-archive","fa-box-open","fa-box-tissue","fa-box","fa-boxes-packing","fa-boxes-stacked","fa-braille","fa-brain","fa-brazilian-real-sign","fa-bread-slice","fa-bridge-circle-check","fa-bridge-circle-exclamation","fa-bridge-circle-xmark","fa-bridge-lock","fa-bridge-water","fa-bridge","fa-briefcase-medical","fa-briefcase","fa-broom-ball","fa-broom","fa-brush","fa-bucket","fa-bug-slash","fa-bug","fa-bugs","fa-building-circle-arrow-right","fa-building-circle-check","fa-building-circle-exclamation","fa-building-circle-xmark","fa-building-columns","fa-building-flag","fa-building-lock","fa-building-ngo","fa-building-shield","fa-building-un","fa-building-user","fa-building-wheat","fa-building","fa-bullhorn","fa-bullseye","fa-burger","fa-burst","fa-bus-simple","fa-bus","fa-business-time","fa-c","fa-cable-car","fa-cake-candles","fa-calculator","fa-calendar-check","fa-calendar-day","fa-calendar-days","fa-calendar-minus","fa-calendar-plus","fa-calendar-week","fa-calendar-xmark","fa-calendar","fa-camera-retro","fa-camera-rotate","fa-camera","fa-campground","fa-candy-cane","fa-cannabis","fa-capsules","fa-car-battery","fa-car-burst","fa-car-on","fa-car-rear","fa-car-side","fa-car-tunnel","fa-car","fa-caravan","fa-caret-down","fa-caret-left","fa-caret-right","fa-caret-up","fa-carrot","fa-cart-arrow-down","fa-cart-flatbed-suitcase","fa-cart-flatbed","fa-cart-plus","fa-cart-shopping","fa-cash-register","fa-cat","fa-cedi-sign","fa-cent-sign","fa-certificate","fa-chair","fa-chalkboard-user","fa-chalkboard","fa-champagne-glasses","fa-charging-station","fa-chart-area","fa-chart-bar","fa-chart-column","fa-chart-gantt","fa-chart-line","fa-chart-pie","fa-chart-simple","fa-check-double","fa-check-to-slot","fa-check","fa-cheese","fa-chess-bishop","fa-chess-board","fa-chess-king","fa-chess-knight","fa-chess-pawn","fa-chess-queen","fa-chess-rook","fa-chess","fa-chevron-down","fa-chevron-left","fa-chevron-right","fa-chevron-up","fa-child-combatant","fa-child-dress","fa-child-reaching","fa-child","fa-children","fa-church","fa-circle-arrow-down","fa-circle-arrow-left","fa-circle-arrow-right","fa-circle-arrow-up","fa-circle-check","fa-circle-chevron-down","fa-circle-chevron-left","fa-circle-chevron-right","fa-circle-chevron-up","fa-circle-dollar-to-slot","fa-circle-dot","fa-circle-down","fa-circle-exclamation","fa-circle-h","fa-circle-half-stroke","fa-circle-info","fa-circle-left","fa-circle-minus","fa-circle-nodes","fa-circle-notch","fa-circle-pause","fa-circle-play","fa-circle-plus","fa-circle-question","fa-circle-radiation","fa-circle-right","fa-circle-stop","fa-circle-up","fa-circle-user","fa-circle-xmark","fa-circle","fa-city","fa-clapperboard","fa-clipboard-check","fa-clipboard-list","fa-clipboard-question","fa-clipboard-user","fa-clipboard","fa-clock-rotate-left","fa-clock","fa-clone","fa-closed-captioning","fa-cloud-arrow-down","fa-cloud-arrow-up","fa-cloud-bolt","fa-cloud-meatball","fa-cloud-moon-rain","fa-cloud-moon","fa-cloud-rain","fa-cloud-showers-heavy","fa-cloud-showers-water","fa-cloud-sun-rain","fa-cloud-sun","fa-cloud","fa-clover","fa-code-branch","fa-code-commit","fa-code-compare","fa-code-fork","fa-code-merge","fa-code-pull-request","fa-code","fa-coins","fa-colon-sign","fa-comment-dollar","fa-comment-dots","fa-comment-medical","fa-comment-slash","fa-comment-sms","fa-comment","fa-comments-dollar","fa-comments","fa-compact-disc","fa-compass-drafting","fa-compass","fa-compress","fa-computer-mouse","fa-computer","fa-cookie-bite","fa-cookie","fa-copy","fa-copyright","fa-couch","fa-cow","fa-credit-card","fa-crop-simple","fa-crop","fa-cross","fa-crosshairs","fa-crow","fa-crown","fa-crutch","fa-cruzeiro-sign","fa-cube","fa-cubes-stacked","fa-cubes","fa-d","fa-database","fa-delete-left","fa-democrat","fa-desktop","fa-dharmachakra","fa-diagram-next","fa-diagram-predecessor","fa-diagram-project","fa-diagram-successor","fa-diamond-turn-right","fa-diamond","fa-dice-d20","fa-dice-d6","fa-dice-five","fa-dice-four","fa-dice-one","fa-dice-six","fa-dice-three","fa-dice-two","fa-dice","fa-disease","fa-display","fa-divide","fa-dna","fa-dog","fa-dollar-sign","fa-dolly","fa-dong-sign","fa-door-closed","fa-door-open","fa-dove","fa-down-left-and-up-right-to-center","fa-down-long","fa-download","fa-dragon","fa-draw-polygon","fa-droplet-slash","fa-droplet","fa-drum-steelpan","fa-drum","fa-drumstick-bite","fa-dumbbell","fa-dumpster-fire","fa-dumpster","fa-dungeon","fa-e","fa-ear-deaf","fa-ear-listen","fa-earth-africa","fa-earth-americas","fa-earth-asia","fa-earth-europe","fa-earth-oceania","fa-egg","fa-eject","fa-elevator","fa-ellipsis-vertical","fa-ellipsis","fa-envelope-circle-check","fa-envelope-open-text","fa-envelope-open","fa-envelope","fa-envelopes-bulk","fa-equals","fa-eraser","fa-ethernet","fa-euro-sign","fa-exclamation","fa-expand","fa-explosion","fa-eye-dropper","fa-eye-low-vision","fa-eye-slash","fa-eye","fa-f","fa-face-angry","fa-face-dizzy","fa-face-flushed","fa-face-frown-open","fa-face-frown","fa-face-grimace","fa-face-grin-beam-sweat","fa-face-grin-beam","fa-face-grin-hearts","fa-face-grin-squint-tears","fa-face-grin-squint","fa-face-grin-stars","fa-face-grin-tears","fa-face-grin-tongue-squint","fa-face-grin-tongue-wink","fa-face-grin-tongue","fa-face-grin-wide","fa-face-grin-wink","fa-face-grin","fa-face-kiss-beam","fa-face-kiss-wink-heart","fa-face-kiss","fa-face-laugh-beam","fa-face-laugh-squint","fa-face-laugh-wink","fa-face-laugh","fa-face-meh-blank","fa-face-meh","fa-face-rolling-eyes","fa-face-sad-cry","fa-face-sad-tear","fa-face-smile-beam","fa-face-smile-wink","fa-face-smile","fa-face-surprise","fa-face-tired","fa-fan","fa-faucet-drip","fa-faucet","fa-fax","fa-feather-pointed","fa-feather","fa-ferry","fa-file-arrow-down","fa-file-arrow-up","fa-file-audio","fa-file-circle-check","fa-file-circle-exclamation","fa-file-circle-minus","fa-file-circle-plus","fa-file-circle-question","fa-file-circle-xmark","fa-file-code","fa-file-contract","fa-file-csv","fa-file-excel","fa-file-export","fa-file-image","fa-file-import","fa-file-invoice-dollar","fa-file-invoice","fa-file-lines","fa-file-medical","fa-file-pdf","fa-file-pen","fa-file-powerpoint","fa-file-prescription","fa-file-shield","fa-file-signature","fa-file-video","fa-file-waveform","fa-file-word","fa-file-zipper","fa-file","fa-fill-drip","fa-fill","fa-film","fa-filter-circle-dollar","fa-filter-circle-xmark","fa-filter","fa-fingerprint","fa-fire-burner","fa-fire-extinguisher","fa-fire-flame-curved","fa-fire-flame-simple","fa-fire","fa-fish-fins","fa-fish","fa-flag-checkered","fa-flag-usa","fa-flag","fa-flask-vial","fa-flask","fa-floppy-disk","fa-florin-sign","fa-folder-closed","fa-folder-minus","fa-folder-open","fa-folder-plus","fa-folder-tree","fa-folder","fa-font-awesome","fa-font","fa-football","fa-forward-fast","fa-forward-step","fa-forward","fa-franc-sign","fa-frog","fa-futbol","fa-g","fa-gamepad","fa-gas-pump","fa-gauge-high","fa-gauge-simple-high","fa-gauge-simple","fa-gauge","fa-gavel","fa-gear","fa-gears","fa-gem","fa-genderless","fa-ghost","fa-gift","fa-gifts","fa-glass-water-droplet","fa-glass-water","fa-glasses","fa-globe","fa-golf-ball-tee","fa-gopuram","fa-graduation-cap","fa-greater-than-equal","fa-greater-than","fa-grip-lines-vertical","fa-grip-lines","fa-grip-vertical","fa-grip","fa-group-arrows-rotate","fa-guarani-sign","fa-guitar","fa-gun","fa-h","fa-hammer","fa-hamsa","fa-hand-back-fist","fa-hand-dots","fa-hand-fist","fa-hand-holding-dollar","fa-hand-holding-droplet","fa-hand-holding-hand","fa-hand-holding-heart","fa-hand-holding-medical","fa-hand-holding","fa-hand-lizard","fa-hand-middle-finger","fa-hand-peace","fa-hand-point-down","fa-hand-point-left","fa-hand-point-right","fa-hand-point-up","fa-hand-pointer","fa-hand-scissors","fa-hand-sparkles","fa-hand-spock","fa-hand","fa-handcuffs","fa-hands-asl-interpreting","fa-hands-bound","fa-hands-bubbles","fa-hands-clapping","fa-hands-holding-child","fa-hands-holding-circle","fa-hands-holding","fa-hands-praying","fa-hands","fa-handshake-angle","fa-handshake-simple-slash","fa-handshake-simple","fa-handshake-slash","fa-handshake","fa-hanukiah","fa-hard-drive","fa-hashtag","fa-hat-cowboy-side","fa-hat-cowboy","fa-hat-wizard","fa-head-side-cough-slash","fa-head-side-cough","fa-head-side-mask","fa-head-side-virus","fa-heading","fa-headphones-simple","fa-headphones","fa-headset","fa-heart-circle-bolt","fa-heart-circle-check","fa-heart-circle-exclamation","fa-heart-circle-minus","fa-heart-circle-plus","fa-heart-circle-xmark","fa-heart-crack","fa-heart-pulse","fa-heart","fa-helicopter-symbol","fa-helicopter","fa-helmet-safety","fa-helmet-un","fa-highlighter","fa-hill-avalanche","fa-hill-rockslide","fa-hippo","fa-hockey-puck","fa-holly-berry","fa-horse-head","fa-horse","fa-hospital-user","fa-hospital","fa-hot-tub-person","fa-hotdog","fa-hotel","fa-hourglass-end","fa-hourglass-half","fa-hourglass-start","fa-hourglass","fa-house-chimney-crack","fa-house-chimney-medical","fa-house-chimney-user","fa-house-chimney-window","fa-house-chimney","fa-house-circle-check","fa-house-circle-exclamation","fa-house-circle-xmark","fa-house-crack","fa-house-fire","fa-house-flag","fa-house-flood-water-circle-arrow-right","fa-house-flood-water","fa-house-laptop","fa-house-lock","fa-house-medical-circle-check","fa-house-medical-circle-exclamation","fa-house-medical-circle-xmark","fa-house-medical-flag","fa-house-medical","fa-house-signal","fa-house-tsunami","fa-house-user","fa-house","fa-hryvnia-sign","fa-hurricane","fa-i-cursor","fa-i","fa-ice-cream","fa-icicles","fa-icons","fa-id-badge","fa-id-card-clip","fa-id-card","fa-igloo","fa-image-portrait","fa-image","fa-images","fa-inbox","fa-indent","fa-indian-rupee-sign","fa-industry","fa-infinity","fa-info","fa-italic","fa-j","fa-jar-wheat","fa-jar","fa-jedi","fa-jet-fighter-up","fa-jet-fighter","fa-joint","fa-jug-detergent","fa-k","fa-kaaba","fa-key","fa-keyboard","fa-khanda","fa-kip-sign","fa-kit-medical","fa-kitchen-set","fa-kiwi-bird","fa-l","fa-land-mine-on","fa-landmark-dome","fa-landmark-flag","fa-landmark","fa-language","fa-laptop-code","fa-laptop-file","fa-laptop-medical","fa-laptop","fa-lari-sign","fa-layer-group","fa-leaf","fa-left-long","fa-left-right","fa-lemon","fa-less-than-equal","fa-less-than","fa-life-ring","fa-lightbulb","fa-lines-leaning","fa-link-slash","fa-link","fa-lira-sign","fa-list-check","fa-list-ol","fa-list-ul","fa-list","fa-litecoin-sign","fa-location-arrow","fa-location-crosshairs","fa-location-dot","fa-location-pin-lock","fa-location-pin","fa-lock-open","fa-lock","fa-locust","fa-lungs-virus","fa-lungs","fa-m","fa-magnet","fa-magnifying-glass-arrow-right","fa-magnifying-glass-chart","fa-magnifying-glass-dollar","fa-magnifying-glass-location","fa-magnifying-glass-minus","fa-magnifying-glass-plus","fa-magnifying-glass","fa-manat-sign","fa-map-location-dot","fa-map-location","fa-map-pin","fa-map","fa-marker","fa-mars-and-venus-burst","fa-mars-and-venus","fa-mars-double","fa-mars-stroke-right","fa-mars-stroke-up","fa-mars-stroke","fa-mars","fa-martini-glass-citrus","fa-martini-glass-empty","fa-martini-glass","fa-mask-face","fa-mask-ventilator","fa-mask","fa-masks-theater","fa-mattress-pillow","fa-maximize","fa-medal","fa-memory","fa-menorah","fa-mercury","fa-message","fa-meteor","fa-microchip","fa-microphone-lines-slash","fa-microphone-lines","fa-microphone-slash","fa-microphone","fa-microscope","fa-mill-sign","fa-minimize","fa-minus","fa-mitten","fa-mobile-button","fa-mobile-retro","fa-mobile-screen-button","fa-mobile-screen","fa-mobile","fa-money-bill-1-wave","fa-money-bill-1","fa-money-bill-transfer","fa-money-bill-trend-up","fa-money-bill-wave","fa-money-bill-wheat","fa-money-bill","fa-money-bills","fa-money-check-dollar","fa-money-check","fa-monument","fa-moon","fa-mortar-pestle","fa-mosque","fa-mosquito-net","fa-mosquito","fa-motorcycle","fa-mound","fa-mountain-city","fa-mountain-sun","fa-mountain","fa-mug-hot","fa-mug-saucer","fa-music","fa-n","fa-naira-sign","fa-network-wired","fa-neuter","fa-newspaper","fa-not-equal","fa-notdef","fa-note-sticky","fa-notes-medical","fa-o","fa-object-group","fa-object-ungroup","fa-oil-can","fa-oil-well","fa-om","fa-otter","fa-outdent","fa-p","fa-pager","fa-paint-roller","fa-paintbrush","fa-palette","fa-pallet","fa-panorama","fa-paper-plane","fa-paperclip","fa-parachute-box","fa-paragraph","fa-passport","fa-paste","fa-pause","fa-paw","fa-peace","fa-pen-clip","fa-pen-fancy","fa-pen-nib","fa-pen-ruler","fa-pen-to-square","fa-pen","fa-pencil","fa-people-arrows","fa-people-carry-box","fa-people-group","fa-people-line","fa-people-pulling","fa-people-robbery","fa-people-roof","fa-pepper-hot","fa-percent","fa-person-arrow-down-to-line","fa-person-arrow-up-from-line","fa-person-biking","fa-person-booth","fa-person-breastfeeding","fa-person-burst","fa-person-cane","fa-person-chalkboard","fa-person-circle-check","fa-person-circle-exclamation","fa-person-circle-minus","fa-person-circle-plus","fa-person-circle-question","fa-person-circle-xmark","fa-person-digging","fa-person-dots-from-line","fa-person-dress-burst","fa-person-dress","fa-person-drowning","fa-person-falling-burst","fa-person-falling","fa-person-half-dress","fa-person-harassing","fa-person-hiking","fa-person-military-pointing","fa-person-military-rifle","fa-person-military-to-person","fa-person-praying","fa-person-pregnant","fa-person-rays","fa-person-rifle","fa-person-running","fa-person-shelter","fa-person-skating","fa-person-skiing-nordic","fa-person-skiing","fa-person-snowboarding","fa-person-swimming","fa-person-through-window","fa-person-walking-arrow-loop-left","fa-person-walking-arrow-right","fa-person-walking-dashed-line-arrow-right","fa-person-walking-luggage","fa-person-walking-with-cane","fa-person-walking","fa-person","fa-peseta-sign","fa-peso-sign","fa-phone-flip","fa-phone-slash","fa-phone-volume","fa-phone","fa-photo-film","fa-piggy-bank","fa-pills","fa-pizza-slice","fa-place-of-worship","fa-plane-arrival","fa-plane-circle-check","fa-plane-circle-exclamation","fa-plane-circle-xmark","fa-plane-departure","fa-plane-lock","fa-plane-slash","fa-plane-up","fa-plane","fa-plant-wilt","fa-plate-wheat","fa-play","fa-plug-circle-bolt","fa-plug-circle-check","fa-plug-circle-exclamation","fa-plug-circle-minus","fa-plug-circle-plus","fa-plug-circle-xmark","fa-plug","fa-plus-minus","fa-plus","fa-podcast","fa-poo-storm","fa-poo","fa-poop","fa-power-off","fa-prescription-bottle-medical","fa-prescription-bottle","fa-prescription","fa-print","fa-pump-medical","fa-pump-soap","fa-puzzle-piece","fa-q","fa-qrcode","fa-question","fa-quote-left","fa-quote-right","fa-r","fa-radiation","fa-radio","fa-rainbow","fa-ranking-star","fa-receipt","fa-record-vinyl","fa-rectangle-ad","fa-rectangle-list","fa-rectangle-xmark","fa-recycle","fa-registered","fa-repeat","fa-reply-all","fa-reply","fa-republican","fa-restroom","fa-retweet","fa-ribbon","fa-right-from-bracket","fa-right-left","fa-right-long","fa-right-to-bracket","fa-ring","fa-road-barrier","fa-road-bridge","fa-road-circle-check","fa-road-circle-exclamation","fa-road-circle-xmark","fa-road-lock","fa-road-spikes","fa-road","fa-robot","fa-rocket","fa-rotate-left","fa-rotate-right","fa-rotate","fa-route","fa-rss","fa-ruble-sign","fa-rug","fa-ruler-combined","fa-ruler-horizontal","fa-ruler-vertical","fa-ruler","fa-rupee-sign","fa-rupiah-sign","fa-s","fa-sack-dollar","fa-sack-xmark","fa-sailboat","fa-satellite-dish","fa-satellite","fa-scale-balanced","fa-scale-unbalanced-flip","fa-scale-unbalanced","fa-school-circle-check","fa-school-circle-exclamation","fa-school-circle-xmark","fa-school-flag","fa-school-lock","fa-school","fa-scissors","fa-screwdriver-wrench","fa-screwdriver","fa-scroll-torah","fa-scroll","fa-sd-card","fa-section","fa-seedling","fa-server","fa-shapes","fa-share-from-square","fa-share-nodes","fa-share","fa-sheet-plastic","fa-shekel-sign","fa-shield-cat","fa-shield-dog","fa-shield-halved","fa-shield-heart","fa-shield-virus","fa-shield","fa-ship","fa-shirt","fa-shoe-prints","fa-shop-lock","fa-shop-slash","fa-shop","fa-shower","fa-shrimp","fa-shuffle","fa-shuttle-space","fa-sign-hanging","fa-signal","fa-signature","fa-signs-post","fa-sim-card","fa-sink","fa-sitemap","fa-skull-crossbones","fa-skull","fa-slash","fa-sleigh","fa-sliders","fa-smog","fa-smoking","fa-snowflake","fa-snowman","fa-snowplow","fa-soap","fa-socks","fa-solar-panel","fa-sort-down","fa-sort-up","fa-sort","fa-spa","fa-spaghetti-monster-flying","fa-spell-check","fa-spider","fa-spinner","fa-splotch","fa-spoon","fa-spray-can-sparkles","fa-spray-can","fa-square-arrow-up-right","fa-square-caret-down","fa-square-caret-left","fa-square-caret-right","fa-square-caret-up","fa-square-check","fa-square-envelope","fa-square-full","fa-square-h","fa-square-minus","fa-square-nfi","fa-square-parking","fa-square-pen","fa-square-person-confined","fa-square-phone-flip","fa-square-phone","fa-square-plus","fa-square-poll-horizontal","fa-square-poll-vertical","fa-square-root-variable","fa-square-rss","fa-square-share-nodes","fa-square-up-right","fa-square-virus","fa-square-xmark","fa-square","fa-staff-snake","fa-stairs","fa-stamp","fa-stapler","fa-star-and-crescent","fa-star-half-stroke","fa-star-half","fa-star-of-david","fa-star-of-life","fa-star","fa-sterling-sign","fa-stethoscope","fa-stop","fa-stopwatch-20","fa-stopwatch","fa-store-slash","fa-store","fa-street-view","fa-strikethrough","fa-stroopwafel","fa-subscript","fa-suitcase-medical","fa-suitcase-rolling","fa-suitcase","fa-sun-plant-wilt","fa-sun","fa-superscript","fa-swatchbook","fa-synagogue","fa-syringe","fa-t","fa-table-cells-large","fa-table-cells","fa-table-columns","fa-table-list","fa-table-tennis-paddle-ball","fa-table","fa-tablet-button","fa-tablet-screen-button","fa-tablet","fa-tablets","fa-tachograph-digital","fa-tag","fa-tags","fa-tape","fa-tarp-droplet","fa-tarp","fa-taxi","fa-teeth-open","fa-teeth","fa-temperature-arrow-down","fa-temperature-arrow-up","fa-temperature-empty","fa-temperature-full","fa-temperature-half","fa-temperature-high","fa-temperature-low","fa-temperature-quarter","fa-temperature-three-quarters","fa-tenge-sign","fa-tent-arrow-down-to-line","fa-tent-arrow-left-right","fa-tent-arrow-turn-left","fa-tent-arrows-down","fa-tent","fa-tents","fa-terminal","fa-text-height","fa-text-slash","fa-text-width","fa-thermometer","fa-thumbs-down","fa-thumbs-up","fa-thumbtack","fa-ticket-simple","fa-ticket","fa-timeline","fa-toggle-off","fa-toggle-on","fa-toilet-paper-slash","fa-toilet-paper","fa-toilet-portable","fa-toilet","fa-toilets-portable","fa-toolbox","fa-tooth","fa-torii-gate","fa-tornado","fa-tower-broadcast","fa-tower-cell","fa-tower-observation","fa-tractor","fa-trademark","fa-traffic-light","fa-trailer","fa-train-subway","fa-train-tram","fa-train","fa-transgender","fa-trash-arrow-up","fa-trash-can-arrow-up","fa-trash-can","fa-trash","fa-tree-city","fa-tree","fa-triangle-exclamation","fa-trophy","fa-trowel-bricks","fa-trowel","fa-truck-arrow-right","fa-truck-droplet","fa-truck-fast","fa-truck-field-un","fa-truck-field","fa-truck-front","fa-truck-medical","fa-truck-monster","fa-truck-moving","fa-truck-pickup","fa-truck-plane","fa-truck-ramp-box","fa-truck","fa-tty","fa-turkish-lira-sign","fa-turn-down","fa-turn-up","fa-tv","fa-u","fa-umbrella-beach","fa-umbrella","fa-underline","fa-universal-access","fa-unlock-keyhole","fa-unlock","fa-up-down-left-right","fa-up-down","fa-up-long","fa-up-right-and-down-left-from-center","fa-up-right-from-square","fa-upload","fa-user-astronaut","fa-user-check","fa-user-clock","fa-user-doctor","fa-user-gear","fa-user-graduate","fa-user-group","fa-user-injured","fa-user-large-slash","fa-user-large","fa-user-lock","fa-user-minus","fa-user-ninja","fa-user-nurse","fa-user-pen","fa-user-plus","fa-user-secret","fa-user-shield","fa-user-slash","fa-user-tag","fa-user-tie","fa-user-xmark","fa-user","fa-users-between-lines","fa-users-gear","fa-users-line","fa-users-rays","fa-users-rectangle","fa-users-slash","fa-users-viewfinder","fa-users","fa-utensils","fa-v","fa-van-shuttle","fa-vault","fa-vector-square","fa-venus-double","fa-venus-mars","fa-venus","fa-vest-patches","fa-vest","fa-vial-circle-check","fa-vial-virus","fa-vial","fa-vials","fa-video-slash","fa-video","fa-vihara","fa-virus-covid-slash","fa-virus-covid","fa-virus-slash","fa-virus","fa-viruses","fa-voicemail","fa-volcano","fa-volleyball","fa-volume-high","fa-volume-low","fa-volume-off","fa-volume-xmark","fa-vr-cardboard","fa-w","fa-walkie-talkie","fa-wallet","fa-wand-magic-sparkles","fa-wand-magic","fa-wand-sparkles","fa-warehouse","fa-water-ladder","fa-water","fa-wave-square","fa-weight-hanging","fa-weight-scale","fa-wheat-awn-circle-exclamation","fa-wheat-awn","fa-wheelchair-move","fa-wheelchair","fa-whiskey-glass","fa-wifi","fa-wind","fa-window-maximize","fa-window-minimize","fa-window-restore","fa-wine-bottle","fa-wine-glass-empty","fa-wine-glass","fa-won-sign","fa-worm","fa-wrench","fa-x-ray","fa-x","fa-xmark","fa-xmarks-lines","fa-y","fa-yen-sign","fa-yin-yang","fa-z"],bG=["ion-ios-add","ion-ios-add-circle","ion-ios-add-circle-outline","ion-ios-airplane","ion-ios-alarm","ion-ios-albums","ion-ios-alert","ion-ios-american-football","ion-ios-analytics","ion-ios-aperture","ion-ios-apps","ion-ios-appstore","ion-ios-archive","ion-ios-arrow-back","ion-ios-arrow-down","ion-ios-arrow-dropdown","ion-ios-arrow-dropdown-circle","ion-ios-arrow-dropleft","ion-ios-arrow-dropleft-circle","ion-ios-arrow-dropright","ion-ios-arrow-dropright-circle","ion-ios-arrow-dropup","ion-ios-arrow-dropup-circle","ion-ios-arrow-forward","ion-ios-arrow-round-back","ion-ios-arrow-round-down","ion-ios-arrow-round-forward","ion-ios-arrow-round-up","ion-ios-arrow-up","ion-ios-at","ion-ios-attach","ion-ios-backspace","ion-ios-barcode","ion-ios-baseball","ion-ios-basket","ion-ios-basketball","ion-ios-battery-charging","ion-ios-battery-dead","ion-ios-battery-full","ion-ios-beaker","ion-ios-bed","ion-ios-beer","ion-ios-bicycle","ion-ios-bluetooth","ion-ios-boat","ion-ios-body","ion-ios-bonfire","ion-ios-book","ion-ios-bookmark","ion-ios-bookmarks","ion-ios-bowtie","ion-ios-briefcase","ion-ios-browsers","ion-ios-brush","ion-ios-bug","ion-ios-build","ion-ios-bulb","ion-ios-bus","ion-ios-business","ion-ios-cafe","ion-ios-calculator","ion-ios-calendar","ion-ios-call","ion-ios-camera","ion-ios-car","ion-ios-card","ion-ios-cart","ion-ios-cash","ion-ios-cellular","ion-ios-chatboxes","ion-ios-chatbubbles","ion-ios-checkbox","ion-ios-checkbox-outline","ion-ios-checkmark","ion-ios-checkmark-circle","ion-ios-checkmark-circle-outline","ion-ios-clipboard","ion-ios-clock","ion-ios-close","ion-ios-close-circle","ion-ios-close-circle-outline","ion-ios-cloud","ion-ios-cloud-circle","ion-ios-cloud-done","ion-ios-cloud-download","ion-ios-cloud-outline","ion-ios-cloud-upload","ion-ios-cloudy","ion-ios-cloudy-night","ion-ios-code","ion-ios-code-download","ion-ios-code-working","ion-ios-cog","ion-ios-color-fill","ion-ios-color-filter","ion-ios-color-palette","ion-ios-color-wand","ion-ios-compass","ion-ios-construct","ion-ios-contact","ion-ios-contacts","ion-ios-contract","ion-ios-contrast","ion-ios-copy","ion-ios-create","ion-ios-crop","ion-ios-cube","ion-ios-cut","ion-ios-desktop","ion-ios-disc","ion-ios-document","ion-ios-done-all","ion-ios-download","ion-ios-easel","ion-ios-egg","ion-ios-exit","ion-ios-expand","ion-ios-eye","ion-ios-eye-off","ion-ios-fastforward","ion-ios-female","ion-ios-filing","ion-ios-film","ion-ios-finger-print","ion-ios-fitness","ion-ios-flag","ion-ios-flame","ion-ios-flash","ion-ios-flash-off","ion-ios-flashlight","ion-ios-flask","ion-ios-flower","ion-ios-folder","ion-ios-folder-open","ion-ios-football","ion-ios-funnel","ion-ios-gift","ion-ios-git-branch","ion-ios-git-commit","ion-ios-git-compare","ion-ios-git-merge","ion-ios-git-network","ion-ios-git-pull-request","ion-ios-glasses","ion-ios-globe","ion-ios-grid","ion-ios-hammer","ion-ios-hand","ion-ios-happy","ion-ios-headset","ion-ios-heart","ion-ios-heart-dislike","ion-ios-heart-empty","ion-ios-heart-half","ion-ios-help","ion-ios-help-buoy","ion-ios-help-circle","ion-ios-help-circle-outline","ion-ios-home","ion-ios-hourglass","ion-ios-ice-cream","ion-ios-image","ion-ios-images","ion-ios-infinite","ion-ios-information","ion-ios-information-circle","ion-ios-information-circle-outline","ion-ios-jet","ion-ios-journal","ion-ios-key","ion-ios-keypad","ion-ios-laptop","ion-ios-leaf","ion-ios-link","ion-ios-list","ion-ios-list-box","ion-ios-locate","ion-ios-lock","ion-ios-log-in","ion-ios-log-out","ion-ios-magnet","ion-ios-mail","ion-ios-mail-open","ion-ios-mail-unread","ion-ios-male","ion-ios-man","ion-ios-map","ion-ios-medal","ion-ios-medical","ion-ios-medkit","ion-ios-megaphone","ion-ios-menu","ion-ios-mic","ion-ios-mic-off","ion-ios-microphone","ion-ios-moon","ion-ios-more","ion-ios-move","ion-ios-musical-note","ion-ios-musical-notes","ion-ios-navigate","ion-ios-notifications","ion-ios-notifications-off","ion-ios-notifications-outline","ion-ios-nuclear","ion-ios-nutrition","ion-ios-open","ion-ios-options","ion-ios-outlet","ion-ios-paper","ion-ios-paper-plane","ion-ios-partly-sunny","ion-ios-pause","ion-ios-paw","ion-ios-people","ion-ios-person","ion-ios-person-add","ion-ios-phone-landscape","ion-ios-phone-portrait","ion-ios-photos","ion-ios-pie","ion-ios-pin","ion-ios-pint","ion-ios-pizza","ion-ios-planet","ion-ios-play","ion-ios-play-circle","ion-ios-podium","ion-ios-power","ion-ios-pricetag","ion-ios-pricetags","ion-ios-print","ion-ios-pulse","ion-ios-qr-scanner","ion-ios-quote","ion-ios-radio","ion-ios-radio-button-off","ion-ios-radio-button-on","ion-ios-rainy","ion-ios-recording","ion-ios-redo","ion-ios-refresh","ion-ios-refresh-circle","ion-ios-remove","ion-ios-remove-circle","ion-ios-remove-circle-outline","ion-ios-reorder","ion-ios-repeat","ion-ios-resize","ion-ios-restaurant","ion-ios-return-left","ion-ios-return-right","ion-ios-reverse-camera","ion-ios-rewind","ion-ios-ribbon","ion-ios-rocket","ion-ios-rose","ion-ios-sad","ion-ios-save","ion-ios-school","ion-ios-search","ion-ios-send","ion-ios-settings","ion-ios-share","ion-ios-share-alt","ion-ios-shirt","ion-ios-shuffle","ion-ios-skip-backward","ion-ios-skip-forward","ion-ios-snow","ion-ios-speedometer","ion-ios-square","ion-ios-square-outline","ion-ios-star","ion-ios-star-half","ion-ios-star-outline","ion-ios-stats","ion-ios-stopwatch","ion-ios-subway","ion-ios-sunny","ion-ios-swap","ion-ios-switch","ion-ios-sync","ion-ios-tablet-landscape","ion-ios-tablet-portrait","ion-ios-tennisball","ion-ios-text","ion-ios-thermometer","ion-ios-thumbs-down","ion-ios-thumbs-up","ion-ios-thunderstorm","ion-ios-time","ion-ios-timer","ion-ios-today","ion-ios-train","ion-ios-transgender","ion-ios-trash","ion-ios-trending-down","ion-ios-trending-up","ion-ios-trophy","ion-ios-tv","ion-ios-umbrella","ion-ios-undo","ion-ios-unlock","ion-ios-videocam","ion-ios-volume-high","ion-ios-volume-low","ion-ios-volume-mute","ion-ios-volume-off","ion-ios-walk","ion-ios-wallet","ion-ios-warning","ion-ios-watch","ion-ios-water","ion-ios-wifi","ion-ios-wine","ion-ios-woman","ion-logo-android","ion-logo-angular","ion-logo-apple","ion-logo-bitbucket","ion-logo-bitcoin","ion-logo-buffer","ion-logo-chrome","ion-logo-closed-captioning","ion-logo-codepen","ion-logo-css3","ion-logo-designernews","ion-logo-dribbble","ion-logo-dropbox","ion-logo-euro","ion-logo-facebook","ion-logo-flickr","ion-logo-foursquare","ion-logo-freebsd-devil","ion-logo-game-controller-a","ion-logo-game-controller-b","ion-logo-github","ion-logo-google","ion-logo-googleplus","ion-logo-hackernews","ion-logo-html5","ion-logo-instagram","ion-logo-ionic","ion-logo-ionitron","ion-logo-javascript","ion-logo-linkedin","ion-logo-markdown","ion-logo-model-s","ion-logo-no-smoking","ion-logo-nodejs","ion-logo-npm","ion-logo-octocat","ion-logo-pinterest","ion-logo-playstation","ion-logo-polymer","ion-logo-python","ion-logo-reddit","ion-logo-rss","ion-logo-sass","ion-logo-skype","ion-logo-slack","ion-logo-snapchat","ion-logo-steam","ion-logo-tumblr","ion-logo-tux","ion-logo-twitch","ion-logo-twitter","ion-logo-usd","ion-logo-vimeo","ion-logo-vk","ion-logo-whatsapp","ion-logo-windows","ion-logo-wordpress","ion-logo-xbox","ion-logo-xing","ion-logo-yahoo","ion-logo-yen","ion-logo-youtube","ion-md-add","ion-md-add-circle","ion-md-add-circle-outline","ion-md-airplane","ion-md-alarm","ion-md-albums","ion-md-alert","ion-md-american-football","ion-md-analytics","ion-md-aperture","ion-md-apps","ion-md-appstore","ion-md-archive","ion-md-arrow-back","ion-md-arrow-down","ion-md-arrow-dropdown","ion-md-arrow-dropdown-circle","ion-md-arrow-dropleft","ion-md-arrow-dropleft-circle","ion-md-arrow-dropright","ion-md-arrow-dropright-circle","ion-md-arrow-dropup","ion-md-arrow-dropup-circle","ion-md-arrow-forward","ion-md-arrow-round-back","ion-md-arrow-round-down","ion-md-arrow-round-forward","ion-md-arrow-round-up","ion-md-arrow-up","ion-md-at","ion-md-attach","ion-md-backspace","ion-md-barcode","ion-md-baseball","ion-md-basket","ion-md-basketball","ion-md-battery-charging","ion-md-battery-dead","ion-md-battery-full","ion-md-beaker","ion-md-bed","ion-md-beer","ion-md-bicycle","ion-md-bluetooth","ion-md-boat","ion-md-body","ion-md-bonfire","ion-md-book","ion-md-bookmark","ion-md-bookmarks","ion-md-bowtie","ion-md-briefcase","ion-md-browsers","ion-md-brush","ion-md-bug","ion-md-build","ion-md-bulb","ion-md-bus","ion-md-business","ion-md-cafe","ion-md-calculator","ion-md-calendar","ion-md-call","ion-md-camera","ion-md-car","ion-md-card","ion-md-cart","ion-md-cash","ion-md-cellular","ion-md-chatboxes","ion-md-chatbubbles","ion-md-checkbox","ion-md-checkbox-outline","ion-md-checkmark","ion-md-checkmark-circle","ion-md-checkmark-circle-outline","ion-md-clipboard","ion-md-clock","ion-md-close","ion-md-close-circle","ion-md-close-circle-outline","ion-md-cloud","ion-md-cloud-circle","ion-md-cloud-done","ion-md-cloud-download","ion-md-cloud-outline","ion-md-cloud-upload","ion-md-cloudy","ion-md-cloudy-night","ion-md-code","ion-md-code-download","ion-md-code-working","ion-md-cog","ion-md-color-fill","ion-md-color-filter","ion-md-color-palette","ion-md-color-wand","ion-md-compass","ion-md-construct","ion-md-contact","ion-md-contacts","ion-md-contract","ion-md-contrast","ion-md-copy","ion-md-create","ion-md-crop","ion-md-cube","ion-md-cut","ion-md-desktop","ion-md-disc","ion-md-document","ion-md-done-all","ion-md-download","ion-md-easel","ion-md-egg","ion-md-exit","ion-md-expand","ion-md-eye","ion-md-eye-off","ion-md-fastforward","ion-md-female","ion-md-filing","ion-md-film","ion-md-finger-print","ion-md-fitness","ion-md-flag","ion-md-flame","ion-md-flash","ion-md-flash-off","ion-md-flashlight","ion-md-flask","ion-md-flower","ion-md-folder","ion-md-folder-open","ion-md-football","ion-md-funnel","ion-md-gift","ion-md-git-branch","ion-md-git-commit","ion-md-git-compare","ion-md-git-merge","ion-md-git-network","ion-md-git-pull-request","ion-md-glasses","ion-md-globe","ion-md-grid","ion-md-hammer","ion-md-hand","ion-md-happy","ion-md-headset","ion-md-heart","ion-md-heart-dislike","ion-md-heart-empty","ion-md-heart-half","ion-md-help","ion-md-help-buoy","ion-md-help-circle","ion-md-help-circle-outline","ion-md-home","ion-md-hourglass","ion-md-ice-cream","ion-md-image","ion-md-images","ion-md-infinite","ion-md-information","ion-md-information-circle","ion-md-information-circle-outline","ion-md-jet","ion-md-journal","ion-md-key","ion-md-keypad","ion-md-laptop","ion-md-leaf","ion-md-link","ion-md-list","ion-md-list-box","ion-md-locate","ion-md-lock","ion-md-log-in","ion-md-log-out","ion-md-magnet","ion-md-mail","ion-md-mail-open","ion-md-mail-unread","ion-md-male","ion-md-man","ion-md-map","ion-md-medal","ion-md-medical","ion-md-medkit","ion-md-megaphone","ion-md-menu","ion-md-mic","ion-md-mic-off","ion-md-microphone","ion-md-moon","ion-md-more","ion-md-move","ion-md-musical-note","ion-md-musical-notes","ion-md-navigate","ion-md-notifications","ion-md-notifications-off","ion-md-notifications-outline","ion-md-nuclear","ion-md-nutrition","ion-md-open","ion-md-options","ion-md-outlet","ion-md-paper","ion-md-paper-plane","ion-md-partly-sunny","ion-md-pause","ion-md-paw","ion-md-people","ion-md-person","ion-md-person-add","ion-md-phone-landscape","ion-md-phone-portrait","ion-md-photos","ion-md-pie","ion-md-pin","ion-md-pint","ion-md-pizza","ion-md-planet","ion-md-play","ion-md-play-circle","ion-md-podium","ion-md-power","ion-md-pricetag","ion-md-pricetags","ion-md-print","ion-md-pulse","ion-md-qr-scanner","ion-md-quote","ion-md-radio","ion-md-radio-button-off","ion-md-radio-button-on","ion-md-rainy","ion-md-recording","ion-md-redo","ion-md-refresh","ion-md-refresh-circle","ion-md-remove","ion-md-remove-circle","ion-md-remove-circle-outline","ion-md-reorder","ion-md-repeat","ion-md-resize","ion-md-restaurant","ion-md-return-left","ion-md-return-right","ion-md-reverse-camera","ion-md-rewind","ion-md-ribbon","ion-md-rocket","ion-md-rose","ion-md-sad","ion-md-save","ion-md-school","ion-md-search","ion-md-send","ion-md-settings","ion-md-share","ion-md-share-alt","ion-md-shirt","ion-md-shuffle","ion-md-skip-backward","ion-md-skip-forward","ion-md-snow","ion-md-speedometer","ion-md-square","ion-md-square-outline","ion-md-star","ion-md-star-half","ion-md-star-outline","ion-md-stats","ion-md-stopwatch","ion-md-subway","ion-md-sunny","ion-md-swap","ion-md-switch","ion-md-sync","ion-md-tablet-landscape","ion-md-tablet-portrait","ion-md-tennisball","ion-md-text","ion-md-thermometer","ion-md-thumbs-down","ion-md-thumbs-up","ion-md-thunderstorm","ion-md-time","ion-md-timer","ion-md-today","ion-md-train","ion-md-transgender","ion-md-trash","ion-md-trending-down","ion-md-trending-up","ion-md-trophy","ion-md-tv","ion-md-umbrella","ion-md-undo","ion-md-unlock","ion-md-videocam","ion-md-volume-high","ion-md-volume-low","ion-md-volume-mute","ion-md-volume-off","ion-md-walk","ion-md-wallet","ion-md-warning","ion-md-watch","ion-md-water","ion-md-wifi","ion-md-wine","ion-md-woman"],yG=["ti-arrow-up","ti-arrow-right","ti-arrow-left","ti-arrow-down","ti-arrows-vertical","ti-arrows-horizontal","ti-angle-up","ti-angle-right","ti-angle-left","ti-angle-down","ti-angle-double-up","ti-angle-double-right","ti-angle-double-left","ti-angle-double-down","ti-move","ti-fullscreen","ti-arrow-top-right","ti-arrow-top-left","ti-arrow-circle-up","ti-arrow-circle-right","ti-arrow-circle-left","ti-arrow-circle-down","ti-arrows-corner","ti-split-v","ti-split-v-alt","ti-split-h","ti-hand-point-up","ti-hand-point-right","ti-hand-point-left","ti-hand-point-down","ti-back-right","ti-back-left","ti-exchange-vertical","ti-wand","ti-save","ti-save-alt","ti-direction","ti-direction-alt","ti-user","ti-link","ti-unlink","ti-trash","ti-target","ti-tag","ti-desktop","ti-tablet","ti-mobile","ti-email","ti-star","ti-spray","ti-signal","ti-shopping-cart","ti-shopping-cart-full","ti-settings","ti-search","ti-zoom-in","ti-zoom-out","ti-cut","ti-ruler","ti-ruler-alt-2","ti-ruler-pencil","ti-ruler-alt","ti-bookmark","ti-bookmark-alt","ti-reload","ti-plus","ti-minus","ti-close","ti-pin","ti-pencil","ti-pencil-alt","ti-paint-roller","ti-paint-bucket","ti-na","ti-medall","ti-medall-alt","ti-marker","ti-marker-alt","ti-lock","ti-unlock","ti-location-arrow","ti-layout","ti-layers","ti-layers-alt","ti-key","ti-image","ti-heart","ti-heart-broken","ti-hand-stop","ti-hand-open","ti-hand-drag","ti-flag","ti-flag-alt","ti-flag-alt-2","ti-eye","ti-import","ti-export","ti-cup","ti-crown","ti-comments","ti-comment","ti-comment-alt","ti-thought","ti-clip","ti-check","ti-check-box","ti-camera","ti-announcement","ti-brush","ti-brush-alt","ti-palette","ti-briefcase","ti-bolt","ti-bolt-alt","ti-blackboard","ti-bag","ti-world","ti-wheelchair","ti-car","ti-truck","ti-timer","ti-ticket","ti-thumb-up","ti-thumb-down","ti-stats-up","ti-stats-down","ti-shine","ti-shift-right","ti-shift-left","ti-shift-right-alt","ti-shift-left-alt","ti-shield","ti-notepad","ti-server","ti-pulse","ti-printer","ti-power-off","ti-plug","ti-pie-chart","ti-panel","ti-package","ti-music","ti-music-alt","ti-mouse","ti-mouse-alt","ti-money","ti-microphone","ti-menu","ti-menu-alt","ti-map","ti-map-alt","ti-location-pin","ti-light-bulb","ti-info","ti-infinite","ti-id-badge","ti-hummer","ti-home","ti-help","ti-headphone","ti-harddrives","ti-harddrive","ti-gift","ti-game","ti-filter","ti-files","ti-file","ti-zip","ti-folder","ti-envelope","ti-dashboard","ti-cloud","ti-cloud-up","ti-cloud-down","ti-clipboard","ti-calendar","ti-book","ti-bell","ti-basketball","ti-bar-chart","ti-bar-chart-alt","ti-archive","ti-anchor","ti-alert","ti-alarm-clock","ti-agenda","ti-write","ti-wallet","ti-video-clapper","ti-video-camera","ti-vector","ti-support","ti-stamp","ti-slice","ti-shortcode","ti-receipt","ti-pin2","ti-pin-alt","ti-pencil-alt2","ti-eraser","ti-more","ti-more-alt","ti-microphone-alt","ti-magnet","ti-line-double","ti-line-dotted","ti-line-dashed","ti-ink-pen","ti-info-alt","ti-help-alt","ti-headphone-alt","ti-gallery","ti-face-smile","ti-face-sad","ti-credit-card","ti-comments-smiley","ti-time","ti-share","ti-share-alt","ti-rocket","ti-new-window","ti-rss","ti-rss-alt","ti-control-stop","ti-control-shuffle","ti-control-play","ti-control-pause","ti-control-forward","ti-control-backward","ti-volume","ti-control-skip-forward","ti-control-skip-backward","ti-control-record","ti-control-eject","ti-paragraph","ti-uppercase","ti-underline","ti-text","ti-Italic","ti-smallcap","ti-list","ti-list-ol","ti-align-right","ti-align-left","ti-align-justify","ti-align-center","ti-quote-right","ti-quote-left","ti-layout-width-full","ti-layout-width-default","ti-layout-width-default-alt","ti-layout-tab","ti-layout-tab-window","ti-layout-tab-v","ti-layout-tab-min","ti-layout-slider","ti-layout-slider-alt","ti-layout-sidebar-right","ti-layout-sidebar-none","ti-layout-sidebar-left","ti-layout-placeholder","ti-layout-menu","ti-layout-menu-v","ti-layout-menu-separated","ti-layout-menu-full","ti-layout-media-right","ti-layout-media-right-alt","ti-layout-media-overlay","ti-layout-media-overlay-alt","ti-layout-media-overlay-alt-2","ti-layout-media-left","ti-layout-media-left-alt","ti-layout-media-center","ti-layout-media-center-alt","ti-layout-list-thumb","ti-layout-list-thumb-alt","ti-layout-list-post","ti-layout-list-large-image","ti-layout-line-solid","ti-layout-grid4","ti-layout-grid3","ti-layout-grid2","ti-layout-grid2-thumb","ti-layout-cta-right","ti-layout-cta-left","ti-layout-cta-center","ti-layout-cta-btn-right","ti-layout-cta-btn-left","ti-layout-column4","ti-layout-column3","ti-layout-column2","ti-layout-accordion-separated","ti-layout-accordion-merged","ti-layout-accordion-list","ti-widgetized","ti-widget","ti-widget-alt","ti-view-list","ti-view-list-alt","ti-view-grid","ti-upload","ti-download","ti-loop","ti-layout-sidebar-2","ti-layout-grid4-alt","ti-layout-grid3-alt","ti-layout-grid2-alt","ti-layout-column4-alt","ti-layout-column3-alt","ti-layout-column2-alt","ti-flickr","ti-flickr-alt","ti-instagram","ti-google","ti-github","ti-facebook","ti-dropbox","ti-dropbox-alt","ti-dribbble","ti-apple","ti-android","ti-yahoo","ti-trello","ti-stack-overflow","ti-soundcloud","ti-sharethis","ti-sharethis-alt","ti-reddit","ti-microsoft","ti-microsoft-alt","ti-linux","ti-jsfiddle","ti-joomla","ti-html5","ti-css3","ti-drupal","ti-wordpress","ti-tumblr","ti-tumblr-alt","ti-skype","ti-youtube","ti-vimeo","ti-vimeo-alt","ti-twitter","ti-twitter-alt","ti-linkedin","ti-pinterest","ti-pinterest-alt","ti-themify-logo","ti-themify-favicon","ti-themify-favicon-alt"],wG={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0}},data:function(){var e;return{showPopup:!1,library:(null===(e=this.value)||void 0===e?void 0:e.library)||void 0,searchFor:"",libraries:{placeholder:this.i18n.selectLibrary,options:{fontawesomeBrands:"Fontawesome - Brands",fontawesomeRegular:"Fontawesome - Regular",fontawesomeSolid:"Fontawesome - Solid",ionicons:"Ionicons",themify:"Themify"}},icons:{fontawesomeBrands:{},fontawesomeRegular:{},fontawesomeSolid:{},fontawesome:{},ionicons:{},themify:{}}}},computed:{options:function(){var e=this.library?this.$_clone(this.icons[this.library]):this.$_clone(this.icons.ionicons),t=this.searchFor?this.searchFor.toLowerCase():"";return t&&Object.keys(e).forEach((function(n){-1===e[n].toLowerCase().indexOf(t)&&delete e[n]})),e},icon:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.icon)||void 0}},methods:{updateIcon:function(e){var t=this.$_clone(this.value);t.icon=e,delete t.svg,this.$emit("input",t)}},created:function(){var e=this;this.$_state.userCan.uploadSvg&&(this.libraries.options.svg="SVG"),mG.forEach((function(t){t="fab ".concat(t),e.icons.fontawesomeBrands[t]='<i class="'.concat(t,'"></i>')})),gG.forEach((function(t){t="fa ".concat(t),e.icons.fontawesomeRegular[t]='<i class="'.concat(t,'"></i>')})),vG.forEach((function(t){t="fas ".concat(t),e.icons.fontawesomeSolid[t]='<i class="'.concat(t,'"></i>')})),bG.forEach((function(t){e.icons.ionicons[t]='<i class="'.concat(t,'"></i>')})),yG.forEach((function(t){e.icons.themify[t]='<i class="'.concat(t,'"></i>')}))},watch:{library:function(){this.library||(this.searchFor=""),this.$emit("input",{library:this.library,icon:void 0})},showPopup:function(e){var t=this;this.$nextTick((function(){if(e){var n=!!t.$refs.icons&&t.$refs.icons.querySelector(".active");n&&(t.$refs.icons.scrollTop=n.offsetTop)}}))}}};var kG=(0,tm.Z)(wG,[["render",function(e,t,n,o,i,r){var a=no("control-select"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",sG,[ua("div",{class:ee(["bricks-control-preview",{svg:n.value?n.value.svg:null}]),onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[n.value.svg?(Yr(),oa("img",{key:0,src:n.value.svg.url,alt:""},null,8,lG)):(Yr(),oa("i",{key:1,class:ee(r.icon)},null,2))],2),i.showPopup?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[3]||(t[3]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[da(a,{value:i.library,"onUpdate:value":t[1]||(t[1]=function(e){return i.library=e}),control:i.libraries},null,8,["value","control"]),"svg"===i.library&&e.$_state.userCan.uploadSvg?(Yr(),oa("div",cG,[da(s,{control:{type:"svg"},controlKey:"svg",settings:n.value},null,8,["settings"]),da(s,{control:{type:"number",units:!0,label:e.i18n.height},controlKey:"height",settings:n.value},null,8,["control","settings"]),da(s,{control:{type:"number",units:!0,label:e.i18n.width},controlKey:"width",settings:n.value},null,8,["control","settings"]),da(s,{control:{type:"number",units:!0,label:e.i18n.strokeWidth},controlKey:"strokeWidth",settings:n.value},null,8,["control","settings"]),da(s,{control:{type:"color",label:e.i18n.strokeColor,inline:!0},controlKey:"stroke",settings:n.value},null,8,["control","settings"]),da(s,{control:{type:"color",label:e.i18n.fill,inline:!0},controlKey:"fill",settings:n.value},null,8,["control","settings"])])):i.library?(Yr(),oa("div",uG,[Io(ua("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return i.searchFor=e}),type:"text",spellcheck:"false",placeholder:e.i18n.searchFor},null,8,dG),[[ml,i.searchFor]]),ua("ul",fG,[(Yr(!0),oa(Wr,null,gi(r.options,(function(e,t){return Yr(),oa("li",{key:t,title:t,class:ee({active:t==r.icon}),onClick:function(e){return r.updateIcon(t)}},[ua("i",{class:ee(t),title:t},null,10,hG)],10,pG)})),128))],512)])):va("",!0)]})),_:1},8,["show"])):va("",!0)])}]]),xG={"data-control":"image"},CG=["data-balloon"],_G=["src","alt","title"],SG=["textContent"],TG=["textContent"],$G=["data-balloon"],EG=["placeholder","value"],IG=["textContent"];var MG={emits:["input"],props:{value:{required:!1,type:Object,default:function(){return{}}},control:{type:Object,required:!0},controlKey:{type:String,required:!1},block:{type:Object}},data:function(){return{hasDynamicData:this.control.hasOwnProperty("hasDynamicData")?this.control.hasDynamicData:"image",sizes:{},imageUrlValid:!0,maybeOpenMediaLibrary:!1}},computed:{useDynamicData:function(){var e,t;return(null===(e=this.value)||void 0===e||null===(e=e.useDynamicData)||void 0===e?void 0:e.name)||(null===(t=this.value)||void 0===t?void 0:t.useDynamicData)||""},hasImage:function(){var e,t;return(null===(e=this.value)||void 0===e?void 0:e.url)||(null===(t=this.value)||void 0===t?void 0:t.id)},externalUrl:function(){var e,t;return null!==(e=this.value)&&void 0!==e&&e.url&&null!==(t=this.value)&&void 0!==t&&t.external?this.value.url:""},filename:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.filename)||""},isSvg:function(){return-1!==this.filename.indexOf(".svg")},size:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.size)||this.bricks.defaultImageSize},belongsToLoop:function(){var e=this.block||this.$_activeElement.value;return e&&this.$_elementBelongsToLoopId(e)}},methods:{setExternalUrl:function(e){e?this.$emit("input",{url:e,external:!0,filename:e.split("/").pop()}):this.$emit("input",!1)},openUnsplashPopup:function(){this.maybeOpenMediaLibrary=!0,this.$_state.popup="unsplash"},clearImage:function(){this.$emit("input","")},getDefaultImageSizes:function(){return{options:this.bricks.controlOptions.imageSizes,clearable:!1}},getImageSizes:function(){var e,t,n=this;this.hasImage&&null!==(e=this.value)&&void 0!==e&&e.id?this.$_http({data:{action:"bricks_get_image_metadata",image:this.value,imageId:null===(t=this.value)||void 0===t?void 0:t.id,imageSize:this.size},success:function(e){var t;if(null!==(t=e.data)&&void 0!==t&&t.full){var o={full:{width:e.data.full.width,height:e.data.full.height}};o=Object.assign(o,e.data.sizes),n.sizes={options:n.getImageSizesOptions(o),clearable:!1}}}}):this.sizes=this.getDefaultImageSizes()},getImageSizesOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(e).forEach((function(o){var i=o.split(/[-_]+/);i=(i=i.map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}))).join(" "),t?e[o].width&&(i+=" (".concat(e[o].width,"px)")):i+=" (".concat(e[o].width,"x").concat(e[o].height,")"),n[o]=i})),n},updateDynamicData:function(e){var t=this.$_clone(this.value);e?t.useDynamicData=e:delete t.useDynamicData,this.$emit("input",t)},updateSize:function(e){var t,n,o=this;if(!this.useDynamicData||null!==(t=this.value)&&void 0!==t&&t.id)this.hasImage&&this.$_http({data:{action:"bricks_get_image_metadata",imageId:null===(n=this.value)||void 0===n?void 0:n.id,imageSize:e},success:function(t){var n;if(null!==(n=t.data)&&void 0!==n&&n.src){var i=jQuery.extend({},o.value,{size:e,url:t.data.src[0]});o.$emit("input",i)}}});else{var i=jQuery.extend({},this.value,{size:e});this.$emit("input",i)}},getImageIdFromCustomField:function(e){var t,n=this;e&&this.$_http({data:{action:"bricks_get_image_from_custom_field",postId:null!==(t=this.bricks.template.preview)&&void 0!==t&&t.postId?this.bricks.template.preview.postId:this.bricks.postId,metaKey:e,size:this.size},success:function(e){var t={useDynamicData:n.useDynamicData,size:n.size};t=e.success?jQuery.extend(t,e.data):t,n.$emit("input",t)}})}},mounted:function(){this.useDynamicData&&!this.belongsToLoop&&this.getImageIdFromCustomField(this.useDynamicData),this.getImageSizes()},watch:{useDynamicData:function(e,t){if(e)if(this.sizes=this.getDefaultImageSizes(),this.belongsToLoop){var n={useDynamicData:e,size:this.size};this.$emit("input",n)}else this.getImageIdFromCustomField(e);else t&&this.clearImage()},value:{handler:function(){this.getImageSizes(),this.imageUrlValid=!0},deep:!0},"$_state.popup":{handler:function(e,t){this.maybeOpenMediaLibrary&&"unsplash"===t&&e!==t&&(this.$_openMediaLibrary("image"),this.maybeOpenMediaLibrary=!1)}}}};const AG=(0,tm.Z)(MG,[["render",function(e,t,n,o,i,r){var a,s,l,c,u=no("icon"),d=no("control-info"),f=no("control-text"),p=no("control-select");return Yr(),oa("div",xG,[r.hasImage&&i.imageUrlValid?(Yr(),oa("div",{key:0,class:"image-wrapper","data-balloon":r.filename,"data-balloon-pos":"top"},[ua("img",{src:n.value.url,alt:r.filename,title:r.filename,onClick:t[0]||(t[0]=El((function(t){return r.useDynamicData?null:e.$_openMediaLibrary("image")}),["stop"])),onError:t[1]||(t[1]=function(e){return i.imageUrlValid=!1})},null,40,_G),da(u,{name:"trash",class:"bricks-panel-actions-icon delete",onClick:El(r.clearImage,["stop"])},null,8,["onClick"])],8,CG)):va("",!0),r.externalUrl&&!i.imageUrlValid?(Yr(),ia(d,{key:1,control:{content:"".concat(e.i18n.external,": ").concat(e.i18n.imageNotFound,".")}},null,8,["control"])):va("",!0),r.hasImage||r.useDynamicData?va("",!0):(Yr(),oa("div",{key:2,textContent:de(e.i18n.selectImage),class:"no-file",onClick:t[2]||(t[2]=El((function(t){return e.$_openMediaLibrary("image")}),["stop"]))},null,8,SG)),!r.useDynamicData||r.hasImage||r.belongsToLoop?va("",!0):(Yr(),ia(d,{key:3,class:"pointer",control:{content:e.i18n.dynamicDataIsEmpty}},null,8,["control"])),!r.useDynamicData&&!1!==(null===(a=n.control)||void 0===a?void 0:a.unsplash)&&null!==(s=e.$_state.globalSettings)&&void 0!==s&&s.apiKeyUnsplash?(Yr(),oa("button",{key:4,onClick:t[3]||(t[3]=El((function(){return r.openUnsplashPopup&&r.openUnsplashPopup.apply(r,arguments)}),["stop"])),textContent:de(e.i18n.browseUnsplash)},null,8,TG)):va("",!0),Io(da(f,{placeholder:e.i18n.dynamicData,controlKey:n.controlKey,value:null===(l=n.value)||void 0===l?void 0:l.useDynamicData,onInput:t[4]||(t[4]=function(e){return r.updateDynamicData(e)})},null,8,["placeholder","controlKey","value"]),[[As,i.hasDynamicData&&(!r.hasImage||r.useDynamicData)]]),r.externalUrl||r.isSvg||!i.sizes||!r.hasImage&&!r.useDynamicData?va("",!0):(Yr(),ia(p,{key:5,class:"image-sizes","data-balloon":e.i18n.imageSize,"data-balloon-pos":"bottom-right",control:i.sizes,value:r.size,onInput:t[5]||(t[5]=function(e){return r.updateSize(e)})},null,8,["data-balloon","control","value"])),Io(ua("div",{class:"external-url","data-balloon":r.externalUrl?e.i18n.external:null,"data-balloon-pos":"bottom-right"},[ua("input",{type:"url",class:"external-url",placeholder:e.i18n.external,value:r.externalUrl,onInput:t[6]||(t[6]=function(e){return r.setExternalUrl(e.target.value)})},null,40,EG)],8,$G),[[As,!r.hasImage||r.externalUrl]]),!Object.keys(n.value).length||null!==(c=n.value)&&void 0!==c&&c.id||r.useDynamicData||r.externalUrl?va("",!0):(Yr(),oa("div",{key:6,textContent:de(e.i18n.placeholderImageInfo),class:"placeholder-description"},null,8,IG))])}]]);var OG=AG,PG={"data-control":"image"},LG=["src"],DG=["textContent"],NG=["innerHTML"],jG={key:3,class:"button-group"},VG=["textContent"],FG=["textContent"],RG=["textContent"];var qG={emits:["input"],props:{value:{required:!1,type:[Array,Object],default:function(){return{}}},control:{type:Object,required:!0},controlKey:{type:String,required:!1},block:{required:!1}},data:function(){var e;return{useDynamicData:"",maybeOpenMediaLibrary:!1,sortableOptions:{direction:"horizontal",itemClass:"bricks-sortable-item",handleClass:"image"},sizes:{options:this.bricks.controlOptions.imageSizes,clearable:!1},exclude:(null===(e=this.control)||void 0===e?void 0:e.exclude)||[]}},computed:{images:{get:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.images)||[]},set:function(e){this.value.images=e}},size:function(){var e;return null!==(e=this.value)&&void 0!==e&&e.size?this.value.size:this.images.length&&this.images[0].size?this.images[0].size:this.bricks.defaultImageSize},hasDynamicData:function(){return this.control.hasOwnProperty("hasDynamicData")?this.control.hasDynamicData:"image"}},methods:{openUnsplashPopup:function(){this.maybeOpenMediaLibrary=!0,this.$_state.popup="unsplash"},deleteGalleryImage:function(e){var t=this.$_clone(this.images);t.splice(e,1),Array.isArray(t)&&t.length?this.value.images=t:this.$emit("input",!1)},updateSize:function(e){var t=this.$_clone(this.value);t.size=e,this.$emit("input",t)}},created:function(){var e,t=this.$_clone(this.value);Array.isArray(t)&&(this.value.images=t),this.useDynamicData=(null==t||null===(e=t.useDynamicData)||void 0===e?void 0:e.name)||(null==t?void 0:t.useDynamicData)||""},watch:{value:{handler:function(){this.$_forceRender(100)},deep:!0},useDynamicData:function(e){e=e?{useDynamicData:e,size:this.size}:{},this.$emit("input",e)},"$_state.popup":{handler:function(e,t){this.maybeOpenMediaLibrary&&"unsplash"===t&&e!==t&&(this.$_openMediaLibrary("image",!0),this.maybeOpenMediaLibrary=!1)}}}};const BG=(0,tm.Z)(qG,[["render",function(e,t,n,o,i,r){var a,s=no("icon"),l=no("sortable"),c=no("control-text"),u=no("control-select");return Yr(),oa("div",PG,[n.control&&r.images.length?(Yr(),ia(l,{key:0,tag:"ul",class:"gallery-wrapper",element:n.block,parent:r.images,options:i.sortableOptions},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.images,(function(n,o){return Yr(),oa("li",{key:n.id,class:"bricks-sortable-item image-wrapper"},[ua("img",{src:n.url,class:"image bricks-sortable-handle",onClick:t[0]||(t[0]=El((function(t){return e.$_openMediaLibrary("image",!0)}),["stop"]))},null,8,LG),Io(da(s,{name:"trash",class:"bricks-panel-actions-icon delete",onClick:function(e){return r.deleteGalleryImage(o)}},null,8,["onClick"]),[[As,!e.$_state.draggingElement]])])})),128))]})),_:1},8,["element","parent","options"])):va("",!0),r.images.length||i.useDynamicData?va("",!0):(Yr(),oa("div",{key:1,class:"no-file",textContent:de(e.i18n.selectImage),onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("image",!0)})},null,8,DG)),i.useDynamicData?va("",!0):(Yr(),oa("div",{key:2,class:"description",innerHTML:e.i18n.imageGalleryDescription},null,8,NG)),n.control&&r.images&&!i.useDynamicData?(Yr(),oa("div",jG,[ua("button",{class:"add",textContent:de(e.i18n.addImages),onClick:t[2]||(t[2]=function(t){return e.$_openMediaLibrary("image",!0)})},null,8,VG),r.images.length?(Yr(),oa("button",{key:0,class:"remove",textContent:de(e.i18n.clear),onClick:t[3]||(t[3]=function(t){return e.$emit("input",{})})},null,8,FG)):va("",!0)])):va("",!0),!i.useDynamicData&&null!==(a=e.$_state.globalSettings)&&void 0!==a&&a.apiKeyUnsplash?(Yr(),oa("button",{key:4,onClick:t[4]||(t[4]=El((function(){return r.openUnsplashPopup&&r.openUnsplashPopup.apply(r,arguments)}),["stop"])),textContent:de(e.i18n.browseUnsplash)},null,8,RG)):va("",!0),r.hasDynamicData?(Yr(),ia(c,{key:5,placeholder:e.i18n.dynamicData,controlKey:n.controlKey,value:i.useDynamicData,"onUpdate:value":t[5]||(t[5]=function(e){return i.useDynamicData=e})},null,8,["placeholder","controlKey","value"])):va("",!0),r.images&&i.sizes&&!i.exclude.includes("size")?(Yr(),ia(u,{key:6,class:"image-sizes",control:i.sizes,value:r.size,onInput:r.updateSize},null,8,["control","value","onInput"])):va("",!0)])}]]);var zG=BG,HG=["innerHTML"];var WG={props:{control:{type:Object,required:!0,default:function(){return{}}}},computed:{content:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.content},settingType:function(){return!!this.control.required&&(this.control.required.length>=4?this.control.required[3]:void 0)}},methods:{changePanel:function(){switch(this.settingType){case"pageSettings":this.$_showPanel({panel:"settings-page"});break;case"templateSettings":this.$_showPanel({panel:"settings-template"});break;default:this.settingType&&console.warn("controlInfo: undefined settingType: ".concat(this.settingType))}}}};const UG=(0,tm.Z)(WG,[["render",function(e,t,n,o,i,r){return r.content?(Yr(),oa("div",{key:0,class:ee([{pointer:r.settingType}]),"data-control":"info",innerHTML:r.content,onClick:t[0]||(t[0]=function(){return r.changePanel&&r.changePanel.apply(r,arguments)})},null,10,HG)):va("",!0)}]]);var KG=UG,GG={class:"bricks-panel-controls"},ZG={"data-control":"interactions"},JG={class:"title-wrapper"},YG=["textContent"],QG={class:"actions"},XG=["data-balloon"],eZ=["data-balloon"],tZ={key:0,class:"no-results"},nZ=["href","textContent"];var oZ={computed:{block:function(){return this.$_activeClass.value?this.$_activeClass.value:this.$_getFinalElement()},settings:function(){var e;return null===(e=this.block)||void 0===e?void 0:e.settings},interactions:function(){var e;return(null===(e=this.settings)||void 0===e?void 0:e._interactions)||[]},control:function(){return this.bricks.controls.interactions}},methods:{addInteraction:function(){var e=this.$el.querySelectorAll(".control-repeater .add-item"),t=!!e.length&&e[e.length-1];t&&t.click()},addItem:function(e){this.interactions[e].push({id:this.$_generateId()})},deleteItem:function(e,t){this.interactions[e].splice(t,1),this.interactions[e].length||this.interactions.splice(e,1)}},watch:{interactions:{handler:function(e){var t;e.length?(null!=this&&this.settings||(this.settings={}),this.settings._interactions=e):null!==(t=this.settings)&&void 0!==t&&t._interactions&&delete this.settings._interactions},deep:!0}}};var iZ=(0,tm.Z)(oZ,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("control-info"),l=no("panel-control");return Yr(),oa("div",GG,[ua("div",ZG,[ua("div",JG,[ua("div",{class:"title",textContent:de(e.i18n.interactions)},null,8,YG),ua("div",QG,[ua("div",{class:"add",onClick:t[0]||(t[0]=function(e){return r.addInteraction()}),"data-balloon":e.i18n.add,"data-balloon-pos":"bottom-right"},[da(a,{name:"add"})],8,XG),ua("div",{class:"close",onClick:t[1]||(t[1]=function(t){return e.$_state.showInteractions=!1}),"data-balloon":e.i18n.close,"data-balloon-pos":"bottom-right"},[da(a,{name:"close"})],8,eZ)])]),r.interactions.length?va("",!0):(Yr(),oa("div",tZ,[da(s,{control:{content:e.i18n.noInteractionsSet}},null,8,["control"]),ua("a",{href:e.bricks.academy.interactions,target:"_blank",class:"button",textContent:de(e.i18n.learnMore)},null,8,nZ)])),da(l,{block:r.block,control:r.control,controlKey:"_interactions",settings:r.settings},null,8,["block","control","settings"])])])}]]),rZ={"data-control":"link"};var aZ={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!1}},data:function(){var e;return{link:{},popup:(null===(e=this.value)||void 0===e?void 0:e.popup)||!0}},computed:{controls:function(){var e,t={type:{type:"select",placeholder:(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.placeholderSelectLinkType,options:this.controlTypeOptions,clearable:!0},postId:{type:"select",placeholder:this.i18n.placeholderSelectPost,optionsAjax:{action:"bricks_get_posts",postType:"any",addLanguageToPostTitle:!0},multiple:!1,searchable:!0,required:["type","=","internal"]},url:{type:"text",label:this.i18n.url,placeholder:"https://example.com",required:["type","=","external"],hasDynamicData:"text"},useDynamicData:{type:"text",hasDynamicData:"link",controlKey:this.controlKey,placeholder:this.i18n.dynamicData,required:["type","=","meta"]},mediaData:{type:"file",context:"link",required:["type","=","media"]},lightboxInfo:{type:"info",content:this.i18n.infoLightbox,required:["type","=",["lightboxImage","lightboxVideo"]]},lightboxImage:{type:"image",required:["type","=","lightboxImage"]},lightboxVideo:{type:"text",required:["type","=","lightboxVideo"],hasDynamicData:"link",description:this.i18n.descriptionLightboxVideo},lightboxId:{type:"text",label:"".concat(this.i18n.lightboxId),inline:!0,required:["type","=",["lightboxImage"]]},rel:{type:"text",label:"".concat(this.i18n.attribute,": rel"),inline:!0,required:["type","=",["internal","external","meta"]]},ariaLabel:{type:"text",label:"".concat(this.i18n.attribute,": aria-label"),hasDynamicData:"text",inline:!0,required:["type","!=",""]},title:{type:"text",label:"".concat(this.i18n.attribute,": title"),hasDynamicData:"text",inline:!0,required:["type","!=",""]},newTab:{type:"checkbox",label:this.i18n.openInNewTab,required:["type","=",["internal","external","meta","media"]]}};return this.exclude.forEach((function(e){Object.keys(t).forEach((function(n){n===e&&delete t[n]}))})),t},type:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.type},exclude:function(){var e;return Array.isArray(null===(e=this.control)||void 0===e?void 0:e.exclude)?this.control.exclude:[]},controlTypeOptions:function(){var e=e={internal:this.i18n.internal,external:this.i18n.external,meta:this.i18n.dynamicData,media:this.i18n.media};return this.popup&&(e.lightboxImage=this.i18n.lightboxImage,e.lightboxVideo=this.i18n.lightboxVideo),this.exclude.forEach((function(t){delete e[t]})),e}},created:function(){var e;if(this.value){var t,n=this.$_clone(this.value);if(null!=n&&null!==(e=n.useDynamicData)&&void 0!==e&&e.name)n.useDynamicData=(null===(t=n.useDynamicData)||void 0===t?void 0:t.name)||"";this.link=n}},watch:{link:{handler:function(e){!e||this.value&&!this.type?this.$emit("input",!1):this.$emit("input",e)},deep:!0}}};var sZ=(0,tm.Z)(aZ,[["render",function(e,t,n,o,i,r){var a=no("panel-control");return Yr(),oa("div",rZ,[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Yr(),ia(a,{key:t,controlKey:t,control:e,controls:r.controls,settings:i.link},null,8,["controlKey","control","controls","settings"])})),128))])}]]),lZ=["name","placeholder","title","value","data-min","data-max","data-step"];var cZ={emits:["input","focus","blur"],props:{value:{type:[String,Number]},name:{type:String},placeholder:null,units:{type:[String,Boolean]},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1}},data:function(){var e,t;return{expand:!1,large:null===(e=this.control)||void 0===e?void 0:e.large,hasDynamicData:null===(t=this.control)||void 0===t?void 0:t.hasDynamicData,showDynamicPicker:!1,showVariablePicker:!1,caretPos:0,mouseDown:!1,mouseY:void 0,number:0,unit:"",direction:""}},computed:{hasVariables:function(){var e;return!this.bricks.disableVariablesManager&&(this.control.hasOwnProperty("hasVariables")?this.control.hasVariables:null===(e=this.control)||void 0===e?void 0:e.css)},min:function(){var e;if(this.control.hasOwnProperty("min"))return this.control.min;var t=!!Array.isArray(null===(e=this.control)||void 0===e?void 0:e.css)&&this.control.css;return t?t.find((function(e){return"padding"===(null==e?void 0:e.property)}))?0:"":void 0},max:function(){if(this.control.hasOwnProperty("max"))return this.control.max},step:function(){var e,t;if(null!==(e=this.control)&&void 0!==e&&e.step&&parseFloat(this.control.step))return parseFloat(this.control.step);if(!this.unit)return 1;var n=this.$_data.controlUnits;return null!=n&&null!==(t=n[this.unit])&&void 0!==t&&t.step?n[this.unit].step:1}},methods:{addVariable:function(e){var t=null!=e&&e.name?"var(--".concat(e.name,")"):"";t&&this.$emit("input",t)},addDynamicTag:function(e){if(e){var t=this.value?this.$_clone(this.value.slice()):"",n=this.caretPos>0&&"{"===this.value[this.caretPos-1]?this.caretPos-1:this.caretPos;t=t?t.slice(0,n)+e.name+t.slice(this.caretPos):e.name,this.$emit("input",t)}},onFocus:function(){this.$emit("focus")},onBlur:function(){this.$emit("blur")},onInput:function(e){this.$emit("input",e)},onKeyDown:function(e){"ArrowUp"===e.key?(this.direction="up",this.setValue(e)):"ArrowDown"===e.key&&(this.direction="down",this.setValue(e))},onKeyup:function(e){this.caretPos=e.target.selectionStart},onMouseDown:function(e){0==e.button&&(this.mouseDown=!0,this.mouseY=e.pageY)},onMouseUp:function(){this.mouseDown=!1},getPlaceholder:function(){var e,t,n;return"string"==typeof this.placeholder||"number"==typeof this.placeholder?this.placeholder:"string"==typeof(null===(e=this.control)||void 0===e?void 0:e.placeholder)||"number"==typeof(null===(t=this.control)||void 0===t?void 0:t.placeholder)?null===(n=this.control)||void 0===n?void 0:n.placeholder:void 0},setValue:function(e){var t,n=void 0===this.value?this.placeholder:this.$_clone(this.value);"-"===n&&(n=0);var o=parseFloat(n);if(!n||!n.toString().includes("(")&&!isNaN(o)){n&&0===n.toString().indexOf(o)?(this.number=o,this.unit=n.length?n.replace(o,""):""):(this.number=isNaN(n)?0:n,this.unit=""),!this.unit&&("true"==this.units||null!==(t=this.control)&&void 0!==t&&t.units)&&"px"!==this.$_state.defaultUnit&&(this.unit=this.$_state.defaultUnit);var i=this.$_clone(this.step)||1;e.shiftKey&&(i*=5),"up"===this.direction?this.number+=i:"down"===this.direction&&(this.number-=i),this.number&&(this.number=parseFloat(this.number),this.number=parseFloat(this.number.toFixed(2))),"number"==typeof this.min&&this.number<this.min||"number"==typeof this.max&&this.number>this.max||(n="".concat(this.number).concat(this.unit),this.$emit("input",n.toString()))}}},mounted:function(){var e=this;window.addEventListener("mouseup",(function(t){return e.onMouseUp(t)}),!0)},beforeUnmount:function(){var e=this;window.removeEventListener("mouseup",(function(){return e.onMouseUp}))},watch:{value:{handler:function(e){"string"==typeof e&&(e.includes("(")||e.includes(" "))?this.expand=!0:this.expand&&(this.expand=!1)},immediate:!0}}};var uZ=(0,tm.Z)(cZ,[["render",function(e,t,n,o,i,r){var a=no("control-variable-picker"),s=no("control-dynamic-tag-picker");return Yr(),oa("div",{"data-control":"number",class:ee([{expand:i.expand},{large:i.hasDynamicData||i.large},{"has-variables":r.hasVariables}])},[ua("input",{type:"text",autocomplete:"off",spellcheck:"false",name:n.name,placeholder:r.getPlaceholder(),title:n.value,value:n.value,"data-min":r.min,"data-max":r.max,"data-step":r.step,onInput:t[0]||(t[0]=function(e){return r.onInput(e.target.value)}),onFocus:t[1]||(t[1]=function(e){return r.onFocus()}),onBlur:t[2]||(t[2]=function(e){return r.onBlur()}),onKeydown:t[3]||(t[3]=function(e){return r.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(e){return r.onKeyup(e)}),onMousedown:t[5]||(t[5]=function(e){return r.onMouseDown(e)}),onMouseup:t[6]||(t[6]=function(e){return i.caretPos=e.target.selectionStart})},null,40,lZ),r.hasVariables?(Yr(),ia(a,{key:0,control:{context:r.hasVariables},isOpen:i.showVariablePicker,value:n.value,onCloseMe:t[7]||(t[7]=function(e){return i.showVariablePicker=!1}),onInput:r.addVariable,onToggle:t[8]||(t[8]=function(e){return i.showVariablePicker=!i.showVariablePicker})},null,8,["control","isOpen","value","onInput"])):va("",!0),i.hasDynamicData?(Yr(),ia(s,{key:1,control:{context:i.hasDynamicData},controlKey:n.controlKey,isOpen:i.showDynamicPicker,onCloseMe:t[9]||(t[9]=function(e){return i.showDynamicPicker=!1}),onInput:r.addDynamicTag,onToggle:t[10]||(t[10]=function(e){return i.showDynamicPicker=!i.showDynamicPicker})},null,8,["control","controlKey","isOpen","onInput"])):va("",!0)],2)}]]),dZ={"data-control":"query"};var fZ={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0}},data:function(){return{showPopup:!1,popup:!!this.control.hasOwnProperty("popup")&&this.control.popup,query:this.value?this.value:{},termOptions:{},orderOptions:this.bricks.controlOptions.queryOrder}},computed:{exclude:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.exclude)||[]},defaultPostType:function(){var e;return(null===(e=this.control)||void 0===e||null===(e=e.default)||void 0===e?void 0:e.post_type)||"post"},postTypeOptions:function(){var e=this.bricks.postTypesRegistered;return e.any=this.i18n.any,e},postInOptions:function(){var e;return{action:"bricks_get_posts",postType:(null===(e=this.query)||void 0===e?void 0:e.post_type)||"any",addLanguageToPostTitle:!0}},objectType:function(){return this.query.objectType?this.query.objectType:"post"},orderByOptions:function(){var e=this.bricks.controlOptions.queryOrderBy;return"term"===this.objectType?e=this.bricks.controlOptions.termsOrderBy:"user"===this.objectType&&(e=this.bricks.controlOptions.usersOrderBy),e},orderByPlaceholder:function(){return"term"===this.objectType?this.i18n.name:"user"===this.objectType?this.i18n.login:this.i18n.date},taxonomy:function(){return this.query.taxonomy?this.query.taxonomy:"category"},controls:function(){var e,t,n={objectType:{type:"select",label:this.i18n.type,options:this.bricks.controlOptions.queryTypes,inline:!0,placeholder:this.i18n.posts},useQueryEditor:{type:"checkbox",label:this.i18n.queryEditor,inline:!0,required:["objectType","=",["","post","user","term"]]},queryEditor:{type:"code",mode:"javascript",executeCode:!0,syncExpand:!1,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!0]],hasDynamicData:!0,description:this.i18n.queryEditorInfo,placeholder:"return [\n 'post_type' => 'post',\n 'posts_per_page' => '10',\n];"},post_type:{type:"select",label:this.i18n.postType,options:this.postTypeOptions,multiple:!0,inline:!0,placeholder:this.i18n.post,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},post_mime_type:{type:"text",label:this.i18n.mimeType,placeholder:"image",description:this.i18n.mimeTypeDesc,inline:!0,required:[["post_type","=","attachment"],["useQueryEditor","=",!1]]},taxonomy:{type:"select",label:this.i18n.taxonomies,options:this.bricks.controlOptions.taxonomies,multiple:!0,placeholder:this.i18n.selectTaxonomies,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},role__in:{type:"select",label:this.i18n.roles,options:this.bricks.controlOptions.userRoles,multiple:!0,inline:!0,placeholder:this.i18n.any,required:[["objectType","=","user"],["useQueryEditor","=",!1]]},orderby:{type:"select",label:this.i18n.orderBy,options:this.orderByOptions,inline:!0,placeholder:this.orderByPlaceholder,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},meta_key:{type:"text",label:this.i18n.metaKeyOrder,inline:!0,placeholder:this.i18n.metaKey,hasDynamicData:!1,required:[["orderby","=",["meta_value","meta_value_num"]],["useQueryEditor","=",!1]]},randomSeedTtl:{type:"number",label:this.i18n.randomSeedTtl,info:this.i18n.randomSeedTtlDescription,placeholder:60,hasDynamicData:!1,required:[["orderby","=","rand"],["objectType","=",["","post"]],["useQueryEditor","=",!1]]},order:{type:"select",label:this.i18n.order,options:this.orderOptions,inline:!0,placeholder:"post"!==this.objectType?this.i18n.ascending:this.i18n.descending,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},posts_per_page:{type:"number",label:this.i18n.postsPerPage,control:{min:-1,max:null,step:1},inline:!0,placeholder:this.bricks.postsPerPage,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},number:{type:"number",label:this.i18n.number,control:{min:-1,step:1},inline:!0,placeholder:this.bricks.postsPerPage,required:[["objectType","=",["user","term"]],["useQueryEditor","=",!1]]},offset:{type:"number",label:this.i18n.offset,control:{min:0,max:null,step:1},inline:!0,placeholder:0,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},post_parent:{type:"text",label:this.i18n.childOf,info:this.i18n.postParentId,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},parent:{type:"text",label:this.i18n.parent,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},child_of:{type:"text",label:this.i18n.childOf,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},current_post_term:{type:"checkbox",label:this.i18n.currentPostTerm,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},current_post_author:{type:"checkbox",label:this.i18n.currentPostAuthor,inline:!0,required:["objectType","=","user"]},childless:{type:"checkbox",label:this.i18n.childless,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},ignore_sticky_posts:{type:"checkbox",label:this.i18n.ignoreStickyPosts,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},disable_query_merge:{type:"checkbox",label:this.i18n.disableQueryMerge,inline:!0,required:[["objectType","=",["","post","term","user"]],["useQueryEditor","=",!1]]},is_archive_main_query:{type:"checkbox",label:this.i18n.isArchiveMainQuery,info:this.i18n.isArchiveMainQueryDescription,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},post__in:{type:"select",label:this.i18n.include,optionsAjax:this.postInOptions,multiple:!0,searchable:!0,placeholder:this.i18n.selectPosts,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},post__not_in:{type:"select",label:this.i18n.exclude,optionsAjax:this.postInOptions,multiple:!0,searchable:!0,placeholder:this.i18n.selectPosts,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},exclude_current_post:{type:"checkbox",label:this.i18n.excludeCurrent,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},show_empty:{type:"checkbox",label:this.i18n.showEmpty,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},tax_query:{type:"select",label:"".concat(this.i18n.terms," (").concat(this.i18n.include,")"),options:this.termOptions,multiple:!0,searchable:!0,placeholder:this.i18n.selectTerms,required:[["objectType","=",["","post","term"]],["useQueryEditor","=",!1]]},tax_query_not:{type:"select",label:"".concat(this.i18n.terms," (").concat(this.i18n.exclude,")"),options:this.termOptions,multiple:!0,searchable:!0,placeholder:this.i18n.selectTerms,required:[["objectType","=",["","post","term"]],["useQueryEditor","=",!1]]},meta_query_separator:{label:this.i18n.metaQuery,type:"separator",required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},meta_query_relation:{label:this.i18n.relation,type:"select",options:{AND:"AND",OR:"OR"},clearable:!0,inline:!0,placeholder:"AND",required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1],["meta_query","!=",""]]},meta_query:{placeholder:this.i18n.metaQuery,type:"repeater",titleProperty:"key",fields:{key:{label:this.i18n.metaKey,type:"text",hasDynamicData:!1},value:{label:this.i18n.metaValue,type:"text"},compare:{label:this.i18n.compare,type:"select",options:this.bricks.controlOptions.queryCompare,placeholder:this.i18n.equal},type:{label:this.i18n.type,type:"select",options:this.bricks.controlOptions.queryValueType,inline:!0,placeholder:"CHAR"}},required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},tax_query_separator:{label:this.i18n.taxQuery,type:"separator",required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},tax_query_relation:{label:this.i18n.relation,type:"select",options:{AND:"AND",OR:"OR"},clearable:!0,inline:!0,placeholder:"AND",required:[["objectType","=",["","post"]],["useQueryEditor","=",!1],["tax_query_advanced","!=",""]]},tax_query_advanced:{placeholder:this.i18n.taxQuery,type:"repeater",titleProperty:"taxonomy",fields:{taxonomy:{label:this.i18n.taxonomy,type:"select",options:this.bricks.controlOptions.taxonomies},field:{label:this.i18n.field,type:"select",options:{term_id:"term_id",name:"name",slug:"slug",term_taxonomy_id:"term_taxonomy_id"},placeholder:"term_id"},terms:{label:this.i18n.terms,type:"text",placeholder:"term_slug_1,term_slug_2.."},operator:{label:this.i18n.compare,type:"select",options:this.bricks.controlOptions.queryOperator,placeholder:"IN"},include_children:{label:this.i18n.includeChildren,type:"select",options:{true:this.i18n.true,false:this.i18n.false},placeholder:this.i18n.true}},required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},infinite_scroll_separator:{label:this.i18n.infiniteScroll,type:"separator",required:["objectType","=",["","post","user","term"]]},infinite_scroll:{label:this.i18n.infiniteScroll,type:"checkbox",required:["objectType","=",["","post","user","term"]]},infinite_scroll_margin:{label:this.i18n.offset,type:"number",units:!0,placeholder:0,required:["infinite_scroll","!=",""]},is_live_search_separator:{label:this.i18n.liveSearch,description:this.i18n.liveSearchDescription,type:"separator",required:[["objectType","=",["","post","term","user"]]]},is_live_search:{type:"checkbox",label:this.i18n.liveSearch,inline:!0,required:[["objectType","=",["","post","term","user"]]]},is_live_search_info:{type:"info",content:this.i18n.liveSearchInfo,required:[["objectType","=",["","post","term","user"]],["is_live_search","=",!0],["is_live_search_wrapper_selector","=",""]]},is_live_search_wrapper_selector:{label:this.i18n.liveSearchWrapperSelector,type:"text",placeholder:"#brxe-a1b2c3",description:this.i18n.liveSearchWrapperSelectorDesc,required:[["objectType","=",["","post","term","user"]],["is_live_search","=",!0]]},ajax_loader_separator:{label:this.i18n.ajaxLoader,description:this.i18n.ajaxLoaderDesc,type:"separator",required:["objectType","=",["","post","user","term"]]},ajax_loader_animation:{label:this.i18n.ajaxLoaderAnimation,type:"select",inline:!0,options:this.bricks.controlOptions.ajaxLoaderAnimations,placeholder:this.i18n.none,required:["objectType","=",["","post","user","term"]]},ajax_loader_color:{label:this.i18n.color,type:"color",required:["ajax_loader_animation","!=",""]},ajax_loader_scale:{label:this.i18n.scale,type:"number",placeholder:1,required:["ajax_loader_animation","!=",["","none"]]},ajax_loader_selector:{label:this.i18n.ajaxLoaderSelector,type:"text",placeholder:"#brxe-a1b2c3",required:["ajax_loader_animation","!=",["","none"]],description:this.i18n.ajaxLoaderSelectorDesc},no_results_separator:{label:this.i18n.noResults,type:"separator"},no_results_template:{label:this.i18n.template,info:"".concat(this.i18n.type,": ").concat(this.i18n.section),type:"select",inline:!0,options:this.bricks.controlOptions.allSectionTemplates,placeholder:this.i18n.select},no_results_text:{label:this.i18n.text,type:"text",inline:!0,searchable:!0,required:["no_results_template","=",""],trigger:["blur","enter"]}};(this.exclude.forEach((function(e){delete n[e]})),this.$_state.userCan.executeCode)||(delete n.useQueryEditor,null!==(t=this.query)&&void 0!==t&&t.useQueryEditor?n.queryEditor={type:"info",content:this.i18n.queryEditorNoCodeExecutionInfo}:delete n.queryEditor);return 0==(null===(e=window.bricksData)||void 0===e?void 0:e.enableQueryFilters)&&(delete n.is_live_search,delete n.is_live_search_info),n}},methods:{getTerms:function(){var e,t,n,o=this,i="bricks_get_terms_options",r=(null===(e=this.query)||void 0===e?void 0:e.objectType)||"post",a=null!==(t=this.query)&&void 0!==t&&t.post_type?this.query.post_type:"post"===r?["post"]:[],s=(null===(n=this.query)||void 0===n?void 0:n.taxonomy)||"",l="".concat(i,"_").concat(r,"_").concat(a.join(""),"_").concat(s);if(this.$_state.ajaxCache.hasOwnProperty(l))this.termOptions=this.$_state.ajaxCache[l];else{this.$_debounce("ajax:getTermsOptions",(function(){o.$_http({method:"GET",data:{action:i,postTypes:a,taxonomy:s},success:function(e){o.termOptions=e.data,o.$_state.ajaxCache[l]=e.data}})}),1e3)}}},created:function(){Array.isArray(this.query)&&(this.query={})},watch:{showPopup:function(e){e&&this.getTerms()},query:{handler:function(e){Object.keys(e).length||(e=!1),this.getTerms(),this.$emit("input",e)},deep:!0},"query.objectType":{handler:function(e){this.query={objectType:e}}},"query.post_type":{handler:function(){delete this.query.post__in,delete this.query.post__not_in}},"query.randomSeedTtl":{handler:function(){this.$_http({method:"POST",data:{action:"bricks_query_loop_delete_random_seed_transient",elementId:this.$_state.activeId}})}}}};var pZ=(0,tm.Z)(fZ,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",dZ,[i.popup?(Yr(),oa("div",{key:0,class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"loop"})])):va("",!0),i.showPopup?(Yr(),ia(l,{key:1,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Yr(),ia(s,{key:t,control:e,controls:r.controls,controlKey:t,settings:i.query},null,8,["control","controls","controlKey","settings"])})),128))]})),_:1},8,["show"])):i.popup?va("",!0):(Yr(!0),oa(Wr,{key:2},gi(r.controls,(function(e,t){return Yr(),ia(s,{key:t,control:e,controls:r.controls,controlKey:t,settings:i.query},null,8,["control","controls","controlKey","settings"])})),128))])}]]),hZ={"data-control":"query-list"};var mZ={emits:["input"],props:{value:{type:String},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{queryList:{}}},computed:{elements:function(){return this.$_dynamicElements.value},controlOptions:function(){var e;return{placeholder:(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.mainQuery,options:this.queryList,multiple:!1,clearable:!0}}},methods:{updateControl:function(e){this.$emit("input",e)}},watch:{elements:{handler:function(e){var t=this;this.queryList={main:this.i18n.mainQuery},e.forEach((function(e){var n;(null!==(n=e.settings)&&void 0!==n&&n.hasLoop||"posts"==e.name)&&(t.queryList[e.id]=(null==e?void 0:e.label)||e.name)})),"filterQueryId"==this.controlKey&&delete this.queryList.main},immediate:!0,deep:!0}}};var gZ=(0,tm.Z)(mZ,[["render",function(e,t,n,o,i,r){var a=no("control-select");return Yr(),oa("div",hZ,[da(a,{control:r.controlOptions,value:n.value,onInput:r.updateControl},null,8,["control","value","onInput"])])}]]),vZ={"data-control":"repeater"},bZ=["data-key","data-item"],yZ={key:0,class:"repeater-header"},wZ=["onClick"],kZ=["value","size","onInput"],xZ=["value","size","onInput"],CZ=["innerHTML"],_Z=["innerHTML"],SZ={key:0,class:"actions"},TZ=["onClick","data-balloon"],$Z=["onClick","data-balloon"],EZ=["onClick","data-balloon"],IZ=["data-control-key"],MZ=["innerHTML"];function AZ(e){return AZ="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},AZ(e)}var OZ={emits:["input"],props:{value:{required:!1,type:Array,default:function(){return[]}},control:{type:Object,required:!0},controlKey:{required:!0,type:String},block:{required:!1}},data:function(){var e,t;return{sortableOptions:{direction:"vertical",handleClass:"bricks-sortable-handle",itemClass:"bricks-sortable-item"},addItemTitle:null!==(e=this.control)&&void 0!==e&&e.placeholder?"".concat(this.i18n.add," ").concat(this.control.placeholder):this.i18n.addItem,defaultItem:null!==(t=this.control)&&void 0!==t&&t.default?this.control.default[0]:{},openIndex:void 0,hasLoop:!1}},computed:{element:function(){return this.$_activeElement.value},elementConfig:function(){var e;return this.$_getElementConfig(null===(e=this.element)||void 0===e?void 0:e.name)},useChildren:function(){var e,t;return(null===(e=this.elementConfig)||void 0===e?void 0:e.nestable)&&"children"===(null===(t=this.control)||void 0===t?void 0:t.items)},nestableChildren:function(){return this.element.children},items:function(){return this.useChildren?this.nestableChildren:this.value?this.value:[]},itemIds:function(){if(this.useChildren)return this.nestableChildren?this.nestableChildren.join("-"):"";var e=[];return this.items.forEach((function(t){e.push(null==t?void 0:t.id)})),e.join("-")}},methods:{isOpen:function(e){var t;return this.openIndex===e||(null===(t=this.control)||void 0===t?void 0:t.alwaysOpen)},setNestableChildLabel:function(e,t){if(e){var n=this.$_getDynamicElementById(t);n&&(n.label=e)}},setTitleEditable:function(e,t){e?t.titleEditable=e:delete t.titleEditable},itemTitle:function(e){var t,n,o=this.items,i=this.control,r=null==i?void 0:i.titleProperty;if(null!=i&&i.titleEditable&&null!==(t=o[e])&&void 0!==t&&t.titleEditable)return o[e].titleEditable;if(this.useChildren){var a=o[e],s=this.$_getDynamicElementById(a);return s[r]||s.name}if(r&&o[e][r]){var l;if(null!==(l=i.fields[r])&&void 0!==l&&l.options){var c,u=null!==(c=o[e])&&void 0!==c&&c.exclude?" (".concat(this.i18n.exclude,")"):"";return i.fields[r].options[o[e][r]]+u}return o[e][r]}return null!==(n=o[e])&&void 0!==n&&n.title?o[e].title:null!=i&&i.placeholder?"".concat(i.placeholder," (").concat(e+1,")"):"".concat(this.i18n.item," (").concat(e+1,")")},editItem:function(e){this.openIndex=e===this.openIndex?void 0:e,this.useChildren&&(this.$_state.activeId=this.items[e])},addItem:function(e){var t=this;if(this.useChildren){var n,o=null===(n=this.elementConfig)||void 0===n?void 0:n.nestableItem;o?(o=JSON.stringify(o).replaceAll("{item_index}",this.items.length+1),o=JSON.parse(o),this.$_addNewElement({element:o,index:this.items.length,parent:this.element.id,keepLabel:!0},e,!1)):this.items.length&&this.cloneItem(this.items.length-1)}else{var i=this.items,r=this.defaultItem?this.$_clone(this.defaultItem):this.$_clone(this.items[0]),a=this.items.length-1;r.id=this.$_generateId(),this.$_addBlock({block:r,parent:i,index:a}),this.$nextTick((function(){t.openIndex=t.items.length-1,t.$emit("input",t.items)}))}},cloneItem:function(e){var t=this.items;if(this.useChildren){var n=t[e],o=this.$_getDynamicElementById(n);this.$_cloneElement({element:o,index:e})}else{var i=this.$_clone(this.items[e]);i.id=this.$_generateId(),this.$_addBlock({block:i,parent:t,index:e})}},deleteItem:function(e){var t=this.items;if(this.useChildren){var n=t[e];this.element.children.splice(e,1);var o=this.$_getDynamicElementById(n);this.$_state.deleteElement=o}else this.$_deleteBlock({parent:t,index:e})}},created:function(){var e,t=this;Array.isArray(this.items)&&this.items.forEach((function(e){"object"!==AZ(e)||null!=e&&e.id||(e.id=t.$_generateId())})),"form"===(null===(e=this.element)||void 0===e?void 0:e.name)&&"fields"===this.$_state.activePanelGroup&&(this.control.fields.id={type:"text",label:"ID",readonly:!0,inline:!0,clearable:!1,hasDynamicData:!1})},watch:{itemIds:function(){var e;this.$_rerenderElementId(null===(e=this.block)||void 0===e?void 0:e.id),this.$_forceRender(100)},value:{handler:function(e){this.useChildren||(Array.isArray(e)&&!e.length&&(e=""),this.$emit("input",e))},deep:!0},"element.settings.hasLoop":{handler:function(e){var t;null!==(t=this.control)&&void 0!==t&&t.checkLoop&&(this.hasLoop=e)},immediate:!0}}};const PZ=(0,tm.Z)(OZ,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("sortable");return Yr(),oa("div",vZ,[r.items.length?(Yr(),ia(l,{key:0,tag:"ul",class:"repeater-list",element:n.block,parent:r.items,options:i.sortableOptions,onDragstart:t[1]||(t[1]=function(e){return i.openIndex=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.items,(function(o,l){var c,u;return Yr(),oa("li",{key:(null==o?void 0:o.id)||o,"data-key":(null==o?void 0:o.id)||l,"data-item":o,class:ee(["bricks-sortable-item","repeater-item",{open:r.isOpen(l)},{"always-open":null===(c=n.control)||void 0===c?void 0:c.alwaysOpen}])},[0!==l&&i.hasLoop?va("",!0):(Yr(),oa("div",yZ,[ua("div",{class:ee(["bricks-sortable-handle",{"sortable-title":!0}]),onClick:El((function(e){return r.editItem(l)}),["self"])},[r.useChildren?(Yr(),oa("input",{key:0,value:r.itemTitle(l),size:r.itemTitle(l).length,onClick:t[0]||(t[0]=El((function(){}),["prevent"])),onInput:function(e){return r.setNestableChildLabel(e.target.value,o)}},null,40,kZ)):null!==(u=n.control)&&void 0!==u&&u.titleEditable?(Yr(),oa("input",{key:1,value:r.itemTitle(l),size:r.itemTitle(l).length,onInput:function(e){return r.setTitleEditable(e.target.value,o)}},null,40,xZ)):(Yr(),oa("span",{key:2,innerHTML:r.itemTitle(l)},null,8,CZ)),o.disable?(Yr(),oa("span",{key:3,class:"disabled",innerHTML:e.i18n.disabled},null,8,_Z)):va("",!0)],8,wZ),e.$_state.fullAccess&&!i.hasLoop?(Yr(),oa("ul",SZ,[ua("li",null,[ua("button",{onClick:El((function(e){return r.cloneItem(l)}),["stop"]),"data-balloon":e.i18n.duplicate,"data-balloon-pos":"left"},[da(a,{name:"clone"})],8,TZ)]),ua("li",null,[e.$_state.deleteItem==="".concat(n.controlKey,"-").concat(l)?(Yr(),oa("button",{key:0,onClick:El((function(e){return r.deleteItem(l)}),["stop"]),"data-balloon":e.i18n.sure,"data-balloon-pos":"left"},[da(a,{name:"check"})],8,$Z)):(Yr(),oa("button",{key:1,onClick:El((function(t){return e.$_deleteConfirmation("".concat(n.controlKey,"-").concat(l))}),["stop"]),"data-balloon":e.i18n.delete,"data-balloon-pos":"left"},[da(a,{name:"trash"})],8,EZ))])])):va("",!0)])),(Yr(!0),oa(Wr,null,gi(n.control.fields,(function(t,i){return Io((Yr(),oa("div",{key:i,"data-control-key":i,class:ee(["repeater-item-inner","type-".concat(t.type)])},[!t.hidden&&r.isOpen(l)?(Yr(),ia(s,{key:0,controls:n.control,control:t,controlKey:i,settings:n.value[l]},null,8,["controls","control","controlKey","settings"])):va("",!0)],10,IZ)),[[As,e.$_controlRequiredMet(n.control.fields[i],o)]])})),128))],10,bZ)})),128))]})),_:1},8,["element","parent","options"])):va("",!0),e.$_state.fullAccess&&(!i.hasLoop||n.value.length<=0)?(Yr(),oa("button",{key:1,class:"add-item",onClick:t[2]||(t[2]=function(e){return r.addItem(e)})},[da(a,{name:"add"}),ua("span",{class:"title",innerHTML:i.addItemTitle},null,8,MZ)])):va("",!0)])}]]);var LZ=PZ,DZ=["innerHTML"],NZ=["innerHTML"],jZ=["innerHTML"],VZ=["innerHTML"],FZ={class:"options-wrapper"},RZ=["placeholder"],qZ={class:"dropdown",ref:"dropdown"},BZ=["data-index","onClick","onMouseover"],zZ=["innerHTML"],HZ=["href","textContent"];var WZ={emits:["input","update:value"],props:{settings:{required:!1},value:{required:!1},placeholder:{type:[String,Number]},disabled:{default:!1,required:!1,type:Boolean},controls:{required:!1,type:Object},control:{required:!0,type:Object},controlKey:{type:String,required:!1}},data:function(){return{showDropdown:!1,highlight:!1,selectedIndex:-1,searchFor:void 0,keyupListenerAdded:!1,hasOptionsAjax:this.control.hasOwnProperty("optionsAjax")}},computed:{editTemplateUrl:function(){if("template"===this.controlKey)return this.$_getEditTemplateUrl()},optionsAjaxKey:function(){return this.hasOptionsAjax?JSON.stringify(this.control.optionsAjax).replace(/\W/g,""):""},options:function(){return this.control.hasOwnProperty("options")?this.$_clone(this.control.options):this.hasOptionsAjax&&this.$_state.ajaxCache[this.optionsAjaxKey]||{}},currentOptions:function(){var e=this;if(!this.searchFor)return this.options;var t={},n=this.searchFor.toLowerCase();return Object.keys(this.options).filter((function(t){return!e.isGroupTitle(t)&&e.options.hasOwnProperty(t)&&-1!==e.options[t].toLowerCase().indexOf(n)})).forEach((function(n){t[n]=e.options[n]})),t},placeholderFinal:function(){var e;return this.placeholder||(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.default},isMultiple:function(){return!!this.control.hasOwnProperty("multiple")&&this.control.multiple},clearable:function(){return!this.control.hasOwnProperty("clearable")||this.control.clearable},canAdd:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.add},searchable:function(){return!!this.canAdd||!!this.control.hasOwnProperty("searchable")&&this.control.searchable},searchForPlaceholder:function(){return this.canAdd?"".concat(this.i18n.add," / ").concat(this.i18n.searchFor):this.i18n.searchFor},mailchimpLists:function(){return this.bricks.elements.form.controls.mailchimpList.options}},methods:{addCustomOption:function(){this.canAdd&&this.searchFor&&this.addOption(this.searchFor)},isGroupTitle:function(e){return e&&e.includes("GroupTitle")},optionIsSelected:function(e){return this.isMultiple&&this.value?this.value.includes(e):e===this.value},toggleDropdown:function(){var e=this;this.disabled||(this.showDropdown=!this.showDropdown,this.$nextTick((function(){e.showDropdown&&e.$refs.searchable&&e.$refs.searchable.focus()})))},clearValue:function(){this.$emit("input",""),this.$emit("update:value",""),this.showDropdown=!1},hideDropdown:function(){this.showDropdown=!1},addOption:function(e){if(!this.isGroupTitle(e)){if(this.isMultiple){var t=this.value?this.$_clone(this.value):[];t.push(e),this.$emit("input",t),this.$emit("update:value",t)}else this.$emit("input",e),this.$emit("update:value",e);this.showDropdown=!1,this.searchable&&!this.hasOptionsAjax&&(this.searchFor=void 0),this.$refs.input&&this.$refs.input.blur()}},removeOption:function(e){var t=this.$_clone(this.value);t.splice(e,1),t.length||(t=""),this.$emit("input",t),this.$emit("update:value",t)},setSelectedIndex:function(e){if(this.showDropdown){var t=Object.keys(this.currentOptions).length;switch(e.key){case"Enter":if(-1!==this.setSelectedIndex){var n=Object.keys(this.currentOptions);this.addOption(n[this.selectedIndex])}break;case"Escape":this.showDropdown=!1;break;case"ArrowUp":this.selectedIndex<=0?this.selectedIndex=t-1:this.selectedIndex>0&&this.selectedIndex--,this.$refs.dropdown.scrollTop-=32;break;case"ArrowDown":this.selectedIndex<t-1?this.selectedIndex++:this.selectedIndex>=t-1&&(this.selectedIndex=0,this.$refs.dropdown.scrollTop=0),this.selectedIndex>0&&(this.$refs.dropdown.scrollTop+=32)}}},triggerAjaxSearch:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasOptionsAjax){var n=!1,o=this.optionsAjaxKey,i=!!this.$_state.ajaxCache.hasOwnProperty(o)&&this.$_state.ajaxCache[o],r=this.$_clone(this.control.optionsAjax);if(this.searchFor&&this.searchFor.length>=3?(r.search=this.searchFor,n=!0):"any"===(null==r?void 0:r.postType)&&(r.postType="page"),t&&this.value&&this.value.length>0){var a=[];i?Array.isArray(this.value)?this.value.forEach((function(e){i.hasOwnProperty(e)||a.push(e)})):i.hasOwnProperty(this.value)||(a=this.$_clone(this.value)):a=this.$_clone(this.value),a.length>0&&(r.include=a,n=!0)}i&&!n||this.$_http({method:"GET",data:r,success:function(t){Object.keys(t.data).length>0&&e.$_cacheAjaxResults({key:o,value:t.data})}})}}},created:function(){this.isMultiple&&"string"==typeof this.value&&this.$emit("input",[this.value])},mounted:function(){this.hasOptionsAjax&&this.triggerAjaxSearch(!0)},beforeUnmount:function(){this.keyupListenerAdded&&document.removeEventListener("keyup",this.setSelectedIndex)},watch:{showDropdown:{handler:function(e){var t=this;e?(this.keyupListenerAdded||(this.keyupListenerAdded=!0,document.addEventListener("keyup",this.setSelectedIndex)),this.$nextTick((function(){var e=t.$refs.dropdown.querySelector(".selected");e&&(t.$refs.dropdown.scrollTop=e.offsetTop,t.selectedIndex=e.getAttribute("data-index"))}))):(this.searchFor=void 0,this.selectedIndex=-1)}},searchFor:function(e,t){this.hasOptionsAjax&&(!e&&t||e&&e.length>=3)&&this.triggerAjaxSearch()},control:function(e,t){if(e.hasOwnProperty("optionsAjax"))if(t.hasOwnProperty("optionsAjax")){var n=!1;Object.keys(e.optionsAjax).forEach((function(o){n||t.optionsAjax.hasOwnProperty(o)&&t.optionsAjax[o]===e.optionsAjax[o]||(n=!0)})),n&&this.triggerAjaxSearch()}else this.triggerAjaxSearch()}}};const UZ=(0,tm.Z)(WZ,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=ro("clickaway");return Io((Yr(),oa("div",{"data-control":"select",class:ee([{expand:i.showDropdown,highlight:i.highlight,multiple:r.isMultiple,disabled:n.disabled,lowercase:this.control.hasOwnProperty("lowercase")&&this.control.lowercase}]),onMouseenter:t[5]||(t[5]=function(e){return i.highlight=!0}),onMouseleave:t[6]||(t[6]=function(e){return i.highlight=!1}),tabindex:"0"},[r.isMultiple?(Yr(),oa("div",{key:0,class:ee(["input",{"has-value":n.value}]),ref:"input",onClick:t[0]||(t[0]=function(){return r.toggleDropdown&&r.toggleDropdown.apply(r,arguments)})},[(Yr(!0),oa(Wr,null,gi(n.value,(function(e,t){return Yr(),oa("span",{key:t,class:"input-value"},[ua("span",{innerHTML:r.options.hasOwnProperty(e)?r.options[e]:e},null,8,DZ),da(a,{name:"close-box",onClick:El((function(e){return r.removeOption(t)}),["stop"])},null,8,["onClick"])])})),128)),n.value&&n.value.length?va("",!0):(Yr(),oa("span",{key:0,class:"placeholder",innerHTML:r.placeholderFinal},null,8,NZ)),n.value&&n.value.length?va("",!0):(Yr(),ia(a,{key:1,name:"arrow-down",class:"arrow-down"}))],2)):(Yr(),oa("div",{key:1,class:"input",onClick:t[1]||(t[1]=function(){return r.toggleDropdown&&r.toggleDropdown.apply(r,arguments)}),ref:"input"},[n.value?(Yr(),oa("span",{key:0,ref:"input",class:"input-value",innerHTML:r.options.hasOwnProperty(n.value)?r.options[n.value]:n.value},null,8,jZ)):(Yr(),oa("span",{key:1,class:"placeholder",innerHTML:r.placeholderFinal},null,8,VZ)),n.value&&r.clearable?(Yr(),ia(a,{key:2,name:"close",class:"clear-selection",onClick:El(r.clearValue,["stop"])},null,8,["onClick"])):va("",!0),da(a,{name:"arrow-down",class:"arrow-down"})],512)),ua("div",FZ,[r.searchable?Io((Yr(),oa("input",{key:0,class:"searchable",type:"text",ref:"searchable",spellcheck:"false",placeholder:r.searchForPlaceholder,onKeyup:t[2]||(t[2]=Ml(El((function(e){return r.canAdd?r.addCustomOption():null}),["prevent"]),["enter"])),"onUpdate:modelValue":t[3]||(t[3]=function(e){return i.searchFor=e})},null,40,RZ)),[[ml,i.searchFor]]):va("",!0),r.canAdd&&i.searchFor?(Yr(),oa("button",{key:1,class:"add",onClick:t[4]||(t[4]=function(e){return r.addCustomOption()})},[da(a,{name:"add"})])):va("",!0),ua("ul",qZ,[(Yr(!0),oa(Wr,null,gi(r.currentOptions,(function(e,t,n){return Yr(),oa("li",{key:n,class:ee([{hover:n===i.selectedIndex},{selected:r.optionIsSelected(t)},{title:r.isGroupTitle(t)}]),"data-index":n,onClick:El((function(e){return r.addOption(t)}),["stop"]),onMouseover:function(e){return i.selectedIndex=n}},[ua("span",{innerHTML:e},null,8,zZ)],42,BZ)})),128))],512)]),r.editTemplateUrl?(Yr(),oa("a",{key:2,href:r.editTemplateUrl,class:"button",textContent:de(e.i18n.editTemplate)},null,8,HZ)):va("",!0)],34)),[[s,r.hideDropdown]])}]]);var KZ=UZ,GZ=["innerHTML"];var ZZ={props:{description:{type:String,required:!1},control:{required:!0,type:Object}}};var JZ=(0,tm.Z)(ZZ,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",{"data-control":"separator",innerHTML:n.description},null,8,GZ)}]]),YZ={"data-control":"slider"},QZ={class:"slider-wrapper"},XZ=["min","max","step","value"];function eJ(e){return eJ="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},eJ(e)}var tJ={emits:["input"],props:{value:{required:!1,default:""},control:{type:Object,required:!0,default:function(){return{}}},controlKey:{type:String,required:!1},settings:{type:Object,required:!0,default:function(){return{}}}},data:function(){return{number:"",unit:"",min:this.control.hasOwnProperty("min")?this.control.min:"",max:this.control.hasOwnProperty("max")?this.control.max:"",step:this.control.hasOwnProperty("step")?parseFloat(this.control.step):1}},computed:{units:function(){if(!this.control.hasOwnProperty("units")||!1!==this.control.units){var e=this.$_data.controlUnits;return this.control.hasOwnProperty("units")&&(e=Object.assign({},e,this.control.units)),e}},placeholder:function(){var e,t=this.$_getNextBreakpointSetting(this.settings,this.controlKey);return t||(null!==(e=this.control)&&void 0!==e&&e.placeholder?String(this.control.placeholder):"")}},methods:{onRangeInput:function(e,t){var n=parseFloat(e),o="";if(isNaN(n)?this.number="":(this.number=n,o=e.replace(n,"")),!1===this.units)return this.unit="",void this.$emit("input",this.number);"number"===t&&(this.unit=o),this.$emit("input","".concat(this.number).concat(this.unit))}},mounted:function(){var e;if(this.value)this.onRangeInput(this.value,"number");else{var t=this.placeholder||(null===(e=this.control)||void 0===e?void 0:e.default);if(t){var n=this.$_clone(t),o=parseFloat(n);isNaN(o)||(this.number=o,this.unit=n.replace(o,""))}}},watch:{value:function(){var e;if(!this.value&&null!==(e=this.control)&&void 0!==e&&e.default){var t=this.$_clone(this.control.default),n=parseFloat(t);isNaN(n)||(this.number=n,this.unit=t.replace(n,""))}},unit:{handler:function(e){if("object"===eJ(this.units)){e=e||"px";var t=!!this.units.hasOwnProperty(e)&&this.units[e];t&&(t.hasOwnProperty("min")&&(this.min=t.min),t.hasOwnProperty("max")&&(this.max=t.max),t.hasOwnProperty("step")&&(this.step=t.step))}},immediate:!0}}};var nJ=(0,tm.Z)(tJ,[["render",function(e,t,n,o,i,r){var a=no("control-number");return Yr(),oa("div",YZ,[ua("div",QZ,[ua("input",{type:"range",min:i.min,max:i.max,step:i.step,value:i.number,onInput:t[0]||(t[0]=function(e){return r.onRangeInput(e.target.value,"range")})},null,40,XZ)]),da(a,{control:{units:r.units,unit:i.unit,min:i.min,max:i.max,step:i.step,placeholder:r.placeholder,unitTooltipPos:"top-right",horizontal:!0},controlKey:n.controlKey,value:n.value,onInput:t[1]||(t[1]=function(e){return r.onRangeInput(e,"number")})},null,8,["control","controlKey","value"])])}]]),oJ=["data-type"],iJ={class:"handles"},rJ=["title"],aJ=["for","textContent"],sJ=["textContent"],lJ=["data-balloon"],cJ=["data-balloon"];function uJ(e){return uJ="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},uJ(e)}var dJ={emits:["input"],props:{ui:{type:String,required:!1},type:{type:String,required:!1,default:"spacing"},control:{type:Object,required:!1,default:function(){return{}}},placeholder:null,value:{type:Object,required:!1,default:function(){return{}}}},data:function(){var e,t;return{variablesEnabled:!this.bricks.disableVariablesManager,directions:null!==(e=this.control)&&void 0!==e&&e.directions?Object.keys(this.control.directions):["top","right","bottom","left"],focus:"",label:"",linkState:"unlinked",linkOpposites:!this.control.hasOwnProperty("linkOpposites")||this.control.linkOpposites,linkedIcon:!this.control.hasOwnProperty("linkedIcon")||this.control.linkedIcon,property:null===(t=this.control)||void 0===t||null===(t=t.css)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.property}},computed:{switchUi:function(){return!this.control.hasOwnProperty("switchUi")||this.control.switchUi},currentUi:function(){var e;if(null!==(e=this.control)&&void 0!==e&&e.ui)return this.control.ui;var t=this.$_state.globalVariablesUi;return"default"===t||"variables-ui"===t?t:"variables-ui"}},methods:{toggleView:function(){var e="default"===(localStorage.getItem("brx_builder_control_spacing_view")||"default")?"variables-ui":"default";localStorage.setItem("brx_builder_control_spacing_view",e),this.$_state.globalVariablesUi=e},getLabel:function(e){var t,n;return(null===(t=this.control)||void 0===t||null===(t=t.labelDirection)||void 0===t?void 0:t[e])||(null===(n=this.control)||void 0===n||null===(n=n.directions)||void 0===n?void 0:n[e])||e},getTitle:function(e){var t,n;return"string"==typeof(null===(t=this.value)||void 0===t?void 0:t[e])&&null!==(n=this.value)&&void 0!==n&&null!==(n=n[e])&&void 0!==n&&n.includes("var")?this.value[e]:this.property?"".concat(this.property,"-").concat(e):null},getPlaceholder:function(e){var t,n=this.placeholder||(null===(t=this.control)||void 0===t?void 0:t.placeholder);if("object"===uJ(n)){if(void 0!==(null==n?void 0:n[e]))return n[e].toString()}else if(void 0!==n)return n;return"spacing"===this.type?"-":""},getValue:function(e){var t;return null===(t=this.value)||void 0===t?void 0:t[e]},setValue:function(e,t){var n=this.$_clone(this.value);t?"all"===this.linkState?this.directions.forEach((function(e){n[e]=t})):"opposites"===this.linkState?("top"===e?n.bottom=t:"right"===e?n.left=t:"bottom"===e?n.top=t:"left"===e&&(n.right=t),n[e]=t):n[e]=t:("all"===this.linkState?this.directions.forEach((function(e){delete n[e]})):"opposites"===this.linkState?("top"===e?delete n.bottom:"right"===e?delete n.left:"bottom"===e?delete n.top:"left"===e&&delete n.right,delete n[e]):delete n[e],Object.keys(n).length||(n=!1)),this.$emit("input",n)},onFocus:function(e){this.label=this.property?"".concat(this.property,"-").concat(e):void 0,this.focus=e},onBlur:function(){this.label="",this.focus=""},onMouseDown:function(e){e.target.classList.contains("handle")&&e.target.querySelector("input")&&setTimeout((function(){e.target.querySelector("input").focus()}),0)},convertUnitsToValue:function(){var e,t=this;(null===(e=this.value)||void 0===e?void 0:e.unit)&&(Object.keys(this.value.unit).forEach((function(e){t.value.hasOwnProperty(e)?t.value[e]+=t.value.unit[e]:t.value[e]=t.value.unit[e]})),delete this.value.unit,this.directions.forEach((function(e){var n,o=null===(n=t.value)||void 0===n?void 0:n[e],i=parseFloat(o);!(!o||!i)&&o.toString().length===i.toString().length&&(t.value[e]+=t.$_state.defaultUnit)})))}},mounted:function(){var e=this;this.convertUnitsToValue(),window.addEventListener("mousedown",(function(t){return e.onMouseDown(t)}),!0)},beforeUnmount:function(){var e=this;window.removeEventListener("mousedown",(function(){return e.onMouseDown}))},watch:{focus:function(){this.$_state.globalVariableSuggestions=[]},linkState:function(){var e=this;if("all"===this.linkState){var t=void 0;this.directions.forEach((function(n){void 0===t&&e.value.hasOwnProperty(n)&&(t=e.value[n])})),void 0!==t&&this.directions.forEach((function(n){return e.value[n]=t}))}}}};var fJ=(0,tm.Z)(dJ,[["render",function(e,t,n,o,i,r){var a=no("control-number"),s=no("icon");return Yr(),oa("div",{"data-control":"spacing","data-type":n.type,class:ee([r.currentUi,{"variables-enabled":i.variablesEnabled}])},[ua("div",iJ,[(Yr(!0),oa(Wr,null,gi(i.directions,(function(e){var t;return Yr(),oa("div",{key:e,class:ee(["handle",e,{focus:i.label&&i.label.includes(e)||i.focus===e}]),title:i.property&&"spacing"===n.type?r.getTitle(e):null},["dimensions"===n.type?(Yr(),oa("label",{key:0,for:i.property,textContent:de(r.getLabel(e))},null,8,aJ)):va("",!0),da(a,{control:n.control,placeholder:r.getPlaceholder(e),units:(null===(t=n.control)||void 0===t?void 0:t.units)||!0,value:r.getValue(e),onInput:function(t){return r.setValue(e,t)},onFocus:function(t){return r.onFocus(e)},onBlur:function(t){return r.onBlur(e)}},null,8,["control","placeholder","units","value","onInput","onFocus","onBlur"])],10,rJ)})),128))]),Io(ua("div",{class:"label",textContent:de(i.label)},null,8,sJ),[[As,"spacing"===n.type&&i.label]]),r.switchUi&&i.variablesEnabled&&"spacing"===n.type?(Yr(),oa("div",{key:0,class:"toggle switch-ui","data-balloon":e.i18n.switch,"data-balloon-pos":"top-right"},[da(s,{name:"toggle",class:"toggle-view",onClick:El(r.toggleView,["stop"])},null,8,["onClick"])],8,lJ)):va("",!0),i.linkedIcon?(Yr(),oa("div",{key:1,class:ee(["toggle","link-all",{active:"unlinked"!==i.linkState}]),"data-balloon":e.i18n.linkStates[i.linkState],"data-balloon-pos":"top-right"},[Io(da(s,{class:"unlinked",name:"unlinked",onClick:t[0]||(t[0]=function(e){return i.linkState=i.linkOpposites?"opposites":"all"})},null,512),[[As,"unlinked"===i.linkState]]),Io(da(s,{class:"link",name:"link",onClick:t[1]||(t[1]=function(e){return i.linkState="all"})},null,512),[[As,i.linkOpposites&&"opposites"===i.linkState]]),Io(da(s,{class:"all",name:"link-all",onClick:t[2]||(t[2]=function(e){return i.linkState="unlinked"})},null,512),[[As,"all"===i.linkState]])],10,cJ)):va("",!0)],10,oJ)}]]),pJ={"data-control":"svg"},hJ=["data-balloon"],mJ=["src","alt","title"],gJ=["textContent"],vJ=["textContent"],bJ=["textContent"],yJ=ua("br",null,null,-1),wJ=ua("br",null,null,-1);var kJ={emits:["input"],props:{value:{required:!1,default:function(){return{}}},control:{required:!0,type:Object}},computed:{fileName:function(){return this.value.hasOwnProperty("filename")?this.value.filename:void 0},fileUrl:function(){return this.value.hasOwnProperty("url")?this.value.url:void 0}}};var xJ=(0,tm.Z)(kJ,[["render",function(e,t,n,o,i,r){var a=no("control-info");return Yr(),oa("div",pJ,[r.fileUrl?(Yr(),oa("div",{key:0,class:"svg-wrapper","data-balloon":r.fileName,"data-balloon-pos":"top"},[ua("img",{src:r.fileUrl,alt:r.fileName,title:r.fileName},null,8,mJ),ua("div",{class:"overlay",onClick:t[0]||(t[0]=function(t){return e.$_openMediaLibrary("image/svg+xml")})})],8,hJ)):(Yr(),oa("div",{key:1,class:"no-file",textContent:de(e.i18n.noFileSelected),onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("image/svg+xml")})},null,8,gJ)),r.fileUrl?(Yr(),oa("button",{key:2,textContent:de(e.i18n.removeFile),onClick:t[2]||(t[2]=function(t){return e.$emit("input","")})},null,8,vJ)):(Yr(),oa("button",{key:3,onClick:t[3]||(t[3]=function(t){return e.$_openMediaLibrary("image/svg+xml")}),textContent:de(e.i18n.selectFile)},null,8,bJ)),yJ,wJ,e.$_state.userCan.uploadSvg?va("",!0):(Yr(),ia(a,{key:4,control:{content:e.i18n.svgUploadNotAllowed}},null,8,["control"]))])}]]);function CJ(e){return CJ="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},CJ(e)}function _J(e,t,n){var o;return o=function(e,t){if("object"!=CJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=CJ(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==CJ(o)?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SJ={"data-control":"text"},TJ=["id","value","placeholder","autocomplete","spellcheck","readonly"],$J={key:0,class:"copy-to-clipboard"},EJ={key:4,class:"description"},IJ=["href","innerHTML"];function MJ(e){return MJ="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},MJ(e)}var AJ={emits:["input","update:value"],props:{value:{type:[String,Number,Object],default:""},placeholder:{type:[String,Number],default:""},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1}},data:function(){var e,t,n,o,i;return{large:null===(e=this.control)||void 0===e?void 0:e.large,showDynamicPicker:!1,caretPos:0,autocomplete:(null===(t=this.control)||void 0===t?void 0:t.autocomplete)||"off",spellcheck:(null===(n=this.control)||void 0===n?void 0:n.spellcheck)||!1,copyable:(null===(o=this.control)||void 0===o?void 0:o.copyable)||!1,trigger:(null===(i=this.control)||void 0===i?void 0:i.trigger)||["keyup"],tagSearch:"",tagPreview:"",tagPreviewTimeout:null,showVariablePicker:!1}},computed:{hasDynamicData:function(){var e="text";return this.control.hasOwnProperty("hasDynamicData")?e=this.control.hasDynamicData:this.control.hasOwnProperty("dd")&&(e=this.control.dd),e},hasVariables:function(){if(this.bricks.disableVariablesManager)return!1;var e=!1;return this.control.hasOwnProperty("hasVariables")&&(e=this.control.hasVariables),e}},methods:{emit:function(e){this.$emit("input",e),this.$emit("update:value",e),this.fetchDynamicDataPreview(e)},onBlur:function(e){!this.trigger.includes("blur")||this.showDynamicPicker||this.showVariablePicker||this.emit(e)},onKeyup:function(e){this.caretPos=e.target.selectionStart,"Enter"===e.key&&(!this.trigger.includes("enter")||this.showDynamicPicker||this.showVariablePicker||this.emit(e.target.value))},addDynamicTag:function(e){if(e){var t=this.caretPos>0&&"{"===this.value[this.caretPos-1]?this.caretPos-1:this.caretPos,n=this.value?this.value.slice(0,t)+e.name+this.value.slice(this.caretPos):e.name;this.emit(n)}},closeDynamicPicker:function(){this.showDynamicPicker=!1},addVariable:function(e){if(e&&e.name){var t="var(--".concat(e.name,")");this.emit(t)}},closeVariablePicker:function(){this.showVariablePicker=!1},fetchDynamicDataPreview:function(e){var t=this;"link"===this.hasDynamicData&&-1!==e.indexOf("{")&&-1!==e.indexOf("}")?(clearTimeout(this.tagPreviewTimeout),this.tagPreviewTimeout=setTimeout((function(){var n=t.$_getDynamicDataContent({content:e,context:"link",checkState:!0,success:function(e){t.tagPreview=e.data.content}});n&&(t.tagPreview=n)}),400)):this.tagPreview=""},copyToClipboard:function(){this.value&&this.$_copyToClipboard(this.value,"".concat(this.i18n.copied,": ").concat(this.value))}},created:function(){var e,t;(null!==(e=this.value)&&void 0!==e&&e.name||"object"===MJ(this.value))&&this.emit((null===(t=this.value)||void 0===t?void 0:t.name)||"");this.fetchDynamicDataPreview(this.value)},watch:{value:{handler:function(e,t){var n=this,o=(e+t).toString();(o.includes("{")||o.includes("}"))&&this.$nextTick((function(){var e=n.$_getElementNode(n.$_activeElement.value,"iframe");if(e){var t=e.closest("[data-loop-id]"),o=t?t.dataset.loopId:null;o&&setTimeout((function(){n.$_postMessage({key:"rerenderLoopIds",value:[o]})}),0)}}))}}}};var OJ=(0,tm.Z)(AJ,[["render",function(e,t,n,o,i,r){var a,s,l,c=no("icon"),u=no("control-variable-picker"),d=no("control-dynamic-tag-picker");return Yr(),oa("div",SJ,[ua("input",{class:ee(_J(_J(_J({clearable:null===(a=n.control)||void 0===a?void 0:a.clearable,"has-dynamic-data":r.hasDynamicData,"has-variables":r.hasVariables,"show-dynamic-picker":i.showDynamicPicker},"has-variables",r.hasVariables),"show-variable-picker",i.showVariablePicker),"large",r.hasDynamicData||i.large)),type:"text",id:n.controlKey,value:n.value,placeholder:n.placeholder||(null===(s=n.control)||void 0===s?void 0:s.placeholder),autocomplete:i.autocomplete,spellcheck:i.spellcheck,readonly:n.control.readonly,onKeyup:t[0]||(t[0]=function(e){return r.onKeyup(e)}),onMouseup:t[1]||(t[1]=function(e){return i.caretPos=e.target.selectionStart}),onBlur:t[2]||(t[2]=function(e){return r.onBlur(e.target.value)}),onInput:t[3]||(t[3]=function(e){return i.trigger.includes("keyup")?r.emit(e.target.value):null})},null,42,TJ),i.copyable?(Yr(),oa("div",$J,[da(c,{name:"clone",class:"clipboard","data-balloon":"".concat(e.i18n.copy),"data-balloon-pos":"top-right",onClick:El(r.copyToClipboard,["stop"])},null,8,["data-balloon","onClick"])])):va("",!0),null!==(l=n.control)&&void 0!==l&&l.clearable&&n.value?(Yr(),ia(c,{key:1,name:"close",class:"clear",onClick:t[4]||(t[4]=El((function(e){return r.emit(null)}),["stop"]))})):va("",!0),r.hasVariables?(Yr(),ia(u,{key:2,control:{context:r.hasVariables},isOpen:i.showVariablePicker,value:n.value,onCloseMe:r.closeVariablePicker,onInput:r.addVariable,onToggle:t[5]||(t[5]=function(e){return i.showVariablePicker=!i.showVariablePicker})},null,8,["control","isOpen","value","onCloseMe","onInput"])):va("",!0),r.hasDynamicData?(Yr(),ia(d,{key:3,control:{context:r.hasDynamicData},controlKey:n.controlKey,isOpen:i.showDynamicPicker,onCloseMe:r.closeDynamicPicker,onInput:r.addDynamicTag,onToggle:t[6]||(t[6]=function(e){return i.showDynamicPicker=!i.showDynamicPicker})},null,8,["control","controlKey","isOpen","onCloseMe","onInput"])):va("",!0),i.tagPreview&&"link"===r.hasDynamicData?(Yr(),oa("div",EJ,[ma(de(e.i18n.linkRenderedAs)+": ",1),ua("a",{href:i.tagPreview,target:"_blank",innerHTML:i.tagPreview},null,8,IJ)])):va("",!0)])}]]),PJ={"data-control":"textarea"},LJ=["readonly","rows","placeholder","spellcheck","value"];var DJ={emits:["input"],props:{value:{type:String},control:{required:!0,type:Object},controlKey:{type:String,required:!1}},data:function(){var e,t,n,o,i;return{hasDynamicData:this.control.hasOwnProperty("hasDynamicData")?this.control.hasDynamicData:"text",showDynamicPicker:!1,caretPos:0,lineBreak:(null===(e=this.control)||void 0===e?void 0:e.lineBreak)||"",placeholder:(null===(t=this.control)||void 0===t?void 0:t.placeholder)||"",readonly:!!this.control.hasOwnProperty("readonly")&&this.control.readonly,rows:(null===(n=this.control)||void 0===n?void 0:n.rows)||5,spellcheck:(null===(o=this.control)||void 0===o?void 0:o.spellcheck)||!1,trigger:(null===(i=this.control)||void 0===i?void 0:i.trigger)||["keyup"],tagSearch:""}},methods:{onInput:function(e){this.trigger.includes("keyup")&&this.$emit("input",e.target.value)},onBlur:function(e){this.trigger.includes("blur")&&!this.showDynamicPicker&&this.$emit("input",e)},onKeyup:function(e){if(this.caretPos=e.target.selectionStart,"Enter"===e.key){var t=e.target.value;"br"===this.lineBreak&&(e.preventDefault(),t=t.replaceAll(/\n/g,"<br>"),this.$emit("input",t)),this.trigger.includes("enter")&&!this.showDynamicPicker&&this.$emit("input",t)}},addDynamicTag:function(e){if(e){var t=this.value?this.$_clone(this.value.slice()):"",n=this.caretPos>0&&"{"===this.value[this.caretPos-1]?this.caretPos-1:this.caretPos;t=t.slice(0,n)+e.name+t.slice(this.caretPos),this.$emit("input",t)}}}};var NJ=(0,tm.Z)(DJ,[["render",function(e,t,n,o,i,r){var a=no("control-dynamic-tag-picker");return Yr(),oa("div",PJ,[ua("textarea",{ref:"textarea",class:ee({"show-dynamic-picker":i.showDynamicPicker}),readonly:i.readonly,rows:i.rows,placeholder:i.placeholder,spellcheck:i.spellcheck,onKeyup:t[0]||(t[0]=function(e){return r.onKeyup(e)}),onMouseup:t[1]||(t[1]=function(e){return i.caretPos=e.target.selectionStart}),onBlur:t[2]||(t[2]=function(e){return r.onBlur(e.target.value)}),onInput:t[3]||(t[3]=function(e){return r.onInput(e)}),value:n.value},"\n\t\t",42,LJ),i.hasDynamicData?(Yr(),ia(a,{key:0,control:{context:i.hasDynamicData},controlKey:n.controlKey,isOpen:i.showDynamicPicker,onCloseMe:t[4]||(t[4]=function(e){return i.showDynamicPicker=!1}),onInput:r.addDynamicTag,onToggle:t[5]||(t[5]=function(e){return i.showDynamicPicker=!i.showDynamicPicker})},null,8,["control","controlKey","isOpen","onInput"])):va("",!0)])}]]),jJ={class:"control-visual","data-control":"text-align"};var VJ={emits:["input"],props:{value:{required:!1},control:{required:!0,type:Object}},computed:{alignments:function(){var e=["left","center","right","justify"],t=!!this.control.hasOwnProperty("exclude")&&this.control.exclude;return t?(e.forEach((function(n,o){t.includes(n)&&e.splice(o,1)})),e):e}}};var FJ=(0,tm.Z)(VJ,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",jJ,[(Yr(!0),oa(Wr,null,gi(r.alignments,(function(t,o){return Yr(),ia(a,{class:ee([n.value===t?"active":null]),name:"controls/text-align/".concat(t),onClick:function(o){return e.$emit("input",t!==n.value?t:"")},"data-balloon":e.i18n[t],"data-balloon-pos":"top"},null,8,["class","name","onClick","data-balloon"])})),256))])}]]),RJ={class:"control-visual","data-control":"text-decoration"};var qJ={emits:["input"],props:{value:{required:!1},control:{required:!0,type:Object}},computed:{decorations:function(){return[{value:"line-through",tooltip:"strikethrough"},{value:"underline",tooltip:"underline"},{value:"overline",tooltip:"overline"},{value:"none",tooltip:"none"}]}}};var BJ=(0,tm.Z)(qJ,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",RJ,[(Yr(!0),oa(Wr,null,gi(r.decorations,(function(t,o){return Yr(),ia(a,{class:ee([n.value===t.value?"active":null]),name:"controls/text-decoration/".concat(t.value),onClick:function(o){return e.$emit("input",t.value!==n.value?t.value:"")},"data-balloon":e.i18n[t.tooltip],"data-balloon-pos":"top"},null,8,["class","name","onClick","data-balloon"])})),256))])}]]),zJ={"data-control":"text-shadow"};var HJ={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{showPopup:!1,textShadow:this.value?this.value:{},exclude:this.control.hasOwnProperty("exclude")?this.control.exclude:[]}},computed:{controls:function(){var e={values:{type:"dimensions",directions:{offsetX:"X",offsetY:"Y",blur:this.i18n.blur},linkedIcon:!1,linked:!1,hasVariables:!0},color:{type:"color",label:this.i18n.color,inline:!0}};return Object.keys(e).forEach((function(t){e[t].rerender=!1})),e}},created:function(){Array.isArray(this.textShadow)&&(this.textShadow={})},watch:{textShadow:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var WJ=(0,tm.Z)(HJ,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",zJ,[ua("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"edit"})]),i.showPopup&&!e.$_isLocked()?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Io((Yr(),ia(s,{key:t,control:e,controlKey:t,settings:i.textShadow},null,8,["control","controlKey","settings"])),[[As,-1===i.exclude.indexOf(t)]])})),128))]})),_:1},8,["show"])):va("",!0)])}]]),UJ={class:"control-visual","data-control":"text-transform"};var KJ={emits:["input"],props:{value:{required:!1},control:{required:!0,type:Object}},computed:{transforms:function(){return[{value:"capitalize",tooltip:"capitalize"},{value:"uppercase",tooltip:"uppercase"},{value:"lowercase",tooltip:"lowercase"},{value:"none",tooltip:"none"}]}}};const GJ=(0,tm.Z)(KJ,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("div",UJ,[(Yr(!0),oa(Wr,null,gi(r.transforms,(function(t,o){return Yr(),ia(a,{class:ee([n.value===t.value?"active":null]),name:"controls/text-transform/".concat(t.value),onClick:function(o){return e.$emit("input",t.value!==n.value?t.value:"")},"data-balloon":e.i18n[t.tooltip],"data-balloon-pos":"top"},null,8,["class","name","onClick","data-balloon"])})),256))])}]]);var ZJ=GJ,JJ={"data-control":"transform"};var YJ={emits:["input"],props:{value:{type:Object,required:!1},placeholder:null,control:{type:Object,required:!0}},data:function(){var e;return{showPopup:!1,exclude:(null===(e=this.control)||void 0===e?void 0:e.exclude)||[],transform:this.value||{}}},created:function(){Array.isArray(this.transform)&&(this.transform={})},computed:{controls:function(){var e={translateX:{label:this.i18n.transform.translateX,type:"number",units:!0,hasVariables:!0},translateY:{label:this.i18n.transform.translateY,type:"number",units:!0,hasVariables:!0},scaleX:{label:this.i18n.transform.scaleX,type:"number",min:0,max:2,step:.01,hasVariables:!0},scaleY:{label:this.i18n.transform.scaleY,type:"number",min:0,max:2,step:.01,hasVariables:!0},rotateX:{label:"".concat(this.i18n.transform.rotateX," (°)"),type:"number",min:-360,max:360,hasVariables:!0},rotateY:{label:"".concat(this.i18n.transform.rotateY," (°)"),type:"number",min:-360,max:360,hasVariables:!0},rotateZ:{label:"".concat(this.i18n.transform.rotateZ," (°)"),type:"number",min:-360,max:360,hasVariables:!0},skewX:{label:"".concat(this.i18n.transform.skewX," (°)"),type:"number",min:-360,max:360,hasVariables:!0},skewY:{label:"".concat(this.i18n.transform.skewY," (°)"),type:"number",min:-360,max:360,hasVariables:!0}};return Object.keys(e).forEach((function(t){e[t].rerender=!1})),e}},watch:{transform:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var QJ=(0,tm.Z)(YJ,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",JJ,[ua("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"edit"})]),i.showPopup&&!e.$_isLocked()?(Yr(),ia(l,{key:0,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t){return Io((Yr(),ia(s,{key:t,control:e,controlKey:t,settings:i.transform},null,8,["control","controlKey","settings"])),[[As,-1===i.exclude.indexOf(t)]])})),128))]})),_:1},8,["show"])):va("",!0)])}]]),XJ={"data-control":"typography"};function eY(e){return eY="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},eY(e)}var tY={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{required:!0,type:Object},controlKey:{type:String,required:!0}},data:function(){var e,t;return{showPopup:!1,typography:this.value?this.value:{},popup:!this.control.hasOwnProperty("popup")||this.control.popup,placeholder:(null===(e=this.control)||void 0===e?void 0:e.placeholder)||{},exclude:(null===(t=this.control)||void 0===t?void 0:t.exclude)||[],currentFontWeights:this.bricks.controlOptions.fontWeight,currentFontStyles:this.bricks.controlOptions.fontStyle,currentFontVariants:{}}},computed:{fontFamilyNotification:function(){if(this.currentFontFamily&&!this.bricks.fonts.options[this.currentFontFamily])return this.currentFontFamily.startsWith("custom_")?"".concat(this.i18n.notFound,": ").concat(this.i18n.customFont):this.bricks.googleFontsDisabled?"".concat(this.i18n.disabled,": Google Fonts"):void 0},controls:function(){var e,t,n,o,i,r,a={color:{type:"color",inline:!0,small:!0,label:this.i18n.color},"font-size":{type:"number",hasVariables:!0,units:!0,label:this.i18n.fontSize,controlKey:"font-size",placeholder:(null===(e=this.placeholder)||void 0===e?void 0:e["font-size"])||""},"text-align":{type:"text-align",label:this.i18n.textAlign},"text-transform":{type:"text-transform",label:this.i18n.textTransform},"font-family-notification":{type:"info",content:this.fontFamilyNotification},"font-family":{type:"select",options:this.bricks.fonts.options,placeholder:(null===(t=this.placeholder)||void 0===t?void 0:t["font-family"])||this.i18n.fontFamily,searchable:!0},"font-weight":{type:"select",options:this.currentFontWeights,placeholder:(null===(n=this.placeholder)||void 0===n?void 0:n["font-weight"])||this.i18n.fontWeight},"font-style":{type:"select",options:this.currentFontStyles,placeholder:(null===(o=this.placeholder)||void 0===o?void 0:o["font-style"])||this.i18n.fontStyle},"font-variants":{type:"select",options:this.currentFontVariants,multiple:!0,placeholder:this.i18n.fontVariants},"font-variation-settings":{type:"text",hasDynamicData:!1,hasVariables:!0,placeholder:"font-variation-settings"},fallback:{type:"text",hasDynamicData:!1,placeholder:this.i18n.fallbackFont},"line-height":{type:"number",hasVariables:!0,units:{"-":{step:"0.1"}},label:this.i18n.lineHeight,placeholder:(null===(i=this.placeholder)||void 0===i?void 0:i["line-height"])||"-"},"letter-spacing":{type:"number",hasVariables:!0,units:!0,label:this.i18n.letterSpacing,placeholder:(null===(r=this.placeholder)||void 0===r?void 0:r["letter-spacing"])||""},"text-shadow":{type:"text-shadow",inline:!0,small:!0,label:this.i18n.textShadow},"text-decoration":{type:"text-decoration",label:this.i18n.textDecoration}};return!this.exclude.length&&this.controlKey.startsWith("iconTypography")&&(delete a["font-family"],delete a["font-weight"],delete a["font-style"],delete a["text-align"],delete a["text-decoration"],delete a["text-transform"],delete a["line-height"],delete a["letter-spacing"],delete a["font-variation-settings"]),this.exclude.forEach((function(e){null!=a&&a[e]&&delete a[e]})),this.controlKey.startsWith("typographyBody")||this.controlKey.startsWith("typographyHeadings")?Object.keys(this.currentFontVariants).length||delete a["font-variants"]:(delete a["font-variants"],delete a.fallback),Object.keys(a).forEach((function(e){a[e].rerender=!1})),a},currentFontFamily:function(){var e;return null===(e=this.value)||void 0===e?void 0:e["font-family"]},currentFontWeight:function(){var e;return null===(e=this.value)||void 0===e?void 0:e["font-weight"]}},methods:{setFontWeights:function(){var e,t,n=this;if(this.currentFontWeights={},this.currentFontVariants={},this.currentFontFamily){var o=(null===(e=this.bricks.fonts)||void 0===e?void 0:e.adobe)||[];if(Array.isArray(o)&&o.length){var i=o.find((function(e){return(null==e?void 0:e.slug)===n.currentFontFamily}));if(Array.isArray(null==i?void 0:i.variations)){var r={};i.variations.forEach((function(e){(e=e.replace(/\D/g,"")+"00")&&(r[e]=e)}));var a=Object.keys(r);if(a.length)return this.currentFontWeights=r,void(1===a.length&&400!=a[0]?this.typography["font-weight"]=a[0]:this.currentFontWeight&&!this.currentFontWeights.hasOwnProperty(this.currentFontWeight)&&delete this.typography["font-weight"])}}var s=(null===(t=this.bricks.fonts)||void 0===t?void 0:t.google)||{},l=Object.keys(s).find((function(e){return s[e].family===n.currentFontFamily})),c=l?s[l].variants:[];if(["100","100italic","200","200italic","300","300italic","400","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"].forEach((function(e){c.includes(e)&&!isNaN(e)&&(n.currentFontWeights[e]=e),c.includes(e)&&(n.currentFontVariants[e]="italic"===e?"400italic":e)})),this.currentFontFamily.startsWith("custom_font_")){var u,d,f=(null===(u=this.bricks.fonts)||void 0===u?void 0:u.custom)||{},p=null==f||null===(d=f[this.currentFontFamily])||void 0===d?void 0:d.fontFaces;p=p?p.split(";"):[];var h={};p.forEach((function(e){if(e.includes("font-weight")){var t=e.replace("font-weight:","");t&&(h[t]=t)}})),Object.keys(h).length&&(this.currentFontWeights=h);var m=Object.keys(this.currentFontWeights);1===m.length&&400!=m[0]&&(this.typography["font-weight"]=m[0])}Object.keys(this.currentFontWeights).length||(this.currentFontWeights=this.bricks.controlOptions.fontWeight),this.currentFontWeights.hasOwnProperty(this.currentFontWeight)||delete this.typography["font-weight"]}else this.currentFontWeights=this.bricks.controlOptions.fontWeight},setPlaceholders:function(){var e,t,n,o,i,r=this,a=this.$_getIframeDoc(),s=this.$_getElementId(this.$_activeElement.value),l="#".concat(s),c=!!this.$_isValidCssSelector(l)&&a.querySelector(l);if(c||!this.$_state.activeId){"object"!==eY(this.placeholder)&&(this.placeholder={}),Array.isArray(null===(e=this.control)||void 0===e?void 0:e.css)&&this.control.css.forEach((function(e){var t=!(null==e||!e.selector)&&(null==e?void 0:e.selector.replaceAll("{pseudo}","")),n=c||a;if(t&&n)try{c=n.querySelector(t)}catch(e){return}}));var u=c?this.$_getIframeWindow().getComputedStyle(c):{},d=null===(t=this.$_state.activeElement)||void 0===t?void 0:t.settings,f=this.$_getNextBreakpointSetting(d,this.controlKey);null!=f&&f["font-size"]?this.placeholder["font-size"]=f["font-size"]:Array.isArray(null==d?void 0:d._cssGlobalClasses)&&(null==d||d._cssGlobalClasses.forEach((function(e){var t=r.$_getGlobalClass(e),n=r.$_getNextBreakpointSetting(null==t?void 0:t.settings,r.controlKey);null!=n&&n["font-size"]&&(r.placeholder["font-size"]=n["font-size"])}))),null!==(n=this.typography)&&void 0!==n&&n["font-family"]||null==u||!u.fontFamily||u.fontFamily.includes(",")||(this.placeholder["font-family"]=u.fontFamily?u.fontFamily.toString().replace(/['"]+/g,""):""),null!==(o=this.typography)&&void 0!==o&&o["font-weight"]||null==u||!u.fontWeight||400==u.fontWeight||(this.placeholder["font-weight"]=u.fontWeight),null!==(i=this.typography)&&void 0!==i&&i["font-style"]||null==u||!u.fontStyle||"normal"==u.fontStyle||(this.placeholder["font-style"]=u.fontStyle)}}},created:function(){Array.isArray(this.typography)&&(this.typography={}),this.setFontWeights(),this.setPlaceholders()},watch:{"$_state.activeId":{handler:function(){this.setPlaceholders()}},showPopup:function(e){e&&(this.setFontWeights(),this.setPlaceholders())},currentFontFamily:{handler:function(){this.setFontWeights()}},typography:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var nY=(0,tm.Z)(tY,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=no("panel-control"),l=no("panel-control-popup");return Yr(),oa("div",XJ,[i.popup?(Yr(),oa("div",{key:0,class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[da(a,{name:"edit"})])):va("",!0),i.popup&&i.showPopup&&!e.$_isLocked()?(Yr(),ia(l,{key:1,show:i.showPopup,onClosePopup:t[1]||(t[1]=function(e){return i.showPopup=!1})},{default:Kn((function(){return[(Yr(!0),oa(Wr,null,gi(r.controls,(function(e,t,n){return Yr(),ia(s,{key:t+n,control:e,controlKey:t,settings:i.typography},null,8,["control","controlKey","settings"])})),128))]})),_:1},8,["show"])):i.popup?va("",!0):(Yr(!0),oa(Wr,{key:2},gi(r.controls,(function(e,t,n){return Yr(),ia(s,{key:t+n,control:e,controlKey:t,settings:i.typography},null,8,["control","controlKey","settings"])})),128))])}]]),oY={"data-control":"video"},iY=["textContent"],rY={key:0,controls:"",ref:"player"},aY=["src","type"],sY=["textContent"],lY=["textContent"],cY=["textContent"];var uY={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0}},computed:{fileName:function(){return this.value&&this.value.filename?this.value.filename:this.i18n.noFileSelected},fileUrl:function(){return!(!this.value||!this.value.url)&&this.value.url},fileMime:function(){return!(!this.value||!this.value.mime)&&this.value.mime}},watch:{value:{handler:function(){var e=this;this.$emit("input",this.value),this.$nextTick((function(){e.$refs.player.load()}))},deep:!0}}};var dY=(0,tm.Z)(uY,[["render",function(e,t,n,o,i,r){return Yr(),oa("div",oY,[ua("label",{class:ee([{"has-video":r.fileUrl},{"no-video":!r.fileUrl}]),textContent:de(r.fileName),onClick:t[0]||(t[0]=function(t){return e.$_openMediaLibrary("video")})},null,10,iY),r.fileUrl&&r.fileMime?(Yr(),oa("video",rY,[ua("source",{src:r.fileUrl,type:r.fileMime},null,8,aY),ua("p",{textContent:de(e.i18n.html5VideoNoBrowserSupport)},null,8,sY)],512)):va("",!0),r.fileUrl?(Yr(),oa("button",{key:1,onClick:t[1]||(t[1]=function(t){return e.$emit("input","")}),textContent:de(e.i18n.removeFile)},null,8,lY)):(Yr(),oa("button",{key:2,onClick:t[2]||(t[2]=function(t){return e.$_openMediaLibrary("video")}),textContent:de(e.i18n.selectFile)},null,8,cY))])}]]),fY=["data-balloon"],pY={class:"options-wrapper"},hY=["placeholder"],mY={class:"dropdown",ref:"dropdown"},gY=["data-index","onMousedown","onMouseover"],vY=["innerHTML"],bY=["textContent"];var yY={emits:["toggle","closeMe","input","update:value"],props:{value:{required:!1},control:{type:Object,required:!0,default:function(){return{context:"text",placeholder:this.i18n.dynamicData}}},controlKey:{type:String,required:!1},isOpen:{type:Boolean,default:!1},syncExpand:{type:Boolean,default:!0}},data:function(){return{selectedIndex:-1,searchFor:void 0,highlight:!1,showDropdown:!1}},computed:{dynamicDataHasOptions:function(){return this.bricks.dynamicTags.length},allOptions:function(){return this.bricks.dynamicTags},currentOptions:function(){var e=this,t=this.allOptions;if(!t.length)return[];t.forEach((function(n,o){if(null==n||!n.labelSet){var i=null!=n&&n.label&&!e.bricks.builderDynamicDropdownNoLabel?n.label:"";if(null!=n&&n.name&&e.bricks.builderDynamicDropdownKey){var r=n.name.replaceAll("{","").replaceAll("}","");i=i?" ".concat(i," (").concat(r,")"):r}t[o].label=i||(null==n?void 0:n.label),t[o].labelSet=!0}}));var n=this.searchFor?this.searchFor.toLowerCase():void 0;n&&(t=t.filter((function(t){return e.isGroupTitle(t)||t.label.toLowerCase().indexOf(n)>=0||t.name.toLowerCase().indexOf(n)>=0})));var o={};return t.forEach((function(t){var n,i=(null==t?void 0:t.group)||"other";o.hasOwnProperty(i)||(o[i]=[{label:(null===(n=e.i18n)||void 0===n?void 0:n[i])||i,isGroupTitle:1}]);o[i].push(t)})),t=[],Object.keys(o).forEach((function(e){t=t.concat(o[e])})),t},placeholder:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.dynamicData}},methods:{initDropdown:function(){var e=this;this.$nextTick((function(){e.$refs.searchable&&e.$refs.searchable.focus()}))},toggleDropdown:function(){this.allOptions.length&&(this.showDropdown=!this.showDropdown,this.showDropdown?this.initDropdown():this.closeMe())},isGroupTitle:function(e){return e&&e.hasOwnProperty("isGroupTitle")&&e.isGroupTitle},optionIsSelected:function(e){return e===this.value},closeMe:function(e){var t=!!e&&e.target.closest(".dynamic-tag-picker-button");t&&t===this.$refs.icon||(this.$emit("closeMe",!0),this.showDropdown=!1,this.searchFor=void 0,this.selectedIndex=-1)},clearValue:function(){this.$emit("input",""),this.$emit("update:value",""),this.closeMe()},addOption:function(e){this.isGroupTitle(e)||(this.$emit("input",e),this.$emit("update:value",e),this.closeMe())},setSelectedIndex:function(e){if(this.isOpen){var t=this.currentOptions.length;switch(e.key){case"Enter":if(-1!==this.setSelectedIndex){var n=this.currentOptions[this.selectedIndex];this.addOption(n)}break;case"Escape":this.closeMe();break;case"ArrowUp":this.selectedIndex<=0?this.selectedIndex=t-1:this.selectedIndex>0&&this.selectedIndex--,this.$refs.dropdown.scrollTop-=30;break;case"ArrowDown":this.selectedIndex<t-1?this.selectedIndex++:this.selectedIndex>=t-1&&(this.selectedIndex=0,this.$refs.dropdown.scrollTop=0),this.selectedIndex>0&&(this.$refs.dropdown.scrollTop+=30)}}}},mounted:function(){document.addEventListener("keyup",this.setSelectedIndex)},beforeUnmount:function(){document.removeEventListener("keyup",this.setSelectedIndex)},watch:{isOpen:function(e){this.bricks.builderDynamicDropdownExpand&&this.syncExpand&&(this.$_state.isPanelExpanded=this.isOpen),e&&this.initDropdown()}}};var wY=(0,tm.Z)(yY,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=ro("clickaway");return Yr(),oa(Wr,null,[ua("div",{class:ee(["dynamic-tag-picker-button",{open:n.isOpen},{"no-data":!r.dynamicDataHasOptions}]),"data-balloon":e.i18n.dynamicData,"data-balloon-pos":"top-right",ref:"icon",onClick:t[0]||(t[0]=function(t){return e.$emit("toggle")})},[da(a,{name:"flash"})],10,fY),Io((Yr(),oa("div",{class:ee({expand:n.isOpen||i.showDropdown,highlight:i.highlight}),"data-control":"select",tabindex:"0",onMouseenter:t[2]||(t[2]=function(e){return i.highlight=!0}),onMouseleave:t[3]||(t[3]=function(e){return i.highlight=!1})},[ua("div",pY,[Io(ua("input",{class:"searchable",type:"text","onUpdate:modelValue":t[1]||(t[1]=function(e){return i.searchFor=e}),ref:"searchable",spellcheck:"false",placeholder:e.i18n.searchTag},null,8,hY),[[ml,i.searchFor]]),ua("ul",mY,[(Yr(!0),oa(Wr,null,gi(r.currentOptions,(function(e,t){return Yr(),oa("li",{key:t,class:ee([{hover:t===i.selectedIndex},{selected:r.optionIsSelected(e)},{title:r.isGroupTitle(e)}]),"data-index":t,onMousedown:function(t){return r.addOption(e)},onMouseover:function(e){return i.selectedIndex=t}},[ua("span",{innerHTML:e.label},null,8,vY)],42,gY)})),128)),Io(ua("li",{class:"title",textContent:de(e.i18n.noDynamicDataFound)},null,8,bY),[[As,r.currentOptions.length<=0]])],512)])],34)),[[s,r.closeMe]])],64)}]]),kY=["data-balloon"],xY={class:"options-wrapper"},CY=["placeholder"],_Y=["data-balloon"],SY={class:"dropdown",ref:"dropdown"},TY=["data-index","onMousedown","onMouseover"],$Y=["innerHTML","title"],EY=["title"],IY=["textContent"];var MY={emits:["toggle","closeMe","input","update:value"],props:{value:{required:!1},control:{type:Object,required:!0,default:function(){return{context:"text",placeholder:this.i18n.variables}}},isOpen:{type:Boolean,default:!1},syncExpand:{type:Boolean,default:!0}},data:function(){return{selectedIndex:-1,searchFor:"",highlight:!1,showDropdown:!1}},computed:{categories:function(){return this.$_state.globalVariablesCategories},variablesHasOptions:function(){return this.$_state.globalVariables.length},allOptions:function(){return this.$_state.globalVariables},currentOptions:function(){var e=this;if(this.$_state.globalVariableSuggestions.length)return this.$_state.globalVariableSuggestions;var t=this.allOptions;if(!t.length)return[];var n=this.$_clone(this.categories);n.push({id:"_uncategorized",name:this.i18n.uncategorized}),this.searchFor&&(t=t.filter((function(t){return t.name.toLowerCase().includes(e.searchFor.toLowerCase())})));var o=[];return n.forEach((function(e){var n=t.filter((function(t){return t.category===e.id}));"_uncategorized"===e.id&&(n=t.filter((function(e){return!e.category}))),n.length&&(o.push({name:e.name,value:e.id,isGroupTitle:!0}),o=o.concat(n))})),o}},methods:{isGroupTitle:function(e){return null==e?void 0:e.isGroupTitle},initDropdown:function(){var e=this;this.$nextTick((function(){e.$refs.searchable}))},toggleDropdown:function(){this.allOptions.length&&(this.showDropdown=!this.showDropdown,this.showDropdown?this.initDropdown():this.closeMe())},optionIsSelected:function(e){return e===this.value},closeMe:function(e){var t=this,n=!!e&&e.target.closest(".variable-picker-button");n&&n===this.$refs.icon||(this.$emit("closeMe",!0),this.showDropdown=!1,this.searchFor="",this.selectedIndex=-1,setTimeout((function(){t.$_state.globalVariableSuggestions=[]}),0))},clearValue:function(){this.$emit("input",""),this.$emit("update:value",""),this.closeMe()},addOption:function(e){this.$emit("input",e),this.$emit("update:value",e),this.closeMe()},setSelectedIndex:function(e){if(this.isOpen){var t=this.currentOptions.length;switch(e.key){case"Enter":if(-1!==this.selectedIndex){var n=this.currentOptions[this.selectedIndex];this.addOption(n)}break;case"Escape":this.closeMe();break;case"ArrowUp":this.selectedIndex=this.selectedIndex<=0?t-1:this.selectedIndex-1,this.$refs.dropdown.scrollTop-=30;break;case"ArrowDown":this.selectedIndex=this.selectedIndex<t-1?this.selectedIndex+1:0,this.$refs.dropdown.scrollTop+=30}}},openVariablesManager:function(){this.$_state.popup="variables",this.$_state.activeCssPopup="variables"}},mounted:function(){document.addEventListener("keyup",this.setSelectedIndex)},beforeUnmount:function(){document.removeEventListener("keyup",this.setSelectedIndex)},watch:{"$_state.globalVariableSuggestions":{handler:function(e,t){var n=this;("INPUT"===document.activeElement.tagName?document.activeElement.parentNode.contains(this.$el):null)&&setTimeout((function(){(e.length&&e.length!==t.length&&!n.isOpen||t.length&&!e.length&&n.isOpen)&&n.$emit("toggle")}),0)}},value:function(e){if(!this.bricks.disableVariablesManager&&this.$_state.globalVariables.length&&"BODY"!==document.activeElement.tagName)if("string"==typeof e&&(e.startsWith("var")||e.startsWith("--")||/^[a-zA-Z]+$/.test(e))){var t=[],n=e.replace("var","").replace("(","").replace("--","").replace(")","").trim(),o=this.$_clone(this.$_state.globalVariables)||[];o.length&&o.filter((function(e){e.name.includes(n)&&t.push(e)})),this.$_state.globalVariableSuggestions=t}else this.$_state.globalVariableSuggestions=[]},searchFor:function(){this.$_state.globalVariableSuggestions.length&&(this.$_state.globalVariableSuggestions=[])},isOpen:function(){this.isOpen?this.initDropdown():this.$_state.globalVariableSuggestions=[]}}};var AY=(0,tm.Z)(MY,[["render",function(e,t,n,o,i,r){var a=no("icon"),s=ro("clickaway");return Yr(),oa(Wr,null,[ua("div",{class:ee(["variable-picker-button",{open:n.isOpen},{"no-data":!r.variablesHasOptions}]),"data-balloon":e.i18n.variables,"data-balloon-pos":"top-right",ref:"icon",onClick:t[0]||(t[0]=function(t){return e.$emit("toggle")})},[da(a,{name:"css3"})],10,kY),n.isOpen?Io((Yr(),oa("div",{key:0,class:ee({expand:n.isOpen||i.showDropdown,highlight:i.highlight}),"data-control":"select",tabindex:"0",onMouseenter:t[3]||(t[3]=function(e){return i.highlight=!0}),onMouseleave:t[4]||(t[4]=function(e){return i.highlight=!1})},[ua("div",xY,[Io(ua("input",{class:"searchable",type:"text","onUpdate:modelValue":t[1]||(t[1]=function(e){return i.searchFor=e}),ref:"searchable",spellcheck:"false",placeholder:e.i18n.searchVariable},null,8,CY),[[ml,i.searchFor]]),ua("div",{class:"actions","data-balloon":"".concat(e.i18n.manage," (").concat(e.i18n.variables,")"),"data-balloon-pos":"top-right"},[da(a,{name:"settings",onClick:t[2]||(t[2]=El((function(e){return r.openVariablesManager()}),["stop"]))})],8,_Y),ua("ul",SY,[(Yr(!0),oa(Wr,null,gi(r.currentOptions,(function(e,t){return Yr(),oa("li",{key:t,class:ee(["variable-picker-item",{hover:t===i.selectedIndex&&!r.isGroupTitle(e),selected:r.optionIsSelected(e)&&!r.isGroupTitle(e),title:r.isGroupTitle(e)}]),"data-index":r.isGroupTitle(e)?null:t,onMousedown:function(t){return r.isGroupTitle(e)?null:r.addOption(e)},onMouseover:function(n){return i.selectedIndex=r.isGroupTitle(e)?-1:t}},[ua("span",{innerHTML:e.name,title:e.name},null,8,$Y),r.isGroupTitle(e)?va("",!0):(Yr(),oa("span",{key:0,class:"option-value",title:e.value},de(e.value),9,EY))],42,TY)})),128)),Io(ua("li",{class:"title",textContent:de(e.i18n.noVariablesFound)},null,8,IY),[[As,!r.currentOptions.length]])],512)])],34)),[[s,r.closeMe]]):va("",!0)],64)}]]),OY={"data-control":"file-import"},PY=["textContent"],LY=["id"],DY=["for","textContent"],NY=["textContent"];var jY={emits:["imported","closeMe"],props:{control:{type:Object,required:!0,default:function(){return{fileType:"application/json",schema:[],dragAndDropNote:""}}},results:{type:Array,required:!1}},data:function(){return{inputId:this.$_generateId(),dragging:!1,importingNrFiles:0,localResults:[]}},computed:{infoMessages:function(){return this.results.length?this.localResults.concat(this.results):this.localResults}},methods:{readFileContent:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){var n=e.target.result;t({data:n})},o.readAsText(e)}))},importFiles:function(e){var t=this,n=e.length;if(!(e&&n<=0)){this.importingNrFiles=n,this.localResults=[];for(var o=[],i=function(){var n=e[r];t.readFileContent(n).then((function(e){if(t.control.fileType!==n.type)t.localResults.push({text:t.i18n.fileNotImportedWrongFormat.replace("%s",n.name),type:"error"});else{var i="application/json"===t.control.fileType?JSON.parse(e.data):e.data,r=!0;t.control.schema&&t.control.schema.forEach((function(e){r=i.hasOwnProperty(e)&&r})),r?o.push(i):t.localResults.push({text:t.i18n.fileNotImportedWrongFormat.replace("%s",n.name),type:"error"})}t.importingNrFiles-=1,0===t.importingNrFiles&&t.$emit("imported",o)}))},r=0;r<n;r++)i()}},onDrop:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1,this.importFiles(e.dataTransfer.files)},onDragOver:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!0},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1},onNoDroppable:function(e){e.preventDefault(),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none"},closeControl:function(){this.$emit("closeMe",!0),this.localResults=[]}},mounted:function(){window.addEventListener("dragenter",this.onNoDroppable),window.addEventListener("dragover",this.onNoDroppable),window.addEventListener("drop",this.onNoDroppable),this.$refs.bricksFilesImport.addEventListener("dragover",this.onDragOver),this.$refs.bricksFilesImport.addEventListener("dragleave",this.onDragLeave),this.$refs.bricksFilesImport.addEventListener("drop",this.onDrop)},beforeUnmount:function(){window.removeEventListener("dragenter",this.onNoDroppable),window.removeEventListener("dragover",this.onNoDroppable),window.removeEventListener("drop",this.onNoDroppable),this.$refs.bricksFilesImport.removeEventListener("dragover",this.onDragOver),this.$refs.bricksFilesImport.removeEventListener("dragleave",this.onDragLeave),this.$refs.bricksFilesImport.removeEventListener("drop",this.onDrop)}};const VY=(0,tm.Z)(jY,[["render",function(e,t,n,o,i,r){var a=no("control-info");return Yr(),oa("div",OY,[ua("form",{class:ee({dragging:this.dragging}),ref:"bricksFilesImport",ondrop:""},[Io(ua("p",{textContent:de(n.control.dragAndDropNote)},null,8,PY),[[As,e.$_importHasDnDSupport]]),ua("input",{type:"file",id:"import-input-".concat(i.inputId),name:"files[]",multiple:"",onChange:t[0]||(t[0]=function(e){return r.importFiles(e.target.files)})},null,40,LY),ua("label",{class:"button",for:"import-input-".concat(i.inputId),textContent:de(e.i18n.selectFilesToImport)},null,8,DY)],2),(Yr(!0),oa(Wr,null,gi(r.infoMessages,(function(e,t){return Yr(),ia(a,{class:ee([e.type]),key:t,control:{content:e.text}},null,8,["class","control"])})),128)),ua("button",{class:"cancel",onClick:t[1]||(t[1]=El((function(){return r.closeControl&&r.closeControl.apply(r,arguments)}),["stop"])),textContent:de(r.infoMessages.length>0?e.i18n.close:e.i18n.cancel)},null,8,NY)])}]]);var FY=VY,RY={class:"bricks-structure-list"};var qY={emits:["expandParent"],props:{elements:{required:!0,type:Array,default:function(){return[]}}},data:function(){return{draggableOptions:{bound:10,directions:["top","bottom"],draggableClass:"draggable",handleClass:"bricks-draggable-handle"}}},methods:{expandParent:function(){this.$emit("expandParent")}}};var BY=(0,tm.Z)(qY,[["render",function(e,t,n,o,i,r){var a=no("structure-element"),s=ro("draggable");return Io((Yr(),oa("ul",RY,[(Yr(!0),oa(Wr,null,gi(n.elements,(function(e,t){return Yr(),ia(a,{key:e.id,index:t,element:e,"data-id":e.id,"data-index":t,"data-parent-id":e.parent,onExpandParent:r.expandParent},null,8,["index","element","data-id","data-index","data-parent-id","onExpandParent"])})),128))])),[[s,i.draggableOptions]])}]]),zY=["id"],HY=["title"],WY=["readonly","value"],UY={key:1,class:"actions"},KY=["title"],GY=["textContent"],ZY={class:"element-states"};var JY={props:{index:{required:!0,type:Number},element:{type:Object}}};var YY={props:{element:{required:!0,type:Object}},computed:{elementId:function(){return this.element.id},iconClass:function(){return this.$_state.deleteItem===this.elementId?"check":"trash"}},methods:{deleteElement:function(){this.$_state.deleteItem!==this.elementId&&this.bricks.confirmDelete?this.$_deleteConfirmation(this.elementId):this.$_state.deleteElement=this.element}}};var QY={components:{ActionClone:(0,tm.Z)(JY,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("li",{class:ee(["action","clone",{disabled:!e.$_isCloneable(n.element)}]),onClick:t[0]||(t[0]=El((function(t){return e.$_isCloneable(n.element)?e.$_cloneElement({element:n.element,index:n.index}):null}),["stop","prevent"]))},[da(a,{name:"clone"})],2)}]]),ActionDelete:(0,tm.Z)(YY,[["render",function(e,t,n,o,i,r){var a=no("icon");return Yr(),oa("li",{class:ee(["action",e.$_state.deleteItem?"confirm":"delete",{disabled:!e.$_isDeletable(n.element)}]),onClick:t[0]||(t[0]=El((function(t){return e.$_isDeletable(n.element)?r.deleteElement():null}),["stop","prevent"]))},[da(a,{name:r.iconClass},null,8,["name"])],2)}]])},emits:["expandParent"],props:{element:{required:!0,type:Object,default:function(){return{}}},index:{required:!0,type:Number}},data:function(){return{readonly:!0,expand:!1,hidden:!1,hasLoop:!1}},computed:{hasUnsignedCode:function(){var e;return!!this.$_state.unsignedCodeIds.length&&(!!this.$_state.unsignedCodeIds.includes(null===(e=this.element)||void 0===e?void 0:e.id)||(this.globalElement?this.$_state.unsignedCodeIds.includes(this.globalElement.id):void 0))},isActive:function(){var e;return this.$_state.activeId&&this.$_state.activeId===(null===(e=this.element)||void 0===e?void 0:e.id)},globalElement:function(){return this.$_getGlobalElement(this.element)},finalElement:function(){return this.globalElement||this.element},elementConfig:function(){return this.$_getElementConfig(this.finalElement.name)},breakpointHasCustomCss:function(){var e,t,n=this.$_getControlKeyActive("_cssCustom");return this.$_activeClass.value&&this.isActive?null===(t=this.$_activeClass.value)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t[n]:null===(e=this.finalElement.settings)||void 0===e?void 0:e[n]},hasInteractions:function(){var e,t;return this.$_activeClass.value&&this.isActive?null===(t=this.$_activeClass.value)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t._interactions:null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._interactions},iconTitle:function(){var e;return null===(e=this.finalElement)||void 0===e?void 0:e.label},iconClassName:function(){var e,t;return this.finalElement?null!==(e=this.finalElement)&&void 0!==e&&e.icon?this.finalElement.icon:null===(t=this.elementConfig)||void 0===t?void 0:t.icon:null},children:function(){return this.$_isNestable(this.element)?this.$_getElementChildren(this.element):[]},hasChildren:function(){var e;return this.children.length>0&&!(null!==(e=this.elementConfig)&&void 0!==e&&e.nestableHide)},displaySettingKey:function(){return this.$_getControlKeyActive("_display")}},methods:{onDragenter:function(){this.$_state.draggingElement&&!this.$_state.draggingId&&(this.expand=!0)},onInput:function(e){this.$_stopPostMessages();var t=e.target.value;t?this.finalElement.label=t:delete this.finalElement.label},onFocus:function(){this.$_state.activeId=this.element.id,this.$_state.activePanel="element",this.$_state.highlightId=this.element.id,this.$_state.scrollToElementId=this.element.id},onBlur:function(){this.readonly=!0},onEnterInput:function(){this.readonly=!this.readonly},editElement:function(){this.$_state.activeId=this.element.id,this.$_state.activePanel="element",this.$_state.scrollToElementId=this.element.id},showCustomCss:function(){this.$_state.activePanelTab="style",this.$_state.activePanelGroup="_css",this.$_state.showInteractions=!1,this.$_state.showConditions=!1},showQueryLoop:function(){this.$_state.showInteractions=!1,this.$_state.showConditions=!1},removeDisplayNone:function(){},isHidden:function(){var e,t;this.hasLoop=null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.hasLoop;var n=null===(t=this.finalElement)||void 0===t?void 0:t.settings;"none"===(null==n?void 0:n[this.displaySettingKey])?this.hidden=!0:null!=n&&n[this.displaySettingKey]&&"none"!==(null==n?void 0:n[this.displaySettingKey])?this.hidden=!1:this.hidden="none"===this.$_getNextBreakpointSetting(n,"_display",!this.$_isMobileFirst.value)},expandParent:function(){this.expand=!0,this.$emit("expandParent")}},created:function(){this.$_state.structureExpandAll&&(this.expand=!0)},watch:{readonly:function(e){e||this.$refs.inputLabel.select()},isActive:function(e){e&&this.bricks.structureAutoSync&&this.$_state.showStructure&&this.$emit("expandParent")},"finalElement.settings":{handler:"isHidden",deep:!0,immediate:!0},"$_state.structureExpandAll":{handler:function(e){this.expand=e},immediate:!0},"$_state.breakpointActive":{handler:"isHidden"}}};var XY=(0,tm.Z)(QY,[["render",function(e,t,n,o,i,r){var a,s=no("icon"),l=no("action-clone"),c=no("action-delete"),u=no("structure-sortable");return Yr(),oa("li",{id:"element-".concat(n.element.id),class:ee([{"bricks-has-unsigned-code":r.hasUnsignedCode},{"bricks-draggable-item":e.$_state.fullAccess},{"bricks-draggable-handle":e.$_state.fullAccess},"element",{draggable:e.$_isNestable(r.finalElement)},{hide:i.hidden},{active:r.isActive}])},[ua("div",{class:"structure-item",onClickCapture:t[14]||(t[14]=function(e){return r.editElement(e)})},[e.$_isNestable(r.finalElement)&&r.hasChildren?(Yr(),ia(s,{key:0,class:"toggle",name:i.expand?"arrow-down":"arrow-right",onClick:t[0]||(t[0]=El((function(e){return i.expand=!i.expand}),["stop"]))},null,8,["name"])):va("",!0),ua("div",{class:"title",onDragenter:t[7]||(t[7]=function(e){return r.onDragenter(e)})},[ua("div",{class:"icon",title:r.iconTitle},[ua("i",{class:ee(r.iconClassName)},null,2)],8,HY),ua("input",{type:"text",autocomplete:"off",spellcheck:"false",readonly:i.readonly,onDblclick:t[1]||(t[1]=function(e){return i.readonly=!1}),class:ee([r.finalElement.hasOwnProperty("label")?"label":"name",{readonly:i.readonly}]),value:e.$_getElementLabel(r.finalElement),onInput:t[2]||(t[2]=function(e){return r.onInput(e)}),onFocus:t[3]||(t[3]=function(e){return r.onFocus(e)}),onBlur:t[4]||(t[4]=function(e){return r.onBlur(e)}),onKeyup:[t[5]||(t[5]=Ml((function(e){return i.readonly=!0}),["esc"])),t[6]||(t[6]=Ml((function(e){return r.onEnterInput()}),["enter"]))],ref:"inputLabel"},null,42,WY)],32),e.$_state.fullAccess&&(e.bricks.structureDuplicateElement||e.bricks.structureDeleteElement)?(Yr(),oa("ul",UY,[r.hasUnsignedCode?(Yr(),oa("li",{key:0,class:"action unsigned-code",title:e.i18n.unsignedCode},[da(s,{name:"touch-id",class:"unsigned-code",onClick:t[8]||(t[8]=function(t){return e.$_state.activeUnsignedCodeId=r.finalElement.id})})],8,KY)):va("",!0),e.bricks.structureDuplicateElement?(Yr(),ia(l,{key:1,element:n.element,index:n.index,title:e.i18n.duplicate},null,8,["element","index","title"])):va("",!0),e.bricks.structureDeleteElement?(Yr(),ia(c,{key:2,element:n.element,index:n.index,title:e.i18n.delete},null,8,["element","index","title"])):va("",!0)])):va("",!0),e.bricks.debug.includes("elementId")?(Yr(),oa("div",{key:2,class:"element-id",textContent:de(n.element.id)},null,8,GY)):va("",!0),ua("div",ZY,[Io(da(s,{name:"css3",class:"custom-css","data-balloon":e.i18n.customCss,"data-balloon-pos":"left",onClick:t[9]||(t[9]=function(e){return r.showCustomCss()})},null,8,["data-balloon"]),[[As,r.breakpointHasCustomCss]]),Io(da(s,{name:"conditions",class:"has-conditions","data-balloon":e.i18n.conditions,"data-balloon-pos":"left",onClick:t[10]||(t[10]=function(t){return e.$_state.showConditions=!0})},null,8,["data-balloon"]),[[As,null===(a=r.finalElement)||void 0===a||null===(a=a.settings)||void 0===a?void 0:a._conditions]]),Io(da(s,{name:"interactions",class:"has-conditions","data-balloon":e.i18n.interactions,"data-balloon-pos":"left",onClick:t[11]||(t[11]=function(t){return e.$_state.showInteractions=!0})},null,8,["data-balloon"]),[[As,r.hasInteractions]]),Io(da(s,{name:"controls/display/none",class:"display-none","data-balloon":e.i18n.hidden,"data-balloon-pos":"left",onClick:t[12]||(t[12]=function(e){return r.removeDisplayNone()})},null,8,["data-balloon"]),[[As,i.hidden]]),r.globalElement?(Yr(),ia(s,{key:0,name:"globe",class:"global-element","data-balloon":e.i18n.globalElement,"data-balloon-pos":"left"},null,8,["data-balloon"])):va("",!0),i.hasLoop?(Yr(),ia(s,{key:1,name:"loop",class:"has-loop","data-balloon":e.i18n.queryLoop,onClick:t[13]||(t[13]=function(e){return r.showQueryLoop()}),"data-balloon-pos":"left"},null,8,["data-balloon"])):va("",!0)])],32),r.hasChildren?Io((Yr(),ia(u,{key:0,"data-parent-id":r.finalElement.id,elements:r.children,onExpandParent:r.expandParent},null,8,["data-parent-id","elements","onExpandParent"])),[[As,i.expand&&e.$_isNestable(r.finalElement)]]):va("",!0)],10,zY)}]]),eQ=null!==document.ontouchstart?"click":"touchstart",tQ={mounted:function(e,t,n){e.clickOutside=function(n){e===n.target||e.contains(n.target)||("function"==typeof t.value?t.value(n):t.value)},setTimeout((function(){document.addEventListener(eQ,e.clickOutside)}),10)},unmounted:function(e){document.removeEventListener(eQ,e.clickOutside)}};function nQ(e){return function(e){if(Array.isArray(e))return oQ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oQ(e,t)}(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.")}()}function oQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var iQ,rQ,aQ,sQ,lQ,cQ,uQ,dQ,fQ,pQ,hQ,mQ,gQ,vQ,bQ,yQ="bricks-draggable-highlight",wQ=function(e){if(mQ&&(window.bricksData.debug.includes("dragging")&&console.warn("draggable:removeListeners",mQ,vQ),iQ&&document.removeEventListener("dragover",rQ),mQ.setAttribute("draggable",!1),mQ.removeEventListener("dragstart",lQ),mQ.removeEventListener("dragend",fQ),mQ.classList.remove(pQ),mQ.style.transform="",mQ=!1),hQ&&(hQ.classList.remove("show"),document.body.appendChild(hQ)),vQ&&vQ.classList.remove("show"),bQ){bQ.classList.remove(yQ);var t=document.querySelectorAll(".".concat(yQ));Array.from(t).forEach((function(e){return e.classList.remove(yQ)}))}document.removeEventListener("dragover",dQ),e.draggingId=!1,e.draggingElement=!1,e.draggingPosition=!1,e.draggingOldParentId=!1,e.draggingOldIndex=!1,e.draggingNewParentId=!1,e.draggingNewIndex=!1},kQ={mounted:function(e,t,n){var o,i,r=t.instance.$_state,a=t.value?t.value:{},s=a.draggableClass?a.draggableClass:"brx-draggable",l=a.itemClass?a.itemClass:"bricks-draggable-item",c=!!a.handleClass&&a.handleClass,u=a.rootClass?a.rootClass:"bricks-draggable-root",d=a.ignoreClass?a.ignoreClass:"bricks-preview-element-spacing",f=a.ghostId?a.ghostId:"bricks-draggable-ghost",p=a.directions?a.directions:["top","bottom","left","right"],h=a.bound?parseInt(a.bound):15,m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);iQ=m||!a.autoscroll||a.autoscroll,pQ=a.draggingClass?a.draggingClass:"dragging",hQ=document.getElementById("bricks-draggable-placeholder");var g=function(e){return nQ(e.querySelectorAll(":scope > .".concat(l,":not(.").concat(pQ,")")))},v=function(e){return e.classList.contains(s)};cQ=function(e){r.draggingElement&&(e.preventDefault(),e.dataTransfer.dropEffect="move",r.draggingId||e.target.closest(".".concat(u))&&(window.bricksData.debug.includes("dragging")&&console.warn("iframe:dragenter:newElement",e.target,r.draggingElement),document.addEventListener("dragover",dQ),r.draggingOldParentId=-1,r.draggingOldIndex=-1))},uQ=function(e){e.stopPropagation(),(bQ=e.target.closest(".".concat(yQ)))&&bQ.classList.remove(yQ)},aQ=function(e){if(r.fullAccess){var n=e.target.closest(".brxe-nav-nested");if(!(e.target.classList.contains("brx-nav-nested-items")&&n&&n.classList.contains("toggled"))&&0===e.button&&!e.target.isContentEditable&&(!c||e.target.closest(".".concat(c)))&&(mQ=e.target.closest(".".concat(l)),(!d||!e.target.closest(".".concat(d)))&&mQ)){if(mQ){if(mQ.classList.contains("show-mobile-menu"))return;if(mQ.classList.contains("splide__slide")&&!(mQ=mQ.closest(".brxe-slider-nested")))return;mQ.style.transform="translateZ(0)"}mQ.setAttribute("draggable",!0),o=0==mQ.dataset.parentId?0:mQ.dataset.parentId,gQ=g(mQ.parentNode),i=gQ.indexOf(mQ),r.draggingElement=t.instance.$_dynamicElements.value.find((function(e){return e.id===mQ.dataset.id})),r.draggingElement&&(r.draggingId=r.draggingElement.id,r.draggingOldParentId=o,r.draggingOldIndex=i,mQ.addEventListener("dragstart",lQ),mQ.addEventListener("dragend",fQ),window.bricksData.debug.includes("dragging")&&console.warn("draggable:mousedown",o,i,mQ))}}},sQ=function(e){window.bricksData.debug.includes("dragging")&&mQ&&console.warn("draggable:mouseup:target:draggableElement",e.target,mQ),setTimeout((function(){wQ(r)}),100)},lQ=function(e){r.draggingElement&&(iQ&&document.addEventListener("dragover",rQ),e.dataTransfer.setData("elementId",r.draggingElement.id),e.dataTransfer.effectAllowed="move",f&&(vQ||((vQ=document.createElement("div")).id=f,document.body.appendChild(vQ)),vQ.classList.add("show"),e.dataTransfer.setDragImage(vQ,0,0),window.bricksData.debug.includes("dragging")&&console.warn("draggable:dragstart:draggableGhost",vQ)),setTimeout((function(){mQ.classList.add(pQ),hQ.classList.add("show"),document.addEventListener("dragover",dQ)}),0),window.bricksData.debug.includes("dragging")&&console.warn("draggable:dragstart:draggableElement",mQ))},dQ=function(e){if(r.draggingElement){e.preventDefault(),e.dataTransfer.dropEffect="move";var t=e.target.closest(".".concat(l));if(t&&((bQ=e.target.closest(".".concat(l,".brx-draggable")))&&bQ.contains(hQ)&&bQ.classList.add(yQ),!d||!t.closest(".".concat(d)))){var n=t.getBoundingClientRect(),o=e.clientY-n.top,i=n.bottom-e.clientY,a=e.clientX-n.left,s=e.clientX-n.right,c=[o,i,a,s].sort((function(e,t){return Math.abs(e-h)-Math.abs(t-h)}))[0];if(!(c>2*h)){var u=t.dataset.parentId,f=(gQ=g(t.parentNode)).indexOf(t),m="below";if(c===o&&p.includes("top")?m="above":c===i&&p.includes("bottom")||c===s&&p.includes("right")?m="below":c===a&&p.includes("left")&&(m="above"),v(t))c>h&&(m="inside",u=t.dataset.id);else if(c>h)return;if("below"===m&&(f+=1),mQ&&mQ.contains(t)&&(u=r.draggingOldParentId,f=r.draggingOldIndex),t===mQ&&(u=r.draggingOldParentId,f=r.draggingOldIndex),r.draggingPosition=m,r.draggingNewParentId=u,r.draggingNewIndex=f,hQ||(hQ=document.getElementById("bricks-draggable-placeholder")),r.draggingNewParentId!=r.draggingOldParentId||r.draggingNewIndex!=r.draggingOldIndex)switch(hQ.classList.add("show"),m){case"above":t.insertAdjacentElement("beforebegin",hQ);break;case"below":t.insertAdjacentElement("afterend",hQ);break;case"inside":t.insertAdjacentElement("beforeend",hQ)}else hQ.classList.remove("show")}}}},fQ=function(e){if(e.preventDefault(),r.draggingElement&&!r.draggingId)return(e.target.closest("#brx-".concat(t.instance.$_dynamicArea.value))||"popup"===r.templateType&&e.target.closest(".brx-popup-content"))&&(r.messageOrigin="iframe"),t.instance.$_addNewElement({element:r.draggingElement,index:r.draggingNewIndex,parent:r.draggingNewParentId},e),void wQ(r);if(!1!==r.draggingNewParentId&&!1!==r.draggingNewIndex)if(r.draggingNewParentId!=r.draggingOldParentId||r.draggingNewIndex!=r.draggingOldIndex){var n=r.draggingPosition,o=r.draggingNewParentId,i=r.draggingNewIndex;e.target.classList.contains(u)?o=0:v(e.target)&&(gQ=g(e.target),"inside"===n&&(i=gQ.length)),window.bricksData.debug.includes("dragging")&&console.table({draggable:e.type,position:n,parentId:o,index:i}),t.instance.$_moveElement({element:r.draggingElement,parentId:o,index:i}),wQ(r)}else wQ(r);else wQ(r)},rQ=function(e){e.clientY>window.innerHeight-30?(window.bricksData.debug.includes("dragging")&&console.warn("safari:autoscroll:down"),window.scrollBy({top:12,behavior:"smooth"})):e.clientY<30&&(window.bricksData.debug.includes("dragging")&&console.warn("safari:autoscroll:up"),window.scrollBy({top:-12,behavior:"smooth"}))},e.addEventListener("mousedown",aQ),e.addEventListener("mouseup",sQ),e.addEventListener("drop",fQ),document.addEventListener("dragenter",cQ),document.addEventListener("dragleave",uQ)},unmounted:function(e){e.removeEventListener("mousedown",aQ),e.removeEventListener("mouseup",sQ),e.removeEventListener("drop",fQ),document.removeEventListener("dragenter",cQ),document.removeEventListener("dragleave",uQ)}},xQ=Vl(tI);xQ.config.globalProperties.bricks=window.bricksData,xQ.config.globalProperties.i18n=window.bricksData.i18n,xQ.provide("bricksData",window.bricksData),xQ.provide("i18n",window.bricksData.i18n),xQ.use((function(e){e.config.globalProperties.$_state=Vf,Object.keys(i).forEach((function(t){e.config.globalProperties["$_".concat(t)]=i[t]})),Object.keys(uh).forEach((function(t){e.config.globalProperties["$_".concat(t)]=uh[t]})),e.config.globalProperties.$_generateCss=gI,e.config.globalProperties.$_breakpointHasStyles=bI,e.config.globalProperties.$_hasPseudoSettings=vI,Object.keys(r).forEach((function(t){e.config.globalProperties["$_".concat(t)]=r[t]})),Object.keys(fh).forEach((function(t){e.config.globalProperties["$_".concat(t)]=fh[t]})),e.config.globalProperties.$_data=yI})),xQ.component("debug-info",_I),xQ.component("icon",$I),xQ.component("sortable",MI),xQ.component("pseudo-classes",zI),xQ.component("panel-controls",dM),xQ.component("panel-control",yM),xQ.component("panel-control-popup",xM),xQ.component("control-direction",SM),xQ.component("control-align-items",$M),xQ.component("control-justify-content",MM),xQ.component("control-apply",DM),xQ.component("control-audio",HM),xQ.component("control-background",GM),xQ.component("control-box-shadow",eA),xQ.component("control-border",YM),xQ.component("control-checkbox",iA),xQ.component("control-code",yH),xQ.component("control-color",fU),xQ.component("control-conditions",$U),xQ.component("control-datepicker",vK),xQ.component("control-editor",kK),xQ.component("control-file",$K),xQ.component("control-filters",oG),xQ.component("control-gradient",aG),xQ.component("control-icon",kG),xQ.component("control-image",OG),xQ.component("control-image-gallery",zG),xQ.component("control-info",KG),xQ.component("control-interactions",iZ),xQ.component("control-link",sZ),xQ.component("control-number",uZ),xQ.component("control-query",pZ),xQ.component("control-query-list",gZ),xQ.component("control-repeater",LZ),xQ.component("control-select",KZ),xQ.component("control-separator",JZ),xQ.component("control-slider",nJ),xQ.component("control-spacing",fJ),xQ.component("control-svg",xJ),xQ.component("control-text",OJ),xQ.component("control-textarea",NJ),xQ.component("control-text-align",FJ),xQ.component("control-text-decoration",BJ),xQ.component("control-text-shadow",WJ),xQ.component("control-text-transform",ZJ),xQ.component("control-transform",QJ),xQ.component("control-typography",nY),xQ.component("control-video",dY),xQ.component("control-dynamic-tag-picker",wY),xQ.component("control-variable-picker",AY),xQ.component("control-file-import",FY),xQ.component("structure-sortable",BY),xQ.component("structure-element",XY),xQ.directive("clickaway",tQ),xQ.directive("draggable",kQ),xQ.mount(".brx-body")},999:function(){},1922:function(){},3937:function(){},8763:function(){},4152:function(){},1158:function(){},3111:function(){},8470:function(){},5926:function(){},4285:function(){},8125:function(){},5136:function(){},6480:function(){},9539:function(){},4182:function(){},7241:function(){},9599:function(){},1403:function(){},7324:function(){},2453:function(){},7193:function(){},6435:function(){},2591:function(){},4368:function(){},162:function(){},3057:function(){},6305:function(){},681:function(){},6625:function(){},971:function(){},7001:function(){},5330:function(){},4902:function(){},8025:function(){},4085:function(){},8618:function(){},1107:function(){},3703:function(){},519:function(){},8180:function(){},7336:function(){},9096:function(){},2447:function(){},3350:function(){},4595:function(){},3765:function(){},3864:function(){},3486:function(){},8759:function(){},358:function(){},4108:function(){},9181:function(){},9583:function(){},8499:function(){},4295:function(){},4290:function(){},4730:function(){},6784:function(){},98:function(){},6256:function(){},3174:function(){},7468:function(){},1726:function(){},1643:function(){},9830:function(){},1366:function(){},5779:function(){},6191:function(){},2787:function(){},4544:function(){},2696:function(){},5840:function(){},2129:function(){},7627:function(){},760:function(){},8988:function(){},8290:function(){},7175:function(){},2229:function(){},1542:function(){},534:function(){},2839:function(){},7228:function(){},4187:function(){},6903:function(){},365:function(){},2472:function(){},9929:function(){},6162:function(){},2072:function(){},2831:function(e){e.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}},4225:function(e,t,n){"use strict";const o=n(2831),i=n(947).lW;e.exports=function(e){let t=0;return t=null!==e&&"object"==typeof e?function(e){let t=0;try{let o=e;if(e instanceof Map?o=Object.fromEntries(e):e instanceof Set&&(o=Array.from(e)),ArrayBuffer.isView(e))return(n=e).BYTES_PER_ELEMENT?n.length*n.BYTES_PER_ELEMENT:-1;const r=JSON.stringify(o,((e,t)=>"bigint"==typeof t||"function"==typeof t?t.toString():void 0===t?"undefined":"symbol"==typeof t||t instanceof RegExp?t.toString():t));t=i.byteLength(r,"utf8")}catch(e){return console.error("Error detected, returning -1",e),-1}var n;return t}(e):function(e){const t=[],n=[e];let r=0;for(;n.length;){const s=n.pop();if("boolean"==typeof s)r+=o.BYTES;else if("string"==typeof s)"undefined"==typeof window||"undefined"==typeof document?r+=(a=s,12+4*Math.ceil(a.length/4)):r+=s.length*o.STRING;else if("number"==typeof s)r+=o.NUMBER;else if("symbol"==typeof s)r+=Symbol.keyFor&&Symbol.keyFor(e)?Symbol.keyFor(e).length*o.STRING:(e.toString().length-8)*o.STRING;else if("bigint"==typeof s)r+=i.from(s.toString()).byteLength;else if("function"==typeof s)r+=s.toString().length;else if("object"==typeof s&&-1===t.indexOf(s)){t.push(s);for(const e in s)n.push(s[e])}}var a;return r}(e),t}},947:function(e,t,n){"use strict";
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
const o=n(9742),i=n(645),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let o=s(n);const i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,l.prototype),o}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(i)return o?-1:U(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function v(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function b(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,o,i){let r,a=1,s=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let o=-1;for(r=n;r<s;r++)if(c(e,r)===c(t,-1===o?0:r-o)){if(-1===o&&(o=r),r-o+1===l)return o*a}else-1!==o&&(r-=r-o),o=-1}else for(n+l>s&&(n=s-l),r=n;r>=0;r--){let n=!0;for(let o=0;o<l;o++)if(c(e,r+o)!==c(t,o)){n=!1;break}if(n)return r}return-1}function w(e,t,n,o){n=Number(n)||0;const i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;const r=t.length;let a;for(o>r/2&&(o=r/2),a=0;a<o;++a){const o=parseInt(t.substr(2*a,2),16);if(J(o))return a;e[n+a]=o}return a}function k(e,t,n,o){return G(U(t,e.length-n),e,n,o)}function x(e,t,n,o){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function C(e,t,n,o){return G(K(t),e,n,o)}function _(e,t,n,o){return G(function(e,t){let n,o,i;const r=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function S(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);const o=[];let i=t;for(;i<n;){const t=e[i];let r=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,o,s,l;switch(a){case 1:t<128&&(r=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(r=l));break;case 3:n=e[i+1],o=e[i+2],128==(192&n)&&128==(192&o)&&(l=(15&t)<<12|(63&n)<<6|63&o,l>2047&&(l<55296||l>57343)&&(r=l));break;case 4:n=e[i+1],o=e[i+2],s=e[i+3],128==(192&n)&&128==(192&o)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(r=l))}}null===r?(r=65533,a=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),i+=a}return function(e){const t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=$));return n}(o)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let i=0,r=Math.min(n,o);i<r;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const o=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))i+t.length>o.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,i)}i+=t.length}return o},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(i>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(r,a),c=this.slice(o,i),u=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==u[e]){r=c[e],a=u[e];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const $=4096;function E(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}function I(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}function M(e,t,n){const o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let i="";for(let o=t;o<n;++o)i+=Y[e[o]];return i}function A(e,t,n){const o=e.slice(t,n);let i="";for(let e=0;e<o.length-1;e+=2)i+=String.fromCharCode(o[e]+256*o[e+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,o,i,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function L(e,t,n,o,i){B(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,o,i){B(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function N(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,o,r){return t=+t,n>>>=0,r||N(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function V(e,t,n,o,r){return t=+t,n>>>=0,r||N(e,0,n,8),i.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let o=t,i=1,r=this[e+--o];for(;o>0&&(i*=256);)r+=this[e+--o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,r=0;for(this[t]=255&e;++r<n&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}let i=0,r=1,a=0;for(this[t]=255&e;++i<n&&(r*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/r>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}let i=n-1,r=1,a=0;for(this[t+i]=255&e;--i>=0&&(r*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/r>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);const i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},l.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const r=l.isBuffer(e)?e:l.from(e,o),a=r.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=r[i%a]}return this};const F={};function R(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function B(e,t,n,o,i,r){if(e>n||e<t){const o="bigint"==typeof t?"n":"";let i;throw i=r>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(r+1)}${o}`:`>= -(2${o} ** ${8*(r+1)-1}${o}) and < 2 ** ${8*(r+1)-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(o,i,r)}function z(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),R("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),R("ERR_OUT_OF_RANGE",(function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=q(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),o+=` It must be ${t}. Received ${i}`,o}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function U(e,t){let n;t=t||1/0;const o=e.length;let i=null;const r=[];for(let a=0;a<o;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function K(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,o){let i;for(i=0;i<o&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},628:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m0.75 12 22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12 0.75 0 22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},38:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M23.025 6.64L12.5194 17.1446C12.4512 17.2129 12.3702 17.267 12.2812 17.304C12.192 17.341 12.0964 17.36 12 17.36C11.9036 17.36 11.808 17.341 11.7188 17.304C11.6298 17.267 11.5488 17.2129 11.4806 17.1446L0.975 6.64" stroke-width="2"/></svg>'},3006:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M17.3605 23.025L6.8549 12.5194C6.5677 12.2327 6.5677 11.7673 6.8549 11.4806L17.3605 0.975" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},7215:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M6.6395 0.975L17.1451 11.4806C17.4323 11.7673 17.4323 12.2327 17.1451 12.5194L6.6395 23.025" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2303:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M0.75 17.189 11.47 6.47a0.749 0.749 0 0 1 1.06 0l10.72 10.719" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},215:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-0.75 -0.75 14 14" class="bricks-svg"><g id="check--check-form-validation-checkmark-success-add-addition-tick"><path id="Vector 3969" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m0.44642857142857145 8.035714285714286 2.8768660714285716 2.517232142857143c0.3798214285714286 0.33241071428571434 0.9593928571428572 0.28410714285714284 1.278982142857143 -0.10651785714285715L12.053571428571429 1.3392857142857144" stroke-width="1.5"/></g></svg>'},8667:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.75 4.5h3.75c0.3978 0 0.7794 0.15804 1.0607 0.43934S21 5.60218 21 6v15.75c0 0.3978 -0.158 0.7794 -0.4393 1.0607s-0.6629 0.4393 -1.0607 0.4393h-15c-0.39782 0 -0.77936 -0.158 -1.06066 -0.4393C3.15804 22.5294 3 22.1478 3 21.75V6c0 -0.39782 0.15804 -0.77936 0.43934 -1.06066C3.72064 4.65804 4.10218 4.5 4.5 4.5h3.75c0 -0.99456 0.39509 -1.94839 1.09835 -2.65165C10.0516 1.14509 11.0054 0.75 12 0.75c0.9946 0 1.9484 0.39509 2.6517 1.09835C15.3549 2.55161 15.75 3.50544 15.75 4.5v0Z" stroke-width="2"/><path stroke="currentColor" d="M12 4.51099c-0.2071 0 -0.375 -0.1679 -0.375 -0.375 0 -0.20711 0.1679 -0.375 0.375 -0.375" stroke-width="2"/><path stroke="currentColor" d="M12 4.51099c0.2071 0 0.375 -0.1679 0.375 -0.375 0 -0.20711 -0.1679 -0.375 -0.375 -0.375" stroke-width="2"/></svg>'},1791:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="copy-2"><path id="Vector 3878" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13 12V4.5c0 -0.55228 -0.4477 -1 -1 -1H4.5c-0.55228 0 -1 0.44772 -1 1V12c0 0.5523 0.44772 1 1 1H12c0.5523 0 1 -0.4477 1 -1Z" stroke-width="1"/><path id="Vector 3881" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1 9.5V2c0 -0.55228 0.44772 -1 1 -1h7.5" stroke-width="1"/><path id="Vector 3885" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.75 8.25h5" stroke-width="1"/><path id="Vector 3886" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.25 5.75v5" stroke-width="1"/></g></svg>'},1851:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 24 24" class="bricks-svg"><path d="M2.15625 0.7177916666666667h18.6875s1.4375 0 1.4375 1.4375v18.6875s0 1.4375 -1.4375 1.4375H2.15625s-1.4375 0 -1.4375 -1.4375v-18.6875s0 -1.4375 1.4375 -1.4375" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.1875 15.811541666666667 8.625 -8.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m15.8125 15.811541666666667 -8.625 -8.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},1153:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m0.75 23.249 22.5 -22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.25 23.249 0.75 0.749" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},1102:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m23.25 0.748 -9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9.75 20.998 0 -6.75 -6.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m14.25 2.998 0 6.75 6.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9.75 14.248 -9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3097:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M11.4 1.316 5.524 9.322a9.159 9.159 0 0 0 -1.774 5.419h0a8.25 8.25 0 0 0 8.25 8.25h0a8.25 8.25 0 0 0 8.25 -8.25h0a9.159 9.159 0 0 0 -1.774 -5.419l-5.871 -8.006a0.75 0.75 0 0 0 -1.205 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m18.363 19.991 -5.613 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m20.216 15.491 -7.466 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m19.447 10.991 -6.697 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.4 6.491 -3.65 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2208:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m3 22.4971 18 0c0.8284 0 1.5 -0.6716 1.5 -1.5l0 -18.00003c0 -0.82843 -0.6716 -1.5 -1.5 -1.5l-18 0c-0.82842 0 -1.5 0.67157 -1.5 1.5l0 18.00003c0 0.8284 0.67157 1.5 1.5 1.5Z" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m15.5 22.4971 0 -21.00003" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m8.5 22.4971 0 -21.00003" stroke-width="2"/></svg>'},4713:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="horizontal-toggle-button--toggle-adjustment-adjust-button-off-on-horizontal-settings-controls"><path id="Vector 3958" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h-7C2.11929 6 1 4.88071 1 3.5S2.11929 1 3.5 1h7C11.8807 1 13 2.11929 13 3.5S11.8807 6 10.5 6Z" stroke-width="1"/><path id="Vector 3959" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5 13h-7C2.11929 13 1 11.8807 1 10.5 1 9.11929 2.11929 8 3.5 8h7c1.3807 0 2.5 1.11929 2.5 2.5 0 1.3807 -1.1193 2.5 -2.5 2.5Z" stroke-width="1"/><path id="Ellipse 1803" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10 3.5a0.5 0.5 0 1 0 1 0 0.5 0.5 0 1 0 -1 0" stroke-width="1"/><path id="Ellipse 1804" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3 10.5a0.5 0.5 0 1 0 1 0 0.5 0.5 0 1 0 -1 0" stroke-width="1"/></g></svg>'},8375:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M0 60H128V68H0zM32 68H64V96H32zM72 68H104V112H72z"/><path stroke="#23282D" stroke-width="6" d="M35 31H61V63H35zM75 31H101V63H75z"/></g></svg>'},6017:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M60 0H68V128H60zM68 28H96V60H68zM68 68H112V100H68z"/><path stroke="#23282D" stroke-width="6" d="M35 31H63V57H35zM35 71H63V97H35z"/></g></svg>'},3140:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M0 60H24V68H0z" transform="matrix(1 0 0 -1 0 128)"/><path fill="#23282D" d="M104 60H128V68H104zM28 16H60V112H28zM68 16H100V112H68z"/></g></svg>'},6710:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M60 0H68V24H60zM60 104H68V128H60zM16 28H112V60H16zM16 68H112V100H16z"/></svg>'},135:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120H128V128H0zM28 16H60V112H28zM68 16H100V112H68z"/></svg>'},5941:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0H128V128H120zM16 28H112V60H16zM16 68H112V100H16z"/></svg>'},6644:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0H128V8H0zM28 16H60V112H28zM68 16H106V112H68z"/></svg>'},9969:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0H8V128H0zM16 28H112V60H16zM16 68H112V100H16z"/></svg>'},1712:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120H128V128H0zM0 0H128V8H0zM40 16H88V112H40z"/></svg>'},8439:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0H128V128H120zM0 0H8V128H0zM16 28H112V60H16zM16 68H112V100H16z"/></svg>'},9467:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M16 86H112V112H16zM16 51H112V77H16zM16 16H112V42H16z"/></svg>'},7217:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M56,19.9992122 L10,20 C4.4771525,20 -1.10000309e-15,15.5228475 0,10 C-6.61662521e-16,4.5971155 4.37990327,0.217212229 9.78278777,0.217212229 C9.8543947,0.217212229 9.92599948,0.217998439 9.99758914,0.219570718 L66.8367796,1.46789386 C70.9424147,1.55806332 74.3834686,4.27942675 75.5633162,7.9999083 L76,8 L76,32 L81.1715729,32 C81.7020059,32 82.2107137,32.2107137 82.5857864,32.5857864 C83.366835,33.366835 83.366835,34.633165 82.5857864,35.4142136 L82.5857864,35.4142136 L67.4142136,50.5857864 C66.633165,51.366835 65.366835,51.366835 64.5857864,50.5857864 L64.5857864,50.5857864 L49.4142136,35.4142136 C49.0391408,35.0391408 48.8284271,34.530433 48.8284271,34 C48.8284271,32.8954305 49.7238576,32 50.8284271,32 L50.8284271,32 L56,32 L56,19.9992122 Z" transform="translate(30 24)"/><path fill="#23282D" d="M56,20 L8,20 C3.581722,20 5.41083001e-16,16.418278 0,12 L0,8 C-5.41083001e-16,3.581722 3.581722,8.11624501e-16 8,0 L68,0 C72.3349143,-7.96310831e-16 75.8645429,3.44783777 75.9961932,7.75082067 L76,8 L76,32 L81.1715729,32 C81.7020059,32 82.2107137,32.2107137 82.5857864,32.5857864 C83.366835,33.366835 83.366835,34.633165 82.5857864,35.4142136 L82.5857864,35.4142136 L67.4142136,50.5857864 C66.633165,51.366835 65.366835,51.366835 64.5857864,50.5857864 L64.5857864,50.5857864 L49.4142136,35.4142136 C49.0391408,35.0391408 48.8284271,34.530433 48.8284271,34 C48.8284271,32.8954305 49.7238576,32 50.8284271,32 L50.8284271,32 L56,32 L56,20 Z" transform="rotate(180 49 52)"/></g></svg>'},268:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M86 16H112V112H86zM51 16H77V112H51zM16 16H42V112H16z"/></svg>'},219:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M23.5,1h-23c-0.276,0 -0.5,0.224 -0.5,0.5v9c0,0.276 0.224,0.5 0.5,0.5h23c0.276,0 0.5,-0.224 0.5,-0.5v-9c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/><path d="M23.5,13h-23c-0.276,0 -0.5,0.224 -0.5,0.5v9c0,0.276 0.224,0.5 0.5,0.5h23c0.276,0 0.5,-0.224 0.5,-0.5v-9c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/></g><path fill="none" d="M0,0h24v24h-24Z"/></svg>'},493:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M4.5,2h-4c-0.276,0 -0.5,0.224 -0.5,0.5v19c0,0.276 0.224,0.5 0.5,0.5h4c0.276,0 0.5,-0.224 0.5,-0.5v-19c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/><path d="M23.5,2h-4c-0.276,0 -0.5,0.224 -0.5,0.5v19c0,0.276 0.224,0.5 0.5,0.5h4c0.276,0 0.5,-0.224 0.5,-0.5v-19c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/><path d="M17.5,2h-11c-0.276,0 -0.5,0.224 -0.5,0.5v19c0,0.276 0.224,0.5 0.5,0.5h11c0.276,0 0.5,-0.224 0.5,-0.5v-19c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/></g><path fill="none" d="M0,0h24v24h-24Z"/></svg>'},7122:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M10.5,0h-10c-0.276,0 -0.5,0.224 -0.5,0.5v10c0,0.276 0.224,0.5 0.5,0.5h10c0.275,0 0.5,-0.224 0.5,-0.5v-10c0,-0.276 -0.225,-0.5 -0.5,-0.5Z"/><path d="M23.5,0h-10c-0.276,0 -0.5,0.224 -0.5,0.5v10c0,0.276 0.224,0.5 0.5,0.5h10c0.275,0 0.5,-0.224 0.5,-0.5v-10c0,-0.276 -0.225,-0.5 -0.5,-0.5Z"/><path d="M10.5,13h-10c-0.276,0 -0.5,0.224 -0.5,0.5v10c0,0.276 0.224,0.5 0.5,0.5h10c0.275,0 0.5,-0.224 0.5,-0.5v-10c0,-0.276 -0.225,-0.5 -0.5,-0.5Z"/><path d="M23.5,13h-10c-0.276,0 -0.5,0.224 -0.5,0.5v10c0,0.276 0.224,0.5 0.5,0.5h10c0.275,0 0.5,-0.224 0.5,-0.5v-10c0,-0.276 -0.225,-0.5 -0.5,-0.5Z"/></g><path fill="none" d="M0,0h24v24h-24Z"/></svg>'},5946:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M4.5,5h-4c-0.276,0 -0.5,0.224 -0.5,0.5v13c0,0.276 0.224,0.5 0.5,0.5h4c0.276,0 0.5,-0.224 0.5,-0.5v-13c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/><path d="M23.5,5h-4c-0.276,0 -0.5,0.224 -0.5,0.5v13c0,0.276 0.224,0.5 0.5,0.5h4c0.276,0 0.5,-0.224 0.5,-0.5v-13c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/><path d="M17.5,1h-11c-0.276,0 -0.5,0.224 -0.5,0.5v21c0,0.276 0.224,0.5 0.5,0.5h11c0.276,0 0.5,-0.224 0.5,-0.5v-21c0,-0.276 -0.224,-0.5 -0.5,-0.5Z"/></g><path fill="none" d="M0,0h24v24h-24Z"/></svg>'},8554:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M19,0h-14c-0.553,0 -1,0.447 -1,1v3c0,0.553 0.447,1 1,1c0.553,0 1,-0.447 1,-1v-2h5v14h-2c-0.553,0 -1,0.447 -1,1c0,0.553 0.447,1 1,1h6c0.553,0 1,-0.447 1,-1c0,-0.553 -0.447,-1 -1,-1h-2v-14h5v2c0,0.553 0.447,1 1,1c0.553,0 1,-0.447 1,-1v-3c0,-0.553 -0.447,-1 -1,-1Z"/><path d="M18.931,21.585l0.868,-0.602h-15.598l0.868,0.602c0.452,0.313 0.568,0.936 0.253,1.392c-0.314,0.454 -0.938,0.567 -1.392,0.253l-3.5,-2.424c-0.562,-0.389 -0.558,-1.256 -0.009,-1.638l3.5,-2.483c0.449,-0.319 1.074,-0.214 1.394,0.236c0.319,0.451 0.214,1.074 -0.237,1.394l-0.94,0.685h15.725l-0.94,-0.685c-0.451,-0.32 -0.557,-0.943 -0.237,-1.394c0.319,-0.45 0.944,-0.556 1.393,-0.236l3.5,2.483c0.548,0.382 0.555,1.249 -0.009,1.638l-3.5,2.424c-0.454,0.314 -1.077,0.201 -1.392,-0.253c-0.315,-0.456 -0.201,-1.079 0.253,-1.392Z"/></g><path fill="none" d="M0,0h24v24h-24Z"/></svg>'},2797:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><g id="invisible-1--disable-eye-eyeball-hide-off-view"><path id="Intersect" stroke="currentColor" d="M5.793 6.2601C7.3727 4.4953 9.1725 3.3902 12 3.3902C17.2615 3.3902 18.9643 7.2168 22.3126 12C20.5888 14.4626 19.3011 16.6717 17.7394 18.2355" stroke-width="2"/><path id="Intersect_2" stroke="currentColor" d="M15.8266 19.7037C14.768 20.2839 13.5358 20.6098 12.0005 20.6098C6.739 20.6098 5.0363 16.7832 1.688 12C2.6525 10.6222 3.4804 9.3238 4.2961 8.1734" stroke-width="2"/><path id="Vector 1349" stroke="currentColor" d="M1.1966 1.1966L22.8034 22.8034" stroke-width="2"/><path id="Ellipse 20" stroke="currentColor" d="M14.0295 14.0293C15.1503 12.9085 15.1503 11.0915 14.0295 9.9706C12.9088 8.8499 11.0917 8.8499 9.9709 9.9706" stroke-width="2"/></g></svg>'},3237:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M23.913,12.188c-0.031,-0.068 -0.781,-1.699 -2.839,-3.367c-0.429,-0.348 -1.058,-0.282 -1.407,0.148c-0.348,0.427 -0.281,1.058 0.147,1.405c1.028,0.834 1.654,1.642 1.981,2.139c-1.199,1.453 -5.031,5.586 -9.795,5.586c-0.441,0 -0.894,-0.036 -1.348,-0.106c-0.545,-0.086 -1.057,0.289 -1.142,0.835c-0.084,0.544 0.289,1.058 0.834,1.142c0.555,0.086 1.111,0.13 1.656,0.13c6.787,0 11.611,-6.635 11.812,-6.918c0.208,-0.291 0.246,-0.67 0.101,-0.994Z"/><path d="M2.874,16.333c0.425,0.349 1.054,0.288 1.407,-0.142c0.349,-0.428 0.285,-1.059 -0.144,-1.407c-1.004,-0.82 -1.613,-1.61 -1.935,-2.099c1.199,-1.451 5.033,-5.586 9.798,-5.586c0.307,0 0.621,0.017 0.936,0.051c0.55,0.062 1.043,-0.336 1.103,-0.886c0.061,-0.548 -0.336,-1.041 -0.885,-1.102c-0.386,-0.041 -0.775,-0.063 -1.154,-0.063c-6.788,0 -11.611,6.635 -11.814,6.919c-0.205,0.288 -0.244,0.663 -0.1,0.988c0.03,0.067 0.758,1.673 2.788,3.327Z"/><path d="M12.583,16.223c2.205,0 4,-1.794 4,-4c0,-0.417 -0.065,-0.818 -0.184,-1.197l-5.013,5.014c0.378,0.119 0.781,0.183 1.197,0.183Z"/><path d="M8.583,12.223c0,0.298 0.035,0.587 0.097,0.867l4.77,-4.769c-0.279,-0.061 -0.568,-0.097 -0.866,-0.097c-2.207,-0.001 -4.001,1.794 -4.001,3.999Z"/><path d="M23.051,1.548c-0.366,-0.373 -0.997,-0.402 -1.396,-0.016c-0.006,0.005 -0.013,0.009 -0.019,0.016l-19.5,19.5c-0.353,0.279 -0.429,0.989 0,1.414c0.001,0.001 0.003,0.002 0.004,0.004c0.377,0.372 1.029,0.372 1.405,0c0.001,-0.001 0.003,-0.002 0.005,-0.004l19.5,-19.5c0.393,-0.396 0.387,-1.028 0.001,-1.414Z"/></g><path fill="none" d="M0,0h24v24h-24Z"/></svg>'},951:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M60 0H68V128H60zM20 16H52V112H20zM76 16H108V112H76z"/></svg>'},1326:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 60H128V68H0zM16 20H112V52H16zM16 76H112V108H16z"/></svg>'},3096:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M120 0H128V128H120z"/><path fill="#23282D" d="M80 16H112V112H80zM40 16H72V112H40z" transform="matrix(1 0 0 -1 0 128)"/></g></svg>'},7365:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120H128V128H0zM16 80H112V112H16zM16 40H112V72H16z"/></svg>'},2157:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0H8V128H0zM16 16H48V112H16zM56 16H88V112H56z"/></svg>'},9409:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0H128V8H0zM16 16H112V48H16zM16 56H112V88H16z"/></svg>'},5040:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0H128V128H120zM0 0H8V128H0zM24 16H56V112H24zM72 16H104V112H72z"/></svg>'},7628:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120H128V128H0zM0 0H128V8H0zM16 20H112V52H16zM16 76H112V108H16z"/></svg>'},3168:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0H128V128H120zM0 0H8V128H0zM12 16H44V112H12zM84 16H116V112H84z"/></svg>'},980:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120H128V128H0zM0 0H128V8H0zM16 12H112V44H16zM16 84H112V116H16z"/></svg>'},6184:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0H128V128H120zM0 0H8V128H0zM72 16H104V112H72zM24 16H56V112H24z"/></svg>'},2344:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120H128V128H0zM0 0H128V8H0zM16 24H112V56H16zM16 72H112V104H16z"/></svg>'},2466:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M32 16H96V40H32zM16 52H112V76H16zM32 88H96V112H32z"/></svg>'},9458:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M16 16H112V36H16zM16 54H112V74H16zM16 92H112V112H16z"/></svg>'},2885:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M16 16H80V36H16zM16 54H112V74H16zM16 92H80V112H16z"/></svg>'},6534:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M48 16H112V36H48zM16 54H112V74H16zM48 90H112V110H48z"/></svg>'},2102:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#212121" d="M21 44H33V64H21zM21 12H33V26H21zM0 0H56V12H0z" transform="translate(37 32)"/><path fill="#212121" d="M16 61H112V73H16z"/></g></svg>'},4539:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="42" y="85">x</tspan>\n </text></svg>'},6755:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#212121" d="M21 12H33V64H21zM0 0H56V12H0z" transform="translate(37 32)"/><path fill="#212121" d="M16 16H112V28H16z"/></g></svg>'},3369:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#212121" d="M21 12H33V64H21zM0 0H56V12H0z" transform="translate(37 32)"/><path fill="#212121" d="M16 100H112V112H16z"/></g></svg>'},9504:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="14" y="89">Aa</tspan>\n </text></svg>'},3266:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="19" y="89">aa</tspan>\n </text></svg>'},349:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text fill="#212121" font-size="80" font-weight="bold">\n <tspan x="42" y="85">x</tspan>\n </text></svg>'},5440:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="8" y="89">AA</tspan>\n </text></svg>'},7467:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M19.629 19.238 12.739 23a1.5 1.5 0 0 1 -1.439 0l-6.89 -3.758a1.5 1.5 0 0 1 -0.762 -1.07L1.061 2.635A1.5 1.5 0 0 1 2.541 0.888H21.5a1.5 1.5 0 0 1 1.479 1.747L20.39 18.168a1.5 1.5 0 0 1 -0.761 1.07Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m8.27 15.888 3.75 2.25 3.75 -2.25 0.75 -6 -6.75 0 7.5 -4.5 -10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2874:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m1.816 2.8 8.428 19.072a0.75 0.75 0 0 0 1.411 -0.112l1.884 -7.158a1.5 1.5 0 0 1 1.068 -1.069l7.158 -1.884a0.75 0.75 0 0 0 0.113 -1.411L2.806 1.814a0.75 0.75 0 0 0 -0.99 0.986Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3707:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M0.748 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0 -22.5 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.498 16.5 8.999 -9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.498 16.5 -9.001 -9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},6737:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="screen-curve--screen-curved-device-electronics-monitor-diplay-computer"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.93 10.8466c-3.93345 -0.5601 -7.92646 -0.5601 -11.85996 0 -0.070445 0.0099 -0.142209 0.0048 -0.210494 -0.0152 -0.068284 -0.02 -0.131516 -0.0544 -0.185471 -0.1007 -0.053954 -0.0464 -0.097388 -0.1038 -0.1274 -0.1683 -0.030011 -0.0645 -0.045909 -0.1347 -0.046631 -0.2058V1.99658c-0.000963 -0.07167 0.013809 -0.14267 0.043274 -0.20801 0.029465 -0.06534 0.072905 -0.12342 0.127258 -0.17015 0.054352 -0.04672 0.118293 -0.08095 0.187315 -0.10027 0.069021 -0.01933 0.141441 -0.02328 0.212149 -0.01157 3.93421 0.55001 7.9258 0.55001 11.85996 0 0.0699 -0.01156 0.1415 -0.00784 0.2098 0.01091s0.1317 0.05209 0.1859 0.09771c0.0542 0.04562 0.0978 0.10245 0.1279 0.16656 0.0301 0.06412 0.0459 0.134 0.0464 0.20482v8.36002c0.0008 0.072 -0.0141 0.1433 -0.0435 0.209 -0.0294 0.0657 -0.0726 0.1243 -0.1267 0.1718 -0.0541 0.0475 -0.1179 0.0827 -0.1869 0.1033 -0.069 0.0205 -0.1416 0.026 -0.2129 0.0159v0Z" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 10.4297 7 12.5" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.5h5" stroke-width="1"/></g></svg>'},9142:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="screen-2--screen-device-electronics-monitor-diplay-computer"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.09052 12.5c0.10594 -0.6957 0.4577 -1.3305 0.99148 -1.7892C5.61578 10.2522 6.29625 10 7.00002 10s1.38424 0.2522 1.91802 0.7108c0.53379 0.4587 0.88554 1.0935 0.99149 1.7892" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13 1.5H1c-0.276142 0 -0.5 0.22386 -0.5 0.5v7.5c0 0.27614 0.223858 0.5 0.5 0.5h12c0.2761 0 0.5 -0.22386 0.5 -0.5V2c0 -0.27614 -0.2239 -0.5 -0.5 -0.5Z" stroke-width="1"/></g></svg>'},1841:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="screen-1--screen-device-electronics-monitor-diplay-computer"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13 1.5H1c-0.276142 0 -0.5 0.22386 -0.5 0.5v7.5c0 0.27614 0.223858 0.5 0.5 0.5h12c0.2761 0 0.5 -0.22386 0.5 -0.5V2c0 -0.27614 -0.2239 -0.5 -0.5 -0.5Z" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m6 10 -1 2.5" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m8 10 1 2.5" stroke-width="1"/><path id="Vector_4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5h6" stroke-width="1"/></g></svg>'},7657:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M22.19 1.81a3.639 3.639 0 0 0 -5.17 0.035l-14.5 14.5L0.75 23.25l6.905 -1.771 14.5 -14.5a3.637 3.637 0 0 0 0.035 -5.169Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.606 2.26 5.134 5.134" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m2.521 16.344 5.139 5.13" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3982:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="m0.75 7.821 22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m0.75 16.179 22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},9937:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m9.75 14.248 -9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m23.25 7.498 0 -6.75 -6.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m0.75 16.498 0 6.75 6.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m23.25 0.748 -9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},5362:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m12.001 15.75 0 -12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.501 8.25 -4.5 -4.5 -4.5 4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.251 15.75v1.5a3 3 0 0 1 -3 3h-16.5a3 3 0 0 1 -3 -3v-1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},4617:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M14.8846 17.625V12l7.7885 -7.78846c0.4327 -0.43269 0.5769 -0.86539 0.5769 -1.44231C23.25 1.61538 22.3846 0.75 21.2308 0.75H2.76924C1.6154 0.75 0.75 1.61538 0.75 2.76923c0 0.57692 0.144244 1.00962 0.57694 1.44231L9.11539 12v11.25l5.76921 -5.625Z" stroke-width="2"/></svg>'},647:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M1.219 9.184a7.965 7.965 0 1 0 15.93 0 7.965 7.965 0 1 0 -15.93 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M6.851 14.816a7.965 7.965 0 1 0 15.93 0 7.965 7.965 0 1 0 -15.93 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.71 11.785 4.583 4.584" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9.557 9.668 4.83 4.829" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m11.886 7.63 4.468 4.468" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},8416:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="flash-2--flash-power-connect-charge-electricity-lightning"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 0.5v5h4.5l-6.5 8v-5H1.5L8 0.5Z" stroke-width="1"/></g></svg>'},4194:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M20.25 9.75v-3a1.5 1.5 0 0 0 -1.5 -1.5H8.25v-1.5a1.5 1.5 0 0 0 -1.5 -1.5h-4.5a1.5 1.5 0 0 0 -1.5 1.5v16.3a1.7 1.7 0 0 0 3.336 0.438l2.351 -9.657A1.5 1.5 0 0 1 7.879 9.75H21.75a1.5 1.5 0 0 1 1.45 1.886l-2.2 9a1.5 1.5 0 0 1 -1.45 1.114H2.447" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},4933:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g><path d="M0.75 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0 -22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><g><path d="m5 20.8 1 -5.05h1.08a1.48 1.48 0 0 0 1.18 -0.58 1.44 1.44 0 0 0 0.27 -1.28l-0.75 -3a1.49 1.49 0 0 0 -1.45 -1.14H1" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M21 5.25h-4.08a1.49 1.49 0 0 0 -1.45 1.14l-0.75 3a1.44 1.44 0 0 0 0.28 1.28 1.48 1.48 0 0 0 1.18 0.58h1.58l0.78 4.75A1.5 1.5 0 0 0 20 17.25h2" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>'},2474:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m3 22.5 18 0c0.8284 0 1.5 -0.6716 1.5 -1.5l0 -18c0 -0.82843 -0.6716 -1.5 -1.5 -1.5l-18 0c-0.82842 0 -1.5 0.67157 -1.5 1.5l0 18c0 0.8284 0.67157 1.5 1.5 1.5Z" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m15.5 22.5 0 -21" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m8.5 22.5 0 -21" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m1.5 12 21 0" stroke-width="2"/></svg>'},4218:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.15723 8.88904c0 -3.38308 2.74253 -6.12561 6.12561 -6.12561 1.89721 0 3.59296 0.86249 4.71656 2.21677 1.1236 -1.35428 2.8194 -2.21677 4.7166 -2.21677 3.3831 0 6.1256 2.74253 6.1256 6.12562 0 1.85865 -0.8278 3.52395 -2.1348 4.64735l-8.0275 7.4341c-0.3834 0.3551 -0.9755 0.3551 -1.359 0l-8.01747 -7.4248c-1.31325 -1.1235 -2.1456 -2.7929 -2.1456 -4.65666Z" stroke-width="2"/></svg>'},6976:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m12 23.248 0 -22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m8.25 19.498 3.75 3.75 3.75 -3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.25 4.498 12 0.748l3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},6523:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9 9.00004c0.00011 -0.54997 0.15139 -1.08933 0.43732 -1.55913s0.69548 -0.85196 1.18398 -1.10472c0.4884 -0.25275 1.037 -0.36637 1.5856 -0.32843 0.5487 0.03793 1.0764 0.22596 1.5254 0.54353 0.449 0.31757 0.8021 0.75246 1.0206 1.25714 0.2186 0.50468 0.2942 1.05973 0.2186 1.60448 -0.0756 0.54475 -0.2994 1.05829 -0.6471 1.48439 -0.3477 0.4261 -0.8059 0.7484 -1.3244 0.9317 -0.2926 0.1035 -0.5459 0.2951 -0.725 0.5485 -0.1791 0.2535 -0.2752 0.5562 -0.275 0.8665v1.006" stroke-width="2"/><path stroke="currentColor" d="M12 18c-0.2071 0 -0.375 -0.1679 -0.375 -0.375s0.1679 -0.375 0.375 -0.375" stroke-width="2"/><path stroke="currentColor" d="M12 18c0.2071 0 0.375 -0.1679 0.375 -0.375s-0.1679 -0.375 -0.375 -0.375" stroke-width="2"/><path stroke="currentColor" stroke-miterlimit="10" d="M12 23.25c6.2132 0 11.25 -5.0368 11.25 -11.25S18.2132 0.75 12 0.75 0.75 5.7868 0.75 12 5.7868 23.25 12 23.25Z" stroke-width="2"/></svg>'},764:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M5.205 8.5a1.875 1.875 0 1 0 3.75 0 1.875 1.875 0 1 0 -3.75 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M20.2 16.955 15.828 10.4a0.844 0.844 0 0 0 -1.393 -0.015L12.19 13.6l-1.39 -1.117a0.843 0.843 0 0 0 -1.229 0.191l-2.865 4.3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M2.25 3.023a1.5 1.5 0 0 0 -1.5 1.5v14.954a1.5 1.5 0 0 0 1.5 1.5h19.5a1.5 1.5 0 0 0 1.5 -1.5v-12a1.5 1.5 0 0 0 -0.426 -1.047l-2.883 -2.955a1.5 1.5 0 0 0 -1.074 -0.452Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},9708:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m12.001 3.75 0 12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.501 11.25 4.5 4.5 4.5 -4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.251 15.75v1.5a3 3 0 0 1 -3 3h-16.5a3 3 0 0 1 -3 -3v-1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3828:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm0.25 5a1.5 1.5 0 1 1 -1.5 1.5 1.5 1.5 0 0 1 1.5 -1.5Zm2.25 13.5h-4a1 1 0 0 1 0 -2h0.75a0.25 0.25 0 0 0 0.25 -0.25v-4.5a0.25 0.25 0 0 0 -0.25 -0.25h-0.75a1 1 0 0 1 0 -2h1a2 2 0 0 1 2 2v4.75a0.25 0.25 0 0 0 0.25 0.25h0.75a1 1 0 0 1 0 2Z" fill="currentColor" stroke-width="1"/></svg>'},8325:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.9413 17.3205v-6.1278c0 -0.2322 -0.0922 -0.4549 -0.2564 -0.619 -0.1642 -0.1642 -0.3868 -0.2564 -0.619 -0.2564h-0.8754" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.5036 7.72892c-0.2418 0 -0.4377 -0.19597 -0.4377 -0.4377 0 -0.24174 0.1959 -0.4377 0.4377 -0.4377" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.5036 7.72892c0.2418 0 0.4377 -0.19597 0.4377 -0.4377 0 -0.24174 -0.1959 -0.4377 -0.4377 -0.4377" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12 23.2284c6.2013 0 11.2284 -5.0271 11.2284 -11.2284C23.2284 5.79873 18.2013 0.771606 12 0.771606 5.79873 0.771606 0.771606 5.79873 0.771606 12 0.771606 18.2013 5.79873 23.2284 12 23.2284Z" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M10.1905 17.3204h3.619" stroke-width="2"/></svg>'},4784:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g><path d="m9 23.25 -2.76 -3.11a1.55 1.55 0 1 1 2.32 -2.07l1.94 2.18v-9a1.5 1.5 0 0 1 3 0V18H15a4.49 4.49 0 0 1 4.5 4.5v0.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M17.25 13.57a7.5 7.5 0 1 0 -10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></svg>'},6756:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="laptop--device-laptop-electronics-computer-notebook"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3.08 1.61H10.9136C11.4549 1.61 11.8936 2.0488 11.8936 2.59V7.98H2.1V2.59C2.1 2.002 2.492 1.61 3.08 1.61Z" stroke-width="1"/><path id="Vector 3945" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M0.6957 11.2566L2.1 7.98H11.9L13.3042 11.2566C13.3477 11.3578 13.37 11.4667 13.37 11.5769C13.37 12.0259 13.0059 12.39 12.5569 12.39H1.4431C0.994 12.39 0.63 12.0259 0.63 11.5769C0.63 11.4667 0.6524 11.3578 0.6957 11.2566Z" stroke-width="1"/></g></svg>'},9994:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m9.364 18.5 -0.932 0.932a4.5 4.5 0 0 1 -6.364 -6.364l4.773 -4.774a4.5 4.5 0 0 1 6.825 5.825" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m14.818 5.567 0.75 -0.75a4.5 4.5 0 0 1 6.364 6.364l-4.773 4.773a4.5 4.5 0 0 1 -6.824 -5.826" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3382:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M10.1204 9.06C9.291 8.1272 8.1032 7.5924 6.855 7.59H5.385C1.9902 7.59 -0.1316 11.265 1.5658 14.205C2.3536 15.5695 3.8095 16.41 5.385 16.41H6.855C8.1031 16.4071 9.2907 15.8724 10.1204 14.94" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M13.8796 9.06C14.7089 8.1271 15.8968 7.5923 17.145 7.59H18.615C22.0098 7.59 24.1316 11.265 22.4342 14.205C21.6464 15.5695 20.1905 16.41 18.615 16.41H17.145C15.8969 16.4073 14.7091 15.8726 13.8796 14.94" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M6.855 11.999H17.145" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},8845:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M18.75 9.75H5.25c-0.82843 0 -1.5 0.6716 -1.5 1.5v10.5c0 0.8284 0.67157 1.5 1.5 1.5h13.5c0.8284 0 1.5 -0.6716 1.5 -1.5v-10.5c0 -0.8284 -0.6716 -1.5 -1.5 -1.5Z" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.75 9.75V6c0 -1.39239 0.55312 -2.72774 1.53769 -3.71231C9.27226 1.30312 10.6076 0.75 12 0.75c1.3924 0 2.7277 0.55312 3.7123 1.53769C16.6969 3.27226 17.25 4.60761 17.25 6v3.75" stroke-width="2"/><path stroke="currentColor" d="M12 16.5c-0.2071 0 -0.375 -0.1679 -0.375 -0.375s0.1679 -0.375 0.375 -0.375" stroke-width="2"/><path stroke="currentColor" d="M12 16.5c0.2071 0 0.375 -0.1679 0.375 -0.375s-0.1679 -0.375 -0.375 -0.375" stroke-width="2"/></svg>'},3009:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M13.862 14.942C14.8169 16.2261 16.2839 17.0304 17.88 17.145C21.8406 17.145 24.316 12.8575 22.3357 9.4275C21.4166 7.8356 19.7181 6.855 17.88 6.855C14.205 6.855 12 12 12 12S9.795 17.145 6.12 17.145C2.1594 17.145 -0.316 12.8575 1.6643 9.4275C2.5834 7.8356 4.2819 6.855 6.12 6.855C7.7165 6.9714 9.1833 7.7771 10.138 9.062" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3878:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="vertical-menu--navigation-vertical-three-circle-button-menu-dots"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 3.5c0.82843 0 1.5 -0.67157 1.5 -1.5S7.82843 0.5 7 0.5 5.5 1.17157 5.5 2 6.17157 3.5 7 3.5Z" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 8.5c0.82843 0 1.5 -0.67157 1.5 -1.5S7.82843 5.5 7 5.5 5.5 6.17157 5.5 7 6.17157 8.5 7 8.5Z" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 13.5c0.82843 0 1.5 -0.6716 1.5 -1.5s-0.67157 -1.5 -1.5 -1.5 -1.5 0.6716 -1.5 1.5 0.67157 1.5 1.5 1.5Z" stroke-width="1"/></g></svg>'},5741:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g><path d="M18.75 6.37V4.12a2.25 2.25 0 0 0 -4.5 0V3a2.25 2.25 0 0 0 -4.5 0v1.12a2.25 2.25 0 0 0 -4.5 0V7.5A4.49 4.49 0 0 0 0.75 12a10.54 10.54 0 0 0 2 6.12l1.65 2.3a6.72 6.72 0 0 0 5.49 2.83h5.72a7.68 7.68 0 0 0 7.68 -7.68v-9.2a2.25 2.25 0 0 0 -4.5 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m5.25 7.5 0 3.37" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9.75 6.37 0 -2.25" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m14.25 6.37 0 -2.25" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m18.75 6.37 0 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></svg>'},1236:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M9.25 14.523 23.25 0.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m23.25 8.621 0 -7.871 -8 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12.125 5.75h-10.5a0.875 0.875 0 0 0 -0.875 0.875v15.75a0.875 0.875 0 0 0 0.875 0.875h15.75a0.875 0.875 0 0 0 0.875 -0.875v-10.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},7303:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M0.75 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0 -22.5 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.665 18.75a0.76 0.76 0 0 0 0.744 -0.9 4.5 4.5 0 0 0 -8.818 0 0.759 0.759 0 0 0 0.744 0.9Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m6.75 6.75 3 3 -3.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m17.25 6.75 -3 3 3.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},5886:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M10 21.75a2.087 2.087 0 0 0 4.005 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12 3 0 -2.25" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12 3a7.5 7.5 0 0 1 7.5 7.5c0 7.046 1.5 8.25 1.5 8.25H3s1.5 -1.916 1.5 -8.25A7.5 7.5 0 0 1 12 3Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},896:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M17.625 23.25h-13.5a1.5 1.5 0 0 1 -1.5 -1.5V5.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M21.375 18.159A1.8 1.8 0 0 1 19.625 20H7.375a1.8 1.8 0 0 1 -1.75 -1.841V2.591A1.8 1.8 0 0 1 7.375 0.75h8.9a1.711 1.711 0 0 1 1.238 0.539l3.349 3.524a1.888 1.888 0 0 1 0.513 1.3Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3015:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="phone-landscape--android-phone-mobile-device-smartphone-iphone-landscape"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m13.5 10.5 0 -7c0 -0.55228 -0.4477 -1 -1 -1l-11 0c-0.552285 0 -1 0.44771 -1 1l0 7c0 0.5523 0.447714 1 1 1l11 0c0.5523 0 1 -0.4477 1 -1Z" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m3 6.5 0 1" stroke-width="1"/></g></svg>'},5845:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="phone-mobile-phone--android-phone-mobile-device-smartphone-iphone"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5 0.5h-7c-0.55228 0 -1 0.447715 -1 1v11c0 0.5523 0.44772 1 1 1h7c0.5523 0 1 -0.4477 1 -1v-11c0 -0.552285 -0.4477 -1 -1 -1Z" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.5 11h1" stroke-width="1"/></g></svg>'},4308:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M4.949 8.783a1.5 1.5 0 0 0 -0.3 2.356l8.213 8.213a1.5 1.5 0 0 0 2.356 -0.3 7.522 7.522 0 0 0 0.81 -5.54l6.529 -4.155a1.5 1.5 0 0 0 0.256 -2.326L16.97 1.188a1.5 1.5 0 0 0 -2.326 0.255l-4.155 6.53a7.522 7.522 0 0 0 -5.54 0.81Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.753 15.246 0.75 23.249" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2178:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12 5.251C7.969 5.183 3.8 8 1.179 10.885a1.663 1.663 0 0 0 0 2.226C3.743 15.935 7.9 18.817 12 18.748c4.1 0.069 8.258 -2.813 10.824 -5.637a1.663 1.663 0 0 0 0 -2.226C20.2 8 16.031 5.183 12 5.251Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.75 12A3.75 3.75 0 1 1 12 8.249 3.749 3.749 0 0 1 15.75 12Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},483:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m12 1.498 0 9.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M9 5.011a9 9 0 1 0 6 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},500:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m16.501 11.997 -9 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12.751 8.247 3.75 3.75 -3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M1.501 11.997a10.5 10.5 0 1 0 21 0 10.5 10.5 0 1 0 -21 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},880:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m5.25 14.248 0 4.5 -4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m18.75 9.748 0 -4.5 4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M19.032 5.245A9.752 9.752 0 0 1 8.246 21" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M4.967 18.751A9.753 9.753 0 0 1 15.754 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2409:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M13.5 22a9.75 9.75 0 1 0 -9.75 -9.75V13" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m0.75 9.997 3 3 3 -3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12.75 6.247 0 6.75 5.25 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},5761:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M21.75 23.25H2.25a1.5 1.5 0 0 1 -1.5 -1.5V7.243a3 3 0 0 1 0.879 -2.121l3.492 -3.493A3 3 0 0 1 7.243 0.75H21.75a1.5 1.5 0 0 1 1.5 1.5v19.5a1.5 1.5 0 0 1 -1.5 1.5Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M9.75 12.75a3 3 0 1 0 6 0 3 3 0 1 0 -6 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12.75 20.25 6.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.25 0.75v3a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5 -1.5v-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},7430:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M1.4720451262 13.356970375A9.063 9.063 0 1 0 18.154024235 6.267298379a9.063 9.063 0 1 0 -16.6819791088 7.089671996Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.221 16.22 7.029 7.03" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},830:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M10.546 2.438a1.957 1.957 0 0 0 2.908 0L14.4 1.4a1.959 1.959 0 0 1 3.41 1.413l-0.071 1.4a1.958 1.958 0 0 0 2.051 2.054l1.4 -0.071a1.959 1.959 0 0 1 1.41 3.41l-1.042 0.94a1.96 1.96 0 0 0 0 2.909l1.042 0.94a1.959 1.959 0 0 1 -1.413 3.41l-1.4 -0.071a1.958 1.958 0 0 0 -2.056 2.056l0.071 1.4A1.959 1.959 0 0 1 14.4 22.6l-0.941 -1.041a1.959 1.959 0 0 0 -2.908 0L9.606 22.6A1.959 1.959 0 0 1 6.2 21.192l0.072 -1.4a1.958 1.958 0 0 0 -2.056 -2.056l-1.4 0.071A1.958 1.958 0 0 1 1.4 14.4l1.041 -0.94a1.96 1.96 0 0 0 0 -2.909L1.4 9.606A1.958 1.958 0 0 1 2.809 6.2l1.4 0.071a1.958 1.958 0 0 0 2.058 -2.06L6.2 2.81A1.959 1.959 0 0 1 9.606 1.4Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M7.5 12.001a4.5 4.5 0 1 0 9 0 4.5 4.5 0 1 0 -9 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},7537:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m8.25 23.248 0 -22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m3.75 18.748 4.5 4.5 4.5 -4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.75 14.248h3.6a0.9 0.9 0 0 1 0.836 1.234l-4.372 6.531a0.9 0.9 0 0 0 0.836 1.235h3.6" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M20.25 9.748V3a2.25 2.25 0 0 0 -4.5 0v6.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m15.75 6.748 4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},4785:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="m15.182 8.818 -6.364 6.363" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m8.818 8.818 6.364 6.363" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M3.75 0.75h16.5s3 0 3 3v16.5s0 3 -3 3H3.75s-3 0 -3 -3V3.75s0 -3 3 -3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},4999:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M19.1739 1H4.82609C2.713 1 1 2.713 1 4.82609V19.1739C1 21.287 2.713 23 4.82609 23H19.1739C21.287 23 23 21.287 23 19.1739V4.82609C23 2.713 21.287 1 19.1739 1Z" stroke-width="2"/></svg>'},5131:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 24 24" class="bricks-svg"><g><g><path d="m2.3958333333333335 5.242083333333333 -1.3608333333333333 0.6995833333333333a0.5941666666666667 0.5941666666666667 0 0 0 0 1.0541666666666667l5.75 2.99" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M11.979166666666668 12.151666666666667 21.965000000000003 6.995833333333334a0.5941666666666667 0.5941666666666667 0 0 0 0 -1.0541666666666667L12.180416666666668 0.8816666666666667a1.5045833333333334 1.5045833333333334 0 0 0 -1.3608333333333333 0L5.673333333333334 3.545833333333334" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g><g><path d="m14.652916666666666 15.802916666666667 7.312083333333334 -3.7758333333333334a0.5941666666666667 0.5941666666666667 0 0 0 0 -1.0541666666666667l-3.8333333333333335 -1.9933333333333334" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m4.8875 8.979583333333332 -3.8333333333333335 1.9933333333333334a0.5941666666666667 0.5941666666666667 0 0 0 0 1.0541666666666667l9.784583333333334 5.0600000000000005A1.5141666666666669 1.5141666666666669 0 0 0 11.5 17.25a1.4566666666666668 1.4566666666666668 0 0 0 0.5654166666666667 -0.115" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g><g><path d="m17.326666666666664 19.45416666666667 4.638333333333334 -2.3958333333333335a0.5941666666666667 0.5941666666666667 0 0 0 0 -1.0541666666666667l-3.8333333333333335 -1.98375" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m4.8875 14.020416666666668 -3.8333333333333335 1.98375a0.5941666666666667 0.5941666666666667 0 0 0 0 1.0541666666666667l9.784583333333334 5.0600000000000005a1.5045833333333334 1.5045833333333334 0 0 0 1.3608333333333333 0l1.9166666666666667 -0.9583333333333334" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g><path d="m3.59375 0.71875 15.8125 21.5625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></svg>'},6178:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M22.917 6.2 12.708 0.922a1.543 1.543 0 0 0 -1.416 0L1.083 6.2a0.616 0.616 0 0 0 0 1.094l10.209 5.281a1.543 1.543 0 0 0 1.416 0L22.917 7.3a0.616 0.616 0 0 0 0 -1.094Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m5.1 9.375 -4.017 2.078a0.616 0.616 0 0 0 0 1.094l10.209 5.281a1.543 1.543 0 0 0 1.416 0l10.209 -5.281a0.616 0.616 0 0 0 0 -1.094L18.9 9.375" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M5.1 14.625 1.083 16.7a0.616 0.616 0 0 0 0 1.094l10.209 5.281a1.543 1.543 0 0 0 1.416 0L22.917 17.8a0.616 0.616 0 0 0 0 -1.094L18.9 14.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3084:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="ipad-tablet-screen"><path id="vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.2619 2H1.7381C1.05431 2 0.5 2.53256 0.5 3.18952v7.62098C0.5 11.4674 1.05431 12 1.7381 12h10.5238c0.6838 0 1.2381 -0.5326 1.2381 -1.1895V3.18952C13.5 2.53256 12.9457 2 12.2619 2Z" stroke-width="1"/><path id="vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.33203 9.77588h5.33993" stroke-width="1"/></g></svg>'},4975:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="one-handed-holding-tablet-handheld"><path id="Rectangle 2038" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.64593 1.23658C9.47168 1.089 9.24623 1 9 1H2c-0.55228 0 -1 0.44771 -1 1v9.0938c0 0.5522 0.44772 1 1 1h3.75" stroke-width="1"/><path id="vector 296" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12.3106 13 0.6383 -3.15223c0.0742 -0.36672 0.0675 -0.7452 -0.0197 -1.10906l-0.9088 -3.79119c-0.1682 -0.70134 -0.7013 -1.25797 -1.3954 -1.45681l-0.6221 -0.17821 -0.0002 5.23879c0 0.35407 -0.35839 0.59595 -0.68734 0.46392l-1.6994 -0.68209c-0.3105 -0.12463 -0.66467 -0.06608 -0.91839 0.15183 -0.3824 0.32842 -0.41818 0.90721 -0.07914 1.28012l1.24302 1.36723L8.89958 13" stroke-width="1"/></g></svg>'},975:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="horizontal-toggle-button-single-right"><path id="Vector 3959" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.5 11h-5c-2.20914 0 -4 -1.79086 -4 -4s1.79086 -4 4 -4h5c2.2091 0 4 1.79086 4 4s-1.7909 4 -4 4Z" stroke-width="1"/><path id="Ellipse 1804" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.5 7a2 2 0 1 0 4 0 2 2 0 1 0 -4 0" stroke-width="1"/></g></svg>'},6076:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M3.749 9a8.25 8.25 0 0 1 13.5 -6.364" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M19.687 6a8.23 8.23 0 0 1 0.562 3v6A8.25 8.25 0 0 1 12 23.25a8.336 8.336 0 0 1 -1.5 -0.136" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M6.751 21.365a8.234 8.234 0 0 1 -3 -6.365v-2.25" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.749 15V9a3.75 3.75 0 0 0 -6 -3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.249 9v6a3.753 3.753 0 0 0 5.251 3.438" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m11.999 9.75 0 4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},4201:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="recycle-bin-2--remove-delete-empty-bin-trash-garbage"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1 3.5h12" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.5 3.5h9v9c0 0.2652 -0.1054 0.5196 -0.2929 0.7071s-0.4419 0.2929 -0.7071 0.2929h-7c-0.26522 0 -0.51957 -0.1054 -0.70711 -0.2929C2.60536 13.0196 2.5 12.7652 2.5 12.5v-9Z" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 3.5V3c0 -0.66304 0.26339 -1.29893 0.73223 -1.76777C5.70107 0.763392 6.33696 0.5 7 0.5c0.66304 0 1.29893 0.263392 1.76777 0.73223C9.23661 1.70107 9.5 2.33696 9.5 3v0.5" stroke-width="1"/><path id="Vector_4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.5 6.50146V10.503" stroke-width="1"/><path id="Vector_5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.5 6.50146V10.503" stroke-width="1"/></g></svg>'},4764:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m7.501 11.997 9 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m11.251 15.747 -3.75 -3.75 3.75 -3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M1.501 11.997a10.5 10.5 0 1 0 21 0 10.5 10.5 0 1 0 -21 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},4232:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M16.5 15.749h1.875A3.963 3.963 0 0 0 22.5 12h0a3.962 3.962 0 0 0 -4.125 -3.75H16.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M7.5 15.749H5.625A3.963 3.963 0 0 1 1.5 12h0a3.963 3.963 0 0 1 4.125 -3.75H7.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12 5.249 0 -4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9 5.249 -1.5 -1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m15 5.249 1.5 -1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12 18.749 0 4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9 18.749 -1.5 1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m15 18.749 1.5 1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},3687:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M0.75 9.75V6c0 -1.39239 0.55312 -2.72774 1.53769 -3.71231C3.27226 1.30312 4.60761 0.75 6 0.75c1.39239 0 2.72774 0.55312 3.71231 1.53769C10.6969 3.27226 11.25 4.60761 11.25 6v3.75" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M21.75 9.75H8.25c-0.82843 0 -1.5 0.6716 -1.5 1.5v10.5c0 0.8284 0.67157 1.5 1.5 1.5h13.5c0.8284 0 1.5 -0.6716 1.5 -1.5v-10.5c0 -0.8284 -0.6716 -1.5 -1.5 -1.5Z" stroke-width="2"/><path stroke="currentColor" d="M15 16.5c-0.2071 0 -0.375 -0.1679 -0.375 -0.375s0.1679 -0.375 0.375 -0.375" stroke-width="2"/><path stroke="currentColor" d="M15 16.5c0.2071 0 0.375 -0.1679 0.375 -0.375s-0.1679 -0.375 -0.375 -0.375" stroke-width="2"/></svg>'},1367:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M3.75 5.261h9s3 0 3 3v7.5s0 3 -3 3h-9s-3 0 -3 -3v-7.5s0 -3 3 -3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m18.75 15.011 3.415 1.707a0.75 0.75 0 0 0 1.085 -0.671V7.974a0.749 0.749 0 0 0 -1.085 -0.67L18.75 9.011" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2230:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.79883 15.3555 1.44336 12l3.35547 -3.35547" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M19.2012 8.64453 22.5566 12l-3.3554 3.3555" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M22.5566 12 1.44336 12" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12 22.5566 0 -21.11324" stroke-width="2"/></svg>'},4112:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m0.75 11.998 22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m4.5 8.248 -3.75 3.75 3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m19.5 8.248 3.75 3.75 -3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},2626:function(e){e.exports='<svg fill="currentColor" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64px" height="64px" viewBox="0 0 96.24 96.24" xml:space="preserve" stroke="" class="bricks-svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><g><g><path d="M48.122,0C21.587,0,0.001,21.585,0.001,48.118c0,26.535,21.587,48.122,48.12,48.122c26.532,0,48.117-21.587,48.117-48.122 C96.239,21.586,74.654,0,48.122,0z M4.857,48.118c0-6.271,1.345-12.227,3.746-17.606l20.638,56.544 C14.81,80.042,4.857,65.243,4.857,48.118z M48.122,91.385c-4.247,0-8.346-0.623-12.222-1.763L48.88,51.903l13.301,36.433 c0.086,0.215,0.191,0.411,0.308,0.596C57.992,90.514,53.16,91.385,48.122,91.385z M54.083,27.834 c2.604-0.137,4.953-0.412,4.953-0.412c2.33-0.276,2.057-3.701-0.277-3.564c0,0-7.007,0.549-11.532,0.549 c-4.25,0-11.396-0.549-11.396-0.549c-2.332-0.137-2.604,3.427-0.273,3.564c0,0,2.208,0.275,4.537,0.412l6.74,18.469l-9.468,28.395 L21.615,27.835c2.608-0.136,4.952-0.412,4.952-0.412c2.33-0.275,2.055-3.702-0.278-3.562c0,0-7.004,0.549-11.53,0.549 c-0.813,0-1.77-0.021-2.784-0.052C19.709,12.611,33.008,4.856,48.122,4.856c11.265,0,21.519,4.306,29.215,11.357 c-0.187-0.01-0.368-0.035-0.562-0.035c-4.248,0-7.264,3.702-7.264,7.679c0,3.564,2.055,6.582,4.248,10.146 c1.647,2.882,3.567,6.585,3.567,11.932c0,3.704-1.422,8-3.293,13.986l-4.315,14.421L54.083,27.834z M69.871,85.516l13.215-38.208 c2.471-6.171,3.29-11.106,3.29-15.497c0-1.591-0.104-3.07-0.292-4.449c3.38,6.163,5.303,13.236,5.301,20.758 C91.384,64.08,82.732,78.016,69.871,85.516z"/></g></g></svg>'},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},3685:function(e,t,n){var o={"./add.svg":628,"./arrow-down.svg":38,"./arrow-left.svg":3006,"./arrow-right.svg":7215,"./arrow-up.svg":2303,"./check.svg":215,"./clipboard.svg":8667,"./clone.svg":1791,"./close-box.svg":1851,"./close.svg":1153,"./collapse.svg":1102,"./color.svg":3097,"./columns.svg":2208,"./conditions.svg":4713,"./controls/align-items/baseline-y.svg":8375,"./controls/align-items/baseline.svg":6017,"./controls/align-items/center-y.svg":3140,"./controls/align-items/center.svg":6710,"./controls/align-items/flex-end-y.svg":135,"./controls/align-items/flex-end.svg":5941,"./controls/align-items/flex-start-y.svg":6644,"./controls/align-items/flex-start.svg":9969,"./controls/align-items/stretch-y.svg":1712,"./controls/align-items/stretch.svg":8439,"./controls/direction/column.svg":9467,"./controls/direction/reverse.svg":7217,"./controls/direction/row.svg":268,"./controls/display/block.svg":219,"./controls/display/flex.svg":493,"./controls/display/grid.svg":7122,"./controls/display/inline-block.svg":5946,"./controls/display/inline.svg":8554,"./controls/display/none.svg":2797,"./controls/display/none_.svg":3237,"./controls/justify-content/center-y.svg":951,"./controls/justify-content/center.svg":1326,"./controls/justify-content/flex-end-y.svg":3096,"./controls/justify-content/flex-end.svg":7365,"./controls/justify-content/flex-start-y.svg":2157,"./controls/justify-content/flex-start.svg":9409,"./controls/justify-content/space-around-y.svg":5040,"./controls/justify-content/space-around.svg":7628,"./controls/justify-content/space-between-y.svg":3168,"./controls/justify-content/space-between.svg":980,"./controls/justify-content/space-evenly-y.svg":6184,"./controls/justify-content/space-evenly.svg":2344,"./controls/text-align/center.svg":2466,"./controls/text-align/justify.svg":9458,"./controls/text-align/left.svg":2885,"./controls/text-align/right.svg":6534,"./controls/text-decoration/line-through.svg":2102,"./controls/text-decoration/none.svg":4539,"./controls/text-decoration/overline.svg":6755,"./controls/text-decoration/underline.svg":3369,"./controls/text-transform/capitalize.svg":9504,"./controls/text-transform/lowercase.svg":3266,"./controls/text-transform/none.svg":349,"./controls/text-transform/uppercase.svg":5440,"./css3.svg":7467,"./cursor.svg":2874,"./deprecated.svg":3707,"./desktop-2.svg":6737,"./desktop-3.svg":9142,"./desktop.svg":1841,"./edit.svg":7657,"./equal.svg":3982,"./expand.svg":9937,"./export.svg":5362,"./filter-by.svg":4617,"./filter.svg":647,"./flash.svg":8416,"./folder.svg":4194,"./globe.svg":4933,"./grid.svg":2474,"./heart.svg":4218,"./height.svg":6976,"./help.svg":6523,"./image.svg":764,"./import.svg":9708,"./info.svg":3828,"./info__.svg":8325,"./interactions.svg":4784,"./laptop.svg":6756,"./link-all.svg":9994,"./link.svg":3382,"./locked.svg":8845,"./loop.svg":3009,"./more.svg":3878,"./move.svg":5741,"./new-tab.svg":1236,"./no-results.svg":7303,"./notifications.svg":5886,"./pages.svg":896,"./phone-landscape.svg":3015,"./phone-portrait.svg":5845,"./pin.svg":4308,"./preview.svg":2178,"./publish.svg":483,"./redo.svg":500,"./refresh.svg":880,"./revision.svg":2409,"./save.svg":5761,"./search.svg":7430,"./settings.svg":830,"./sort-a-to-z.svg":7537,"./square-fill.svg":4785,"./square.svg":4999,"./structure-hidden.svg":5131,"./structure.svg":6178,"./tablet-landscape.svg":3084,"./tablet-portrait.svg":4975,"./toggle.svg":975,"./touch-id.svg":6076,"./trash.svg":4201,"./undo.svg":4764,"./unlinked.svg":4232,"./unlocked.svg":3687,"./video.svg":1367,"./width.svg":2230,"./width_.svg":4112,"./wordpress.svg":2626};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=3685}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e].call(r.exports,r,r.exports,o),r.exports}o.m=t,e=[],o.O=function(t,n,i,r){if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],i=e[u][1],r=e[u][2];for(var s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(o.O).every((function(e){return o.O[e](n[l])}))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,i,r]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={3296:0,554:0,5716:0,1082:0,4909:0,14:0,4345:0,1311:0,5899:0,8820:0,9627:0,9370:0,3825:0,4362:0,4941:0,6737:0,3798:0,9596:0,477:0,7021:0,2859:0,9072:0,1446:0,2012:0,578:0,8329:0,425:0,2521:0,1483:0,5524:0,2331:0,2047:0,5646:0,3963:0,3556:0,9492:0,5498:0,7305:0,4536:0,2146:0,7071:0,3258:0,2284:0,2826:0,1494:0,4911:0,1532:0,4984:0,4711:0,7398:0,4774:0,7494:0,5780:0,5763:0,9642:0,9578:0,2828:0,113:0,5904:0,5169:0,3282:0,2264:0,4690:0,6171:0,4493:0,1460:0,653:0,4959:0,9516:0,8931:0,1120:0,2339:0,9223:0,7760:0,406:0,8948:0,3814:0,6353:0,9033:0,4282:0,9002:0,4622:0,7633:0,4862:0,3191:0,6278:0,9942:0,5231:0,2435:0,3867:0,6001:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,r,a=n[0],s=n[1],l=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);if(l)var u=l(o)}for(t&&t(n);c<a.length;c++)r=a[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=self.webpackChunkbricks=self.webpackChunkbricks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2946)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4108)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7468)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2129)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4187)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(999)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1922)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3937)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8763)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4152)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1158)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3111)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8470)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(5926)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4285)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8125)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(5136)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6480)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9539)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4182)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7241)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9599)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1403)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7324)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2453)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7193)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6435)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2591)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4368)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(162)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3057)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6305)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(681)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6625)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(971)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7001)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(5330)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4902)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8025)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4085)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8618)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1107)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3703)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(519)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8180)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7336)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9096)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2447)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3350)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4595)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3765)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3864)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3486)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8759)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(358)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9181)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9583)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8499)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4295)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4290)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4730)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6784)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(98)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6256)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(3174)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1726)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1643)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9830)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1366)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(5779)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6191)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2787)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(4544)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2696)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(5840)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7627)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(760)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8988)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(8290)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7175)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2229)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(1542)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(534)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2839)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(7228)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6903)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(365)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2472)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(9929)})),o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(6162)}));var i=o.O(void 0,[554,5716,1082,4909,14,4345,1311,5899,8820,9627,9370,3825,4362,4941,6737,3798,9596,477,7021,2859,9072,1446,2012,578,8329,425,2521,1483,5524,2331,2047,5646,3963,3556,9492,5498,7305,4536,2146,7071,3258,2284,2826,1494,4911,1532,4984,4711,7398,4774,7494,5780,5763,9642,9578,2828,113,5904,5169,3282,2264,4690,6171,4493,1460,653,4959,9516,8931,1120,2339,9223,7760,406,8948,3814,6353,9033,4282,9002,4622,7633,4862,3191,6278,9942,5231,2435,3867,6001],(function(){return o(2072)}));i=o.O(i)}();