| Current Path : /home/eolienneia/www/templates/yootheme/vendor/yootheme/theme-joomla/app/ |
| Current File : /home/eolienneia/www/templates/yootheme/vendor/yootheme/theme-joomla/app/customizer.min.js |
/*! YOOtheme Pro v2.7.19 | https://yootheme.com */
(function(V,Pn){"use strict";function Dk(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var jk=Dk(Pn);var qn=Object.freeze({});function ze(e){return e==null}function U(e){return e!=null}function _t(e){return e===!0}function Bk(e){return e===!1}function bo(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function Jt(e){return e!==null&&typeof e=="object"}var Js=Object.prototype.toString;function Hk(e){return Js.call(e).slice(8,-1)}function on(e){return Js.call(e)==="[object Object]"}function zk(e){return Js.call(e)==="[object RegExp]"}function hh(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)}function dc(e){return U(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function Wk(e){return e==null?"":Array.isArray(e)||on(e)&&e.toString===Js?JSON.stringify(e,null,2):String(e)}function $o(e){var n=parseFloat(e);return isNaN(n)?e:n}function Ln(e,n){for(var t=Object.create(null),r=e.split(","),o=0;o<r.length;o++)t[r[o]]=!0;return n?function(u){return t[u.toLowerCase()]}:function(u){return t[u]}}Ln("slot,component",!0);var Gk=Ln("key,ref,slot,slot-scope,is");function cr(e,n){if(e.length){var t=e.indexOf(n);if(t>-1)return e.splice(t,1)}}var Kk=Object.prototype.hasOwnProperty;function Xt(e,n){return Kk.call(e,n)}function si(e){var n=Object.create(null);return function(r){var o=n[r];return o||(n[r]=e(r))}}var Uk=/-(\w)/g,li=si(function(e){return e.replace(Uk,function(n,t){return t?t.toUpperCase():""})}),Yk=si(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),qk=/\B([A-Z])/g,ko=si(function(e){return e.replace(qk,"-$1").toLowerCase()});function Jk(e,n){function t(r){var o=arguments.length;return o?o>1?e.apply(n,arguments):e.call(n,r):e.call(n)}return t._length=e.length,t}function Xk(e,n){return e.bind(n)}var Zk=Function.prototype.bind?Xk:Jk;function pc(e,n){n=n||0;for(var t=e.length-n,r=new Array(t);t--;)r[t]=e[t+n];return r}function rt(e,n){for(var t in n)e[t]=n[t];return e}function _h(e){for(var n={},t=0;t<e.length;t++)e[t]&&rt(n,e[t]);return n}function sn(e,n,t){}var Xs=function(e,n,t){return!1},vh=function(e){return e};function ui(e,n){if(e===n)return!0;var t=Jt(e),r=Jt(n);if(t&&r)try{var o=Array.isArray(e),u=Array.isArray(n);if(o&&u)return e.length===n.length&&e.every(function(_,v){return ui(_,n[v])});if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(!o&&!u){var f=Object.keys(e),p=Object.keys(n);return f.length===p.length&&f.every(function(_){return ui(e[_],n[_])})}else return!1}catch{return!1}else return!t&&!r?String(e)===String(n):!1}function mh(e,n){for(var t=0;t<e.length;t++)if(ui(e[t],n))return t;return-1}function Zs(e){var n=!1;return function(){n||(n=!0,e.apply(this,arguments))}}var gh="data-server-rendered",Qs=["component","directive","filter"],yh=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],Sn={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Xs,isReservedAttr:Xs,isUnknownElement:Xs,getTagNamespace:sn,parsePlatformTagName:vh,mustUseProp:Xs,async:!0,_lifecycleHooks:yh},Qk=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Vk(e){var n=(e+"").charCodeAt(0);return n===36||n===95}function Xi(e,n,t,r){Object.defineProperty(e,n,{value:t,enumerable:!!r,writable:!0,configurable:!0})}var ew=new RegExp("[^"+Qk.source+".$_\\d]");function tw(e){if(!ew.test(e)){var n=e.split(".");return function(t){for(var r=0;r<n.length;r++){if(!t)return;t=t[n[r]]}return t}}}var nw="__proto__"in{},mn=typeof window!="undefined",hc=typeof WXEnvironment!="undefined"&&!!WXEnvironment.platform,bh=hc&&WXEnvironment.platform.toLowerCase(),Ht=mn&&window.navigator.userAgent.toLowerCase(),Zi=Ht&&/msie|trident/.test(Ht),Qi=Ht&&Ht.indexOf("msie 9.0")>0,_c=Ht&&Ht.indexOf("edge/")>0;Ht&&Ht.indexOf("android")>0;var rw=Ht&&/iphone|ipad|ipod|ios/.test(Ht)||bh==="ios";Ht&&/chrome\/\d+/.test(Ht),Ht&&/phantomjs/.test(Ht);var $h=Ht&&Ht.match(/firefox\/(\d+)/),vc={}.watch,kh=!1;if(mn)try{var wh={};Object.defineProperty(wh,"passive",{get:function(){kh=!0}}),window.addEventListener("test-passive",null,wh)}catch{}var Vs,el=function(){return Vs===void 0&&(!mn&&!hc&&typeof global!="undefined"?Vs=global.process&&global.process.env.VUE_ENV==="server":Vs=!1),Vs},tl=mn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Vi(e){return typeof e=="function"&&/native code/.test(e.toString())}var nl=typeof Symbol!="undefined"&&Vi(Symbol)&&typeof Reflect!="undefined"&&Vi(Reflect.ownKeys),wo;typeof Set!="undefined"&&Vi(Set)?wo=Set:wo=function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(t){return this.set[t]===!0},e.prototype.add=function(t){this.set[t]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var xh=sn,iw=0,gn=function(){this.id=iw++,this.subs=[]};gn.prototype.addSub=function(n){this.subs.push(n)},gn.prototype.removeSub=function(n){cr(this.subs,n)},gn.prototype.depend=function(){gn.target&&gn.target.addDep(this)},gn.prototype.notify=function(){for(var n=this.subs.slice(),t=0,r=n.length;t<r;t++)n[t].update()},gn.target=null;var rl=[];function xo(e){rl.push(e),gn.target=e}function Co(){rl.pop(),gn.target=rl[rl.length-1]}var ln=function(n,t,r,o,u,f,p,_){this.tag=n,this.data=t,this.children=r,this.text=o,this.elm=u,this.ns=void 0,this.context=f,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=p,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=_,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ch={child:{configurable:!0}};Ch.child.get=function(){return this.componentInstance},Object.defineProperties(ln.prototype,Ch);var ci=function(e){e===void 0&&(e="");var n=new ln;return n.text=e,n.isComment=!0,n};function ea(e){return new ln(void 0,void 0,void 0,String(e))}function mc(e){var n=new ln(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return n.ns=e.ns,n.isStatic=e.isStatic,n.key=e.key,n.isComment=e.isComment,n.fnContext=e.fnContext,n.fnOptions=e.fnOptions,n.fnScopeId=e.fnScopeId,n.asyncMeta=e.asyncMeta,n.isCloned=!0,n}var Sh=Array.prototype,il=Object.create(Sh),aw=["push","pop","shift","unshift","splice","sort","reverse"];aw.forEach(function(e){var n=Sh[e];Xi(il,e,function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];var u=n.apply(this,r),f=this.__ob__,p;switch(e){case"push":case"unshift":p=r;break;case"splice":p=r.slice(2);break}return p&&f.observeArray(p),f.dep.notify(),u})});var ow=Object.getOwnPropertyNames(il),gc=!0;function Dr(e){gc=e}var al=function(n){this.value=n,this.dep=new gn,this.vmCount=0,Xi(n,"__ob__",this),Array.isArray(n)?(nw?sw(n,il):lw(n,il,ow),this.observeArray(n)):this.walk(n)};al.prototype.walk=function(n){for(var t=Object.keys(n),r=0;r<t.length;r++)di(n,t[r])},al.prototype.observeArray=function(n){for(var t=0,r=n.length;t<r;t++)fi(n[t])};function sw(e,n){e.__proto__=n}function lw(e,n,t){for(var r=0,o=t.length;r<o;r++){var u=t[r];Xi(e,u,n[u])}}function fi(e,n){if(!(!Jt(e)||e instanceof ln)){var t;return Xt(e,"__ob__")&&e.__ob__ instanceof al?t=e.__ob__:gc&&!el()&&(Array.isArray(e)||on(e))&&Object.isExtensible(e)&&!e._isVue&&(t=new al(e)),n&&t&&t.vmCount++,t}}function di(e,n,t,r,o){var u=new gn,f=Object.getOwnPropertyDescriptor(e,n);if(!(f&&f.configurable===!1)){var p=f&&f.get,_=f&&f.set;(!p||_)&&arguments.length===2&&(t=e[n]);var v=!o&&fi(t);Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var w=p?p.call(e):t;return gn.target&&(u.depend(),v&&(v.dep.depend(),Array.isArray(w)&&Th(w))),w},set:function(w){var x=p?p.call(e):t;w===x||w!==w&&x!==x||p&&!_||(_?_.call(e,w):t=w,v=!o&&fi(w),u.notify())}})}}function yc(e,n,t){if(Array.isArray(e)&&hh(n))return e.length=Math.max(e.length,n),e.splice(n,1,t),t;if(n in e&&!(n in Object.prototype))return e[n]=t,t;var r=e.__ob__;return e._isVue||r&&r.vmCount?t:r?(di(r.value,n,t),r.dep.notify(),t):(e[n]=t,t)}function Ah(e,n){if(Array.isArray(e)&&hh(n)){e.splice(n,1);return}var t=e.__ob__;e._isVue||t&&t.vmCount||!Xt(e,n)||(delete e[n],!!t&&t.dep.notify())}function Th(e){for(var n=void 0,t=0,r=e.length;t<r;t++)n=e[t],n&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&Th(n)}var Jn=Sn.optionMergeStrategies;function bc(e,n){if(!n)return e;for(var t,r,o,u=nl?Reflect.ownKeys(n):Object.keys(n),f=0;f<u.length;f++)t=u[f],t!=="__ob__"&&(r=e[t],o=n[t],Xt(e,t)?r!==o&&on(r)&&on(o)&&bc(r,o):yc(e,t,o));return e}function $c(e,n,t){return t?function(){var o=typeof n=="function"?n.call(t,t):n,u=typeof e=="function"?e.call(t,t):e;return o?bc(o,u):u}:n?e?function(){return bc(typeof n=="function"?n.call(this,this):n,typeof e=="function"?e.call(this,this):e)}:n:e}Jn.data=function(e,n,t){return t?$c(e,n,t):n&&typeof n!="function"?e:$c(e,n)};function uw(e,n){var t=n?e?e.concat(n):Array.isArray(n)?n:[n]:e;return t&&cw(t)}function cw(e){for(var n=[],t=0;t<e.length;t++)n.indexOf(e[t])===-1&&n.push(e[t]);return n}yh.forEach(function(e){Jn[e]=uw});function fw(e,n,t,r){var o=Object.create(e||null);return n?rt(o,n):o}Qs.forEach(function(e){Jn[e+"s"]=fw}),Jn.watch=function(e,n,t,r){if(e===vc&&(e=void 0),n===vc&&(n=void 0),!n)return Object.create(e||null);if(!e)return n;var o={};rt(o,e);for(var u in n){var f=o[u],p=n[u];f&&!Array.isArray(f)&&(f=[f]),o[u]=f?f.concat(p):Array.isArray(p)?p:[p]}return o},Jn.props=Jn.methods=Jn.inject=Jn.computed=function(e,n,t,r){if(!e)return n;var o=Object.create(null);return rt(o,e),n&&rt(o,n),o},Jn.provide=$c;var dw=function(e,n){return n===void 0?e:n};function pw(e,n){var t=e.props;if(!!t){var r={},o,u,f;if(Array.isArray(t))for(o=t.length;o--;)u=t[o],typeof u=="string"&&(f=li(u),r[f]={type:null});else if(on(t))for(var p in t)u=t[p],f=li(p),r[f]=on(u)?u:{type:u};e.props=r}}function hw(e,n){var t=e.inject;if(!!t){var r=e.inject={};if(Array.isArray(t))for(var o=0;o<t.length;o++)r[t[o]]={from:t[o]};else if(on(t))for(var u in t){var f=t[u];r[u]=on(f)?rt({from:u},f):{from:f}}}}function _w(e){var n=e.directives;if(n)for(var t in n){var r=n[t];typeof r=="function"&&(n[t]={bind:r,update:r})}}function oX(e,n,t){on(n)||xh('Invalid value for option "'+e+'": expected an Object, but got '+Hk(n)+".")}function pi(e,n,t){if(typeof n=="function"&&(n=n.options),pw(n),hw(n),_w(n),!n._base&&(n.extends&&(e=pi(e,n.extends,t)),n.mixins))for(var r=0,o=n.mixins.length;r<o;r++)e=pi(e,n.mixins[r],t);var u={},f;for(f in e)p(f);for(f in n)Xt(e,f)||p(f);function p(_){var v=Jn[_]||dw;u[_]=v(e[_],n[_],t,_)}return u}function kc(e,n,t,r){if(typeof t=="string"){var o=e[n];if(Xt(o,t))return o[t];var u=li(t);if(Xt(o,u))return o[u];var f=Yk(u);if(Xt(o,f))return o[f];var p=o[t]||o[u]||o[f];return p}}function wc(e,n,t,r){var o=n[e],u=!Xt(t,e),f=t[e],p=Eh(Boolean,o.type);if(p>-1){if(u&&!Xt(o,"default"))f=!1;else if(f===""||f===ko(e)){var _=Eh(String,o.type);(_<0||p<_)&&(f=!0)}}if(f===void 0){f=vw(r,o,e);var v=gc;Dr(!0),fi(f),Dr(v)}return f}function vw(e,n,t){if(!!Xt(n,"default")){var r=n.default;return e&&e.$options.propsData&&e.$options.propsData[t]===void 0&&e._props[t]!==void 0?e._props[t]:typeof r=="function"&&xc(n.type)!=="Function"?r.call(e):r}}var mw=/^\s*function (\w+)/;function xc(e){var n=e&&e.toString().match(mw);return n?n[1]:""}function Oh(e,n){return xc(e)===xc(n)}function Eh(e,n){if(!Array.isArray(n))return Oh(n,e)?0:-1;for(var t=0,r=n.length;t<r;t++)if(Oh(n[t],e))return t;return-1}function hi(e,n,t){xo();try{if(n)for(var r=n;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var u=0;u<o.length;u++)try{var f=o[u].call(r,e,n,t)===!1;if(f)return}catch(p){Fh(p,r,"errorCaptured hook")}}Fh(e,n,t)}finally{Co()}}function ta(e,n,t,r,o){var u;try{u=t?e.apply(n,t):e.call(n),u&&!u._isVue&&dc(u)&&!u._handled&&(u.catch(function(f){return hi(f,r,o+" (Promise/async)")}),u._handled=!0)}catch(f){hi(f,r,o)}return u}function Fh(e,n,t){if(Sn.errorHandler)try{return Sn.errorHandler.call(null,e,n,t)}catch(r){r!==e&&Mh(r)}Mh(e)}function Mh(e,n,t){if((mn||hc)&&typeof console!="undefined")console.error(e);else throw e}var Cc=!1,Sc=[],Ac=!1;function ol(){Ac=!1;var e=Sc.slice(0);Sc.length=0;for(var n=0;n<e.length;n++)e[n]()}var So;if(typeof Promise!="undefined"&&Vi(Promise)){var gw=Promise.resolve();So=function(){gw.then(ol),rw&&setTimeout(sn)},Cc=!0}else if(!Zi&&typeof MutationObserver!="undefined"&&(Vi(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var sl=1,yw=new MutationObserver(ol),Ph=document.createTextNode(String(sl));yw.observe(Ph,{characterData:!0}),So=function(){sl=(sl+1)%2,Ph.data=String(sl)},Cc=!0}else typeof setImmediate!="undefined"&&Vi(setImmediate)?So=function(){setImmediate(ol)}:So=function(){setTimeout(ol,0)};function Tc(e,n){var t;if(Sc.push(function(){if(e)try{e.call(n)}catch(r){hi(r,n,"nextTick")}else t&&t(n)}),Ac||(Ac=!0,So()),!e&&typeof Promise!="undefined")return new Promise(function(r){t=r})}var Lh=new wo;function ll(e){Oc(e,Lh),Lh.clear()}function Oc(e,n){var t,r,o=Array.isArray(e);if(!(!o&&!Jt(e)||Object.isFrozen(e)||e instanceof ln)){if(e.__ob__){var u=e.__ob__.dep.id;if(n.has(u))return;n.add(u)}if(o)for(t=e.length;t--;)Oc(e[t],n);else for(r=Object.keys(e),t=r.length;t--;)Oc(e[r[t]],n)}}var Nh=si(function(e){var n=e.charAt(0)==="&";e=n?e.slice(1):e;var t=e.charAt(0)==="~";e=t?e.slice(1):e;var r=e.charAt(0)==="!";return e=r?e.slice(1):e,{name:e,once:t,capture:r,passive:n}});function Ec(e,n){function t(){var r=arguments,o=t.fns;if(Array.isArray(o))for(var u=o.slice(),f=0;f<u.length;f++)ta(u[f],null,r,n,"v-on handler");else return ta(o,null,arguments,n,"v-on handler")}return t.fns=e,t}function Rh(e,n,t,r,o,u){var f,p,_,v;for(f in e)p=e[f],_=n[f],v=Nh(f),ze(p)||(ze(_)?(ze(p.fns)&&(p=e[f]=Ec(p,u)),_t(v.once)&&(p=e[f]=o(v.name,p,v.capture)),t(v.name,p,v.capture,v.passive,v.params)):p!==_&&(_.fns=p,e[f]=_));for(f in n)ze(e[f])&&(v=Nh(f),r(v.name,n[f],v.capture))}function jr(e,n,t){e instanceof ln&&(e=e.data.hook||(e.data.hook={}));var r,o=e[n];function u(){t.apply(this,arguments),cr(r.fns,u)}ze(o)?r=Ec([u]):U(o.fns)&&_t(o.merged)?(r=o,r.fns.push(u)):r=Ec([o,u]),r.merged=!0,e[n]=r}function bw(e,n,t){var r=n.options.props;if(!ze(r)){var o={},u=e.attrs,f=e.props;if(U(u)||U(f))for(var p in r){var _=ko(p);Ih(o,f,p,_,!0)||Ih(o,u,p,_,!1)}return o}}function Ih(e,n,t,r,o){if(U(n)){if(Xt(n,t))return e[t]=n[t],o||delete n[t],!0;if(Xt(n,r))return e[t]=n[r],o||delete n[r],!0}return!1}function $w(e){for(var n=0;n<e.length;n++)if(Array.isArray(e[n]))return Array.prototype.concat.apply([],e);return e}function Fc(e){return bo(e)?[ea(e)]:Array.isArray(e)?Dh(e):void 0}function Ao(e){return U(e)&&U(e.text)&&Bk(e.isComment)}function Dh(e,n){var t=[],r,o,u,f;for(r=0;r<e.length;r++)o=e[r],!(ze(o)||typeof o=="boolean")&&(u=t.length-1,f=t[u],Array.isArray(o)?o.length>0&&(o=Dh(o,(n||"")+"_"+r),Ao(o[0])&&Ao(f)&&(t[u]=ea(f.text+o[0].text),o.shift()),t.push.apply(t,o)):bo(o)?Ao(f)?t[u]=ea(f.text+o):o!==""&&t.push(ea(o)):Ao(o)&&Ao(f)?t[u]=ea(f.text+o.text):(_t(e._isVList)&&U(o.tag)&&ze(o.key)&&U(n)&&(o.key="__vlist"+n+"_"+r+"__"),t.push(o)));return t}function kw(e){var n=e.$options.provide;n&&(e._provided=typeof n=="function"?n.call(e):n)}function ww(e){var n=jh(e.$options.inject,e);n&&(Dr(!1),Object.keys(n).forEach(function(t){di(e,t,n[t])}),Dr(!0))}function jh(e,n){if(e){for(var t=Object.create(null),r=nl?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++){var u=r[o];if(u!=="__ob__"){for(var f=e[u].from,p=n;p;){if(p._provided&&Xt(p._provided,f)){t[u]=p._provided[f];break}p=p.$parent}if(!p&&"default"in e[u]){var _=e[u].default;t[u]=typeof _=="function"?_.call(n):_}}}return t}}function Mc(e,n){if(!e||!e.length)return{};for(var t={},r=0,o=e.length;r<o;r++){var u=e[r],f=u.data;if(f&&f.attrs&&f.attrs.slot&&delete f.attrs.slot,(u.context===n||u.fnContext===n)&&f&&f.slot!=null){var p=f.slot,_=t[p]||(t[p]=[]);u.tag==="template"?_.push.apply(_,u.children||[]):_.push(u)}else(t.default||(t.default=[])).push(u)}for(var v in t)t[v].every(xw)&&delete t[v];return t}function xw(e){return e.isComment&&!e.asyncFactory||e.text===" "}function To(e){return e.isComment&&e.asyncFactory}function ul(e,n,t){var r,o=Object.keys(n).length>0,u=e?!!e.$stable:!o,f=e&&e.$key;if(!e)r={};else{if(e._normalized)return e._normalized;if(u&&t&&t!==qn&&f===t.$key&&!o&&!t.$hasNormal)return t;r={};for(var p in e)e[p]&&p[0]!=="$"&&(r[p]=Cw(n,p,e[p]))}for(var _ in n)_ in r||(r[_]=Sw(n,_));return e&&Object.isExtensible(e)&&(e._normalized=r),Xi(r,"$stable",u),Xi(r,"$key",f),Xi(r,"$hasNormal",o),r}function Cw(e,n,t){var r=function(){var o=arguments.length?t.apply(null,arguments):t({});o=o&&typeof o=="object"&&!Array.isArray(o)?[o]:Fc(o);var u=o&&o[0];return o&&(!u||o.length===1&&u.isComment&&!To(u))?void 0:o};return t.proxy&&Object.defineProperty(e,n,{get:r,enumerable:!0,configurable:!0}),r}function Sw(e,n){return function(){return e[n]}}function Aw(e,n){var t,r,o,u,f;if(Array.isArray(e)||typeof e=="string")for(t=new Array(e.length),r=0,o=e.length;r<o;r++)t[r]=n(e[r],r);else if(typeof e=="number")for(t=new Array(e),r=0;r<e;r++)t[r]=n(r+1,r);else if(Jt(e))if(nl&&e[Symbol.iterator]){t=[];for(var p=e[Symbol.iterator](),_=p.next();!_.done;)t.push(n(_.value,t.length)),_=p.next()}else for(u=Object.keys(e),t=new Array(u.length),r=0,o=u.length;r<o;r++)f=u[r],t[r]=n(e[f],f,r);return U(t)||(t=[]),t._isVList=!0,t}function Tw(e,n,t,r){var o=this.$scopedSlots[e],u;o?(t=t||{},r&&(t=rt(rt({},r),t)),u=o(t)||(typeof n=="function"?n():n)):u=this.$slots[e]||(typeof n=="function"?n():n);var f=t&&t.slot;return f?this.$createElement("template",{slot:f},u):u}function Ow(e){return kc(this.$options,"filters",e)||vh}function Bh(e,n){return Array.isArray(e)?e.indexOf(n)===-1:e!==n}function Ew(e,n,t,r,o){var u=Sn.keyCodes[n]||t;return o&&r&&!Sn.keyCodes[n]?Bh(o,r):u?Bh(u,e):r?ko(r)!==n:e===void 0}function Fw(e,n,t,r,o){if(t&&Jt(t)){Array.isArray(t)&&(t=_h(t));var u,f=function(_){if(_==="class"||_==="style"||Gk(_))u=e;else{var v=e.attrs&&e.attrs.type;u=r||Sn.mustUseProp(n,v,_)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var k=li(_),w=ko(_);if(!(k in u)&&!(w in u)&&(u[_]=t[_],o)){var x=e.on||(e.on={});x["update:"+_]=function(M){t[_]=M}}};for(var p in t)f(p)}return e}function Mw(e,n){var t=this._staticTrees||(this._staticTrees=[]),r=t[e];return r&&!n||(r=t[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Hh(r,"__static__"+e,!1)),r}function Pw(e,n,t){return Hh(e,"__once__"+n+(t?"_"+t:""),!0),e}function Hh(e,n,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&typeof e[r]!="string"&&zh(e[r],n+"_"+r,t);else zh(e,n,t)}function zh(e,n,t){e.isStatic=!0,e.key=n,e.isOnce=t}function Lw(e,n){if(n&&on(n)){var t=e.on=e.on?rt({},e.on):{};for(var r in n){var o=t[r],u=n[r];t[r]=o?[].concat(o,u):u}}return e}function Wh(e,n,t,r){n=n||{$stable:!t};for(var o=0;o<e.length;o++){var u=e[o];Array.isArray(u)?Wh(u,n,t):u&&(u.proxy&&(u.fn.proxy=!0),n[u.key]=u.fn)}return r&&(n.$key=r),n}function Nw(e,n){for(var t=0;t<n.length;t+=2){var r=n[t];typeof r=="string"&&r&&(e[n[t]]=n[t+1])}return e}function Rw(e,n){return typeof e=="string"?n+e:e}function Gh(e){e._o=Pw,e._n=$o,e._s=Wk,e._l=Aw,e._t=Tw,e._q=ui,e._i=mh,e._m=Mw,e._f=Ow,e._k=Ew,e._b=Fw,e._v=ea,e._e=ci,e._u=Wh,e._g=Lw,e._d=Nw,e._p=Rw}function Pc(e,n,t,r,o){var u=this,f=o.options,p;Xt(r,"_uid")?(p=Object.create(r),p._original=r):(p=r,r=r._original);var _=_t(f._compiled),v=!_;this.data=e,this.props=n,this.children=t,this.parent=r,this.listeners=e.on||qn,this.injections=jh(f.inject,r),this.slots=function(){return u.$slots||ul(e.scopedSlots,u.$slots=Mc(t,r)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ul(e.scopedSlots,this.slots())}}),_&&(this.$options=f,this.$slots=this.slots(),this.$scopedSlots=ul(e.scopedSlots,this.$slots)),f._scopeId?this._c=function(k,w,x,M){var z=cl(p,k,w,x,M,v);return z&&!Array.isArray(z)&&(z.fnScopeId=f._scopeId,z.fnContext=r),z}:this._c=function(k,w,x,M){return cl(p,k,w,x,M,v)}}Gh(Pc.prototype);function Iw(e,n,t,r,o){var u=e.options,f={},p=u.props;if(U(p))for(var _ in p)f[_]=wc(_,p,n||qn);else U(t.attrs)&&Uh(f,t.attrs),U(t.props)&&Uh(f,t.props);var v=new Pc(t,f,o,r,e),k=u.render.call(null,v._c,v);if(k instanceof ln)return Kh(k,t,v.parent,u);if(Array.isArray(k)){for(var w=Fc(k)||[],x=new Array(w.length),M=0;M<w.length;M++)x[M]=Kh(w[M],t,v.parent,u);return x}}function Kh(e,n,t,r,o){var u=mc(e);return u.fnContext=t,u.fnOptions=r,n.slot&&((u.data||(u.data={})).slot=n.slot),u}function Uh(e,n){for(var t in n)e[li(t)]=n[t]}var Lc={init:function(n,t){if(n.componentInstance&&!n.componentInstance._isDestroyed&&n.data.keepAlive){var r=n;Lc.prepatch(r,r)}else{var o=n.componentInstance=Dw(n,_i);o.$mount(t?n.elm:void 0,t)}},prepatch:function(n,t){var r=t.componentOptions,o=t.componentInstance=n.componentInstance;rx(o,r.propsData,r.listeners,t,r.children)},insert:function(n){var t=n.context,r=n.componentInstance;r._isMounted||(r._isMounted=!0,Nn(r,"mounted")),n.data.keepAlive&&(t._isMounted?sx(r):Ic(r,!0))},destroy:function(n){var t=n.componentInstance;t._isDestroyed||(n.data.keepAlive?t_(t,!0):t.$destroy())}},Yh=Object.keys(Lc);function qh(e,n,t,r,o){if(!ze(e)){var u=t.$options._base;if(Jt(e)&&(e=u.extend(e)),typeof e=="function"){var f;if(ze(e.cid)&&(f=e,e=qw(f,u),e===void 0))return Yw(f,n,t,r,o);n=n||{},Kc(e),U(n.model)&&Hw(e.options,n);var p=bw(n,e);if(_t(e.options.functional))return Iw(e,p,n,t,r);var _=n.on;if(n.on=n.nativeOn,_t(e.options.abstract)){var v=n.slot;n={},v&&(n.slot=v)}jw(n);var k=e.options.name||o,w=new ln("vue-component-"+e.cid+(k?"-"+k:""),n,void 0,void 0,void 0,t,{Ctor:e,propsData:p,listeners:_,tag:o,children:r},f);return w}}}function Dw(e,n){var t={_isComponent:!0,_parentVnode:e,parent:n},r=e.data.inlineTemplate;return U(r)&&(t.render=r.render,t.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(t)}function jw(e){for(var n=e.hook||(e.hook={}),t=0;t<Yh.length;t++){var r=Yh[t],o=n[r],u=Lc[r];o!==u&&!(o&&o._merged)&&(n[r]=o?Bw(u,o):u)}}function Bw(e,n){var t=function(r,o){e(r,o),n(r,o)};return t._merged=!0,t}function Hw(e,n){var t=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(n.attrs||(n.attrs={}))[t]=n.model.value;var o=n.on||(n.on={}),u=o[r],f=n.model.callback;U(u)?(Array.isArray(u)?u.indexOf(f)===-1:u!==f)&&(o[r]=[f].concat(u)):o[r]=f}var zw=1,Jh=2;function cl(e,n,t,r,o,u){return(Array.isArray(t)||bo(t))&&(o=r,r=t,t=void 0),_t(u)&&(o=Jh),Ww(e,n,t,r,o)}function Ww(e,n,t,r,o){if(U(t)&&U(t.__ob__)||(U(t)&&U(t.is)&&(n=t.is),!n))return ci();Array.isArray(r)&&typeof r[0]=="function"&&(t=t||{},t.scopedSlots={default:r[0]},r.length=0),o===Jh?r=Fc(r):o===zw&&(r=$w(r));var u,f;if(typeof n=="string"){var p;f=e.$vnode&&e.$vnode.ns||Sn.getTagNamespace(n),Sn.isReservedTag(n)?u=new ln(Sn.parsePlatformTagName(n),t,r,void 0,void 0,e):(!t||!t.pre)&&U(p=kc(e.$options,"components",n))?u=qh(p,t,e,r,n):u=new ln(n,t,r,void 0,void 0,e)}else u=qh(n,t,e,r);return Array.isArray(u)?u:U(u)?(U(f)&&Xh(u,f),U(t)&&Gw(t),u):ci()}function Xh(e,n,t){if(e.ns=n,e.tag==="foreignObject"&&(n=void 0,t=!0),U(e.children))for(var r=0,o=e.children.length;r<o;r++){var u=e.children[r];U(u.tag)&&(ze(u.ns)||_t(t)&&u.tag!=="svg")&&Xh(u,n,t)}}function Gw(e){Jt(e.style)&&ll(e.style),Jt(e.class)&&ll(e.class)}function Kw(e){e._vnode=null,e._staticTrees=null;var n=e.$options,t=e.$vnode=n._parentVnode,r=t&&t.context;e.$slots=Mc(n._renderChildren,r),e.$scopedSlots=qn,e._c=function(u,f,p,_){return cl(e,u,f,p,_,!1)},e.$createElement=function(u,f,p,_){return cl(e,u,f,p,_,!0)};var o=t&&t.data;di(e,"$attrs",o&&o.attrs||qn,null,!0),di(e,"$listeners",n._parentListeners||qn,null,!0)}var Nc=null;function Uw(e){Gh(e.prototype),e.prototype.$nextTick=function(n){return Tc(n,this)},e.prototype._render=function(){var n=this,t=n.$options,r=t.render,o=t._parentVnode;o&&(n.$scopedSlots=ul(o.data.scopedSlots,n.$slots,n.$scopedSlots)),n.$vnode=o;var u;try{Nc=n,u=r.call(n._renderProxy,n.$createElement)}catch(f){hi(f,n,"render"),u=n._vnode}finally{Nc=null}return Array.isArray(u)&&u.length===1&&(u=u[0]),u instanceof ln||(u=ci()),u.parent=o,u}}function Rc(e,n){return(e.__esModule||nl&&e[Symbol.toStringTag]==="Module")&&(e=e.default),Jt(e)?n.extend(e):e}function Yw(e,n,t,r,o){var u=ci();return u.asyncFactory=e,u.asyncMeta={data:n,context:t,children:r,tag:o},u}function qw(e,n){if(_t(e.error)&&U(e.errorComp))return e.errorComp;if(U(e.resolved))return e.resolved;var t=Nc;if(t&&U(e.owners)&&e.owners.indexOf(t)===-1&&e.owners.push(t),_t(e.loading)&&U(e.loadingComp))return e.loadingComp;if(t&&!U(e.owners)){var r=e.owners=[t],o=!0,u=null,f=null;t.$on("hook:destroyed",function(){return cr(r,t)});var p=function(w){for(var x=0,M=r.length;x<M;x++)r[x].$forceUpdate();w&&(r.length=0,u!==null&&(clearTimeout(u),u=null),f!==null&&(clearTimeout(f),f=null))},_=Zs(function(w){e.resolved=Rc(w,n),o?r.length=0:p(!0)}),v=Zs(function(w){U(e.errorComp)&&(e.error=!0,p(!0))}),k=e(_,v);return Jt(k)&&(dc(k)?ze(e.resolved)&&k.then(_,v):dc(k.component)&&(k.component.then(_,v),U(k.error)&&(e.errorComp=Rc(k.error,n)),U(k.loading)&&(e.loadingComp=Rc(k.loading,n),k.delay===0?e.loading=!0:u=setTimeout(function(){u=null,ze(e.resolved)&&ze(e.error)&&(e.loading=!0,p(!1))},k.delay||200)),U(k.timeout)&&(f=setTimeout(function(){f=null,ze(e.resolved)&&v(null)},k.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}function Zh(e){if(Array.isArray(e))for(var n=0;n<e.length;n++){var t=e[n];if(U(t)&&(U(t.componentOptions)||To(t)))return t}}function Jw(e){e._events=Object.create(null),e._hasHookEvent=!1;var n=e.$options._parentListeners;n&&Qh(e,n)}var Oo;function Xw(e,n){Oo.$on(e,n)}function Zw(e,n){Oo.$off(e,n)}function Qw(e,n){var t=Oo;return function r(){var o=n.apply(null,arguments);o!==null&&t.$off(e,r)}}function Qh(e,n,t){Oo=e,Rh(n,t||{},Xw,Zw,Qw,e),Oo=void 0}function Vw(e){var n=/^hook:/;e.prototype.$on=function(t,r){var o=this;if(Array.isArray(t))for(var u=0,f=t.length;u<f;u++)o.$on(t[u],r);else(o._events[t]||(o._events[t]=[])).push(r),n.test(t)&&(o._hasHookEvent=!0);return o},e.prototype.$once=function(t,r){var o=this;function u(){o.$off(t,u),r.apply(o,arguments)}return u.fn=r,o.$on(t,u),o},e.prototype.$off=function(t,r){var o=this;if(!arguments.length)return o._events=Object.create(null),o;if(Array.isArray(t)){for(var u=0,f=t.length;u<f;u++)o.$off(t[u],r);return o}var p=o._events[t];if(!p)return o;if(!r)return o._events[t]=null,o;for(var _,v=p.length;v--;)if(_=p[v],_===r||_.fn===r){p.splice(v,1);break}return o},e.prototype.$emit=function(t){var r=this,o=r._events[t];if(o){o=o.length>1?pc(o):o;for(var u=pc(arguments,1),f='event handler for "'+t+'"',p=0,_=o.length;p<_;p++)ta(o[p],r,u,r,f)}return r}}var _i=null;function Vh(e){var n=_i;return _i=e,function(){_i=n}}function ex(e){var n=e.$options,t=n.parent;if(t&&!n.abstract){for(;t.$options.abstract&&t.$parent;)t=t.$parent;t.$children.push(e)}e.$parent=t,e.$root=t?t.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function tx(e){e.prototype._update=function(n,t){var r=this,o=r.$el,u=r._vnode,f=Vh(r);r._vnode=n,u?r.$el=r.__patch__(u,n):r.$el=r.__patch__(r.$el,n,t,!1),f(),o&&(o.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},e.prototype.$forceUpdate=function(){var n=this;n._watcher&&n._watcher.update()},e.prototype.$destroy=function(){var n=this;if(!n._isBeingDestroyed){Nn(n,"beforeDestroy"),n._isBeingDestroyed=!0;var t=n.$parent;t&&!t._isBeingDestroyed&&!n.$options.abstract&&cr(t.$children,n),n._watcher&&n._watcher.teardown();for(var r=n._watchers.length;r--;)n._watchers[r].teardown();n._data.__ob__&&n._data.__ob__.vmCount--,n._isDestroyed=!0,n.__patch__(n._vnode,null),Nn(n,"destroyed"),n.$off(),n.$el&&(n.$el.__vue__=null),n.$vnode&&(n.$vnode.parent=null)}}}function nx(e,n,t){e.$el=n,e.$options.render||(e.$options.render=ci),Nn(e,"beforeMount");var r;return r=function(){e._update(e._render(),t)},new Rn(e,r,sn,{before:function(){e._isMounted&&!e._isDestroyed&&Nn(e,"beforeUpdate")}},!0),t=!1,e.$vnode==null&&(e._isMounted=!0,Nn(e,"mounted")),e}function rx(e,n,t,r,o){var u=r.data.scopedSlots,f=e.$scopedSlots,p=!!(u&&!u.$stable||f!==qn&&!f.$stable||u&&e.$scopedSlots.$key!==u.$key||!u&&e.$scopedSlots.$key),_=!!(o||e.$options._renderChildren||p);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data.attrs||qn,e.$listeners=t||qn,n&&e.$options.props){Dr(!1);for(var v=e._props,k=e.$options._propKeys||[],w=0;w<k.length;w++){var x=k[w],M=e.$options.props;v[x]=wc(x,M,n,e)}Dr(!0),e.$options.propsData=n}t=t||qn;var z=e.$options._parentListeners;e.$options._parentListeners=t,Qh(e,t,z),_&&(e.$slots=Mc(o,r.context),e.$forceUpdate())}function e_(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Ic(e,n){if(n){if(e._directInactive=!1,e_(e))return}else if(e._directInactive)return;if(e._inactive||e._inactive===null){e._inactive=!1;for(var t=0;t<e.$children.length;t++)Ic(e.$children[t]);Nn(e,"activated")}}function t_(e,n){if(!(n&&(e._directInactive=!0,e_(e)))&&!e._inactive){e._inactive=!0;for(var t=0;t<e.$children.length;t++)t_(e.$children[t]);Nn(e,"deactivated")}}function Nn(e,n){xo();var t=e.$options[n],r=n+" hook";if(t)for(var o=0,u=t.length;o<u;o++)ta(t[o],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+n),Co()}var fr=[],Dc=[],fl={},jc=!1,Bc=!1,na=0;function ix(){na=fr.length=Dc.length=0,fl={},jc=Bc=!1}var n_=0,Hc=Date.now;if(mn&&!Zi){var zc=window.performance;zc&&typeof zc.now=="function"&&Hc()>document.createEvent("Event").timeStamp&&(Hc=function(){return zc.now()})}function ax(){n_=Hc(),Bc=!0;var e,n;for(fr.sort(function(o,u){return o.id-u.id}),na=0;na<fr.length;na++)e=fr[na],e.before&&e.before(),n=e.id,fl[n]=null,e.run();var t=Dc.slice(),r=fr.slice();ix(),lx(t),ox(r),tl&&Sn.devtools&&tl.emit("flush")}function ox(e){for(var n=e.length;n--;){var t=e[n],r=t.vm;r._watcher===t&&r._isMounted&&!r._isDestroyed&&Nn(r,"updated")}}function sx(e){e._inactive=!1,Dc.push(e)}function lx(e){for(var n=0;n<e.length;n++)e[n]._inactive=!0,Ic(e[n],!0)}function ux(e){var n=e.id;if(fl[n]==null){if(fl[n]=!0,!Bc)fr.push(e);else{for(var t=fr.length-1;t>na&&fr[t].id>e.id;)t--;fr.splice(t+1,0,e)}jc||(jc=!0,Tc(ax))}}var cx=0,Rn=function(n,t,r,o,u){this.vm=n,u&&(n._watcher=this),n._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++cx,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new wo,this.newDepIds=new wo,this.expression="",typeof t=="function"?this.getter=t:(this.getter=tw(t),this.getter||(this.getter=sn)),this.value=this.lazy?void 0:this.get()};Rn.prototype.get=function(){xo(this);var n,t=this.vm;try{n=this.getter.call(t,t)}catch(r){if(this.user)hi(r,t,'getter for watcher "'+this.expression+'"');else throw r}finally{this.deep&&ll(n),Co(),this.cleanupDeps()}return n},Rn.prototype.addDep=function(n){var t=n.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(n),this.depIds.has(t)||n.addSub(this))},Rn.prototype.cleanupDeps=function(){for(var n=this.deps.length;n--;){var t=this.deps[n];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},Rn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ux(this)},Rn.prototype.run=function(){if(this.active){var n=this.get();if(n!==this.value||Jt(n)||this.deep){var t=this.value;if(this.value=n,this.user){var r='callback for watcher "'+this.expression+'"';ta(this.cb,this.vm,[n,t],this.vm,r)}else this.cb.call(this.vm,n,t)}}},Rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Rn.prototype.depend=function(){for(var n=this.deps.length;n--;)this.deps[n].depend()},Rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||cr(this.vm._watchers,this);for(var n=this.deps.length;n--;)this.deps[n].removeSub(this);this.active=!1}};var Br={enumerable:!0,configurable:!0,get:sn,set:sn};function Wc(e,n,t){Br.get=function(){return this[n][t]},Br.set=function(o){this[n][t]=o},Object.defineProperty(e,t,Br)}function fx(e){e._watchers=[];var n=e.$options;n.props&&dx(e,n.props),n.methods&&mx(e,n.methods),n.data?px(e):fi(e._data={},!0),n.computed&&vx(e,n.computed),n.watch&&n.watch!==vc&&gx(e,n.watch)}function dx(e,n){var t=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],u=!e.$parent;u||Dr(!1);var f=function(_){o.push(_);var v=wc(_,n,t,e);di(r,_,v),_ in e||Wc(e,"_props",_)};for(var p in n)f(p);Dr(!0)}function px(e){var n=e.$options.data;n=e._data=typeof n=="function"?hx(n,e):n||{},on(n)||(n={});var t=Object.keys(n),r=e.$options.props;e.$options.methods;for(var o=t.length;o--;){var u=t[o];r&&Xt(r,u)||Vk(u)||Wc(e,"_data",u)}fi(n,!0)}function hx(e,n){xo();try{return e.call(n,n)}catch(t){return hi(t,n,"data()"),{}}finally{Co()}}var _x={lazy:!0};function vx(e,n){var t=e._computedWatchers=Object.create(null),r=el();for(var o in n){var u=n[o],f=typeof u=="function"?u:u.get;r||(t[o]=new Rn(e,f||sn,sn,_x)),o in e||r_(e,o,u)}}function r_(e,n,t){var r=!el();typeof t=="function"?(Br.get=r?i_(n):a_(t),Br.set=sn):(Br.get=t.get?r&&t.cache!==!1?i_(n):a_(t.get):sn,Br.set=t.set||sn),Object.defineProperty(e,n,Br)}function i_(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),gn.target&&t.depend(),t.value}}function a_(e){return function(){return e.call(this,this)}}function mx(e,n){e.$options.props;for(var t in n)e[t]=typeof n[t]!="function"?sn:Zk(n[t],e)}function gx(e,n){for(var t in n){var r=n[t];if(Array.isArray(r))for(var o=0;o<r.length;o++)Gc(e,t,r[o]);else Gc(e,t,r)}}function Gc(e,n,t,r){return on(t)&&(r=t,t=t.handler),typeof t=="string"&&(t=e[t]),e.$watch(n,t,r)}function yx(e){var n={};n.get=function(){return this._data};var t={};t.get=function(){return this._props},Object.defineProperty(e.prototype,"$data",n),Object.defineProperty(e.prototype,"$props",t),e.prototype.$set=yc,e.prototype.$delete=Ah,e.prototype.$watch=function(r,o,u){var f=this;if(on(o))return Gc(f,r,o,u);u=u||{},u.user=!0;var p=new Rn(f,r,o,u);if(u.immediate){var _='callback for immediate watcher "'+p.expression+'"';xo(),ta(o,f,[p.value],f,_),Co()}return function(){p.teardown()}}}var bx=0;function $x(e){e.prototype._init=function(n){var t=this;t._uid=bx++,t._isVue=!0,n&&n._isComponent?kx(t,n):t.$options=pi(Kc(t.constructor),n||{},t),t._renderProxy=t,t._self=t,ex(t),Jw(t),Kw(t),Nn(t,"beforeCreate"),ww(t),fx(t),kw(t),Nn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function kx(e,n){var t=e.$options=Object.create(e.constructor.options),r=n._parentVnode;t.parent=n.parent,t._parentVnode=r;var o=r.componentOptions;t.propsData=o.propsData,t._parentListeners=o.listeners,t._renderChildren=o.children,t._componentTag=o.tag,n.render&&(t.render=n.render,t.staticRenderFns=n.staticRenderFns)}function Kc(e){var n=e.options;if(e.super){var t=Kc(e.super),r=e.superOptions;if(t!==r){e.superOptions=t;var o=wx(e);o&&rt(e.extendOptions,o),n=e.options=pi(t,e.extendOptions),n.name&&(n.components[n.name]=e)}}return n}function wx(e){var n,t=e.options,r=e.sealedOptions;for(var o in t)t[o]!==r[o]&&(n||(n={}),n[o]=t[o]);return n}function Te(e){this._init(e)}$x(Te),yx(Te),Vw(Te),tx(Te),Uw(Te);function xx(e){e.use=function(n){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(n)>-1)return this;var r=pc(arguments,1);return r.unshift(this),typeof n.install=="function"?n.install.apply(n,r):typeof n=="function"&&n.apply(null,r),t.push(n),this}}function Cx(e){e.mixin=function(n){return this.options=pi(this.options,n),this}}function Sx(e){e.cid=0;var n=1;e.extend=function(t){t=t||{};var r=this,o=r.cid,u=t._Ctor||(t._Ctor={});if(u[o])return u[o];var f=t.name||r.options.name,p=function(v){this._init(v)};return p.prototype=Object.create(r.prototype),p.prototype.constructor=p,p.cid=n++,p.options=pi(r.options,t),p.super=r,p.options.props&&Ax(p),p.options.computed&&Tx(p),p.extend=r.extend,p.mixin=r.mixin,p.use=r.use,Qs.forEach(function(_){p[_]=r[_]}),f&&(p.options.components[f]=p),p.superOptions=r.options,p.extendOptions=t,p.sealedOptions=rt({},p.options),u[o]=p,p}}function Ax(e){var n=e.options.props;for(var t in n)Wc(e.prototype,"_props",t)}function Tx(e){var n=e.options.computed;for(var t in n)r_(e.prototype,t,n[t])}function Ox(e){Qs.forEach(function(n){e[n]=function(t,r){return r?(n==="component"&&on(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),n==="directive"&&typeof r=="function"&&(r={bind:r,update:r}),this.options[n+"s"][t]=r,r):this.options[n+"s"][t]}})}function o_(e){return e&&(e.Ctor.options.name||e.tag)}function dl(e,n){return Array.isArray(e)?e.indexOf(n)>-1:typeof e=="string"?e.split(",").indexOf(n)>-1:zk(e)?e.test(n):!1}function s_(e,n){var t=e.cache,r=e.keys,o=e._vnode;for(var u in t){var f=t[u];if(f){var p=f.name;p&&!n(p)&&Uc(t,u,r,o)}}}function Uc(e,n,t,r){var o=e[n];o&&(!r||o.tag!==r.tag)&&o.componentInstance.$destroy(),e[n]=null,cr(t,n)}var l_=[String,RegExp,Array],Ex={name:"keep-alive",abstract:!0,props:{include:l_,exclude:l_,max:[String,Number]},methods:{cacheVNode:function(){var n=this,t=n.cache,r=n.keys,o=n.vnodeToCache,u=n.keyToCache;if(o){var f=o.tag,p=o.componentInstance,_=o.componentOptions;t[u]={name:o_(_),tag:f,componentInstance:p},r.push(u),this.max&&r.length>parseInt(this.max)&&Uc(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var n in this.cache)Uc(this.cache,n,this.keys)},mounted:function(){var n=this;this.cacheVNode(),this.$watch("include",function(t){s_(n,function(r){return dl(t,r)})}),this.$watch("exclude",function(t){s_(n,function(r){return!dl(t,r)})})},updated:function(){this.cacheVNode()},render:function(){var n=this.$slots.default,t=Zh(n),r=t&&t.componentOptions;if(r){var o=o_(r),u=this,f=u.include,p=u.exclude;if(f&&(!o||!dl(f,o))||p&&o&&dl(p,o))return t;var _=this,v=_.cache,k=_.keys,w=t.key==null?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;v[w]?(t.componentInstance=v[w].componentInstance,cr(k,w),k.push(w)):(this.vnodeToCache=t,this.keyToCache=w),t.data.keepAlive=!0}return t||n&&n[0]}},Fx={KeepAlive:Ex};function Mx(e){var n={};n.get=function(){return Sn},Object.defineProperty(e,"config",n),e.util={warn:xh,extend:rt,mergeOptions:pi,defineReactive:di},e.set=yc,e.delete=Ah,e.nextTick=Tc,e.observable=function(t){return fi(t),t},e.options=Object.create(null),Qs.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,rt(e.options.components,Fx),xx(e),Cx(e),Sx(e),Ox(e)}Mx(Te),Object.defineProperty(Te.prototype,"$isServer",{get:el}),Object.defineProperty(Te.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Te,"FunctionalRenderContext",{value:Pc}),Te.version="2.6.14";var Px=Ln("style,class"),Lx=Ln("input,textarea,option,select,progress"),Nx=function(e,n,t){return t==="value"&&Lx(e)&&n!=="button"||t==="selected"&&e==="option"||t==="checked"&&e==="input"||t==="muted"&&e==="video"},u_=Ln("contenteditable,draggable,spellcheck"),Rx=Ln("events,caret,typing,plaintext-only"),Ix=function(e,n){return pl(n)||n==="false"?"false":e==="contenteditable"&&Rx(n)?n:"true"},Dx=Ln("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Yc="http://www.w3.org/1999/xlink",qc=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},c_=function(e){return qc(e)?e.slice(6,e.length):""},pl=function(e){return e==null||e===!1};function jx(e){for(var n=e.data,t=e,r=e;U(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(n=f_(r.data,n));for(;U(t=t.parent);)t&&t.data&&(n=f_(n,t.data));return Bx(n.staticClass,n.class)}function f_(e,n){return{staticClass:Jc(e.staticClass,n.staticClass),class:U(e.class)?[e.class,n.class]:n.class}}function Bx(e,n){return U(e)||U(n)?Jc(e,Xc(n)):""}function Jc(e,n){return e?n?e+" "+n:e:n||""}function Xc(e){return Array.isArray(e)?Hx(e):Jt(e)?zx(e):typeof e=="string"?e:""}function Hx(e){for(var n="",t,r=0,o=e.length;r<o;r++)U(t=Xc(e[r]))&&t!==""&&(n&&(n+=" "),n+=t);return n}function zx(e){var n="";for(var t in e)e[t]&&(n&&(n+=" "),n+=t);return n}var Wx={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gx=Ln("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,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,rtc,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,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Zc=Ln("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),d_=function(e){return Gx(e)||Zc(e)};function Kx(e){if(Zc(e))return"svg";if(e==="math")return"math"}var hl=Object.create(null);function Ux(e){if(!mn)return!0;if(d_(e))return!1;if(e=e.toLowerCase(),hl[e]!=null)return hl[e];var n=document.createElement(e);return e.indexOf("-")>-1?hl[e]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:hl[e]=/HTMLUnknownElement/.test(n.toString())}var Qc=Ln("text,number,password,search,email,tel,url");function Yx(e){if(typeof e=="string"){var n=document.querySelector(e);return n||document.createElement("div")}else return e}function qx(e,n){var t=document.createElement(e);return e!=="select"||n.data&&n.data.attrs&&n.data.attrs.multiple!==void 0&&t.setAttribute("multiple","multiple"),t}function Jx(e,n){return document.createElementNS(Wx[e],n)}function Xx(e){return document.createTextNode(e)}function Zx(e){return document.createComment(e)}function Qx(e,n,t){e.insertBefore(n,t)}function Vx(e,n){e.removeChild(n)}function e1(e,n){e.appendChild(n)}function t1(e){return e.parentNode}function n1(e){return e.nextSibling}function r1(e){return e.tagName}function i1(e,n){e.textContent=n}function a1(e,n){e.setAttribute(n,"")}var o1=Object.freeze({createElement:qx,createElementNS:Jx,createTextNode:Xx,createComment:Zx,insertBefore:Qx,removeChild:Vx,appendChild:e1,parentNode:t1,nextSibling:n1,tagName:r1,setTextContent:i1,setStyleScope:a1}),s1={create:function(n,t){ra(t)},update:function(n,t){n.data.ref!==t.data.ref&&(ra(n,!0),ra(t))},destroy:function(n){ra(n,!0)}};function ra(e,n){var t=e.data.ref;if(!!U(t)){var r=e.context,o=e.componentInstance||e.elm,u=r.$refs;n?Array.isArray(u[t])?cr(u[t],o):u[t]===o&&(u[t]=void 0):e.data.refInFor?Array.isArray(u[t])?u[t].indexOf(o)<0&&u[t].push(o):u[t]=[o]:u[t]=o}}var vi=new ln("",{},[]),Eo=["create","activate","update","remove","destroy"];function mi(e,n){return e.key===n.key&&e.asyncFactory===n.asyncFactory&&(e.tag===n.tag&&e.isComment===n.isComment&&U(e.data)===U(n.data)&&l1(e,n)||_t(e.isAsyncPlaceholder)&&ze(n.asyncFactory.error))}function l1(e,n){if(e.tag!=="input")return!0;var t,r=U(t=e.data)&&U(t=t.attrs)&&t.type,o=U(t=n.data)&&U(t=t.attrs)&&t.type;return r===o||Qc(r)&&Qc(o)}function u1(e,n,t){var r,o,u={};for(r=n;r<=t;++r)o=e[r].key,U(o)&&(u[o]=r);return u}function c1(e){var n,t,r={},o=e.modules,u=e.nodeOps;for(n=0;n<Eo.length;++n)for(r[Eo[n]]=[],t=0;t<o.length;++t)U(o[t][Eo[n]])&&r[Eo[n]].push(o[t][Eo[n]]);function f(P){return new ln(u.tagName(P).toLowerCase(),{},[],void 0,P)}function p(P,C){function F(){--F.listeners==0&&_(P)}return F.listeners=C,F}function _(P){var C=u.parentNode(P);U(C)&&u.removeChild(C,P)}function v(P,C,F,$,G,H,ee){if(U(P.elm)&&U(H)&&(P=H[ee]=mc(P)),P.isRootInsert=!G,!k(P,C,F,$)){var ge=P.data,he=P.children,Pe=P.tag;U(Pe)?(P.elm=P.ns?u.createElementNS(P.ns,Pe):u.createElement(Pe,P),j(P),z(P,he,C),U(ge)&&q(P,C),M(F,P.elm,$)):_t(P.isComment)?(P.elm=u.createComment(P.text),M(F,P.elm,$)):(P.elm=u.createTextNode(P.text),M(F,P.elm,$))}}function k(P,C,F,$){var G=P.data;if(U(G)){var H=U(P.componentInstance)&&G.keepAlive;if(U(G=G.hook)&&U(G=G.init)&&G(P,!1),U(P.componentInstance))return w(P,C),M(F,P.elm,$),_t(H)&&x(P,C,F,$),!0}}function w(P,C){U(P.data.pendingInsert)&&(C.push.apply(C,P.data.pendingInsert),P.data.pendingInsert=null),P.elm=P.componentInstance.$el,ie(P)?(q(P,C),j(P)):(ra(P),C.push(P))}function x(P,C,F,$){for(var G,H=P;H.componentInstance;)if(H=H.componentInstance._vnode,U(G=H.data)&&U(G=G.transition)){for(G=0;G<r.activate.length;++G)r.activate[G](vi,H);C.push(H);break}M(F,P.elm,$)}function M(P,C,F){U(P)&&(U(F)?u.parentNode(F)===P&&u.insertBefore(P,C,F):u.appendChild(P,C))}function z(P,C,F){if(Array.isArray(C))for(var $=0;$<C.length;++$)v(C[$],F,P.elm,null,!0,C,$);else bo(P.text)&&u.appendChild(P.elm,u.createTextNode(String(P.text)))}function ie(P){for(;P.componentInstance;)P=P.componentInstance._vnode;return U(P.tag)}function q(P,C){for(var F=0;F<r.create.length;++F)r.create[F](vi,P);n=P.data.hook,U(n)&&(U(n.create)&&n.create(vi,P),U(n.insert)&&C.push(P))}function j(P){var C;if(U(C=P.fnScopeId))u.setStyleScope(P.elm,C);else for(var F=P;F;)U(C=F.context)&&U(C=C.$options._scopeId)&&u.setStyleScope(P.elm,C),F=F.parent;U(C=_i)&&C!==P.context&&C!==P.fnContext&&U(C=C.$options._scopeId)&&u.setStyleScope(P.elm,C)}function D(P,C,F,$,G,H){for(;$<=G;++$)v(F[$],H,P,C,!1,F,$)}function B(P){var C,F,$=P.data;if(U($))for(U(C=$.hook)&&U(C=C.destroy)&&C(P),C=0;C<r.destroy.length;++C)r.destroy[C](P);if(U(C=P.children))for(F=0;F<P.children.length;++F)B(P.children[F])}function Y(P,C,F){for(;C<=F;++C){var $=P[C];U($)&&(U($.tag)?(oe($),B($)):_($.elm))}}function oe(P,C){if(U(C)||U(P.data)){var F,$=r.remove.length+1;for(U(C)?C.listeners+=$:C=p(P.elm,$),U(F=P.componentInstance)&&U(F=F._vnode)&&U(F.data)&&oe(F,C),F=0;F<r.remove.length;++F)r.remove[F](P,C);U(F=P.data.hook)&&U(F=F.remove)?F(P,C):C()}else _(P.elm)}function te(P,C,F,$,G){for(var H=0,ee=0,ge=C.length-1,he=C[0],Pe=C[ge],Se=F.length-1,We=F[0],qe=F[Se],Re,me,ye,je,Fe=!G;H<=ge&&ee<=Se;)ze(he)?he=C[++H]:ze(Pe)?Pe=C[--ge]:mi(he,We)?(xe(he,We,$,F,ee),he=C[++H],We=F[++ee]):mi(Pe,qe)?(xe(Pe,qe,$,F,Se),Pe=C[--ge],qe=F[--Se]):mi(he,qe)?(xe(he,qe,$,F,Se),Fe&&u.insertBefore(P,he.elm,u.nextSibling(Pe.elm)),he=C[++H],qe=F[--Se]):mi(Pe,We)?(xe(Pe,We,$,F,ee),Fe&&u.insertBefore(P,Pe.elm,he.elm),Pe=C[--ge],We=F[++ee]):(ze(Re)&&(Re=u1(C,H,ge)),me=U(We.key)?Re[We.key]:le(We,C,H,ge),ze(me)?v(We,$,P,he.elm,!1,F,ee):(ye=C[me],mi(ye,We)?(xe(ye,We,$,F,ee),C[me]=void 0,Fe&&u.insertBefore(P,ye.elm,he.elm)):v(We,$,P,he.elm,!1,F,ee)),We=F[++ee]);H>ge?(je=ze(F[Se+1])?null:F[Se+1].elm,D(P,je,F,ee,Se,$)):ee>Se&&Y(C,H,ge)}function le(P,C,F,$){for(var G=F;G<$;G++){var H=C[G];if(U(H)&&mi(P,H))return G}}function xe(P,C,F,$,G,H){if(P!==C){U(C.elm)&&U($)&&(C=$[G]=mc(C));var ee=C.elm=P.elm;if(_t(P.isAsyncPlaceholder)){U(C.asyncFactory.resolved)?fe(P.elm,C,F):C.isAsyncPlaceholder=!0;return}if(_t(C.isStatic)&&_t(P.isStatic)&&C.key===P.key&&(_t(C.isCloned)||_t(C.isOnce))){C.componentInstance=P.componentInstance;return}var ge,he=C.data;U(he)&&U(ge=he.hook)&&U(ge=ge.prepatch)&&ge(P,C);var Pe=P.children,Se=C.children;if(U(he)&&ie(C)){for(ge=0;ge<r.update.length;++ge)r.update[ge](P,C);U(ge=he.hook)&&U(ge=ge.update)&&ge(P,C)}ze(C.text)?U(Pe)&&U(Se)?Pe!==Se&&te(ee,Pe,Se,F,H):U(Se)?(U(P.text)&&u.setTextContent(ee,""),D(ee,null,Se,0,Se.length-1,F)):U(Pe)?Y(Pe,0,Pe.length-1):U(P.text)&&u.setTextContent(ee,""):P.text!==C.text&&u.setTextContent(ee,C.text),U(he)&&U(ge=he.hook)&&U(ge=ge.postpatch)&&ge(P,C)}}function Ce(P,C,F){if(_t(F)&&U(P.parent))P.parent.data.pendingInsert=C;else for(var $=0;$<C.length;++$)C[$].data.hook.insert(C[$])}var pe=Ln("attrs,class,staticClass,staticStyle,key");function fe(P,C,F,$){var G,H=C.tag,ee=C.data,ge=C.children;if($=$||ee&&ee.pre,C.elm=P,_t(C.isComment)&&U(C.asyncFactory))return C.isAsyncPlaceholder=!0,!0;if(U(ee)&&(U(G=ee.hook)&&U(G=G.init)&&G(C,!0),U(G=C.componentInstance)))return w(C,F),!0;if(U(H)){if(U(ge))if(!P.hasChildNodes())z(C,ge,F);else if(U(G=ee)&&U(G=G.domProps)&&U(G=G.innerHTML)){if(G!==P.innerHTML)return!1}else{for(var he=!0,Pe=P.firstChild,Se=0;Se<ge.length;Se++){if(!Pe||!fe(Pe,ge[Se],F,$)){he=!1;break}Pe=Pe.nextSibling}if(!he||Pe)return!1}if(U(ee)){var We=!1;for(var qe in ee)if(!pe(qe)){We=!0,q(C,F);break}!We&&ee.class&&ll(ee.class)}}else P.data!==C.text&&(P.data=C.text);return!0}return function(C,F,$,G){if(ze(F)){U(C)&&B(C);return}var H=!1,ee=[];if(ze(C))H=!0,v(F,ee);else{var ge=U(C.nodeType);if(!ge&&mi(C,F))xe(C,F,ee,null,null,G);else{if(ge){if(C.nodeType===1&&C.hasAttribute(gh)&&(C.removeAttribute(gh),$=!0),_t($)&&fe(C,F,ee))return Ce(F,ee,!0),C;C=f(C)}var he=C.elm,Pe=u.parentNode(he);if(v(F,ee,he._leaveCb?null:Pe,u.nextSibling(he)),U(F.parent))for(var Se=F.parent,We=ie(F);Se;){for(var qe=0;qe<r.destroy.length;++qe)r.destroy[qe](Se);if(Se.elm=F.elm,We){for(var Re=0;Re<r.create.length;++Re)r.create[Re](vi,Se);var me=Se.data.hook.insert;if(me.merged)for(var ye=1;ye<me.fns.length;ye++)me.fns[ye]()}else ra(Se);Se=Se.parent}U(Pe)?Y([C],0,0):U(C.tag)&&B(C)}}return Ce(F,ee,H),F.elm}}var f1={create:Vc,update:Vc,destroy:function(n){Vc(n,vi)}};function Vc(e,n){(e.data.directives||n.data.directives)&&d1(e,n)}function d1(e,n){var t=e===vi,r=n===vi,o=p_(e.data.directives,e.context),u=p_(n.data.directives,n.context),f=[],p=[],_,v,k;for(_ in u)v=o[_],k=u[_],v?(k.oldValue=v.value,k.oldArg=v.arg,Fo(k,"update",n,e),k.def&&k.def.componentUpdated&&p.push(k)):(Fo(k,"bind",n,e),k.def&&k.def.inserted&&f.push(k));if(f.length){var w=function(){for(var x=0;x<f.length;x++)Fo(f[x],"inserted",n,e)};t?jr(n,"insert",w):w()}if(p.length&&jr(n,"postpatch",function(){for(var x=0;x<p.length;x++)Fo(p[x],"componentUpdated",n,e)}),!t)for(_ in o)u[_]||Fo(o[_],"unbind",e,e,r)}var p1=Object.create(null);function p_(e,n){var t=Object.create(null);if(!e)return t;var r,o;for(r=0;r<e.length;r++)o=e[r],o.modifiers||(o.modifiers=p1),t[h1(o)]=o,o.def=kc(n.$options,"directives",o.name);return t}function h1(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Fo(e,n,t,r,o){var u=e.def&&e.def[n];if(u)try{u(t.elm,e,t,r,o)}catch(f){hi(f,t.context,"directive "+e.name+" "+n+" hook")}}var _1=[s1,f1];function h_(e,n){var t=n.componentOptions;if(!(U(t)&&t.Ctor.options.inheritAttrs===!1)&&!(ze(e.data.attrs)&&ze(n.data.attrs))){var r,o,u,f=n.elm,p=e.data.attrs||{},_=n.data.attrs||{};U(_.__ob__)&&(_=n.data.attrs=rt({},_));for(r in _)o=_[r],u=p[r],u!==o&&__(f,r,o,n.data.pre);(Zi||_c)&&_.value!==p.value&&__(f,"value",_.value);for(r in p)ze(_[r])&&(qc(r)?f.removeAttributeNS(Yc,c_(r)):u_(r)||f.removeAttribute(r))}}function __(e,n,t,r){r||e.tagName.indexOf("-")>-1?v_(e,n,t):Dx(n)?pl(t)?e.removeAttribute(n):(t=n==="allowfullscreen"&&e.tagName==="EMBED"?"true":n,e.setAttribute(n,t)):u_(n)?e.setAttribute(n,Ix(n,t)):qc(n)?pl(t)?e.removeAttributeNS(Yc,c_(n)):e.setAttributeNS(Yc,n,t):v_(e,n,t)}function v_(e,n,t){if(pl(t))e.removeAttribute(n);else{if(Zi&&!Qi&&e.tagName==="TEXTAREA"&&n==="placeholder"&&t!==""&&!e.__ieph){var r=function(o){o.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(n,t)}}var v1={create:h_,update:h_};function m_(e,n){var t=n.elm,r=n.data,o=e.data;if(!(ze(r.staticClass)&&ze(r.class)&&(ze(o)||ze(o.staticClass)&&ze(o.class)))){var u=jx(n),f=t._transitionClasses;U(f)&&(u=Jc(u,Xc(f))),u!==t._prevClass&&(t.setAttribute("class",u),t._prevClass=u)}}var m1={create:m_,update:m_},ef="__r",tf="__c";function g1(e){if(U(e[ef])){var n=Zi?"change":"input";e[n]=[].concat(e[ef],e[n]||[]),delete e[ef]}U(e[tf])&&(e.change=[].concat(e[tf],e.change||[]),delete e[tf])}var Mo;function y1(e,n,t){var r=Mo;return function o(){var u=n.apply(null,arguments);u!==null&&g_(e,o,t,r)}}var b1=Cc&&!($h&&Number($h[1])<=53);function $1(e,n,t,r){if(b1){var o=n_,u=n;n=u._wrapper=function(f){if(f.target===f.currentTarget||f.timeStamp>=o||f.timeStamp<=0||f.target.ownerDocument!==document)return u.apply(this,arguments)}}Mo.addEventListener(e,n,kh?{capture:t,passive:r}:t)}function g_(e,n,t,r){(r||Mo).removeEventListener(e,n._wrapper||n,t)}function y_(e,n){if(!(ze(e.data.on)&&ze(n.data.on))){var t=n.data.on||{},r=e.data.on||{};Mo=n.elm,g1(t),Rh(t,r,$1,g_,y1,n.context),Mo=void 0}}var k1={create:y_,update:y_},_l;function b_(e,n){if(!(ze(e.data.domProps)&&ze(n.data.domProps))){var t,r,o=n.elm,u=e.data.domProps||{},f=n.data.domProps||{};U(f.__ob__)&&(f=n.data.domProps=rt({},f));for(t in u)t in f||(o[t]="");for(t in f){if(r=f[t],t==="textContent"||t==="innerHTML"){if(n.children&&(n.children.length=0),r===u[t])continue;o.childNodes.length===1&&o.removeChild(o.childNodes[0])}if(t==="value"&&o.tagName!=="PROGRESS"){o._value=r;var p=ze(r)?"":String(r);w1(o,p)&&(o.value=p)}else if(t==="innerHTML"&&Zc(o.tagName)&&ze(o.innerHTML)){_l=_l||document.createElement("div"),_l.innerHTML="<svg>"+r+"</svg>";for(var _=_l.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;_.firstChild;)o.appendChild(_.firstChild)}else if(r!==u[t])try{o[t]=r}catch{}}}}function w1(e,n){return!e.composing&&(e.tagName==="OPTION"||x1(e,n)||C1(e,n))}function x1(e,n){var t=!0;try{t=document.activeElement!==e}catch{}return t&&e.value!==n}function C1(e,n){var t=e.value,r=e._vModifiers;if(U(r)){if(r.number)return $o(t)!==$o(n);if(r.trim)return t.trim()!==n.trim()}return t!==n}var S1={create:b_,update:b_},A1=si(function(e){var n={},t=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(t).forEach(function(o){if(o){var u=o.split(r);u.length>1&&(n[u[0].trim()]=u[1].trim())}}),n});function nf(e){var n=$_(e.style);return e.staticStyle?rt(e.staticStyle,n):n}function $_(e){return Array.isArray(e)?_h(e):typeof e=="string"?A1(e):e}function T1(e,n){var t={},r;if(n)for(var o=e;o.componentInstance;)o=o.componentInstance._vnode,o&&o.data&&(r=nf(o.data))&&rt(t,r);(r=nf(e.data))&&rt(t,r);for(var u=e;u=u.parent;)u.data&&(r=nf(u.data))&&rt(t,r);return t}var O1=/^--/,k_=/\s*!important$/,w_=function(e,n,t){if(O1.test(n))e.style.setProperty(n,t);else if(k_.test(t))e.style.setProperty(ko(n),t.replace(k_,""),"important");else{var r=E1(n);if(Array.isArray(t))for(var o=0,u=t.length;o<u;o++)e.style[r]=t[o];else e.style[r]=t}},x_=["Webkit","Moz","ms"],vl,E1=si(function(e){if(vl=vl||document.createElement("div").style,e=li(e),e!=="filter"&&e in vl)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),t=0;t<x_.length;t++){var r=x_[t]+n;if(r in vl)return r}});function C_(e,n){var t=n.data,r=e.data;if(!(ze(t.staticStyle)&&ze(t.style)&&ze(r.staticStyle)&&ze(r.style))){var o,u,f=n.elm,p=r.staticStyle,_=r.normalizedStyle||r.style||{},v=p||_,k=$_(n.data.style)||{};n.data.normalizedStyle=U(k.__ob__)?rt({},k):k;var w=T1(n,!0);for(u in v)ze(w[u])&&w_(f,u,"");for(u in w)o=w[u],o!==v[u]&&w_(f,u,o??"")}}var F1={create:C_,update:C_},S_=/\s+/;function A_(e,n){if(!(!n||!(n=n.trim())))if(e.classList)n.indexOf(" ")>-1?n.split(S_).forEach(function(r){return e.classList.add(r)}):e.classList.add(n);else{var t=" "+(e.getAttribute("class")||"")+" ";t.indexOf(" "+n+" ")<0&&e.setAttribute("class",(t+n).trim())}}function T_(e,n){if(!(!n||!(n=n.trim())))if(e.classList)n.indexOf(" ")>-1?n.split(S_).forEach(function(o){return e.classList.remove(o)}):e.classList.remove(n),e.classList.length||e.removeAttribute("class");else{for(var t=" "+(e.getAttribute("class")||"")+" ",r=" "+n+" ";t.indexOf(r)>=0;)t=t.replace(r," ");t=t.trim(),t?e.setAttribute("class",t):e.removeAttribute("class")}}function O_(e){if(!!e){if(typeof e=="object"){var n={};return e.css!==!1&&rt(n,E_(e.name||"v")),rt(n,e),n}else if(typeof e=="string")return E_(e)}}var E_=si(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),F_=mn&&!Qi,ia="transition",rf="animation",ml="transition",gl="transitionend",af="animation",M_="animationend";F_&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(ml="WebkitTransition",gl="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(af="WebkitAnimation",M_="webkitAnimationEnd"));var P_=mn?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function L_(e){P_(function(){P_(e)})}function gi(e,n){var t=e._transitionClasses||(e._transitionClasses=[]);t.indexOf(n)<0&&(t.push(n),A_(e,n))}function dr(e,n){e._transitionClasses&&cr(e._transitionClasses,n),T_(e,n)}function N_(e,n,t){var r=R_(e,n),o=r.type,u=r.timeout,f=r.propCount;if(!o)return t();var p=o===ia?gl:M_,_=0,v=function(){e.removeEventListener(p,k),t()},k=function(w){w.target===e&&++_>=f&&v()};setTimeout(function(){_<f&&v()},u+1),e.addEventListener(p,k)}var M1=/\b(transform|all)(,|$)/;function R_(e,n){var t=window.getComputedStyle(e),r=(t[ml+"Delay"]||"").split(", "),o=(t[ml+"Duration"]||"").split(", "),u=I_(r,o),f=(t[af+"Delay"]||"").split(", "),p=(t[af+"Duration"]||"").split(", "),_=I_(f,p),v,k=0,w=0;n===ia?u>0&&(v=ia,k=u,w=o.length):n===rf?_>0&&(v=rf,k=_,w=p.length):(k=Math.max(u,_),v=k>0?u>_?ia:rf:null,w=v?v===ia?o.length:p.length:0);var x=v===ia&&M1.test(t[ml+"Property"]);return{type:v,timeout:k,propCount:w,hasTransform:x}}function I_(e,n){for(;e.length<n.length;)e=e.concat(e);return Math.max.apply(null,n.map(function(t,r){return D_(t)+D_(e[r])}))}function D_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function of(e,n){var t=e.elm;U(t._leaveCb)&&(t._leaveCb.cancelled=!0,t._leaveCb());var r=O_(e.data.transition);if(!ze(r)&&!(U(t._enterCb)||t.nodeType!==1)){for(var o=r.css,u=r.type,f=r.enterClass,p=r.enterToClass,_=r.enterActiveClass,v=r.appearClass,k=r.appearToClass,w=r.appearActiveClass,x=r.beforeEnter,M=r.enter,z=r.afterEnter,ie=r.enterCancelled,q=r.beforeAppear,j=r.appear,D=r.afterAppear,B=r.appearCancelled,Y=r.duration,oe=_i,te=_i.$vnode;te&&te.parent;)oe=te.context,te=te.parent;var le=!oe._isMounted||!e.isRootInsert;if(!(le&&!j&&j!=="")){var xe=le&&v?v:f,Ce=le&&w?w:_,pe=le&&k?k:p,fe=le&&q||x,P=le&&typeof j=="function"?j:M,C=le&&D||z,F=le&&B||ie,$=$o(Jt(Y)?Y.enter:Y),G=o!==!1&&!Qi,H=sf(P),ee=t._enterCb=Zs(function(){G&&(dr(t,pe),dr(t,Ce)),ee.cancelled?(G&&dr(t,xe),F&&F(t)):C&&C(t),t._enterCb=null});e.data.show||jr(e,"insert",function(){var ge=t.parentNode,he=ge&&ge._pending&&ge._pending[e.key];he&&he.tag===e.tag&&he.elm._leaveCb&&he.elm._leaveCb(),P&&P(t,ee)}),fe&&fe(t),G&&(gi(t,xe),gi(t,Ce),L_(function(){dr(t,xe),ee.cancelled||(gi(t,pe),H||(B_($)?setTimeout(ee,$):N_(t,u,ee)))})),e.data.show&&(n&&n(),P&&P(t,ee)),!G&&!H&&ee()}}}function j_(e,n){var t=e.elm;U(t._enterCb)&&(t._enterCb.cancelled=!0,t._enterCb());var r=O_(e.data.transition);if(ze(r)||t.nodeType!==1)return n();if(U(t._leaveCb))return;var o=r.css,u=r.type,f=r.leaveClass,p=r.leaveToClass,_=r.leaveActiveClass,v=r.beforeLeave,k=r.leave,w=r.afterLeave,x=r.leaveCancelled,M=r.delayLeave,z=r.duration,ie=o!==!1&&!Qi,q=sf(k),j=$o(Jt(z)?z.leave:z),D=t._leaveCb=Zs(function(){t.parentNode&&t.parentNode._pending&&(t.parentNode._pending[e.key]=null),ie&&(dr(t,p),dr(t,_)),D.cancelled?(ie&&dr(t,f),x&&x(t)):(n(),w&&w(t)),t._leaveCb=null});M?M(B):B();function B(){D.cancelled||(!e.data.show&&t.parentNode&&((t.parentNode._pending||(t.parentNode._pending={}))[e.key]=e),v&&v(t),ie&&(gi(t,f),gi(t,_),L_(function(){dr(t,f),D.cancelled||(gi(t,p),q||(B_(j)?setTimeout(D,j):N_(t,u,D)))})),k&&k(t,D),!ie&&!q&&D())}}function B_(e){return typeof e=="number"&&!isNaN(e)}function sf(e){if(ze(e))return!1;var n=e.fns;return U(n)?sf(Array.isArray(n)?n[0]:n):(e._length||e.length)>1}function H_(e,n){n.data.show!==!0&&of(n)}var P1=mn?{create:H_,activate:H_,remove:function(n,t){n.data.show!==!0?j_(n,t):t()}}:{},L1=[v1,m1,k1,S1,F1,P1],N1=L1.concat(_1),R1=c1({nodeOps:o1,modules:N1});Qi&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&lf(e,"input")});var z_={inserted:function(n,t,r,o){r.tag==="select"?(o.elm&&!o.elm._vOptions?jr(r,"postpatch",function(){z_.componentUpdated(n,t,r)}):W_(n,t,r.context),n._vOptions=[].map.call(n.options,yl)):(r.tag==="textarea"||Qc(n.type))&&(n._vModifiers=t.modifiers,t.modifiers.lazy||(n.addEventListener("compositionstart",I1),n.addEventListener("compositionend",U_),n.addEventListener("change",U_),Qi&&(n.vmodel=!0)))},componentUpdated:function(n,t,r){if(r.tag==="select"){W_(n,t,r.context);var o=n._vOptions,u=n._vOptions=[].map.call(n.options,yl);if(u.some(function(p,_){return!ui(p,o[_])})){var f=n.multiple?t.value.some(function(p){return K_(p,u)}):t.value!==t.oldValue&&K_(t.value,u);f&&lf(n,"change")}}}};function W_(e,n,t){G_(e,n),(Zi||_c)&&setTimeout(function(){G_(e,n)},0)}function G_(e,n,t){var r=n.value,o=e.multiple;if(!(o&&!Array.isArray(r))){for(var u,f,p=0,_=e.options.length;p<_;p++)if(f=e.options[p],o)u=mh(r,yl(f))>-1,f.selected!==u&&(f.selected=u);else if(ui(yl(f),r)){e.selectedIndex!==p&&(e.selectedIndex=p);return}o||(e.selectedIndex=-1)}}function K_(e,n){return n.every(function(t){return!ui(t,e)})}function yl(e){return"_value"in e?e._value:e.value}function I1(e){e.target.composing=!0}function U_(e){!e.target.composing||(e.target.composing=!1,lf(e.target,"input"))}function lf(e,n){var t=document.createEvent("HTMLEvents");t.initEvent(n,!0,!0),e.dispatchEvent(t)}function uf(e){return e.componentInstance&&(!e.data||!e.data.transition)?uf(e.componentInstance._vnode):e}var D1={bind:function(n,t,r){var o=t.value;r=uf(r);var u=r.data&&r.data.transition,f=n.__vOriginalDisplay=n.style.display==="none"?"":n.style.display;o&&u?(r.data.show=!0,of(r,function(){n.style.display=f})):n.style.display=o?f:"none"},update:function(n,t,r){var o=t.value,u=t.oldValue;if(!o!=!u){r=uf(r);var f=r.data&&r.data.transition;f?(r.data.show=!0,o?of(r,function(){n.style.display=n.__vOriginalDisplay}):j_(r,function(){n.style.display="none"})):n.style.display=o?n.__vOriginalDisplay:"none"}},unbind:function(n,t,r,o,u){u||(n.style.display=n.__vOriginalDisplay)}},j1={model:z_,show:D1},Y_={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function cf(e){var n=e&&e.componentOptions;return n&&n.Ctor.options.abstract?cf(Zh(n.children)):e}function q_(e){var n={},t=e.$options;for(var r in t.propsData)n[r]=e[r];var o=t._parentListeners;for(var u in o)n[li(u)]=o[u];return n}function J_(e,n){if(/\d-keep-alive$/.test(n.tag))return e("keep-alive",{props:n.componentOptions.propsData})}function B1(e){for(;e=e.parent;)if(e.data.transition)return!0}function H1(e,n){return n.key===e.key&&n.tag===e.tag}var z1=function(e){return e.tag||To(e)},W1=function(e){return e.name==="show"},G1={name:"transition",props:Y_,abstract:!0,render:function(n){var t=this,r=this.$slots.default;if(!!r&&(r=r.filter(z1),!!r.length)){var o=this.mode,u=r[0];if(B1(this.$vnode))return u;var f=cf(u);if(!f)return u;if(this._leaving)return J_(n,u);var p="__transition-"+this._uid+"-";f.key=f.key==null?f.isComment?p+"comment":p+f.tag:bo(f.key)?String(f.key).indexOf(p)===0?f.key:p+f.key:f.key;var _=(f.data||(f.data={})).transition=q_(this),v=this._vnode,k=cf(v);if(f.data.directives&&f.data.directives.some(W1)&&(f.data.show=!0),k&&k.data&&!H1(f,k)&&!To(k)&&!(k.componentInstance&&k.componentInstance._vnode.isComment)){var w=k.data.transition=rt({},_);if(o==="out-in")return this._leaving=!0,jr(w,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),J_(n,u);if(o==="in-out"){if(To(f))return v;var x,M=function(){x()};jr(_,"afterEnter",M),jr(_,"enterCancelled",M),jr(w,"delayLeave",function(z){x=z})}}return u}}},X_=rt({tag:String,moveClass:String},Y_);delete X_.mode;var K1={props:X_,beforeMount:function(){var n=this,t=this._update;this._update=function(r,o){var u=Vh(n);n.__patch__(n._vnode,n.kept,!1,!0),n._vnode=n.kept,u(),t.call(n,r,o)}},render:function(n){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),o=this.prevChildren=this.children,u=this.$slots.default||[],f=this.children=[],p=q_(this),_=0;_<u.length;_++){var v=u[_];v.tag&&v.key!=null&&String(v.key).indexOf("__vlist")!==0&&(f.push(v),r[v.key]=v,(v.data||(v.data={})).transition=p)}if(o){for(var k=[],w=[],x=0;x<o.length;x++){var M=o[x];M.data.transition=p,M.data.pos=M.elm.getBoundingClientRect(),r[M.key]?k.push(M):w.push(M)}this.kept=n(t,null,k),this.removed=w}return n(t,null,f)},updated:function(){var n=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";!n.length||!this.hasMove(n[0].elm,t)||(n.forEach(U1),n.forEach(Y1),n.forEach(q1),this._reflow=document.body.offsetHeight,n.forEach(function(r){if(r.data.moved){var o=r.elm,u=o.style;gi(o,t),u.transform=u.WebkitTransform=u.transitionDuration="",o.addEventListener(gl,o._moveCb=function f(p){p&&p.target!==o||(!p||/transform$/.test(p.propertyName))&&(o.removeEventListener(gl,f),o._moveCb=null,dr(o,t))})}}))},methods:{hasMove:function(n,t){if(!F_)return!1;if(this._hasMove)return this._hasMove;var r=n.cloneNode();n._transitionClasses&&n._transitionClasses.forEach(function(u){T_(r,u)}),A_(r,t),r.style.display="none",this.$el.appendChild(r);var o=R_(r);return this.$el.removeChild(r),this._hasMove=o.hasTransform}}};function U1(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Y1(e){e.data.newPos=e.elm.getBoundingClientRect()}function q1(e){var n=e.data.pos,t=e.data.newPos,r=n.left-t.left,o=n.top-t.top;if(r||o){e.data.moved=!0;var u=e.elm.style;u.transform=u.WebkitTransform="translate("+r+"px,"+o+"px)",u.transitionDuration="0s"}}var J1={Transition:G1,TransitionGroup:K1};Te.config.mustUseProp=Nx,Te.config.isReservedTag=d_,Te.config.isReservedAttr=Px,Te.config.getTagNamespace=Kx,Te.config.isUnknownElement=Ux,rt(Te.options.directives,j1),rt(Te.options.components,J1),Te.prototype.__patch__=mn?R1:sn,Te.prototype.$mount=function(e,n){return e=e&&mn?Yx(e):void 0,nx(this,e,n)},mn&&setTimeout(function(){Sn.devtools&&tl&&tl.emit("init",Te)},0);var X1=typeof global=="object"&&global&&global.Object===Object&&global,Z_=X1,Z1=typeof self=="object"&&self&&self.Object===Object&&self,Q1=Z_||Z1||Function("return this")(),In=Q1,V1=In.Symbol,An=V1,Q_=Object.prototype,eC=Q_.hasOwnProperty,tC=Q_.toString,Po=An?An.toStringTag:void 0;function nC(e){var n=eC.call(e,Po),t=e[Po];try{e[Po]=void 0;var r=!0}catch{}var o=tC.call(e);return r&&(n?e[Po]=t:delete e[Po]),o}var rC=Object.prototype,iC=rC.toString;function aC(e){return iC.call(e)}var oC="[object Null]",sC="[object Undefined]",V_=An?An.toStringTag:void 0;function Hr(e){return e==null?e===void 0?sC:oC:V_&&V_ in Object(e)?nC(e):aC(e)}function Dn(e){return e!=null&&typeof e=="object"}var lC="[object Symbol]";function aa(e){return typeof e=="symbol"||Dn(e)&&Hr(e)==lC}function pr(e,n){for(var t=-1,r=e==null?0:e.length,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}var uC=Array.isArray,Je=uC,cC=1/0,ev=An?An.prototype:void 0,tv=ev?ev.toString:void 0;function yi(e){if(typeof e=="string")return e;if(Je(e))return pr(e,yi)+"";if(aa(e))return tv?tv.call(e):"";var n=e+"";return n=="0"&&1/e==-cC?"-0":n}var fC=/\s/;function nv(e){for(var n=e.length;n--&&fC.test(e.charAt(n)););return n}var dC=/^\s+/;function rv(e){return e&&e.slice(0,nv(e)+1).replace(dC,"")}function at(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var iv=0/0,pC=/^[-+]0x[0-9a-f]+$/i,hC=/^0b[01]+$/i,_C=/^0o[0-7]+$/i,vC=parseInt;function ff(e){if(typeof e=="number")return e;if(aa(e))return iv;if(at(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=at(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=rv(e);var t=hC.test(e);return t||_C.test(e)?vC(e.slice(2),t?2:8):pC.test(e)?iv:+e}var av=1/0,mC=17976931348623157e292;function gC(e){if(!e)return e===0?e:0;if(e=ff(e),e===av||e===-av){var n=e<0?-1:1;return n*mC}return e===e?e:0}function bi(e){var n=gC(e),t=n%1;return n===n?t?n-t:n:0}function Lo(e){return e}var yC="[object AsyncFunction]",bC="[object Function]",$C="[object GeneratorFunction]",kC="[object Proxy]";function No(e){if(!at(e))return!1;var n=Hr(e);return n==bC||n==$C||n==yC||n==kC}var wC=In["__core-js_shared__"],df=wC,ov=function(){var e=/[^.]+$/.exec(df&&df.keys&&df.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xC(e){return!!ov&&ov in e}var CC=Function.prototype,SC=CC.toString;function $i(e){if(e!=null){try{return SC.call(e)}catch{}try{return e+""}catch{}}return""}var AC=/[\\^$.*+?()[\]{}|]/g,TC=/^\[object .+?Constructor\]$/,OC=Function.prototype,EC=Object.prototype,FC=OC.toString,MC=EC.hasOwnProperty,PC=RegExp("^"+FC.call(MC).replace(AC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function LC(e){if(!at(e)||xC(e))return!1;var n=No(e)?PC:TC;return n.test($i(e))}function NC(e,n){return e==null?void 0:e[n]}function ki(e,n){var t=NC(e,n);return LC(t)?t:void 0}var RC=ki(In,"WeakMap"),pf=RC,sv=Object.create,IC=function(){function e(){}return function(n){if(!at(n))return{};if(sv)return sv(n);e.prototype=n;var t=new e;return e.prototype=void 0,t}}(),DC=IC;function jC(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function BC(){}function lv(e,n){var t=-1,r=e.length;for(n||(n=Array(r));++t<r;)n[t]=e[t];return n}var HC=800,zC=16,WC=Date.now;function GC(e){var n=0,t=0;return function(){var r=WC(),o=zC-(r-t);if(t=r,o>0){if(++n>=HC)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function KC(e){return function(){return e}}var UC=function(){try{var e=ki(Object,"defineProperty");return e({},"",{}),e}catch{}}(),bl=UC,YC=bl?function(e,n){return bl(e,"toString",{configurable:!0,enumerable:!1,value:KC(n),writable:!0})}:Lo,qC=YC,JC=GC(qC),uv=JC;function cv(e,n){for(var t=-1,r=e==null?0:e.length;++t<r&&n(e[t],t,e)!==!1;);return e}function hf(e,n,t,r){for(var o=e.length,u=t+(r?1:-1);r?u--:++u<o;)if(n(e[u],u,e))return u;return-1}function XC(e){return e!==e}function ZC(e,n,t){for(var r=t-1,o=e.length;++r<o;)if(e[r]===n)return r;return-1}function $l(e,n,t){return n===n?ZC(e,n,t):hf(e,XC,t)}function fv(e,n){var t=e==null?0:e.length;return!!t&&$l(e,n,0)>-1}var QC=9007199254740991,VC=/^(?:0|[1-9]\d*)$/;function kl(e,n){var t=typeof e;return n=n??QC,!!n&&(t=="number"||t!="symbol"&&VC.test(e))&&e>-1&&e%1==0&&e<n}function oa(e,n,t){n=="__proto__"&&bl?bl(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function Ro(e,n){return e===n||e!==e&&n!==n}var eS=Object.prototype,tS=eS.hasOwnProperty;function wl(e,n,t){var r=e[n];(!(tS.call(e,n)&&Ro(r,t))||t===void 0&&!(n in e))&&oa(e,n,t)}function zr(e,n,t,r){var o=!t;t||(t={});for(var u=-1,f=n.length;++u<f;){var p=n[u],_=r?r(t[p],e[p],p,t,e):void 0;_===void 0&&(_=e[p]),o?oa(t,p,_):wl(t,p,_)}return t}var dv=Math.max;function pv(e,n,t){return n=dv(n===void 0?e.length-1:n,0),function(){for(var r=arguments,o=-1,u=dv(r.length-n,0),f=Array(u);++o<u;)f[o]=r[n+o];o=-1;for(var p=Array(n+1);++o<n;)p[o]=r[o];return p[n]=t(f),jC(e,this,p)}}function xl(e,n){return uv(pv(e,n,Lo),e+"")}var nS=9007199254740991;function _f(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nS}function Xn(e){return e!=null&&_f(e.length)&&!No(e)}function Io(e,n,t){if(!at(t))return!1;var r=typeof n;return(r=="number"?Xn(t)&&kl(n,t.length):r=="string"&&n in t)?Ro(t[n],e):!1}function vf(e){return xl(function(n,t){var r=-1,o=t.length,u=o>1?t[o-1]:void 0,f=o>2?t[2]:void 0;for(u=e.length>3&&typeof u=="function"?(o--,u):void 0,f&&Io(t[0],t[1],f)&&(u=o<3?void 0:u,o=1),n=Object(n);++r<o;){var p=t[r];p&&e(n,p,r,u)}return n})}var rS=Object.prototype;function Do(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||rS;return e===t}function iS(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}var aS="[object Arguments]";function hv(e){return Dn(e)&&Hr(e)==aS}var _v=Object.prototype,oS=_v.hasOwnProperty,sS=_v.propertyIsEnumerable,lS=hv(function(){return arguments}())?hv:function(e){return Dn(e)&&oS.call(e,"callee")&&!sS.call(e,"callee")},sa=lS;function uS(){return!1}var vv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mv=vv&&typeof module=="object"&&module&&!module.nodeType&&module,cS=mv&&mv.exports===vv,gv=cS?In.Buffer:void 0,fS=gv?gv.isBuffer:void 0,dS=fS||uS,la=dS,pS="[object Arguments]",hS="[object Array]",_S="[object Boolean]",vS="[object Date]",mS="[object Error]",gS="[object Function]",yS="[object Map]",bS="[object Number]",$S="[object Object]",kS="[object RegExp]",wS="[object Set]",xS="[object String]",CS="[object WeakMap]",SS="[object ArrayBuffer]",AS="[object DataView]",TS="[object Float32Array]",OS="[object Float64Array]",ES="[object Int8Array]",FS="[object Int16Array]",MS="[object Int32Array]",PS="[object Uint8Array]",LS="[object Uint8ClampedArray]",NS="[object Uint16Array]",RS="[object Uint32Array]",ot={};ot[TS]=ot[OS]=ot[ES]=ot[FS]=ot[MS]=ot[PS]=ot[LS]=ot[NS]=ot[RS]=!0,ot[pS]=ot[hS]=ot[SS]=ot[_S]=ot[AS]=ot[vS]=ot[mS]=ot[gS]=ot[yS]=ot[bS]=ot[$S]=ot[kS]=ot[wS]=ot[xS]=ot[CS]=!1;function IS(e){return Dn(e)&&_f(e.length)&&!!ot[Hr(e)]}function jo(e){return function(n){return e(n)}}var yv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bo=yv&&typeof module=="object"&&module&&!module.nodeType&&module,DS=Bo&&Bo.exports===yv,mf=DS&&Z_.process,jS=function(){try{var e=Bo&&Bo.require&&Bo.require("util").types;return e||mf&&mf.binding&&mf.binding("util")}catch{}}(),ua=jS,bv=ua&&ua.isTypedArray,BS=bv?jo(bv):IS,Cl=BS,HS=Object.prototype,zS=HS.hasOwnProperty;function $v(e,n){var t=Je(e),r=!t&&sa(e),o=!t&&!r&&la(e),u=!t&&!r&&!o&&Cl(e),f=t||r||o||u,p=f?iS(e.length,String):[],_=p.length;for(var v in e)(n||zS.call(e,v))&&!(f&&(v=="length"||o&&(v=="offset"||v=="parent")||u&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||kl(v,_)))&&p.push(v);return p}function kv(e,n){return function(t){return e(n(t))}}var WS=kv(Object.keys,Object),GS=WS,KS=Object.prototype,US=KS.hasOwnProperty;function wv(e){if(!Do(e))return GS(e);var n=[];for(var t in Object(e))US.call(e,t)&&t!="constructor"&&n.push(t);return n}function Zn(e){return Xn(e)?$v(e):wv(e)}var YS=Object.prototype,qS=YS.hasOwnProperty,JS=vf(function(e,n){if(Do(n)||Xn(n)){zr(n,Zn(n),e);return}for(var t in n)qS.call(n,t)&&wl(e,t,n[t])}),Ft=JS;function XS(e){var n=[];if(e!=null)for(var t in Object(e))n.push(t);return n}var ZS=Object.prototype,QS=ZS.hasOwnProperty;function VS(e){if(!at(e))return XS(e);var n=Do(e),t=[];for(var r in e)r=="constructor"&&(n||!QS.call(e,r))||t.push(r);return t}function ca(e){return Xn(e)?$v(e,!0):VS(e)}var eA=vf(function(e,n){zr(n,ca(n),e)}),tA=eA,nA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rA=/^\w*$/;function gf(e,n){if(Je(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||aa(e)?!0:rA.test(e)||!nA.test(e)||n!=null&&e in Object(n)}var iA=ki(Object,"create"),Ho=iA;function aA(){this.__data__=Ho?Ho(null):{},this.size=0}function oA(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var sA="__lodash_hash_undefined__",lA=Object.prototype,uA=lA.hasOwnProperty;function cA(e){var n=this.__data__;if(Ho){var t=n[e];return t===sA?void 0:t}return uA.call(n,e)?n[e]:void 0}var fA=Object.prototype,dA=fA.hasOwnProperty;function pA(e){var n=this.__data__;return Ho?n[e]!==void 0:dA.call(n,e)}var hA="__lodash_hash_undefined__";function _A(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Ho&&n===void 0?hA:n,this}function wi(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}wi.prototype.clear=aA,wi.prototype.delete=oA,wi.prototype.get=cA,wi.prototype.has=pA,wi.prototype.set=_A;function vA(){this.__data__=[],this.size=0}function Sl(e,n){for(var t=e.length;t--;)if(Ro(e[t][0],n))return t;return-1}var mA=Array.prototype,gA=mA.splice;function yA(e){var n=this.__data__,t=Sl(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():gA.call(n,t,1),--this.size,!0}function bA(e){var n=this.__data__,t=Sl(n,e);return t<0?void 0:n[t][1]}function $A(e){return Sl(this.__data__,e)>-1}function kA(e,n){var t=this.__data__,r=Sl(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function hr(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}hr.prototype.clear=vA,hr.prototype.delete=yA,hr.prototype.get=bA,hr.prototype.has=$A,hr.prototype.set=kA;var wA=ki(In,"Map"),zo=wA;function xA(){this.size=0,this.__data__={hash:new wi,map:new(zo||hr),string:new wi}}function CA(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Al(e,n){var t=e.__data__;return CA(n)?t[typeof n=="string"?"string":"hash"]:t.map}function SA(e){var n=Al(this,e).delete(e);return this.size-=n?1:0,n}function AA(e){return Al(this,e).get(e)}function TA(e){return Al(this,e).has(e)}function OA(e,n){var t=Al(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}function _r(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}_r.prototype.clear=xA,_r.prototype.delete=SA,_r.prototype.get=AA,_r.prototype.has=TA,_r.prototype.set=OA;var EA="Expected a function";function yf(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(EA);var t=function(){var r=arguments,o=n?n.apply(this,r):r[0],u=t.cache;if(u.has(o))return u.get(o);var f=e.apply(this,r);return t.cache=u.set(o,f)||u,f};return t.cache=new(yf.Cache||_r),t}yf.Cache=_r;var FA=500;function MA(e){var n=yf(e,function(r){return t.size===FA&&t.clear(),r}),t=n.cache;return n}var PA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,LA=/\\(\\)?/g,NA=MA(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(PA,function(t,r,o,u){n.push(o?u.replace(LA,"$1"):r||t)}),n}),RA=NA;function vr(e){return e==null?"":yi(e)}function fa(e,n){return Je(e)?e:gf(e,n)?[e]:RA(vr(e))}var IA=1/0;function da(e){if(typeof e=="string"||aa(e))return e;var n=e+"";return n=="0"&&1/e==-IA?"-0":n}function Wo(e,n){n=fa(n,e);for(var t=0,r=n.length;e!=null&&t<r;)e=e[da(n[t++])];return t&&t==r?e:void 0}function un(e,n,t){var r=e==null?void 0:Wo(e,n);return r===void 0?t:r}function bf(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}var xv=An?An.isConcatSpreadable:void 0;function DA(e){return Je(e)||sa(e)||!!(xv&&e&&e[xv])}function pa(e,n,t,r,o){var u=-1,f=e.length;for(t||(t=DA),o||(o=[]);++u<f;){var p=e[u];n>0&&t(p)?n>1?pa(p,n-1,t,r,o):bf(o,p):r||(o[o.length]=p)}return o}function Cv(e){var n=e==null?0:e.length;return n?pa(e,1):[]}function Sv(e){return uv(pv(e,void 0,Cv),e+"")}var jA=kv(Object.getPrototypeOf,Object),$f=jA,BA="[object Object]",HA=Function.prototype,zA=Object.prototype,Av=HA.toString,WA=zA.hasOwnProperty,GA=Av.call(Object);function Tl(e){if(!Dn(e)||Hr(e)!=BA)return!1;var n=$f(e);if(n===null)return!0;var t=WA.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Av.call(t)==GA}function Tv(e,n,t){var r=-1,o=e.length;n<0&&(n=-n>o?0:o+n),t=t>o?o:t,t<0&&(t+=o),o=n>t?0:t-n>>>0,n>>>=0;for(var u=Array(o);++r<o;)u[r]=e[r+n];return u}function Ol(e,n,t){var r=e.length;return t=t===void 0?r:t,!n&&t>=r?e:Tv(e,n,t)}var KA="\\ud800-\\udfff",UA="\\u0300-\\u036f",YA="\\ufe20-\\ufe2f",qA="\\u20d0-\\u20ff",JA=UA+YA+qA,XA="\\ufe0e\\ufe0f",ZA="\\u200d",QA=RegExp("["+ZA+KA+JA+XA+"]");function Ov(e){return QA.test(e)}function VA(e){return e.split("")}var Ev="\\ud800-\\udfff",eT="\\u0300-\\u036f",tT="\\ufe20-\\ufe2f",nT="\\u20d0-\\u20ff",rT=eT+tT+nT,iT="\\ufe0e\\ufe0f",aT="["+Ev+"]",kf="["+rT+"]",wf="\\ud83c[\\udffb-\\udfff]",oT="(?:"+kf+"|"+wf+")",Fv="[^"+Ev+"]",Mv="(?:\\ud83c[\\udde6-\\uddff]){2}",Pv="[\\ud800-\\udbff][\\udc00-\\udfff]",sT="\\u200d",Lv=oT+"?",Nv="["+iT+"]?",lT="(?:"+sT+"(?:"+[Fv,Mv,Pv].join("|")+")"+Nv+Lv+")*",uT=Nv+Lv+lT,cT="(?:"+[Fv+kf+"?",kf,Mv,Pv,aT].join("|")+")",fT=RegExp(wf+"(?="+wf+")|"+cT+uT,"g");function dT(e){return e.match(fT)||[]}function xi(e){return Ov(e)?dT(e):VA(e)}function pT(e){return function(n){n=vr(n);var t=Ov(n)?xi(n):void 0,r=t?t[0]:n.charAt(0),o=t?Ol(t,1).join(""):n.slice(1);return r[e]()+o}}var hT=pT("toUpperCase"),_T=hT;function Rv(e,n,t,r){var o=-1,u=e==null?0:e.length;for(r&&u&&(t=e[++o]);++o<u;)t=n(t,e[o],o,e);return t}function vT(e){return function(n){return e==null?void 0:e[n]}}var mT={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},gT=vT(mT),yT=gT,bT=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$T="\\u0300-\\u036f",kT="\\ufe20-\\ufe2f",wT="\\u20d0-\\u20ff",xT=$T+kT+wT,CT="["+xT+"]",ST=RegExp(CT,"g");function AT(e){return e=vr(e),e&&e.replace(bT,yT).replace(ST,"")}var TT=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function OT(e){return e.match(TT)||[]}var ET=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FT(e){return ET.test(e)}var Iv="\\ud800-\\udfff",MT="\\u0300-\\u036f",PT="\\ufe20-\\ufe2f",LT="\\u20d0-\\u20ff",NT=MT+PT+LT,Dv="\\u2700-\\u27bf",jv="a-z\\xdf-\\xf6\\xf8-\\xff",RT="\\xac\\xb1\\xd7\\xf7",IT="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",DT="\\u2000-\\u206f",jT=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bv="A-Z\\xc0-\\xd6\\xd8-\\xde",BT="\\ufe0e\\ufe0f",Hv=RT+IT+DT+jT,zv="['\u2019]",Wv="["+Hv+"]",HT="["+NT+"]",Gv="\\d+",zT="["+Dv+"]",Kv="["+jv+"]",Uv="[^"+Iv+Hv+Gv+Dv+jv+Bv+"]",WT="\\ud83c[\\udffb-\\udfff]",GT="(?:"+HT+"|"+WT+")",KT="[^"+Iv+"]",Yv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",ha="["+Bv+"]",UT="\\u200d",Jv="(?:"+Kv+"|"+Uv+")",YT="(?:"+ha+"|"+Uv+")",Xv="(?:"+zv+"(?:d|ll|m|re|s|t|ve))?",Zv="(?:"+zv+"(?:D|LL|M|RE|S|T|VE))?",Qv=GT+"?",Vv="["+BT+"]?",qT="(?:"+UT+"(?:"+[KT,Yv,qv].join("|")+")"+Vv+Qv+")*",JT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",XT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ZT=Vv+Qv+qT,QT="(?:"+[zT,Yv,qv].join("|")+")"+ZT,VT=RegExp([ha+"?"+Kv+"+"+Xv+"(?="+[Wv,ha,"$"].join("|")+")",YT+"+"+Zv+"(?="+[Wv,ha+Jv,"$"].join("|")+")",ha+"?"+Jv+"+"+Xv,ha+"+"+Zv,XT,JT,Gv,QT].join("|"),"g");function eO(e){return e.match(VT)||[]}function tO(e,n,t){return e=vr(e),n=t?void 0:n,n===void 0?FT(e)?eO(e):OT(e):e.match(n)||[]}var nO="['\u2019]",rO=RegExp(nO,"g");function iO(e){return function(n){return Rv(tO(AT(n).replace(rO,"")),e,"")}}function em(e,n,t){return e===e&&(t!==void 0&&(e=e<=t?e:t),n!==void 0&&(e=e>=n?e:n)),e}function aO(){this.__data__=new hr,this.size=0}function oO(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}function sO(e){return this.__data__.get(e)}function lO(e){return this.__data__.has(e)}var uO=200;function cO(e,n){var t=this.__data__;if(t instanceof hr){var r=t.__data__;if(!zo||r.length<uO-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new _r(r)}return t.set(e,n),this.size=t.size,this}function jn(e){var n=this.__data__=new hr(e);this.size=n.size}jn.prototype.clear=aO,jn.prototype.delete=oO,jn.prototype.get=sO,jn.prototype.has=lO,jn.prototype.set=cO;function fO(e,n){return e&&zr(n,Zn(n),e)}function dO(e,n){return e&&zr(n,ca(n),e)}var tm=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nm=tm&&typeof module=="object"&&module&&!module.nodeType&&module,pO=nm&&nm.exports===tm,rm=pO?In.Buffer:void 0,im=rm?rm.allocUnsafe:void 0;function am(e,n){if(n)return e.slice();var t=e.length,r=im?im(t):new e.constructor(t);return e.copy(r),r}function om(e,n){for(var t=-1,r=e==null?0:e.length,o=0,u=[];++t<r;){var f=e[t];n(f,t,e)&&(u[o++]=f)}return u}function sm(){return[]}var hO=Object.prototype,_O=hO.propertyIsEnumerable,lm=Object.getOwnPropertySymbols,vO=lm?function(e){return e==null?[]:(e=Object(e),om(lm(e),function(n){return _O.call(e,n)}))}:sm,xf=vO;function mO(e,n){return zr(e,xf(e),n)}var gO=Object.getOwnPropertySymbols,yO=gO?function(e){for(var n=[];e;)bf(n,xf(e)),e=$f(e);return n}:sm,um=yO;function bO(e,n){return zr(e,um(e),n)}function cm(e,n,t){var r=n(e);return Je(e)?r:bf(r,t(e))}function Cf(e){return cm(e,Zn,xf)}function Sf(e){return cm(e,ca,um)}var $O=ki(In,"DataView"),Af=$O,kO=ki(In,"Promise"),Tf=kO,wO=ki(In,"Set"),_a=wO,fm="[object Map]",xO="[object Object]",dm="[object Promise]",pm="[object Set]",hm="[object WeakMap]",_m="[object DataView]",CO=$i(Af),SO=$i(zo),AO=$i(Tf),TO=$i(_a),OO=$i(pf),Ci=Hr;(Af&&Ci(new Af(new ArrayBuffer(1)))!=_m||zo&&Ci(new zo)!=fm||Tf&&Ci(Tf.resolve())!=dm||_a&&Ci(new _a)!=pm||pf&&Ci(new pf)!=hm)&&(Ci=function(e){var n=Hr(e),t=n==xO?e.constructor:void 0,r=t?$i(t):"";if(r)switch(r){case CO:return _m;case SO:return fm;case AO:return dm;case TO:return pm;case OO:return hm}return n});var va=Ci,EO=Object.prototype,FO=EO.hasOwnProperty;function MO(e){var n=e.length,t=new e.constructor(n);return n&&typeof e[0]=="string"&&FO.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var PO=In.Uint8Array,El=PO;function Of(e){var n=new e.constructor(e.byteLength);return new El(n).set(new El(e)),n}function LO(e,n){var t=n?Of(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var NO=/\w*$/;function RO(e){var n=new e.constructor(e.source,NO.exec(e));return n.lastIndex=e.lastIndex,n}var vm=An?An.prototype:void 0,mm=vm?vm.valueOf:void 0;function IO(e){return mm?Object(mm.call(e)):{}}function gm(e,n){var t=n?Of(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var DO="[object Boolean]",jO="[object Date]",BO="[object Map]",HO="[object Number]",zO="[object RegExp]",WO="[object Set]",GO="[object String]",KO="[object Symbol]",UO="[object ArrayBuffer]",YO="[object DataView]",qO="[object Float32Array]",JO="[object Float64Array]",XO="[object Int8Array]",ZO="[object Int16Array]",QO="[object Int32Array]",VO="[object Uint8Array]",eE="[object Uint8ClampedArray]",tE="[object Uint16Array]",nE="[object Uint32Array]";function rE(e,n,t){var r=e.constructor;switch(n){case UO:return Of(e);case DO:case jO:return new r(+e);case YO:return LO(e,t);case qO:case JO:case XO:case ZO:case QO:case VO:case eE:case tE:case nE:return gm(e,t);case BO:return new r;case HO:case GO:return new r(e);case zO:return RO(e);case WO:return new r;case KO:return IO(e)}}function ym(e){return typeof e.constructor=="function"&&!Do(e)?DC($f(e)):{}}var iE="[object Map]";function aE(e){return Dn(e)&&va(e)==iE}var bm=ua&&ua.isMap,oE=bm?jo(bm):aE,sE=oE,lE="[object Set]";function uE(e){return Dn(e)&&va(e)==lE}var $m=ua&&ua.isSet,cE=$m?jo($m):uE,fE=cE,dE=1,pE=2,hE=4,km="[object Arguments]",_E="[object Array]",vE="[object Boolean]",mE="[object Date]",gE="[object Error]",wm="[object Function]",yE="[object GeneratorFunction]",bE="[object Map]",$E="[object Number]",xm="[object Object]",kE="[object RegExp]",wE="[object Set]",xE="[object String]",CE="[object Symbol]",SE="[object WeakMap]",AE="[object ArrayBuffer]",TE="[object DataView]",OE="[object Float32Array]",EE="[object Float64Array]",FE="[object Int8Array]",ME="[object Int16Array]",PE="[object Int32Array]",LE="[object Uint8Array]",NE="[object Uint8ClampedArray]",RE="[object Uint16Array]",IE="[object Uint32Array]",it={};it[km]=it[_E]=it[AE]=it[TE]=it[vE]=it[mE]=it[OE]=it[EE]=it[FE]=it[ME]=it[PE]=it[bE]=it[$E]=it[xm]=it[kE]=it[wE]=it[xE]=it[CE]=it[LE]=it[NE]=it[RE]=it[IE]=!0,it[gE]=it[wm]=it[SE]=!1;function Go(e,n,t,r,o,u){var f,p=n&dE,_=n&pE,v=n&hE;if(t&&(f=o?t(e,r,o,u):t(e)),f!==void 0)return f;if(!at(e))return e;var k=Je(e);if(k){if(f=MO(e),!p)return lv(e,f)}else{var w=va(e),x=w==wm||w==yE;if(la(e))return am(e,p);if(w==xm||w==km||x&&!o){if(f=_||x?{}:ym(e),!p)return _?bO(e,dO(f,e)):mO(e,fO(f,e))}else{if(!it[w])return o?e:{};f=rE(e,w,p)}}u||(u=new jn);var M=u.get(e);if(M)return M;u.set(e,f),fE(e)?e.forEach(function(q){f.add(Go(q,n,t,q,e,u))}):sE(e)&&e.forEach(function(q,j){f.set(j,Go(q,n,t,j,e,u))});var z=v?_?Sf:Cf:_?ca:Zn,ie=k?void 0:z(e);return cv(ie||e,function(q,j){ie&&(j=q,q=e[j]),wl(f,j,Go(q,n,t,j,e,u))}),f}var DE=1,jE=4;function Fl(e){return Go(e,DE|jE)}var BE="__lodash_hash_undefined__";function HE(e){return this.__data__.set(e,BE),this}function zE(e){return this.__data__.has(e)}function ma(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new _r;++n<t;)this.add(e[n])}ma.prototype.add=ma.prototype.push=HE,ma.prototype.has=zE;function Cm(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function Ef(e,n){return e.has(n)}var WE=1,GE=2;function Sm(e,n,t,r,o,u){var f=t&WE,p=e.length,_=n.length;if(p!=_&&!(f&&_>p))return!1;var v=u.get(e),k=u.get(n);if(v&&k)return v==n&&k==e;var w=-1,x=!0,M=t&GE?new ma:void 0;for(u.set(e,n),u.set(n,e);++w<p;){var z=e[w],ie=n[w];if(r)var q=f?r(ie,z,w,n,e,u):r(z,ie,w,e,n,u);if(q!==void 0){if(q)continue;x=!1;break}if(M){if(!Cm(n,function(j,D){if(!Ef(M,D)&&(z===j||o(z,j,t,r,u)))return M.push(D)})){x=!1;break}}else if(!(z===ie||o(z,ie,t,r,u))){x=!1;break}}return u.delete(e),u.delete(n),x}function KE(e){var n=-1,t=Array(e.size);return e.forEach(function(r,o){t[++n]=[o,r]}),t}function Ff(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var UE=1,YE=2,qE="[object Boolean]",JE="[object Date]",XE="[object Error]",ZE="[object Map]",QE="[object Number]",VE="[object RegExp]",eF="[object Set]",tF="[object String]",nF="[object Symbol]",rF="[object ArrayBuffer]",iF="[object DataView]",Am=An?An.prototype:void 0,Mf=Am?Am.valueOf:void 0;function aF(e,n,t,r,o,u,f){switch(t){case iF:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case rF:return!(e.byteLength!=n.byteLength||!u(new El(e),new El(n)));case qE:case JE:case QE:return Ro(+e,+n);case XE:return e.name==n.name&&e.message==n.message;case VE:case tF:return e==n+"";case ZE:var p=KE;case eF:var _=r&UE;if(p||(p=Ff),e.size!=n.size&&!_)return!1;var v=f.get(e);if(v)return v==n;r|=YE,f.set(e,n);var k=Sm(p(e),p(n),r,o,u,f);return f.delete(e),k;case nF:if(Mf)return Mf.call(e)==Mf.call(n)}return!1}var oF=1,sF=Object.prototype,lF=sF.hasOwnProperty;function uF(e,n,t,r,o,u){var f=t&oF,p=Cf(e),_=p.length,v=Cf(n),k=v.length;if(_!=k&&!f)return!1;for(var w=_;w--;){var x=p[w];if(!(f?x in n:lF.call(n,x)))return!1}var M=u.get(e),z=u.get(n);if(M&&z)return M==n&&z==e;var ie=!0;u.set(e,n),u.set(n,e);for(var q=f;++w<_;){x=p[w];var j=e[x],D=n[x];if(r)var B=f?r(D,j,x,n,e,u):r(j,D,x,e,n,u);if(!(B===void 0?j===D||o(j,D,t,r,u):B)){ie=!1;break}q||(q=x=="constructor")}if(ie&&!q){var Y=e.constructor,oe=n.constructor;Y!=oe&&"constructor"in e&&"constructor"in n&&!(typeof Y=="function"&&Y instanceof Y&&typeof oe=="function"&&oe instanceof oe)&&(ie=!1)}return u.delete(e),u.delete(n),ie}var cF=1,Tm="[object Arguments]",Om="[object Array]",Ml="[object Object]",fF=Object.prototype,Em=fF.hasOwnProperty;function dF(e,n,t,r,o,u){var f=Je(e),p=Je(n),_=f?Om:va(e),v=p?Om:va(n);_=_==Tm?Ml:_,v=v==Tm?Ml:v;var k=_==Ml,w=v==Ml,x=_==v;if(x&&la(e)){if(!la(n))return!1;f=!0,k=!1}if(x&&!k)return u||(u=new jn),f||Cl(e)?Sm(e,n,t,r,o,u):aF(e,n,_,t,r,o,u);if(!(t&cF)){var M=k&&Em.call(e,"__wrapped__"),z=w&&Em.call(n,"__wrapped__");if(M||z){var ie=M?e.value():e,q=z?n.value():n;return u||(u=new jn),o(ie,q,t,r,u)}}return x?(u||(u=new jn),uF(e,n,t,r,o,u)):!1}function Ko(e,n,t,r,o){return e===n?!0:e==null||n==null||!Dn(e)&&!Dn(n)?e!==e&&n!==n:dF(e,n,t,r,Ko,o)}var pF=1,hF=2;function _F(e,n,t,r){var o=t.length,u=o,f=!r;if(e==null)return!u;for(e=Object(e);o--;){var p=t[o];if(f&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++o<u;){p=t[o];var _=p[0],v=e[_],k=p[1];if(f&&p[2]){if(v===void 0&&!(_ in e))return!1}else{var w=new jn;if(r)var x=r(v,k,_,e,n,w);if(!(x===void 0?Ko(k,v,pF|hF,r,w):x))return!1}}return!0}function Fm(e){return e===e&&!at(e)}function vF(e){for(var n=Zn(e),t=n.length;t--;){var r=n[t],o=e[r];n[t]=[r,o,Fm(o)]}return n}function Mm(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==void 0||e in Object(t))}}function mF(e){var n=vF(e);return n.length==1&&n[0][2]?Mm(n[0][0],n[0][1]):function(t){return t===e||_F(t,e,n)}}function gF(e,n){return e!=null&&n in Object(e)}function yF(e,n,t){n=fa(n,e);for(var r=-1,o=n.length,u=!1;++r<o;){var f=da(n[r]);if(!(u=e!=null&&t(e,f)))break;e=e[f]}return u||++r!=o?u:(o=e==null?0:e.length,!!o&&_f(o)&&kl(f,o)&&(Je(e)||sa(e)))}function Pm(e,n){return e!=null&&yF(e,n,gF)}var bF=1,$F=2;function kF(e,n){return gf(e)&&Fm(n)?Mm(da(e),n):function(t){var r=un(t,e);return r===void 0&&r===n?Pm(t,e):Ko(n,r,bF|$F)}}function wF(e){return function(n){return n==null?void 0:n[e]}}function xF(e){return function(n){return Wo(n,e)}}function CF(e){return gf(e)?wF(da(e)):xF(e)}function zt(e){return typeof e=="function"?e:e==null?Lo:typeof e=="object"?Je(e)?kF(e[0],e[1]):mF(e):CF(e)}function SF(e,n,t,r){for(var o=-1,u=e==null?0:e.length;++o<u;){var f=e[o];n(r,f,t(f),e)}return r}function AF(e){return function(n,t,r){for(var o=-1,u=Object(n),f=r(n),p=f.length;p--;){var _=f[e?p:++o];if(t(u[_],_,u)===!1)break}return n}}var TF=AF(),Lm=TF;function Pf(e,n){return e&&Lm(e,n,Zn)}function OF(e,n){return function(t,r){if(t==null)return t;if(!Xn(t))return e(t,r);for(var o=t.length,u=n?o:-1,f=Object(t);(n?u--:++u<o)&&r(f[u],u,f)!==!1;);return t}}var EF=OF(Pf),Si=EF;function FF(e,n,t,r){return Si(e,function(o,u,f){n(r,o,t(o),f)}),r}function Nm(e,n){return function(t,r){var o=Je(t)?SF:FF,u=n?n():{};return o(t,e,zt(r),u)}}var MF=function(){return In.Date.now()},Lf=MF,PF="Expected a function",LF=Math.max,NF=Math.min;function ga(e,n,t){var r,o,u,f,p,_,v=0,k=!1,w=!1,x=!0;if(typeof e!="function")throw new TypeError(PF);n=ff(n)||0,at(t)&&(k=!!t.leading,w="maxWait"in t,u=w?LF(ff(t.maxWait)||0,n):u,x="trailing"in t?!!t.trailing:x);function M(te){var le=r,xe=o;return r=o=void 0,v=te,f=e.apply(xe,le),f}function z(te){return v=te,p=setTimeout(j,n),k?M(te):f}function ie(te){var le=te-_,xe=te-v,Ce=n-le;return w?NF(Ce,u-xe):Ce}function q(te){var le=te-_,xe=te-v;return _===void 0||le>=n||le<0||w&&xe>=u}function j(){var te=Lf();if(q(te))return D(te);p=setTimeout(j,ie(te))}function D(te){return p=void 0,x&&r?M(te):(r=o=void 0,f)}function B(){p!==void 0&&clearTimeout(p),v=0,r=_=o=p=void 0}function Y(){return p===void 0?f:D(Lf())}function oe(){var te=Lf(),le=q(te);if(r=arguments,o=this,_=te,le){if(p===void 0)return z(_);if(w)return clearTimeout(p),p=setTimeout(j,n),M(_)}return p===void 0&&(p=setTimeout(j,n)),f}return oe.cancel=B,oe.flush=Y,oe}function Nf(e,n,t){(t!==void 0&&!Ro(e[n],t)||t===void 0&&!(n in e))&&oa(e,n,t)}function Uo(e){return Dn(e)&&Xn(e)}function Rf(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function RF(e){return zr(e,ca(e))}function IF(e,n,t,r,o,u,f){var p=Rf(e,t),_=Rf(n,t),v=f.get(_);if(v){Nf(e,t,v);return}var k=u?u(p,_,t+"",e,n,f):void 0,w=k===void 0;if(w){var x=Je(_),M=!x&&la(_),z=!x&&!M&&Cl(_);k=_,x||M||z?Je(p)?k=p:Uo(p)?k=lv(p):M?(w=!1,k=am(_,!0)):z?(w=!1,k=gm(_,!0)):k=[]:Tl(_)||sa(_)?(k=p,sa(p)?k=RF(p):(!at(p)||No(p))&&(k=ym(_))):w=!1}w&&(f.set(_,k),o(k,_,r,u,f),f.delete(_)),Nf(e,t,k)}function Rm(e,n,t,r,o){e!==n&&Lm(n,function(u,f){if(o||(o=new jn),at(u))IF(e,n,f,t,Rm,r,o);else{var p=r?r(Rf(e,f),u,f+"",e,n,o):void 0;p===void 0&&(p=u),Nf(e,f,p)}},ca)}function Im(e,n,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(n,e[r]))return!0;return!1}var DF=200;function jF(e,n,t,r){var o=-1,u=fv,f=!0,p=e.length,_=[],v=n.length;if(!p)return _;t&&(n=pr(n,jo(t))),r?(u=Im,f=!1):n.length>=DF&&(u=Ef,f=!1,n=new ma(n));e:for(;++o<p;){var k=e[o],w=t==null?k:t(k);if(k=r||k!==0?k:0,f&&w===w){for(var x=v;x--;)if(n[x]===w)continue e;_.push(k)}else u(n,w,r)||_.push(k)}return _}var BF=xl(function(e,n){return Uo(e)?jF(e,pa(n,1,Uo,!0)):[]}),HF=BF;function Pl(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function zF(e){return typeof e=="function"?e:Lo}function Tn(e,n){var t=Je(e)?cv:Si;return t(e,zF(n))}function WF(e,n,t){e=vr(e),n=yi(n);var r=e.length;t=t===void 0?r:em(bi(t),0,r);var o=t;return t-=n.length,t>=0&&e.slice(t,o)==n}function GF(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function KF(e,n){var t=!0;return Si(e,function(r,o,u){return t=!!n(r,o,u),t}),t}function Ll(e,n,t){var r=Je(e)?GF:KF;return t&&Io(e,n,t)&&(n=void 0),r(e,zt(n))}function UF(e,n){var t=[];return Si(e,function(r,o,u){n(r,o,u)&&t.push(r)}),t}function Wt(e,n){var t=Je(e)?om:UF;return t(e,zt(n))}function YF(e){return function(n,t,r){var o=Object(n);if(!Xn(n)){var u=zt(t);n=Zn(n),t=function(p){return u(o[p],p,o)}}var f=e(n,t,r);return f>-1?o[u?n[f]:f]:void 0}}var qF=Math.max;function Nl(e,n,t){var r=e==null?0:e.length;if(!r)return-1;var o=t==null?0:bi(t);return o<0&&(o=qF(r+o,0)),hf(e,zt(n),o)}var JF=YF(Nl),$t=JF;function XF(e,n,t){var r;return t(e,function(o,u,f){if(n(o,u,f))return r=u,!1}),r}function Rl(e,n){return XF(e,zt(n),Pf)}var ZF=Math.max,QF=Math.min;function VF(e,n,t){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return t!==void 0&&(o=bi(t),o=t<0?ZF(r+o,0):QF(o,r-1)),hf(e,zt(n),o,!0)}function Dm(e,n){var t=-1,r=Xn(e)?Array(e.length):[];return Si(e,function(o,u,f){r[++t]=n(o,u,f)}),r}function vt(e,n){var t=Je(e)?pr:Dm;return t(e,zt(n))}var eM=1/0;function jm(e){var n=e==null?0:e.length;return n?pa(e,eM):[]}var tM=Object.prototype,nM=tM.hasOwnProperty,rM=Nm(function(e,n,t){nM.call(e,t)?e[t].push(n):oa(e,t,[n])}),Bn=rM,iM="[object String]";function On(e){return typeof e=="string"||!Je(e)&&Dn(e)&&Hr(e)==iM}function aM(e,n){return pr(n,function(t){return e[t]})}function Bm(e){return e==null?[]:aM(e,Zn(e))}var oM=Math.max;function Ct(e,n,t,r){e=Xn(e)?e:Bm(e),t=t&&!r?bi(t):0;var o=e.length;return t<0&&(t=oM(o+t,0)),On(e)?t<=o&&e.indexOf(n,t)>-1:!!o&&$l(e,n,t)>-1}function sM(e,n){return n.length<2?e:Wo(e,Tv(n,0,-1))}var lM="[object Map]",uM="[object Set]",cM=Object.prototype,fM=cM.hasOwnProperty;function kt(e){if(e==null)return!0;if(Xn(e)&&(Je(e)||typeof e=="string"||typeof e.splice=="function"||la(e)||Cl(e)||sa(e)))return!e.length;var n=va(e);if(n==lM||n==uM)return!e.size;if(Do(e))return!wv(e).length;for(var t in e)if(fM.call(e,t))return!1;return!0}function Hm(e,n){return Ko(e,n)}function dM(e,n,t){t=typeof t=="function"?t:void 0;var r=t?t(e,n):void 0;return r===void 0?Ko(e,n,void 0,t):!!r}function pM(e){return typeof e=="number"&&e==bi(e)}function mr(e){return e===void 0}var hM=Nm(function(e,n,t){oa(e,t,n)}),_M=hM;function gr(e,n){var t={};return n=zt(n),Pf(e,function(r,o,u){oa(t,o,n(r,o,u))}),t}var vM=vf(function(e,n,t){Rm(e,n,t)}),cn=vM,mM="Expected a function";function gM(e){if(typeof e!="function")throw new TypeError(mM);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function yM(e,n){return n=fa(n,e),e=sM(e,n),e==null||delete e[da(Pl(n))]}function bM(e){return Tl(e)?void 0:e}var $M=1,kM=2,wM=4,xM=Sv(function(e,n){var t={};if(e==null)return t;var r=!1;n=pr(n,function(u){return u=fa(u,e),r||(r=u.length>1),u}),zr(e,Sf(e),t),r&&(t=Go(t,$M|kM|wM,bM));for(var o=n.length;o--;)yM(t,n[o]);return t}),Yo=xM;function zm(e,n,t,r){if(!at(e))return e;n=fa(n,e);for(var o=-1,u=n.length,f=u-1,p=e;p!=null&&++o<u;){var _=da(n[o]),v=t;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(o!=f){var k=p[_];v=r?r(k,_,p):void 0,v===void 0&&(v=at(k)?k:kl(n[o+1])?[]:{})}wl(p,_,v),p=p[_]}return e}function Wm(e,n,t){for(var r=-1,o=n.length,u={};++r<o;){var f=n[r],p=Wo(e,f);t(p,f)&&zm(u,fa(f,e),p)}return u}function yr(e,n){if(e==null)return{};var t=pr(Sf(e),function(r){return[r]});return n=zt(n),Wm(e,t,function(r,o){return n(r,o[0])})}function CM(e,n){return yr(e,gM(zt(n)))}function SM(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}function AM(e,n){if(e!==n){var t=e!==void 0,r=e===null,o=e===e,u=aa(e),f=n!==void 0,p=n===null,_=n===n,v=aa(n);if(!p&&!v&&!u&&e>n||u&&f&&_&&!p&&!v||r&&f&&_||!t&&_||!o)return 1;if(!r&&!u&&!v&&e<n||v&&t&&o&&!r&&!u||p&&t&&o||!f&&o||!_)return-1}return 0}function TM(e,n,t){for(var r=-1,o=e.criteria,u=n.criteria,f=o.length,p=t.length;++r<f;){var _=AM(o[r],u[r]);if(_){if(r>=p)return _;var v=t[r];return _*(v=="desc"?-1:1)}}return e.index-n.index}function Gm(e,n,t){n.length?n=pr(n,function(u){return Je(u)?function(f){return Wo(f,u.length===1?u[0]:u)}:u}):n=[Lo];var r=-1;n=pr(n,jo(zt));var o=Dm(e,function(u,f,p){var _=pr(n,function(v){return v(u)});return{criteria:_,index:++r,value:u}});return SM(o,function(u,f){return TM(u,f,t)})}function Km(e,n,t,r){return e==null?[]:(Je(n)||(n=n==null?[]:[n]),t=r?void 0:t,Je(t)||(t=t==null?[]:[t]),Gm(e,n,t))}function OM(e,n){return Wm(e,n,function(t,r){return Pm(e,r)})}var EM=Sv(function(e,n){return e==null?{}:OM(e,n)}),qo=EM;function FM(e,n,t,r,o){return o(e,function(u,f,p){t=r?(r=!1,u):n(t,u,f,p)}),t}function ya(e,n,t){var r=Je(e)?Rv:FM,o=arguments.length<3;return r(e,zt(n),t,o,Si)}function Um(e,n,t){return e==null?e:zm(e,n,t)}function MM(e,n){var t;return Si(e,function(r,o,u){return t=n(r,o,u),!t}),!!t}function Jo(e,n,t){var r=Je(e)?Cm:MM;return t&&Io(e,n,t)&&(n=void 0),r(e,zt(n))}var PM=xl(function(e,n){if(e==null)return[];var t=n.length;return t>1&&Io(e,n[0],n[1])?n=[]:t>2&&Io(n[0],n[1],n[2])&&(n=[n[0]]),Gm(e,pa(n,1),[])}),ba=PM,LM=iO(function(e,n,t){return e+(t?" ":"")+_T(n)}),If=LM;function br(e,n,t){return e=vr(e),t=t==null?0:em(bi(t),0,e.length),n=yi(n),e.slice(t,t+n.length)==n}function NM(e,n){return n(e),e}var RM="Expected a function";function IM(e,n,t){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(RM);return at(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),ga(e,n,{leading:r,maxWait:n,trailing:o})}function Ym(e,n){for(var t=e.length;t--&&$l(n,e[t],0)>-1;);return t}function qm(e,n){for(var t=-1,r=e.length;++t<r&&$l(n,e[t],0)>-1;);return t}function Jm(e,n,t){if(e=vr(e),e&&(t||n===void 0))return rv(e);if(!e||!(n=yi(n)))return e;var r=xi(e),o=xi(n),u=qm(r,o),f=Ym(r,o)+1;return Ol(r,u,f).join("")}function Df(e,n,t){if(e=vr(e),e&&(t||n===void 0))return e.slice(0,nv(e)+1);if(!e||!(n=yi(n)))return e;var r=xi(e),o=Ym(r,xi(n))+1;return Ol(r,0,o).join("")}var DM=/^\s+/;function jM(e,n,t){if(e=vr(e),e&&(t||n===void 0))return e.replace(DM,"");if(!e||!(n=yi(n)))return e;var r=xi(e),o=qm(r,xi(n));return Ol(r,o).join("")}var BM=1/0,HM=_a&&1/Ff(new _a([,-0]))[1]==BM?function(e){return new _a(e)}:BC,zM=HM,WM=200;function jf(e,n,t){var r=-1,o=fv,u=e.length,f=!0,p=[],_=p;if(t)f=!1,o=Im;else if(u>=WM){var v=n?null:zM(e);if(v)return Ff(v);f=!1,o=Ef,_=new ma}else _=n?[]:p;e:for(;++r<u;){var k=e[r],w=n?n(k):k;if(k=t||k!==0?k:0,f&&w===w){for(var x=_.length;x--;)if(_[x]===w)continue e;n&&_.push(w),p.push(k)}else o(_,w,t)||(_!==p&&_.push(w),p.push(k))}return p}var GM=xl(function(e){var n=Pl(e);return Uo(n)&&(n=void 0),jf(pa(e,1,Uo,!0),zt(n))}),Bf=GM;function Xm(e){return e&&e.length?jf(e):[]}function Zm(e,n){return e&&e.length?jf(e,zt(n)):[]}function KM(e){let{id:n,url:t,csrf:r,route:o}=e;Te.url.options.root=t,Te.http.options.emulateHTTP=!0,Te.http.interceptors.unshift(u=>{if(u.crossOrigin||u.headers.set("X-XSRF-Token",r),!/^((https?:)?\/|{)/.exec(u.url))return Ft(u.params,{templateStyle:n,p:u.url}),u.url=o,f=>(f.status>200&&UM(f)&&(f.statusText=JSON.parse(f.body)),f)})}function UM(e){return(e.headers.get("Content-Type")||"").indexOf("application/json")===0}var $a=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function YM(e){if(e.__esModule)return e;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}function Qm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vm={exports:{}};(function(e){(function(n){var t=/^\s+/,r=/\s+$/,o=0,u=n.round,f=n.min,p=n.max,_=n.random;function v(T,R){if(T=T||"",R=R||{},T instanceof v)return T;if(!(this instanceof v))return new v(T,R);var A=k(T);this._originalInput=T,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=u(100*this._a)/100,this._format=R.format||A.format,this._gradientType=R.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=A.ok,this._tc_id=o++}v.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 T=this.toRgb();return(T.r*299+T.g*587+T.b*114)/1e3},getLuminance:function(){var T=this.toRgb(),R,A,X,de,ce,Oe;return R=T.r/255,A=T.g/255,X=T.b/255,R<=.03928?de=R/12.92:de=n.pow((R+.055)/1.055,2.4),A<=.03928?ce=A/12.92:ce=n.pow((A+.055)/1.055,2.4),X<=.03928?Oe=X/12.92:Oe=n.pow((X+.055)/1.055,2.4),.2126*de+.7152*ce+.0722*Oe},setAlpha:function(T){return this._a=ge(T),this._roundA=u(100*this._a)/100,this},toHsv:function(){var T=z(this._r,this._g,this._b);return{h:T.h*360,s:T.s,v:T.v,a:this._a}},toHsvString:function(){var T=z(this._r,this._g,this._b),R=u(T.h*360),A=u(T.s*100),X=u(T.v*100);return this._a==1?"hsv("+R+", "+A+"%, "+X+"%)":"hsva("+R+", "+A+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var T=x(this._r,this._g,this._b);return{h:T.h*360,s:T.s,l:T.l,a:this._a}},toHslString:function(){var T=x(this._r,this._g,this._b),R=u(T.h*360),A=u(T.s*100),X=u(T.l*100);return this._a==1?"hsl("+R+", "+A+"%, "+X+"%)":"hsla("+R+", "+A+"%, "+X+"%, "+this._roundA+")"},toHex:function(T){return q(this._r,this._g,this._b,T)},toHexString:function(T){return"#"+this.toHex(T)},toHex8:function(T){return j(this._r,this._g,this._b,this._a,T)},toHex8String:function(T){return"#"+this.toHex8(T)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(he(this._r,255)*100)+"%",g:u(he(this._g,255)*100)+"%",b:u(he(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(he(this._r,255)*100)+"%, "+u(he(this._g,255)*100)+"%, "+u(he(this._b,255)*100)+"%)":"rgba("+u(he(this._r,255)*100)+"%, "+u(he(this._g,255)*100)+"%, "+u(he(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[q(this._r,this._g,this._b,!0)]||!1},toFilter:function(T){var R="#"+D(this._r,this._g,this._b,this._a),A=R,X=this._gradientType?"GradientType = 1, ":"";if(T){var de=v(T);A="#"+D(de._r,de._g,de._b,de._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+R+",endColorstr="+A+")"},toString:function(T){var R=!!T;T=T||this._format;var A=!1,X=this._a<1&&this._a>=0,de=!R&&X&&(T==="hex"||T==="hex6"||T==="hex3"||T==="hex4"||T==="hex8"||T==="name");return de?T==="name"&&this._a===0?this.toName():this.toRgbString():(T==="rgb"&&(A=this.toRgbString()),T==="prgb"&&(A=this.toPercentageRgbString()),(T==="hex"||T==="hex6")&&(A=this.toHexString()),T==="hex3"&&(A=this.toHexString(!0)),T==="hex4"&&(A=this.toHex8String(!0)),T==="hex8"&&(A=this.toHex8String()),T==="name"&&(A=this.toName()),T==="hsl"&&(A=this.toHslString()),T==="hsv"&&(A=this.toHsvString()),A||this.toHexString())},clone:function(){return v(this.toString())},_applyModification:function(T,R){var A=T.apply(null,[this].concat([].slice.call(R)));return this._r=A._r,this._g=A._g,this._b=A._b,this.setAlpha(A._a),this},lighten:function(){return this._applyModification(te,arguments)},brighten:function(){return this._applyModification(le,arguments)},darken:function(){return this._applyModification(xe,arguments)},desaturate:function(){return this._applyModification(B,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(oe,arguments)},spin:function(){return this._applyModification(Ce,arguments)},_applyCombination:function(T,R){return T.apply(null,[this].concat([].slice.call(R)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(pe,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(fe,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},v.fromRatio=function(T,R){if(typeof T=="object"){var A={};for(var X in T)T.hasOwnProperty(X)&&(X==="a"?A[X]=T[X]:A[X]=me(T[X]));T=A}return v(T,R)};function k(T){var R={r:0,g:0,b:0},A=1,X=null,de=null,ce=null,Oe=!1,Qe=!1;return typeof T=="string"&&(T=Le(T)),typeof T=="object"&&(Ie(T.r)&&Ie(T.g)&&Ie(T.b)?(R=w(T.r,T.g,T.b),Oe=!0,Qe=String(T.r).substr(-1)==="%"?"prgb":"rgb"):Ie(T.h)&&Ie(T.s)&&Ie(T.v)?(X=me(T.s),de=me(T.v),R=ie(T.h,X,de),Oe=!0,Qe="hsv"):Ie(T.h)&&Ie(T.s)&&Ie(T.l)&&(X=me(T.s),ce=me(T.l),R=M(T.h,X,ce),Oe=!0,Qe="hsl"),T.hasOwnProperty("a")&&(A=T.a)),A=ge(A),{ok:Oe,format:T.format||Qe,r:f(255,p(R.r,0)),g:f(255,p(R.g,0)),b:f(255,p(R.b,0)),a:A}}function w(T,R,A){return{r:he(T,255)*255,g:he(R,255)*255,b:he(A,255)*255}}function x(T,R,A){T=he(T,255),R=he(R,255),A=he(A,255);var X=p(T,R,A),de=f(T,R,A),ce,Oe,Qe=(X+de)/2;if(X==de)ce=Oe=0;else{var Ne=X-de;switch(Oe=Qe>.5?Ne/(2-X-de):Ne/(X+de),X){case T:ce=(R-A)/Ne+(R<A?6:0);break;case R:ce=(A-T)/Ne+2;break;case A:ce=(T-R)/Ne+4;break}ce/=6}return{h:ce,s:Oe,l:Qe}}function M(T,R,A){var X,de,ce;T=he(T,360),R=he(R,100),A=he(A,100);function Oe(I,re,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?I+(re-I)*6*W:W<1/2?re:W<2/3?I+(re-I)*(2/3-W)*6:I}if(R===0)X=de=ce=A;else{var Qe=A<.5?A*(1+R):A+R-A*R,Ne=2*A-Qe;X=Oe(Ne,Qe,T+1/3),de=Oe(Ne,Qe,T),ce=Oe(Ne,Qe,T-1/3)}return{r:X*255,g:de*255,b:ce*255}}function z(T,R,A){T=he(T,255),R=he(R,255),A=he(A,255);var X=p(T,R,A),de=f(T,R,A),ce,Oe,Qe=X,Ne=X-de;if(Oe=X===0?0:Ne/X,X==de)ce=0;else{switch(X){case T:ce=(R-A)/Ne+(R<A?6:0);break;case R:ce=(A-T)/Ne+2;break;case A:ce=(T-R)/Ne+4;break}ce/=6}return{h:ce,s:Oe,v:Qe}}function ie(T,R,A){T=he(T,360)*6,R=he(R,100),A=he(A,100);var X=n.floor(T),de=T-X,ce=A*(1-R),Oe=A*(1-de*R),Qe=A*(1-(1-de)*R),Ne=X%6,I=[A,Oe,ce,ce,Qe,A][Ne],re=[Qe,A,A,Oe,ce,ce][Ne],W=[ce,ce,Qe,A,A,Oe][Ne];return{r:I*255,g:re*255,b:W*255}}function q(T,R,A,X){var de=[Re(u(T).toString(16)),Re(u(R).toString(16)),Re(u(A).toString(16))];return X&&de[0].charAt(0)==de[0].charAt(1)&&de[1].charAt(0)==de[1].charAt(1)&&de[2].charAt(0)==de[2].charAt(1)?de[0].charAt(0)+de[1].charAt(0)+de[2].charAt(0):de.join("")}function j(T,R,A,X,de){var ce=[Re(u(T).toString(16)),Re(u(R).toString(16)),Re(u(A).toString(16)),Re(ye(X))];return de&&ce[0].charAt(0)==ce[0].charAt(1)&&ce[1].charAt(0)==ce[1].charAt(1)&&ce[2].charAt(0)==ce[2].charAt(1)&&ce[3].charAt(0)==ce[3].charAt(1)?ce[0].charAt(0)+ce[1].charAt(0)+ce[2].charAt(0)+ce[3].charAt(0):ce.join("")}function D(T,R,A,X){var de=[Re(ye(X)),Re(u(T).toString(16)),Re(u(R).toString(16)),Re(u(A).toString(16))];return de.join("")}v.equals=function(T,R){return!T||!R?!1:v(T).toRgbString()==v(R).toRgbString()},v.random=function(){return v.fromRatio({r:_(),g:_(),b:_()})};function B(T,R){R=R===0?0:R||10;var A=v(T).toHsl();return A.s-=R/100,A.s=Pe(A.s),v(A)}function Y(T,R){R=R===0?0:R||10;var A=v(T).toHsl();return A.s+=R/100,A.s=Pe(A.s),v(A)}function oe(T){return v(T).desaturate(100)}function te(T,R){R=R===0?0:R||10;var A=v(T).toHsl();return A.l+=R/100,A.l=Pe(A.l),v(A)}function le(T,R){R=R===0?0:R||10;var A=v(T).toRgb();return A.r=p(0,f(255,A.r-u(255*-(R/100)))),A.g=p(0,f(255,A.g-u(255*-(R/100)))),A.b=p(0,f(255,A.b-u(255*-(R/100)))),v(A)}function xe(T,R){R=R===0?0:R||10;var A=v(T).toHsl();return A.l-=R/100,A.l=Pe(A.l),v(A)}function Ce(T,R){var A=v(T).toHsl(),X=(A.h+R)%360;return A.h=X<0?360+X:X,v(A)}function pe(T){var R=v(T).toHsl();return R.h=(R.h+180)%360,v(R)}function fe(T){var R=v(T).toHsl(),A=R.h;return[v(T),v({h:(A+120)%360,s:R.s,l:R.l}),v({h:(A+240)%360,s:R.s,l:R.l})]}function P(T){var R=v(T).toHsl(),A=R.h;return[v(T),v({h:(A+90)%360,s:R.s,l:R.l}),v({h:(A+180)%360,s:R.s,l:R.l}),v({h:(A+270)%360,s:R.s,l:R.l})]}function C(T){var R=v(T).toHsl(),A=R.h;return[v(T),v({h:(A+72)%360,s:R.s,l:R.l}),v({h:(A+216)%360,s:R.s,l:R.l})]}function F(T,R,A){R=R||6,A=A||30;var X=v(T).toHsl(),de=360/A,ce=[v(T)];for(X.h=(X.h-(de*R>>1)+720)%360;--R;)X.h=(X.h+de)%360,ce.push(v(X));return ce}function $(T,R){R=R||6;for(var A=v(T).toHsv(),X=A.h,de=A.s,ce=A.v,Oe=[],Qe=1/R;R--;)Oe.push(v({h:X,s:de,v:ce})),ce=(ce+Qe)%1;return Oe}v.mix=function(T,R,A){A=A===0?0:A||50;var X=v(T).toRgb(),de=v(R).toRgb(),ce=A/100,Oe={r:(de.r-X.r)*ce+X.r,g:(de.g-X.g)*ce+X.g,b:(de.b-X.b)*ce+X.b,a:(de.a-X.a)*ce+X.a};return v(Oe)},v.readability=function(T,R){var A=v(T),X=v(R);return(n.max(A.getLuminance(),X.getLuminance())+.05)/(n.min(A.getLuminance(),X.getLuminance())+.05)},v.isReadable=function(T,R,A){var X=v.readability(T,R),de,ce;switch(ce=!1,de=ut(A),de.level+de.size){case"AAsmall":case"AAAlarge":ce=X>=4.5;break;case"AAlarge":ce=X>=3;break;case"AAAsmall":ce=X>=7;break}return ce},v.mostReadable=function(T,R,A){var X=null,de=0,ce,Oe,Qe,Ne;A=A||{},Oe=A.includeFallbackColors,Qe=A.level,Ne=A.size;for(var I=0;I<R.length;I++)ce=v.readability(T,R[I]),ce>de&&(de=ce,X=v(R[I]));return v.isReadable(T,X,{level:Qe,size:Ne})||!Oe?X:(A.includeFallbackColors=!1,v.mostReadable(T,["#fff","#000"],A))};var G=v.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"},H=v.hexNames=ee(G);function ee(T){var R={};for(var A in T)T.hasOwnProperty(A)&&(R[T[A]]=A);return R}function ge(T){return T=parseFloat(T),(isNaN(T)||T<0||T>1)&&(T=1),T}function he(T,R){We(T)&&(T="100%");var A=qe(T);return T=f(R,p(0,parseFloat(T))),A&&(T=parseInt(T*R,10)/100),n.abs(T-R)<1e-6?1:T%R/parseFloat(R)}function Pe(T){return f(1,p(0,T))}function Se(T){return parseInt(T,16)}function We(T){return typeof T=="string"&&T.indexOf(".")!=-1&&parseFloat(T)===1}function qe(T){return typeof T=="string"&&T.indexOf("%")!=-1}function Re(T){return T.length==1?"0"+T:""+T}function me(T){return T<=1&&(T=T*100+"%"),T}function ye(T){return n.round(parseFloat(T)*255).toString(16)}function je(T){return Se(T)/255}var Fe=function(){var T="[-\\+]?\\d+%?",R="[-\\+]?\\d*\\.\\d+%?",A="(?:"+R+")|(?:"+T+")",X="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",de="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?";return{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+de),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+de),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+de),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 Ie(T){return!!Fe.CSS_UNIT.exec(T)}function Le(T){T=T.replace(t,"").replace(r,"").toLowerCase();var R=!1;if(G[T])T=G[T],R=!0;else if(T=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var A;return(A=Fe.rgb.exec(T))?{r:A[1],g:A[2],b:A[3]}:(A=Fe.rgba.exec(T))?{r:A[1],g:A[2],b:A[3],a:A[4]}:(A=Fe.hsl.exec(T))?{h:A[1],s:A[2],l:A[3]}:(A=Fe.hsla.exec(T))?{h:A[1],s:A[2],l:A[3],a:A[4]}:(A=Fe.hsv.exec(T))?{h:A[1],s:A[2],v:A[3]}:(A=Fe.hsva.exec(T))?{h:A[1],s:A[2],v:A[3],a:A[4]}:(A=Fe.hex8.exec(T))?{r:Se(A[1]),g:Se(A[2]),b:Se(A[3]),a:je(A[4]),format:R?"name":"hex8"}:(A=Fe.hex6.exec(T))?{r:Se(A[1]),g:Se(A[2]),b:Se(A[3]),format:R?"name":"hex"}:(A=Fe.hex4.exec(T))?{r:Se(A[1]+""+A[1]),g:Se(A[2]+""+A[2]),b:Se(A[3]+""+A[3]),a:je(A[4]+""+A[4]),format:R?"name":"hex8"}:(A=Fe.hex3.exec(T))?{r:Se(A[1]+""+A[1]),g:Se(A[2]+""+A[2]),b:Se(A[3]+""+A[3]),format:R?"name":"hex"}:!1}function ut(T){var R,A;return T=T||{level:"AA",size:"small"},R=(T.level||"AA").toUpperCase(),A=(T.size||"small").toLowerCase(),R!=="AA"&&R!=="AAA"&&(R="AA"),A!=="small"&&A!=="large"&&(A="small"),{level:R,size:A}}e.exports?e.exports=v:window.tinycolor=v})(Math)})(Vm);var En=Vm.exports;function Hf(e,n){var t=e&&e.a,r;e&&e.hsl?r=En(e.hsl):e&&e.hex&&e.hex.length>0?r=En(e.hex):e&&e.hsv?r=En(e.hsv):e&&e.rgba?r=En(e.rgba):e&&e.rgb?r=En(e.rgb):r=En(e),r&&(r._a===void 0||r._a===null)&&r.setAlpha(t||1);var o=r.toHsl(),u=r.toHsv();return o.s===0&&(u.h=o.h=e.h||e.hsl&&e.hsl.h||n||0),{hsl:o,hex:r.toHexString().toUpperCase(),hex8:r.toHex8String().toUpperCase(),rgba:r.toRgb(),hsv:u,oldHue:e.h||n||o.h,source:e.source,a:e.a||r.getAlpha()}}var qM={props:["value"],data(){return{val:Hf(this.value)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit("input",e)}}},watch:{value(e){this.val=Hf(e)}},methods:{colorChange(e,n){this.oldHue=this.colors.hsl.h,this.colors=Hf(e,n||this.oldHue)},isValidHex(e){return En(e).isValid()},simpleCheckForValidColor(e){for(var n=["r","g","b","a","h","s","l","v"],t=0,r=0,o=0;o<n.length;o++){var u=n[o];e[u]&&(t++,isNaN(e[u])||r++)}if(t===r)return e},paletteUpperCase(e){return e.map(n=>n.toUpperCase())},isTransparent(e){return En(e).getAlpha()===0}}},JM={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(e){if(this.max!==void 0&&+e>this.max)this.$refs.input.value=this.max;else return e}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(e){this.handleChange(e.target.value)},handleChange(e){let n={};n[this.label]=e,n.hex===void 0&&n["#"]===void 0?this.$emit("change",n):e.length>5&&this.$emit("change",n)},handleKeyDown(e){let n=this.val,t=Number(n);if(t){let r=this.arrowOffset||1;e.keyCode===38&&(n=t+r,this.handleChange(n),e.preventDefault()),e.keyCode===40&&(n=t-r,this.handleChange(n),e.preventDefault())}}}};function Z(e,n,t,r,o,u,f,p,_,v){typeof f!="boolean"&&(_=p,p=f,f=!1);const k=typeof t=="function"?t.options:t;e&&e.render&&(k.render=e.render,k.staticRenderFns=e.staticRenderFns,k._compiled=!0,o&&(k.functional=!0)),r&&(k._scopeId=r);let w;if(u?(w=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(x=__VUE_SSR_CONTEXT__),n&&n.call(this,_(x)),x&&x._registeredComponents&&x._registeredComponents.add(u)},k._ssrRegister=w):n&&(w=f?function(x){n.call(this,v(x,this.$root.$options.shadowRoot))}:function(x){n.call(this,p(x))}),w)if(k.functional){const x=k.render;k.render=function(z,ie){return w.call(ie),x(z,ie)}}else{const x=k.beforeCreate;k.beforeCreate=x?[].concat(x,w):[w]}return t}const XM=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function ka(e){return(n,t)=>ZM(n,t)}let zf;const eg={};function ZM(e,n){const t=XM?n.media||"default":e,r=eg[t]||(eg[t]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);let o=n.source;if(n.map&&(o+=`
/*# sourceURL=`+n.map.sources[0]+" */",o+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(n.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",n.media&&r.element.setAttribute("media",n.media),zf===void 0&&(zf=document.head||document.getElementsByTagName("head")[0]),zf.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join(`
`);else{const u=r.ids.size-1,f=document.createTextNode(o),p=r.element.childNodes;p[u]&&r.element.removeChild(p[u]),p.length?r.element.insertBefore(f,p[u]):r.element.appendChild(f)}}}const QM=JM;var VM=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"vc-editable-input"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":e.labelId},domProps:{value:e.val},on:{keydown:e.handleKeyDown,input:[function(r){r.target.composing||(e.val=r.target.value)},e.update]}}),e._v(" "),t("span",{staticClass:"vc-input__label",attrs:{for:e.label,id:e.labelId}},[e._v(e._s(e.labelSpanText))]),e._v(" "),t("span",{staticClass:"vc-input__desc"},[e._v(e._s(e.desc))])])},eP=[];const tP=Z({render:VM,staticRenderFns:eP},function(e){!e||e("data-v-39bf9ef5_0",{source:".vc-editable-input{position:relative}.vc-input__input{padding:0;border:0;outline:0}.vc-input__label{text-transform:capitalize}",map:void 0,media:void 0})},QM,void 0,!1,void 0,!1,ka,void 0,void 0);var Wf=nP;function nP(e,n,t){return n<t?e<n?n:e>t?t:e:e<t?t:e>n?n:e}var tg="Expected a function",ng=0/0,rP="[object Symbol]",iP=/^\s+|\s+$/g,aP=/^[-+]0x[0-9a-f]+$/i,oP=/^0b[01]+$/i,sP=/^0o[0-7]+$/i,lP=parseInt,uP=typeof $a=="object"&&$a&&$a.Object===Object&&$a,cP=typeof self=="object"&&self&&self.Object===Object&&self,fP=uP||cP||Function("return this")(),dP=Object.prototype,pP=dP.toString,hP=Math.max,_P=Math.min,Gf=function(){return fP.Date.now()};function vP(e,n,t){var r,o,u,f,p,_,v=0,k=!1,w=!1,x=!0;if(typeof e!="function")throw new TypeError(tg);n=rg(n)||0,Il(t)&&(k=!!t.leading,w="maxWait"in t,u=w?hP(rg(t.maxWait)||0,n):u,x="trailing"in t?!!t.trailing:x);function M(te){var le=r,xe=o;return r=o=void 0,v=te,f=e.apply(xe,le),f}function z(te){return v=te,p=setTimeout(j,n),k?M(te):f}function ie(te){var le=te-_,xe=te-v,Ce=n-le;return w?_P(Ce,u-xe):Ce}function q(te){var le=te-_,xe=te-v;return _===void 0||le>=n||le<0||w&&xe>=u}function j(){var te=Gf();if(q(te))return D(te);p=setTimeout(j,ie(te))}function D(te){return p=void 0,x&&r?M(te):(r=o=void 0,f)}function B(){p!==void 0&&clearTimeout(p),v=0,r=_=o=p=void 0}function Y(){return p===void 0?f:D(Gf())}function oe(){var te=Gf(),le=q(te);if(r=arguments,o=this,_=te,le){if(p===void 0)return z(_);if(w)return p=setTimeout(j,n),M(_)}return p===void 0&&(p=setTimeout(j,n)),f}return oe.cancel=B,oe.flush=Y,oe}function mP(e,n,t){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(tg);return Il(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),vP(e,n,{leading:r,maxWait:n,trailing:o})}function Il(e){var n=typeof e;return!!e&&(n=="object"||n=="function")}function gP(e){return!!e&&typeof e=="object"}function yP(e){return typeof e=="symbol"||gP(e)&&pP.call(e)==rP}function rg(e){if(typeof e=="number")return e;if(yP(e))return ng;if(Il(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Il(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=e.replace(iP,"");var t=oP.test(e);return t||sP.test(e)?lP(e.slice(2),t?2:8):aP.test(e)?ng:+e}var bP=mP,$P={name:"Saturation",props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-(this.colors.hsv.v*100)+1+100+"%"},pointerLeft(){return this.colors.hsv.s*100+"%"}},methods:{throttle:bP((e,n)=>{e(n)},20,{leading:!0,trailing:!1}),handleChange(e,n){!n&&e.preventDefault();var t=this.$refs.container;if(!!t){var r=t.clientWidth,o=t.clientHeight,u=t.getBoundingClientRect().left+window.pageXOffset,f=t.getBoundingClientRect().top+window.pageYOffset,p=e.pageX||(e.touches?e.touches[0].pageX:0),_=e.pageY||(e.touches?e.touches[0].pageY:0),v=Wf(p-u,0,r),k=Wf(_-f,0,o),w=v/r,x=Wf(-(k/o)+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:w,v:x,a:this.colors.hsv.a,source:"hsva"})}},onChange(e){this.$emit("change",e)},handleMouseDown(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const kP=$P;var wP=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"container",staticClass:"vc-saturation",style:{background:e.bgColor},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[t("div",{staticClass:"vc-saturation--white"}),e._v(" "),t("div",{staticClass:"vc-saturation--black"}),e._v(" "),t("div",{staticClass:"vc-saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[t("div",{staticClass:"vc-saturation-circle"})])])},xP=[];const CP=Z({render:wP,staticRenderFns:xP},function(e){!e||e("data-v-4088266e_0",{source:".vc-saturation,.vc-saturation--black,.vc-saturation--white{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation--white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.vc-saturation--black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}",map:void 0,media:void 0})},kP,void 0,!1,void 0,!1,ka,void 0,void 0);var SP={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){const e=this.value.hsl.h;return e!==0&&e-this.oldHue>0&&(this.pullDirection="right"),e!==0&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.value},directionClass(){return{"vc-hue--horizontal":this.direction==="horizontal","vc-hue--vertical":this.direction==="vertical"}},pointerTop(){return this.direction==="vertical"?this.colors.hsl.h===0&&this.pullDirection==="right"?0:-(this.colors.hsl.h*100/360)+100+"%":0},pointerLeft(){return this.direction==="vertical"?0:this.colors.hsl.h===0&&this.pullDirection==="right"?"100%":this.colors.hsl.h*100/360+"%"}},methods:{handleChange(e,n){!n&&e.preventDefault();var t=this.$refs.container;if(!!t){var r=t.clientWidth,o=t.clientHeight,u=t.getBoundingClientRect().left+window.pageXOffset,f=t.getBoundingClientRect().top+window.pageYOffset,p=e.pageX||(e.touches?e.touches[0].pageX:0),_=e.pageY||(e.touches?e.touches[0].pageY:0),v=p-u,k=_-f,w,x;this.direction==="vertical"?(k<0?w=360:k>o?w=0:(x=-(k*100/o)+100,w=360*x/100),this.colors.hsl.h!==w&&this.$emit("change",{h:w,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(v<0?w=0:v>r?w=360:(x=v*100/r,w=360*x/100),this.colors.hsl.h!==w&&this.$emit("change",{h:w,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const AP=SP;var TP=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["vc-hue",e.directionClass]},[t("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":e.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[t("div",{staticClass:"vc-hue-pointer",style:{top:e.pointerTop,left:e.pointerLeft},attrs:{role:"presentation"}},[t("div",{staticClass:"vc-hue-picker"})])])])},OP=[];const EP=Z({render:TP,staticRenderFns:OP},function(e){!e||e("data-v-58a7c71e_0",{source:".vc-hue{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:2px}.vc-hue--horizontal{background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.vc-hue--vertical{background:linear-gradient(to top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.vc-hue-container{cursor:pointer;margin:0 2px;position:relative;height:100%}.vc-hue-pointer{z-index:2;position:absolute}.vc-hue-picker{cursor:pointer;margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;transform:translateX(-2px)}",map:void 0,media:void 0})},AP,void 0,!1,void 0,!1,ka,void 0,void 0);let Kf={};var FP={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":"url("+PP(this.white,this.grey,this.size)+")"}}}};function MP(e,n,t){if(typeof document=="undefined")return null;var r=document.createElement("canvas");r.width=r.height=t*2;var o=r.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,r.width,r.height),o.fillStyle=n,o.fillRect(0,0,t,t),o.translate(t,t),o.fillRect(0,0,t,t),r.toDataURL()):null}function PP(e,n,t){var r=e+","+n+","+t;if(Kf[r])return Kf[r];var o=MP(e,n,t);return Kf[r]=o,o}const LP=FP;var NP=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"vc-checkerboard",style:e.bgStyle})},RP=[];const ig=Z({render:NP,staticRenderFns:RP},function(e){!e||e("data-v-0c32adf0_0",{source:".vc-checkerboard{position:absolute;top:0;right:0;bottom:0;left:0;background-size:contain}",map:void 0,media:void 0})},LP,void 0,!1,void 0,!1,ka,void 0,void 0);var IP={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:ig},computed:{colors(){return this.value},gradientColor(){var e=this.colors.rgba,n=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+n+", 0) 0%, rgba("+n+", 1) 100%)"}},methods:{handleChange(e,n){!n&&e.preventDefault();var t=this.$refs.container;if(!!t){var r=t.clientWidth,o=t.getBoundingClientRect().left+window.pageXOffset,u=e.pageX||(e.touches?e.touches[0].pageX:0),f=u-o,p;f<0?p=0:f>r?p=1:p=Math.round(f*100/r)/100,this.colors.a!==p&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:p,source:"rgba"})}},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};const DP=IP;var jP=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"vc-alpha"},[t("div",{staticClass:"vc-alpha-checkboard-wrap"},[t("checkboard")],1),e._v(" "),t("div",{staticClass:"vc-alpha-gradient",style:{background:e.gradientColor}}),e._v(" "),t("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[t("div",{staticClass:"vc-alpha-pointer",style:{left:e.colors.a*100+"%"}},[t("div",{staticClass:"vc-alpha-picker"})])])])},BP=[],HP={components:{Saturation:CP,Hue:EP,Alpha:Z({render:jP,staticRenderFns:BP},function(e){!e||e("data-v-c3bf7008_0",{source:".vc-alpha{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-checkboard-wrap{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.vc-alpha-gradient{position:absolute;top:0;right:0;bottom:0;left:0}.vc-alpha-container{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.vc-alpha-pointer{z-index:2;position:absolute}.vc-alpha-picker{cursor:pointer;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px rgba(0,0,0,.6);background:#fff;margin-top:1px;transform:translateX(-2px)}",map:void 0,media:void 0})},DP,void 0,!1,void 0,!1,ka,void 0,void 0),EditableInput:tP,Checkboard:ig},mixins:[{...qM,computed:{colors:{get(){return this.val},set(e){this.val=e;const n=KP(this.keywordField)===e.hex8;n&&!UP(this.keywordField)?this.$emit("input",this.keywordField):this.$emit("input",zP(e,this.index)),n||(this.keywordField=e.a<1?e.hex8:e.hex)}}}}],props:{value:{type:String,default:""},allowEmpty:{type:Boolean,default:!0},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},data:e=>{let{value:n}=e;return{index:WP(n),keywordField:n}},computed:{hsl(){const{h:e,s:n,l:t}=this.colors.hsl;return{h:e.toFixed(),s:`${(n*100).toFixed()}%`,l:`${(t*100).toFixed()}%`}},isValidColor(){return wa(this.value)||""}},created(){this.current=this.value},methods:{toRgb:GP,inputChange(e){if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){const n=e.s?e.s.replace("%","")/100:this.colors.hsl.s,t=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:n,l:t,source:"hsl"})}},keywordChange(e){let{target:{value:n}}=e;this.keywordField=n,this.colorChange(n)},setEmpty(){this.$emit("input",void 0),this.keywordField=""}}};function zP(e,n){return e=En(e.hsv),n===0&&e._a===1?e.toHexString().toUpperCase():n<2?e.toRgbString():e.toHslString()}function WP(e){if(e&&wa(e)){if(qP(e))return 2;if(YP(e))return 1}return 0}function GP(e){return En(e).toRgbString()}function KP(e){return En(e).toHex8String().toUpperCase()}function wa(e){return En(e).isValid()}function UP(e){return wa(e)&&e.match(/^#(([\da-f]{2}){2,4}|[\da-f]{3})$/i)}function YP(e){return wa(e)&&e.match(/^rgb/i)}function qP(e){return wa(e)&&e.match(/^hsl/i)}const JP=HP;var XP=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["vc-yootheme"]},[t("div",{staticClass:"vc-yootheme-saturation-wrap"},[t("Saturation",{ref:"saturation",attrs:{value:e.colors},on:{change:e.colorChange}})],1),e._v(" "),t("div",{staticClass:"vc-yootheme-controls"},[t("div",{staticClass:"vc-yootheme-sliders"},[t("div",{staticClass:"vc-yootheme-hue-wrap"},[t("Hue",{attrs:{value:e.colors},on:{change:e.colorChange}})],1),e._v(" "),e.disableAlpha?e._e():t("div",{staticClass:"vc-yootheme-alpha-wrap"},[t("Alpha",{attrs:{value:e.colors},on:{change:e.colorChange}})],1)]),e._v(" "),t("div",{staticClass:"vc-yootheme-color-wrap"},[t("div",{staticClass:"vc-yootheme-active-color",class:{"vc-yootheme-nocolor":!e.isValidColor},style:{backgroundColor:e.toRgb(e.colors.hex8)}}),e._v(" "),t("div",{staticClass:"vc-yootheme-previous-color",class:{"vc-yootheme-nocolor":!e.current},style:{backgroundColor:e.toRgb(e.current)},on:{click:function(r){e.current?e.colorChange(e.current):e.setEmpty()}}}),e._v(" "),t("Checkboard")],1)]),e._v(" "),e.disableFields?e._e():t("div",{staticClass:"vc-yootheme-fields",on:{keypress:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.$emit("resolve")}}},[e.index===0?[t("div",{staticClass:"vc-yootheme-field",on:{"!input":function(r){return e.keywordChange.apply(null,arguments)}}},[t("EditableInput",{attrs:{value:e.keywordField,label:e.$t("hex / keyword")}})],1)]:e._e(),e._v(" "),e.index===1?[t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.colors.rgba.r,label:e.$t("r")},on:{change:e.inputChange}})],1),e._v(" "),t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.colors.rgba.g,label:e.$t("g")},on:{change:e.inputChange}})],1),e._v(" "),t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.colors.rgba.b,label:e.$t("b")},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.colors.a,"arrow-offset":.01,max:1,label:e.$t("a")},on:{change:e.inputChange}})],1)]:e._e(),e._v(" "),e.index===2?[t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.hsl.h,label:e.$t("h")},on:{change:e.inputChange}})],1),e._v(" "),t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.hsl.s,label:e.$t("s")},on:{change:e.inputChange}})],1),e._v(" "),t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.hsl.l,label:e.$t("l")},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():t("div",{staticClass:"vc-yootheme-field"},[t("EditableInput",{attrs:{value:e.isValidColor&&e.colors.a,"arrow-offset":.01,max:1,label:e.$t("a")},on:{change:e.inputChange}})],1)]:e._e(),e._v(" "),t("div",{on:{click:function(r){r.preventDefault(),e.index=(e.index+1)%3}}},[t("div",{staticClass:"vc-yootheme-toggle-icon"},[t("svg",{attrs:{width:"10",height:"18",viewbox:"0 0 10 18"}},[t("path",{attrs:{fill:"#333",d:"M5,15.17 L1.83,12 L0.42,13.41 L5,18 L9.59,13.41 L8.17,12 L5,15.17 Z M5,2.83 L8.17,6 L9.58,4.59 L5,0 L0.41,4.59 L1.83,6 L5,2.83 Z"}})])])]),e._v(" "),e.allowEmpty?t("div",{staticClass:"vc-yootheme-nocolor-box vc-yootheme-nocolor",on:{click:e.setEmpty}}):e._e()],2)])},ZP=[],Uf=Z({render:XP,staticRenderFns:ZP},void 0,JP,void 0,!1,void 0,!1,void 0,void 0,void 0);const Dl={none:"",inset:"",offsetX:"1px",offsetY:"1px",blur:"0",spread:"0",color:""};var QP={components:{ColorPicker:Uf},props:{value:{type:String,default:""},fields:{type:Array,default:()=>["inset","offsetX","offsetY","blur","spread","color"]}},computed:{shadow(){return ag(this.value)}},methods:{hasField(e){return Ct(this.fields,e)},input(){this.$emit("input",this.shadow.color&&this.fields.map(e=>this.shadow[e]||Dl[e]).join(" ").trim()||"none")}}};function ag(e){const n={...Dl};let t=On(e)&&e.match(/([^\s]+\(.+?\))|([^\s]+)/g)||[];return t=~t.indexOf(",")?t.slice(0,t.indexOf(",")):t,t[0]==="none"&&(n.none=t.shift()),t[0]==="inset"&&(n.inset=t.shift()),n.color=t.pop()||Dl.color,["offsetX","offsetY","blur","spread"].forEach(r=>n[r]=t.shift()||Dl[r]),n}const VP=QP;var eL=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:`
uk-form-stacked
uk-grid
uk-grid-small
uk-child-width-expand
uk-flex-nowrap
uk-margin-small-bottom
yo-colorpicker-boxshadow
`},[e.hasField("offsetX")?t("div",[t("div",{staticClass:"uk-panel"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-offset-x"}},[e._v(e._s(e.$t("X")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.offsetX,expression:"shadow.offsetX"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-offset-x",type:"text"},domProps:{value:e.shadow.offsetX},on:{input:[function(r){r.target.composing||e.$set(e.shadow,"offsetX",r.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("offsetY")?t("div",[t("div",{staticClass:"uk-panel"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-offset-y"}},[e._v(e._s(e.$t("Y")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.offsetY,expression:"shadow.offsetY"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-offset-y",type:"text"},domProps:{value:e.shadow.offsetY},on:{input:[function(r){r.target.composing||e.$set(e.shadow,"offsetY",r.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("blur")?t("div",[t("div",{staticClass:"uk-panel"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-blur"}},[e._v(e._s(e.$t("Blur")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.blur,expression:"shadow.blur"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-blur",type:"text"},domProps:{value:e.shadow.blur},on:{input:[function(r){r.target.composing||e.$set(e.shadow,"blur",r.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("spread")?t("div",[t("div",{staticClass:"uk-panel"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-spread"}},[e._v(e._s(e.$t("Spread")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.spread,expression:"shadow.spread"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-spread",type:"text"},domProps:{value:e.shadow.spread},on:{input:[function(r){r.target.composing||e.$set(e.shadow,"spread",r.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("inset")?t("div",[t("div",{staticClass:"uk-panel uk-text-center"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-inset"}},[e._v(e._s(e.$t("Inset")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.inset,expression:"shadow.inset"}],staticClass:"uk-checkbox uk-margin-remove",attrs:{id:"form-boxshadow-inset","true-value":"inset","false-value":"",type:"checkbox"},domProps:{checked:Array.isArray(e.shadow.inset)?e._i(e.shadow.inset,null)>-1:e._q(e.shadow.inset,"inset")},on:{change:[function(r){var o=e.shadow.inset,u=r.target,f=u.checked?"inset":"";if(Array.isArray(o)){var p=null,_=e._i(o,p);u.checked?_<0&&e.$set(e.shadow,"inset",o.concat([p])):_>-1&&e.$set(e.shadow,"inset",o.slice(0,_).concat(o.slice(_+1)))}else e.$set(e.shadow,"inset",f)},e.input]}})])]):e._e()]),e._v(" "),e.hasField("color")?t("ColorPicker",{on:{input:e.input},model:{value:e.shadow.color,callback:function(r){e.$set(e.shadow,"color",r)},expression:"shadow.color"}}):e._e()],1)},tL=[],og=Z({render:eL,staticRenderFns:tL},void 0,VP,void 0,!1,void 0,!1,void 0,void 0,void 0),nL={data:()=>({hover:!1})};const rL=nL;var iL=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:{"uk-dragover":e.hover},on:{dragenter:function(r){r.stopPropagation(),r.preventDefault()},dragover:function(r){r.stopPropagation(),r.preventDefault(),e.hover=!0},dragleave:function(r){r.stopPropagation(),r.preventDefault(),e.hover=!1},drop:function(r){r.stopPropagation(),r.preventDefault(),e.$emit("drop",r),e.hover=!1}}},[e._t("default")],2)},aL=[],Yf=Z({render:iL,staticRenderFns:aL},void 0,rL,void 0,!1,void 0,!1,void 0,void 0,void 0);const sg={provide(){return{Dropdown:this}},data:()=>({classes:""}),beforeDestroy(){this.dropdown?.$destroy(!0)},methods:{show(e,n){return n===void 0&&(n={}),V.hasClass(e.nextElementSibling,"uk-dropdown")?(V.trigger(e.nextElementSibling,"toggle"),Promise.resolve()):(n.classes&&(this.classes=n.classes),this.$nextTick(()=>{this.dropdown=Pn.dropdown(V.after(e,this.$el),{toggle:!1,mode:"click",animation:!1,boundaryAlign:!0,pos:"bottom-justify",boundary:e,...n}),this.dropdown.show()}),new Promise((t,r)=>{this.promise={resolve:t,reject:r}}))},hide(){this.dropdown?.hide(!1)},hidden(){this.promise.resolve(),this.$nextTick(this.$destroy)},resolve(e){this.promise.resolve(e),this.hide()},reject(e){this.promise.reject(e),this.hide()}},install(e){Object.defineProperty(e.prototype,"$dropdown",{get(){var n=this;return function(t,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),t=e.extend(t),kt(o)||(t=t.extend(o)),new e({parent:n,components:{dropdown:t},extends:sg,data:()=>({props:r})}).$mount()}}})}},oL=sg;var sL=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["uk-dropdown",e.classes],on:{show:function(r){return r.target!==r.currentTarget?null:e.$emit("show")},hide:function(r){return r.target!==r.currentTarget?null:e.$emit("hide")},hidden:function(r){return r.target!==r.currentTarget?null:e.hidden.apply(null,arguments)}}},[t("dropdown",e._b({on:{resolve:e.resolve,reject:e.reject}},"dropdown",e.props,!1,!0))],1)},lL=[],uL=Z({render:sL,staticRenderFns:lL},void 0,oL,void 0,!1,void 0,!1,void 0,void 0,void 0),Hn={exports:{}};(function(e,n){(function(t,r){e.exports=r()})($a,function(){var t=navigator.userAgent,r=navigator.platform,o=/gecko\/\d/i.test(t),u=/MSIE \d/.test(t),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),p=/Edge\/(\d+)/.exec(t),_=u||f||p,v=_&&(u?document.documentMode||6:+(p||f)[1]),k=!p&&/WebKit\//.test(t),w=k&&/Qt\/\d+\.\d+/.test(t),x=!p&&/Chrome\//.test(t),M=/Opera\//.test(t),z=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),q=/PhantomJS/.test(t),j=z&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),D=/Android/.test(t),B=j||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),Y=j||/Mac/.test(r),oe=/\bCrOS\b/.test(t),te=/win/i.test(r),le=M&&t.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(M=!1,k=!0);var xe=Y&&(w||M&&(le==null||le<12.11)),Ce=o||_&&v>=9;function pe(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var fe=function(i,a){var l=i.className,s=pe(a).exec(l);if(s){var c=l.slice(s.index+s[0].length);i.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function P(i){for(var a=i.childNodes.length;a>0;--a)i.removeChild(i.firstChild);return i}function C(i,a){return P(i).appendChild(a)}function F(i,a,l,s){var c=document.createElement(i);if(l&&(c.className=l),s&&(c.style.cssText=s),typeof a=="string")c.appendChild(document.createTextNode(a));else if(a)for(var d=0;d<a.length;++d)c.appendChild(a[d]);return c}function $(i,a,l,s){var c=F(i,a,l,s);return c.setAttribute("role","presentation"),c}var G;document.createRange?G=function(i,a,l,s){var c=document.createRange();return c.setEnd(s||i,l),c.setStart(i,a),c}:G=function(i,a,l){var s=document.body.createTextRange();try{s.moveToElementText(i.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",a),s};function H(i,a){if(a.nodeType==3&&(a=a.parentNode),i.contains)return i.contains(a);do if(a.nodeType==11&&(a=a.host),a==i)return!0;while(a=a.parentNode)}function ee(){var i;try{i=document.activeElement}catch{i=document.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function ge(i,a){var l=i.className;pe(a).test(l)||(i.className+=(l?" ":"")+a)}function he(i,a){for(var l=i.split(" "),s=0;s<l.length;s++)l[s]&&!pe(l[s]).test(a)&&(a+=" "+l[s]);return a}var Pe=function(i){i.select()};j?Pe=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:_&&(Pe=function(i){try{i.select()}catch{}});function Se(i){var a=Array.prototype.slice.call(arguments,1);return function(){return i.apply(null,a)}}function We(i,a,l){a||(a={});for(var s in i)i.hasOwnProperty(s)&&(l!==!1||!a.hasOwnProperty(s))&&(a[s]=i[s]);return a}function qe(i,a,l,s,c){a==null&&(a=i.search(/[^\s\u00a0]/),a==-1&&(a=i.length));for(var d=s||0,h=c||0;;){var m=i.indexOf(" ",d);if(m<0||m>=a)return h+(a-d);h+=m-d,h+=l-h%l,d=m+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Se(this.onTimeout,this)};Re.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},Re.prototype.set=function(i,a){this.f=a;var l=+new Date+i;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,i),this.time=l)};function me(i,a){for(var l=0;l<i.length;++l)if(i[l]==a)return l;return-1}var ye=50,je={toString:function(){return"CodeMirror.Pass"}},Fe={scroll:!1},Ie={origin:"*mouse"},Le={origin:"+move"};function ut(i,a,l){for(var s=0,c=0;;){var d=i.indexOf(" ",s);d==-1&&(d=i.length);var h=d-s;if(d==i.length||c+h>=a)return s+Math.min(h,a-c);if(c+=d-s,c+=l-c%l,s=d+1,c>=a)return s}}var T=[""];function R(i){for(;T.length<=i;)T.push(A(T)+" ");return T[i]}function A(i){return i[i.length-1]}function X(i,a){for(var l=[],s=0;s<i.length;s++)l[s]=a(i[s],s);return l}function de(i,a,l){for(var s=0,c=l(a);s<i.length&&l(i[s])<=c;)s++;i.splice(s,0,a)}function ce(){}function Oe(i,a){var l;return Object.create?l=Object.create(i):(ce.prototype=i,l=new ce),a&&We(a,l),l}var Qe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||Qe.test(i))}function I(i,a){return a?a.source.indexOf("\\w")>-1&&Ne(i)?!0:a.test(i):Ne(i)}function re(i){for(var a in i)if(i.hasOwnProperty(a)&&i[a])return!1;return!0}var W=/[\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 Ye(i){return i.charCodeAt(0)>=768&&W.test(i)}function Ut(i,a,l){for(;(l<0?a>0:a<i.length)&&Ye(i.charAt(a));)a+=l;return a}function er(i,a,l){for(var s=a>l?-1:1;;){if(a==l)return a;var c=(a+l)/2,d=s<0?Math.ceil(c):Math.floor(c);if(d==a)return i(d)?a:l;i(d)?l=d:a=d+s}}function $p(i,a,l,s){if(!i)return s(a,l,"ltr",0);for(var c=!1,d=0;d<i.length;++d){var h=i[d];(h.from<l&&h.to>a||a==l&&h.to==a)&&(s(Math.max(h.from,a),Math.min(h.to,l),h.level==1?"rtl":"ltr",d),c=!0)}c||s(a,l,"ltr")}var bn=null;function ct(i,a,l){var s;bn=null;for(var c=0;c<i.length;++c){var d=i[c];if(d.from<a&&d.to>a)return c;d.to==a&&(d.from!=d.to&&l=="before"?s=c:bn=c),d.from==a&&(d.from!=d.to&&l!="before"?s=c:bn=c)}return s??bn}var Ii=function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",a="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(y){return y<=247?i.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?a.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,d=/[LRr]/,h=/[Lb1n]/,m=/[1n]/;function g(y,S,O){this.level=y,this.from=S,this.to=O}return function(y,S){var O=S=="ltr"?"L":"R";if(y.length==0||S=="ltr"&&!s.test(y))return!1;for(var N=y.length,L=[],K=0;K<N;++K)L.push(l(y.charCodeAt(K)));for(var Q=0,ue=O;Q<N;++Q){var _e=L[Q];_e=="m"?L[Q]=ue:ue=_e}for(var be=0,ve=O;be<N;++be){var ke=L[be];ke=="1"&&ve=="r"?L[be]="n":d.test(ke)&&(ve=ke,ke=="r"&&(L[be]="R"))}for(var Ee=1,Ae=L[0];Ee<N-1;++Ee){var Ge=L[Ee];Ge=="+"&&Ae=="1"&&L[Ee+1]=="1"?L[Ee]="1":Ge==","&&Ae==L[Ee+1]&&(Ae=="1"||Ae=="n")&&(L[Ee]=Ae),Ae=Ge}for(var nt=0;nt<N;++nt){var Ot=L[nt];if(Ot==",")L[nt]="N";else if(Ot=="%"){var lt=void 0;for(lt=nt+1;lt<N&&L[lt]=="%";++lt);for(var vn=nt&&L[nt-1]=="!"||lt<N&&L[lt]=="1"?"1":"N",nn=nt;nn<lt;++nn)L[nn]=vn;nt=lt-1}}for(var yt=0,rn=O;yt<N;++yt){var Nt=L[yt];rn=="L"&&Nt=="1"?L[yt]="L":d.test(Nt)&&(rn=Nt)}for(var xt=0;xt<N;++xt)if(c.test(L[xt])){var bt=void 0;for(bt=xt+1;bt<N&&c.test(L[bt]);++bt);for(var dt=(xt?L[xt-1]:O)=="L",an=(bt<N?L[bt]:O)=="L",go=dt==an?dt?"L":"R":O,oi=xt;oi<bt;++oi)L[oi]=go;xt=bt-1}for(var Bt=[],ur,Et=0;Et<N;)if(h.test(L[Et])){var dh=Et;for(++Et;Et<N&&h.test(L[Et]);++Et);Bt.push(new g(0,dh,Et))}else{var Ir=Et,qi=Bt.length,Ji=S=="rtl"?1:0;for(++Et;Et<N&&L[Et]!="L";++Et);for(var qt=Ir;qt<Et;)if(m.test(L[qt])){Ir<qt&&(Bt.splice(qi,0,new g(1,Ir,qt)),qi+=Ji);var yo=qt;for(++qt;qt<Et&&m.test(L[qt]);++qt);Bt.splice(qi,0,new g(2,yo,qt)),qi+=Ji,Ir=qt}else++qt;Ir<Et&&Bt.splice(qi,0,new g(1,Ir,Et))}return S=="ltr"&&(Bt[0].level==1&&(ur=y.match(/^\s+/))&&(Bt[0].from=ur[0].length,Bt.unshift(new g(0,0,ur[0].length))),A(Bt).level==1&&(ur=y.match(/\s+$/))&&(A(Bt).to-=ur[0].length,Bt.push(new g(0,N-ur[0].length,N)))),S=="rtl"?Bt.reverse():Bt}}();function pn(i,a){var l=i.order;return l==null&&(l=i.order=Ii(i.text,a)),l}var Er=[],Me=function(i,a,l){if(i.addEventListener)i.addEventListener(a,l,!1);else if(i.attachEvent)i.attachEvent("on"+a,l);else{var s=i._handlers||(i._handlers={});s[a]=(s[a]||Er).concat(l)}};function qa(i,a){return i._handlers&&i._handlers[a]||Er}function Qt(i,a,l){if(i.removeEventListener)i.removeEventListener(a,l,!1);else if(i.detachEvent)i.detachEvent("on"+a,l);else{var s=i._handlers,c=s&&s[a];if(c){var d=me(c,l);d>-1&&(s[a]=c.slice(0,d).concat(c.slice(d+1)))}}}function Be(i,a){var l=qa(i,a);if(!!l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function gt(i,a,l){return typeof a=="string"&&(a={type:a,preventDefault:function(){this.defaultPrevented=!0}}),Be(i,l||a.type,i,a),$n(a)||a.codemirrorIgnore}function Ja(i){var a=i._handlers&&i._handlers.cursorActivity;if(!!a)for(var l=i.curOp.cursorActivityHandlers||(i.curOp.cursorActivityHandlers=[]),s=0;s<a.length;++s)me(l,a[s])==-1&&l.push(a[s])}function Lt(i,a){return qa(i,a).length>0}function tr(i){i.prototype.on=function(a,l){Me(this,a,l)},i.prototype.off=function(a,l){Qt(this,a,l)}}function It(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function Xa(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function $n(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function Di(i){It(i),Xa(i)}function Xr(i){return i.target||i.srcElement}function Mu(i){var a=i.which;return a==null&&(i.button&1?a=1:i.button&2?a=3:i.button&4&&(a=2)),Y&&i.ctrlKey&&a==1&&(a=3),a}var hs=function(){if(_&&v<9)return!1;var i=F("div");return"draggable"in i||"dragDrop"in i}(),Vt;function Pu(i){if(Vt==null){var a=F("span","\u200B");C(i,F("span",[a,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(Vt=a.offsetWidth<=1&&a.offsetHeight>2&&!(_&&v<8))}var l=Vt?F("span","\u200B"):F("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var _s;function nr(i){if(_s!=null)return _s;var a=C(i,document.createTextNode("A\u062EA")),l=G(a,0,1).getBoundingClientRect(),s=G(a,1,2).getBoundingClientRect();return P(i),!l||l.left==l.right?!1:_s=s.right-l.right<3}var vs=`
b`.split(/\n/).length!=3?function(i){for(var a=0,l=[],s=i.length;a<=s;){var c=i.indexOf(`
`,a);c==-1&&(c=i.length);var d=i.slice(a,i.charAt(c-1)=="\r"?c-1:c),h=d.indexOf("\r");h!=-1?(l.push(d.slice(0,h)),a+=h+1):(l.push(d),a=c+1)}return l}:function(i){return i.split(/\r\n?|\n/)},Lu=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch{return!1}}:function(i){var a;try{a=i.ownerDocument.selection.createRange()}catch{}return!a||a.parentElement()!=i?!1:a.compareEndPoints("StartToEnd",a)!=0},Nu=function(){var i=F("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")}(),ms=null;function Zr(i){if(ms!=null)return ms;var a=C(i,F("span","x")),l=a.getBoundingClientRect(),s=G(a,0,1).getBoundingClientRect();return ms=Math.abs(l.left-s.left)>1}var Mn={},kn={};function Ru(i,a){arguments.length>2&&(a.dependencies=Array.prototype.slice.call(arguments,2)),Mn[i]=a}function Fr(i,a){kn[i]=a}function Za(i){if(typeof i=="string"&&kn.hasOwnProperty(i))i=kn[i];else if(i&&typeof i.name=="string"&&kn.hasOwnProperty(i.name)){var a=kn[i.name];typeof a=="string"&&(a={name:a}),i=Oe(a,i),i.name=a.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return Za("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return Za("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function Qa(i,a){a=Za(a);var l=Mn[a.name];if(!l)return Qa(i,"text/plain");var s=l(i,a);if(Wn.hasOwnProperty(a.name)){var c=Wn[a.name];for(var d in c)!c.hasOwnProperty(d)||(s.hasOwnProperty(d)&&(s["_"+d]=s[d]),s[d]=c[d])}if(s.name=a.name,a.helperType&&(s.helperType=a.helperType),a.modeProps)for(var h in a.modeProps)s[h]=a.modeProps[h];return s}var Wn={};function Gn(i,a){var l=Wn.hasOwnProperty(i)?Wn[i]:Wn[i]={};We(a,l)}function wn(i,a){if(a===!0)return a;if(i.copyState)return i.copyState(a);var l={};for(var s in a){var c=a[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function gs(i,a){for(var l;i.innerMode&&(l=i.innerMode(a),!(!l||l.mode==i));)a=l.state,i=l.mode;return l||{mode:i,state:a}}function ys(i,a,l){return i.startState?i.startState(a,l):!0}var ft=function(i,a,l){this.pos=this.start=0,this.string=i,this.tabSize=a||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};ft.prototype.eol=function(){return this.pos>=this.string.length},ft.prototype.sol=function(){return this.pos==this.lineStart},ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ft.prototype.eat=function(i){var a=this.string.charAt(this.pos),l;if(typeof i=="string"?l=a==i:l=a&&(i.test?i.test(a):i(a)),l)return++this.pos,a},ft.prototype.eatWhile=function(i){for(var a=this.pos;this.eat(i););return this.pos>a},ft.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},ft.prototype.skipToEnd=function(){this.pos=this.string.length},ft.prototype.skipTo=function(i){var a=this.string.indexOf(i,this.pos);if(a>-1)return this.pos=a,!0},ft.prototype.backUp=function(i){this.pos-=i},ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},ft.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},ft.prototype.match=function(i,a,l){if(typeof i=="string"){var s=function(h){return l?h.toLowerCase():h},c=this.string.substr(this.pos,i.length);if(s(c)==s(i))return a!==!1&&(this.pos+=i.length),!0}else{var d=this.string.slice(this.pos).match(i);return d&&d.index>0?null:(d&&a!==!1&&(this.pos+=d[0].length),d)}},ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},ft.prototype.hideFirstChars=function(i,a){this.lineStart+=i;try{return a()}finally{this.lineStart-=i}},ft.prototype.lookAhead=function(i){var a=this.lineOracle;return a&&a.lookAhead(i)},ft.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function we(i,a){if(a-=i.first,a<0||a>=i.size)throw new Error("There is no line "+(a+i.first)+" in the document.");for(var l=i;!l.lines;)for(var s=0;;++s){var c=l.children[s],d=c.chunkSize();if(a<d){l=c;break}a-=d}return l.lines[a]}function rr(i,a,l){var s=[],c=a.line;return i.iter(a.line,l.line+1,function(d){var h=d.text;c==l.line&&(h=h.slice(0,l.ch)),c==a.line&&(h=h.slice(a.ch)),s.push(h),++c}),s}function bs(i,a,l){var s=[];return i.iter(a,l,function(c){s.push(c.text)}),s}function hn(i,a){var l=a-i.height;if(l)for(var s=i;s;s=s.parent)s.height+=l}function Ve(i){if(i.parent==null)return null;for(var a=i.parent,l=me(a.lines,i),s=a.parent;s;a=s,s=s.parent)for(var c=0;s.children[c]!=a;++c)l+=s.children[c].chunkSize();return l+a.first}function ir(i,a){var l=i.first;e:do{for(var s=0;s<i.children.length;++s){var c=i.children[s],d=c.height;if(a<d){i=c;continue e}a-=d,l+=c.chunkSize()}return l}while(!i.lines);for(var h=0;h<i.lines.length;++h){var m=i.lines[h],g=m.height;if(a<g)break;a-=g}return l+h}function ji(i,a){return a>=i.first&&a<i.first+i.size}function $s(i,a){return String(i.lineNumberFormatter(a+i.firstLineNumber))}function ne(i,a,l){if(l===void 0&&(l=null),!(this instanceof ne))return new ne(i,a,l);this.line=i,this.ch=a,this.sticky=l}function b(i,a){return i.line-a.line||i.ch-a.ch}function E(i,a){return i.sticky==a.sticky&&b(i,a)==0}function J(i){return ne(i.line,i.ch)}function se(i,a){return b(i,a)<0?a:i}function He(i,a){return b(i,a)<0?i:a}function Xe(i,a){return Math.max(i.first,Math.min(a,i.first+i.size-1))}function $e(i,a){if(a.line<i.first)return ne(i.first,0);var l=i.first+i.size-1;return a.line>l?ne(l,we(i,l).text.length):Dt(a,we(i,a.line).text.length)}function Dt(i,a){var l=i.ch;return l==null||l>a?ne(i.line,a):l<0?ne(i.line,0):i}function xn(i,a){for(var l=[],s=0;s<a.length;s++)l[s]=$e(i,a[s]);return l}var Va=function(i,a){this.state=i,this.lookAhead=a},ar=function(i,a,l,s){this.state=a,this.doc=i,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};ar.prototype.lookAhead=function(i){var a=this.doc.getLine(this.line+i);return a!=null&&i>this.maxLookAhead&&(this.maxLookAhead=i),a},ar.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var a=this.baseTokens[this.baseTokenPos+1];return{type:a&&a.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},ar.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ar.fromSaved=function(i,a,l){return a instanceof Va?new ar(i,wn(i.mode,a.state),l,a.lookAhead):new ar(i,wn(i.mode,a),l)},ar.prototype.save=function(i){var a=i!==!1?wn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Va(a,this.maxLookAhead):a};function B0(i,a,l,s){var c=[i.state.modeGen],d={};U0(i,a.text,i.doc.mode,l,function(y,S){return c.push(y,S)},d,s);for(var h=l.state,m=function(y){l.baseTokens=c;var S=i.state.overlays[y],O=1,N=0;l.state=!0,U0(i,a.text,S.mode,l,function(L,K){for(var Q=O;N<L;){var ue=c[O];ue>L&&c.splice(O,1,L,c[O+1],ue),O+=2,N=Math.min(L,ue)}if(!!K)if(S.opaque)c.splice(Q,O-Q,L,"overlay "+K),O=Q+2;else for(;Q<O;Q+=2){var _e=c[Q+1];c[Q+1]=(_e?_e+" ":"")+"overlay "+K}},d),l.state=h,l.baseTokens=null,l.baseTokenPos=1},g=0;g<i.state.overlays.length;++g)m(g);return{styles:c,classes:d.bgClass||d.textClass?d:null}}function H0(i,a,l){if(!a.styles||a.styles[0]!=i.state.modeGen){var s=ks(i,Ve(a)),c=a.text.length>i.options.maxHighlightLength&&wn(i.doc.mode,s.state),d=B0(i,a,s);c&&(s.state=c),a.stateAfter=s.save(!c),a.styles=d.styles,d.classes?a.styleClasses=d.classes:a.styleClasses&&(a.styleClasses=null),l===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return a.styles}function ks(i,a,l){var s=i.doc,c=i.display;if(!s.mode.startState)return new ar(s,!0,a);var d=lq(i,a,l),h=d>s.first&&we(s,d-1).stateAfter,m=h?ar.fromSaved(s,h,d):new ar(s,ys(s.mode),d);return s.iter(d,a,function(g){kp(i,g.text,m);var y=m.line;g.stateAfter=y==a-1||y%5==0||y>=c.viewFrom&&y<c.viewTo?m.save():null,m.nextLine()}),l&&(s.modeFrontier=m.line),m}function kp(i,a,l,s){var c=i.doc.mode,d=new ft(a,i.options.tabSize,l);for(d.start=d.pos=s||0,a==""&&z0(c,l.state);!d.eol();)wp(c,d,l.state),d.start=d.pos}function z0(i,a){if(i.blankLine)return i.blankLine(a);if(!!i.innerMode){var l=gs(i,a);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function wp(i,a,l,s){for(var c=0;c<10;c++){s&&(s[0]=gs(i,l).mode);var d=i.token(a,l);if(a.pos>a.start)return d}throw new Error("Mode "+i.name+" failed to advance stream.")}var W0=function(i,a,l){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=a||null,this.state=l};function G0(i,a,l,s){var c=i.doc,d=c.mode,h;a=$e(c,a);var m=we(c,a.line),g=ks(i,a.line,l),y=new ft(m.text,i.options.tabSize,g),S;for(s&&(S=[]);(s||y.pos<a.ch)&&!y.eol();)y.start=y.pos,h=wp(d,y,g.state),s&&S.push(new W0(y,h,wn(c.mode,g.state)));return s?S:new W0(y,h,g.state)}function K0(i,a){if(i)for(;;){var l=i.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;i=i.slice(0,l.index)+i.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";a[s]==null?a[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(a[s])||(a[s]+=" "+l[2])}return i}function U0(i,a,l,s,c,d,h){var m=l.flattenSpans;m==null&&(m=i.options.flattenSpans);var g=0,y=null,S=new ft(a,i.options.tabSize,s),O,N=i.options.addModeClass&&[null];for(a==""&&K0(z0(l,s.state),d);!S.eol();){if(S.pos>i.options.maxHighlightLength?(m=!1,h&&kp(i,a,s,S.pos),S.pos=a.length,O=null):O=K0(wp(l,S,s.state,N),d),N){var L=N[0].name;L&&(O="m-"+(O?L+" "+O:L))}if(!m||y!=O){for(;g<S.start;)g=Math.min(S.start,g+5e3),c(g,y);y=O}S.start=S.pos}for(;g<S.pos;){var K=Math.min(S.pos,g+5e3);c(K,y),g=K}}function lq(i,a,l){for(var s,c,d=i.doc,h=l?-1:a-(i.doc.mode.innerMode?1e3:100),m=a;m>h;--m){if(m<=d.first)return d.first;var g=we(d,m-1),y=g.stateAfter;if(y&&(!l||m+(y instanceof Va?y.lookAhead:0)<=d.modeFrontier))return m;var S=qe(g.text,null,i.options.tabSize);(c==null||s>S)&&(c=m-1,s=S)}return c}function uq(i,a){if(i.modeFrontier=Math.min(i.modeFrontier,a),!(i.highlightFrontier<a-10)){for(var l=i.first,s=a-1;s>l;s--){var c=we(i,s).stateAfter;if(c&&(!(c instanceof Va)||s+c.lookAhead<a)){l=s+1;break}}i.highlightFrontier=Math.min(i.highlightFrontier,l)}}var Y0=!1,Mr=!1;function cq(){Y0=!0}function fq(){Mr=!0}function Iu(i,a,l){this.marker=i,this.from=a,this.to=l}function ws(i,a){if(i)for(var l=0;l<i.length;++l){var s=i[l];if(s.marker==a)return s}}function dq(i,a){for(var l,s=0;s<i.length;++s)i[s]!=a&&(l||(l=[])).push(i[s]);return l}function pq(i,a,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&s.has(i.markedSpans)?i.markedSpans.push(a):(i.markedSpans=i.markedSpans?i.markedSpans.concat([a]):[a],s&&s.add(i.markedSpans)),a.marker.attachLine(i)}function hq(i,a,l){var s;if(i)for(var c=0;c<i.length;++c){var d=i[c],h=d.marker,m=d.from==null||(h.inclusiveLeft?d.from<=a:d.from<a);if(m||d.from==a&&h.type=="bookmark"&&(!l||!d.marker.insertLeft)){var g=d.to==null||(h.inclusiveRight?d.to>=a:d.to>a);(s||(s=[])).push(new Iu(h,d.from,g?null:d.to))}}return s}function _q(i,a,l){var s;if(i)for(var c=0;c<i.length;++c){var d=i[c],h=d.marker,m=d.to==null||(h.inclusiveRight?d.to>=a:d.to>a);if(m||d.from==a&&h.type=="bookmark"&&(!l||d.marker.insertLeft)){var g=d.from==null||(h.inclusiveLeft?d.from<=a:d.from<a);(s||(s=[])).push(new Iu(h,g?null:d.from-a,d.to==null?null:d.to-a))}}return s}function xp(i,a){if(a.full)return null;var l=ji(i,a.from.line)&&we(i,a.from.line).markedSpans,s=ji(i,a.to.line)&&we(i,a.to.line).markedSpans;if(!l&&!s)return null;var c=a.from.ch,d=a.to.ch,h=b(a.from,a.to)==0,m=hq(l,c,h),g=_q(s,d,h),y=a.text.length==1,S=A(a.text).length+(y?c:0);if(m)for(var O=0;O<m.length;++O){var N=m[O];if(N.to==null){var L=ws(g,N.marker);L?y&&(N.to=L.to==null?null:L.to+S):N.to=c}}if(g)for(var K=0;K<g.length;++K){var Q=g[K];if(Q.to!=null&&(Q.to+=S),Q.from==null){var ue=ws(m,Q.marker);ue||(Q.from=S,y&&(m||(m=[])).push(Q))}else Q.from+=S,y&&(m||(m=[])).push(Q)}m&&(m=q0(m)),g&&g!=m&&(g=q0(g));var _e=[m];if(!y){var be=a.text.length-2,ve;if(be>0&&m)for(var ke=0;ke<m.length;++ke)m[ke].to==null&&(ve||(ve=[])).push(new Iu(m[ke].marker,null,null));for(var Ee=0;Ee<be;++Ee)_e.push(ve);_e.push(g)}return _e}function q0(i){for(var a=0;a<i.length;++a){var l=i[a];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&i.splice(a--,1)}return i.length?i:null}function vq(i,a,l){var s=null;if(i.iter(a.line,l.line+1,function(L){if(L.markedSpans)for(var K=0;K<L.markedSpans.length;++K){var Q=L.markedSpans[K].marker;Q.readOnly&&(!s||me(s,Q)==-1)&&(s||(s=[])).push(Q)}}),!s)return null;for(var c=[{from:a,to:l}],d=0;d<s.length;++d)for(var h=s[d],m=h.find(0),g=0;g<c.length;++g){var y=c[g];if(!(b(y.to,m.from)<0||b(y.from,m.to)>0)){var S=[g,1],O=b(y.from,m.from),N=b(y.to,m.to);(O<0||!h.inclusiveLeft&&!O)&&S.push({from:y.from,to:m.from}),(N>0||!h.inclusiveRight&&!N)&&S.push({from:m.to,to:y.to}),c.splice.apply(c,S),g+=S.length-3}}return c}function J0(i){var a=i.markedSpans;if(!!a){for(var l=0;l<a.length;++l)a[l].marker.detachLine(i);i.markedSpans=null}}function X0(i,a){if(!!a){for(var l=0;l<a.length;++l)a[l].marker.attachLine(i);i.markedSpans=a}}function Du(i){return i.inclusiveLeft?-1:0}function ju(i){return i.inclusiveRight?1:0}function Cp(i,a){var l=i.lines.length-a.lines.length;if(l!=0)return l;var s=i.find(),c=a.find(),d=b(s.from,c.from)||Du(i)-Du(a);if(d)return-d;var h=b(s.to,c.to)||ju(i)-ju(a);return h||a.id-i.id}function Z0(i,a){var l=Mr&&i.markedSpans,s;if(l)for(var c=void 0,d=0;d<l.length;++d)c=l[d],c.marker.collapsed&&(a?c.from:c.to)==null&&(!s||Cp(s,c.marker)<0)&&(s=c.marker);return s}function Q0(i){return Z0(i,!0)}function Bu(i){return Z0(i,!1)}function mq(i,a){var l=Mr&&i.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var d=l[c];d.marker.collapsed&&(d.from==null||d.from<a)&&(d.to==null||d.to>a)&&(!s||Cp(s,d.marker)<0)&&(s=d.marker)}return s}function V0(i,a,l,s,c){var d=we(i,a),h=Mr&&d.markedSpans;if(h)for(var m=0;m<h.length;++m){var g=h[m];if(!!g.marker.collapsed){var y=g.marker.find(0),S=b(y.from,l)||Du(g.marker)-Du(c),O=b(y.to,s)||ju(g.marker)-ju(c);if(!(S>=0&&O<=0||S<=0&&O>=0)&&(S<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?b(y.to,l)>=0:b(y.to,l)>0)||S>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?b(y.from,s)<=0:b(y.from,s)<0)))return!0}}}function or(i){for(var a;a=Q0(i);)i=a.find(-1,!0).line;return i}function gq(i){for(var a;a=Bu(i);)i=a.find(1,!0).line;return i}function yq(i){for(var a,l;a=Bu(i);)i=a.find(1,!0).line,(l||(l=[])).push(i);return l}function Sp(i,a){var l=we(i,a),s=or(l);return l==s?a:Ve(s)}function e$(i,a){if(a>i.lastLine())return a;var l=we(i,a),s;if(!Qr(i,l))return a;for(;s=Bu(l);)l=s.find(1,!0).line;return Ve(l)+1}function Qr(i,a){var l=Mr&&a.markedSpans;if(l){for(var s=void 0,c=0;c<l.length;++c)if(s=l[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Ap(i,a,s))return!0}}}function Ap(i,a,l){if(l.to==null){var s=l.marker.find(1,!0);return Ap(i,s.line,ws(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==a.text.length)return!0;for(var c=void 0,d=0;d<a.markedSpans.length;++d)if(c=a.markedSpans[d],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Ap(i,a,c))return!0}function Pr(i){i=or(i);for(var a=0,l=i.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==i)break;a+=c.height}for(var d=l.parent;d;l=d,d=l.parent)for(var h=0;h<d.children.length;++h){var m=d.children[h];if(m==l)break;a+=m.height}return a}function Hu(i){if(i.height==0)return 0;for(var a=i.text.length,l,s=i;l=Q0(s);){var c=l.find(0,!0);s=c.from.line,a+=c.from.ch-c.to.ch}for(s=i;l=Bu(s);){var d=l.find(0,!0);a-=s.text.length-d.from.ch,s=d.to.line,a+=s.text.length-d.to.ch}return a}function Tp(i){var a=i.display,l=i.doc;a.maxLine=we(l,l.first),a.maxLineLength=Hu(a.maxLine),a.maxLineChanged=!0,l.iter(function(s){var c=Hu(s);c>a.maxLineLength&&(a.maxLineLength=c,a.maxLine=s)})}var eo=function(i,a,l){this.text=i,X0(this,a),this.height=l?l(this):1};eo.prototype.lineNo=function(){return Ve(this)},tr(eo);function bq(i,a,l,s){i.text=a,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),J0(i),X0(i,l);var c=s?s(i):1;c!=i.height&&hn(i,c)}function $q(i){i.parent=null,J0(i)}var kq={},wq={};function t$(i,a){if(!i||/^\s*$/.test(i))return null;var l=a.addModeClass?wq:kq;return l[i]||(l[i]=i.replace(/\S+/g,"cm-$&"))}function n$(i,a){var l=$("span",null,null,k?"padding-right: .1px":null),s={pre:$("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};a.measure={};for(var c=0;c<=(a.rest?a.rest.length:0);c++){var d=c?a.rest[c-1]:a.line,h=void 0;s.pos=0,s.addToken=Cq,nr(i.display.measure)&&(h=pn(d,i.doc.direction))&&(s.addToken=Aq(s.addToken,h)),s.map=[];var m=a!=i.display.externalMeasured&&Ve(d);Tq(d,s,H0(i,d,m)),d.styleClasses&&(d.styleClasses.bgClass&&(s.bgClass=he(d.styleClasses.bgClass,s.bgClass||"")),d.styleClasses.textClass&&(s.textClass=he(d.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Pu(i.display.measure))),c==0?(a.measure.map=s.map,a.measure.cache={}):((a.measure.maps||(a.measure.maps=[])).push(s.map),(a.measure.caches||(a.measure.caches=[])).push({}))}if(k){var g=s.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Be(i,"renderLine",i,a.line,s.pre),s.pre.className&&(s.textClass=he(s.pre.className,s.textClass||"")),s}function xq(i){var a=F("span","\u2022","cm-invalidchar");return a.title="\\u"+i.charCodeAt(0).toString(16),a.setAttribute("aria-label",a.title),a}function Cq(i,a,l,s,c,d,h){if(!!a){var m=i.splitSpaces?Sq(a,i.trailingSpace):a,g=i.cm.state.specialChars,y=!1,S;if(!g.test(a))i.col+=a.length,S=document.createTextNode(m),i.map.push(i.pos,i.pos+a.length,S),_&&v<9&&(y=!0),i.pos+=a.length;else{S=document.createDocumentFragment();for(var O=0;;){g.lastIndex=O;var N=g.exec(a),L=N?N.index-O:a.length-O;if(L){var K=document.createTextNode(m.slice(O,O+L));_&&v<9?S.appendChild(F("span",[K])):S.appendChild(K),i.map.push(i.pos,i.pos+L,K),i.col+=L,i.pos+=L}if(!N)break;O+=L+1;var Q=void 0;if(N[0]==" "){var ue=i.cm.options.tabSize,_e=ue-i.col%ue;Q=S.appendChild(F("span",R(_e),"cm-tab")),Q.setAttribute("role","presentation"),Q.setAttribute("cm-text"," "),i.col+=_e}else N[0]=="\r"||N[0]==`
`?(Q=S.appendChild(F("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Q.setAttribute("cm-text",N[0]),i.col+=1):(Q=i.cm.options.specialCharPlaceholder(N[0]),Q.setAttribute("cm-text",N[0]),_&&v<9?S.appendChild(F("span",[Q])):S.appendChild(Q),i.col+=1);i.map.push(i.pos,i.pos+1,Q),i.pos++}}if(i.trailingSpace=m.charCodeAt(a.length-1)==32,l||s||c||y||d||h){var be=l||"";s&&(be+=s),c&&(be+=c);var ve=F("span",[S],be,d);if(h)for(var ke in h)h.hasOwnProperty(ke)&&ke!="style"&&ke!="class"&&ve.setAttribute(ke,h[ke]);return i.content.appendChild(ve)}i.content.appendChild(S)}}function Sq(i,a){if(i.length>1&&!/ /.test(i))return i;for(var l=a,s="",c=0;c<i.length;c++){var d=i.charAt(c);d==" "&&l&&(c==i.length-1||i.charCodeAt(c+1)==32)&&(d="\xA0"),s+=d,l=d==" "}return s}function Aq(i,a){return function(l,s,c,d,h,m,g){c=c?c+" cm-force-border":"cm-force-border";for(var y=l.pos,S=y+s.length;;){for(var O=void 0,N=0;N<a.length&&(O=a[N],!(O.to>y&&O.from<=y));N++);if(O.to>=S)return i(l,s,c,d,h,m,g);i(l,s.slice(0,O.to-y),c,d,null,m,g),d=null,s=s.slice(O.to-y),y=O.to}}}function r$(i,a,l,s){var c=!s&&l.widgetNode;c&&i.map.push(i.pos,i.pos+a,c),!s&&i.cm.display.input.needsContentAttribute&&(c||(c=i.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",l.id)),c&&(i.cm.display.input.setUneditable(c),i.content.appendChild(c)),i.pos+=a,i.trailingSpace=!1}function Tq(i,a,l){var s=i.markedSpans,c=i.text,d=0;if(!s){for(var h=1;h<l.length;h+=2)a.addToken(a,c.slice(d,d=l[h]),t$(l[h+1],a.cm.options));return}for(var m=c.length,g=0,y=1,S="",O,N,L=0,K,Q,ue,_e,be;;){if(L==g){K=Q=ue=N="",be=null,_e=null,L=1/0;for(var ve=[],ke=void 0,Ee=0;Ee<s.length;++Ee){var Ae=s[Ee],Ge=Ae.marker;if(Ge.type=="bookmark"&&Ae.from==g&&Ge.widgetNode)ve.push(Ge);else if(Ae.from<=g&&(Ae.to==null||Ae.to>g||Ge.collapsed&&Ae.to==g&&Ae.from==g)){if(Ae.to!=null&&Ae.to!=g&&L>Ae.to&&(L=Ae.to,Q=""),Ge.className&&(K+=" "+Ge.className),Ge.css&&(N=(N?N+";":"")+Ge.css),Ge.startStyle&&Ae.from==g&&(ue+=" "+Ge.startStyle),Ge.endStyle&&Ae.to==L&&(ke||(ke=[])).push(Ge.endStyle,Ae.to),Ge.title&&((be||(be={})).title=Ge.title),Ge.attributes)for(var nt in Ge.attributes)(be||(be={}))[nt]=Ge.attributes[nt];Ge.collapsed&&(!_e||Cp(_e.marker,Ge)<0)&&(_e=Ae)}else Ae.from>g&&L>Ae.from&&(L=Ae.from)}if(ke)for(var Ot=0;Ot<ke.length;Ot+=2)ke[Ot+1]==L&&(Q+=" "+ke[Ot]);if(!_e||_e.from==g)for(var lt=0;lt<ve.length;++lt)r$(a,0,ve[lt]);if(_e&&(_e.from||0)==g){if(r$(a,(_e.to==null?m+1:_e.to)-g,_e.marker,_e.from==null),_e.to==null)return;_e.to==g&&(_e=!1)}}if(g>=m)break;for(var vn=Math.min(m,L);;){if(S){var nn=g+S.length;if(!_e){var yt=nn>vn?S.slice(0,vn-g):S;a.addToken(a,yt,O?O+K:K,ue,g+yt.length==L?Q:"",N,be)}if(nn>=vn){S=S.slice(vn-g),g=vn;break}g=nn,ue=""}S=c.slice(d,d=l[y++]),O=t$(l[y++],a.cm.options)}}}function i$(i,a,l){this.line=a,this.rest=yq(a),this.size=this.rest?Ve(A(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Qr(i,a)}function zu(i,a,l){for(var s=[],c,d=a;d<l;d=c){var h=new i$(i.doc,we(i.doc,d),d);c=d+h.size,s.push(h)}return s}var to=null;function Oq(i){to?to.ops.push(i):i.ownsGroup=to={ops:[i],delayedCallbacks:[]}}function Eq(i){var a=i.delayedCallbacks,l=0;do{for(;l<a.length;l++)a[l].call(null);for(var s=0;s<i.ops.length;s++){var c=i.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(l<a.length)}function Fq(i,a){var l=i.ownsGroup;if(!!l)try{Eq(l)}finally{to=null,a(l)}}var xs=null;function St(i,a){var l=qa(i,a);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;to?c=to.delayedCallbacks:xs?c=xs:(c=xs=[],setTimeout(Mq,0));for(var d=function(m){c.push(function(){return l[m].apply(null,s)})},h=0;h<l.length;++h)d(h)}}function Mq(){var i=xs;xs=null;for(var a=0;a<i.length;++a)i[a]()}function a$(i,a,l,s){for(var c=0;c<a.changes.length;c++){var d=a.changes[c];d=="text"?Lq(i,a):d=="gutter"?s$(i,a,l,s):d=="class"?Op(i,a):d=="widget"&&Nq(i,a,s)}a.changes=null}function Cs(i){return i.node==i.text&&(i.node=F("div",null,null,"position: relative"),i.text.parentNode&&i.text.parentNode.replaceChild(i.node,i.text),i.node.appendChild(i.text),_&&v<8&&(i.node.style.zIndex=2)),i.node}function Pq(i,a){var l=a.bgClass?a.bgClass+" "+(a.line.bgClass||""):a.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),a.background)l?a.background.className=l:(a.background.parentNode.removeChild(a.background),a.background=null);else if(l){var s=Cs(a);a.background=s.insertBefore(F("div",null,l),s.firstChild),i.display.input.setUneditable(a.background)}}function o$(i,a){var l=i.display.externalMeasured;return l&&l.line==a.line?(i.display.externalMeasured=null,a.measure=l.measure,l.built):n$(i,a)}function Lq(i,a){var l=a.text.className,s=o$(i,a);a.text==a.node&&(a.node=s.pre),a.text.parentNode.replaceChild(s.pre,a.text),a.text=s.pre,s.bgClass!=a.bgClass||s.textClass!=a.textClass?(a.bgClass=s.bgClass,a.textClass=s.textClass,Op(i,a)):l&&(a.text.className=l)}function Op(i,a){Pq(i,a),a.line.wrapClass?Cs(a).className=a.line.wrapClass:a.node!=a.text&&(a.node.className="");var l=a.textClass?a.textClass+" "+(a.line.textClass||""):a.line.textClass;a.text.className=l||""}function s$(i,a,l,s){if(a.gutter&&(a.node.removeChild(a.gutter),a.gutter=null),a.gutterBackground&&(a.node.removeChild(a.gutterBackground),a.gutterBackground=null),a.line.gutterClass){var c=Cs(a);a.gutterBackground=F("div",null,"CodeMirror-gutter-background "+a.line.gutterClass,"left: "+(i.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),i.display.input.setUneditable(a.gutterBackground),c.insertBefore(a.gutterBackground,a.text)}var d=a.line.gutterMarkers;if(i.options.lineNumbers||d){var h=Cs(a),m=a.gutter=F("div",null,"CodeMirror-gutter-wrapper","left: "+(i.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),i.display.input.setUneditable(m),h.insertBefore(m,a.text),a.line.gutterClass&&(m.className+=" "+a.line.gutterClass),i.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(a.lineNumber=m.appendChild(F("div",$s(i.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+i.display.lineNumInnerWidth+"px"))),d)for(var g=0;g<i.display.gutterSpecs.length;++g){var y=i.display.gutterSpecs[g].className,S=d.hasOwnProperty(y)&&d[y];S&&m.appendChild(F("div",[S],"CodeMirror-gutter-elt","left: "+s.gutterLeft[y]+"px; width: "+s.gutterWidth[y]+"px"))}}}function Nq(i,a,l){a.alignable&&(a.alignable=null);for(var s=pe("CodeMirror-linewidget"),c=a.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&a.node.removeChild(c);l$(i,a,l)}function Rq(i,a,l,s){var c=o$(i,a);return a.text=a.node=c.pre,c.bgClass&&(a.bgClass=c.bgClass),c.textClass&&(a.textClass=c.textClass),Op(i,a),s$(i,a,l,s),l$(i,a,s),a.node}function l$(i,a,l){if(u$(i,a.line,a,l,!0),a.rest)for(var s=0;s<a.rest.length;s++)u$(i,a.rest[s],a,l,!1)}function u$(i,a,l,s,c){if(!!a.widgets)for(var d=Cs(l),h=0,m=a.widgets;h<m.length;++h){var g=m[h],y=F("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),Iq(g,y,l,s),i.display.input.setUneditable(y),c&&g.above?d.insertBefore(y,l.gutter||l.text):d.appendChild(y),St(g,"redraw")}}function Iq(i,a,l,s){if(i.noHScroll){(l.alignable||(l.alignable=[])).push(a);var c=s.wrapperWidth;a.style.left=s.fixedPos+"px",i.coverGutter||(c-=s.gutterTotalWidth,a.style.paddingLeft=s.gutterTotalWidth+"px"),a.style.width=c+"px"}i.coverGutter&&(a.style.zIndex=5,a.style.position="relative",i.noHScroll||(a.style.marginLeft=-s.gutterTotalWidth+"px"))}function Ss(i){if(i.height!=null)return i.height;var a=i.doc.cm;if(!a)return 0;if(!H(document.body,i.node)){var l="position: relative;";i.coverGutter&&(l+="margin-left: -"+a.display.gutters.offsetWidth+"px;"),i.noHScroll&&(l+="width: "+a.display.wrapper.clientWidth+"px;"),C(a.display.measure,F("div",[i.node],null,l))}return i.height=i.node.parentNode.offsetHeight}function Lr(i,a){for(var l=Xr(a);l!=i.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==i.sizer&&l!=i.mover)return!0}function Wu(i){return i.lineSpace.offsetTop}function Ep(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function c$(i){if(i.cachedPaddingH)return i.cachedPaddingH;var a=C(i.measure,F("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(i.cachedPaddingH=s),s}function sr(i){return ye-i.display.nativeBarWidth}function Bi(i){return i.display.scroller.clientWidth-sr(i)-i.display.barWidth}function Fp(i){return i.display.scroller.clientHeight-sr(i)-i.display.barHeight}function Dq(i,a,l){var s=i.options.lineWrapping,c=s&&Bi(i);if(!a.measure.heights||s&&a.measure.width!=c){var d=a.measure.heights=[];if(s){a.measure.width=c;for(var h=a.text.firstChild.getClientRects(),m=0;m<h.length-1;m++){var g=h[m],y=h[m+1];Math.abs(g.bottom-y.bottom)>2&&d.push((g.bottom+y.top)/2-l.top)}}d.push(l.bottom-l.top)}}function f$(i,a,l){if(i.line==a)return{map:i.measure.map,cache:i.measure.cache};if(i.rest){for(var s=0;s<i.rest.length;s++)if(i.rest[s]==a)return{map:i.measure.maps[s],cache:i.measure.caches[s]};for(var c=0;c<i.rest.length;c++)if(Ve(i.rest[c])>l)return{map:i.measure.maps[c],cache:i.measure.caches[c],before:!0}}}function jq(i,a){a=or(a);var l=Ve(a),s=i.display.externalMeasured=new i$(i.doc,a,l);s.lineN=l;var c=s.built=n$(i,s);return s.text=c.pre,C(i.display.lineMeasure,c.pre),s}function d$(i,a,l,s){return lr(i,no(i,a),l,s)}function Mp(i,a){if(a>=i.display.viewFrom&&a<i.display.viewTo)return i.display.view[Wi(i,a)];var l=i.display.externalMeasured;if(l&&a>=l.lineN&&a<l.lineN+l.size)return l}function no(i,a){var l=Ve(a),s=Mp(i,l);s&&!s.text?s=null:s&&s.changes&&(a$(i,s,l,Ip(i)),i.curOp.forceUpdate=!0),s||(s=jq(i,a));var c=f$(s,a,l);return{line:a,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function lr(i,a,l,s,c){a.before&&(l=-1);var d=l+(s||""),h;return a.cache.hasOwnProperty(d)?h=a.cache[d]:(a.rect||(a.rect=a.view.text.getBoundingClientRect()),a.hasHeights||(Dq(i,a.view,a.rect),a.hasHeights=!0),h=Hq(i,a,l,s),h.bogus||(a.cache[d]=h)),{left:h.left,right:h.right,top:c?h.rtop:h.top,bottom:c?h.rbottom:h.bottom}}var p$={left:0,right:0,top:0,bottom:0};function h$(i,a,l){for(var s,c,d,h,m,g,y=0;y<i.length;y+=3)if(m=i[y],g=i[y+1],a<m?(c=0,d=1,h="left"):a<g?(c=a-m,d=c+1):(y==i.length-3||a==g&&i[y+3]>a)&&(d=g-m,c=d-1,a>=g&&(h="right")),c!=null){if(s=i[y+2],m==g&&l==(s.insertLeft?"left":"right")&&(h=l),l=="left"&&c==0)for(;y&&i[y-2]==i[y-3]&&i[y-1].insertLeft;)s=i[(y-=3)+2],h="left";if(l=="right"&&c==g-m)for(;y<i.length-3&&i[y+3]==i[y+4]&&!i[y+5].insertLeft;)s=i[(y+=3)+2],h="right";break}return{node:s,start:c,end:d,collapse:h,coverStart:m,coverEnd:g}}function Bq(i,a){var l=p$;if(a=="left")for(var s=0;s<i.length&&(l=i[s]).left==l.right;s++);else for(var c=i.length-1;c>=0&&(l=i[c]).left==l.right;c--);return l}function Hq(i,a,l,s){var c=h$(a.map,l,s),d=c.node,h=c.start,m=c.end,g=c.collapse,y;if(d.nodeType==3){for(var S=0;S<4;S++){for(;h&&Ye(a.line.text.charAt(c.coverStart+h));)--h;for(;c.coverStart+m<c.coverEnd&&Ye(a.line.text.charAt(c.coverStart+m));)++m;if(_&&v<9&&h==0&&m==c.coverEnd-c.coverStart?y=d.parentNode.getBoundingClientRect():y=Bq(G(d,h,m).getClientRects(),s),y.left||y.right||h==0)break;m=h,h=h-1,g="right"}_&&v<11&&(y=zq(i.display.measure,y))}else{h>0&&(g=s="right");var O;i.options.lineWrapping&&(O=d.getClientRects()).length>1?y=O[s=="right"?O.length-1:0]:y=d.getBoundingClientRect()}if(_&&v<9&&!h&&(!y||!y.left&&!y.right)){var N=d.parentNode.getClientRects()[0];N?y={left:N.left,right:N.left+io(i.display),top:N.top,bottom:N.bottom}:y=p$}for(var L=y.top-a.rect.top,K=y.bottom-a.rect.top,Q=(L+K)/2,ue=a.view.measure.heights,_e=0;_e<ue.length-1&&!(Q<ue[_e]);_e++);var be=_e?ue[_e-1]:0,ve=ue[_e],ke={left:(g=="right"?y.right:y.left)-a.rect.left,right:(g=="left"?y.left:y.right)-a.rect.left,top:be,bottom:ve};return!y.left&&!y.right&&(ke.bogus=!0),i.options.singleCursorHeightPerLine||(ke.rtop=L,ke.rbottom=K),ke}function zq(i,a){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zr(i))return a;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:a.left*l,right:a.right*l,top:a.top*s,bottom:a.bottom*s}}function _$(i){if(i.measure&&(i.measure.cache={},i.measure.heights=null,i.rest))for(var a=0;a<i.rest.length;a++)i.measure.caches[a]={}}function v$(i){i.display.externalMeasure=null,P(i.display.lineMeasure);for(var a=0;a<i.display.view.length;a++)_$(i.display.view[a])}function As(i){v$(i),i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null,i.options.lineWrapping||(i.display.maxLineChanged=!0),i.display.lineNumChars=null}function m$(){return x&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function g$(){return x&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Pp(i){var a=0;if(i.widgets)for(var l=0;l<i.widgets.length;++l)i.widgets[l].above&&(a+=Ss(i.widgets[l]));return a}function Gu(i,a,l,s,c){if(!c){var d=Pp(a);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var h=Pr(a);if(s=="local"?h+=Wu(i.display):h-=i.display.viewOffset,s=="page"||s=="window"){var m=i.display.lineSpace.getBoundingClientRect();h+=m.top+(s=="window"?0:g$());var g=m.left+(s=="window"?0:m$());l.left+=g,l.right+=g}return l.top+=h,l.bottom+=h,l}function y$(i,a,l){if(l=="div")return a;var s=a.left,c=a.top;if(l=="page")s-=m$(),c-=g$();else if(l=="local"||!l){var d=i.display.sizer.getBoundingClientRect();s+=d.left,c+=d.top}var h=i.display.lineSpace.getBoundingClientRect();return{left:s-h.left,top:c-h.top}}function Ku(i,a,l,s,c){return s||(s=we(i.doc,a.line)),Gu(i,s,d$(i,s,a.ch,c),l)}function Kn(i,a,l,s,c,d){s=s||we(i.doc,a.line),c||(c=no(i,s));function h(K,Q){var ue=lr(i,c,K,Q?"right":"left",d);return Q?ue.left=ue.right:ue.right=ue.left,Gu(i,s,ue,l)}var m=pn(s,i.doc.direction),g=a.ch,y=a.sticky;if(g>=s.text.length?(g=s.text.length,y="before"):g<=0&&(g=0,y="after"),!m)return h(y=="before"?g-1:g,y=="before");function S(K,Q,ue){var _e=m[Q],be=_e.level==1;return h(ue?K-1:K,be!=ue)}var O=ct(m,g,y),N=bn,L=S(g,O,y=="before");return N!=null&&(L.other=S(g,N,y!="before")),L}function b$(i,a){var l=0;a=$e(i.doc,a),i.options.lineWrapping||(l=io(i.display)*a.ch);var s=we(i.doc,a.line),c=Pr(s)+Wu(i.display);return{left:l,right:l,top:c,bottom:c+s.height}}function Lp(i,a,l,s,c){var d=ne(i,a,l);return d.xRel=c,s&&(d.outside=s),d}function Np(i,a,l){var s=i.doc;if(l+=i.display.viewOffset,l<0)return Lp(s.first,0,null,-1,-1);var c=ir(s,l),d=s.first+s.size-1;if(c>d)return Lp(s.first+s.size-1,we(s,d).text.length,null,1,1);a<0&&(a=0);for(var h=we(s,c);;){var m=Wq(i,h,c,a,l),g=mq(h,m.ch+(m.xRel>0||m.outside>0?1:0));if(!g)return m;var y=g.find(1);if(y.line==c)return y;h=we(s,c=y.line)}}function $$(i,a,l,s){s-=Pp(a);var c=a.text.length,d=er(function(h){return lr(i,l,h-1).bottom<=s},c,0);return c=er(function(h){return lr(i,l,h).top>s},d,c),{begin:d,end:c}}function k$(i,a,l,s){l||(l=no(i,a));var c=Gu(i,a,lr(i,l,s),"line").top;return $$(i,a,l,c)}function Rp(i,a,l,s){return i.bottom<=l?!1:i.top>l?!0:(s?i.left:i.right)>a}function Wq(i,a,l,s,c){c-=Pr(a);var d=no(i,a),h=Pp(a),m=0,g=a.text.length,y=!0,S=pn(a,i.doc.direction);if(S){var O=(i.options.lineWrapping?Kq:Gq)(i,a,l,d,S,s,c);y=O.level!=1,m=y?O.from:O.to-1,g=y?O.to:O.from-1}var N=null,L=null,K=er(function(Ee){var Ae=lr(i,d,Ee);return Ae.top+=h,Ae.bottom+=h,Rp(Ae,s,c,!1)?(Ae.top<=c&&Ae.left<=s&&(N=Ee,L=Ae),!0):!1},m,g),Q,ue,_e=!1;if(L){var be=s-L.left<L.right-s,ve=be==y;K=N+(ve?0:1),ue=ve?"after":"before",Q=be?L.left:L.right}else{!y&&(K==g||K==m)&&K++,ue=K==0?"after":K==a.text.length?"before":lr(i,d,K-(y?1:0)).bottom+h<=c==y?"after":"before";var ke=Kn(i,ne(l,K,ue),"line",a,d);Q=ke.left,_e=c<ke.top?-1:c>=ke.bottom?1:0}return K=Ut(a.text,K,1),Lp(l,K,ue,_e,s-Q)}function Gq(i,a,l,s,c,d,h){var m=er(function(O){var N=c[O],L=N.level!=1;return Rp(Kn(i,ne(l,L?N.to:N.from,L?"before":"after"),"line",a,s),d,h,!0)},0,c.length-1),g=c[m];if(m>0){var y=g.level!=1,S=Kn(i,ne(l,y?g.from:g.to,y?"after":"before"),"line",a,s);Rp(S,d,h,!0)&&S.top>h&&(g=c[m-1])}return g}function Kq(i,a,l,s,c,d,h){var m=$$(i,a,s,h),g=m.begin,y=m.end;/\s/.test(a.text.charAt(y-1))&&y--;for(var S=null,O=null,N=0;N<c.length;N++){var L=c[N];if(!(L.from>=y||L.to<=g)){var K=L.level!=1,Q=lr(i,s,K?Math.min(y,L.to)-1:Math.max(g,L.from)).right,ue=Q<d?d-Q+1e9:Q-d;(!S||O>ue)&&(S=L,O=ue)}}return S||(S=c[c.length-1]),S.from<g&&(S={from:g,to:S.to,level:S.level}),S.to>y&&(S={from:S.from,to:y,level:S.level}),S}var Hi;function ro(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(Hi==null){Hi=F("pre",null,"CodeMirror-line-like");for(var a=0;a<49;++a)Hi.appendChild(document.createTextNode("x")),Hi.appendChild(F("br"));Hi.appendChild(document.createTextNode("x"))}C(i.measure,Hi);var l=Hi.offsetHeight/50;return l>3&&(i.cachedTextHeight=l),P(i.measure),l||1}function io(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var a=F("span","xxxxxxxxxx"),l=F("pre",[a],"CodeMirror-line-like");C(i.measure,l);var s=a.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(i.cachedCharWidth=c),c||10}function Ip(i){for(var a=i.display,l={},s={},c=a.gutters.clientLeft,d=a.gutters.firstChild,h=0;d;d=d.nextSibling,++h){var m=i.display.gutterSpecs[h].className;l[m]=d.offsetLeft+d.clientLeft+c,s[m]=d.clientWidth}return{fixedPos:Dp(a),gutterTotalWidth:a.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:a.wrapper.clientWidth}}function Dp(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function w$(i){var a=ro(i.display),l=i.options.lineWrapping,s=l&&Math.max(5,i.display.scroller.clientWidth/io(i.display)-3);return function(c){if(Qr(i.doc,c))return 0;var d=0;if(c.widgets)for(var h=0;h<c.widgets.length;h++)c.widgets[h].height&&(d+=c.widgets[h].height);return l?d+(Math.ceil(c.text.length/s)||1)*a:d+a}}function jp(i){var a=i.doc,l=w$(i);a.iter(function(s){var c=l(s);c!=s.height&&hn(s,c)})}function zi(i,a,l,s){var c=i.display;if(!l&&Xr(a).getAttribute("cm-not-content")=="true")return null;var d,h,m=c.lineSpace.getBoundingClientRect();try{d=a.clientX-m.left,h=a.clientY-m.top}catch{return null}var g=Np(i,d,h),y;if(s&&g.xRel>0&&(y=we(i.doc,g.line).text).length==g.ch){var S=qe(y,y.length,i.options.tabSize)-y.length;g=ne(g.line,Math.max(0,Math.round((d-c$(i.display).left)/io(i.display))-S))}return g}function Wi(i,a){if(a>=i.display.viewTo||(a-=i.display.viewFrom,a<0))return null;for(var l=i.display.view,s=0;s<l.length;s++)if(a-=l[s].size,a<0)return s}function en(i,a,l,s){a==null&&(a=i.doc.first),l==null&&(l=i.doc.first+i.doc.size),s||(s=0);var c=i.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>a)&&(c.updateLineNumbers=a),i.curOp.viewChanged=!0,a>=c.viewTo)Mr&&Sp(i.doc,a)<c.viewTo&&ei(i);else if(l<=c.viewFrom)Mr&&e$(i.doc,l+s)>c.viewFrom?ei(i):(c.viewFrom+=s,c.viewTo+=s);else if(a<=c.viewFrom&&l>=c.viewTo)ei(i);else if(a<=c.viewFrom){var d=Uu(i,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):ei(i)}else if(l>=c.viewTo){var h=Uu(i,a,a,-1);h?(c.view=c.view.slice(0,h.index),c.viewTo=h.lineN):ei(i)}else{var m=Uu(i,a,a,-1),g=Uu(i,l,l+s,1);m&&g?(c.view=c.view.slice(0,m.index).concat(zu(i,m.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=s):ei(i)}var y=c.externalMeasured;y&&(l<y.lineN?y.lineN+=s:a<y.lineN+y.size&&(c.externalMeasured=null))}function Vr(i,a,l){i.curOp.viewChanged=!0;var s=i.display,c=i.display.externalMeasured;if(c&&a>=c.lineN&&a<c.lineN+c.size&&(s.externalMeasured=null),!(a<s.viewFrom||a>=s.viewTo)){var d=s.view[Wi(i,a)];if(d.node!=null){var h=d.changes||(d.changes=[]);me(h,l)==-1&&h.push(l)}}}function ei(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function Uu(i,a,l,s){var c=Wi(i,a),d,h=i.display.view;if(!Mr||l==i.doc.first+i.doc.size)return{index:c,lineN:l};for(var m=i.display.viewFrom,g=0;g<c;g++)m+=h[g].size;if(m!=a){if(s>0){if(c==h.length-1)return null;d=m+h[c].size-a,c++}else d=m-a;a+=d,l+=d}for(;Sp(i.doc,l)!=l;){if(c==(s<0?0:h.length-1))return null;l+=s*h[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function Uq(i,a,l){var s=i.display,c=s.view;c.length==0||a>=s.viewTo||l<=s.viewFrom?(s.view=zu(i,a,l),s.viewFrom=a):(s.viewFrom>a?s.view=zu(i,a,s.viewFrom).concat(s.view):s.viewFrom<a&&(s.view=s.view.slice(Wi(i,a))),s.viewFrom=a,s.viewTo<l?s.view=s.view.concat(zu(i,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,Wi(i,l)))),s.viewTo=l}function x$(i){for(var a=i.display.view,l=0,s=0;s<a.length;s++){var c=a[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function Ts(i){i.display.input.showSelection(i.display.input.prepareSelection())}function C$(i,a){a===void 0&&(a=!0);var l=i.doc,s={},c=s.cursors=document.createDocumentFragment(),d=s.selection=document.createDocumentFragment(),h=i.options.$customCursor;h&&(a=!0);for(var m=0;m<l.sel.ranges.length;m++)if(!(!a&&m==l.sel.primIndex)){var g=l.sel.ranges[m];if(!(g.from().line>=i.display.viewTo||g.to().line<i.display.viewFrom)){var y=g.empty();if(h){var S=h(i,g);S&&Bp(i,S,c)}else(y||i.options.showCursorWhenSelecting)&&Bp(i,g.head,c);y||Yq(i,g,d)}}return s}function Bp(i,a,l){var s=Kn(i,a,"div",null,null,!i.options.singleCursorHeightPerLine),c=l.appendChild(F("div","\xA0","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*i.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(i.getWrapperElement().className)){var d=Ku(i,a,"div",null,null),h=d.right-d.left;c.style.width=(h>0?h:i.defaultCharWidth())+"px"}if(s.other){var m=l.appendChild(F("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));m.style.display="",m.style.left=s.other.left+"px",m.style.top=s.other.top+"px",m.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function Yu(i,a){return i.top-a.top||i.left-a.left}function Yq(i,a,l){var s=i.display,c=i.doc,d=document.createDocumentFragment(),h=c$(i.display),m=h.left,g=Math.max(s.sizerWidth,Bi(i)-s.sizer.offsetLeft)-h.right,y=c.direction=="ltr";function S(ve,ke,Ee,Ae){ke<0&&(ke=0),ke=Math.round(ke),Ae=Math.round(Ae),d.appendChild(F("div",null,"CodeMirror-selected","position: absolute; left: "+ve+`px;
top: `+ke+"px; width: "+(Ee??g-ve)+`px;
height: `+(Ae-ke)+"px"))}function O(ve,ke,Ee){var Ae=we(c,ve),Ge=Ae.text.length,nt,Ot;function lt(yt,rn){return Ku(i,ne(ve,yt),"div",Ae,rn)}function vn(yt,rn,Nt){var xt=k$(i,Ae,null,yt),bt=rn=="ltr"==(Nt=="after")?"left":"right",dt=Nt=="after"?xt.begin:xt.end-(/\s/.test(Ae.text.charAt(xt.end-1))?2:1);return lt(dt,bt)[bt]}var nn=pn(Ae,c.direction);return $p(nn,ke||0,Ee??Ge,function(yt,rn,Nt,xt){var bt=Nt=="ltr",dt=lt(yt,bt?"left":"right"),an=lt(rn-1,bt?"right":"left"),go=ke==null&&yt==0,oi=Ee==null&&rn==Ge,Bt=xt==0,ur=!nn||xt==nn.length-1;if(an.top-dt.top<=3){var Et=(y?go:oi)&&Bt,dh=(y?oi:go)&&ur,Ir=Et?m:(bt?dt:an).left,qi=dh?g:(bt?an:dt).right;S(Ir,dt.top,qi-Ir,dt.bottom)}else{var Ji,qt,yo,ph;bt?(Ji=y&&go&&Bt?m:dt.left,qt=y?g:vn(yt,Nt,"before"),yo=y?m:vn(rn,Nt,"after"),ph=y&&oi&&ur?g:an.right):(Ji=y?vn(yt,Nt,"before"):m,qt=!y&&go&&Bt?g:dt.right,yo=!y&&oi&&ur?m:an.left,ph=y?vn(rn,Nt,"after"):g),S(Ji,dt.top,qt-Ji,dt.bottom),dt.bottom<an.top&&S(m,dt.bottom,null,an.top),S(yo,an.top,ph-yo,an.bottom)}(!nt||Yu(dt,nt)<0)&&(nt=dt),Yu(an,nt)<0&&(nt=an),(!Ot||Yu(dt,Ot)<0)&&(Ot=dt),Yu(an,Ot)<0&&(Ot=an)}),{start:nt,end:Ot}}var N=a.from(),L=a.to();if(N.line==L.line)O(N.line,N.ch,L.ch);else{var K=we(c,N.line),Q=we(c,L.line),ue=or(K)==or(Q),_e=O(N.line,N.ch,ue?K.text.length+1:null).end,be=O(L.line,ue?0:null,L.ch).start;ue&&(_e.top<be.top-2?(S(_e.right,_e.top,null,_e.bottom),S(m,be.top,be.left,be.bottom)):S(_e.right,_e.top,be.left-_e.right,_e.bottom)),_e.bottom<be.top&&S(m,_e.bottom,null,be.top)}l.appendChild(d)}function Hp(i){if(!!i.state.focused){var a=i.display;clearInterval(a.blinker);var l=!0;a.cursorDiv.style.visibility="",i.options.cursorBlinkRate>0?a.blinker=setInterval(function(){i.hasFocus()||ao(i),a.cursorDiv.style.visibility=(l=!l)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(a.cursorDiv.style.visibility="hidden")}}function S$(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||Wp(i))}function zp(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&ao(i))},100)}function Wp(i,a){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(Be(i,"focus",i,a),i.state.focused=!0,ge(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),k&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),Hp(i))}function ao(i,a){i.state.delayingBlurEvent||(i.state.focused&&(Be(i,"blur",i,a),i.state.focused=!1,fe(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function qu(i){for(var a=i.display,l=a.lineDiv.offsetTop,s=Math.max(0,a.scroller.getBoundingClientRect().top),c=a.lineDiv.getBoundingClientRect().top,d=0,h=0;h<a.view.length;h++){var m=a.view[h],g=i.options.lineWrapping,y=void 0,S=0;if(!m.hidden){if(c+=m.line.height,_&&v<8){var O=m.node.offsetTop+m.node.offsetHeight;y=O-l,l=O}else{var N=m.node.getBoundingClientRect();y=N.bottom-N.top,!g&&m.text.firstChild&&(S=m.text.firstChild.getBoundingClientRect().right-N.left-1)}var L=m.line.height-y;if((L>.005||L<-.005)&&(c<s&&(d-=L),hn(m.line,y),A$(m.line),m.rest))for(var K=0;K<m.rest.length;K++)A$(m.rest[K]);if(S>i.display.sizerWidth){var Q=Math.ceil(S/io(i.display));Q>i.display.maxLineLength&&(i.display.maxLineLength=Q,i.display.maxLine=m.line,i.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(a.scroller.scrollTop+=d)}function A$(i){if(i.widgets)for(var a=0;a<i.widgets.length;++a){var l=i.widgets[a],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function Ju(i,a,l){var s=l&&l.top!=null?Math.max(0,l.top):i.scroller.scrollTop;s=Math.floor(s-Wu(i));var c=l&&l.bottom!=null?l.bottom:s+i.wrapper.clientHeight,d=ir(a,s),h=ir(a,c);if(l&&l.ensure){var m=l.ensure.from.line,g=l.ensure.to.line;m<d?(d=m,h=ir(a,Pr(we(a,m))+i.wrapper.clientHeight)):Math.min(g,a.lastLine())>=h&&(d=ir(a,Pr(we(a,g))-i.wrapper.clientHeight),h=g)}return{from:d,to:Math.max(h,d+1)}}function qq(i,a){if(!gt(i,"scrollCursorIntoView")){var l=i.display,s=l.sizer.getBoundingClientRect(),c=null;if(a.top+s.top<0?c=!0:a.bottom+s.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!q){var d=F("div","\u200B",null,`position: absolute;
top: `+(a.top-l.viewOffset-Wu(i.display))+`px;
height: `+(a.bottom-a.top+sr(i)+l.barHeight)+`px;
left: `+a.left+"px; width: "+Math.max(2,a.right-a.left)+"px;");i.display.lineSpace.appendChild(d),d.scrollIntoView(c),i.display.lineSpace.removeChild(d)}}}function Jq(i,a,l,s){s==null&&(s=0);var c;!i.options.lineWrapping&&a==l&&(l=a.sticky=="before"?ne(a.line,a.ch+1,"before"):a,a=a.ch?ne(a.line,a.sticky=="before"?a.ch-1:a.ch,"after"):a);for(var d=0;d<5;d++){var h=!1,m=Kn(i,a),g=!l||l==a?m:Kn(i,l);c={left:Math.min(m.left,g.left),top:Math.min(m.top,g.top)-s,right:Math.max(m.left,g.left),bottom:Math.max(m.bottom,g.bottom)+s};var y=Gp(i,c),S=i.doc.scrollTop,O=i.doc.scrollLeft;if(y.scrollTop!=null&&(Es(i,y.scrollTop),Math.abs(i.doc.scrollTop-S)>1&&(h=!0)),y.scrollLeft!=null&&(Gi(i,y.scrollLeft),Math.abs(i.doc.scrollLeft-O)>1&&(h=!0)),!h)break}return c}function Xq(i,a){var l=Gp(i,a);l.scrollTop!=null&&Es(i,l.scrollTop),l.scrollLeft!=null&&Gi(i,l.scrollLeft)}function Gp(i,a){var l=i.display,s=ro(i.display);a.top<0&&(a.top=0);var c=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:l.scroller.scrollTop,d=Fp(i),h={};a.bottom-a.top>d&&(a.bottom=a.top+d);var m=i.doc.height+Ep(l),g=a.top<s,y=a.bottom>m-s;if(a.top<c)h.scrollTop=g?0:a.top;else if(a.bottom>c+d){var S=Math.min(a.top,(y?m:a.bottom)-d);S!=c&&(h.scrollTop=S)}var O=i.options.fixedGutter?0:l.gutters.offsetWidth,N=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:l.scroller.scrollLeft-O,L=Bi(i)-l.gutters.offsetWidth,K=a.right-a.left>L;return K&&(a.right=a.left+L),a.left<10?h.scrollLeft=0:a.left<N?h.scrollLeft=Math.max(0,a.left+O-(K?0:10)):a.right>L+N-3&&(h.scrollLeft=a.right+(K?0:10)-L),h}function Kp(i,a){a!=null&&(Xu(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+a)}function oo(i){Xu(i);var a=i.getCursor();i.curOp.scrollToPos={from:a,to:a,margin:i.options.cursorScrollMargin}}function Os(i,a,l){(a!=null||l!=null)&&Xu(i),a!=null&&(i.curOp.scrollLeft=a),l!=null&&(i.curOp.scrollTop=l)}function Zq(i,a){Xu(i),i.curOp.scrollToPos=a}function Xu(i){var a=i.curOp.scrollToPos;if(a){i.curOp.scrollToPos=null;var l=b$(i,a.from),s=b$(i,a.to);T$(i,l,s,a.margin)}}function T$(i,a,l,s){var c=Gp(i,{left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-s,right:Math.max(a.right,l.right),bottom:Math.max(a.bottom,l.bottom)+s});Os(i,c.scrollLeft,c.scrollTop)}function Es(i,a){Math.abs(i.doc.scrollTop-a)<2||(o||Yp(i,{top:a}),O$(i,a,!0),o&&Yp(i),Ps(i,100))}function O$(i,a,l){a=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,a)),!(i.display.scroller.scrollTop==a&&!l)&&(i.doc.scrollTop=a,i.display.scrollbars.setScrollTop(a),i.display.scroller.scrollTop!=a&&(i.display.scroller.scrollTop=a))}function Gi(i,a,l,s){a=Math.max(0,Math.min(a,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((l?a==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-a)<2)&&!s)&&(i.doc.scrollLeft=a,L$(i),i.display.scroller.scrollLeft!=a&&(i.display.scroller.scrollLeft=a),i.display.scrollbars.setScrollLeft(a))}function Fs(i){var a=i.display,l=a.gutters.offsetWidth,s=Math.round(i.doc.height+Ep(i.display));return{clientHeight:a.scroller.clientHeight,viewHeight:a.wrapper.clientHeight,scrollWidth:a.scroller.scrollWidth,clientWidth:a.scroller.clientWidth,viewWidth:a.wrapper.clientWidth,barLeft:i.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+sr(i)+a.barHeight,nativeBarWidth:a.nativeBarWidth,gutterWidth:l}}var Ki=function(i,a,l){this.cm=l;var s=this.vert=F("div",[F("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=F("div",[F("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,i(s),i(c),Me(s,"scroll",function(){s.clientHeight&&a(s.scrollTop,"vertical")}),Me(c,"scroll",function(){c.clientWidth&&a(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ki.prototype.update=function(i){var a=i.scrollWidth>i.clientWidth+1,l=i.scrollHeight>i.clientHeight+1,s=i.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=a?s+"px":"0";var c=i.viewHeight-(a?s:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(a){this.horiz.style.display="block",this.horiz.style.right=l?s+"px":"0",this.horiz.style.left=i.barLeft+"px";var d=i.viewWidth-i.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:a?s:0}},Ki.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ki.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ki.prototype.zeroWidthHack=function(){var i=Y&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Re,this.disableVert=new Re},Ki.prototype.enableZeroWidthBar=function(i,a,l){i.style.pointerEvents="auto";function s(){var c=i.getBoundingClientRect(),d=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);d!=i?i.style.pointerEvents="none":a.set(1e3,s)}a.set(1e3,s)},Ki.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var Ms=function(){};Ms.prototype.update=function(){return{bottom:0,right:0}},Ms.prototype.setScrollLeft=function(){},Ms.prototype.setScrollTop=function(){},Ms.prototype.clear=function(){};function so(i,a){a||(a=Fs(i));var l=i.display.barWidth,s=i.display.barHeight;E$(i,a);for(var c=0;c<4&&l!=i.display.barWidth||s!=i.display.barHeight;c++)l!=i.display.barWidth&&i.options.lineWrapping&&qu(i),E$(i,Fs(i)),l=i.display.barWidth,s=i.display.barHeight}function E$(i,a){var l=i.display,s=l.scrollbars.update(a);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=a.gutterWidth+"px"):l.gutterFiller.style.display=""}var F$={native:Ki,null:Ms};function M$(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&fe(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new F$[i.options.scrollbarStyle](function(a){i.display.wrapper.insertBefore(a,i.display.scrollbarFiller),Me(a,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),a.setAttribute("cm-not-content","true")},function(a,l){l=="horizontal"?Gi(i,a):Es(i,a)},i),i.display.scrollbars.addClass&&ge(i.display.wrapper,i.display.scrollbars.addClass)}var Qq=0;function Ui(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.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:++Qq,markArrays:null},Oq(i.curOp)}function Yi(i){var a=i.curOp;a&&Fq(a,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;Vq(l)})}function Vq(i){for(var a=i.ops,l=0;l<a.length;l++)eJ(a[l]);for(var s=0;s<a.length;s++)tJ(a[s]);for(var c=0;c<a.length;c++)nJ(a[c]);for(var d=0;d<a.length;d++)rJ(a[d]);for(var h=0;h<a.length;h++)iJ(a[h])}function eJ(i){var a=i.cm,l=a.display;oJ(a),i.updateMaxLine&&Tp(a),i.mustUpdate=i.viewChanged||i.forceUpdate||i.scrollTop!=null||i.scrollToPos&&(i.scrollToPos.from.line<l.viewFrom||i.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&a.options.lineWrapping,i.update=i.mustUpdate&&new Zu(a,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function tJ(i){i.updatedDisplay=i.mustUpdate&&Up(i.cm,i.update)}function nJ(i){var a=i.cm,l=a.display;i.updatedDisplay&&qu(a),i.barMeasure=Fs(a),l.maxLineChanged&&!a.options.lineWrapping&&(i.adjustWidthTo=d$(a,l.maxLine,l.maxLine.text.length).left+3,a.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+i.adjustWidthTo+sr(a)+a.display.barWidth),i.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+i.adjustWidthTo-Bi(a))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=l.input.prepareSelection())}function rJ(i){var a=i.cm;i.adjustWidthTo!=null&&(a.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft<a.doc.scrollLeft&&Gi(a,Math.min(a.display.scroller.scrollLeft,i.maxScrollLeft),!0),a.display.maxLineChanged=!1);var l=i.focus&&i.focus==ee();i.preparedSelection&&a.display.input.showSelection(i.preparedSelection,l),(i.updatedDisplay||i.startHeight!=a.doc.height)&&so(a,i.barMeasure),i.updatedDisplay&&Jp(a,i.barMeasure),i.selectionChanged&&Hp(a),a.state.focused&&i.updateInput&&a.display.input.reset(i.typing),l&&S$(i.cm)}function iJ(i){var a=i.cm,l=a.display,s=a.doc;if(i.updatedDisplay&&P$(a,i.update),l.wheelStartX!=null&&(i.scrollTop!=null||i.scrollLeft!=null||i.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),i.scrollTop!=null&&O$(a,i.scrollTop,i.forceScroll),i.scrollLeft!=null&&Gi(a,i.scrollLeft,!0,!0),i.scrollToPos){var c=Jq(a,$e(s,i.scrollToPos.from),$e(s,i.scrollToPos.to),i.scrollToPos.margin);qq(a,c)}var d=i.maybeHiddenMarkers,h=i.maybeUnhiddenMarkers;if(d)for(var m=0;m<d.length;++m)d[m].lines.length||Be(d[m],"hide");if(h)for(var g=0;g<h.length;++g)h[g].lines.length&&Be(h[g],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=a.display.scroller.scrollTop),i.changeObjs&&Be(a,"changes",a,i.changeObjs),i.update&&i.update.finish()}function _n(i,a){if(i.curOp)return a();Ui(i);try{return a()}finally{Yi(i)}}function At(i,a){return function(){if(i.curOp)return a.apply(i,arguments);Ui(i);try{return a.apply(i,arguments)}finally{Yi(i)}}}function Yt(i){return function(){if(this.curOp)return i.apply(this,arguments);Ui(this);try{return i.apply(this,arguments)}finally{Yi(this)}}}function Tt(i){return function(){var a=this.cm;if(!a||a.curOp)return i.apply(this,arguments);Ui(a);try{return i.apply(this,arguments)}finally{Yi(a)}}}function Ps(i,a){i.doc.highlightFrontier<i.display.viewTo&&i.state.highlight.set(a,Se(aJ,i))}function aJ(i){var a=i.doc;if(!(a.highlightFrontier>=i.display.viewTo)){var l=+new Date+i.options.workTime,s=ks(i,a.highlightFrontier),c=[];a.iter(s.line,Math.min(a.first+a.size,i.display.viewTo+500),function(d){if(s.line>=i.display.viewFrom){var h=d.styles,m=d.text.length>i.options.maxHighlightLength?wn(a.mode,s.state):null,g=B0(i,d,s,!0);m&&(s.state=m),d.styles=g.styles;var y=d.styleClasses,S=g.classes;S?d.styleClasses=S:y&&(d.styleClasses=null);for(var O=!h||h.length!=d.styles.length||y!=S&&(!y||!S||y.bgClass!=S.bgClass||y.textClass!=S.textClass),N=0;!O&&N<h.length;++N)O=h[N]!=d.styles[N];O&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=i.options.maxHighlightLength&&kp(i,d.text,s),d.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return Ps(i,i.options.workDelay),!0}),a.highlightFrontier=s.line,a.modeFrontier=Math.max(a.modeFrontier,s.line),c.length&&_n(i,function(){for(var d=0;d<c.length;d++)Vr(i,c[d],"text")})}}var Zu=function(i,a,l){var s=i.display;this.viewport=a,this.visible=Ju(s,i.doc,a),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Bi(i),this.force=l,this.dims=Ip(i),this.events=[]};Zu.prototype.signal=function(i,a){Lt(i,a)&&this.events.push(arguments)},Zu.prototype.finish=function(){for(var i=0;i<this.events.length;i++)Be.apply(null,this.events[i])};function oJ(i){var a=i.display;!a.scrollbarsClipped&&a.scroller.offsetWidth&&(a.nativeBarWidth=a.scroller.offsetWidth-a.scroller.clientWidth,a.heightForcer.style.height=sr(i)+"px",a.sizer.style.marginBottom=-a.nativeBarWidth+"px",a.sizer.style.borderRightWidth=sr(i)+"px",a.scrollbarsClipped=!0)}function sJ(i){if(i.hasFocus())return null;var a=ee();if(!a||!H(i.display.lineDiv,a))return null;var l={activeElt:a};if(window.getSelection){var s=window.getSelection();s.anchorNode&&s.extend&&H(i.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function lJ(i){if(!(!i||!i.activeElt||i.activeElt==ee())&&(i.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(i.activeElt.nodeName)&&i.anchorNode&&H(document.body,i.anchorNode)&&H(document.body,i.focusNode))){var a=window.getSelection(),l=document.createRange();l.setEnd(i.anchorNode,i.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(i.focusNode,i.focusOffset)}}function Up(i,a){var l=i.display,s=i.doc;if(a.editorIsHidden)return ei(i),!1;if(!a.force&&a.visible.from>=l.viewFrom&&a.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&x$(i)==0)return!1;N$(i)&&(ei(i),a.dims=Ip(i));var c=s.first+s.size,d=Math.max(a.visible.from-i.options.viewportMargin,s.first),h=Math.min(c,a.visible.to+i.options.viewportMargin);l.viewFrom<d&&d-l.viewFrom<20&&(d=Math.max(s.first,l.viewFrom)),l.viewTo>h&&l.viewTo-h<20&&(h=Math.min(c,l.viewTo)),Mr&&(d=Sp(i.doc,d),h=e$(i.doc,h));var m=d!=l.viewFrom||h!=l.viewTo||l.lastWrapHeight!=a.wrapperHeight||l.lastWrapWidth!=a.wrapperWidth;Uq(i,d,h),l.viewOffset=Pr(we(i.doc,l.viewFrom)),i.display.mover.style.top=l.viewOffset+"px";var g=x$(i);if(!m&&g==0&&!a.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var y=sJ(i);return g>4&&(l.lineDiv.style.display="none"),uJ(i,l.updateLineNumbers,a.dims),g>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,lJ(y),P(l.cursorDiv),P(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,m&&(l.lastWrapHeight=a.wrapperHeight,l.lastWrapWidth=a.wrapperWidth,Ps(i,400)),l.updateLineNumbers=null,!0}function P$(i,a){for(var l=a.viewport,s=!0;;s=!1){if(!s||!i.options.lineWrapping||a.oldDisplayWidth==Bi(i)){if(l&&l.top!=null&&(l={top:Math.min(i.doc.height+Ep(i.display)-Fp(i),l.top)}),a.visible=Ju(i.display,i.doc,l),a.visible.from>=i.display.viewFrom&&a.visible.to<=i.display.viewTo)break}else s&&(a.visible=Ju(i.display,i.doc,l));if(!Up(i,a))break;qu(i);var c=Fs(i);Ts(i),so(i,c),Jp(i,c),a.force=!1}a.signal(i,"update",i),(i.display.viewFrom!=i.display.reportedViewFrom||i.display.viewTo!=i.display.reportedViewTo)&&(a.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function Yp(i,a){var l=new Zu(i,a);if(Up(i,l)){qu(i),P$(i,l);var s=Fs(i);Ts(i),so(i,s),Jp(i,s),l.finish()}}function uJ(i,a,l){var s=i.display,c=i.options.lineNumbers,d=s.lineDiv,h=d.firstChild;function m(K){var Q=K.nextSibling;return k&&Y&&i.display.currentWheelTarget==K?K.style.display="none":K.parentNode.removeChild(K),Q}for(var g=s.view,y=s.viewFrom,S=0;S<g.length;S++){var O=g[S];if(!O.hidden)if(!O.node||O.node.parentNode!=d){var N=Rq(i,O,y,l);d.insertBefore(N,h)}else{for(;h!=O.node;)h=m(h);var L=c&&a!=null&&a<=y&&O.lineNumber;O.changes&&(me(O.changes,"gutter")>-1&&(L=!1),a$(i,O,y,l)),L&&(P(O.lineNumber),O.lineNumber.appendChild(document.createTextNode($s(i.options,y)))),h=O.node.nextSibling}y+=O.size}for(;h;)h=m(h)}function qp(i){var a=i.gutters.offsetWidth;i.sizer.style.marginLeft=a+"px",St(i,"gutterChanged",i)}function Jp(i,a){i.display.sizer.style.minHeight=a.docHeight+"px",i.display.heightForcer.style.top=a.docHeight+"px",i.display.gutters.style.height=a.docHeight+i.display.barHeight+sr(i)+"px"}function L$(i){var a=i.display,l=a.view;if(!(!a.alignWidgets&&(!a.gutters.firstChild||!i.options.fixedGutter))){for(var s=Dp(a)-a.scroller.scrollLeft+i.doc.scrollLeft,c=a.gutters.offsetWidth,d=s+"px",h=0;h<l.length;h++)if(!l[h].hidden){i.options.fixedGutter&&(l[h].gutter&&(l[h].gutter.style.left=d),l[h].gutterBackground&&(l[h].gutterBackground.style.left=d));var m=l[h].alignable;if(m)for(var g=0;g<m.length;g++)m[g].style.left=d}i.options.fixedGutter&&(a.gutters.style.left=s+c+"px")}}function N$(i){if(!i.options.lineNumbers)return!1;var a=i.doc,l=$s(i.options,a.first+a.size-1),s=i.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(F("div",[F("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=c.firstChild.offsetWidth,h=c.offsetWidth-d;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(d,s.lineGutter.offsetWidth-h)+1,s.lineNumWidth=s.lineNumInnerWidth+h,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",qp(i.display),!0}return!1}function Xp(i,a){for(var l=[],s=!1,c=0;c<i.length;c++){var d=i[c],h=null;if(typeof d!="string"&&(h=d.style,d=d.className),d=="CodeMirror-linenumbers")if(a)s=!0;else continue;l.push({className:d,style:h})}return a&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function R$(i){var a=i.gutters,l=i.gutterSpecs;P(a),i.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],d=c.className,h=c.style,m=a.appendChild(F("div",null,"CodeMirror-gutter "+d));h&&(m.style.cssText=h),d=="CodeMirror-linenumbers"&&(i.lineGutter=m,m.style.width=(i.lineNumWidth||1)+"px")}a.style.display=l.length?"":"none",qp(i)}function Ls(i){R$(i.display),en(i),L$(i)}function cJ(i,a,l,s){var c=this;this.input=l,c.scrollbarFiller=F("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=F("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=$("div",null,"CodeMirror-code"),c.selectionDiv=F("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=F("div",null,"CodeMirror-cursors"),c.measure=F("div",null,"CodeMirror-measure"),c.lineMeasure=F("div",null,"CodeMirror-measure"),c.lineSpace=$("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=$("div",[c.lineSpace],"CodeMirror-lines");c.mover=F("div",[d],null,"position: relative"),c.sizer=F("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=F("div",null,null,"position: absolute; height: "+ye+"px; width: 1px;"),c.gutters=F("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=F("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=F("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),_&&v<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!k&&!(o&&B)&&(c.scroller.draggable=!0),i&&(i.appendChild?i.appendChild(c.wrapper):i(c.wrapper)),c.viewFrom=c.viewTo=a.first,c.reportedViewFrom=c.reportedViewTo=a.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Xp(s.gutters,s.lineNumbers),R$(c),l.init(c)}var Qu=0,Nr=null;_?Nr=-.53:o?Nr=15:x?Nr=-.7:z&&(Nr=-1/3);function I$(i){var a=i.wheelDeltaX,l=i.wheelDeltaY;return a==null&&i.detail&&i.axis==i.HORIZONTAL_AXIS&&(a=i.detail),l==null&&i.detail&&i.axis==i.VERTICAL_AXIS?l=i.detail:l==null&&(l=i.wheelDelta),{x:a,y:l}}function fJ(i){var a=I$(i);return a.x*=Nr,a.y*=Nr,a}function D$(i,a){var l=I$(a),s=l.x,c=l.y,d=Nr;a.deltaMode===0&&(s=a.deltaX,c=a.deltaY,d=1);var h=i.display,m=h.scroller,g=m.scrollWidth>m.clientWidth,y=m.scrollHeight>m.clientHeight;if(!!(s&&g||c&&y)){if(c&&Y&&k){e:for(var S=a.target,O=h.view;S!=m;S=S.parentNode)for(var N=0;N<O.length;N++)if(O[N].node==S){i.display.currentWheelTarget=S;break e}}if(s&&!o&&!M&&d!=null){c&&y&&Es(i,Math.max(0,m.scrollTop+c*d)),Gi(i,Math.max(0,m.scrollLeft+s*d)),(!c||c&&y)&&It(a),h.wheelStartX=null;return}if(c&&d!=null){var L=c*d,K=i.doc.scrollTop,Q=K+h.wrapper.clientHeight;L<0?K=Math.max(0,K+L-50):Q=Math.min(i.doc.height,Q+L+50),Yp(i,{top:K,bottom:Q})}Qu<20&&a.deltaMode!==0&&(h.wheelStartX==null?(h.wheelStartX=m.scrollLeft,h.wheelStartY=m.scrollTop,h.wheelDX=s,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var ue=m.scrollLeft-h.wheelStartX,_e=m.scrollTop-h.wheelStartY,be=_e&&h.wheelDY&&_e/h.wheelDY||ue&&h.wheelDX&&ue/h.wheelDX;h.wheelStartX=h.wheelStartY=null,!!be&&(Nr=(Nr*Qu+be)/(Qu+1),++Qu)}},200)):(h.wheelDX+=s,h.wheelDY+=c))}}var Cn=function(i,a){this.ranges=i,this.primIndex=a};Cn.prototype.primary=function(){return this.ranges[this.primIndex]},Cn.prototype.equals=function(i){if(i==this)return!0;if(i.primIndex!=this.primIndex||i.ranges.length!=this.ranges.length)return!1;for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a],s=i.ranges[a];if(!E(l.anchor,s.anchor)||!E(l.head,s.head))return!1}return!0},Cn.prototype.deepCopy=function(){for(var i=[],a=0;a<this.ranges.length;a++)i[a]=new et(J(this.ranges[a].anchor),J(this.ranges[a].head));return new Cn(i,this.primIndex)},Cn.prototype.somethingSelected=function(){for(var i=0;i<this.ranges.length;i++)if(!this.ranges[i].empty())return!0;return!1},Cn.prototype.contains=function(i,a){a||(a=i);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(b(a,s.from())>=0&&b(i,s.to())<=0)return l}return-1};var et=function(i,a){this.anchor=i,this.head=a};et.prototype.from=function(){return He(this.anchor,this.head)},et.prototype.to=function(){return se(this.anchor,this.head)},et.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Un(i,a,l){var s=i&&i.options.selectionsMayTouch,c=a[l];a.sort(function(N,L){return b(N.from(),L.from())}),l=me(a,c);for(var d=1;d<a.length;d++){var h=a[d],m=a[d-1],g=b(m.to(),h.from());if(s&&!h.empty()?g>0:g>=0){var y=He(m.from(),h.from()),S=se(m.to(),h.to()),O=m.empty()?h.from()==h.head:m.from()==m.head;d<=l&&--l,a.splice(--d,2,new et(O?S:y,O?y:S))}}return new Cn(a,l)}function ti(i,a){return new Cn([new et(i,a||i)],0)}function ni(i){return i.text?ne(i.from.line+i.text.length-1,A(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function j$(i,a){if(b(i,a.from)<0)return i;if(b(i,a.to)<=0)return ni(a);var l=i.line+a.text.length-(a.to.line-a.from.line)-1,s=i.ch;return i.line==a.to.line&&(s+=ni(a).ch-a.to.ch),ne(l,s)}function Zp(i,a){for(var l=[],s=0;s<i.sel.ranges.length;s++){var c=i.sel.ranges[s];l.push(new et(j$(c.anchor,a),j$(c.head,a)))}return Un(i.cm,l,i.sel.primIndex)}function B$(i,a,l){return i.line==a.line?ne(l.line,i.ch-a.ch+l.ch):ne(l.line+(i.line-a.line),i.ch)}function dJ(i,a,l){for(var s=[],c=ne(i.first,0),d=c,h=0;h<a.length;h++){var m=a[h],g=B$(m.from,c,d),y=B$(ni(m),c,d);if(c=m.to,d=y,l=="around"){var S=i.sel.ranges[h],O=b(S.head,S.anchor)<0;s[h]=new et(O?y:g,O?g:y)}else s[h]=new et(g,g)}return new Cn(s,i.sel.primIndex)}function Qp(i){i.doc.mode=Qa(i.options,i.doc.modeOption),Ns(i)}function Ns(i){i.doc.iter(function(a){a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null)}),i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first,Ps(i,100),i.state.modeGen++,i.curOp&&en(i)}function H$(i,a){return a.from.ch==0&&a.to.ch==0&&A(a.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function Vp(i,a,l,s){function c(be){return l?l[be]:null}function d(be,ve,ke){bq(be,ve,ke,s),St(be,"change",be,a)}function h(be,ve){for(var ke=[],Ee=be;Ee<ve;++Ee)ke.push(new eo(y[Ee],c(Ee),s));return ke}var m=a.from,g=a.to,y=a.text,S=we(i,m.line),O=we(i,g.line),N=A(y),L=c(y.length-1),K=g.line-m.line;if(a.full)i.insert(0,h(0,y.length)),i.remove(y.length,i.size-y.length);else if(H$(i,a)){var Q=h(0,y.length-1);d(O,O.text,L),K&&i.remove(m.line,K),Q.length&&i.insert(m.line,Q)}else if(S==O)if(y.length==1)d(S,S.text.slice(0,m.ch)+N+S.text.slice(g.ch),L);else{var ue=h(1,y.length-1);ue.push(new eo(N+S.text.slice(g.ch),L,s)),d(S,S.text.slice(0,m.ch)+y[0],c(0)),i.insert(m.line+1,ue)}else if(y.length==1)d(S,S.text.slice(0,m.ch)+y[0]+O.text.slice(g.ch),c(0)),i.remove(m.line+1,K);else{d(S,S.text.slice(0,m.ch)+y[0],c(0)),d(O,N+O.text.slice(g.ch),L);var _e=h(1,y.length-1);K>1&&i.remove(m.line+1,K-1),i.insert(m.line+1,_e)}St(i,"change",i,a)}function ri(i,a,l){function s(c,d,h){if(c.linked)for(var m=0;m<c.linked.length;++m){var g=c.linked[m];if(g.doc!=d){var y=h&&g.sharedHist;l&&!y||(a(g.doc,y),s(g.doc,c,y))}}}s(i,null,!0)}function z$(i,a){if(a.cm)throw new Error("This document is already in use.");i.doc=a,a.cm=i,jp(i),Qp(i),W$(i),i.options.direction=a.direction,i.options.lineWrapping||Tp(i),i.options.mode=a.modeOption,en(i)}function W$(i){(i.doc.direction=="rtl"?ge:fe)(i.display.lineDiv,"CodeMirror-rtl")}function pJ(i){_n(i,function(){W$(i),en(i)})}function Vu(i){this.done=[],this.undone=[],this.undoDepth=i?i.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=i?i.maxGeneration:1}function eh(i,a){var l={from:J(a.from),to:ni(a),text:rr(i,a.from,a.to)};return U$(i,l,a.from.line,a.to.line+1),ri(i,function(s){return U$(s,l,a.from.line,a.to.line+1)},!0),l}function G$(i){for(;i.length;){var a=A(i);if(a.ranges)i.pop();else break}}function hJ(i,a){if(a)return G$(i.done),A(i.done);if(i.done.length&&!A(i.done).ranges)return A(i.done);if(i.done.length>1&&!i.done[i.done.length-2].ranges)return i.done.pop(),A(i.done)}function K$(i,a,l,s){var c=i.history;c.undone.length=0;var d=+new Date,h,m;if((c.lastOp==s||c.lastOrigin==a.origin&&a.origin&&(a.origin.charAt(0)=="+"&&c.lastModTime>d-(i.cm?i.cm.options.historyEventDelay:500)||a.origin.charAt(0)=="*"))&&(h=hJ(c,c.lastOp==s)))m=A(h.changes),b(a.from,a.to)==0&&b(a.from,m.to)==0?m.to=ni(a):h.changes.push(eh(i,a));else{var g=A(c.done);for((!g||!g.ranges)&&ec(i.sel,c.done),h={changes:[eh(i,a)],generation:c.generation},c.done.push(h);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=d,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=a.origin,m||Be(i,"historyAdded")}function _J(i,a,l,s){var c=a.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function vJ(i,a,l,s){var c=i.history,d=s&&s.origin;l==c.lastSelOp||d&&c.lastSelOrigin==d&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==d||_J(i,d,A(c.done),a))?c.done[c.done.length-1]=a:ec(a,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&G$(c.undone)}function ec(i,a){var l=A(a);l&&l.ranges&&l.equals(i)||a.push(i)}function U$(i,a,l,s){var c=a["spans_"+i.id],d=0;i.iter(Math.max(i.first,l),Math.min(i.first+i.size,s),function(h){h.markedSpans&&((c||(c=a["spans_"+i.id]={}))[d]=h.markedSpans),++d})}function mJ(i){if(!i)return null;for(var a,l=0;l<i.length;++l)i[l].marker.explicitlyCleared?a||(a=i.slice(0,l)):a&&a.push(i[l]);return a?a.length?a:null:i}function gJ(i,a){var l=a["spans_"+i.id];if(!l)return null;for(var s=[],c=0;c<a.text.length;++c)s.push(mJ(l[c]));return s}function Y$(i,a){var l=gJ(i,a),s=xp(i,a);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var d=l[c],h=s[c];if(d&&h){e:for(var m=0;m<h.length;++m){for(var g=h[m],y=0;y<d.length;++y)if(d[y].marker==g.marker)continue e;d.push(g)}}else h&&(l[c]=h)}return l}function lo(i,a,l){for(var s=[],c=0;c<i.length;++c){var d=i[c];if(d.ranges){s.push(l?Cn.prototype.deepCopy.call(d):d);continue}var h=d.changes,m=[];s.push({changes:m});for(var g=0;g<h.length;++g){var y=h[g],S=void 0;if(m.push({from:y.from,to:y.to,text:y.text}),a)for(var O in y)(S=O.match(/^spans_(\d+)$/))&&me(a,Number(S[1]))>-1&&(A(m)[O]=y[O],delete y[O])}}return s}function th(i,a,l,s){if(s){var c=i.anchor;if(l){var d=b(a,c)<0;d!=b(l,c)<0?(c=a,a=l):d!=b(a,l)<0&&(a=l)}return new et(c,a)}else return new et(l||a,a)}function tc(i,a,l,s,c){c==null&&(c=i.cm&&(i.cm.display.shift||i.extend)),jt(i,new Cn([th(i.sel.primary(),a,l,c)],0),s)}function q$(i,a,l){for(var s=[],c=i.cm&&(i.cm.display.shift||i.extend),d=0;d<i.sel.ranges.length;d++)s[d]=th(i.sel.ranges[d],a[d],null,c);var h=Un(i.cm,s,i.sel.primIndex);jt(i,h,l)}function nh(i,a,l,s){var c=i.sel.ranges.slice(0);c[a]=l,jt(i,Un(i.cm,c,i.sel.primIndex),s)}function J$(i,a,l,s){jt(i,ti(a,l),s)}function yJ(i,a,l){var s={ranges:a.ranges,update:function(c){this.ranges=[];for(var d=0;d<c.length;d++)this.ranges[d]=new et($e(i,c[d].anchor),$e(i,c[d].head))},origin:l&&l.origin};return Be(i,"beforeSelectionChange",i,s),i.cm&&Be(i.cm,"beforeSelectionChange",i.cm,s),s.ranges!=a.ranges?Un(i.cm,s.ranges,s.ranges.length-1):a}function X$(i,a,l){var s=i.history.done,c=A(s);c&&c.ranges?(s[s.length-1]=a,nc(i,a,l)):jt(i,a,l)}function jt(i,a,l){nc(i,a,l),vJ(i,i.sel,i.cm?i.cm.curOp.id:NaN,l)}function nc(i,a,l){(Lt(i,"beforeSelectionChange")||i.cm&&Lt(i.cm,"beforeSelectionChange"))&&(a=yJ(i,a,l));var s=l&&l.bias||(b(a.primary().head,i.sel.primary().head)<0?-1:1);Z$(i,V$(i,a,s,!0)),!(l&&l.scroll===!1)&&i.cm&&i.cm.getOption("readOnly")!="nocursor"&&oo(i.cm)}function Z$(i,a){a.equals(i.sel)||(i.sel=a,i.cm&&(i.cm.curOp.updateInput=1,i.cm.curOp.selectionChanged=!0,Ja(i.cm)),St(i,"cursorActivity",i))}function Q$(i){Z$(i,V$(i,i.sel,null,!1))}function V$(i,a,l,s){for(var c,d=0;d<a.ranges.length;d++){var h=a.ranges[d],m=a.ranges.length==i.sel.ranges.length&&i.sel.ranges[d],g=rc(i,h.anchor,m&&m.anchor,l,s),y=rc(i,h.head,m&&m.head,l,s);(c||g!=h.anchor||y!=h.head)&&(c||(c=a.ranges.slice(0,d)),c[d]=new et(g,y))}return c?Un(i.cm,c,a.primIndex):a}function uo(i,a,l,s,c){var d=we(i,a.line);if(d.markedSpans)for(var h=0;h<d.markedSpans.length;++h){var m=d.markedSpans[h],g=m.marker,y="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,S="selectRight"in g?!g.selectRight:g.inclusiveRight;if((m.from==null||(y?m.from<=a.ch:m.from<a.ch))&&(m.to==null||(S?m.to>=a.ch:m.to>a.ch))){if(c&&(Be(g,"beforeCursorEnter"),g.explicitlyCleared))if(d.markedSpans){--h;continue}else break;if(!g.atomic)continue;if(l){var O=g.find(s<0?1:-1),N=void 0;if((s<0?S:y)&&(O=ek(i,O,-s,O&&O.line==a.line?d:null)),O&&O.line==a.line&&(N=b(O,l))&&(s<0?N<0:N>0))return uo(i,O,a,s,c)}var L=g.find(s<0?-1:1);return(s<0?y:S)&&(L=ek(i,L,s,L.line==a.line?d:null)),L?uo(i,L,a,s,c):null}}return a}function rc(i,a,l,s,c){var d=s||1,h=uo(i,a,l,d,c)||!c&&uo(i,a,l,d,!0)||uo(i,a,l,-d,c)||!c&&uo(i,a,l,-d,!0);return h||(i.cantEdit=!0,ne(i.first,0))}function ek(i,a,l,s){return l<0&&a.ch==0?a.line>i.first?$e(i,ne(a.line-1)):null:l>0&&a.ch==(s||we(i,a.line)).text.length?a.line<i.first+i.size-1?ne(a.line+1,0):null:new ne(a.line,a.ch+l)}function tk(i){i.setSelection(ne(i.firstLine(),0),ne(i.lastLine()),Fe)}function nk(i,a,l){var s={canceled:!1,from:a.from,to:a.to,text:a.text,origin:a.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,d,h,m){c&&(s.from=$e(i,c)),d&&(s.to=$e(i,d)),h&&(s.text=h),m!==void 0&&(s.origin=m)}),Be(i,"beforeChange",i,s),i.cm&&Be(i.cm,"beforeChange",i.cm,s),s.canceled?(i.cm&&(i.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function co(i,a,l){if(i.cm){if(!i.cm.curOp)return At(i.cm,co)(i,a,l);if(i.cm.state.suppressEdits)return}if(!((Lt(i,"beforeChange")||i.cm&&Lt(i.cm,"beforeChange"))&&(a=nk(i,a,!0),!a))){var s=Y0&&!l&&vq(i,a.from,a.to);if(s)for(var c=s.length-1;c>=0;--c)rk(i,{from:s[c].from,to:s[c].to,text:c?[""]:a.text,origin:a.origin});else rk(i,a)}}function rk(i,a){if(!(a.text.length==1&&a.text[0]==""&&b(a.from,a.to)==0)){var l=Zp(i,a);K$(i,a,l,i.cm?i.cm.curOp.id:NaN),Rs(i,a,l,xp(i,a));var s=[];ri(i,function(c,d){!d&&me(s,c.history)==-1&&(sk(c.history,a),s.push(c.history)),Rs(c,a,null,xp(c,a))})}}function ic(i,a,l){var s=i.cm&&i.cm.state.suppressEdits;if(!(s&&!l)){for(var c=i.history,d,h=i.sel,m=a=="undo"?c.done:c.undone,g=a=="undo"?c.undone:c.done,y=0;y<m.length&&(d=m[y],!(l?d.ranges&&!d.equals(i.sel):!d.ranges));y++);if(y!=m.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(d=m.pop(),d.ranges){if(ec(d,g),l&&!d.equals(i.sel)){jt(i,d,{clearRedo:!1});return}h=d}else if(s){m.push(d);return}else break;var S=[];ec(h,g),g.push({changes:S,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var O=Lt(i,"beforeChange")||i.cm&&Lt(i.cm,"beforeChange"),N=function(Q){var ue=d.changes[Q];if(ue.origin=a,O&&!nk(i,ue,!1))return m.length=0,{};S.push(eh(i,ue));var _e=Q?Zp(i,ue):A(m);Rs(i,ue,_e,Y$(i,ue)),!Q&&i.cm&&i.cm.scrollIntoView({from:ue.from,to:ni(ue)});var be=[];ri(i,function(ve,ke){!ke&&me(be,ve.history)==-1&&(sk(ve.history,ue),be.push(ve.history)),Rs(ve,ue,null,Y$(ve,ue))})},L=d.changes.length-1;L>=0;--L){var K=N(L);if(K)return K.v}}}}function ik(i,a){if(a!=0&&(i.first+=a,i.sel=new Cn(X(i.sel.ranges,function(c){return new et(ne(c.anchor.line+a,c.anchor.ch),ne(c.head.line+a,c.head.ch))}),i.sel.primIndex),i.cm)){en(i.cm,i.first,i.first-a,a);for(var l=i.cm.display,s=l.viewFrom;s<l.viewTo;s++)Vr(i.cm,s,"gutter")}}function Rs(i,a,l,s){if(i.cm&&!i.cm.curOp)return At(i.cm,Rs)(i,a,l,s);if(a.to.line<i.first){ik(i,a.text.length-1-(a.to.line-a.from.line));return}if(!(a.from.line>i.lastLine())){if(a.from.line<i.first){var c=a.text.length-1-(i.first-a.from.line);ik(i,c),a={from:ne(i.first,0),to:ne(a.to.line+c,a.to.ch),text:[A(a.text)],origin:a.origin}}var d=i.lastLine();a.to.line>d&&(a={from:a.from,to:ne(d,we(i,d).text.length),text:[a.text[0]],origin:a.origin}),a.removed=rr(i,a.from,a.to),l||(l=Zp(i,a)),i.cm?bJ(i.cm,a,s):Vp(i,a,s),nc(i,l,Fe),i.cantEdit&&rc(i,ne(i.firstLine(),0))&&(i.cantEdit=!1)}}function bJ(i,a,l){var s=i.doc,c=i.display,d=a.from,h=a.to,m=!1,g=d.line;i.options.lineWrapping||(g=Ve(or(we(s,d.line))),s.iter(g,h.line+1,function(L){if(L==c.maxLine)return m=!0,!0})),s.sel.contains(a.from,a.to)>-1&&Ja(i),Vp(s,a,l,w$(i)),i.options.lineWrapping||(s.iter(g,d.line+a.text.length,function(L){var K=Hu(L);K>c.maxLineLength&&(c.maxLine=L,c.maxLineLength=K,c.maxLineChanged=!0,m=!1)}),m&&(i.curOp.updateMaxLine=!0)),uq(s,d.line),Ps(i,400);var y=a.text.length-(h.line-d.line)-1;a.full?en(i):d.line==h.line&&a.text.length==1&&!H$(i.doc,a)?Vr(i,d.line,"text"):en(i,d.line,h.line+1,y);var S=Lt(i,"changes"),O=Lt(i,"change");if(O||S){var N={from:d,to:h,text:a.text,removed:a.removed,origin:a.origin};O&&St(i,"change",i,N),S&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(N)}i.display.selForContextMenu=null}function fo(i,a,l,s,c){var d;s||(s=l),b(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof a=="string"&&(a=i.splitLines(a)),co(i,{from:l,to:s,text:a,origin:c})}function ak(i,a,l,s){l<i.line?i.line+=s:a<i.line&&(i.line=a,i.ch=0)}function ok(i,a,l,s){for(var c=0;c<i.length;++c){var d=i[c],h=!0;if(d.ranges){d.copied||(d=i[c]=d.deepCopy(),d.copied=!0);for(var m=0;m<d.ranges.length;m++)ak(d.ranges[m].anchor,a,l,s),ak(d.ranges[m].head,a,l,s);continue}for(var g=0;g<d.changes.length;++g){var y=d.changes[g];if(l<y.from.line)y.from=ne(y.from.line+s,y.from.ch),y.to=ne(y.to.line+s,y.to.ch);else if(a<=y.to.line){h=!1;break}}h||(i.splice(0,c+1),c=0)}}function sk(i,a){var l=a.from.line,s=a.to.line,c=a.text.length-(s-l)-1;ok(i.done,l,s,c),ok(i.undone,l,s,c)}function Is(i,a,l,s){var c=a,d=a;return typeof a=="number"?d=we(i,Xe(i,a)):c=Ve(a),c==null?null:(s(d,c)&&i.cm&&Vr(i.cm,c,l),d)}function Ds(i){this.lines=i,this.parent=null;for(var a=0,l=0;l<i.length;++l)i[l].parent=this,a+=i[l].height;this.height=a}Ds.prototype={chunkSize:function(){return this.lines.length},removeInner:function(i,a){for(var l=i,s=i+a;l<s;++l){var c=this.lines[l];this.height-=c.height,$q(c),St(c,"delete")}this.lines.splice(i,a)},collapse:function(i){i.push.apply(i,this.lines)},insertInner:function(i,a,l){this.height+=l,this.lines=this.lines.slice(0,i).concat(a).concat(this.lines.slice(i));for(var s=0;s<a.length;++s)a[s].parent=this},iterN:function(i,a,l){for(var s=i+a;i<s;++i)if(l(this.lines[i]))return!0}};function js(i){this.children=i;for(var a=0,l=0,s=0;s<i.length;++s){var c=i[s];a+=c.chunkSize(),l+=c.height,c.parent=this}this.size=a,this.height=l,this.parent=null}js.prototype={chunkSize:function(){return this.size},removeInner:function(i,a){this.size-=a;for(var l=0;l<this.children.length;++l){var s=this.children[l],c=s.chunkSize();if(i<c){var d=Math.min(a,c-i),h=s.height;if(s.removeInner(i,d),this.height-=h-s.height,c==d&&(this.children.splice(l--,1),s.parent=null),(a-=d)==0)break;i=0}else i-=c}if(this.size-a<25&&(this.children.length>1||!(this.children[0]instanceof Ds))){var m=[];this.collapse(m),this.children=[new Ds(m)],this.children[0].parent=this}},collapse:function(i){for(var a=0;a<this.children.length;++a)this.children[a].collapse(i)},insertInner:function(i,a,l){this.size+=a.length,this.height+=l;for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(i<=d){if(c.insertInner(i,a,l),c.lines&&c.lines.length>50){for(var h=c.lines.length%25+25,m=h;m<c.lines.length;){var g=new Ds(c.lines.slice(m,m+=25));c.height-=g.height,this.children.splice(++s,0,g),g.parent=this}c.lines=c.lines.slice(0,h),this.maybeSpill()}break}i-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var i=this;do{var a=i.children.splice(i.children.length-5,5),l=new js(a);if(i.parent){i.size-=l.size,i.height-=l.height;var c=me(i.parent.children,i);i.parent.children.splice(c+1,0,l)}else{var s=new js(i.children);s.parent=i,i.children=[s,l],i=s}l.parent=i.parent}while(i.children.length>10);i.parent.maybeSpill()}},iterN:function(i,a,l){for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(i<d){var h=Math.min(a,d-i);if(c.iterN(i,h,l))return!0;if((a-=h)==0)break;i=0}else i-=d}}};var Bs=function(i,a,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=i,this.node=a};Bs.prototype.clear=function(){var i=this.doc.cm,a=this.line.widgets,l=this.line,s=Ve(l);if(!(s==null||!a)){for(var c=0;c<a.length;++c)a[c]==this&&a.splice(c--,1);a.length||(l.widgets=null);var d=Ss(this);hn(l,Math.max(0,l.height-d)),i&&(_n(i,function(){lk(i,l,-d),Vr(i,s,"widget")}),St(i,"lineWidgetCleared",i,this,s))}},Bs.prototype.changed=function(){var i=this,a=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=Ss(this)-a;!c||(Qr(this.doc,s)||hn(s,s.height+c),l&&_n(l,function(){l.curOp.forceUpdate=!0,lk(l,s,c),St(l,"lineWidgetChanged",l,i,Ve(s))}))},tr(Bs);function lk(i,a,l){Pr(a)<(i.curOp&&i.curOp.scrollTop||i.doc.scrollTop)&&Kp(i,l)}function $J(i,a,l,s){var c=new Bs(i,l,s),d=i.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),Is(i,a,"widget",function(h){var m=h.widgets||(h.widgets=[]);if(c.insertAt==null?m.push(c):m.splice(Math.min(m.length,Math.max(0,c.insertAt)),0,c),c.line=h,d&&!Qr(i,h)){var g=Pr(h)<i.scrollTop;hn(h,h.height+Ss(c)),g&&Kp(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&St(d,"lineWidgetAdded",d,c,typeof a=="number"?a:Ve(a)),c}var uk=0,ii=function(i,a){this.lines=[],this.type=a,this.doc=i,this.id=++uk};ii.prototype.clear=function(){if(!this.explicitlyCleared){var i=this.doc.cm,a=i&&!i.curOp;if(a&&Ui(i),Lt(this,"clear")){var l=this.find();l&&St(this,"clear",l.from,l.to)}for(var s=null,c=null,d=0;d<this.lines.length;++d){var h=this.lines[d],m=ws(h.markedSpans,this);i&&!this.collapsed?Vr(i,Ve(h),"text"):i&&(m.to!=null&&(c=Ve(h)),m.from!=null&&(s=Ve(h))),h.markedSpans=dq(h.markedSpans,m),m.from==null&&this.collapsed&&!Qr(this.doc,h)&&i&&hn(h,ro(i.display))}if(i&&this.collapsed&&!i.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var y=or(this.lines[g]),S=Hu(y);S>i.display.maxLineLength&&(i.display.maxLine=y,i.display.maxLineLength=S,i.display.maxLineChanged=!0)}s!=null&&i&&this.collapsed&&en(i,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&Q$(i.doc)),i&&St(i,"markerCleared",i,this,s,c),a&&Yi(i),this.parent&&this.parent.clear()}},ii.prototype.find=function(i,a){i==null&&this.type=="bookmark"&&(i=1);for(var l,s,c=0;c<this.lines.length;++c){var d=this.lines[c],h=ws(d.markedSpans,this);if(h.from!=null&&(l=ne(a?d:Ve(d),h.from),i==-1))return l;if(h.to!=null&&(s=ne(a?d:Ve(d),h.to),i==1))return s}return l&&{from:l,to:s}},ii.prototype.changed=function(){var i=this,a=this.find(-1,!0),l=this,s=this.doc.cm;!a||!s||_n(s,function(){var c=a.line,d=Ve(a.line),h=Mp(s,d);if(h&&(_$(h),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Qr(l.doc,c)&&l.height!=null){var m=l.height;l.height=null;var g=Ss(l)-m;g&&hn(c,c.height+g)}St(s,"markerChanged",s,i)})},ii.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var a=this.doc.cm.curOp;(!a.maybeHiddenMarkers||me(a.maybeHiddenMarkers,this)==-1)&&(a.maybeUnhiddenMarkers||(a.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(i)},ii.prototype.detachLine=function(i){if(this.lines.splice(me(this.lines,i),1),!this.lines.length&&this.doc.cm){var a=this.doc.cm.curOp;(a.maybeHiddenMarkers||(a.maybeHiddenMarkers=[])).push(this)}},tr(ii);function po(i,a,l,s,c){if(s&&s.shared)return kJ(i,a,l,s,c);if(i.cm&&!i.cm.curOp)return At(i.cm,po)(i,a,l,s,c);var d=new ii(i,c),h=b(a,l);if(s&&We(s,d,!1),h>0||h==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=$("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(V0(i,a.line,a,l,d)||a.line!=l.line&&V0(i,l.line,a,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");fq()}d.addToHistory&&K$(i,{from:a,to:l,origin:"markText"},i.sel,NaN);var m=a.line,g=i.cm,y;if(i.iter(m,l.line+1,function(O){g&&d.collapsed&&!g.options.lineWrapping&&or(O)==g.display.maxLine&&(y=!0),d.collapsed&&m!=a.line&&hn(O,0),pq(O,new Iu(d,m==a.line?a.ch:null,m==l.line?l.ch:null),i.cm&&i.cm.curOp),++m}),d.collapsed&&i.iter(a.line,l.line+1,function(O){Qr(i,O)&&hn(O,0)}),d.clearOnEnter&&Me(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(cq(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),d.collapsed&&(d.id=++uk,d.atomic=!0),g){if(y&&(g.curOp.updateMaxLine=!0),d.collapsed)en(g,a.line,l.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var S=a.line;S<=l.line;S++)Vr(g,S,"text");d.atomic&&Q$(g.doc),St(g,"markerAdded",g,d)}return d}var Hs=function(i,a){this.markers=i,this.primary=a;for(var l=0;l<i.length;++l)i[l].parent=this};Hs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var i=0;i<this.markers.length;++i)this.markers[i].clear();St(this,"clear")}},Hs.prototype.find=function(i,a){return this.primary.find(i,a)},tr(Hs);function kJ(i,a,l,s,c){s=We(s),s.shared=!1;var d=[po(i,a,l,s,c)],h=d[0],m=s.widgetNode;return ri(i,function(g){m&&(s.widgetNode=m.cloneNode(!0)),d.push(po(g,$e(g,a),$e(g,l),s,c));for(var y=0;y<g.linked.length;++y)if(g.linked[y].isParent)return;h=A(d)}),new Hs(d,h)}function ck(i){return i.findMarks(ne(i.first,0),i.clipPos(ne(i.lastLine())),function(a){return a.parent})}function wJ(i,a){for(var l=0;l<a.length;l++){var s=a[l],c=s.find(),d=i.clipPos(c.from),h=i.clipPos(c.to);if(b(d,h)){var m=po(i,d,h,s.primary,s.primary.type);s.markers.push(m),m.parent=s}}}function xJ(i){for(var a=function(s){var c=i[s],d=[c.primary.doc];ri(c.primary.doc,function(g){return d.push(g)});for(var h=0;h<c.markers.length;h++){var m=c.markers[h];me(d,m.doc)==-1&&(m.parent=null,c.markers.splice(h--,1))}},l=0;l<i.length;l++)a(l)}var CJ=0,tn=function(i,a,l,s,c){if(!(this instanceof tn))return new tn(i,a,l,s,c);l==null&&(l=0),js.call(this,[new Ds([new eo("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=ne(l,0);this.sel=ti(d),this.history=new Vu(null),this.id=++CJ,this.modeOption=a,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof i=="string"&&(i=this.splitLines(i)),Vp(this,{from:d,to:d,text:i}),jt(this,ti(d),Fe)};tn.prototype=Oe(js.prototype,{constructor:tn,iter:function(i,a,l){l?this.iterN(i-this.first,a-i,l):this.iterN(this.first,this.first+this.size,i)},insert:function(i,a){for(var l=0,s=0;s<a.length;++s)l+=a[s].height;this.insertInner(i-this.first,a,l)},remove:function(i,a){this.removeInner(i-this.first,a)},getValue:function(i){var a=bs(this,this.first,this.first+this.size);return i===!1?a:a.join(i||this.lineSeparator())},setValue:Tt(function(i){var a=ne(this.first,0),l=this.first+this.size-1;co(this,{from:a,to:ne(l,we(this,l).text.length),text:this.splitLines(i),origin:"setValue",full:!0},!0),this.cm&&Os(this.cm,0,0),jt(this,ti(a),Fe)}),replaceRange:function(i,a,l,s){a=$e(this,a),l=l?$e(this,l):a,fo(this,i,a,l,s)},getRange:function(i,a,l){var s=rr(this,$e(this,i),$e(this,a));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(i){var a=this.getLineHandle(i);return a&&a.text},getLineHandle:function(i){if(ji(this,i))return we(this,i)},getLineNumber:function(i){return Ve(i)},getLineHandleVisualStart:function(i){return typeof i=="number"&&(i=we(this,i)),or(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return $e(this,i)},getCursor:function(i){var a=this.sel.primary(),l;return i==null||i=="head"?l=a.head:i=="anchor"?l=a.anchor:i=="end"||i=="to"||i===!1?l=a.to():l=a.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Tt(function(i,a,l){J$(this,$e(this,typeof i=="number"?ne(i,a||0):i),null,l)}),setSelection:Tt(function(i,a,l){J$(this,$e(this,i),$e(this,a||i),l)}),extendSelection:Tt(function(i,a,l){tc(this,$e(this,i),a&&$e(this,a),l)}),extendSelections:Tt(function(i,a){q$(this,xn(this,i),a)}),extendSelectionsBy:Tt(function(i,a){var l=X(this.sel.ranges,i);q$(this,xn(this,l),a)}),setSelections:Tt(function(i,a,l){if(!!i.length){for(var s=[],c=0;c<i.length;c++)s[c]=new et($e(this,i[c].anchor),$e(this,i[c].head||i[c].anchor));a==null&&(a=Math.min(i.length-1,this.sel.primIndex)),jt(this,Un(this.cm,s,a),l)}}),addSelection:Tt(function(i,a,l){var s=this.sel.ranges.slice(0);s.push(new et($e(this,i),$e(this,a||i))),jt(this,Un(this.cm,s,s.length-1),l)}),getSelection:function(i){for(var a=this.sel.ranges,l,s=0;s<a.length;s++){var c=rr(this,a[s].from(),a[s].to());l=l?l.concat(c):c}return i===!1?l:l.join(i||this.lineSeparator())},getSelections:function(i){for(var a=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=rr(this,l[s].from(),l[s].to());i!==!1&&(c=c.join(i||this.lineSeparator())),a[s]=c}return a},replaceSelection:function(i,a,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=i;this.replaceSelections(s,a,l||"+input")},replaceSelections:Tt(function(i,a,l){for(var s=[],c=this.sel,d=0;d<c.ranges.length;d++){var h=c.ranges[d];s[d]={from:h.from(),to:h.to(),text:this.splitLines(i[d]),origin:l}}for(var m=a&&a!="end"&&dJ(this,s,a),g=s.length-1;g>=0;g--)co(this,s[g]);m?X$(this,m):this.cm&&oo(this.cm)}),undo:Tt(function(){ic(this,"undo")}),redo:Tt(function(){ic(this,"redo")}),undoSelection:Tt(function(){ic(this,"undo",!0)}),redoSelection:Tt(function(){ic(this,"redo",!0)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,a=0,l=0,s=0;s<i.done.length;s++)i.done[s].ranges||++a;for(var c=0;c<i.undone.length;c++)i.undone[c].ranges||++l;return{undo:a,redo:l}},clearHistory:function(){var i=this;this.history=new Vu(this.history),ri(this,function(a){return a.history=i.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(i){return i&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:lo(this.history.done),undone:lo(this.history.undone)}},setHistory:function(i){var a=this.history=new Vu(this.history);a.done=lo(i.done.slice(0),null,!0),a.undone=lo(i.undone.slice(0),null,!0)},setGutterMarker:Tt(function(i,a,l){return Is(this,i,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[a]=l,!l&&re(c)&&(s.gutterMarkers=null),!0})}),clearGutter:Tt(function(i){var a=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[i]&&Is(a,l,"gutter",function(){return l.gutterMarkers[i]=null,re(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(i){var a;if(typeof i=="number"){if(!ji(this,i)||(a=i,i=we(this,i),!i))return null}else if(a=Ve(i),a==null)return null;return{line:a,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:Tt(function(i,a,l){return Is(this,i,a=="gutter"?"gutter":"class",function(s){var c=a=="text"?"textClass":a=="background"?"bgClass":a=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=l;else{if(pe(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:Tt(function(i,a,l){return Is(this,i,a=="gutter"?"gutter":"class",function(s){var c=a=="text"?"textClass":a=="background"?"bgClass":a=="gutter"?"gutterClass":"wrapClass",d=s[c];if(d)if(l==null)s[c]=null;else{var h=d.match(pe(l));if(!h)return!1;var m=h.index+h[0].length;s[c]=d.slice(0,h.index)+(!h.index||m==d.length?"":" ")+d.slice(m)||null}else return!1;return!0})}),addLineWidget:Tt(function(i,a,l){return $J(this,i,a,l)}),removeLineWidget:function(i){i.clear()},markText:function(i,a,l){return po(this,$e(this,i),$e(this,a),l,l&&l.type||"range")},setBookmark:function(i,a){var l={replacedWith:a&&(a.nodeType==null?a.widget:a),insertLeft:a&&a.insertLeft,clearWhenEmpty:!1,shared:a&&a.shared,handleMouseEvents:a&&a.handleMouseEvents};return i=$e(this,i),po(this,i,i,l,"bookmark")},findMarksAt:function(i){i=$e(this,i);var a=[],l=we(this,i.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[s];(c.from==null||c.from<=i.ch)&&(c.to==null||c.to>=i.ch)&&a.push(c.marker.parent||c.marker)}return a},findMarks:function(i,a,l){i=$e(this,i),a=$e(this,a);var s=[],c=i.line;return this.iter(i.line,a.line+1,function(d){var h=d.markedSpans;if(h)for(var m=0;m<h.length;m++){var g=h[m];!(g.to!=null&&c==i.line&&i.ch>=g.to||g.from==null&&c!=i.line||g.from!=null&&c==a.line&&g.from>=a.ch)&&(!l||l(g.marker))&&s.push(g.marker.parent||g.marker)}++c}),s},getAllMarks:function(){var i=[];return this.iter(function(a){var l=a.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&i.push(l[s].marker)}),i},posFromIndex:function(i){var a,l=this.first,s=this.lineSeparator().length;return this.iter(function(c){var d=c.text.length+s;if(d>i)return a=i,!0;i-=d,++l}),$e(this,ne(l,a))},indexFromPos:function(i){i=$e(this,i);var a=i.ch;if(i.line<this.first||i.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,i.line,function(s){a+=s.text.length+l}),a},copy:function(i){var a=new tn(bs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return a.scrollTop=this.scrollTop,a.scrollLeft=this.scrollLeft,a.sel=this.sel,a.extend=!1,i&&(a.history.undoDepth=this.history.undoDepth,a.setHistory(this.getHistory())),a},linkedDoc:function(i){i||(i={});var a=this.first,l=this.first+this.size;i.from!=null&&i.from>a&&(a=i.from),i.to!=null&&i.to<l&&(l=i.to);var s=new tn(bs(this,a,l),i.mode||this.modeOption,a,this.lineSep,this.direction);return i.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:i.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:i.sharedHist}],wJ(s,ck(this)),s},unlinkDoc:function(i){if(i instanceof st&&(i=i.doc),this.linked)for(var a=0;a<this.linked.length;++a){var l=this.linked[a];if(l.doc==i){this.linked.splice(a,1),i.unlinkDoc(this),xJ(ck(this));break}}if(i.history==this.history){var s=[i.id];ri(i,function(c){return s.push(c.id)},!0),i.history=new Vu(null),i.history.done=lo(this.history.done,s),i.history.undone=lo(this.history.undone,s)}},iterLinkedDocs:function(i){ri(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){return this.lineSep?i.split(this.lineSep):vs(i)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Tt(function(i){i!="rtl"&&(i="ltr"),i!=this.direction&&(this.direction=i,this.iter(function(a){return a.order=null}),this.cm&&pJ(this.cm))})}),tn.prototype.eachLine=tn.prototype.iter;var fk=0;function SJ(i){var a=this;if(dk(a),!(gt(a,i)||Lr(a.display,i))){It(i),_&&(fk=+new Date);var l=zi(a,i,!0),s=i.dataTransfer.files;if(!(!l||a.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,d=Array(c),h=0,m=function(){++h==c&&At(a,function(){l=$e(a.doc,l);var L={from:l,to:l,text:a.doc.splitLines(d.filter(function(K){return K!=null}).join(a.doc.lineSeparator())),origin:"paste"};co(a.doc,L),X$(a.doc,ti($e(a.doc,l),$e(a.doc,ni(L))))})()},g=function(L,K){if(a.options.allowDropFileTypes&&me(a.options.allowDropFileTypes,L.type)==-1){m();return}var Q=new FileReader;Q.onerror=function(){return m()},Q.onload=function(){var ue=Q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){m();return}d[K]=ue,m()},Q.readAsText(L)},y=0;y<s.length;y++)g(s[y],y);else{if(a.state.draggingText&&a.doc.sel.contains(l)>-1){a.state.draggingText(i),setTimeout(function(){return a.display.input.focus()},20);return}try{var S=i.dataTransfer.getData("Text");if(S){var O;if(a.state.draggingText&&!a.state.draggingText.copy&&(O=a.listSelections()),nc(a.doc,ti(l,l)),O)for(var N=0;N<O.length;++N)fo(a.doc,"",O[N].anchor,O[N].head,"drag");a.replaceSelection(S,"around","paste"),a.display.input.focus()}}catch{}}}}function AJ(i,a){if(_&&(!i.state.draggingText||+new Date-fk<100)){Di(a);return}if(!(gt(i,a)||Lr(i.display,a))&&(a.dataTransfer.setData("Text",i.getSelection()),a.dataTransfer.effectAllowed="copyMove",a.dataTransfer.setDragImage&&!z)){var l=F("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",M&&(l.width=l.height=1,i.display.wrapper.appendChild(l),l._top=l.offsetTop),a.dataTransfer.setDragImage(l,0,0),M&&l.parentNode.removeChild(l)}}function TJ(i,a){var l=zi(i,a);if(!!l){var s=document.createDocumentFragment();Bp(i,l,s),i.display.dragCursor||(i.display.dragCursor=F("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)),C(i.display.dragCursor,s)}}function dk(i){i.display.dragCursor&&(i.display.lineSpace.removeChild(i.display.dragCursor),i.display.dragCursor=null)}function pk(i){if(!!document.getElementsByClassName){for(var a=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<a.length;s++){var c=a[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var d=0;d<l.length;d++)i(l[d])})}}var hk=!1;function OJ(){hk||(EJ(),hk=!0)}function EJ(){var i;Me(window,"resize",function(){i==null&&(i=setTimeout(function(){i=null,pk(FJ)},100))}),Me(window,"blur",function(){return pk(ao)})}function FJ(i){var a=i.display;a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.scrollbarsClipped=!1,i.setSize()}for(var ai={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"},zs=0;zs<10;zs++)ai[zs+48]=ai[zs+96]=String(zs);for(var ac=65;ac<=90;ac++)ai[ac]=String.fromCharCode(ac);for(var Ws=1;Ws<=12;Ws++)ai[Ws+111]=ai[Ws+63235]="F"+Ws;var Rr={};Rr.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"},Rr.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"},Rr.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"},Rr.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"]},Rr.default=Y?Rr.macDefault:Rr.pcDefault;function MJ(i){var a=i.split(/-(?!$)/);i=a[a.length-1];for(var l,s,c,d,h=0;h<a.length-1;h++){var m=a[h];if(/^(cmd|meta|m)$/i.test(m))d=!0;else if(/^a(lt)?$/i.test(m))l=!0;else if(/^(c|ctrl|control)$/i.test(m))s=!0;else if(/^s(hift)?$/i.test(m))c=!0;else throw new Error("Unrecognized modifier name: "+m)}return l&&(i="Alt-"+i),s&&(i="Ctrl-"+i),d&&(i="Cmd-"+i),c&&(i="Shift-"+i),i}function PJ(i){var a={};for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete i[l];continue}for(var c=X(l.split(" "),MJ),d=0;d<c.length;d++){var h=void 0,m=void 0;d==c.length-1?(m=c.join(" "),h=s):(m=c.slice(0,d+1).join(" "),h="...");var g=a[m];if(!g)a[m]=h;else if(g!=h)throw new Error("Inconsistent bindings for "+m)}delete i[l]}for(var y in a)i[y]=a[y];return i}function ho(i,a,l,s){a=oc(a);var c=a.call?a.call(i,s):a[i];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(a.fallthrough){if(Object.prototype.toString.call(a.fallthrough)!="[object Array]")return ho(i,a.fallthrough,l,s);for(var d=0;d<a.fallthrough.length;d++){var h=ho(i,a.fallthrough[d],l,s);if(h)return h}}}function _k(i){var a=typeof i=="string"?i:ai[i.keyCode];return a=="Ctrl"||a=="Alt"||a=="Shift"||a=="Mod"}function vk(i,a,l){var s=i;return a.altKey&&s!="Alt"&&(i="Alt-"+i),(xe?a.metaKey:a.ctrlKey)&&s!="Ctrl"&&(i="Ctrl-"+i),(xe?a.ctrlKey:a.metaKey)&&s!="Mod"&&(i="Cmd-"+i),!l&&a.shiftKey&&s!="Shift"&&(i="Shift-"+i),i}function mk(i,a){if(M&&i.keyCode==34&&i.char)return!1;var l=ai[i.keyCode];return l==null||i.altGraphKey?!1:(i.keyCode==3&&i.code&&(l=i.code),vk(l,i,a))}function oc(i){return typeof i=="string"?Rr[i]:i}function _o(i,a){for(var l=i.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=a(l[c]);s.length&&b(d.from,A(s).to)<=0;){var h=s.pop();if(b(h.from,d.from)<0){d.from=h.from;break}}s.push(d)}_n(i,function(){for(var m=s.length-1;m>=0;m--)fo(i.doc,"",s[m].from,s[m].to,"+delete");oo(i)})}function rh(i,a,l){var s=Ut(i.text,a+l,l);return s<0||s>i.text.length?null:s}function ih(i,a,l){var s=rh(i,a.ch,l);return s==null?null:new ne(a.line,s,l<0?"after":"before")}function ah(i,a,l,s,c){if(i){a.doc.direction=="rtl"&&(c=-c);var d=pn(l,a.doc.direction);if(d){var h=c<0?A(d):d[0],m=c<0==(h.level==1),g=m?"after":"before",y;if(h.level>0||a.doc.direction=="rtl"){var S=no(a,l);y=c<0?l.text.length-1:0;var O=lr(a,S,y).top;y=er(function(N){return lr(a,S,N).top==O},c<0==(h.level==1)?h.from:h.to-1,y),g=="before"&&(y=rh(l,y,1))}else y=c<0?h.to:h.from;return new ne(s,y,g)}}return new ne(s,c<0?l.text.length:0,c<0?"before":"after")}function LJ(i,a,l,s){var c=pn(a,i.doc.direction);if(!c)return ih(a,l,s);l.ch>=a.text.length?(l.ch=a.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var d=ct(c,l.ch,l.sticky),h=c[d];if(i.doc.direction=="ltr"&&h.level%2==0&&(s>0?h.to>l.ch:h.from<l.ch))return ih(a,l,s);var m=function(_e,be){return rh(a,_e instanceof ne?_e.ch:_e,be)},g,y=function(_e){return i.options.lineWrapping?(g=g||no(i,a),k$(i,a,g,_e)):{begin:0,end:a.text.length}},S=y(l.sticky=="before"?m(l,-1):l.ch);if(i.doc.direction=="rtl"||h.level==1){var O=h.level==1==s<0,N=m(l,O?1:-1);if(N!=null&&(O?N<=h.to&&N<=S.end:N>=h.from&&N>=S.begin)){var L=O?"before":"after";return new ne(l.line,N,L)}}var K=function(_e,be,ve){for(var ke=function(nt,Ot){return Ot?new ne(l.line,m(nt,1),"before"):new ne(l.line,nt,"after")};_e>=0&&_e<c.length;_e+=be){var Ee=c[_e],Ae=be>0==(Ee.level!=1),Ge=Ae?ve.begin:m(ve.end,-1);if(Ee.from<=Ge&&Ge<Ee.to||(Ge=Ae?Ee.from:m(Ee.to,-1),ve.begin<=Ge&&Ge<ve.end))return ke(Ge,Ae)}},Q=K(d+s,s,S);if(Q)return Q;var ue=s>0?S.end:m(S.begin,-1);return ue!=null&&!(s>0&&ue==a.text.length)&&(Q=K(s>0?0:c.length-1,s,y(ue)),Q)?Q:null}var Gs={selectAll:tk,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),Fe)},killLine:function(i){return _o(i,function(a){if(a.empty()){var l=we(i.doc,a.head.line).text.length;return a.head.ch==l&&a.head.line<i.lastLine()?{from:a.head,to:ne(a.head.line+1,0)}:{from:a.head,to:ne(a.head.line,l)}}else return{from:a.from(),to:a.to()}})},deleteLine:function(i){return _o(i,function(a){return{from:ne(a.from().line,0),to:$e(i.doc,ne(a.to().line+1,0))}})},delLineLeft:function(i){return _o(i,function(a){return{from:ne(a.from().line,0),to:a.from()}})},delWrappedLineLeft:function(i){return _o(i,function(a){var l=i.charCoords(a.head,"div").top+5,s=i.coordsChar({left:0,top:l},"div");return{from:s,to:a.from()}})},delWrappedLineRight:function(i){return _o(i,function(a){var l=i.charCoords(a.head,"div").top+5,s=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:l},"div");return{from:a.from(),to:s}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(ne(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(ne(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(a){return gk(i,a.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(a){return yk(i,a.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(a){return NJ(i,a.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(a){var l=i.cursorCoords(a.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:l},"div")},Le)},goLineLeft:function(i){return i.extendSelectionsBy(function(a){var l=i.cursorCoords(a.head,"div").top+5;return i.coordsChar({left:0,top:l},"div")},Le)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(a){var l=i.cursorCoords(a.head,"div").top+5,s=i.coordsChar({left:0,top:l},"div");return s.ch<i.getLine(s.line).search(/\S/)?yk(i,a.head):s},Le)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"codepoint")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection(" ")},insertSoftTab:function(i){for(var a=[],l=i.listSelections(),s=i.options.tabSize,c=0;c<l.length;c++){var d=l[c].from(),h=qe(i.getLine(d.line),d.ch,s);a.push(R(s-h%s))}i.replaceSelections(a)},defaultTab:function(i){i.somethingSelected()?i.indentSelection("add"):i.execCommand("insertTab")},transposeChars:function(i){return _n(i,function(){for(var a=i.listSelections(),l=[],s=0;s<a.length;s++)if(!!a[s].empty()){var c=a[s].head,d=we(i.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new ne(c.line,c.ch-1)),c.ch>0)c=new ne(c.line,c.ch+1),i.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),ne(c.line,c.ch-2),c,"+transpose");else if(c.line>i.doc.first){var h=we(i.doc,c.line-1).text;h&&(c=new ne(c.line,1),i.replaceRange(d.charAt(0)+i.doc.lineSeparator()+h.charAt(h.length-1),ne(c.line-1,h.length-1),c,"+transpose"))}}l.push(new et(c,c))}i.setSelections(l)})},newlineAndIndent:function(i){return _n(i,function(){for(var a=i.listSelections(),l=a.length-1;l>=0;l--)i.replaceRange(i.doc.lineSeparator(),a[l].anchor,a[l].head,"+input");a=i.listSelections();for(var s=0;s<a.length;s++)i.indentLine(a[s].from().line,null,!0);oo(i)})},openLine:function(i){return i.replaceSelection(`
`,"start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function gk(i,a){var l=we(i.doc,a),s=or(l);return s!=l&&(a=Ve(s)),ah(!0,i,s,a,1)}function NJ(i,a){var l=we(i.doc,a),s=gq(l);return s!=l&&(a=Ve(s)),ah(!0,i,l,a,-1)}function yk(i,a){var l=gk(i,a.line),s=we(i.doc,l.line),c=pn(s,i.doc.direction);if(!c||c[0].level==0){var d=Math.max(l.ch,s.text.search(/\S/)),h=a.line==l.line&&a.ch<=d&&a.ch;return ne(l.line,h?0:d,l.sticky)}return l}function sc(i,a,l){if(typeof a=="string"&&(a=Gs[a],!a))return!1;i.display.input.ensurePolled();var s=i.display.shift,c=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),l&&(i.display.shift=!1),c=a(i)!=je}finally{i.display.shift=s,i.state.suppressEdits=!1}return c}function RJ(i,a,l){for(var s=0;s<i.state.keyMaps.length;s++){var c=ho(a,i.state.keyMaps[s],l,i);if(c)return c}return i.options.extraKeys&&ho(a,i.options.extraKeys,l,i)||ho(a,i.options.keyMap,l,i)}var IJ=new Re;function Ks(i,a,l,s){var c=i.state.keySeq;if(c){if(_k(a))return"handled";if(/\'$/.test(a)?i.state.keySeq=null:IJ.set(50,function(){i.state.keySeq==c&&(i.state.keySeq=null,i.display.input.reset())}),bk(i,c+" "+a,l,s))return!0}return bk(i,a,l,s)}function bk(i,a,l,s){var c=RJ(i,a,s);return c=="multi"&&(i.state.keySeq=a),c=="handled"&&St(i,"keyHandled",i,a,l),(c=="handled"||c=="multi")&&(It(l),Hp(i)),!!c}function $k(i,a){var l=mk(a,!0);return l?a.shiftKey&&!i.state.keySeq?Ks(i,"Shift-"+l,a,function(s){return sc(i,s,!0)})||Ks(i,l,a,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return sc(i,s)}):Ks(i,l,a,function(s){return sc(i,s)}):!1}function DJ(i,a,l){return Ks(i,"'"+l+"'",a,function(s){return sc(i,s,!0)})}var oh=null;function kk(i){var a=this;if(!(i.target&&i.target!=a.display.input.getField())&&(a.curOp.focus=ee(),!gt(a,i))){_&&v<11&&i.keyCode==27&&(i.returnValue=!1);var l=i.keyCode;a.display.shift=l==16||i.shiftKey;var s=$k(a,i);M&&(oh=s?l:null,!s&&l==88&&!Nu&&(Y?i.metaKey:i.ctrlKey)&&a.replaceSelection("",null,"cut")),o&&!Y&&!s&&l==46&&i.shiftKey&&!i.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(a.display.lineDiv.className)&&jJ(a)}}function jJ(i){var a=i.display.lineDiv;ge(a,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(fe(a,"CodeMirror-crosshair"),Qt(document,"keyup",l),Qt(document,"mouseover",l))}Me(document,"keyup",l),Me(document,"mouseover",l)}function wk(i){i.keyCode==16&&(this.doc.sel.shift=!1),gt(this,i)}function xk(i){var a=this;if(!(i.target&&i.target!=a.display.input.getField())&&!(Lr(a.display,i)||gt(a,i)||i.ctrlKey&&!i.altKey||Y&&i.metaKey)){var l=i.keyCode,s=i.charCode;if(M&&l==oh){oh=null,It(i);return}if(!(M&&(!i.which||i.which<10)&&$k(a,i))){var c=String.fromCharCode(s??l);c!="\b"&&(DJ(a,i,c)||a.display.input.onKeyPress(i))}}}var BJ=400,sh=function(i,a,l){this.time=i,this.pos=a,this.button=l};sh.prototype.compare=function(i,a,l){return this.time+BJ>i&&b(a,this.pos)==0&&l==this.button};var Us,Ys;function HJ(i,a){var l=+new Date;return Ys&&Ys.compare(l,i,a)?(Us=Ys=null,"triple"):Us&&Us.compare(l,i,a)?(Ys=new sh(l,i,a),Us=null,"double"):(Us=new sh(l,i,a),Ys=null,"single")}function Ck(i){var a=this,l=a.display;if(!(gt(a,i)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=i.shiftKey,Lr(l,i)){k||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!lh(a,i)){var s=zi(a,i),c=Mu(i),d=s?HJ(s,c):"single";window.focus(),c==1&&a.state.selectingText&&a.state.selectingText(i),!(s&&zJ(a,c,s,d,i))&&(c==1?s?GJ(a,s,d,i):Xr(i)==l.scroller&&It(i):c==2?(s&&tc(a.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(Ce?a.display.input.onContextMenu(i):zp(a)))}}}function zJ(i,a,l,s,c){var d="Click";return s=="double"?d="Double"+d:s=="triple"&&(d="Triple"+d),d=(a==1?"Left":a==2?"Middle":"Right")+d,Ks(i,vk(d,c),c,function(h){if(typeof h=="string"&&(h=Gs[h]),!h)return!1;var m=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),m=h(i,l)!=je}finally{i.state.suppressEdits=!1}return m})}function WJ(i,a,l){var s=i.getOption("configureMouse"),c=s?s(i,a,l):{};if(c.unit==null){var d=oe?l.shiftKey&&l.metaKey:l.altKey;c.unit=d?"rectangle":a=="single"?"char":a=="double"?"word":"line"}return(c.extend==null||i.doc.extend)&&(c.extend=i.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=Y?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(Y?l.altKey:l.ctrlKey)),c}function GJ(i,a,l,s){_?setTimeout(Se(S$,i),0):i.curOp.focus=ee();var c=WJ(i,l,s),d=i.doc.sel,h;i.options.dragDrop&&hs&&!i.isReadOnly()&&l=="single"&&(h=d.contains(a))>-1&&(b((h=d.ranges[h]).from(),a)<0||a.xRel>0)&&(b(h.to(),a)>0||a.xRel<0)?KJ(i,s,a,c):UJ(i,s,a,c)}function KJ(i,a,l,s){var c=i.display,d=!1,h=At(i,function(y){k&&(c.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:zp(i)),Qt(c.wrapper.ownerDocument,"mouseup",h),Qt(c.wrapper.ownerDocument,"mousemove",m),Qt(c.scroller,"dragstart",g),Qt(c.scroller,"drop",h),d||(It(y),s.addNew||tc(i.doc,l,null,null,s.extend),k&&!z||_&&v==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),m=function(y){d=d||Math.abs(a.clientX-y.clientX)+Math.abs(a.clientY-y.clientY)>=10},g=function(){return d=!0};k&&(c.scroller.draggable=!0),i.state.draggingText=h,h.copy=!s.moveOnDrag,Me(c.wrapper.ownerDocument,"mouseup",h),Me(c.wrapper.ownerDocument,"mousemove",m),Me(c.scroller,"dragstart",g),Me(c.scroller,"drop",h),i.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Sk(i,a,l){if(l=="char")return new et(a,a);if(l=="word")return i.findWordAt(a);if(l=="line")return new et(ne(a.line,0),$e(i.doc,ne(a.line+1,0)));var s=l(i,a);return new et(s.from,s.to)}function UJ(i,a,l,s){_&&zp(i);var c=i.display,d=i.doc;It(a);var h,m,g=d.sel,y=g.ranges;if(s.addNew&&!s.extend?(m=d.sel.contains(l),m>-1?h=y[m]:h=new et(l,l)):(h=d.sel.primary(),m=d.sel.primIndex),s.unit=="rectangle")s.addNew||(h=new et(l,l)),l=zi(i,a,!0,!0),m=-1;else{var S=Sk(i,l,s.unit);s.extend?h=th(h,S.anchor,S.head,s.extend):h=S}s.addNew?m==-1?(m=y.length,jt(d,Un(i,y.concat([h]),m),{scroll:!1,origin:"*mouse"})):y.length>1&&y[m].empty()&&s.unit=="char"&&!s.extend?(jt(d,Un(i,y.slice(0,m).concat(y.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),g=d.sel):nh(d,m,h,Ie):(m=0,jt(d,new Cn([h],0),Ie),g=d.sel);var O=l;function N(ve){if(b(O,ve)!=0)if(O=ve,s.unit=="rectangle"){for(var ke=[],Ee=i.options.tabSize,Ae=qe(we(d,l.line).text,l.ch,Ee),Ge=qe(we(d,ve.line).text,ve.ch,Ee),nt=Math.min(Ae,Ge),Ot=Math.max(Ae,Ge),lt=Math.min(l.line,ve.line),vn=Math.min(i.lastLine(),Math.max(l.line,ve.line));lt<=vn;lt++){var nn=we(d,lt).text,yt=ut(nn,nt,Ee);nt==Ot?ke.push(new et(ne(lt,yt),ne(lt,yt))):nn.length>yt&&ke.push(new et(ne(lt,yt),ne(lt,ut(nn,Ot,Ee))))}ke.length||ke.push(new et(l,l)),jt(d,Un(i,g.ranges.slice(0,m).concat(ke),m),{origin:"*mouse",scroll:!1}),i.scrollIntoView(ve)}else{var rn=h,Nt=Sk(i,ve,s.unit),xt=rn.anchor,bt;b(Nt.anchor,xt)>0?(bt=Nt.head,xt=He(rn.from(),Nt.anchor)):(bt=Nt.anchor,xt=se(rn.to(),Nt.head));var dt=g.ranges.slice(0);dt[m]=YJ(i,new et($e(d,xt),bt)),jt(d,Un(i,dt,m),Ie)}}var L=c.wrapper.getBoundingClientRect(),K=0;function Q(ve){var ke=++K,Ee=zi(i,ve,!0,s.unit=="rectangle");if(!!Ee)if(b(Ee,O)!=0){i.curOp.focus=ee(),N(Ee);var Ae=Ju(c,d);(Ee.line>=Ae.to||Ee.line<Ae.from)&&setTimeout(At(i,function(){K==ke&&Q(ve)}),150)}else{var Ge=ve.clientY<L.top?-20:ve.clientY>L.bottom?20:0;Ge&&setTimeout(At(i,function(){K==ke&&(c.scroller.scrollTop+=Ge,Q(ve))}),50)}}function ue(ve){i.state.selectingText=!1,K=1/0,ve&&(It(ve),c.input.focus()),Qt(c.wrapper.ownerDocument,"mousemove",_e),Qt(c.wrapper.ownerDocument,"mouseup",be),d.history.lastSelOrigin=null}var _e=At(i,function(ve){ve.buttons===0||!Mu(ve)?ue(ve):Q(ve)}),be=At(i,ue);i.state.selectingText=be,Me(c.wrapper.ownerDocument,"mousemove",_e),Me(c.wrapper.ownerDocument,"mouseup",be)}function YJ(i,a){var l=a.anchor,s=a.head,c=we(i.doc,l.line);if(b(l,s)==0&&l.sticky==s.sticky)return a;var d=pn(c);if(!d)return a;var h=ct(d,l.ch,l.sticky),m=d[h];if(m.from!=l.ch&&m.to!=l.ch)return a;var g=h+(m.from==l.ch==(m.level!=1)?0:1);if(g==0||g==d.length)return a;var y;if(s.line!=l.line)y=(s.line-l.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var S=ct(d,s.ch,s.sticky),O=S-h||(s.ch-l.ch)*(m.level==1?-1:1);S==g-1||S==g?y=O<0:y=O>0}var N=d[g+(y?-1:0)],L=y==(N.level==1),K=L?N.from:N.to,Q=L?"after":"before";return l.ch==K&&l.sticky==Q?a:new et(new ne(l.line,K,Q),s)}function Ak(i,a,l,s){var c,d;if(a.touches)c=a.touches[0].clientX,d=a.touches[0].clientY;else try{c=a.clientX,d=a.clientY}catch{return!1}if(c>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;s&&It(a);var h=i.display,m=h.lineDiv.getBoundingClientRect();if(d>m.bottom||!Lt(i,l))return $n(a);d-=m.top-h.viewOffset;for(var g=0;g<i.display.gutterSpecs.length;++g){var y=h.gutters.childNodes[g];if(y&&y.getBoundingClientRect().right>=c){var S=ir(i.doc,d),O=i.display.gutterSpecs[g];return Be(i,l,i,S,O.className,a),$n(a)}}}function lh(i,a){return Ak(i,a,"gutterClick",!0)}function Tk(i,a){Lr(i.display,a)||qJ(i,a)||gt(i,a,"contextmenu")||Ce||i.display.input.onContextMenu(a)}function qJ(i,a){return Lt(i,"gutterContextMenu")?Ak(i,a,"gutterContextMenu",!1):!1}function Ok(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),As(i)}var vo={toString:function(){return"CodeMirror.Init"}},Ek={},lc={};function JJ(i){var a=i.optionHandlers;function l(s,c,d,h){i.defaults[s]=c,d&&(a[s]=h?function(m,g,y){y!=vo&&d(m,g,y)}:d)}i.defineOption=l,i.Init=vo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,Qp(s)},!0),l("indentUnit",2,Qp,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){Ns(s),As(s),en(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],h=s.doc.first;s.doc.iter(function(g){for(var y=0;;){var S=g.text.indexOf(c,y);if(S==-1)break;y=S+c.length,d.push(ne(h,S))}h++});for(var m=d.length-1;m>=0;m--)fo(s.doc,c,d[m],ne(d[m].line,d[m].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(s,c,d){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),d!=vo&&s.refresh()}),l("specialCharPlaceholder",xq,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",B?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),l("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),l("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),l("rtlMoveVisually",!te),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){Ok(s),Ls(s)},!0),l("keyMap","default",function(s,c,d){var h=oc(c),m=d!=vo&&oc(d);m&&m.detach&&m.detach(s,h),h.attach&&h.attach(s,m||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,ZJ,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Xp(c,s.options.lineNumbers),Ls(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Dp(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return so(s)},!0),l("scrollbarStyle","native",function(s){M$(s),so(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,c){s.display.gutterSpecs=Xp(s.options.gutters,c),Ls(s)},!0),l("firstLineNumber",1,Ls,!0),l("lineNumberFormatter",function(s){return s},Ls,!0),l("showCursorWhenSelecting",!1,Ts,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(ao(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),l("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),l("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),l("dragDrop",!0,XJ),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Ts,!0),l("singleCursorHeightPerLine",!0,Ts,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,Ns,!0),l("addModeClass",!1,Ns,!0),l("pollInterval",100),l("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),l("historyEventDelay",1250),l("viewportMargin",10,function(s){return s.refresh()},!0),l("maxHighlightLength",1e4,Ns,!0),l("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),l("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),l("autofocus",null),l("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),l("phrases",null)}function XJ(i,a,l){var s=l&&l!=vo;if(!a!=!s){var c=i.display.dragFunctions,d=a?Me:Qt;d(i.display.scroller,"dragstart",c.start),d(i.display.scroller,"dragenter",c.enter),d(i.display.scroller,"dragover",c.over),d(i.display.scroller,"dragleave",c.leave),d(i.display.scroller,"drop",c.drop)}}function ZJ(i){i.options.lineWrapping?(ge(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(fe(i.display.wrapper,"CodeMirror-wrap"),Tp(i)),jp(i),en(i),As(i),setTimeout(function(){return so(i)},100)}function st(i,a){var l=this;if(!(this instanceof st))return new st(i,a);this.options=a=a?We(a):{},We(Ek,a,!1);var s=a.value;typeof s=="string"?s=new tn(s,a.mode,null,a.lineSeparator,a.direction):a.mode&&(s.modeOption=a.mode),this.doc=s;var c=new st.inputStyles[a.inputStyle](this),d=this.display=new cJ(i,s,c,a);d.wrapper.CodeMirror=this,Ok(this),a.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),M$(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 Re,keySeq:null,specialChars:null},a.autofocus&&!B&&d.input.focus(),_&&v<11&&setTimeout(function(){return l.display.input.reset(!0)},20),QJ(this),OJ(),Ui(this),this.curOp.forceUpdate=!0,z$(this,s),a.autofocus&&!B||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Wp(l)},20):ao(this);for(var h in lc)lc.hasOwnProperty(h)&&lc[h](this,a[h],vo);N$(this),a.finishInit&&a.finishInit(this);for(var m=0;m<uh.length;++m)uh[m](this);Yi(this),k&&a.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}st.defaults=Ek,st.optionHandlers=lc;function QJ(i){var a=i.display;Me(a.scroller,"mousedown",At(i,Ck)),_&&v<11?Me(a.scroller,"dblclick",At(i,function(g){if(!gt(i,g)){var y=zi(i,g);if(!(!y||lh(i,g)||Lr(i.display,g))){It(g);var S=i.findWordAt(y);tc(i.doc,S.anchor,S.head)}}})):Me(a.scroller,"dblclick",function(g){return gt(i,g)||It(g)}),Me(a.scroller,"contextmenu",function(g){return Tk(i,g)}),Me(a.input.getField(),"contextmenu",function(g){a.scroller.contains(g.target)||Tk(i,g)});var l,s={end:0};function c(){a.activeTouch&&(l=setTimeout(function(){return a.activeTouch=null},1e3),s=a.activeTouch,s.end=+new Date)}function d(g){if(g.touches.length!=1)return!1;var y=g.touches[0];return y.radiusX<=1&&y.radiusY<=1}function h(g,y){if(y.left==null)return!0;var S=y.left-g.left,O=y.top-g.top;return S*S+O*O>20*20}Me(a.scroller,"touchstart",function(g){if(!gt(i,g)&&!d(g)&&!lh(i,g)){a.input.ensurePolled(),clearTimeout(l);var y=+new Date;a.activeTouch={start:y,moved:!1,prev:y-s.end<=300?s:null},g.touches.length==1&&(a.activeTouch.left=g.touches[0].pageX,a.activeTouch.top=g.touches[0].pageY)}}),Me(a.scroller,"touchmove",function(){a.activeTouch&&(a.activeTouch.moved=!0)}),Me(a.scroller,"touchend",function(g){var y=a.activeTouch;if(y&&!Lr(a,g)&&y.left!=null&&!y.moved&&new Date-y.start<300){var S=i.coordsChar(a.activeTouch,"page"),O;!y.prev||h(y,y.prev)?O=new et(S,S):!y.prev.prev||h(y,y.prev.prev)?O=i.findWordAt(S):O=new et(ne(S.line,0),$e(i.doc,ne(S.line+1,0))),i.setSelection(O.anchor,O.head),i.focus(),It(g)}c()}),Me(a.scroller,"touchcancel",c),Me(a.scroller,"scroll",function(){a.scroller.clientHeight&&(Es(i,a.scroller.scrollTop),Gi(i,a.scroller.scrollLeft,!0),Be(i,"scroll",i))}),Me(a.scroller,"mousewheel",function(g){return D$(i,g)}),Me(a.scroller,"DOMMouseScroll",function(g){return D$(i,g)}),Me(a.wrapper,"scroll",function(){return a.wrapper.scrollTop=a.wrapper.scrollLeft=0}),a.dragFunctions={enter:function(g){gt(i,g)||Di(g)},over:function(g){gt(i,g)||(TJ(i,g),Di(g))},start:function(g){return AJ(i,g)},drop:At(i,SJ),leave:function(g){gt(i,g)||dk(i)}};var m=a.input.getField();Me(m,"keyup",function(g){return wk.call(i,g)}),Me(m,"keydown",At(i,kk)),Me(m,"keypress",At(i,xk)),Me(m,"focus",function(g){return Wp(i,g)}),Me(m,"blur",function(g){return ao(i,g)})}var uh=[];st.defineInitHook=function(i){return uh.push(i)};function qs(i,a,l,s){var c=i.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=ks(i,a).state:l="prev");var h=i.options.tabSize,m=we(c,a),g=qe(m.text,null,h);m.stateAfter&&(m.stateAfter=null);var y=m.text.match(/^\s*/)[0],S;if(!s&&!/\S/.test(m.text))S=0,l="not";else if(l=="smart"&&(S=c.mode.indent(d,m.text.slice(y.length),m.text),S==je||S>150)){if(!s)return;l="prev"}l=="prev"?a>c.first?S=qe(we(c,a-1).text,null,h):S=0:l=="add"?S=g+i.options.indentUnit:l=="subtract"?S=g-i.options.indentUnit:typeof l=="number"&&(S=g+l),S=Math.max(0,S);var O="",N=0;if(i.options.indentWithTabs)for(var L=Math.floor(S/h);L;--L)N+=h,O+=" ";if(N<S&&(O+=R(S-N)),O!=y)return fo(c,O,ne(a,0),ne(a,y.length),"+input"),m.stateAfter=null,!0;for(var K=0;K<c.sel.ranges.length;K++){var Q=c.sel.ranges[K];if(Q.head.line==a&&Q.head.ch<y.length){var ue=ne(a,y.length);nh(c,K,new et(ue,ue));break}}}var Yn=null;function uc(i){Yn=i}function ch(i,a,l,s,c){var d=i.doc;i.display.shift=!1,s||(s=d.sel);var h=+new Date-200,m=c=="paste"||i.state.pasteIncoming>h,g=vs(a),y=null;if(m&&s.ranges.length>1)if(Yn&&Yn.text.join(`
`)==a){if(s.ranges.length%Yn.text.length==0){y=[];for(var S=0;S<Yn.text.length;S++)y.push(d.splitLines(Yn.text[S]))}}else g.length==s.ranges.length&&i.options.pasteLinesPerSelection&&(y=X(g,function(_e){return[_e]}));for(var O=i.curOp.updateInput,N=s.ranges.length-1;N>=0;N--){var L=s.ranges[N],K=L.from(),Q=L.to();L.empty()&&(l&&l>0?K=ne(K.line,K.ch-l):i.state.overwrite&&!m?Q=ne(Q.line,Math.min(we(d,Q.line).text.length,Q.ch+A(g).length)):m&&Yn&&Yn.lineWise&&Yn.text.join(`
`)==g.join(`
`)&&(K=Q=ne(K.line,0)));var ue={from:K,to:Q,text:y?y[N%y.length]:g,origin:c||(m?"paste":i.state.cutIncoming>h?"cut":"+input")};co(i.doc,ue),St(i,"inputRead",i,ue)}a&&!m&&Mk(i,a),oo(i),i.curOp.updateInput<2&&(i.curOp.updateInput=O),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function Fk(i,a){var l=i.clipboardData&&i.clipboardData.getData("Text");if(l)return i.preventDefault(),!a.isReadOnly()&&!a.options.disableInput&&_n(a,function(){return ch(a,l,0,null,"paste")}),!0}function Mk(i,a){if(!(!i.options.electricChars||!i.options.smartIndent))for(var l=i.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var d=i.getModeAt(c.head),h=!1;if(d.electricChars){for(var m=0;m<d.electricChars.length;m++)if(a.indexOf(d.electricChars.charAt(m))>-1){h=qs(i,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(we(i.doc,c.head.line).text.slice(0,c.head.ch))&&(h=qs(i,c.head.line,"smart"));h&&St(i,"electricInput",i,c.head.line)}}}function Pk(i){for(var a=[],l=[],s=0;s<i.doc.sel.ranges.length;s++){var c=i.doc.sel.ranges[s].head.line,d={anchor:ne(c,0),head:ne(c+1,0)};l.push(d),a.push(i.getRange(d.anchor,d.head))}return{text:a,ranges:l}}function Lk(i,a,l,s){i.setAttribute("autocorrect",l?"":"off"),i.setAttribute("autocapitalize",s?"":"off"),i.setAttribute("spellcheck",!!a)}function Nk(){var i=F("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),a=F("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return k?i.style.width="1000px":i.setAttribute("wrap","off"),j&&(i.style.border="1px solid black"),Lk(i),a}function VJ(i){var a=i.optionHandlers,l=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus(),this.display.input.focus()},setOption:function(s,c){var d=this.options,h=d[s];d[s]==c&&s!="mode"||(d[s]=c,a.hasOwnProperty(s)&&At(this,a[s])(this,c,h),Be(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](oc(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,d=0;d<c.length;++d)if(c[d]==s||c[d].name==s)return c.splice(d,1),!0},addOverlay:Yt(function(s,c){var d=s.token?s:i.getMode(this.options,s);if(d.startState)throw new Error("Overlays may not be stateful.");de(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(h){return h.priority}),this.state.modeGen++,en(this)}),removeOverlay:Yt(function(s){for(var c=this.state.overlays,d=0;d<c.length;++d){var h=c[d].modeSpec;if(h==s||typeof s=="string"&&h.name==s){c.splice(d,1),this.state.modeGen++,en(this);return}}}),indentLine:Yt(function(s,c,d){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),ji(this.doc,s)&&qs(this,s,c,d)}),indentSelection:Yt(function(s){for(var c=this.doc.sel.ranges,d=-1,h=0;h<c.length;h++){var m=c[h];if(m.empty())m.head.line>d&&(qs(this,m.head.line,s,!0),d=m.head.line,h==this.doc.sel.primIndex&&oo(this));else{var g=m.from(),y=m.to(),S=Math.max(d,g.line);d=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var O=S;O<d;++O)qs(this,O,s);var N=this.doc.sel.ranges;g.ch==0&&c.length==N.length&&N[h].from().ch>0&&nh(this.doc,h,new et(g,N[h].to()),Fe)}}}),getTokenAt:function(s,c){return G0(this,s,c)},getLineTokens:function(s,c){return G0(this,ne(s),c,!0)},getTokenTypeAt:function(s){s=$e(this.doc,s);var c=H0(this,we(this.doc,s.line)),d=0,h=(c.length-1)/2,m=s.ch,g;if(m==0)g=c[2];else for(;;){var y=d+h>>1;if((y?c[y*2-1]:0)>=m)h=y;else if(c[y*2+1]<m)d=y+1;else{g=c[y*2+2];break}}var S=g?g.indexOf("overlay "):-1;return S<0?g:S==0?null:g.slice(0,S-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?i.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var d=[];if(!l.hasOwnProperty(c))return d;var h=l[c],m=this.getModeAt(s);if(typeof m[c]=="string")h[m[c]]&&d.push(h[m[c]]);else if(m[c])for(var g=0;g<m[c].length;g++){var y=h[m[c][g]];y&&d.push(y)}else m.helperType&&h[m.helperType]?d.push(h[m.helperType]):h[m.name]&&d.push(h[m.name]);for(var S=0;S<h._global.length;S++){var O=h._global[S];O.pred(m,this)&&me(d,O.val)==-1&&d.push(O.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=Xe(d,s??d.first+d.size-1),ks(this,s+1,c).state},cursorCoords:function(s,c){var d,h=this.doc.sel.primary();return s==null?d=h.head:typeof s=="object"?d=$e(this.doc,s):d=s?h.from():h.to(),Kn(this,d,c||"page")},charCoords:function(s,c){return Ku(this,$e(this.doc,s),c||"page")},coordsChar:function(s,c){return s=y$(this,s,c||"page"),Np(this,s.left,s.top)},lineAtHeight:function(s,c){return s=y$(this,{top:s,left:0},c||"page").top,ir(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var h=!1,m;if(typeof s=="number"){var g=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>g&&(s=g,h=!0),m=we(this.doc,s)}else m=s;return Gu(this,m,{top:0,left:0},c||"page",d||h).top+(h?this.doc.height-Pr(m):0)},defaultTextHeight:function(){return ro(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,h,m){var g=this.display;s=Kn(this,$e(this.doc,s));var y=s.bottom,S=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),h=="over")y=s.top;else if(h=="above"||h=="near"){var O=Math.max(g.wrapper.clientHeight,this.doc.height),N=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(h=="above"||s.bottom+c.offsetHeight>O)&&s.top>c.offsetHeight?y=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=O&&(y=s.bottom),S+c.offsetWidth>N&&(S=N-c.offsetWidth)}c.style.top=y+"px",c.style.left=c.style.right="",m=="right"?(S=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(m=="left"?S=0:m=="middle"&&(S=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=S+"px"),d&&Xq(this,{left:S,top:y,right:S+c.offsetWidth,bottom:y+c.offsetHeight})},triggerOnKeyDown:Yt(kk),triggerOnKeyPress:Yt(xk),triggerOnKeyUp:wk,triggerOnMouseDown:Yt(Ck),execCommand:function(s){if(Gs.hasOwnProperty(s))return Gs[s].call(null,this)},triggerElectric:Yt(function(s){Mk(this,s)}),findPosH:function(s,c,d,h){var m=1;c<0&&(m=-1,c=-c);for(var g=$e(this.doc,s),y=0;y<c&&(g=fh(this.doc,g,m,d,h),!g.hitSide);++y);return g},moveH:Yt(function(s,c){var d=this;this.extendSelectionsBy(function(h){return d.display.shift||d.doc.extend||h.empty()?fh(d.doc,h.head,s,c,d.options.rtlMoveVisually):s<0?h.from():h.to()},Le)}),deleteH:Yt(function(s,c){var d=this.doc.sel,h=this.doc;d.somethingSelected()?h.replaceSelection("",null,"+delete"):_o(this,function(m){var g=fh(h,m.head,s,c,!1);return s<0?{from:g,to:m.head}:{from:m.head,to:g}})}),findPosV:function(s,c,d,h){var m=1,g=h;c<0&&(m=-1,c=-c);for(var y=$e(this.doc,s),S=0;S<c;++S){var O=Kn(this,y,"div");if(g==null?g=O.left:O.left=g,y=Rk(this,O,m,d),y.hitSide)break}return y},moveV:Yt(function(s,c){var d=this,h=this.doc,m=[],g=!this.display.shift&&!h.extend&&h.sel.somethingSelected();if(h.extendSelectionsBy(function(S){if(g)return s<0?S.from():S.to();var O=Kn(d,S.head,"div");S.goalColumn!=null&&(O.left=S.goalColumn),m.push(O.left);var N=Rk(d,O,s,c);return c=="page"&&S==h.sel.primary()&&Kp(d,Ku(d,N,"div").top-O.top),N},Le),m.length)for(var y=0;y<h.sel.ranges.length;y++)h.sel.ranges[y].goalColumn=m[y]}),findWordAt:function(s){var c=this.doc,d=we(c,s.line).text,h=s.ch,m=s.ch;if(d){var g=this.getHelper(s,"wordChars");(s.sticky=="before"||m==d.length)&&h?--h:++m;for(var y=d.charAt(h),S=I(y,g)?function(O){return I(O,g)}:/\s/.test(y)?function(O){return/\s/.test(O)}:function(O){return!/\s/.test(O)&&!I(O)};h>0&&S(d.charAt(h-1));)--h;for(;m<d.length&&S(d.charAt(m));)++m}return new et(ne(s.line,h),ne(s.line,m))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ge(this.display.cursorDiv,"CodeMirror-overwrite"):fe(this.display.cursorDiv,"CodeMirror-overwrite"),Be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ee()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yt(function(s,c){Os(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-sr(this)-this.display.barHeight,width:s.scrollWidth-sr(this)-this.display.barWidth,clientHeight:Fp(this),clientWidth:Bi(this)}},scrollIntoView:Yt(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:ne(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?Zq(this,s):T$(this,s.from,s.to,s.margin)}),setSize:Yt(function(s,c){var d=this,h=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};s!=null&&(this.display.wrapper.style.width=h(s)),c!=null&&(this.display.wrapper.style.height=h(c)),this.options.lineWrapping&&v$(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(g){if(g.widgets){for(var y=0;y<g.widgets.length;y++)if(g.widgets[y].noHScroll){Vr(d,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Be(this,"refresh",this)}),operation:function(s){return _n(this,s)},startOperation:function(){return Ui(this)},endOperation:function(){return Yi(this)},refresh:Yt(function(){var s=this.display.cachedTextHeight;en(this),this.curOp.forceUpdate=!0,As(this),Os(this,this.doc.scrollLeft,this.doc.scrollTop),qp(this.display),(s==null||Math.abs(s-ro(this.display))>.5||this.options.lineWrapping)&&jp(this),Be(this,"refresh",this)}),swapDoc:Yt(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),z$(this,s),As(this),this.display.input.reset(),Os(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,St(this,"swapDoc",this,c),c}),phrase:function(s){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,s)?c[s]:s},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}},tr(i),i.registerHelper=function(s,c,d){l.hasOwnProperty(s)||(l[s]=i[s]={_global:[]}),l[s][c]=d},i.registerGlobalHelper=function(s,c,d,h){i.registerHelper(s,c,h),l[s]._global.push({pred:d,val:h})}}function fh(i,a,l,s,c){var d=a,h=l,m=we(i,a.line),g=c&&i.direction=="rtl"?-l:l;function y(){var be=a.line+g;return be<i.first||be>=i.first+i.size?!1:(a=new ne(be,a.ch,a.sticky),m=we(i,be))}function S(be){var ve;if(s=="codepoint"){var ke=m.text.charCodeAt(a.ch+(l>0?0:-1));if(isNaN(ke))ve=null;else{var Ee=l>0?ke>=55296&&ke<56320:ke>=56320&&ke<57343;ve=new ne(a.line,Math.max(0,Math.min(m.text.length,a.ch+l*(Ee?2:1))),-l)}}else c?ve=LJ(i.cm,m,a,l):ve=ih(m,a,l);if(ve==null)if(!be&&y())a=ah(c,i.cm,m,a.line,g);else return!1;else a=ve;return!0}if(s=="char"||s=="codepoint")S();else if(s=="column")S(!0);else if(s=="word"||s=="group")for(var O=null,N=s=="group",L=i.cm&&i.cm.getHelper(a,"wordChars"),K=!0;!(l<0&&!S(!K));K=!1){var Q=m.text.charAt(a.ch)||`
`,ue=I(Q,L)?"w":N&&Q==`
`?"n":!N||/\s/.test(Q)?null:"p";if(N&&!K&&!ue&&(ue="s"),O&&O!=ue){l<0&&(l=1,S(),a.sticky="after");break}if(ue&&(O=ue),l>0&&!S(!K))break}var _e=rc(i,a,d,h,!0);return E(d,_e)&&(_e.hitSide=!0),_e}function Rk(i,a,l,s){var c=i.doc,d=a.left,h;if(s=="page"){var m=Math.min(i.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(m-.5*ro(i.display),3);h=(l>0?a.bottom:a.top)+l*g}else s=="line"&&(h=l>0?a.bottom+3:a.top-3);for(var y;y=Np(i,d,h),!!y.outside;){if(l<0?h<=0:h>=c.height){y.hitSide=!0;break}h+=l*5}return y}var tt=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tt.prototype.init=function(i){var a=this,l=this,s=l.cm,c=l.div=i.lineDiv;c.contentEditable=!0,Lk(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function d(m){for(var g=m.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Me(c,"paste",function(m){!d(m)||gt(s,m)||Fk(m,s)||v<=11&&setTimeout(At(s,function(){return a.updateFromDOM()}),20)}),Me(c,"compositionstart",function(m){a.composing={data:m.data,done:!1}}),Me(c,"compositionupdate",function(m){a.composing||(a.composing={data:m.data,done:!1})}),Me(c,"compositionend",function(m){a.composing&&(m.data!=a.composing.data&&a.readFromDOMSoon(),a.composing.done=!0)}),Me(c,"touchstart",function(){return l.forceCompositionEnd()}),Me(c,"input",function(){a.composing||a.readFromDOMSoon()});function h(m){if(!(!d(m)||gt(s,m))){if(s.somethingSelected())uc({lineWise:!1,text:s.getSelections()}),m.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var g=Pk(s);uc({lineWise:!0,text:g.text}),m.type=="cut"&&s.operation(function(){s.setSelections(g.ranges,0,Fe),s.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var y=Yn.text.join(`
`);if(m.clipboardData.setData("Text",y),m.clipboardData.getData("Text")==y){m.preventDefault();return}}var S=Nk(),O=S.firstChild;s.display.lineSpace.insertBefore(S,s.display.lineSpace.firstChild),O.value=Yn.text.join(`
`);var N=ee();Pe(O),setTimeout(function(){s.display.lineSpace.removeChild(S),N.focus(),N==c&&l.showPrimarySelection()},50)}}Me(c,"copy",h),Me(c,"cut",h)},tt.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},tt.prototype.prepareSelection=function(){var i=C$(this.cm,!1);return i.focus=ee()==this.div,i},tt.prototype.showSelection=function(i,a){!i||!this.cm.display.view.length||((i.focus||a)&&this.showPrimarySelection(),this.showMultipleSelections(i))},tt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tt.prototype.showPrimarySelection=function(){var i=this.getSelection(),a=this.cm,l=a.doc.sel.primary(),s=l.from(),c=l.to();if(a.display.viewTo==a.display.viewFrom||s.line>=a.display.viewTo||c.line<a.display.viewFrom){i.removeAllRanges();return}var d=cc(a,i.anchorNode,i.anchorOffset),h=cc(a,i.focusNode,i.focusOffset);if(!(d&&!d.bad&&h&&!h.bad&&b(He(d,h),s)==0&&b(se(d,h),c)==0)){var m=a.display.view,g=s.line>=a.display.viewFrom&&Ik(a,s)||{node:m[0].measure.map[2],offset:0},y=c.line<a.display.viewTo&&Ik(a,c);if(!y){var S=m[m.length-1].measure,O=S.maps?S.maps[S.maps.length-1]:S.map;y={node:O[O.length-1],offset:O[O.length-2]-O[O.length-3]}}if(!g||!y){i.removeAllRanges();return}var N=i.rangeCount&&i.getRangeAt(0),L;try{L=G(g.node,g.offset,y.offset,y.node)}catch{}L&&(!o&&a.state.focused?(i.collapse(g.node,g.offset),L.collapsed||(i.removeAllRanges(),i.addRange(L))):(i.removeAllRanges(),i.addRange(L)),N&&i.anchorNode==null?i.addRange(N):o&&this.startGracePeriod()),this.rememberSelection()}},tt.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){i.gracePeriod=!1,i.selectionChanged()&&i.cm.operation(function(){return i.cm.curOp.selectionChanged=!0})},20)},tt.prototype.showMultipleSelections=function(i){C(this.cm.display.cursorDiv,i.cursors),C(this.cm.display.selectionDiv,i.selection)},tt.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode,this.lastAnchorOffset=i.anchorOffset,this.lastFocusNode=i.focusNode,this.lastFocusOffset=i.focusOffset},tt.prototype.selectionInEditor=function(){var i=this.getSelection();if(!i.rangeCount)return!1;var a=i.getRangeAt(0).commonAncestorContainer;return H(this.div,a)},tt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ee()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},tt.prototype.blur=function(){this.div.blur()},tt.prototype.getField=function(){return this.div},tt.prototype.supportsTouch=function(){return!0},tt.prototype.receivedFocus=function(){var i=this,a=this;this.selectionInEditor()?setTimeout(function(){return i.pollSelection()},20):_n(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function l(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},tt.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset},tt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var i=this.getSelection(),a=this.cm;if(D&&x&&this.cm.display.gutterSpecs.length&&eX(i.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=cc(a,i.anchorNode,i.anchorOffset),s=cc(a,i.focusNode,i.focusOffset);l&&s&&_n(a,function(){jt(a.doc,ti(l,s),Fe),(l.bad||s.bad)&&(a.curOp.selectionChanged=!0)})}}},tt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var i=this.cm,a=i.display,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>i.firstLine()&&(s=ne(s.line-1,we(i.doc,s.line-1).length)),c.ch==we(i.doc,c.line).text.length&&c.line<i.lastLine()&&(c=ne(c.line+1,0)),s.line<a.viewFrom||c.line>a.viewTo-1)return!1;var d,h,m;s.line==a.viewFrom||(d=Wi(i,s.line))==0?(h=Ve(a.view[0].line),m=a.view[0].node):(h=Ve(a.view[d].line),m=a.view[d-1].node.nextSibling);var g=Wi(i,c.line),y,S;if(g==a.view.length-1?(y=a.viewTo-1,S=a.lineDiv.lastChild):(y=Ve(a.view[g+1].line)-1,S=a.view[g+1].node.previousSibling),!m)return!1;for(var O=i.doc.splitLines(tX(i,m,S,h,y)),N=rr(i.doc,ne(h,0),ne(y,we(i.doc,y).text.length));O.length>1&&N.length>1;)if(A(O)==A(N))O.pop(),N.pop(),y--;else if(O[0]==N[0])O.shift(),N.shift(),h++;else break;for(var L=0,K=0,Q=O[0],ue=N[0],_e=Math.min(Q.length,ue.length);L<_e&&Q.charCodeAt(L)==ue.charCodeAt(L);)++L;for(var be=A(O),ve=A(N),ke=Math.min(be.length-(O.length==1?L:0),ve.length-(N.length==1?L:0));K<ke&&be.charCodeAt(be.length-K-1)==ve.charCodeAt(ve.length-K-1);)++K;if(O.length==1&&N.length==1&&h==s.line)for(;L&&L>s.ch&&be.charCodeAt(be.length-K-1)==ve.charCodeAt(ve.length-K-1);)L--,K++;O[O.length-1]=be.slice(0,be.length-K).replace(/^\u200b+/,""),O[0]=O[0].slice(L).replace(/\u200b+$/,"");var Ee=ne(h,L),Ae=ne(y,N.length?A(N).length-K:0);if(O.length>1||O[0]||b(Ee,Ae))return fo(i.doc,O,Ee,Ae,"+input"),!0},tt.prototype.ensurePolled=function(){this.forceCompositionEnd()},tt.prototype.reset=function(){this.forceCompositionEnd()},tt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tt.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(i.readDOMTimeout=null,i.composing)if(i.composing.done)i.composing=null;else return;i.updateFromDOM()},80))},tt.prototype.updateFromDOM=function(){var i=this;(this.cm.isReadOnly()||!this.pollContent())&&_n(this.cm,function(){return en(i.cm)})},tt.prototype.setUneditable=function(i){i.contentEditable="false"},tt.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||At(this.cm,ch)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},tt.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},tt.prototype.onContextMenu=function(){},tt.prototype.resetPosition=function(){},tt.prototype.needsContentAttribute=!0;function Ik(i,a){var l=Mp(i,a.line);if(!l||l.hidden)return null;var s=we(i.doc,a.line),c=f$(l,s,a.line),d=pn(s,i.doc.direction),h="left";if(d){var m=ct(d,a.ch);h=m%2?"right":"left"}var g=h$(c.map,a.ch,h);return g.offset=g.collapse=="right"?g.end:g.start,g}function eX(i){for(var a=i;a;a=a.parentNode)if(/CodeMirror-gutter-wrapper/.test(a.className))return!0;return!1}function mo(i,a){return a&&(i.bad=!0),i}function tX(i,a,l,s,c){var d="",h=!1,m=i.doc.lineSeparator(),g=!1;function y(L){return function(K){return K.id==L}}function S(){h&&(d+=m,g&&(d+=m),h=g=!1)}function O(L){L&&(S(),d+=L)}function N(L){if(L.nodeType==1){var K=L.getAttribute("cm-text");if(K){O(K);return}var Q=L.getAttribute("cm-marker"),ue;if(Q){var _e=i.findMarks(ne(s,0),ne(c+1,0),y(+Q));_e.length&&(ue=_e[0].find(0))&&O(rr(i.doc,ue.from,ue.to).join(m));return}if(L.getAttribute("contenteditable")=="false")return;var be=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;be&&S();for(var ve=0;ve<L.childNodes.length;ve++)N(L.childNodes[ve]);/^(pre|p)$/i.test(L.nodeName)&&(g=!0),be&&(h=!0)}else L.nodeType==3&&O(L.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(a),a!=l;)a=a.nextSibling,g=!1;return d}function cc(i,a,l){var s;if(a==i.display.lineDiv){if(s=i.display.lineDiv.childNodes[l],!s)return mo(i.clipPos(ne(i.display.viewTo-1)),!0);a=null,l=0}else for(s=a;;s=s.parentNode){if(!s||s==i.display.lineDiv)return null;if(s.parentNode&&s.parentNode==i.display.lineDiv)break}for(var c=0;c<i.display.view.length;c++){var d=i.display.view[c];if(d.node==s)return nX(d,a,l)}}function nX(i,a,l){var s=i.text.firstChild,c=!1;if(!a||!H(s,a))return mo(ne(Ve(i.line),0),!0);if(a==s&&(c=!0,a=s.childNodes[l],l=0,!a)){var d=i.rest?A(i.rest):i.line;return mo(ne(Ve(d),d.text.length),c)}var h=a.nodeType==3?a:null,m=a;for(!h&&a.childNodes.length==1&&a.firstChild.nodeType==3&&(h=a.firstChild,l&&(l=h.nodeValue.length));m.parentNode!=s;)m=m.parentNode;var g=i.measure,y=g.maps;function S(ue,_e,be){for(var ve=-1;ve<(y?y.length:0);ve++)for(var ke=ve<0?g.map:y[ve],Ee=0;Ee<ke.length;Ee+=3){var Ae=ke[Ee+2];if(Ae==ue||Ae==_e){var Ge=Ve(ve<0?i.line:i.rest[ve]),nt=ke[Ee]+be;return(be<0||Ae!=ue)&&(nt=ke[Ee+(be?1:0)]),ne(Ge,nt)}}}var O=S(h,m,l);if(O)return mo(O,c);for(var N=m.nextSibling,L=h?h.nodeValue.length-l:0;N;N=N.nextSibling){if(O=S(N,N.firstChild,0),O)return mo(ne(O.line,O.ch-L),c);L+=N.textContent.length}for(var K=m.previousSibling,Q=l;K;K=K.previousSibling){if(O=S(K,K.firstChild,-1),O)return mo(ne(O.line,O.ch+Q),c);Q+=K.textContent.length}}var ht=function(i){this.cm=i,this.prevInput="",this.pollingFast=!1,this.polling=new Re,this.hasSelection=!1,this.composing=null};ht.prototype.init=function(i){var a=this,l=this,s=this.cm;this.createField(i);var c=this.textarea;i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),j&&(c.style.width="0px"),Me(c,"input",function(){_&&v>=9&&a.hasSelection&&(a.hasSelection=null),l.poll()}),Me(c,"paste",function(h){gt(s,h)||Fk(h,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(h){if(!gt(s,h)){if(s.somethingSelected())uc({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var m=Pk(s);uc({lineWise:!0,text:m.text}),h.type=="cut"?s.setSelections(m.ranges,null,Fe):(l.prevInput="",c.value=m.text.join(`
`),Pe(c))}else return;h.type=="cut"&&(s.state.cutIncoming=+new Date)}}Me(c,"cut",d),Me(c,"copy",d),Me(i.scroller,"paste",function(h){if(!(Lr(i,h)||gt(s,h))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var m=new Event("paste");m.clipboardData=h.clipboardData,c.dispatchEvent(m)}}),Me(i.lineSpace,"selectstart",function(h){Lr(i,h)||It(h)}),Me(c,"compositionstart",function(){var h=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:h,range:s.markText(h,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Me(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},ht.prototype.createField=function(i){this.wrapper=Nk(),this.textarea=this.wrapper.firstChild},ht.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},ht.prototype.prepareSelection=function(){var i=this.cm,a=i.display,l=i.doc,s=C$(i);if(i.options.moveInputWithCursor){var c=Kn(i,l.sel.primary().head,"div"),d=a.wrapper.getBoundingClientRect(),h=a.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(a.wrapper.clientHeight-10,c.top+h.top-d.top)),s.teLeft=Math.max(0,Math.min(a.wrapper.clientWidth-10,c.left+h.left-d.left))}return s},ht.prototype.showSelection=function(i){var a=this.cm,l=a.display;C(l.cursorDiv,i.cursors),C(l.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},ht.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing)){var a=this.cm;if(a.somethingSelected()){this.prevInput="";var l=a.getSelection();this.textarea.value=l,a.state.focused&&Pe(this.textarea),_&&v>=9&&(this.hasSelection=l)}else i||(this.prevInput=this.textarea.value="",_&&v>=9&&(this.hasSelection=null))}},ht.prototype.getField=function(){return this.textarea},ht.prototype.supportsTouch=function(){return!1},ht.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!B||ee()!=this.textarea))try{this.textarea.focus()}catch{}},ht.prototype.blur=function(){this.textarea.blur()},ht.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ht.prototype.receivedFocus=function(){this.slowPoll()},ht.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},ht.prototype.fastPoll=function(){var i=!1,a=this;a.pollingFast=!0;function l(){var s=a.poll();!s&&!i?(i=!0,a.polling.set(60,l)):(a.pollingFast=!1,a.slowPoll())}a.polling.set(20,l)},ht.prototype.poll=function(){var i=this,a=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||!a.state.focused||Lu(l)&&!s&&!this.composing||a.isReadOnly()||a.options.disableInput||a.state.keySeq)return!1;var c=l.value;if(c==s&&!a.somethingSelected())return!1;if(_&&v>=9&&this.hasSelection===c||Y&&/[\uf700-\uf7ff]/.test(c))return a.display.input.reset(),!1;if(a.doc.sel==a.display.selForContextMenu){var d=c.charCodeAt(0);if(d==8203&&!s&&(s="\u200B"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var h=0,m=Math.min(s.length,c.length);h<m&&s.charCodeAt(h)==c.charCodeAt(h);)++h;return _n(a,function(){ch(a,c.slice(h),s.length-h,null,i.composing?"*compose":null),c.length>1e3||c.indexOf(`
`)>-1?l.value=i.prevInput="":i.prevInput=c,i.composing&&(i.composing.range.clear(),i.composing.range=a.markText(i.composing.start,a.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ht.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ht.prototype.onKeyPress=function(){_&&v>=9&&(this.hasSelection=null),this.fastPoll()},ht.prototype.onContextMenu=function(i){var a=this,l=a.cm,s=l.display,c=a.textarea;a.contextMenuPending&&a.contextMenuPending();var d=zi(l,i),h=s.scroller.scrollTop;if(!d||M)return;var m=l.options.resetSelectionOnContextMenu;m&&l.doc.sel.contains(d)==-1&&At(l,jt)(l.doc,ti(d),Fe);var g=c.style.cssText,y=a.wrapper.style.cssText,S=a.wrapper.offsetParent.getBoundingClientRect();a.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(i.clientY-S.top-5)+"px; left: "+(i.clientX-S.left-5)+`px;
z-index: 1000; background: `+(_?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var O;k&&(O=window.scrollY),s.input.focus(),k&&window.scrollTo(null,O),s.input.reset(),l.somethingSelected()||(c.value=a.prevInput=" "),a.contextMenuPending=L,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function N(){if(c.selectionStart!=null){var Q=l.somethingSelected(),ue="\u200B"+(Q?c.value:"");c.value="\u21DA",c.value=ue,a.prevInput=Q?"":"\u200B",c.selectionStart=1,c.selectionEnd=ue.length,s.selForContextMenu=l.doc.sel}}function L(){if(a.contextMenuPending==L&&(a.contextMenuPending=!1,a.wrapper.style.cssText=y,c.style.cssText=g,_&&v<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=h),c.selectionStart!=null)){(!_||_&&v<9)&&N();var Q=0,ue=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&a.prevInput=="\u200B"?At(l,tk)(l):Q++<10?s.detectingSelectAll=setTimeout(ue,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ue,200)}}if(_&&v>=9&&N(),Ce){Di(i);var K=function(){Qt(window,"mouseup",K),setTimeout(L,20)};Me(window,"mouseup",K)}else setTimeout(L,50)},ht.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},ht.prototype.setUneditable=function(){},ht.prototype.needsContentAttribute=!1;function rX(i,a){if(a=a?We(a):{},a.value=i.value,!a.tabindex&&i.tabIndex&&(a.tabindex=i.tabIndex),!a.placeholder&&i.placeholder&&(a.placeholder=i.placeholder),a.autofocus==null){var l=ee();a.autofocus=l==i||i.getAttribute("autofocus")!=null&&l==document.body}function s(){i.value=m.getValue()}var c;if(i.form&&(Me(i.form,"submit",s),!a.leaveSubmitMethodAlone)){var d=i.form;c=d.submit;try{var h=d.submit=function(){s(),d.submit=c,d.submit(),d.submit=h}}catch{}}a.finishInit=function(g){g.save=s,g.getTextArea=function(){return i},g.toTextArea=function(){g.toTextArea=isNaN,s(),i.parentNode.removeChild(g.getWrapperElement()),i.style.display="",i.form&&(Qt(i.form,"submit",s),!a.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=c))}},i.style.display="none";var m=st(function(g){return i.parentNode.insertBefore(g,i.nextSibling)},a);return m}function iX(i){i.off=Qt,i.on=Me,i.wheelEventPixels=fJ,i.Doc=tn,i.splitLines=vs,i.countColumn=qe,i.findColumn=ut,i.isWordChar=Ne,i.Pass=je,i.signal=Be,i.Line=eo,i.changeEnd=ni,i.scrollbarModel=F$,i.Pos=ne,i.cmpPos=b,i.modes=Mn,i.mimeModes=kn,i.resolveMode=Za,i.getMode=Qa,i.modeExtensions=Wn,i.extendMode=Gn,i.copyState=wn,i.startState=ys,i.innerMode=gs,i.commands=Gs,i.keyMap=Rr,i.keyName=mk,i.isModifierKey=_k,i.lookupKey=ho,i.normalizeKeyMap=PJ,i.StringStream=ft,i.SharedTextMarker=Hs,i.TextMarker=ii,i.LineWidget=Bs,i.e_preventDefault=It,i.e_stopPropagation=Xa,i.e_stop=Di,i.addClass=ge,i.contains=H,i.rmClass=fe,i.keyNames=ai}JJ(st),VJ(st);var aX="iter insert remove copy getEditor constructor".split(" ");for(var fc in tn.prototype)tn.prototype.hasOwnProperty(fc)&&me(aX,fc)<0&&(st.prototype[fc]=function(i){return function(){return i.apply(this.doc,arguments)}}(tn.prototype[fc]));return tr(tn),st.inputStyles={textarea:ht,contenteditable:tt},st.defineMode=function(i){!st.defaults.mode&&i!="null"&&(st.defaults.mode=i),Ru.apply(this,arguments)},st.defineMIME=Fr,st.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),st.defineMIME("text/plain","null"),st.defineExtension=function(i,a){st.prototype[i]=a},st.defineDocExtension=function(i,a){tn.prototype[i]=a},st.fromTextArea=rX,iX(st),st.version="5.64.0",st})})(Hn);var Wr=Hn.exports,cL={exports:{}};(function(e,n){(function(t){t(Hn.exports)})(function(t){t.defineMode("javascript",function(r,o){var u=r.indentUnit,f=o.statementIndent,p=o.jsonld,_=o.json||p,v=o.trackScope!==!1,k=o.typescript,w=o.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function b(Dt){return{type:Dt,style:"keyword"}}var E=b("keyword a"),J=b("keyword b"),se=b("keyword c"),He=b("keyword d"),Xe=b("operator"),$e={type:"atom",style:"atom"};return{if:b("if"),while:E,with:E,else:J,do:J,try:J,finally:J,return:He,break:He,continue:He,new:b("new"),delete:se,void:se,throw:se,debugger:b("debugger"),var:b("var"),const:b("var"),let:b("var"),function:b("function"),catch:b("catch"),for:b("for"),switch:b("switch"),case:b("case"),default:b("default"),in:Xe,typeof:Xe,instanceof:Xe,true:$e,false:$e,null:$e,undefined:$e,NaN:$e,Infinity:$e,this:b("this"),class:b("class"),super:b("atom"),yield:se,export:b("export"),import:b("import"),extends:se,await:se}}(),M=/[+\-*&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ie(b){for(var E=!1,J,se=!1;(J=b.next())!=null;){if(!E){if(J=="/"&&!se)return;J=="["?se=!0:se&&J=="]"&&(se=!1)}E=!E&&J=="\\"}}var q,j;function D(b,E,J){return q=b,j=J,E}function B(b,E){var J=b.next();if(J=='"'||J=="'")return E.tokenize=Y(J),E.tokenize(b,E);if(J=="."&&b.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(J=="."&&b.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(J))return D(J);if(J=="="&&b.eat(">"))return D("=>","operator");if(J=="0"&&b.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(J))return b.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(J=="/")return b.eat("*")?(E.tokenize=oe,oe(b,E)):b.eat("/")?(b.skipToEnd(),D("comment","comment")):ne(b,E,1)?(ie(b),b.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(b.eat("="),D("operator","operator",b.current()));if(J=="`")return E.tokenize=te,te(b,E);if(J=="#"&&b.peek()=="!")return b.skipToEnd(),D("meta","meta");if(J=="#"&&b.eatWhile(w))return D("variable","property");if(J=="<"&&b.match("!--")||J=="-"&&b.match("->")&&!/\S/.test(b.string.slice(0,b.start)))return b.skipToEnd(),D("comment","comment");if(M.test(J))return(J!=">"||!E.lexical||E.lexical.type!=">")&&(b.eat("=")?(J=="!"||J=="=")&&b.eat("="):/[<>*+\-|&?]/.test(J)&&(b.eat(J),J==">"&&b.eat(J))),J=="?"&&b.eat(".")?D("."):D("operator","operator",b.current());if(w.test(J)){b.eatWhile(w);var se=b.current();if(E.lastType!="."){if(x.propertyIsEnumerable(se)){var He=x[se];return D(He.type,He.style,se)}if(se=="async"&&b.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",se)}return D("variable","variable",se)}}function Y(b){return function(E,J){var se=!1,He;if(p&&E.peek()=="@"&&E.match(z))return J.tokenize=B,D("jsonld-keyword","meta");for(;(He=E.next())!=null&&!(He==b&&!se);)se=!se&&He=="\\";return se||(J.tokenize=B),D("string","string")}}function oe(b,E){for(var J=!1,se;se=b.next();){if(se=="/"&&J){E.tokenize=B;break}J=se=="*"}return D("comment","comment")}function te(b,E){for(var J=!1,se;(se=b.next())!=null;){if(!J&&(se=="`"||se=="$"&&b.eat("{"))){E.tokenize=B;break}J=!J&&se=="\\"}return D("quasi","string-2",b.current())}var le="([{}])";function xe(b,E){E.fatArrowAt&&(E.fatArrowAt=null);var J=b.string.indexOf("=>",b.start);if(!(J<0)){if(k){var se=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(b.string.slice(b.start,J));se&&(J=se.index)}for(var He=0,Xe=!1,$e=J-1;$e>=0;--$e){var Dt=b.string.charAt($e),xn=le.indexOf(Dt);if(xn>=0&&xn<3){if(!He){++$e;break}if(--He==0){Dt=="("&&(Xe=!0);break}}else if(xn>=3&&xn<6)++He;else if(w.test(Dt))Xe=!0;else if(/["'\/`]/.test(Dt))for(;;--$e){if($e==0)return;var Va=b.string.charAt($e-1);if(Va==Dt&&b.string.charAt($e-2)!="\\"){$e--;break}}else if(Xe&&!He){++$e;break}}Xe&&!He&&(E.fatArrowAt=$e)}}var Ce={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pe(b,E,J,se,He,Xe){this.indented=b,this.column=E,this.type=J,this.prev=He,this.info=Xe,se!=null&&(this.align=se)}function fe(b,E){if(!v)return!1;for(var J=b.localVars;J;J=J.next)if(J.name==E)return!0;for(var se=b.context;se;se=se.prev)for(var J=se.vars;J;J=J.next)if(J.name==E)return!0}function P(b,E,J,se,He){var Xe=b.cc;for(C.state=b,C.stream=He,C.marked=null,C.cc=Xe,C.style=E,b.lexical.hasOwnProperty("align")||(b.lexical.align=!0);;){var $e=Xe.length?Xe.pop():_?Le:Fe;if($e(J,se)){for(;Xe.length&&Xe[Xe.length-1].lex;)Xe.pop()();return C.marked?C.marked:J=="variable"&&fe(b,se)?"variable-2":E}}}var C={state:null,column:null,marked:null,cc:null};function F(){for(var b=arguments.length-1;b>=0;b--)C.cc.push(arguments[b])}function $(){return F.apply(null,arguments),!0}function G(b,E){for(var J=E;J;J=J.next)if(J.name==b)return!0;return!1}function H(b){var E=C.state;if(C.marked="def",!!v){if(E.context){if(E.lexical.info=="var"&&E.context&&E.context.block){var J=ee(b,E.context);if(J!=null){E.context=J;return}}else if(!G(b,E.localVars)){E.localVars=new Pe(b,E.localVars);return}}o.globalVars&&!G(b,E.globalVars)&&(E.globalVars=new Pe(b,E.globalVars))}}function ee(b,E){if(E)if(E.block){var J=ee(b,E.prev);return J?J==E.prev?E:new he(J,E.vars,!0):null}else return G(b,E.vars)?E:new he(E.prev,new Pe(b,E.vars),!1);else return null}function ge(b){return b=="public"||b=="private"||b=="protected"||b=="abstract"||b=="readonly"}function he(b,E,J){this.prev=b,this.vars=E,this.block=J}function Pe(b,E){this.name=b,this.next=E}var Se=new Pe("this",new Pe("arguments",null));function We(){C.state.context=new he(C.state.context,C.state.localVars,!1),C.state.localVars=Se}function qe(){C.state.context=new he(C.state.context,C.state.localVars,!0),C.state.localVars=null}function Re(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}Re.lex=!0;function me(b,E){var J=function(){var se=C.state,He=se.indented;if(se.lexical.type=="stat")He=se.lexical.indented;else for(var Xe=se.lexical;Xe&&Xe.type==")"&&Xe.align;Xe=Xe.prev)He=Xe.indented;se.lexical=new pe(He,C.stream.column(),b,null,se.lexical,E)};return J.lex=!0,J}function ye(){var b=C.state;b.lexical.prev&&(b.lexical.type==")"&&(b.indented=b.lexical.indented),b.lexical=b.lexical.prev)}ye.lex=!0;function je(b){function E(J){return J==b?$():b==";"||J=="}"||J==")"||J=="]"?F():$(E)}return E}function Fe(b,E){return b=="var"?$(me("vardef",E),hs,je(";"),ye):b=="keyword a"?$(me("form"),T,Fe,ye):b=="keyword b"?$(me("form"),Fe,ye):b=="keyword d"?C.stream.match(/^\s*$/,!1)?$():$(me("stat"),A,je(";"),ye):b=="debugger"?$(je(";")):b=="{"?$(me("}"),qe,pn,ye,Re):b==";"?$():b=="if"?(C.state.lexical.info=="else"&&C.state.cc[C.state.cc.length-1]==ye&&C.state.cc.pop()(),$(me("form"),T,Fe,ye,Lu)):b=="function"?$(Mn):b=="for"?$(me("form"),qe,Nu,Fe,Re,ye):b=="class"||k&&E=="interface"?(C.marked="keyword",$(me("form",b=="class"?b:E),Qa,ye)):b=="variable"?k&&E=="declare"?(C.marked="keyword",$(Fe)):k&&(E=="module"||E=="enum"||E=="type")&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword",E=="enum"?$(ir):E=="type"?$(Ru,je("operator"),Be,je(";")):$(me("form"),Vt,je("{"),me("}"),pn,ye,ye)):k&&E=="namespace"?(C.marked="keyword",$(me("form"),Le,Fe,ye)):k&&E=="abstract"?(C.marked="keyword",$(Fe)):$(me("stat"),Ye):b=="switch"?$(me("form"),T,je("{"),me("}","switch"),qe,pn,ye,ye,Re):b=="case"?$(Le,je(":")):b=="default"?$(je(":")):b=="catch"?$(me("form"),We,Ie,Fe,ye,Re):b=="export"?$(me("stat"),gs,ye):b=="import"?$(me("stat"),ft,ye):b=="async"?$(Fe):E=="@"?$(Le,Fe):F(me("stat"),Le,je(";"),ye)}function Ie(b){if(b=="(")return $(Fr,je(")"))}function Le(b,E){return R(b,E,!1)}function ut(b,E){return R(b,E,!0)}function T(b){return b!="("?F():$(me(")"),A,je(")"),ye)}function R(b,E,J){if(C.state.fatArrowAt==C.stream.start){var se=J?Ne:Qe;if(b=="(")return $(We,me(")"),ct(Fr,")"),ye,je("=>"),se,Re);if(b=="variable")return F(We,Vt,je("=>"),se,Re)}var He=J?de:X;return Ce.hasOwnProperty(b)?$(He):b=="function"?$(Mn,He):b=="class"||k&&E=="interface"?(C.marked="keyword",$(me("form"),Za,ye)):b=="keyword c"||b=="async"?$(J?ut:Le):b=="("?$(me(")"),A,je(")"),ye,He):b=="operator"||b=="spread"?$(J?ut:Le):b=="["?$(me("]"),Ve,ye,He):b=="{"?Ii(er,"}",null,He):b=="quasi"?F(ce,He):b=="new"?$(I(J)):$()}function A(b){return b.match(/[;\}\)\],]/)?F():F(Le)}function X(b,E){return b==","?$(A):de(b,E,!1)}function de(b,E,J){var se=J==!1?X:de,He=J==!1?Le:ut;if(b=="=>")return $(We,J?Ne:Qe,Re);if(b=="operator")return/\+\+|--/.test(E)||k&&E=="!"?$(se):k&&E=="<"&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?$(me(">"),ct(Be,">"),ye,se):E=="?"?$(Le,je(":"),He):$(He);if(b=="quasi")return F(ce,se);if(b!=";"){if(b=="(")return Ii(ut,")","call",se);if(b==".")return $(Ut,se);if(b=="[")return $(me("]"),A,je("]"),ye,se);if(k&&E=="as")return C.marked="keyword",$(Be,se);if(b=="regexp")return C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),$(He)}}function ce(b,E){return b!="quasi"?F():E.slice(E.length-2)!="${"?$(ce):$(A,Oe)}function Oe(b){if(b=="}")return C.marked="string-2",C.state.tokenize=te,$(ce)}function Qe(b){return xe(C.stream,C.state),F(b=="{"?Fe:Le)}function Ne(b){return xe(C.stream,C.state),F(b=="{"?Fe:ut)}function I(b){return function(E){return E=="."?$(b?W:re):E=="variable"&&k?$(Di,b?de:X):F(b?ut:Le)}}function re(b,E){if(E=="target")return C.marked="keyword",$(X)}function W(b,E){if(E=="target")return C.marked="keyword",$(de)}function Ye(b){return b==":"?$(ye,Fe):F(X,je(";"),ye)}function Ut(b){if(b=="variable")return C.marked="property",$()}function er(b,E){if(b=="async")return C.marked="property",$(er);if(b=="variable"||C.style=="keyword"){if(C.marked="property",E=="get"||E=="set")return $($p);var J;return k&&C.state.fatArrowAt==C.stream.start&&(J=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+J[0].length),$(bn)}else{if(b=="number"||b=="string")return C.marked=p?"property":C.style+" property",$(bn);if(b=="jsonld-keyword")return $(bn);if(k&&ge(E))return C.marked="keyword",$(er);if(b=="[")return $(Le,Er,je("]"),bn);if(b=="spread")return $(ut,bn);if(E=="*")return C.marked="keyword",$(er);if(b==":")return F(bn)}}function $p(b){return b!="variable"?F(bn):(C.marked="property",$(Mn))}function bn(b){if(b==":")return $(ut);if(b=="(")return F(Mn)}function ct(b,E,J){function se(He,Xe){if(J?J.indexOf(He)>-1:He==","){var $e=C.state.lexical;return $e.info=="call"&&($e.pos=($e.pos||0)+1),$(function(Dt,xn){return Dt==E||xn==E?F():F(b)},se)}return He==E||Xe==E?$():J&&J.indexOf(";")>-1?F(b):$(je(E))}return function(He,Xe){return He==E||Xe==E?$():F(b,se)}}function Ii(b,E,J){for(var se=3;se<arguments.length;se++)C.cc.push(arguments[se]);return $(me(E,J),ct(b,E),ye)}function pn(b){return b=="}"?$():F(Fe,pn)}function Er(b,E){if(k){if(b==":")return $(Be);if(E=="?")return $(Er)}}function Me(b,E){if(k&&(b==":"||E=="in"))return $(Be)}function qa(b){if(k&&b==":")return C.stream.match(/^\s*\w+\s+is\b/,!1)?$(Le,Qt,Be):$(Be)}function Qt(b,E){if(E=="is")return C.marked="keyword",$()}function Be(b,E){if(E=="keyof"||E=="typeof"||E=="infer"||E=="readonly")return C.marked="keyword",$(E=="typeof"?ut:Be);if(b=="variable"||E=="void")return C.marked="type",$($n);if(E=="|"||E=="&")return $(Be);if(b=="string"||b=="number"||b=="atom")return $($n);if(b=="[")return $(me("]"),ct(Be,"]",","),ye,$n);if(b=="{")return $(me("}"),Ja,ye,$n);if(b=="(")return $(ct(Xa,")"),gt,$n);if(b=="<")return $(ct(Be,">"),Be);if(b=="quasi")return F(tr,$n)}function gt(b){if(b=="=>")return $(Be)}function Ja(b){return b.match(/[\}\)\]]/)?$():b==","||b==";"?$(Ja):F(Lt,Ja)}function Lt(b,E){if(b=="variable"||C.style=="keyword")return C.marked="property",$(Lt);if(E=="?"||b=="number"||b=="string")return $(Lt);if(b==":")return $(Be);if(b=="[")return $(je("variable"),Me,je("]"),Lt);if(b=="(")return F(kn,Lt);if(!b.match(/[;\}\)\],]/))return $()}function tr(b,E){return b!="quasi"?F():E.slice(E.length-2)!="${"?$(tr):$(Be,It)}function It(b){if(b=="}")return C.marked="string-2",C.state.tokenize=te,$(tr)}function Xa(b,E){return b=="variable"&&C.stream.match(/^\s*[?:]/,!1)||E=="?"?$(Xa):b==":"?$(Be):b=="spread"?$(Xa):F(Be)}function $n(b,E){if(E=="<")return $(me(">"),ct(Be,">"),ye,$n);if(E=="|"||b=="."||E=="&")return $(Be);if(b=="[")return $(Be,je("]"),$n);if(E=="extends"||E=="implements")return C.marked="keyword",$(Be);if(E=="?")return $(Be,je(":"),Be)}function Di(b,E){if(E=="<")return $(me(">"),ct(Be,">"),ye,$n)}function Xr(){return F(Be,Mu)}function Mu(b,E){if(E=="=")return $(Be)}function hs(b,E){return E=="enum"?(C.marked="keyword",$(ir)):F(Vt,Er,nr,vs)}function Vt(b,E){if(k&&ge(E))return C.marked="keyword",$(Vt);if(b=="variable")return H(E),$();if(b=="spread")return $(Vt);if(b=="[")return Ii(_s,"]");if(b=="{")return Ii(Pu,"}")}function Pu(b,E){return b=="variable"&&!C.stream.match(/^\s*:/,!1)?(H(E),$(nr)):(b=="variable"&&(C.marked="property"),b=="spread"?$(Vt):b=="}"?F():b=="["?$(Le,je("]"),je(":"),Pu):$(je(":"),Vt,nr))}function _s(){return F(Vt,nr)}function nr(b,E){if(E=="=")return $(ut)}function vs(b){if(b==",")return $(hs)}function Lu(b,E){if(b=="keyword b"&&E=="else")return $(me("form","else"),Fe,ye)}function Nu(b,E){if(E=="await")return $(Nu);if(b=="(")return $(me(")"),ms,ye)}function ms(b){return b=="var"?$(hs,Zr):b=="variable"?$(Zr):F(Zr)}function Zr(b,E){return b==")"?$():b==";"?$(Zr):E=="in"||E=="of"?(C.marked="keyword",$(Le,Zr)):F(Le,Zr)}function Mn(b,E){if(E=="*")return C.marked="keyword",$(Mn);if(b=="variable")return H(E),$(Mn);if(b=="(")return $(We,me(")"),ct(Fr,")"),ye,qa,Fe,Re);if(k&&E=="<")return $(me(">"),ct(Xr,">"),ye,Mn)}function kn(b,E){if(E=="*")return C.marked="keyword",$(kn);if(b=="variable")return H(E),$(kn);if(b=="(")return $(We,me(")"),ct(Fr,")"),ye,qa,Re);if(k&&E=="<")return $(me(">"),ct(Xr,">"),ye,kn)}function Ru(b,E){if(b=="keyword"||b=="variable")return C.marked="type",$(Ru);if(E=="<")return $(me(">"),ct(Xr,">"),ye)}function Fr(b,E){return E=="@"&&$(Le,Fr),b=="spread"?$(Fr):k&&ge(E)?(C.marked="keyword",$(Fr)):k&&b=="this"?$(Er,nr):F(Vt,Er,nr)}function Za(b,E){return b=="variable"?Qa(b,E):Wn(b,E)}function Qa(b,E){if(b=="variable")return H(E),$(Wn)}function Wn(b,E){if(E=="<")return $(me(">"),ct(Xr,">"),ye,Wn);if(E=="extends"||E=="implements"||k&&b==",")return E=="implements"&&(C.marked="keyword"),$(k?Be:Le,Wn);if(b=="{")return $(me("}"),Gn,ye)}function Gn(b,E){if(b=="async"||b=="variable"&&(E=="static"||E=="get"||E=="set"||k&&ge(E))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return C.marked="keyword",$(Gn);if(b=="variable"||C.style=="keyword")return C.marked="property",$(wn,Gn);if(b=="number"||b=="string")return $(wn,Gn);if(b=="[")return $(Le,Er,je("]"),wn,Gn);if(E=="*")return C.marked="keyword",$(Gn);if(k&&b=="(")return F(kn,Gn);if(b==";"||b==",")return $(Gn);if(b=="}")return $();if(E=="@")return $(Le,Gn)}function wn(b,E){if(E=="!"||E=="?")return $(wn);if(b==":")return $(Be,nr);if(E=="=")return $(ut);var J=C.state.lexical.prev,se=J&&J.info=="interface";return F(se?kn:Mn)}function gs(b,E){return E=="*"?(C.marked="keyword",$(hn,je(";"))):E=="default"?(C.marked="keyword",$(Le,je(";"))):b=="{"?$(ct(ys,"}"),hn,je(";")):F(Fe)}function ys(b,E){if(E=="as")return C.marked="keyword",$(je("variable"));if(b=="variable")return F(ut,ys)}function ft(b){return b=="string"?$():b=="("?F(Le):b=="."?F(X):F(we,rr,hn)}function we(b,E){return b=="{"?Ii(we,"}"):(b=="variable"&&H(E),E=="*"&&(C.marked="keyword"),$(bs))}function rr(b){if(b==",")return $(we,rr)}function bs(b,E){if(E=="as")return C.marked="keyword",$(we)}function hn(b,E){if(E=="from")return C.marked="keyword",$(Le)}function Ve(b){return b=="]"?$():F(ct(ut,"]"))}function ir(){return F(me("form"),Vt,je("{"),me("}"),ct(ji,"}"),ye,ye)}function ji(){return F(Vt,nr)}function $s(b,E){return b.lastType=="operator"||b.lastType==","||M.test(E.charAt(0))||/[,.]/.test(E.charAt(0))}function ne(b,E,J){return E.tokenize==B&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(E.lastType)||E.lastType=="quasi"&&/\{\s*$/.test(b.string.slice(0,b.pos-(J||0)))}return{startState:function(b){var E={tokenize:B,lastType:"sof",cc:[],lexical:new pe((b||0)-u,0,"block",!1),localVars:o.localVars,context:o.localVars&&new he(null,null,!1),indented:b||0};return o.globalVars&&typeof o.globalVars=="object"&&(E.globalVars=o.globalVars),E},token:function(b,E){if(b.sol()&&(E.lexical.hasOwnProperty("align")||(E.lexical.align=!1),E.indented=b.indentation(),xe(b,E)),E.tokenize!=oe&&b.eatSpace())return null;var J=E.tokenize(b,E);return q=="comment"?J:(E.lastType=q=="operator"&&(j=="++"||j=="--")?"incdec":q,P(E,J,q,j,b))},indent:function(b,E){if(b.tokenize==oe||b.tokenize==te)return t.Pass;if(b.tokenize!=B)return 0;var J=E&&E.charAt(0),se=b.lexical,He;if(!/^\s*else\b/.test(E))for(var Xe=b.cc.length-1;Xe>=0;--Xe){var $e=b.cc[Xe];if($e==ye)se=se.prev;else if($e!=Lu&&$e!=Re)break}for(;(se.type=="stat"||se.type=="form")&&(J=="}"||(He=b.cc[b.cc.length-1])&&(He==X||He==de)&&!/^[,\.=+\-*:?[\(]/.test(E));)se=se.prev;f&&se.type==")"&&se.prev.type=="stat"&&(se=se.prev);var Dt=se.type,xn=J==Dt;return Dt=="vardef"?se.indented+(b.lastType=="operator"||b.lastType==","?se.info.length+1:0):Dt=="form"&&J=="{"?se.indented:Dt=="form"?se.indented+u:Dt=="stat"?se.indented+($s(b,E)?f||u:0):se.info=="switch"&&!xn&&o.doubleIndentSwitch!=!1?se.indented+(/^(?:case|default)\b/.test(E)?u:2*u):se.align?se.column+(xn?0:1):se.indented+(xn?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:_?null:"/*",blockCommentEnd:_?null:"*/",blockCommentContinue:_?null:" * ",lineComment:_?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:_?"json":"javascript",jsonldMode:p,jsonMode:_,expressionAllowed:ne,skipExpression:function(b){P(b,"atom","atom","true",new t.StringStream("",2,null))}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var lg={exports:{}};(function(e,n){(function(t){t(Hn.exports)})(function(t){t.defineMode("css",function(pe,fe){var P=fe.inline;fe.propertyKeywords||(fe=t.resolveMode("text/css"));var C=pe.indentUnit,F=fe.tokenHooks,$=fe.documentTypes||{},G=fe.mediaTypes||{},H=fe.mediaFeatures||{},ee=fe.mediaValueKeywords||{},ge=fe.propertyKeywords||{},he=fe.nonStandardPropertyKeywords||{},Pe=fe.fontProperties||{},Se=fe.counterDescriptors||{},We=fe.colorKeywords||{},qe=fe.valueKeywords||{},Re=fe.allowNested,me=fe.lineComment,ye=fe.supportsAtComponent===!0,je=pe.highlightNonStandardPropertyKeywords!==!1,Fe,Ie;function Le(I,re){return Fe=re,I}function ut(I,re){var W=I.next();if(F[W]){var Ye=F[W](I,re);if(Ye!==!1)return Ye}if(W=="@")return I.eatWhile(/[\w\\\-]/),Le("def",I.current());if(W=="="||(W=="~"||W=="|")&&I.eat("="))return Le(null,"compare");if(W=='"'||W=="'")return re.tokenize=T(W),re.tokenize(I,re);if(W=="#")return I.eatWhile(/[\w\\\-]/),Le("atom","hash");if(W=="!")return I.match(/^\s*\w*/),Le("keyword","important");if(/\d/.test(W)||W=="."&&I.eat(/\d/))return I.eatWhile(/[\w.%]/),Le("number","unit");if(W==="-"){if(/[\d.]/.test(I.peek()))return I.eatWhile(/[\w.%]/),Le("number","unit");if(I.match(/^-[\w\\\-]*/))return I.eatWhile(/[\w\\\-]/),I.match(/^\s*:/,!1)?Le("variable-2","variable-definition"):Le("variable-2","variable");if(I.match(/^\w+-/))return Le("meta","meta")}else return/[,+>*\/]/.test(W)?Le(null,"select-op"):W=="."&&I.match(/^-?[_a-z][_a-z0-9-]*/i)?Le("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(W)?Le(null,W):I.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(I.current())&&(re.tokenize=R),Le("variable callee","variable")):/[\w\\\-]/.test(W)?(I.eatWhile(/[\w\\\-]/),Le("property","word")):Le(null,null)}function T(I){return function(re,W){for(var Ye=!1,Ut;(Ut=re.next())!=null;){if(Ut==I&&!Ye){I==")"&&re.backUp(1);break}Ye=!Ye&&Ut=="\\"}return(Ut==I||!Ye&&I!=")")&&(W.tokenize=null),Le("string","string")}}function R(I,re){return I.next(),I.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=T(")"),Le(null,"(")}function A(I,re,W){this.type=I,this.indent=re,this.prev=W}function X(I,re,W,Ye){return I.context=new A(W,re.indentation()+(Ye===!1?0:C),I.context),W}function de(I){return I.context.prev&&(I.context=I.context.prev),I.context.type}function ce(I,re,W){return Ne[W.context.type](I,re,W)}function Oe(I,re,W,Ye){for(var Ut=Ye||1;Ut>0;Ut--)W.context=W.context.prev;return ce(I,re,W)}function Qe(I){var re=I.current().toLowerCase();qe.hasOwnProperty(re)?Ie="atom":We.hasOwnProperty(re)?Ie="keyword":Ie="variable"}var Ne={};return Ne.top=function(I,re,W){if(I=="{")return X(W,re,"block");if(I=="}"&&W.context.prev)return de(W);if(ye&&/@component/i.test(I))return X(W,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(I))return X(W,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(I))return X(W,re,"atBlock");if(/^@(font-face|counter-style)/i.test(I))return W.stateArg=I,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(I))return"keyframes";if(I&&I.charAt(0)=="@")return X(W,re,"at");if(I=="hash")Ie="builtin";else if(I=="word")Ie="tag";else{if(I=="variable-definition")return"maybeprop";if(I=="interpolation")return X(W,re,"interpolation");if(I==":")return"pseudo";if(Re&&I=="(")return X(W,re,"parens")}return W.context.type},Ne.block=function(I,re,W){if(I=="word"){var Ye=re.current().toLowerCase();return ge.hasOwnProperty(Ye)?(Ie="property","maybeprop"):he.hasOwnProperty(Ye)?(Ie=je?"string-2":"property","maybeprop"):Re?(Ie=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ie+=" error","maybeprop")}else return I=="meta"?"block":!Re&&(I=="hash"||I=="qualifier")?(Ie="error","block"):Ne.top(I,re,W)},Ne.maybeprop=function(I,re,W){return I==":"?X(W,re,"prop"):ce(I,re,W)},Ne.prop=function(I,re,W){if(I==";")return de(W);if(I=="{"&&Re)return X(W,re,"propBlock");if(I=="}"||I=="{")return Oe(I,re,W);if(I=="(")return X(W,re,"parens");if(I=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ie+=" error";else if(I=="word")Qe(re);else if(I=="interpolation")return X(W,re,"interpolation");return"prop"},Ne.propBlock=function(I,re,W){return I=="}"?de(W):I=="word"?(Ie="property","maybeprop"):W.context.type},Ne.parens=function(I,re,W){return I=="{"||I=="}"?Oe(I,re,W):I==")"?de(W):I=="("?X(W,re,"parens"):I=="interpolation"?X(W,re,"interpolation"):(I=="word"&&Qe(re),"parens")},Ne.pseudo=function(I,re,W){return I=="meta"?"pseudo":I=="word"?(Ie="variable-3",W.context.type):ce(I,re,W)},Ne.documentTypes=function(I,re,W){return I=="word"&&$.hasOwnProperty(re.current())?(Ie="tag",W.context.type):Ne.atBlock(I,re,W)},Ne.atBlock=function(I,re,W){if(I=="(")return X(W,re,"atBlock_parens");if(I=="}"||I==";")return Oe(I,re,W);if(I=="{")return de(W)&&X(W,re,Re?"block":"top");if(I=="interpolation")return X(W,re,"interpolation");if(I=="word"){var Ye=re.current().toLowerCase();Ye=="only"||Ye=="not"||Ye=="and"||Ye=="or"?Ie="keyword":G.hasOwnProperty(Ye)?Ie="attribute":H.hasOwnProperty(Ye)?Ie="property":ee.hasOwnProperty(Ye)?Ie="keyword":ge.hasOwnProperty(Ye)?Ie="property":he.hasOwnProperty(Ye)?Ie=je?"string-2":"property":qe.hasOwnProperty(Ye)?Ie="atom":We.hasOwnProperty(Ye)?Ie="keyword":Ie="error"}return W.context.type},Ne.atComponentBlock=function(I,re,W){return I=="}"?Oe(I,re,W):I=="{"?de(W)&&X(W,re,Re?"block":"top",!1):(I=="word"&&(Ie="error"),W.context.type)},Ne.atBlock_parens=function(I,re,W){return I==")"?de(W):I=="{"||I=="}"?Oe(I,re,W,2):Ne.atBlock(I,re,W)},Ne.restricted_atBlock_before=function(I,re,W){return I=="{"?X(W,re,"restricted_atBlock"):I=="word"&&W.stateArg=="@counter-style"?(Ie="variable","restricted_atBlock_before"):ce(I,re,W)},Ne.restricted_atBlock=function(I,re,W){return I=="}"?(W.stateArg=null,de(W)):I=="word"?(W.stateArg=="@font-face"&&!Pe.hasOwnProperty(re.current().toLowerCase())||W.stateArg=="@counter-style"&&!Se.hasOwnProperty(re.current().toLowerCase())?Ie="error":Ie="property","maybeprop"):"restricted_atBlock"},Ne.keyframes=function(I,re,W){return I=="word"?(Ie="variable","keyframes"):I=="{"?X(W,re,"top"):ce(I,re,W)},Ne.at=function(I,re,W){return I==";"?de(W):I=="{"||I=="}"?Oe(I,re,W):(I=="word"?Ie="tag":I=="hash"&&(Ie="builtin"),"at")},Ne.interpolation=function(I,re,W){return I=="}"?de(W):I=="{"||I==";"?Oe(I,re,W):(I=="word"?Ie="variable":I!="variable"&&I!="("&&I!=")"&&(Ie="error"),"interpolation")},{startState:function(I){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new A(P?"block":"top",I||0,null)}},token:function(I,re){if(!re.tokenize&&I.eatSpace())return null;var W=(re.tokenize||ut)(I,re);return W&&typeof W=="object"&&(Fe=W[1],W=W[0]),Ie=W,Fe!="comment"&&(re.state=Ne[re.state](Fe,I,re)),Ie},indent:function(I,re){var W=I.context,Ye=re&&re.charAt(0),Ut=W.indent;return W.type=="prop"&&(Ye=="}"||Ye==")")&&(W=W.prev),W.prev&&(Ye=="}"&&(W.type=="block"||W.type=="top"||W.type=="interpolation"||W.type=="restricted_atBlock")?(W=W.prev,Ut=W.indent):(Ye==")"&&(W.type=="parens"||W.type=="atBlock_parens")||Ye=="{"&&(W.type=="at"||W.type=="atBlock"))&&(Ut=Math.max(0,W.indent-C))),Ut},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:me,fold:"brace"}});function r(pe){for(var fe={},P=0;P<pe.length;++P)fe[pe[P].toLowerCase()]=!0;return fe}var o=["domain","regexp","url","url-prefix"],u=r(o),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],p=r(f),_=["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"],v=r(_),k=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],w=r(k),x=["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"],M=r(x),z=["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"],ie=r(z),q=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],j=r(q),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],B=r(D),Y=["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"],oe=r(Y),te=["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","button-bevel","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","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-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","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","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"],le=r(te),xe=o.concat(f).concat(_).concat(k).concat(x).concat(z).concat(Y).concat(te);t.registerHelper("hintWords","css",xe);function Ce(pe,fe){for(var P=!1,C;(C=pe.next())!=null;){if(P&&C=="/"){fe.tokenize=null;break}P=C=="*"}return["comment","comment"]}t.defineMIME("text/css",{documentTypes:u,mediaTypes:p,mediaFeatures:v,mediaValueKeywords:w,propertyKeywords:M,nonStandardPropertyKeywords:ie,fontProperties:j,counterDescriptors:B,colorKeywords:oe,valueKeywords:le,tokenHooks:{"/":function(pe,fe){return pe.eat("*")?(fe.tokenize=Ce,Ce(pe,fe)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:p,mediaFeatures:v,mediaValueKeywords:w,propertyKeywords:M,nonStandardPropertyKeywords:ie,colorKeywords:oe,valueKeywords:le,fontProperties:j,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(pe,fe){return pe.eat("/")?(pe.skipToEnd(),["comment","comment"]):pe.eat("*")?(fe.tokenize=Ce,Ce(pe,fe)):["operator","operator"]},":":function(pe){return pe.match(/^\s*\{/,!1)?[null,null]:!1},$:function(pe){return pe.match(/^[\w-]+/),pe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(pe){return pe.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:p,mediaFeatures:v,mediaValueKeywords:w,propertyKeywords:M,nonStandardPropertyKeywords:ie,colorKeywords:oe,valueKeywords:le,fontProperties:j,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(pe,fe){return pe.eat("/")?(pe.skipToEnd(),["comment","comment"]):pe.eat("*")?(fe.tokenize=Ce,Ce(pe,fe)):["operator","operator"]},"@":function(pe){return pe.eat("{")?[null,"interpolation"]:pe.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(pe.eatWhile(/[\w\\\-]/),pe.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:u,mediaTypes:p,mediaFeatures:v,propertyKeywords:M,nonStandardPropertyKeywords:ie,fontProperties:j,counterDescriptors:B,colorKeywords:oe,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(pe,fe){return pe.eat("*")?(fe.tokenize=Ce,Ce(pe,fe)):!1}},name:"css",helperType:"gss"})})})();var fL={exports:{}};(function(e,n){(function(t){t(Hn.exports)})(function(t){var r={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},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(u,f){var p=u.indentUnit,_={},v=f.htmlMode?r:o;for(var k in v)_[k]=v[k];for(var k in f)_[k]=f[k];var w,x;function M($,G){function H(he){return G.tokenize=he,he($,G)}var ee=$.next();if(ee=="<")return $.eat("!")?$.eat("[")?$.match("CDATA[")?H(q("atom","]]>")):null:$.match("--")?H(q("comment","-->")):$.match("DOCTYPE",!0,!0)?($.eatWhile(/[\w\._\-]/),H(j(1))):null:$.eat("?")?($.eatWhile(/[\w\._\-]/),G.tokenize=q("meta","?>"),"meta"):(w=$.eat("/")?"closeTag":"openTag",G.tokenize=z,"tag bracket");if(ee=="&"){var ge;return $.eat("#")?$.eat("x")?ge=$.eatWhile(/[a-fA-F\d]/)&&$.eat(";"):ge=$.eatWhile(/[\d]/)&&$.eat(";"):ge=$.eatWhile(/[\w\.\-:]/)&&$.eat(";"),ge?"atom":"error"}else return $.eatWhile(/[^&<]/),null}M.isInText=!0;function z($,G){var H=$.next();if(H==">"||H=="/"&&$.eat(">"))return G.tokenize=M,w=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return w="equals",null;if(H=="<"){G.tokenize=M,G.state=te,G.tagName=G.tagStart=null;var ee=G.tokenize($,G);return ee?ee+" tag error":"tag error"}else return/[\'\"]/.test(H)?(G.tokenize=ie(H),G.stringStartCol=$.column(),G.tokenize($,G)):($.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ie($){var G=function(H,ee){for(;!H.eol();)if(H.next()==$){ee.tokenize=z;break}return"string"};return G.isInAttribute=!0,G}function q($,G){return function(H,ee){for(;!H.eol();){if(H.match(G)){ee.tokenize=M;break}H.next()}return $}}function j($){return function(G,H){for(var ee;(ee=G.next())!=null;){if(ee=="<")return H.tokenize=j($+1),H.tokenize(G,H);if(ee==">")if($==1){H.tokenize=M;break}else return H.tokenize=j($-1),H.tokenize(G,H)}return"meta"}}function D($){return $&&$.toLowerCase()}function B($,G,H){this.prev=$.context,this.tagName=G||"",this.indent=$.indented,this.startOfLine=H,(_.doNotIndent.hasOwnProperty(G)||$.context&&$.context.noIndent)&&(this.noIndent=!0)}function Y($){$.context&&($.context=$.context.prev)}function oe($,G){for(var H;;){if(!$.context||(H=$.context.tagName,!_.contextGrabbers.hasOwnProperty(D(H))||!_.contextGrabbers[D(H)].hasOwnProperty(D(G))))return;Y($)}}function te($,G,H){return $=="openTag"?(H.tagStart=G.column(),le):$=="closeTag"?xe:te}function le($,G,H){return $=="word"?(H.tagName=G.current(),x="tag",fe):_.allowMissingTagName&&$=="endTag"?(x="tag bracket",fe($,G,H)):(x="error",le)}function xe($,G,H){if($=="word"){var ee=G.current();return H.context&&H.context.tagName!=ee&&_.implicitlyClosed.hasOwnProperty(D(H.context.tagName))&&Y(H),H.context&&H.context.tagName==ee||_.matchClosing===!1?(x="tag",Ce):(x="tag error",pe)}else return _.allowMissingTagName&&$=="endTag"?(x="tag bracket",Ce($,G,H)):(x="error",pe)}function Ce($,G,H){return $!="endTag"?(x="error",Ce):(Y(H),te)}function pe($,G,H){return x="error",Ce($,G,H)}function fe($,G,H){if($=="word")return x="attribute",P;if($=="endTag"||$=="selfcloseTag"){var ee=H.tagName,ge=H.tagStart;return H.tagName=H.tagStart=null,$=="selfcloseTag"||_.autoSelfClosers.hasOwnProperty(D(ee))?oe(H,ee):(oe(H,ee),H.context=new B(H,ee,ge==H.indented)),te}return x="error",fe}function P($,G,H){return $=="equals"?C:(_.allowMissing||(x="error"),fe($,G,H))}function C($,G,H){return $=="string"?F:$=="word"&&_.allowUnquoted?(x="string",fe):(x="error",fe($,G,H))}function F($,G,H){return $=="string"?F:fe($,G,H)}return{startState:function($){var G={tokenize:M,state:te,indented:$||0,tagName:null,tagStart:null,context:null};return $!=null&&(G.baseIndent=$),G},token:function($,G){if(!G.tagName&&$.sol()&&(G.indented=$.indentation()),$.eatSpace())return null;w=null;var H=G.tokenize($,G);return(H||w)&&H!="comment"&&(x=null,G.state=G.state(w||H,$,G),x&&(H=x=="error"?H+" error":x)),H},indent:function($,G,H){var ee=$.context;if($.tokenize.isInAttribute)return $.tagStart==$.indented?$.stringStartCol+1:$.indented+p;if(ee&&ee.noIndent)return t.Pass;if($.tokenize!=z&&$.tokenize!=M)return H?H.match(/^(\s*)/)[0].length:0;if($.tagName)return _.multilineTagIndentPastTag!==!1?$.tagStart+$.tagName.length+2:$.tagStart+p*(_.multilineTagIndentFactor||1);if(_.alignCDATA&&/<!\[CDATA\[/.test(G))return 0;var ge=G&&/^<(\/)?([\w_:\.-]*)/.exec(G);if(ge&&ge[1])for(;ee;)if(ee.tagName==ge[2]){ee=ee.prev;break}else if(_.implicitlyClosed.hasOwnProperty(D(ee.tagName)))ee=ee.prev;else break;else if(ge)for(;ee;){var he=_.contextGrabbers[D(ee.tagName)];if(he&&he.hasOwnProperty(D(ge[2])))ee=ee.prev;else break}for(;ee&&ee.prev&&!ee.startOfLine;)ee=ee.prev;return ee?ee.indent+p:$.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:_.htmlMode?"html":"xml",helperType:_.htmlMode?"html":"xml",skipAttribute:function($){$.state==C&&($.state=fe)},xmlCurrentTag:function($){return $.tagName?{name:$.tagName,close:$.type=="closeTag"}:null},xmlCurrentContext:function($){for(var G=[],H=$.context;H;H=H.prev)G.push(H.tagName);return G.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})})(),function(e,n){(function(t){t(Hn.exports,fL.exports,cL.exports,lg.exports)})(function(t){var r={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 o(w,x,M){var z=w.current(),ie=z.search(x);return ie>-1?w.backUp(z.length-ie):z.match(/<\/?$/)&&(w.backUp(z.length),w.match(x,!1)||w.match(z)),M}var u={};function f(w){var x=u[w];return x||(u[w]=new RegExp("\\s+"+w+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function p(w,x){var M=w.match(f(x));return M?/^\s*(.*?)\s*$/.exec(M[2])[1]:""}function _(w,x){return new RegExp((x?"^":"")+"</s*"+w+"s*>","i")}function v(w,x){for(var M in w)for(var z=x[M]||(x[M]=[]),ie=w[M],q=ie.length-1;q>=0;q--)z.unshift(ie[q])}function k(w,x){for(var M=0;M<w.length;M++){var z=w[M];if(!z[0]||z[1].test(p(x,z[0])))return z[2]}}t.defineMode("htmlmixed",function(w,x){var M=t.getMode(w,{name:"xml",htmlMode:!0,multilineTagIndentFactor:x.multilineTagIndentFactor,multilineTagIndentPastTag:x.multilineTagIndentPastTag,allowMissingTagName:x.allowMissingTagName}),z={},ie=x&&x.tags,q=x&&x.scriptTypes;if(v(r,z),ie&&v(ie,z),q)for(var j=q.length-1;j>=0;j--)z.script.unshift(["type",q[j].matches,q[j].mode]);function D(B,Y){var oe=M.token(B,Y.htmlState),te=/\btag\b/.test(oe),le;if(te&&!/[<>\s\/]/.test(B.current())&&(le=Y.htmlState.tagName&&Y.htmlState.tagName.toLowerCase())&&z.hasOwnProperty(le))Y.inTag=le+" ";else if(Y.inTag&&te&&/>$/.test(B.current())){var xe=/^([\S]+) (.*)/.exec(Y.inTag);Y.inTag=null;var Ce=B.current()==">"&&k(z[xe[1]],xe[2]),pe=t.getMode(w,Ce),fe=_(xe[1],!0),P=_(xe[1],!1);Y.token=function(C,F){return C.match(fe,!1)?(F.token=D,F.localState=F.localMode=null,null):o(C,P,F.localMode.token(C,F.localState))},Y.localMode=pe,Y.localState=t.startState(pe,M.indent(Y.htmlState,"",""))}else Y.inTag&&(Y.inTag+=B.current(),B.eol()&&(Y.inTag+=" "));return oe}return{startState:function(){var B=t.startState(M);return{token:D,inTag:null,localMode:null,localState:null,htmlState:B}},copyState:function(B){var Y;return B.localState&&(Y=t.copyState(B.localMode,B.localState)),{token:B.token,inTag:B.inTag,localMode:B.localMode,localState:Y,htmlState:t.copyState(M,B.htmlState)}},token:function(B,Y){return Y.token(B,Y)},indent:function(B,Y,oe){return!B.localMode||/^\s*<\//.test(Y)?M.indent(B.htmlState,Y,oe):B.localMode.indent?B.localMode.indent(B.localState,Y,oe):t.Pass},innerMode:function(B){return{state:B.localState||B.htmlState,mode:B.localMode||M}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})}(),function(e,n){(function(t){t(Hn.exports)})(function(t){var r="CodeMirror-hint",o="CodeMirror-hint-active";t.showHint=function(j,D,B){if(!D)return j.showHint(B);B&&B.async&&(D.async=!0);var Y={hint:D};if(B)for(var oe in B)Y[oe]=B[oe];return j.showHint(Y)},t.defineExtension("showHint",function(j){j=_(this,this.getCursor("start"),j);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!j.hint.supportsSelection)return;for(var B=0;B<D.length;B++)if(D[B].head.line!=D[B].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var Y=this.state.completionActive=new u(this,j);!Y.options.hint||(t.signal(this,"startCompletion",this),Y.update(!0))}}),t.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function u(j,D){if(this.cm=j,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var B=this;j.on("cursorActivity",this.activityFunc=function(){B.cursorActivity()})}}var f=window.requestAnimationFrame||function(j){return setTimeout(j,1e3/60)},p=window.cancelAnimationFrame||clearTimeout;u.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(j,D){var B=j.list[D],Y=this;this.cm.operation(function(){B.hint?B.hint(Y.cm,j,B):Y.cm.replaceRange(v(B),B.from||j.from,B.to||j.to,"complete"),t.signal(j,"pick",B),Y.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(p(this.debounce),this.debounce=0);var j=this.startPos;this.data&&(j=this.data.from);var D=this.cm.getCursor(),B=this.cm.getLine(D.line);if(D.line!=this.startPos.line||B.length-D.ch!=this.startLen-this.startPos.ch||D.ch<j.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(B.charAt(D.ch-1)))this.close();else{var Y=this;this.debounce=f(function(){Y.update()}),this.widget&&this.widget.disable()}},update:function(j){if(this.tick!=null){var D=this,B=++this.tick;z(this.options.hint,this.cm,this.options,function(Y){D.tick==B&&D.finishUpdate(Y,j)})}},finishUpdate:function(j,D){this.data&&t.signal(this.data,"update");var B=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=j,j&&j.list.length&&(B&&j.list.length==1?this.pick(j,0):(this.widget=new x(this,j),t.signal(j,"shown")))}};function _(j,D,B){var Y=j.options.hintOptions,oe={};for(var te in q)oe[te]=q[te];if(Y)for(var te in Y)Y[te]!==void 0&&(oe[te]=Y[te]);if(B)for(var te in B)B[te]!==void 0&&(oe[te]=B[te]);return oe.hint.resolve&&(oe.hint=oe.hint.resolve(j,D)),oe}function v(j){return typeof j=="string"?j:j.text}function k(j,D){var B={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},Y=/Mac/.test(navigator.platform);Y&&(B["Ctrl-P"]=function(){D.moveFocus(-1)},B["Ctrl-N"]=function(){D.moveFocus(1)});var oe=j.options.customKeys,te=oe?{}:B;function le(pe,fe){var P;typeof fe!="string"?P=function(C){return fe(C,D)}:B.hasOwnProperty(fe)?P=B[fe]:P=fe,te[pe]=P}if(oe)for(var xe in oe)oe.hasOwnProperty(xe)&&le(xe,oe[xe]);var Ce=j.options.extraKeys;if(Ce)for(var xe in Ce)Ce.hasOwnProperty(xe)&&le(xe,Ce[xe]);return te}function w(j,D){for(;D&&D!=j;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==j)return D;D=D.parentNode}}function x(j,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=j,this.data=D,this.picked=!1;var B=this,Y=j.cm,oe=Y.getInputField().ownerDocument,te=oe.defaultView||oe.parentWindow,le=this.hints=oe.createElement("ul");le.setAttribute("role","listbox"),le.setAttribute("aria-expanded","true"),le.id=this.id;var xe=j.cm.options.theme;le.className="CodeMirror-hints "+xe,this.selectedHint=D.selectedHint||0;for(var Ce=D.list,pe=0;pe<Ce.length;++pe){var fe=le.appendChild(oe.createElement("li")),P=Ce[pe],C=r+(pe!=this.selectedHint?"":" "+o);P.className!=null&&(C=P.className+" "+C),fe.className=C,pe==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+pe,fe.setAttribute("role","option"),P.render?P.render(fe,D,P):fe.appendChild(oe.createTextNode(P.displayText||v(P))),fe.hintId=pe}var F=j.options.container||oe.body,$=Y.cursorCoords(j.options.alignWithWord?D.from:null),G=$.left,H=$.bottom,ee=!0,ge=0,he=0;if(F!==oe.body){var Pe=["absolute","relative","fixed"].indexOf(te.getComputedStyle(F).position)!==-1,Se=Pe?F:F.offsetParent,We=Se.getBoundingClientRect(),qe=oe.body.getBoundingClientRect();ge=We.left-qe.left-Se.scrollLeft,he=We.top-qe.top-Se.scrollTop}le.style.left=G-ge+"px",le.style.top=H-he+"px";var Re=te.innerWidth||Math.max(oe.body.offsetWidth,oe.documentElement.offsetWidth),me=te.innerHeight||Math.max(oe.body.offsetHeight,oe.documentElement.offsetHeight);F.appendChild(le),Y.getInputField().setAttribute("aria-autocomplete","list"),Y.getInputField().setAttribute("aria-owns",this.id),Y.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ye=j.options.moveOnOverlap?le.getBoundingClientRect():new DOMRect,je=j.options.paddingForScrollbar?le.scrollHeight>le.clientHeight+1:!1,Fe;setTimeout(function(){Fe=Y.getScrollInfo()});var Ie=ye.bottom-me;if(Ie>0){var Le=ye.bottom-ye.top,ut=$.top-($.bottom-ye.top);if(ut-Le>0)le.style.top=(H=$.top-Le-he)+"px",ee=!1;else if(Le>me){le.style.height=me-5+"px",le.style.top=(H=$.bottom-ye.top-he)+"px";var T=Y.getCursor();D.from.ch!=T.ch&&($=Y.cursorCoords(T),le.style.left=(G=$.left-ge)+"px",ye=le.getBoundingClientRect())}}var R=ye.right-Re;if(je&&(R+=Y.display.nativeBarWidth),R>0&&(ye.right-ye.left>Re&&(le.style.width=Re-5+"px",R-=ye.right-ye.left-Re),le.style.left=(G=$.left-R-ge)+"px"),je)for(var A=le.firstChild;A;A=A.nextSibling)A.style.paddingRight=Y.display.nativeBarWidth+"px";if(Y.addKeyMap(this.keyMap=k(j,{moveFocus:function(ce,Oe){B.changeActive(B.selectedHint+ce,Oe)},setFocus:function(ce){B.changeActive(ce)},menuSize:function(){return B.screenAmount()},length:Ce.length,close:function(){j.close()},pick:function(){B.pick()},data:D})),j.options.closeOnUnfocus){var X;Y.on("blur",this.onBlur=function(){X=setTimeout(function(){j.close()},100)}),Y.on("focus",this.onFocus=function(){clearTimeout(X)})}Y.on("scroll",this.onScroll=function(){var ce=Y.getScrollInfo(),Oe=Y.getWrapperElement().getBoundingClientRect();Fe||(Fe=Y.getScrollInfo());var Qe=H+Fe.top-ce.top,Ne=Qe-(te.pageYOffset||(oe.documentElement||oe.body).scrollTop);if(ee||(Ne+=le.offsetHeight),Ne<=Oe.top||Ne>=Oe.bottom)return j.close();le.style.top=Qe+"px",le.style.left=G+Fe.left-ce.left+"px"}),t.on(le,"dblclick",function(ce){var Oe=w(le,ce.target||ce.srcElement);Oe&&Oe.hintId!=null&&(B.changeActive(Oe.hintId),B.pick())}),t.on(le,"click",function(ce){var Oe=w(le,ce.target||ce.srcElement);Oe&&Oe.hintId!=null&&(B.changeActive(Oe.hintId),j.options.completeOnSingleClick&&B.pick())}),t.on(le,"mousedown",function(){setTimeout(function(){Y.focus()},20)});var de=this.getSelectedHintRange();return(de.from!==0||de.to!==0)&&this.scrollToActive(),t.signal(D,"select",Ce[this.selectedHint],le.childNodes[this.selectedHint]),!0}x.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var j=this.completion.cm.getInputField();j.removeAttribute("aria-activedescendant"),j.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var j=this;this.keyMap={Enter:function(){j.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(j,D){if(j>=this.data.list.length?j=D?this.data.list.length-1:0:j<0&&(j=D?0:this.data.list.length-1),this.selectedHint!=j){var B=this.hints.childNodes[this.selectedHint];B&&(B.className=B.className.replace(" "+o,""),B.removeAttribute("aria-selected")),B=this.hints.childNodes[this.selectedHint=j],B.className+=" "+o,B.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",B.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],B)}},scrollToActive:function(){var j=this.getSelectedHintRange(),D=this.hints.childNodes[j.from],B=this.hints.childNodes[j.to],Y=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-Y.offsetTop:B.offsetTop+B.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=B.offsetTop+B.offsetHeight-this.hints.clientHeight+Y.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var j=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-j),to:Math.min(this.data.list.length-1,this.selectedHint+j)}}};function M(j,D){if(!j.somethingSelected())return D;for(var B=[],Y=0;Y<D.length;Y++)D[Y].supportsSelection&&B.push(D[Y]);return B}function z(j,D,B,Y){if(j.async)j(D,Y,B);else{var oe=j(D,B);oe&&oe.then?oe.then(Y):Y(oe)}}function ie(j,D){var B=j.getHelpers(D,"hint"),Y;if(B.length){var oe=function(te,le,xe){var Ce=M(te,B);function pe(fe){if(fe==Ce.length)return le(null);z(Ce[fe],te,xe,function(P){P&&P.list.length>0?le(P):pe(fe+1)})}pe(0)};return oe.async=!0,oe.supportsSelection=!0,oe}else return(Y=j.getHelper(j.getCursor(),"hintWords"))?function(te){return t.hint.fromList(te,{words:Y})}:t.hint.anyword?function(te,le){return t.hint.anyword(te,le)}:function(){}}t.registerHelper("hint","auto",{resolve:ie}),t.registerHelper("hint","fromList",function(j,D){var B=j.getCursor(),Y=j.getTokenAt(B),oe,te=t.Pos(B.line,Y.start),le=B;Y.start<B.ch&&/\w/.test(Y.string.charAt(B.ch-Y.start-1))?oe=Y.string.substr(0,B.ch-Y.start):(oe="",te=B);for(var xe=[],Ce=0;Ce<D.words.length;Ce++){var pe=D.words[Ce];pe.slice(0,oe.length)==oe&&xe.push(pe)}if(xe.length)return{list:xe,from:te,to:le}}),t.commands.autocomplete=t.showHint;var q={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)})}();var dL={exports:{}};(function(e,n){(function(t){t(Hn.exports)})(function(t){var r=t.Pos;function o(f,p,_){return _?f.indexOf(p)>=0:f.lastIndexOf(p,0)==0}function u(f,p){var _=p&&p.schemaInfo,v=p&&p.quoteChar||'"',k=p&&p.matchInMiddle;if(!_)return;var w=f.getCursor(),x=f.getTokenAt(w);x.end>w.ch&&(x.end=w.ch,x.string=x.string.slice(0,w.ch-x.start));var M=t.innerMode(f.getMode(),x.state);if(!M.mode.xmlCurrentTag)return;var z=[],ie=!1,q,j=/\btag\b/.test(x.type)&&!/>$/.test(x.string),D=j&&/^\w/.test(x.string),B;if(D){var Y=f.getLine(w.line).slice(Math.max(0,x.start-2),x.start),oe=/<\/$/.test(Y)?"close":/<$/.test(Y)?"open":null;oe&&(B=x.start-(oe=="close"?2:1))}else j&&x.string=="<"?oe="open":j&&x.string=="</"&&(oe="close");var te=M.mode.xmlCurrentTag(M.state);if(!j&&!te||oe){D&&(q=x.string),ie=oe;var le=M.mode.xmlCurrentContext?M.mode.xmlCurrentContext(M.state):[],M=le.length&&le[le.length-1],xe=M&&_[M],Ce=M?xe&&xe.children:_["!top"];if(Ce&&oe!="close")for(var pe=0;pe<Ce.length;++pe)(!q||o(Ce[pe],q,k))&&z.push("<"+Ce[pe]);else if(oe!="close")for(var fe in _)_.hasOwnProperty(fe)&&fe!="!top"&&fe!="!attrs"&&(!q||o(fe,q,k))&&z.push("<"+fe);M&&(!q||oe=="close"&&o(M,q,k))&&z.push("</"+M+">")}else{var xe=te&&_[te.name],P=xe&&xe.attrs,C=_["!attrs"];if(!P&&!C)return;if(!P)P=C;else if(C){var F={};for(var $ in C)C.hasOwnProperty($)&&(F[$]=C[$]);for(var $ in P)P.hasOwnProperty($)&&(F[$]=P[$]);P=F}if(x.type=="string"||x.string=="="){var Y=f.getRange(r(w.line,Math.max(0,w.ch-60)),r(w.line,x.type=="string"?x.start:x.end)),G=Y.match(/([^\s\u00a0=<>\"\']+)=$/),H;if(!G||!P.hasOwnProperty(G[1])||!(H=P[G[1]]))return;if(typeof H=="function"&&(H=H.call(this,f)),x.type=="string"){q=x.string;var ee=0;/['"]/.test(x.string.charAt(0))&&(v=x.string.charAt(0),q=x.string.slice(1),ee++);var ge=x.string.length;if(/['"]/.test(x.string.charAt(ge-1))&&(v=x.string.charAt(ge-1),q=x.string.substr(ee,ge-2)),ee){var he=f.getLine(w.line);he.length>x.end&&he.charAt(x.end)==v&&x.end++}ie=!0}var Pe=function(me){if(me)for(var ye=0;ye<me.length;++ye)(!q||o(me[ye],q,k))&&z.push(v+me[ye]+v);return We()};return H&&H.then?H.then(Pe):Pe(H)}else{x.type=="attribute"&&(q=x.string,ie=!0);for(var Se in P)P.hasOwnProperty(Se)&&(!q||o(Se,q,k))&&z.push(Se)}}function We(){return{list:z,from:ie?r(w.line,B??x.start):w,to:ie?r(w.line,x.end):w}}return We()}t.registerHelper("hint","xml",u)})})(),function(e,n){(function(t){t(Hn.exports,dL.exports)})(function(t){var r="ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" "),o=["_blank","_self","_top","_parent"],u=["ascii","utf-8","utf-16","latin1","latin1"],f=["get","post","put","delete"],p=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],_=["all","screen","print","embossed","braille","handheld","print","projection","screen","tty","tv","speech","3d-glasses","resolution [>][<][=] [X]","device-aspect-ratio: X/Y","orientation:portrait","orientation:landscape","device-height: [X]","device-width: [X]"],v={attrs:{}},k={a:{attrs:{href:null,ping:null,type:null,media:_,target:o,hreflang:r}},abbr:v,acronym:v,address:v,applet:v,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:_,hreflang:r,type:null,shape:["default","rect","circle","poly"]}},article:v,aside:v,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["","autoplay"],loop:["","loop"],controls:["","controls"]}},b:v,base:{attrs:{href:null,target:o}},basefont:v,bdi:v,bdo:v,big:v,blockquote:{attrs:{cite:null}},body:v,br:v,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["","autofocus"],disabled:["","autofocus"],formenctype:p,formmethod:f,formnovalidate:["","novalidate"],formtarget:o,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:v,center:v,cite:v,code:v,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["","disabled"],checked:["","checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["","disabled"],multiple:["","multiple"]}},datalist:{attrs:{data:null}},dd:v,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["","open"]}},dfn:v,dir:v,div:v,dialog:{attrs:{open:null}},dl:v,dt:v,em:v,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["","disabled"],form:null,name:null}},figcaption:v,figure:v,font:v,footer:v,form:{attrs:{action:null,name:null,"accept-charset":u,autocomplete:["on","off"],enctype:p,method:f,novalidate:["","novalidate"],target:o}},frame:v,frameset:v,h1:v,h2:v,h3:v,h4:v,h5:v,h6:v,head:{attrs:{},children:["title","base","link","style","meta","script","noscript","command"]},header:v,hgroup:v,hr:v,html:{attrs:{manifest:null},children:["head","body"]},i:v,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["","seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["","autofocus"],checked:["","checked"],disabled:["","disabled"],formenctype:p,formmethod:f,formnovalidate:["","novalidate"],formtarget:o,multiple:["","multiple"],readonly:["","readonly"],required:["","required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:v,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["","autofocus"],disabled:["","disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:v,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:r,media:_,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:v,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:u,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:v,noframes:v,noscript:v,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["","typemustmatch"]}},ol:{attrs:{reversed:["","reversed"],start:null,type:["1","a","A","i","I"]}},optgroup:{attrs:{disabled:["","disabled"],label:null}},option:{attrs:{disabled:["","disabled"],label:null,selected:["","selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:v,param:{attrs:{name:null,value:null}},pre:v,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:v,rt:v,ruby:v,s:v,samp:v,script:{attrs:{type:["text/javascript"],src:null,async:["","async"],defer:["","defer"],charset:u}},section:v,select:{attrs:{form:null,name:null,size:null,autofocus:["","autofocus"],disabled:["","disabled"],multiple:["","multiple"]}},small:v,source:{attrs:{src:null,type:null,media:null}},span:v,strike:v,strong:v,style:{attrs:{type:["text/css"],media:_,scoped:null}},sub:v,summary:v,sup:v,table:v,tbody:v,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["","autofocus"],disabled:["","disabled"],readonly:["","readonly"],required:["","required"],wrap:["soft","hard"]}},tfoot:v,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:v,time:{attrs:{datetime:null}},title:v,tr:v,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:r}},tt:v,u:v,ul:v,var:v,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["","autoplay"],mediagroup:["movie"],muted:["","muted"],controls:["","controls"]}},wbr:v},w={accesskey:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"],class:null,contenteditable:["true","false"],contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["en","es"],spellcheck:["true","false"],autocorrect:["true","false"],autocapitalize:["true","false"],style:null,tabindex:["1","2","3","4","5","6","7","8","9"],title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"]};function x(ie){for(var q in w)w.hasOwnProperty(q)&&(ie.attrs[q]=w[q])}x(v);for(var M in k)k.hasOwnProperty(M)&&k[M]!=v&&x(k[M]);t.htmlSchema=k;function z(ie,q){var j={schemaInfo:k};if(q)for(var D in q)j[D]=q[D];return t.hint.xml(ie,j)}t.registerHelper("hint","html",z)})}(),function(e,n){(function(t){t(Hn.exports,lg.exports)})(function(t){var r={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};t.registerHelper("hint","css",function(o){var u=o.getCursor(),f=o.getTokenAt(u),p=t.innerMode(o.getMode(),f.state);if(p.mode.name!="css")return;if(f.type=="keyword"&&"!important".indexOf(f.string)==0)return{list:["!important"],from:t.Pos(u.line,f.start),to:t.Pos(u.line,f.end)};var _=f.start,v=u.ch,k=f.string.slice(0,v-_);/[^\w$_-]/.test(k)&&(k="",_=v=u.ch);var w=t.resolveMode("text/css"),x=[];function M(ie){for(var q in ie)(!k||q.lastIndexOf(k,0)==0)&&x.push(q)}var z=p.state.state;if(z=="pseudo"||f.type=="variable-3"?M(r):z=="block"||z=="maybeprop"?M(w.propertyKeywords):z=="prop"||z=="parens"||z=="at"||z=="params"?(M(w.valueKeywords),M(w.colorKeywords)):(z=="media"||z=="media_parens")&&(M(w.mediaTypes),M(w.mediaFeatures)),x.length)return{list:x,from:t.Pos(u.line,_),to:t.Pos(u.line,v)}})})}(),function(e,n){(function(t){t(Hn.exports)})(function(t){t.defineOption("placeholder","",function(v,k,w){var x=w&&w!=t.Init;if(k&&!x)v.on("blur",f),v.on("change",p),v.on("swapDoc",p),t.on(v.getInputField(),"compositionupdate",v.state.placeholderCompose=function(){u(v)}),p(v);else if(!k&&x){v.off("blur",f),v.off("change",p),v.off("swapDoc",p),t.off(v.getInputField(),"compositionupdate",v.state.placeholderCompose),r(v);var M=v.getWrapperElement();M.className=M.className.replace(" CodeMirror-empty","")}k&&!v.hasFocus()&&f(v)});function r(v){v.state.placeholder&&(v.state.placeholder.parentNode.removeChild(v.state.placeholder),v.state.placeholder=null)}function o(v){r(v);var k=v.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=v.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var w=v.getOption("placeholder");typeof w=="string"&&(w=document.createTextNode(w)),k.appendChild(w),v.display.lineSpace.insertBefore(k,v.display.lineSpace.firstChild)}function u(v){setTimeout(function(){var k=!1;if(v.lineCount()==1){var w=v.getInputField();k=w.nodeName=="TEXTAREA"?!v.getLine(0).length:!/[^\u200b]/.test(w.querySelector(".CodeMirror-line").textContent)}k?o(v):r(v)},20)}function f(v){_(v)&&o(v)}function p(v){var k=v.getWrapperElement(),w=_(v);k.className=k.className.replace(" CodeMirror-empty","")+(w?" CodeMirror-empty":""),w?o(v):r(v)}function _(v){return v.lineCount()===1&&v.getLine(0)===""}})}();var pL={props:{mode:{type:String,default:"text/html"},value:{type:String,default:""},attrs:{type:Object,default:()=>({})}},watch:{value(e){this.setValue(e)}},mounted(){this.editor=Wr(this.$el,{autoCloseBrackets:!0,autoCloseTags:!0,autofocus:!1,dragDrop:!1,indentUnit:4,indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,matchBrackets:!0,matchTags:!0,mode:this.mode,tabSize:4,viewportMargin:2,placeholder:this.attrs.placeholder}),this.setValue(this.value),this.attrs.height&&this.$nextTick(()=>{this.editor.setSize(null,this.attrs.height)}),this.editor.on(this.attrs.lazy?"blur":"change",()=>{const e=this.editor.getValue();e!==this.value&&this.$emit("input",e)}),this.editor.on("inputRead",e=>{const n=e.getCursor(),t=e.getTokenAt(n),r=Wr.innerMode(e.getMode(),t.state).mode.name;!Ct(["xml","css","less"],r)||!t.string.trim()||(r==="xml"&&(br(t.string,"<")||t.type==="attribute")?Wr.showHint(e,Wr.hint.html,{completeSingle:!1}):(t.type&&r==="css"||r==="less")&&Wr.showHint(e,()=>{let o=Wr.hint.css(e);if(!o&&t.string.match(/\.el-/)){const u=["column","element","section","title","meta","content","item","link","image"].map(f=>`.el-${f}`).filter(f=>br(f,t.string));u.length&&(o={from:Wr.Pos(n.line,t.start),to:Wr.Pos(n.line,t.end),list:u})}return o},{completeSingle:!1}))})},methods:{setValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e||""),this.editor.refresh()},refresh(){this.editor.refresh()}}};const hL=pL;var _L=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div")},vL=[],mL=Z({render:_L,staticRenderFns:vL},function(e){!e||e("data-v-ae303b20_0",{source:'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-hints{z-index:100000000000000}',map:void 0,media:void 0})},hL,void 0,!1,void 0,!1,ka,void 0,void 0),ug=[{name:"System Fonts",fonts:[{name:"Default System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},{name:"Consolas/Monaco",value:"Consolas, monaco, monospace"},{name:"Georgia",value:'Georgia, "Times New Roman", Times, serif'},{name:"Helvetica/Arial",value:'"Helvetica Neue", Helvetica, Arial, sans-serif'},{name:"Lucida",value:'"Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif'},{name:"Times New Roman",value:'"Times New Roman", Times, serif'},{name:"Trebuchet",value:'"Trebuchet MS", Verdana, sans-serif'},{name:"Verdana",value:"Verdana, Geneva, sans-serif"},{name:"Inherit",value:"inherit"}]},{name:"Google Fonts",fonts:["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akaya Kanadaka","Akaya Telivigala","Akronim","Aladin","Alata","Alatsi","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allison","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Alumni Sans","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada Pro","Andika","Andika New Basic","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Antonio","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Are You Serious","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atkinson Hyperlegible","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Azeret Mono","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Bakbak One","Ballet","Baloo 2","Baloo Bhai 2","Baloo Bhaijaan 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Battambang","Baumans","Bayon","Be Vietnam Pro","Bebas Neue","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Benne","Bentham","Berkshire Swash","Besley","Beth Ellen","Bevan","Big Shoulders Display","Big Shoulders Inline Display","Big Shoulders Inline Text","Big Shoulders Stencil Display","Big Shoulders Stencil Text","Big Shoulders Text","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Birthstone","Birthstone Bounce","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bodoni Moda","Bokor","Bona Nova","Bonbon","Bonheur Royale","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Brygada 1918","Bubblegum Sans","Bubbler One","Buda","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Caramel","Carattere","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Castoro","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherish","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Comforter","Comforter Brush","Comic Neue","Coming Soon","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Corinthia","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Damion","Dancing Script","Dangrek","Darker Grotesque","David Libre","Dawning of a New Day","Days One","Dekko","Dela Gothic One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Dongle","Doppio One","Dorsa","Dosis","DotGothic16","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans SC","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Ephesis","Epilogue","Erica One","Esteban","Estonia","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Explora","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Festive","Finger Paint","Fira Code","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fleur De Leah","Flow Block","Flow Circular","Flow Rounded","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Fraunces","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","Fuggles","Fuzzy Bubbles","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gayathri","Gelasio","Gemunu Libre","Genos","Gentium Basic","Gentium Book Basic","Geo","Georama","Geostar","Geostar Fill","Germania One","Gideon Roman","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Glory","Gluten","Goblin One","Gochi Hand","Goldman","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Gowun Batang","Gowun Dodum","Graduate","Grand Hotel","Grandstander","Gravitas One","Great Vibes","Grechen Fuemen","Grenze","Grenze Gotisch","Grey Qo","Griffy","Gruppo","Gudea","Gugi","Gupter","Gurajada","Gwendolyn","Habibi","Hachi Maru Pop","Hahmlet","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hina Mincho","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","Hurricane","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Arabic","IBM Plex Sans Condensed","IBM Plex Sans Devanagari","IBM Plex Sans Hebrew","IBM Plex Sans KR","IBM Plex Sans Thai","IBM Plex Sans Thai Looped","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Ibarra Real Nova","Iceberg","Iceland","Imbue","Imperial Script","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inspiration","Inter","Irish Grover","Island Moments","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","JetBrains Mono","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kadwa","Kaisei Decol","Kaisei HarunoUmi","Kaisei Opti","Kaisei Tokumin","Kalam","Kameron","Kanit","Kantumruy","Karantina","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kings","Kirang Haerang","Kite One","Kiwi Maru","Klee One","Knewave","KoHo","Kodchasan","Koh Santepheap","Kolker Brush","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Licorice","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Light","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Luxurious Roman","Luxurious Script","M PLUS 1","M PLUS 1 Code","M PLUS 1p","M PLUS 2","M PLUS Code Latin","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manjari","Manrope","Mansalva","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Mea Culpa","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Meow Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Mochiy Pop One","Mochiy Pop P One","Modak","Modern Antiqua","Mogra","Mohave","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montagu Slab","MonteCarlo","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moo Lah Lah","Moon Dance","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mulish","Murecho","MuseoModerno","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Neonderthaw","Nerko One","Neucha","Neuton","New Rocker","New Tegomin","News Cycle","Newsreader","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Kufi Arabic","Noto Music","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Rashi Hebrew","Noto Sans","Noto Sans Adlam","Noto Sans Adlam Unjoined","Noto Sans Anatolian Hieroglyphs","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Balinese","Noto Sans Bamum","Noto Sans Bassa Vah","Noto Sans Batak","Noto Sans Bengali","Noto Sans Bhaiksuki","Noto Sans Brahmi","Noto Sans Buginese","Noto Sans Buhid","Noto Sans Canadian Aboriginal","Noto Sans Carian","Noto Sans Caucasian Albanian","Noto Sans Chakma","Noto Sans Cham","Noto Sans Cherokee","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Deseret","Noto Sans Devanagari","Noto Sans Display","Noto Sans Duployan","Noto Sans Egyptian Hieroglyphs","Noto Sans Elbasan","Noto Sans Elymaic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Grantha","Noto Sans Gujarati","Noto Sans Gunjala Gondi","Noto Sans Gurmukhi","Noto Sans HK","Noto Sans Hanifi Rohingya","Noto Sans Hanunoo","Noto Sans Hatran","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Indic Siyaq Numbers","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans Javanese","Noto Sans KR","Noto Sans Kaithi","Noto Sans Kannada","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Khmer","Noto Sans Khojki","Noto Sans Khudawadi","Noto Sans Lao","Noto Sans Lepcha","Noto Sans Limbu","Noto Sans Linear A","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Mahajani","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Manichaean","Noto Sans Marchen","Noto Sans Masaram Gondi","Noto Sans Math","Noto Sans Mayan Numerals","Noto Sans Medefaidrin","Noto Sans Meetei Mayek","Noto Sans Meroitic","Noto Sans Miao","Noto Sans Modi","Noto Sans Mongolian","Noto Sans Mono","Noto Sans Mro","Noto Sans Multani","Noto Sans Myanmar","Noto Sans N Ko","Noto Sans Nabataean","Noto Sans New Tai Lue","Noto Sans Newa","Noto Sans Nushu","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Hungarian","Noto Sans Old Italic","Noto Sans Old North Arabian","Noto Sans Old Permic","Noto Sans Old Persian","Noto Sans Old Sogdian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Oriya","Noto Sans Osage","Noto Sans Osmanya","Noto Sans Pahawh Hmong","Noto Sans Palmyrene","Noto Sans Pau Cin Hau","Noto Sans Phags Pa","Noto Sans Phoenician","Noto Sans Psalter Pahlavi","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Sharada","Noto Sans Shavian","Noto Sans Siddham","Noto Sans Sinhala","Noto Sans Sogdian","Noto Sans Sora Sompeng","Noto Sans Soyombo","Noto Sans Sundanese","Noto Sans Syloti Nagri","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Syriac","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Tham","Noto Sans Tai Viet","Noto Sans Takri","Noto Sans Tamil","Noto Sans Tamil Supplement","Noto Sans Telugu","Noto Sans Thaana","Noto Sans Thai","Noto Sans Thai Looped","Noto Sans Tifinagh","Noto Sans Tirhuta","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Wancho","Noto Sans Warang Citi","Noto Sans Yi","Noto Sans Zanabazar Square","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif Balinese","Noto Serif Bengali","Noto Serif Devanagari","Noto Serif Display","Noto Serif Dogra","Noto Serif Ethiopic","Noto Serif Georgian","Noto Serif Grantha","Noto Serif Gujarati","Noto Serif Gurmukhi","Noto Serif Hebrew","Noto Serif JP","Noto Serif KR","Noto Serif Kannada","Noto Serif Khmer","Noto Serif Lao","Noto Serif Malayalam","Noto Serif Myanmar","Noto Serif Nyiakeng Puachue Hmong","Noto Serif SC","Noto Serif Sinhala","Noto Serif TC","Noto Serif Tamil","Noto Serif Tangut","Noto Serif Telugu","Noto Serif Thai","Noto Serif Tibetan","Noto Serif Yezidi","Noto Traditional Nushu","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odibee Sans","Odor Mean Chey","Offside","Oi","Old Standard TT","Oldenburg","Ole","Oleo Script","Oleo Script Swash Caps","Oooh Baby","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orelega One","Orienta","Original Surfer","Oswald","Otomanopee One","Outfit","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxanium","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Palette Mosaic","Pangolin","Paprika","Parisienne","Passero One","Passion One","Passions Conflict","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petemoss","Petit Formal Script","Petrona","Philosopher","Piazzolla","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Potta One","Pragati Narrow","Praise","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Public Sans","Puppies Play","Puritan","Purple Purse","Qahiri","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Qwitcher Grypen","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Rampart One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Readex Pro","Recursive","Red Hat Display","Red Hat Mono","Red Hat Text","Red Rose","Redacted","Redacted Script","Redressed","Reem Kufi","Reenie Beanie","Reggae One","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Road Rage","Roboto","Roboto Condensed","Roboto Mono","Roboto Serif","Roboto Slab","Rochester","Rock 3D","Rock Salt","RocknRoll One","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rowdies","Rozha One","Rubik","Rubik Beastly","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","STIX Two Text","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Sassy Frass","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade New","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sen","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shalimar","Shanti","Share","Share Tech","Share Tech Mono","Shippori Antique","Shippori Antique B1","Shippori Mincho","Shippori Mincho B1","Shizuru","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smooch","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Solway","Song Myung","Sonsie One","Sora","Sorts Mill Goudy","Source Code Pro","Source Sans 3","Source Sans Pro","Source Serif 4","Source Serif Pro","Space Grotesk","Space Mono","Spartan","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Spline Sans","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stick","Stick No Bills","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Style Script","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","The Nautigal","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Tomorrow","Tourney","Trade Winds","Train One","Trirong","Trispace","Trocchi","Trochut","Truculenta","Trykker","Tulpen One","Turret Road","Twinkle Star","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Uchen","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Urbanist","VT323","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vesper Libre","Viaoda Libre","Vibes","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Vujahday Script","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Waterfall","Wellfleet","Wendy One","WindSong","Wire One","Work Sans","Xanh Mono","Yaldevi","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yomogi","Yrsa","Yuji Boku","Yuji Hentaigana Akari","Yuji Hentaigana Akebono","Yuji Mai","Yuji Syuku","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zen Antique","Zen Antique Soft","Zen Dots","Zen Kaku Gothic Antique","Zen Kaku Gothic New","Zen Kurenaido","Zen Loop","Zen Maru Gothic","Zen Old Mincho","Zen Tokyo Zoo","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"]}];let qf=[];var cg={name:"FontsModel",data:()=>({value:null,fonts:gL(cn([],ug))}),computed:{all(){return this.fonts.reduce((e,n)=>(n.fonts.forEach(t=>e.push(t)),e),[])},chunks(){const e=20,n=[],t=$t(this.fonts,{name:"Google Fonts"}).fonts;for(let r=0,o=t.length;r<o;r+=e)n.push(vt(t.slice(r,r+e),"name"));return n}},methods:{search(e){return e=new RegExp(e,"i"),this.fonts.map(n=>({name:n.name,fonts:n.fonts.filter(t=>e.test(t.name))})).filter(n=>n.fonts.length)},load(e){if(e=e.replace(/'/g,""),!Ct(qf,e)){const n=$t(this.chunks,t=>Ct(t,e));if(!n)return;this.$asset({css:`https://fonts.googleapis.com/css?family=${n.map(encodeURIComponent).join("|")}`}),qf=qf.concat(n)}},getFontName(e){let n;return Jo(this.fonts,t=>n=$t(t.fonts,{value:e})),n&&n.name||e}}};function gL(e){return Tn(e||[],n=>{n.fonts=vt(n.fonts,t=>On(t)?{name:t,value:`'${t}'`}:t)}),e}var yL={models:{Fonts:cg},props:{value:String},data:()=>({search:"",active:!1}),computed:{groups(){return this.Fonts.search(this.search)}},watch:{search(){this.check(),this.active=!1}},methods:{next(e){e===void 0&&(e=1);const n=this.getFontListItems();if(!n.length)return;const t=V.$(".uk-active",this.$refs.fonts),r=t?V.index(n,t)+e:e===1?0:-1;if(r>n.length-1)return;if(r<0){this.active=!1;return}const o=n[r];this.active=o.dataset.name,bL(o,this.$refs.overflow)},check(){const{top:e,bottom:n,left:t,right:r,height:o}=this.$refs.overflow.getBoundingClientRect(),u={top:e-o,bottom:n+o,left:t,right:r};this.getFontListItems().forEach((f,p)=>V.intersectRect(f.getBoundingClientRect(),u)&&this.Fonts.load(this.Fonts.all[p].value))},select(e){this.$emit("input",e),this.$emit("resolve",e)},getFontListItems(){return V.$$("li",this.$refs.fonts).filter(e=>V.$("a",e))}}};function bL(e,n){const t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),o=t.top<r.top?"top":t.bottom>r.bottom?"bottom":!1;o&&(n.scrollTop+=t[o]-r[o])}const $L=yL;var kL=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-dropdown-header"},[t("div",{staticClass:"uk-search uk-search-default uk-width-1-1"},[t("span",{staticClass:"uk-search-icon-flip",attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"search",staticClass:"uk-search-input",attrs:{placeholder:e.$t("Search"),type:"search",autofocus:""},domProps:{value:e.search},on:{keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.select(e.active||e.search)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.preventDefault(),e.next())},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),e.next(-1))}],input:function(r){r.target.composing||(e.search=r.target.value)}}})])]),e._v(" "),t("div",{ref:"overflow",staticClass:"yo-dropdown-body uk-overflow-auto uk-height-max-large",on:{"&scroll":function(r){return e.check.apply(null,arguments)}}},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.groups.length,expression:"groups.length"}],ref:"fonts",staticClass:"uk-nav uk-dropdown-nav"},[e._l(e.groups,function(r,o){return[o>0?t("li",{key:r.name+"-divider",staticClass:"uk-nav-divider"}):e._e(),e._v(" "),t("li",{key:r.name,staticClass:"uk-nav-header"},[e._v(e._s(e.$t(r.name)))]),e._v(" "),e._l(r.fonts,function(u){var f=u.name,p=u.value;return t("li",{key:f,class:{"uk-active":e.active===f},attrs:{"data-name":f},on:{mouseenter:function(_){e.active=f}}},[t("a",{staticClass:"uk-text-truncate",style:{fontFamily:p},attrs:{href:""},on:{click:function(_){return _.preventDefault(),e.select(p)}}},[e._v(e._s(f))])])})]})],2),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.groups.length,expression:"!groups.length"}]},[e._v(e._s(e.$t("No font found. Press enter if you are adding a custom font.")))])])])},wL=[],xL=Z({render:kL,staticRenderFns:wL},void 0,$L,void 0,!1,void 0,!1,void 0,void 0,void 0),CL={"App Icons":["home","sign-in","sign-out","user","users","lock","unlock","settings","cog","nut","comment","commenting","comments","hashtag","tag","cart","bag","credit-card","mail","receiver","print","search","location","bookmark","code","paint-bucket","camera","video-camera","bell","microphone","bolt","star","heart","happy","lifesaver","rss","social","git-branch","git-fork","world","calendar","clock","history","future","pencil","trash","move","link","question","info","warning","image","list","thumbnails","table","menu","grid","more","more-vertical","plus","plus-circle","minus","minus-circle","close","check","ban","refresh","play","play-circle"],"Device Icons":["tv","desktop","laptop","tablet","phone","tablet-landscape","phone-landscape"],"Storage Icons":["file","file-text","file-pdf","copy","file-edit","folder","album","push","pull","server","database","cloud-upload","cloud-download","download","upload"],"Direction Icons":["reply","forward","expand","shrink","arrow-up","arrow-down","arrow-left","arrow-right","chevron-up","chevron-down","chevron-left","chevron-right","chevron-double-left","chevron-double-right","triangle-up","triangle-down","triangle-left","triangle-right"],"Editor Icons":["bold","italic","strikethrough","quote-right"],"Brand Icons":["500px","behance","discord","dribbble","etsy","facebook","flickr","foursquare","github","github-alt","gitter","google","instagram","joomla","linkedin","pagekit","pinterest","reddit","soundcloud","tiktok","tripadvisor","tumblr","twitch","twitter","uikit","vimeo","whatsapp","wordpress","xing","yelp","youtube"]},SL={props:{icons:{type:[Object,Array],default:()=>CL}},data:()=>({search:""}),computed:{iconList(){return ya(this.icons,(e,n)=>e.concat(n),[]).filter(e=>!this.search||Ct(e,this.search))}}};const AL=SL;var TL=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Icon |||| %smart_count% Icons",e.iconList.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])])]),e._v(" "),e.iconList.length?t("div",{staticClass:"yo-finder-body",attrs:{"uk-overflow-auto":""}},[t("div",{staticClass:"uk-grid-collapse uk-child-width-auto",attrs:{"uk-grid":""}},e._l(e.iconList,function(r){return t("div",{key:r},[t("div",{staticClass:`
uk-card uk-card-body uk-card-small uk-card-hover
yo-panel
uk-text-center
`},[t("span",{attrs:{icon:r,"uk-icon":"",ratio:"2"}}),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{title:r,href:"","uk-tooltip":"delay: 500"},on:{click:function(o){return o.preventDefault(),e.$emit("select",r)}}})])])}),0)]):t("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No icons found.")))])])},OL=[],EL=Z({render:TL,staticRenderFns:OL},void 0,AL,void 0,!1,void 0,!1,void 0,void 0,void 0),fg={exports:{}},jl=1;function FL(){return jl=(jl*9301+49297)%233280,jl/233280}function ML(e){jl=e}var PL={nextValue:FL,seed:ML},Jf=PL,Ai="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Gr,dg,Xo;function Xf(){Xo=!1}function pg(e){if(!e){Gr!==Ai&&(Gr=Ai,Xf());return}if(e!==Gr){if(e.length!==Ai.length)throw new Error("Custom alphabet for shortid must be "+Ai.length+" unique characters. You submitted "+e.length+" characters: "+e);var n=e.split("").filter(function(t,r,o){return r!==o.lastIndexOf(t)});if(n.length)throw new Error("Custom alphabet for shortid must be "+Ai.length+" unique characters. These characters were not unique: "+n.join(", "));Gr=e,Xf()}}function LL(e){return pg(e),Gr}function NL(e){Jf.seed(e),dg!==e&&(Xf(),dg=e)}function RL(){Gr||pg(Ai);for(var e=Gr.split(""),n=[],t=Jf.nextValue(),r;e.length>0;)t=Jf.nextValue(),r=Math.floor(t*e.length),n.push(e.splice(r,1)[0]);return n.join("")}function hg(){return Xo||(Xo=RL(),Xo)}function IL(e){var n=hg();return n[e]}function DL(){return Gr||Ai}var Zf={get:DL,characters:LL,seed:NL,lookup:IL,shuffled:hg},Qf=typeof window=="object"&&(window.crypto||window.msCrypto),Vf;!Qf||!Qf.getRandomValues?Vf=function(e){for(var n=[],t=0;t<e;t++)n.push(Math.floor(Math.random()*256));return n}:Vf=function(e){return Qf.getRandomValues(new Uint8Array(e))};var jL=Vf,BL=function(e,n,t){for(var r=(2<<Math.log(n.length-1)/Math.LN2)-1,o=-~(1.6*r*t/n.length),u="";;)for(var f=e(o),p=o;p--;)if(u+=n[f[p]&r]||"",u.length===+t)return u},HL=Zf,zL=jL,WL=BL;function GL(e){for(var n=0,t,r="";!t;)r=r+WL(zL,HL.get(),1),t=e<Math.pow(16,n+1),n++;return r}var KL=GL,Bl=KL,UL=1567752802062,YL=7,Hl,_g;function qL(e){var n="",t=Math.floor((Date.now()-UL)*.001);return t===_g?Hl++:(Hl=0,_g=t),n=n+Bl(YL),n=n+Bl(e),Hl>0&&(n=n+Bl(Hl)),n=n+Bl(t),n}var JL=qL,XL=Zf;function ZL(e){if(!e||typeof e!="string"||e.length<6)return!1;var n=new RegExp("[^"+XL.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!n.test(e)}var QL=ZL;(function(e){var n=Zf,t=JL,r=QL,o=0;function u(v){return n.seed(v),e.exports}function f(v){return o=v,e.exports}function p(v){return v!==void 0&&n.characters(v),n.shuffled()}function _(){return t(o)}e.exports=_,e.exports.generate=_,e.exports.seed=u,e.exports.worker=f,e.exports.characters=p,e.exports.isValid=r})(fg);var VL=fg.exports;function zl(e){return e===void 0&&(e=8),VL().substr(0,e)}function eN(e){return e.replace(/(?:^|[-_/])(\w)/g,(n,t)=>t?t.toUpperCase():"")}function vg(e,n,t){return n===void 0&&(n={}),t===void 0&&(t=null),Tn(e,(r,o)=>{at(r)?e[o]=vg(r,n,t):On(r)&&(e[o]=tN(r,n,t))}),e}function tN(e,n,t){n===void 0&&(n={}),t===void 0&&(t=null);const r=e.match(/\$([a-zA-Z0-9_]+)|\${((\w+(?:\.\w+)*)(?::[^}]*)?)}/g)||[];return Tn(r,o=>{let u=n[o.replace(/\$|[{}]/g,"")];u===void 0&&t&&(u=t(o,e)),u!==void 0&&(e=o===e?u:e.replace(o,u))}),e}function ed(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(n,t)=>String.fromCharCode(`0x${t}`)))}let Zo;try{const e="__test__";Zo=window.sessionStorage||{},Zo[e]=1,delete Zo[e]}catch{Zo={}}const Rt=Zo;class td extends String{constructor(n,t){super(n);this._src=n,Ft(this,t),this.src=[].concat(this.source||{src:n})}toString(){return this._src}valueOf(){return this._src}toJSON(){return this._src}}function nd(e){return e&&e.match(/\.(?:gif|jpe?g|a?png|svg|ico|webp|avif)$/i)}function rd(e){return e&&e.match(/\.(mpeg|ogv|mp4|m4v|webm|wmv)$/i)}function mg(e){return e===void 0&&(e=document),e.head.appendChild(e.createElement("style")).sheet}function gg(e,n,t){if(n===void 0&&(n=[]),t===void 0&&(t=!0),e||(e=mg()),V.isDocument(e)&&(e=mg(e)),t)for(;e.cssRules.length;)e.deleteRule(0);return n.forEach((r,o)=>e.insertRule(r,o)),e}function Kr(e,n){const t=URL.createObjectURL(new Blob([new TextEncoder().encode(n).buffer],{type:"application/octet-stream"})),r=document.createElement("a");r.setAttribute("href",t),r.setAttribute("download",e),r.click(),URL.revokeObjectURL(t)}function Wl(e){return new Promise((n,t)=>{const r=new FileReader;r.onload=n,r.onerror=t,r.readAsText(e)})}function Qn(e,n,t){const r=Je(n)?n:n.split(".");for(;r.length>1;){const o=r.shift();at(e[o])||Te.set(e,o,{}),e=e[o]}Te.set(e,r.shift(),t)}var nN={name:"Switcher",props:{tabs:{type:Array,required:!0},storage:String,active:{type:Number,default(){return this.storage&&bi(Rt[this.storage])||0}}},data:()=>({shown:[]}),methods:{selectTab(e,n){this.storage&&(Rt[this.storage]=n),this.shown.splice(this.shown.length,0,n),this.$emit("show",e,n),this.$nextTick(()=>this.$el.querySelector(`.uk-switcher li:nth-child(${n+1}) [autofocus]`)?.focus())}}};const rN=nN;var iN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[t("ul",{staticClass:"uk-margin-remove-bottom",attrs:{active:e.active,"uk-tab":"connect: !* +; animation: uk-animation-fade"}},e._l(e.tabs,function(r){return t("li",{key:r},[t("a",{attrs:{href:""}},[e._v(e._s(e.$t(r)))])])}),0),e._v(" "),e._t("header-right")],2),e._v(" "),t("ul",{staticClass:"uk-switcher"},e._l(e.tabs,function(r,o){return t("li",{key:r,on:{beforeshow:function(u){return u.target!==u.currentTarget?null:e.selectTab(r,o)}}},[~e.shown.indexOf(o)?e._t(r):e._e()],2)}),0)])},aN=[],xa=Z({render:iN,staticRenderFns:aN},void 0,rN,void 0,!1,void 0,!1,void 0,void 0,void 0),oN={components:{Switcher:xa},computed:{tabs(){const e=this.$trigger("iconsModalTabs",[this.node]);return[{name:"icons",component:EL},...e||[]]}}};const sN=oN;var lN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Switcher",{attrs:{tabs:e.tabs.map(function(r){var o=r.name;return o})}},e._l(e.tabs,function(r){return t("div",{key:r.name,staticClass:"uk-modal-body",attrs:{slot:r.name},slot:r.name},[t(r.component,{tag:"component",on:{select:function(o){return e.$emit("resolve",o)}}})],1)}),0)},uN=[],cN=Z({render:lN,staticRenderFns:uN},void 0,sN,void 0,!1,void 0,!1,void 0,void 0,void 0);const fN={props:{value:String},render:e=>e("div",{class:"uk-preserve-width",style:{minHeight:"260px"}}),computed:{latlng(){const[e,n=""]=this.value.split(",");return[e,n]}},watch:{latlng(e){this.marker.setLatLng(e).update(),this.map.panTo(e)}},mounted(){const{L:e}=window;this.map=e.map(this.$el).setView(this.latlng,13),this.marker=new e.marker(this.latlng,{draggable:!0}),e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="http://osm.org/copyright">OpenStreetMap</a>'}).addTo(this.map),this.marker.on("dragend",()=>{const{lat:n,lng:t}=this.marker.getLatLng();this.$emit("input",`${n.toFixed(4)},${t.toFixed(4)}`)}),this.map.addLayer(this.marker),"IntersectionObserver"in window&&(this.observer=new IntersectionObserver(()=>this.map.invalidateSize()),this.observer.observe(this.$el))},destroyed(){this?.observer.disconnect(),this.map.off()}};var dN=()=>({component:Te.asset({js:"https://cdn.jsdelivr.net/npm/leaflet@1.7.1/dist/leaflet.js",css:"https://cdn.jsdelivr.net/npm/leaflet@1.7.1/dist/leaflet.css"}).then(()=>fN),loading:{render:e=>e("div",{attrs:{"uk-spinner":""},class:"uk-text-center uk-width-1-1"})},error:{render:e=>e("div",{class:"uk-alert uk-alert-danger"},Te.i18n.t("Failed loading map"))},timeout:3e3});const pN={props:{value:String},render(e){return e("input",{class:"uk-input",attrs:{placeholder:this.value}})},watch:{value(){this.input.setVal("")}},mounted(){this.input=window.places({container:this.$el}),this.input.on("change",e=>{let{suggestion:{latlng:{lat:n,lng:t}}}=e;this.$emit("input",`${n},${t}`),this.input.close()})},destroyed(){this.input.destroy()},methods:{input(e){this.$emit("input",e)}}},hN={props:{value:String},render(e){return e("input",{class:"uk-input",attrs:{value:this.value},on:{input:n=>this.$emit("input",n.target.value)}})}};var _N=()=>({component:Te.asset({js:"https://cdn.jsdelivr.net/npm/places.js@1.19.0"}).then(()=>pN),error:hN,timeout:3e3}),vN={components:{LocationInput:_N,MapInput:dN},props:{value:{type:String,default:"53.5503,10.0006"}},methods:{input(e){this.$emit("input",e)}}};const mN=vN;var gN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("MapInput",{attrs:{value:e.value},on:{input:e.input}}),e._v(" "),t("div",{staticClass:"uk-margin-small-top"},[t("LocationInput",{attrs:{value:e.value},on:{input:e.input}})],1)],1)},yN=[],bN=Z({render:gN,staticRenderFns:yN},void 0,mN,void 0,!1,void 0,!1,void 0,void 0,void 0),yg={props:{folders:Array,files:Array,selected:Array},methods:{isImage(e){let{url:n}=e;return nd(n)},isVideo(e){let{url:n}=e;return rd(n)},isSelected(e){return~this.selected.indexOf(e)}}};const Gl={};var ae=Gl;const bg={get(e,n){return un(Gl,e,n)},set(e,n){return Um(Gl,e,n)},add(e){return cn(Gl,e)}};var $N={extends:yg,computed:{selectedAll(){return!!this.selected.length&&this.selected.length===this.files.length+this.folders.length}},watch:{selected(){const{toggleAll:e}=this.$refs;e.checked=this.selectedAll,e.indeterminate=!this.selectedAll&&!!this.selected.length}},created(){this.$config=ae},methods:{toggle(){(this.selectedAll?[...this.selected]:this.folders.concat(this.files).filter(n=>!this.isSelected(n))).forEach(n=>this.$emit("select",n))}}};const kN=$N;var wN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("table",{staticClass:"uk-table uk-table-divider uk-table-hover uk-table-middle"},[t("thead",[t("tr",[t("th",{staticClass:"uk-table-shrink"},[t("input",{ref:"toggleAll",staticClass:"uk-checkbox",attrs:{type:"checkbox"},on:{change:e.toggle}})]),e._v(" "),t("th",{attrs:{colspan:"2"}},[e._v(e._s(e.$t("Name")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-center"},[e._v(e._s(e.$t("Size")))])])]),e._v(" "),t("tbody",[e._l(e.folders,function(r){return t("tr",{key:r.path,staticClass:"uk-visible-hover",class:{"uk-active":e.isSelected(r)},on:{click:function(o){o.target.tagName!=="BUTTON"&&e.$emit("select",r)}}},[t("td",[t("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:e.isSelected(r)}})]),e._v(" "),t("td",{staticClass:"uk-table-shrink"},[t("span",{staticClass:"uk-preserve uk-preserve-width uk-icon",attrs:{"uk-svg":e.$config.assets+"/images/finder-list-folder.svg"}})]),e._v(" "),t("td",{staticClass:"uk-table-expand uk-text-break"},[t("button",{staticClass:"uk-button uk-button-link",attrs:{type:"button"},on:{click:function(o){return e.$emit("load",r.path)}}},[e._v(`
`+e._s(r.name)+`
`)])]),e._v(" "),t("td")])}),e._v(" "),e._l(e.files,function(r){return t("tr",{key:r.path,staticClass:"uk-visible-hover",class:{"uk-active":e.isSelected(r)},on:{click:function(o){return e.$emit("select",r)}}},[t("td",[t("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:e.isSelected(r)}})]),e._v(" "),t("td",{staticClass:"uk-table-shrink uk-text-center"},[e.isImage(r)?t("span",{staticClass:"yo-finder-list-image uk-icon uk-icon-image",attrs:{"data-src":e.$url(r.url),"uk-img":""}}):t("span",{staticClass:"uk-preserve uk-preserve-width uk-icon",attrs:{"uk-svg":e.$config.assets+"/images/finder-list-file.svg"}})]),e._v(" "),t("td",{staticClass:"uk-table-expand uk-text-break"},[e._v(`
`+e._s(r.name)+`
`)]),e._v(" "),t("td",{staticClass:"uk-text-right uk-text-nowrap"},[e._v(`
`+e._s(r.size)+`
`)])])})],2)])},xN=[],CN=Z({render:wN,staticRenderFns:xN},void 0,kN,void 0,!1,void 0,!1,void 0,void 0,void 0);const SN=yg;var AN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ul",{staticClass:`
uk-grid-medium
uk-grid-match
uk-child-width-1-2@s
uk-child-width-1-3@l
uk-child-width-1-4@xl
`,attrs:{"uk-grid":""}},[e._l(e.folders,function(r){return t("li",{key:r.path},[t("div",{staticClass:"uk-card uk-card-default uk-card-small",on:{click:function(o){o.target.tagName!=="BUTTON"&&e.$emit("select",r)}}},[e._m(0,!0),e._v(" "),t("div",{staticClass:"uk-card-body uk-text-center uk-text-truncate uk-text-nowrap"},[t("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:e.isSelected(r)}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-link",attrs:{type:"button"},on:{click:function(o){return e.$emit("load",r.path)}}},[e._v(`
`+e._s(r.name)+`
`)])])])])}),e._v(" "),e._l(e.files,function(r){return t("li",{key:r.path},[t("div",{staticClass:"uk-card uk-card-default uk-card-small",on:{click:function(o){return e.$emit("select",r)}}},[t("div",{staticClass:"uk-card-media-top uk-position-relative"},[e.isImage(r)?t("div",{staticClass:"uk-background-contain uk-position-cover",attrs:{"data-src":e.$url(r.url),"uk-img":""}}):t("div",{staticClass:"uk-background-cover uk-position-cover yo-finder-thumbnail-file"}),e._v(" "),t("canvas",{attrs:{width:"800",height:"550"}})]),e._v(" "),t("div",{staticClass:"uk-card-body uk-text-center uk-text-truncate uk-text-nowrap"},[t("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:e.isSelected(r)}}),e._v(`
`+e._s(r.name)+`
`)])])])})],2)},TN=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-card-media-top uk-position-relative"},[t("div",{staticClass:"uk-background-cover uk-position-cover yo-finder-thumbnail-folder"}),e._v(" "),t("canvas",{attrs:{width:"800",height:"550"}})])}],ON=Z({render:AN,staticRenderFns:TN},void 0,SN,void 0,!1,void 0,!1,void 0,void 0,void 0),id={name:"FinderModel",data:()=>({accept:"image/*,audio/*,video/*,text/*,application/pdf",path:"",files:[]}),methods:{load(e){return e===void 0&&(e=this.path),this.loadFiles(e).then(n=>{this.path=e,this.files=n||[],this.$parent.$emit("load",n)})},loadFiles(){throw`${this.$options.name}.loadFiles() needs to be implemented`},removeFiles(){throw`${this.$options.name}.removeFiles() needs to be implemented`},renameFile(){throw`${this.$options.name}.renameFile(oldName, newName) needs to be implemented`},createFolder(){throw`${this.$options.name}.createFolder() needs to be implemented`},uploadSettings(){throw`${this.$options.name}.uploadSettings() needs to be implemented`},showMessage(){throw`${this.$options.name}.showMessage() needs to be implemented`},canCreate(){return!0},canDelete(){return!0}}};const $g="finder.path",kg="finder.view";var EN={name:"Finder",components:{List:CN,Thumbnail:ON},models:{Finder:id},data:()=>({view:Rt[kg]||"list",search:"",selected:[]}),computed:{files(){return Wt(this.searched,{type:"file"})},folders(){return Wt(this.searched,{type:"folder"})},searched(){return FN(Wt(this.Finder.files,e=>{let{name:n}=e;return!this.search||~n.toLowerCase().indexOf(this.search.toLowerCase())}))}},watch:{view(e){Rt[kg]=e},search(){this.selected=[]},selected(e){this.$emit("input",e)}},mounted(){this.Finder.load(Rt[$g]),this.Finder.canCreate()&&Pn.upload(this.$el,this.upload())},methods:{load(e){return this.selected=[],this.Finder.load(e).then(()=>{this.search="",Rt[$g]=this.Finder.path})},remove(e){this.selected=[],this.Finder.removeFiles(e)},rename(e){let{name:n}=e;Pn.modal.prompt(this.$t("Rename"),n,{stack:!0}).then(t=>{t&&(this.selected=[],this.Finder.renameFile(n,t))})},create(){Pn.modal.prompt(this.$t("Folder Name"),"",{stack:!0}).then(e=>{e&&this.Finder.createFolder(e)})},toggleSelect(e){const n=this.selected.indexOf(e);~n?this.selected.splice(n,1):this.selected.push(e)},upload(e){let{progress:n}=e===void 0?this.$refs:e;return{name:"Filedata[]",multiple:!0,beforeAll:t=>{this.Finder?.uploadSettings(t)},loadStart(t){n.max=t.total,n.value=t.loaded,n.hidden=!1},progress(t){n.max=t.total,n.value=t.loaded},loadEnd(t){n.max=t.total,n.value=t.loaded},error:t=>{let{message:r}=t;this.$notify(r,"danger"),n.hidden=!0},fail:t=>this.$notify(t,"danger"),complete:t=>{let{responseText:r}=t;return this.Finder.showMessage({body:r})},completeAll:()=>this.load().then(()=>n.hidden=!0)}},breadcrumbs(e){e===void 0&&(e=this.Finder.path);const n=e.split("/").filter(r=>r.length),t=[{path:"",title:this.$t("Home")}].concat(n.map((r,o)=>({path:n.slice(0,o+1).join("/"),title:r})));return t[t.length-1].current=!0,t}}};function FN(e){return e.sort((n,t)=>{let{name:r}=n,{name:o}=t;return r.localeCompare(o,void 0,{numeric:!0})})}const MN=EN;var PN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[e.selected.length?t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% File selected |||| %smart_count% Files selected",e.selected.length))+`
`)]):t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% File |||| %smart_count% Files",e.searched.length))+`
`)])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.selected.length===1,expression:"selected.length === 1"}]},[t("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Rename"),"uk-icon":"file-edit","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.rename(e.selected[0])}}})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.selected.length&&e.Finder.canDelete(),expression:"selected.length && Finder.canDelete()"}]},[t("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.remove(e.selected)}}})]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-medium uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("ul",{staticClass:"uk-grid-small uk-child-width-auto",attrs:{"uk-grid":""}},[t("li",{class:{"uk-active":e.view==="list"}},[t("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Table"),"uk-icon":"table","uk-tooltip":"delay: 500"},on:{click:function(r){r.preventDefault(),e.view="list"}}})]),e._v(" "),t("li",{class:{"uk-active":e.view==="thumbnail"}},[t("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Thumbnails"),"uk-icon":"thumbnails","uk-tooltip":"delay: 500"},on:{click:function(r){r.preventDefault(),e.view="thumbnail"}}})])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.Finder.canCreate(),expression:"Finder.canCreate()"}]},[t("button",{staticClass:"uk-button uk-button-default uk-margin-small-right",attrs:{type:"button"},on:{click:function(r){return e.create()}}},[e._v(`
`+e._s(e.$t("Add Folder"))+`
`)]),e._v(" "),t("div",{attrs:{"uk-form-custom":""}},[t("input",{attrs:{accept:e.Finder.accept,type:"file",name:"files[]",multiple:"multiple"}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Upload"))+`
`)])])])])])]),e._v(" "),t("ul",{staticClass:"uk-breadcrumb uk-margin-bottom"},e._l(e.breadcrumbs(),function(r){var o=r.path,u=r.title,f=r.current;return t("li",{key:o,class:{"uk-active":f}},[f?t("span",[e._v(e._s(u))]):t("a",{attrs:{href:""},on:{click:function(p){return p.preventDefault(),e.load(o)}}},[e._v(e._s(u))])])}),0),e._v(" "),t("progress",{ref:"progress",staticClass:"uk-progress yo-finder-progress",attrs:{hidden:"hidden"}}),e._v(" "),e.searched.length?t("div",{staticClass:"yo-finder-body",attrs:{"uk-overflow-auto":""}},[t(e.view,{tag:"component",attrs:{folders:e.folders,files:e.files,selected:e.selected},on:{select:function(r){return e.toggleSelect(r)},load:e.load}})],1):t("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No files found.")))])])},LN=[],NN=Z({render:PN,staticRenderFns:LN},void 0,MN,void 0,!1,void 0,!1,void 0,void 0,void 0),RN={name:"UnsplashModel",methods:{query(e,n,t,r){const o=this.getQuery(r);return this.$http.post(`${ae.api}/v1`,JSON.stringify({query:o,variables:{search:e,filter:n,page:t}}),{params:{key:ae.apikey},headers:{"Content-Type":"text/plain"},before(u){this.previousRequest&&this.previousRequest.abort(),this.previousRequest=u}})},getQuery(e){if(e==="photos")return`query ($search: String, $filter: String, $page: Int) {
unsplashPhotos (search: $search, filter: $filter, page: $page) {
page
pages
total
photos {id link description width height
urls {raw full regular small thumb}
user {id link image name username}
}
}
}`;if(e==="collections")return`query ($search: String, $filter: String, $page: Int) {
unsplashCollections (search: $search, filter: $filter, page: $page) {
page
pages
total
collections {id link title description totalPhotos
previewPhotos {raw full regular small thumb}
urls {raw full regular small thumb}
user {id link image name username}
}
}
}`;if(e==="users")return`query ($search: String, $filter: String, $page: Int) {
unsplashUsers (search: $search, filter: $filter, page: $page) {
page
pages
total
users {id link image name username}
}
}`}}};const ad={};var IN={models:{Unsplash:RN},props:{container:{type:String,default:".uk-modal"},content:{type:String,default:".uk-modal-dialog"},wide:{type:Boolean,default:!1}},data:()=>({search:"",type:"photos",page:1,collection:!1,user:!1,spinner:!1,error:!1,result:!1,scroll:0,...ad}),computed:{title(){const{total:e,photos:n=[],collections:t=[]}=this.result||{};return e?n.length?this.$t("%smart_count% Photo |||| %smart_count% Photos",e):t.length?this.$t("%smart_count% Collection |||| %smart_count% Collections",e):this.$t("%smart_count% User |||| %smart_count% Users",e):this.$t("No Results")},filter(){return this.collection?this.collection.id:this.user?`@${this.user.username}`:this.search?"":"curated"}},watch:{search:ga(function(){this.reset(),this.update()},500),type(){this.update()},collection(e){e&&(this.user=!1,this.type="photos"),this.update()},user(e){e&&(this.collection=!1,this.type="photos"),e.username==="yootheme"&&(this.type="collections"),this.update()}},mounted(){kt(ad)&&this.update()},beforeDestroy(){this.$data.error||Ft(ad,this.$data)},methods:{select(e){this.$emit("select",[`${e.urls.full}&id=${e.id}`])},onScroll(){const{offsetHeight:e,scrollTop:n,scrollHeight:t}=this.$refs.scroll;e&&this.page===this.result.page&&this.page!==this.result.pages&&n+(this.type==="users"?500:1e3)>=t-e&&(this.page+=1,this.query()),this.scroll=n},onLoad(){this.$refs.scroll.scrollTop=this.scroll},update(){this.page=1,this.query()},reset(e){e===void 0&&(e=this.type),this.user=!1,this.collection=!1,this.type=e},query:ga(function(e,n,t){e===void 0&&(e=this.search),n===void 0&&(n=this.filter),t===void 0&&(t=this.page);const r=this.type;this.spinner=this.page===1;const o=u=>{let{body:{errors:f,data:p},status:_}=u;if(!!_){if(t<2&&(this.result=!1,this.$refs.scroll&&(this.$refs.scroll.scrollTop=0)),this.spinner=!1,f){this.error=f[0].message;return}if(p){const{unsplashPhotos:v,unsplashCollections:k,unsplashUsers:w}=p;if(p=v||k||w,t>1){const{photos:x,collections:M,users:z}=this.result||{};p.photos=x&&Bf(x,p.photos,"id"),p.collections=M&&Bf(M,p.collections,"id"),p.users=z&&Bf(z,p.users,"id")}this.result={...p,type:r,user:this.user,collection:this.collection}}V.once(this.$refs.scroll,"load",this.onScroll,!0)}};this.Unsplash.query(e,n,t,r).then(o,o)},50)}};const DN=IN;var jN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-min-height-small uk-position-relative"},[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle uk-margin",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(e.title))])]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])]),e._v(" "),t("div",[t("ul",{staticClass:"uk-subnav uk-subnav-divider uk-flex-center uk-margin",attrs:{"uk-margin":""}},[t("li",{class:{"uk-active":e.type==="photos"&&!e.user&&!e.collection}},[t("a",{attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.reset("photos")}}},[e._v(e._s(e.$t("Photos")))])]),e._v(" "),t("li",{class:{"uk-active":e.type==="collections"&&!e.user||e.collection}},[t("a",{attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.reset("collections")}}},[e._v(e._s(e.$t("Collections")))])]),e._v(" "),t("li",{class:{"uk-active":e.type==="users"&&!e.collection||e.user}},[t("a",{attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.reset("users")}}},[e._v(e._s(e.$t("Users")))])])])])]),e._v(" "),e.result.collection?t("div",{staticClass:"uk-margin"},[t("h3",{staticClass:"uk-display-inline-block uk-margin-remove"},[e._v(e._s(e.result.collection.title))]),e._v(" "),t("span",{staticClass:"uk-margin-left",domProps:{innerHTML:e._s(e.$t("Curated by <a href>%user%</a>",{user:e.result.collection.user.name}))},on:{click:function(r){r.preventDefault(),e.user=e.result.collection.user}}})]):e._e(),e._v(" "),e.result.user?t("div",{staticClass:"uk-grid uk-grid-medium uk-child-width-auto uk-flex-middle uk-margin"},[t("div",[t("div",{staticClass:"uk-flex uk-flex-middle"},[t("img",{staticClass:"uk-border-circle",attrs:{"data-src":e.result.user.image,alt:e.result.user.name,width:"30",height:"30","uk-img":""}}),e._v(" "),t("h3",{staticClass:"uk-h4 uk-margin-remove-vertical uk-margin-small-left"},[e._v(`
`+e._s(e.result.user.name)+`
`)])])]),e._v(" "),t("div",[t("ul",{staticClass:"uk-subnav"},[t("li",{class:{"uk-active":e.type==="photos"}},[t("a",{attrs:{href:""},on:{click:function(r){r.preventDefault(),e.type="photos"}}},[e._v(e._s(e.$t("Photos")))])]),e._v(" "),t("li",{class:{"uk-active":e.type==="collections"}},[t("a",{attrs:{href:""},on:{click:function(r){r.preventDefault(),e.type="collections"}}},[e._v(e._s(e.$t("Collections")))])])])])]):e._e(),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.result&&e.result.total,expression:"result && result.total"}],key:"results",style:{opacity:e.spinner?.3:1}},[t("div",{key:e.result.type,ref:"scroll",staticClass:"yo-finder-body",attrs:{"sel-container":e.container,"sel-content":e.content,"uk-overflow-auto":""},on:{"~!load":function(r){return e.onLoad.apply(null,arguments)},"&!scroll":function(r){return e.onScroll.apply(null,arguments)}}},[t("ul",{staticClass:"uk-grid uk-grid-medium",class:{"uk-child-width-1-2@s uk-child-width-1-3@m uk-child-width-1-4@l uk-child-width-1-5@xl":e.result.users,"uk-child-width-1-2@s uk-child-width-1-3@m":!e.result.users,"uk-child-width-1-4@xl":!e.result.users&&e.wide},attrs:{masonry:(e.result.type==="photos").toString(),"uk-grid":""}},[e._l(e.result.photos,function(r){return t("li",{key:r.id},[t("div",{staticClass:`
uk-inline
uk-box-shadow-medium
uk-box-shadow-hover-large
uk-transition-toggle
uk-light
`,attrs:{tabindex:"0"}},[t("img",{attrs:{"data-src":r.urls.regular,"data-srcset":r.urls.raw+"&auto=format&fit=crop&w=600&q=60 600w, "+r.urls.raw+"&auto=format&fit=crop&w=1200&q=60 1200w","data-width":r.width,"data-height":r.height,sizes:"(min-width: 600px) 600px","uk-img":""}}),e._v(" "),t("div",{staticClass:"yo-overlay-image uk-position-cover uk-transition-fade"}),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(o){return o.preventDefault(),e.select(r)}}}),e._v(" "),t("div",{staticClass:"uk-position-bottom-left uk-position-small uk-transition-fade"},[t("ul",{staticClass:"uk-subnav uk-subnav-divider yo-subnav uk-margin-remove"},[t("li",[t("img",{staticClass:"uk-border-circle",attrs:{"data-src":r.user.image,alt:r.user.name,width:"30",height:"30","uk-img":""}}),e._v(" "),t("a",{staticClass:"uk-margin-small-left",attrs:{href:r.user.link,target:"_blank"}},[e._v(e._s(r.user.name))])]),e._v(" "),t("li",[t("a",{attrs:{href:""},on:{click:function(o){o.preventDefault(),e.user=r.user}}},[e._v(e._s(e.$t("View Photos")))])])])])])])}),e._v(" "),e._l(e.result.collections,function(r){return t("li",{key:r.id},[t("div",{staticClass:`
uk-inline-clip
uk-box-shadow-medium
uk-box-shadow-hover-large
uk-transition-toggle
`,attrs:{tabindex:"0"}},[t("div",{staticClass:"uk-grid yo-grid-xsmall uk-grid-match"},[t("div",{staticClass:"uk-width-2-3"},[t("div",{staticClass:"uk-panel uk-overflow-hidden"},[t("img",{attrs:{src:r.previewPhotos[0].regular,srcset:r.previewPhotos[0].raw+"&auto=format&fit=crop&w=600&q=60 600w, "+r.previewPhotos[0].raw+"&auto=format&fit=crop&w=1200&q=60 1200w",sizes:"(min-width: 600px) 600px","uk-cover":""}})])]),e._v(" "),t("div",{staticClass:"uk-width-1-3"},[t("div",{staticClass:`
uk-grid
yo-grid-xsmall yo-grid-xsmall-stack
uk-child-width-1-1
`},[t("div",[t("div",{staticClass:"uk-panel uk-overflow-hidden"},[t("canvas",{attrs:{width:"500",height:"600"}}),e._v(" "),r.previewPhotos[1]?t("img",{attrs:{src:r.previewPhotos[1].small,"uk-cover":""}}):e._e()])]),e._v(" "),t("div",[t("div",{staticClass:"uk-panel uk-overflow-hidden"},[t("canvas",{attrs:{width:"500",height:"600"}}),e._v(" "),r.previewPhotos[2]?t("img",{attrs:{src:r.previewPhotos[2].small,"uk-cover":""}}):e._e()])])])])]),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(o){o.preventDefault(),e.collection=r}}})]),e._v(" "),t("h3",{staticClass:"uk-h4 uk-margin-top uk-margin-remove-bottom"},[e._v(`
`+e._s(r.title)+`
`)]),e._v(" "),t("span",{domProps:{innerHTML:e._s(e.$t("%smart_count% Photo |||| %smart_count% Photos",r.totalPhotos,{total:r.totalPhotos})+" \xB7 "+e.$t("Curated by <a href>%user%</a>",{user:r.user.name}))},on:{click:function(o){o.preventDefault(),e.user=r.user}}})])}),e._v(" "),e._l(e.result.users,function(r){return t("li",{key:r.id},[t("a",{staticClass:"uk-grid uk-grid-small uk-flex-middle uk-link-text",attrs:{href:""},on:{click:function(o){o.preventDefault(),e.user=r}}},[t("div",{staticClass:"uk-width-auto"},[t("img",{staticClass:"uk-border-circle",attrs:{"data-src":r.image,alt:r.name,width:"80",height:"80","uk-img":""}})]),e._v(" "),t("div",{staticClass:"uk-width-expand"},[t("h3",{staticClass:"uk-h4 uk-margin-remove uk-text-break"},[e._v(e._s(r.name))]),e._v(" "),t("p",{staticClass:"uk-margin-remove-top uk-text-break"},[e._v(`
`+e._s("@"+r.username)+`
`)])])])])})],2)])]),e._v(" "),e.error?t("h3",{staticClass:"uk-h1 uk-text-danger uk-text-center"},[e._v(e._s(e.$t(e.error)))]):e._e(),e._v(" "),e.spinner?t("div",{key:"spinner",staticClass:"uk-position-center",attrs:{"uk-spinner":"ratio: 1.5"}}):e._e(),e._v(" "),!e.spinner&&e.result&&!e.result.total?t("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(`
`+e._s(e.$t("No results."))+`
`)]):e._e()])},BN=[],HN=Z({render:jN,staticRenderFns:BN},void 0,DN,void 0,!1,void 0,!1,void 0,void 0,void 0),zN={name:"MediaPicker",components:{Finder:NN,Switcher:xa,Unsplash:HN},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!1},unsplash:{type:Boolean,default:!0}},data:()=>({selected:[]}),computed:{hasSelection(){const{length:e}=this.selected,n=this.type==="image"&&nd||this.type==="video"&&rd;return(this.multiple?e:e===1)&&(!this.type||this.selected.map(t=>{let{url:r}=t;return r}).every(n))},tabs(){return["files"].concat(this.type==="image"&&this.unsplash&&!this.multiple?"unsplash":[])}},methods:{select(e){e=e.map(n=>({src:n,title:If(n.replace(/.*\/|\.[^.]*$/g,""))})),e=this.multiple?e:e[0],this.$emit("resolve",e)},selectFiles(e){this.select(e.map(n=>{let{url:t}=n;return t}))},selectUnsplash(e){this.select([new td(e)])}}};const WN=zN;var GN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Switcher",{attrs:{tabs:e.tabs,storage:"media-picker.mode"}},[t("template",{slot:"files"},[t("div",{staticClass:"uk-modal-body"},[t("Finder",{model:{value:e.selected,callback:function(r){e.selected=r},expression:"selected"}})],1),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-right",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!e.hasSelection,type:"button"},on:{click:function(r){return r.preventDefault(),e.selectFiles(e.selected)}}},[e._v(`
`+e._s(e.$t("Select"))+`
`)])])]),e._v(" "),t("template",{slot:"unsplash"},[t("div",{staticClass:"uk-modal-body"},[t("Unsplash",{on:{select:function(r){return e.selectUnsplash(r[0])}}})],1)])],2)},KN=[],wg=Z({render:GN,staticRenderFns:KN},void 0,WN,void 0,!1,void 0,!1,void 0,void 0,void 0);const xg={provide(){return{Modal:this}},data:()=>({width:"",container:!1,bgClose:!0}),watch:{container:{handler(e){V.toggleClass(this.$el,"uk-modal-container",!!e)},immediate:!0}},mounted(){this.modal=Pn.modal(this.$el,{stack:!0})},beforeDestroy(){this.modal.$destroy(!0)},methods:{show(e){return Ft(this,e),this.modal.show(),new Promise((n,t)=>{this.promise={resolve:n,reject:t}})},hide(){this.modal.hide()},hidden(){this.promise.resolve(),this.$nextTick(this.$destroy)},resolve(e){this.promise.resolve(e),this.modal.hide()},reject(e){this.promise.reject(e),this.modal.hide()}},install(e){Object.defineProperty(e.prototype,"$modal",{get(){var n=this;return function(t,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),t=e.extend(t),kt(o)||(t=t.extend(o)),new e({parent:n,components:{modal:t},extends:xg,data:()=>({props:r})}).$mount()}}})}},UN=xg;var YN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{"bg-close":""+e.bgClose},on:{show:function(r){return r.target!==r.currentTarget?null:e.$emit("show")},hide:function(r){return r.target!==r.currentTarget?null:e.$emit("hide")},hidden:function(r){return r.target!==r.currentTarget?null:e.hidden.apply(null,arguments)}}},[t("div",{class:["uk-modal-dialog",e.width?"uk-width-"+e.width:""]},[t("modal",e._b({on:{resolve:e.resolve,reject:e.reject}},"modal",e.props,!1,!0))],1)])},qN=[],JN=Z({render:YN,staticRenderFns:qN},void 0,UN,void 0,!1,void 0,!1,void 0,void 0,void 0),XN={props:{title:{type:String,default(){return this.$t("Select Image")}},svgs:{type:Object},value:{type:String}},methods:{select(e){this.$emit("input",e),this.$emit("resolve",e)}}};const ZN=XN;var QN=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-modal-header"},[t("h2",{staticClass:"uk-modal-title"},[e._v(e._s(e.title))])]),e._v(" "),t("div",{staticClass:"uk-modal-body"},[t("div",{staticClass:"uk-grid-collapse uk-child-width-1-4",attrs:{"uk-grid":""}},e._l(e.svgs,function(r,o){return t("div",{key:o},[t("div",{staticClass:"uk-card uk-card-body uk-card-hover yo-panel uk-text-center",class:{"uk-active":e.value===o}},[t("img",{attrs:{alt:r.label,src:e.$url(r.src),"uk-svg":""}}),e._v(" "),t("p",{staticClass:"uk-margin-small-top uk-margin-remove-bottom"},[e._v(`
`+e._s(r.label)+`
`)]),e._v(" "),t("a",{staticClass:"uk-position-cover",on:{click:function(u){return u.preventDefault(),e.select(o)}}})])])}),0)])])},VN=[],e2=Z({render:QN,staticRenderFns:VN},void 0,ZN,void 0,!1,void 0,!1,void 0,void 0,void 0),$r={bind:Cg,update:Cg};function Cg(e,n,t){let{value:r}=n,{data:{on:o}}=t;Tn(o,u=>{const{fns:f}=u;u.fns=vt(Je(f)?f:[f],p=>function(){for(var _=arguments.length,v=new Array(_),k=0;k<_;k++)v[k]=arguments[k];return Pn.modal.confirm(r,{stack:!0}).then(()=>{p(...v)},()=>{})})})}var od={bind(e,n,t){let{value:r}=n,{context:o}=t;if(!V.isFunction(o.move))throw"Sortable directive needs to implement function move(child, parent, index).";Pn.sortable(e,{...r,animation:!1}),e._off=V.on(e,"moved added removed",(u,f,p)=>{let{type:_}=u;_!=="removed"&&o.move(p.__vue__,o,V.index(p)),_!=="added"&&t2(e,p,f.origin.index)},{self:!0})},componentUpdated(e){V.hasClass(e,"uk-sortable")||Pn.sortable(e).$reset()},unbind(e){let{_off:n}=e;n()}};function t2(e,n,t){V.remove(n),e.children[t]?V.before(e.children[t],n):V.append(e,n)}function Sg(e,n){let{value:{src:t,placeholder:r}}=n;V.getImage(decodeURI(t)).then(o=>V.css(e,"backgroundImage",`url('${o.src}')`),()=>r&&V.css(e,"backgroundImage",`url('${Te.url(r)}')`))}var n2={bind:Sg,update:Sg},Ag=Object.prototype.toString,Tg=function(n){var t=Ag.call(n),r=t==="[object Arguments]";return r||(r=t!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&Ag.call(n.callee)==="[object Function]"),r},Og;if(!Object.keys){var Kl=Object.prototype.hasOwnProperty,Eg=Object.prototype.toString,r2=Tg,Fg=Object.prototype.propertyIsEnumerable,i2=!Fg.call({toString:null},"toString"),a2=Fg.call(function(){},"prototype"),Ul=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],sd=function(e){var n=e.constructor;return n&&n.prototype===e},o2={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},s2=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!o2["$"+e]&&Kl.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{sd(window[e])}catch{return!0}}catch{return!0}return!1}(),l2=function(e){if(typeof window=="undefined"||!s2)return sd(e);try{return sd(e)}catch{return!1}};Og=function(n){var t=n!==null&&typeof n=="object",r=Eg.call(n)==="[object Function]",o=r2(n),u=t&&Eg.call(n)==="[object String]",f=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var p=a2&&r;if(u&&n.length>0&&!Kl.call(n,0))for(var _=0;_<n.length;++_)f.push(String(_));if(o&&n.length>0)for(var v=0;v<n.length;++v)f.push(String(v));else for(var k in n)!(p&&k==="prototype")&&Kl.call(n,k)&&f.push(String(k));if(i2)for(var w=l2(n),x=0;x<Ul.length;++x)!(w&&Ul[x]==="constructor")&&Kl.call(n,Ul[x])&&f.push(Ul[x]);return f}}var u2=Og,c2=Array.prototype.slice,f2=Tg,Mg=Object.keys,Yl=Mg?function(n){return Mg(n)}:u2,Pg=Object.keys;Yl.shim=function(){if(Object.keys){var n=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);n||(Object.keys=function(r){return f2(r)?Pg(c2.call(r)):Pg(r)})}else Object.keys=Yl;return Object.keys||Yl};var d2=Yl,p2=d2,h2=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",_2=Object.prototype.toString,v2=Array.prototype.concat,ld=Object.defineProperty,m2=function(e){return typeof e=="function"&&_2.call(e)==="[object Function]"},g2=function(){var e={};try{ld(e,"x",{enumerable:!1,value:e});for(var n in e)return!1;return e.x===e}catch{return!1}},Lg=ld&&g2(),y2=function(e,n,t,r){n in e&&(!m2(r)||!r())||(Lg?ld(e,n,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[n]=t)},Ng=function(e,n){var t=arguments.length>2?arguments[2]:{},r=p2(n);h2&&(r=v2.call(r,Object.getOwnPropertySymbols(n)));for(var o=0;o<r.length;o+=1)y2(e,r[o],n[r[o]],t[r[o]])};Ng.supportsDescriptors=!!Lg;var Ca=Ng,Sa={exports:{}},b2="Function.prototype.bind called on incompatible ",ud=Array.prototype.slice,$2=Object.prototype.toString,k2="[object Function]",w2=function(n){var t=this;if(typeof t!="function"||$2.call(t)!==k2)throw new TypeError(b2+t);for(var r=ud.call(arguments,1),o,u=function(){if(this instanceof o){var k=t.apply(this,r.concat(ud.call(arguments)));return Object(k)===k?k:this}else return t.apply(n,r.concat(ud.call(arguments)))},f=Math.max(0,t.length-r.length),p=[],_=0;_<f;_++)p.push("$"+_);if(o=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(u),t.prototype){var v=function(){};v.prototype=t.prototype,o.prototype=new v,v.prototype=null}return o},x2=w2,cd=Function.prototype.bind||x2,Rg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;n[t]=o;for(t in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var u=Object.getOwnPropertySymbols(n);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(n,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(n,t);if(f.value!==o||f.enumerable!==!0)return!1}return!0},Ig=typeof Symbol!="undefined"&&Symbol,C2=Rg,Dg=function(){return typeof Ig!="function"||typeof Symbol!="function"||typeof Ig("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:C2()},S2=cd,jg=S2.call(Function.call,Object.prototype.hasOwnProperty),Ze,Qo=SyntaxError,Bg=Function,Aa=TypeError,fd=function(e){try{return Bg('"use strict"; return ('+e+").constructor;")()}catch{}},Ti=Object.getOwnPropertyDescriptor;if(Ti)try{Ti({},"")}catch{Ti=null}var dd=function(){throw new Aa},A2=Ti?function(){try{return arguments.callee,dd}catch{try{return Ti(arguments,"callee").get}catch{return dd}}}():dd,Ta=Dg(),Ur=Object.getPrototypeOf||function(e){return e.__proto__},Oa={},T2=typeof Uint8Array=="undefined"?Ze:Ur(Uint8Array),Ea={"%AggregateError%":typeof AggregateError=="undefined"?Ze:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Ze:ArrayBuffer,"%ArrayIteratorPrototype%":Ta?Ur([][Symbol.iterator]()):Ze,"%AsyncFromSyncIteratorPrototype%":Ze,"%AsyncFunction%":Oa,"%AsyncGenerator%":Oa,"%AsyncGeneratorFunction%":Oa,"%AsyncIteratorPrototype%":Oa,"%Atomics%":typeof Atomics=="undefined"?Ze:Atomics,"%BigInt%":typeof BigInt=="undefined"?Ze:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Ze:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?Ze:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Ze:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Ze:FinalizationRegistry,"%Function%":Bg,"%GeneratorFunction%":Oa,"%Int8Array%":typeof Int8Array=="undefined"?Ze:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Ze:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Ze:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ta?Ur(Ur([][Symbol.iterator]())):Ze,"%JSON%":typeof JSON=="object"?JSON:Ze,"%Map%":typeof Map=="undefined"?Ze:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Ta?Ze:Ur(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Ze:Promise,"%Proxy%":typeof Proxy=="undefined"?Ze:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?Ze:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Ze:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Ta?Ze:Ur(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Ze:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ta?Ur(""[Symbol.iterator]()):Ze,"%Symbol%":Ta?Symbol:Ze,"%SyntaxError%":Qo,"%ThrowTypeError%":A2,"%TypedArray%":T2,"%TypeError%":Aa,"%Uint8Array%":typeof Uint8Array=="undefined"?Ze:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Ze:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Ze:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Ze:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?Ze:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Ze:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Ze:WeakSet},O2=function e(n){var t;if(n==="%AsyncFunction%")t=fd("async function () {}");else if(n==="%GeneratorFunction%")t=fd("function* () {}");else if(n==="%AsyncGeneratorFunction%")t=fd("async function* () {}");else if(n==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(t=r.prototype)}else if(n==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(t=Ur(o.prototype))}return Ea[n]=t,t},Hg={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ql=cd,Jl=jg,E2=ql.call(Function.call,Array.prototype.concat),F2=ql.call(Function.apply,Array.prototype.splice),zg=ql.call(Function.call,String.prototype.replace),Xl=ql.call(Function.call,String.prototype.slice),M2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P2=/\\(\\)?/g,L2=function(n){var t=Xl(n,0,1),r=Xl(n,-1);if(t==="%"&&r!=="%")throw new Qo("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&t!=="%")throw new Qo("invalid intrinsic syntax, expected opening `%`");var o=[];return zg(n,M2,function(u,f,p,_){o[o.length]=p?zg(_,P2,"$1"):f||u}),o},N2=function(n,t){var r=n,o;if(Jl(Hg,r)&&(o=Hg[r],r="%"+o[0]+"%"),Jl(Ea,r)){var u=Ea[r];if(u===Oa&&(u=O2(r)),typeof u=="undefined"&&!t)throw new Aa("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:u}}throw new Qo("intrinsic "+n+" does not exist!")},Mt=function(n,t){if(typeof n!="string"||n.length===0)throw new Aa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Aa('"allowMissing" argument must be a boolean');var r=L2(n),o=r.length>0?r[0]:"",u=N2("%"+o+"%",t),f=u.name,p=u.value,_=!1,v=u.alias;v&&(o=v[0],F2(r,E2([0,1],v)));for(var k=1,w=!0;k<r.length;k+=1){var x=r[k],M=Xl(x,0,1),z=Xl(x,-1);if((M==='"'||M==="'"||M==="`"||z==='"'||z==="'"||z==="`")&&M!==z)throw new Qo("property names with quotes must have matching quotes");if((x==="constructor"||!w)&&(_=!0),o+="."+x,f="%"+o+"%",Jl(Ea,f))p=Ea[f];else if(p!=null){if(!(x in p)){if(!t)throw new Aa("base intrinsic for "+n+" exists, but the property is not available.");return}if(Ti&&k+1>=r.length){var ie=Ti(p,x);w=!!ie,w&&"get"in ie&&!("originalValue"in ie.get)?p=ie.get:p=p[x]}else w=Jl(p,x),p=p[x];w&&!_&&(Ea[f]=p)}}return p};(function(e){var n=cd,t=Mt,r=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),u=t("%Reflect.apply%",!0)||n.call(o,r),f=t("%Object.getOwnPropertyDescriptor%",!0),p=t("%Object.defineProperty%",!0),_=t("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}e.exports=function(w){var x=u(n,o,arguments);if(f&&p){var M=f(x,"length");M.configurable&&p(x,"length",{value:1+_(0,w.length-(arguments.length-1))})}return x};var v=function(){return u(n,r,arguments)};p?p(e.exports,"apply",{value:v}):e.exports.apply=v})(Sa);var Wg=Mt,Gg=Sa.exports,R2=Gg(Wg("String.prototype.indexOf")),Oi=function(n,t){var r=Wg(n,!!t);return typeof r=="function"&&R2(n,".prototype.")>-1?Gg(r):r},I2=Mt,D2=I2("%TypeError%"),j2=function(n,t){if(n==null)throw new D2(t||"Cannot call method on "+n);return n},Kg=j2,B2=Mt,Ug=B2("%Array%"),H2=!Ug.isArray&&Oi("Object.prototype.toString"),z2=Ug.isArray||function(n){return H2(n)==="[object Array]"},Yg=Mt,W2=Oi,G2=Yg("%TypeError%"),K2=z2,U2=Yg("%Reflect.apply%",!0)||W2("%Function.prototype.apply%"),Y2=function(n,t){var r=arguments.length>2?arguments[2]:[];if(!K2(r))throw new G2("Assertion failed: optional `argumentsList`, if provided, must be a List");return U2(n,t,r)},q2={},J2=Object.freeze({__proto__:null,default:q2}),X2=YM(J2),pd=typeof Map=="function"&&Map.prototype,hd=Object.getOwnPropertyDescriptor&&pd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Zl=pd&&hd&&typeof hd.get=="function"?hd.get:null,Z2=pd&&Map.prototype.forEach,_d=typeof Set=="function"&&Set.prototype,vd=Object.getOwnPropertyDescriptor&&_d?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=_d&&vd&&typeof vd.get=="function"?vd.get:null,Q2=_d&&Set.prototype.forEach,V2=typeof WeakMap=="function"&&WeakMap.prototype,Vo=V2?WeakMap.prototype.has:null,eR=typeof WeakSet=="function"&&WeakSet.prototype,es=eR?WeakSet.prototype.has:null,tR=typeof WeakRef=="function"&&WeakRef.prototype,qg=tR?WeakRef.prototype.deref:null,nR=Boolean.prototype.valueOf,rR=Object.prototype.toString,iR=Function.prototype.toString,aR=String.prototype.match,md=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gd=Object.getOwnPropertySymbols,yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ts=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oR=Object.prototype.propertyIsEnumerable,Jg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),bd=X2.custom,$d=bd&&Zg(bd)?bd:null,Gt=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null,sR=function e(n,t,r,o){var u=t||{};if(Ei(u,"quoteStyle")&&u.quoteStyle!=="single"&&u.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ei(u,"maxStringLength")&&(typeof u.maxStringLength=="number"?u.maxStringLength<0&&u.maxStringLength!==1/0:u.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=Ei(u,"customInspect")?u.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ei(u,"indent")&&u.indent!==null&&u.indent!==" "&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof n=="undefined")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return Vg(n,u);if(typeof n=="number")return n===0?1/0/n>0?"0":"-0":String(n);if(typeof n=="bigint")return String(n)+"n";var p=typeof u.depth=="undefined"?5:u.depth;if(typeof r=="undefined"&&(r=0),r>=p&&p>0&&typeof n=="object")return kd(n)?"[Array]":"[Object]";var _=SR(u,r);if(typeof o=="undefined")o=[];else if(Qg(o,n)>=0)return"[Circular]";function v(pe,fe,P){if(fe&&(o=o.slice(),o.push(fe)),P){var C={depth:u.depth};return Ei(u,"quoteStyle")&&(C.quoteStyle=u.quoteStyle),e(pe,C,r+1,o)}return e(pe,u,r+1,o)}if(typeof n=="function"){var k=mR(n),w=Vl(n,v);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(w.length>0?" { "+w.join(", ")+" }":"")}if(Zg(n)){var x=ts?String(n).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):yd.call(n);return typeof n=="object"&&!ts?ns(x):x}if(wR(n)){for(var M="<"+String(n.nodeName).toLowerCase(),z=n.attributes||[],ie=0;ie<z.length;ie++)M+=" "+z[ie].name+"="+Xg(lR(z[ie].value),"double",u);return M+=">",n.childNodes&&n.childNodes.length&&(M+="..."),M+="</"+String(n.nodeName).toLowerCase()+">",M}if(kd(n)){if(n.length===0)return"[]";var q=Vl(n,v);return _&&!CR(q)?"["+xd(q,_)+"]":"[ "+q.join(", ")+" ]"}if(fR(n)){var j=Vl(n,v);return j.length===0?"["+String(n)+"]":"{ ["+String(n)+"] "+j.join(", ")+" }"}if(typeof n=="object"&&f){if($d&&typeof n[$d]=="function")return n[$d]();if(f!=="symbol"&&typeof n.inspect=="function")return n.inspect()}if(gR(n)){var D=[];return Z2.call(n,function(pe,fe){D.push(v(fe,n,!0)+" => "+v(pe,n))}),ey("Map",Zl.call(n),D,_)}if($R(n)){var B=[];return Q2.call(n,function(pe){B.push(v(pe,n))}),ey("Set",Ql.call(n),B,_)}if(yR(n))return wd("WeakMap");if(kR(n))return wd("WeakSet");if(bR(n))return wd("WeakRef");if(pR(n))return ns(v(Number(n)));if(_R(n))return ns(v(md.call(n)));if(hR(n))return ns(nR.call(n));if(dR(n))return ns(v(String(n)));if(!uR(n)&&!cR(n)){var Y=Vl(n,v),oe=Jg?Jg(n)===Object.prototype:n instanceof Object||n.constructor===Object,te=n instanceof Object?"":"null prototype",le=!oe&&Gt&&Object(n)===n&&Gt in n?Yr(n).slice(8,-1):te?"Object":"",xe=oe||typeof n.constructor!="function"?"":n.constructor.name?n.constructor.name+" ":"",Ce=xe+(le||te?"["+[].concat(le||[],te||[]).join(": ")+"] ":"");return Y.length===0?Ce+"{}":_?Ce+"{"+xd(Y,_)+"}":Ce+"{ "+Y.join(", ")+" }"}return String(n)};function Xg(e,n,t){var r=(t.quoteStyle||n)==="double"?'"':"'";return r+e+r}function lR(e){return String(e).replace(/"/g,""")}function kd(e){return Yr(e)==="[object Array]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function uR(e){return Yr(e)==="[object Date]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function cR(e){return Yr(e)==="[object RegExp]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function fR(e){return Yr(e)==="[object Error]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function dR(e){return Yr(e)==="[object String]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function pR(e){return Yr(e)==="[object Number]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function hR(e){return Yr(e)==="[object Boolean]"&&(!Gt||!(typeof e=="object"&&Gt in e))}function Zg(e){if(ts)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!yd)return!1;try{return yd.call(e),!0}catch{}return!1}function _R(e){if(!e||typeof e!="object"||!md)return!1;try{return md.call(e),!0}catch{}return!1}var vR=Object.prototype.hasOwnProperty||function(e){return e in this};function Ei(e,n){return vR.call(e,n)}function Yr(e){return rR.call(e)}function mR(e){if(e.name)return e.name;var n=aR.call(iR.call(e),/^function\s*([\w$]+)/);return n?n[1]:null}function Qg(e,n){if(e.indexOf)return e.indexOf(n);for(var t=0,r=e.length;t<r;t++)if(e[t]===n)return t;return-1}function gR(e){if(!Zl||!e||typeof e!="object")return!1;try{Zl.call(e);try{Ql.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function yR(e){if(!Vo||!e||typeof e!="object")return!1;try{Vo.call(e,Vo);try{es.call(e,es)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function bR(e){if(!qg||!e||typeof e!="object")return!1;try{return qg.call(e),!0}catch{}return!1}function $R(e){if(!Ql||!e||typeof e!="object")return!1;try{Ql.call(e);try{Zl.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function kR(e){if(!es||!e||typeof e!="object")return!1;try{es.call(e,es);try{Vo.call(e,Vo)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function wR(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Vg(e,n){if(e.length>n.maxStringLength){var t=e.length-n.maxStringLength,r="... "+t+" more character"+(t>1?"s":"");return Vg(e.slice(0,n.maxStringLength),n)+r}var o=e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,xR);return Xg(o,"single",n)}function xR(e){var n=e.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return t?"\\"+t:"\\x"+(n<16?"0":"")+n.toString(16).toUpperCase()}function ns(e){return"Object("+e+")"}function wd(e){return e+" { ? }"}function ey(e,n,t,r){var o=r?xd(t,r):t.join(", ");return e+" ("+n+") {"+o+"}"}function CR(e){for(var n=0;n<e.length;n++)if(Qg(e[n],`
`)>=0)return!1;return!0}function SR(e,n){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=Array(e.indent+1).join(" ");else return null;return{base:t,prev:Array(n+1).join(t)}}function xd(e,n){if(e.length===0)return"";var t=`
`+n.prev+n.base;return t+e.join(","+t)+`
`+n.prev}function Vl(e,n){var t=kd(e),r=[];if(t){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Ei(e,o)?n(e[o],e):""}var u=typeof gd=="function"?gd(e):[],f;if(ts){f={};for(var p=0;p<u.length;p++)f["$"+u[p]]=u[p]}for(var _ in e)!Ei(e,_)||t&&String(Number(_))===_&&_<e.length||ts&&f["$"+_]instanceof Symbol||(/[^\w$]/.test(_)?r.push(n(_,e)+": "+n(e[_],e)):r.push(_+": "+n(e[_],e)));if(typeof gd=="function")for(var v=0;v<u.length;v++)oR.call(e,u[v])&&r.push("["+n(u[v])+"]: "+n(e[u[v]],e));return r}var ty=function(n){return typeof n=="string"||typeof n=="symbol"},AR=function(n){if(n===null)return"Null";if(typeof n=="undefined")return"Undefined";if(typeof n=="function"||typeof n=="object")return"Object";if(typeof n=="number")return"Number";if(typeof n=="boolean")return"Boolean";if(typeof n=="string")return"String"},TR=AR,Cd=function(n){return typeof n=="symbol"?"Symbol":typeof n=="bigint"?"BigInt":TR(n)},OR=Mt,ny=OR("%TypeError%"),ER=sR,FR=ty,MR=Cd,ry=function(n,t){if(MR(n)!=="Object")throw new ny("Assertion failed: Type(O) is not Object");if(!FR(t))throw new ny("Assertion failed: IsPropertyKey(P) is not true, got "+ER(t));return n[t]},PR=Mt,iy=PR("%TypeError%"),LR=ty,NR=Cd,RR=function(n,t){if(NR(n)!=="Object")throw new iy("Assertion failed: `O` must be an Object");if(!LR(t))throw new iy("Assertion failed: `P` must be a Property Key");return t in n},ay=Function.prototype.toString,Fa=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Sd,eu;if(typeof Fa=="function"&&typeof Object.defineProperty=="function")try{Sd=Object.defineProperty({},"length",{get:function(){throw eu}}),eu={},Fa(function(){throw 42},null,Sd)}catch(e){e!==eu&&(Fa=null)}else Fa=null;var IR=/^\s*class\b/,Ad=function(n){try{var t=ay.call(n);return IR.test(t)}catch{return!1}},DR=function(n){try{return Ad(n)?!1:(ay.call(n),!0)}catch{return!1}},jR=Object.prototype.toString,BR="[object Function]",HR="[object GeneratorFunction]",zR=typeof Symbol=="function"&&!!Symbol.toStringTag,oy=typeof document=="object"&&typeof document.all=="undefined"&&document.all!==void 0?document.all:{},WR=Fa?function(n){if(n===oy)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;try{Fa(n,null,Sd)}catch(t){if(t!==eu)return!1}return!Ad(n)}:function(n){if(n===oy)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;if(zR)return DR(n);if(Ad(n))return!1;var t=jR.call(n);return t===BR||t===HR},GR=WR,sy=Mt,KR=sy("%Math%"),UR=sy("%Number%"),YR=UR.MAX_SAFE_INTEGER||KR.pow(2,53)-1,qR=Mt,JR=qR("%Math.abs%"),XR=function(n){return JR(n)},ZR=Math.floor,QR=function(n){return ZR(n)},ly=function(n){return n===null||typeof n!="function"&&typeof n!="object"},uy=Function.prototype.toString,Ma=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Td,tu;if(typeof Ma=="function"&&typeof Object.defineProperty=="function")try{Td=Object.defineProperty({},"length",{get:function(){throw tu}}),tu={},Ma(function(){throw 42},null,Td)}catch(e){e!==tu&&(Ma=null)}else Ma=null;var VR=/^\s*class\b/,Od=function(n){try{var t=uy.call(n);return VR.test(t)}catch{return!1}},eI=function(n){try{return Od(n)?!1:(uy.call(n),!0)}catch{return!1}},tI=Object.prototype.toString,nI="[object Function]",rI="[object GeneratorFunction]",iI=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",cy=typeof document=="object"&&typeof document.all=="undefined"&&document.all!==void 0?document.all:{},fy=Ma?function(n){if(n===cy)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;try{Ma(n,null,Td)}catch(t){if(t!==tu)return!1}return!Od(n)}:function(n){if(n===cy)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;if(iI)return eI(n);if(Od(n))return!1;var t=tI.call(n);return t===nI||t===rI},aI=Object.prototype.toString,dy=ly,oI=fy,py={"[[DefaultValue]]":function(e){var n;if(arguments.length>1?n=arguments[1]:n=aI.call(e)==="[object Date]"?String:Number,n===String||n===Number){var t=n===String?["toString","valueOf"]:["valueOf","toString"],r,o;for(o=0;o<t.length;++o)if(oI(e[t[o]])&&(r=e[t[o]](),dy(r)))return r;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}},sI=function(n){return dy(n)?n:arguments.length>1?py["[[DefaultValue]]"](n,arguments[1]):py["[[DefaultValue]]"](n)},lI=sI,uI=lI,cI=function(n){var t=uI(n,Number);if(typeof t!="string")return+t;var r=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(r)?NaN:+r},fI=Number.isNaN||function(n){return n!==n},dI=Number.isNaN||function(e){return e!==e},pI=Number.isFinite||function(e){return typeof e=="number"&&!dI(e)&&e!==1/0&&e!==-1/0},hI=function(n){return n>=0?1:-1},_I=XR,vI=QR,mI=cI,gI=fI,yI=pI,bI=hI,$I=function(n){var t=mI(n);return gI(t)?0:t===0||!yI(t)?t:bI(t)*vI(_I(t))},kI=Mt,wI=kI("RegExp.prototype.test"),xI=Sa.exports,CI=function(n){return xI(wI,n)},SI=function(n){return n===null||typeof n!="function"&&typeof n!="object"},AI=Date.prototype.getDay,TI=function(n){try{return AI.call(n),!0}catch{return!1}},OI=Object.prototype.toString,EI="[object Date]",FI=typeof Symbol=="function"&&!!Symbol.toStringTag,MI=function(n){return typeof n!="object"||n===null?!1:FI?TI(n):OI.call(n)===EI},Ed={exports:{}},PI=Object.prototype.toString,LI=Dg();if(LI){var NI=Symbol.prototype.toString,RI=/^Symbol\(.*\)$/,II=function(n){return typeof n.valueOf()!="symbol"?!1:RI.test(NI.call(n))};Ed.exports=function(n){if(typeof n=="symbol")return!0;if(PI.call(n)!=="[object Symbol]")return!1;try{return II(n)}catch{return!1}}}else Ed.exports=function(n){return!1};var DI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Fd=ly,hy=fy,jI=MI,_y=Ed.exports,BI=function(n,t){if(typeof n=="undefined"||n===null)throw new TypeError("Cannot call method on "+n);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');var r=t==="string"?["toString","valueOf"]:["valueOf","toString"],o,u,f;for(f=0;f<r.length;++f)if(o=n[r[f]],hy(o)&&(u=o.call(n),Fd(u)))return u;throw new TypeError("No default value")},HI=function(n,t){var r=n[t];if(r!==null&&typeof r!="undefined"){if(!hy(r))throw new TypeError(r+" returned for property "+t+" of object "+n+" is not a function");return r}},zI=function(n){if(Fd(n))return n;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var r;if(DI&&(Symbol.toPrimitive?r=HI(n,Symbol.toPrimitive):_y(n)&&(r=Symbol.prototype.valueOf)),typeof r!="undefined"){var o=r.call(n,t);if(Fd(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(jI(n)||_y(n))&&(t="string"),BI(n,t==="default"?"number":t)},vy=zI,WI=function(n){return arguments.length>1?vy(n,arguments[1]):vy(n)},nu=Mt,my=nu("%TypeError%"),gy=nu("%Number%"),GI=nu("%RegExp%"),yy=nu("%parseInt%"),by=Oi,ru=CI,KI=SI,$y=by("String.prototype.slice"),UI=ru(/^0b[01]+$/i),YI=ru(/^0o[0-7]+$/i),qI=ru(/^[-+]0x[0-9a-f]+$/i),JI=["\x85","\u200B","\uFFFE"].join(""),XI=new GI("["+JI+"]","g"),ZI=ru(XI),ky=[`
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003`,"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028","\u2029\uFEFF"].join(""),QI=new RegExp("(^["+ky+"]+)|(["+ky+"]+$)","g"),VI=by("String.prototype.replace"),eD=function(e){return VI(e,QI,"")},tD=WI,nD=function e(n){var t=KI(n)?n:tD(n,gy);if(typeof t=="symbol")throw new my("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new my("Conversion from 'BigInt' to 'number' is not allowed.");if(typeof t=="string"){if(UI(t))return e(yy($y(t,2),2));if(YI(t))return e(yy($y(t,2),8));if(ZI(t)||qI(t))return NaN;var r=eD(t);if(r!==t)return e(r)}return gy(t)},rD=$I,iD=nD,aD=function(n){var t=iD(n);return t!==0&&(t=rD(t)),t===0?0:t},wy=YR,oD=aD,sD=function(n){var t=oD(n);return t<=0?0:t>wy?wy:t},lD=Mt,uD=lD("%TypeError%"),cD=ry,fD=sD,dD=Cd,pD=function(n){if(dD(n)!=="Object")throw new uD("Assertion failed: `obj` must be an Object");return fD(cD(n,"length"))},hD=Mt,_D=hD("%Object%"),vD=Kg,mD=function(n){return vD(n),_D(n)},xy=Mt,gD=xy("%String%"),yD=xy("%TypeError%"),bD=function(n){if(typeof n=="symbol")throw new yD("Cannot convert a Symbol value to a string");return gD(n)},$D=Rg,kD=function(){return $D()&&!!Symbol.toStringTag},wD=String.prototype.valueOf,xD=function(n){try{return wD.call(n),!0}catch{return!1}},CD=Object.prototype.toString,SD="[object String]",AD=kD(),TD=function(n){return typeof n=="string"?!0:typeof n!="object"?!1:AD?xD(n):CD.call(n)===SD},OD=Mt,ED=Oi,FD=OD("%TypeError%"),MD=Y2,PD=ry,LD=RR,ND=GR,RD=pD,ID=mD,DD=bD,jD=TD,BD=ED("String.prototype.split"),Cy=Object("a"),HD=Cy[0]!=="a"||!(0 in Cy),Sy=function(n){var t=ID(this),r=HD&&jD(this)?BD(this,""):t,o=RD(r);if(!ND(n))throw new FD("Array.prototype.forEach callback must be a function");var u;arguments.length>1&&(u=arguments[1]);for(var f=0;f<o;){var p=DD(f),_=LD(r,p);if(_){var v=PD(r,p);MD(n,u,[v,f,r])}f+=1}},zD=function(n){var t=!0,r=!0,o=!1;if(typeof n=="function"){try{n.call("f",function(u,f,p){typeof p!="object"&&(t=!1)}),n.call([null],function(){"use strict";r=typeof this=="string"},"x")}catch{o=!0}return!o&&t&&r}return!1},WD=zD,GD=Sy,Ay=function(){var n=Array.prototype.forEach;return WD(n)?n:GD},KD=Ca,UD=Ay,YD=function(){var n=UD();return KD(Array.prototype,{forEach:n},{forEach:function(){return Array.prototype.forEach!==n}}),n},qD=Ca,JD=Sa.exports,XD=Oi,ZD=Kg,QD=Sy,Ty=Ay,VD=Ty(),ej=YD,tj=XD("Array.prototype.slice"),nj=JD.apply(VD),Oy=function(n,t){return ZD(n),nj(n,tj(arguments,1))};qD(Oy,{getPolyfill:Ty,implementation:QD,shim:ej});var rj=Oy,ij=Mt,aj=ij("%TypeError%"),oj=function(n,t){if(n==null)throw new aj(t||"Cannot call method on "+n);return n},sj=oj,lj=sj,Ey=Oi,uj=Ey("Object.prototype.propertyIsEnumerable"),cj=Ey("Array.prototype.push"),Fy=function(n){var t=lj(n),r=[];for(var o in t)uj(t,o)&&cj(r,[o,t[o]]);return r},fj=Fy,My=function(){return typeof Object.entries=="function"?Object.entries:fj},dj=My,pj=Ca,hj=function(){var n=dj();return pj(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},_j=Ca,vj=Sa.exports,mj=Fy,Py=My,gj=hj,Ly=vj(Py(),Object);_j(Ly,{getPolyfill:Py,implementation:mj,shim:gj});var yj=Ly,bj=Mt,$j=bj("%TypeError%"),kj=function(n,t){if(n==null)throw new $j(t||"Cannot call method on "+n);return n},wj=kj,Ny=Mt,xj=Ny("%String%"),Cj=Ny("%TypeError%"),Sj=function(n){if(typeof n=="symbol")throw new Cj("Cannot convert a Symbol value to a string");return xj(n)},Aj=wj,Tj=Sj,Oj=Oi,Ry=Oj("String.prototype.replace"),Ej=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Fj=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,Iy=function(){var n=Tj(Aj(this));return Ry(Ry(n,Ej,""),Fj,"")},Mj=Iy,Dy="\u200B",jy=function(){return String.prototype.trim&&Dy.trim()===Dy?String.prototype.trim:Mj},Pj=Ca,Lj=jy,Nj=function(){var n=Lj();return Pj(String.prototype,{trim:n},{trim:function(){return String.prototype.trim!==n}}),n},Rj=Sa.exports,Ij=Ca,Dj=Iy,By=jy,jj=Nj,Hy=Rj(By());Ij(Hy,{getPolyfill:By,implementation:Dj,shim:jj});var Bj=Hy,iu=rj,Md=yj,zy=jg,Hj=Bj,zj=function(n){},Wj=String.prototype.replace,Wy=String.prototype.split,au="||||",Pd=function(e){var n=e%100,t=n%10;return n!==11&&t===1?0:2<=t&&t<=4&&!(n>=12&&n<=14)?1:2},Gy={pluralTypes:{arabic:function(e){if(e<3)return e;var n=e%100;return n>=3&&n<=10?3:n>=11?4:5},bosnian_serbian:Pd,chinese:function(){return 0},croatian:Pd,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Pd,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var n=e%10;return 2<=n&&n<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var n=e%100;return n===1?0:n===2?1:n===3||n===4?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function Gj(e){var n={};return iu(Md(e),function(t){var r=t[0],o=t[1];iu(o,function(u){n[u]=r})}),n}function Kj(e,n){var t=Gj(e.pluralTypeToLanguages);return t[n]||t[Wy.call(n,/-/,1)[0]]||t.en}function Uj(e,n,t){return e.pluralTypes[n](t)}function Yj(){var e={};return function(n,t){var r=e[t];return r&&!n.pluralTypes[r]&&(r=null,e[t]=r),r||(r=Kj(n,t),r&&(e[t]=r)),r}}function Ky(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qj(e){var n=e&&e.prefix||"%{",t=e&&e.suffix||"}";if(n===au||t===au)throw new RangeError('"'+au+'" token is reserved for pluralization');return new RegExp(Ky(n)+"(.*?)"+Ky(t),"g")}var Jj=Yj(),Xj=/%\{(.*?)\}/g;function Ld(e,n,t,r,o){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(n==null)return e;var u=e,f=r||Xj,p=typeof n=="number"?{smart_count:n}:n;if(p.smart_count!=null&&e){var _=o||Gy,v=Wy.call(e,au),k=t||"en",w=Jj(_,k),x=Uj(_,w,p.smart_count);u=Hj(v[x]||v[0])}return u=Wj.call(u,f,function(M,z){return!zy(p,z)||p[z]==null?M:p[z]}),u}function kr(e){var n=e||{};this.phrases={},this.extend(n.phrases||{}),this.currentLocale=n.locale||"en";var t=n.allowMissing?Ld:null;this.onMissingKey=typeof n.onMissingKey=="function"?n.onMissingKey:t,this.warn=n.warn||zj,this.tokenRegex=qj(n.interpolation),this.pluralRules=n.pluralRules||Gy}kr.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},kr.prototype.extend=function(e,n){iu(Md(e||{}),function(t){var r=t[0],o=t[1],u=n?n+"."+r:r;typeof o=="object"?this.extend(o,u):this.phrases[u]=o},this)},kr.prototype.unset=function(e,n){typeof e=="string"?delete this.phrases[e]:iu(Md(e||{}),function(t){var r=t[0],o=t[1],u=n?n+"."+r:r;typeof o=="object"?this.unset(o,u):delete this.phrases[u]},this)},kr.prototype.clear=function(){this.phrases={}},kr.prototype.replace=function(e){this.clear(),this.extend(e)},kr.prototype.t=function(e,n){var t,r,o=n??{};if(typeof this.phrases[e]=="string")t=this.phrases[e];else if(typeof o._=="string")t=o._;else if(this.onMissingKey){var u=this.onMissingKey;r=u(e,o,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return typeof t=="string"&&(r=Ld(t,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},kr.prototype.has=function(e){return zy(this.phrases,e)},kr.transformPhrase=function(n,t,r){return Ld(n,t,r)};var Uy=kr,Zj={install(e,n){const t=e.i18n=new Pa(n);e.mixin({beforeCreate:function(){const{$parent:o,$options:u}=this,{i18n:f}=u;if(f){const p=new Pa(f);this.$t=p.t.bind(p),this.$i18n=p}else!o||!o.$t?(this.$t=t.t.bind(t),this.$i18n=t):o.$t&&(this.$t=o.$t)},created:function(){const{$i18n:o}=this;!o||(this._provided||(this._provided={}),this._provided.$i18n=o)}})}};function Pa(e){e===void 0&&(e={});const{locale:n,messages:t={}}=e;Uy.call(this,Ft({phrases:t[n],allowMissing:!0,interpolation:{prefix:"%",suffix:"%"}},e)),this.messages=t}Pa.prototype=Object.create(Uy.prototype),Pa.prototype.constructor=Pa,Pa.prototype.locale=function(e){return e&&(this.currentLocale=e,this.replace(this.messages[e])),this.currentLocale};var Qj=e=>{const n={};e.mixin({created:function(){const{models:r}=this.$options;!r||(this._provided||(this._provided={}),Tn(r,(o,u)=>{const f=n[u]||o,p=No(f)?new f({name:u,parent:this}):new e(Ft({name:u,parent:this},f));this[u]=this._provided[u]=p,this.$on("hook:beforeDestroy",()=>this[u].$destroy())}))}}),e.model=(t,r)=>n[t]=r,e.config.optionMergeStrategies.models=e.config.optionMergeStrategies.props},Vj=e=>{const n={},t=function(r){const o=[];return Object.keys(r).forEach(u=>{if(!t[u])return;const f=Je(r[u])?r[u]:[r[u]];for(let p=0;p<f.length;p++)!f[p]||(n[f[p]]||(n[f[p]]=t[u](f[p])),o.push(n[f[p]]))}),Promise.all(o)};tA(t,{css(r){return new Promise((o,u)=>{const f=document.createElement("link");f.href=r,f.type="text/css",f.rel="stylesheet",f.onload=()=>o(r),f.onerror=()=>u(r),document.head.appendChild(f)})},js(r){return new Promise((o,u)=>{const f=document.createElement("script");f.src=r,f.onload=()=>o(r),f.onerror=()=>u(r),document.head.appendChild(f)})},image(r){return new Promise((o,u)=>{const f=new Image;f.onload=()=>o(r),f.onerror=()=>u(r),f.src=r})}}),e.asset=t,e.prototype.$asset=t},eB=e=>{let{prototype:n}=e;return n.$notify=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];Tl(r[0])?r[0].message=this.$t(r[0].message):typeof r[0]=="string"&&(r[0]=this.$t(r[0])),Pn.notification.apply(null,r)}};function tB(){const{$config:{locale:e,locales:n}}=window;Te.use(Zj,{locale:e,messages:n})}var Yy={exports:{}};function ou(e){var n,t,r,o,u,f,p=Object.create(null);if(this[xr]=p,!!e)if(typeof e=="string")for(e.charAt(0)==="?"&&(e=e.slice(1)),o=e.split("&"),u=0,f=o.length;u<f;u++)r=o[u],n=r.indexOf("="),-1<n?La(p,Nd(r.slice(0,n)),Nd(r.slice(n+1))):r.length&&La(p,Nd(r),"");else if(qy(e))for(u=0,f=e.length;u<f;u++)r=e[u],La(p,r[0],r[1]);else if(e.forEach)e.forEach(oB,p);else for(t in e)La(p,t,e[t])}var qy=Array.isArray,wr=ou.prototype,nB=/[!'\(\)~]|%20|%00/g,rB=/\+/g,iB={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"},aB=function(e){return iB[e]},xr="__URLSearchParams__:"+Math.random();function oB(e,n){La(this,n,e)}function La(e,n,t){var r=qy(t)?t.join(","):t;n in e?e[n].push(r):e[n]=[r]}function Nd(e){return decodeURIComponent(e.replace(rB," "))}function Jy(e){return encodeURIComponent(e).replace(nB,aB)}wr.append=function(n,t){La(this[xr],n,t)},wr.delete=function(n){delete this[xr][n]},wr.get=function(n){var t=this[xr];return n in t?t[n][0]:null},wr.getAll=function(n){var t=this[xr];return n in t?t[n].slice(0):[]},wr.has=function(n){return n in this[xr]},wr.set=function(n,t){this[xr][n]=[""+t]},wr.forEach=function(n,t){var r=this[xr];Object.getOwnPropertyNames(r).forEach(function(o){r[o].forEach(function(u){n.call(t,u,o,this)},this)},this)},wr.toJSON=function(){return{}},wr.toString=function(){var n=this[xr],t=[],r,o,u,f;for(o in n)for(u=Jy(o),r=0,f=n[o];r<f.length;r++)t.push(u+"="+Jy(f[r]));return t.join("&")},ou=Yy.exports=$a.URLSearchParams||ou,function(e){var n=function(){try{return!!Symbol.iterator}catch{return!1}}();"forEach"in e||(e.forEach=function(r,o){var u=Object.create(null);this.toString().replace(/=[\s\S]*?(?:&|$)/g,"=").split("=").forEach(function(f){!f.length||f in u||(u[f]=this.getAll(f)).forEach(function(p){r.call(o,p,f,this)},this)},this)}),"keys"in e||(e.keys=function(){var r=[];this.forEach(function(u,f){r.push(f)});var o={next:function(){var u=r.shift();return{done:u===void 0,value:u}}};return n&&(o[Symbol.iterator]=function(){return o}),o}),"values"in e||(e.values=function(){var r=[];this.forEach(function(u){r.push(u)});var o={next:function(){var u=r.shift();return{done:u===void 0,value:u}}};return n&&(o[Symbol.iterator]=function(){return o}),o}),"entries"in e||(e.entries=function(){var r=[];this.forEach(function(u,f){r.push([f,u])});var o={next:function(){var u=r.shift();return{done:u===void 0,value:u}}};return n&&(o[Symbol.iterator]=function(){return o}),o}),n&&!(Symbol.iterator in e)&&(e[Symbol.iterator]=e.entries),"sort"in e||(e.sort=function(){for(var r=this.entries(),o=r.next(),u=o.done,f=[],p=Object.create(null),_,v,k;!u;)k=o.value,v=k[0],f.push(v),v in p||(p[v]=[]),p[v].push(k[1]),o=r.next(),u=o.done;for(f.sort(),_=0;_<f.length;_++)this.delete(f[_]);for(_=0;_<f.length;_++)v=f[_],this.append(v,p[v].shift())})}(ou.prototype);var su=Yy.exports;function sB(){const{$config:e,$customizer:n,location:t}=window,r={assets:`${n.base}/vendor/yootheme/theme/assets`,ignore:["custom_less"],apikey:n.config.yootheme_apikey,...e,...n,...lB(new su(t.search),["site","section"])};return vg(r.panels,{ASSETS:r.assets}),["less","menu.positions","menu.items"].forEach(o=>kt(un(r.config,o))&&Um(r.config,o,{})),bg.add(r)}function lB(e,n){return n.reduce((t,r)=>e.has(r)?{...t,[r]:e.get(r)}:t,{})}function Xy(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function uB(e){var n=e.charAt(e.length-1),t=parseInt(e,10),r=new Date;switch(n){case"Y":r.setFullYear(r.getFullYear()+t);break;case"M":r.setMonth(r.getMonth()+t);break;case"D":r.setDate(r.getDate()+t);break;case"h":r.setHours(r.getHours()+t);break;case"m":r.setMinutes(r.getMinutes()+t);break;case"s":r.setSeconds(r.getSeconds()+t);break;default:r=new Date(e)}return r}function cB(e){var n="";for(var t in e)if(Xy(e,t))if(/^expires$/i.test(t)){var r=e[t];typeof r!="object"&&(r+=typeof r=="number"?"D":"",r=uB(r)),n+=";"+t+"="+r.toUTCString()}else/^secure$/.test(t)?e[t]&&(n+=";"+t):n+=";"+t+"="+e[t];return Xy(e,"path")||(n+=";path=/"),n}function Rd(){return Rd=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Rd.apply(this,arguments)}function Id(e,n,t,r){t===void 0&&(t=encodeURIComponent),typeof t=="object"&&t!==null&&(r=t,t=encodeURIComponent);var o=cB(r||{}),u=typeof t=="function"?t(n):n,f=e+"="+u+o;document.cookie=f}function fB(e,n){var t={expires:-1};return n&&(t=Rd({},n,t)),Id(e,"a",t)}function dB(e){let{id:n,cookie:t}=e;Id(t,n,{expires:"1D"}),V.on(window,"pageshow",()=>Id(t,n,{expires:"1D"})),V.on(window,"pagehide",()=>fB(t))}function pB(){const{tinyMCE:e}=window;e&&(e.activeEditor=e.activeEditor||{windowManager:{close(){}}})}function hB(e){let{app:n,ignore:t=[]}=e;bg.set("ignore",t.concat("bootstrap")),n.extend({mounted(){this.$watch(()=>this.Config.values.bootstrap,()=>this.Styler.compile())},events:{executeStyle(r,o){let{style:u}=o;u&&!this.Config.values.bootstrap&&(u.imports=gr(u.imports,(f,p)=>Ct(p,"/bootstrap")?"// empty":f))}}})}var _B={name:"styler-tests",data:()=>({active:!1,test:"global",config:{}}),watch:{active:"run",test:"run"},methods:{run(){if(!this.window)return;const e=this.window,n=e.document,t=n.documentElement,r=this.test==="global"?"index":this.test.replace(" ","-"),o=`${ae.base}/vendor/yootheme/styler/tests/`,u=()=>{V.remove(this.base),V.remove(this.css),t.replaceChild(this.body,n.body),this.body=this.css=null};this.active&&r?(this.body||(this.body=n.body,this.base=V.$(`<base href="${this.$url(o)}">`),this.css=V.$('<link rel="stylesheet" href="tests.css">'),e.$customizer||(e.$customizer={}),e.$customizer.base=ae.base),this.$http.get(`${o}${r}.html`).then(f=>{let{body:p}=f;V.prepend(n.head,this.base),V.append(n.head,this.css);const _=V.$("<body>");t.replaceChild(_,n.body),V.append(_,n.createRange().createContextualFragment(p)),V.addClass(_,"uk-animation-fade"),V.on(_,"click",'a[href="#"]',v=>v.preventDefault())},u)):this.body&&u()}},events:{readyPreview(e,n){let{window:t}=n;this.window=t,this.run()},styleTest(e,n){this.active=n},openPanel(e,n){let{name:t,title:r}=n;WF(t,"styleFields")&&(this.test=r)},closePanel(){this.test="global"}}},vB={inject:["Styler"],methods:{inject(){const e=V.$("#custom_less");e&&V.prepend(e,this.$el)}},events:{openPanel(){this.$nextTick(this.inject)},compileStyle:"inject"}};const mB=vB;var gB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",e._l(e.Styler.style.errors,function(r){return t("p",{key:r,staticClass:"uk-text-danger"},[e._v(`
`+e._s(e.$t("Error: %error%",{error:r}))+`
`)])}),0)},yB=[];const bB=Z({render:gB,staticRenderFns:yB},void 0,mB,void 0,!1,void 0,!1,void 0,void 0,void 0);ug[1].fonts;function $B(e){return e=Jm(e,`'"~`),e&&e.split("&subset=")[1]||""}function kB(e,n){return e.map(t=>`${t.name.replace(/ /g,"+")}${t.variants?`:${t.variants.replace(/ /g,"")}`:""}`).sort().join("|").concat(n?`&subset=${n}`:"")}function Dd(e){return e=Jm(e,`'"~`),ba(e?e.split("&subset=")[0].split("|").map(n=>{const[t,r=""]=n.split(":");return{name:t.replace(/\+/g," "),variants:r}}):[],"name")}function Zy(e){return e.reduce((n,t)=>{let{name:r,variants:o}=t;return{[r]:o,...n}},{})}var wB={name:"FontsModel",inject:["Styler"],computed:{style(){return this.Styler.style},internalFontVariants(){return Zy(Dd(this.style.styleFonts))},fonts(){const e=Dd(this.style.fonts);return"@internal-fonts"in this.Styler.less&&Dd(this.Styler.less["@internal-fonts"]).forEach(n=>{const t=Nl(e,{name:n.name});~t&&(e[t]=n)}),e},variants(){return Zy(this.fonts)},subsets(){return $B(this.Styler.less["@internal-fonts"])}},methods:{set(e,n){let{name:t}=n,r=this.subsets;t==="subsets"?r=e.replace(/ /g,""):$t(this.fonts,{name:t}).variants=e,this.Styler.set("@internal-fonts",`~'${kB(this.fonts,r)}'`)},isSet(e){let{name:n}=e;return n==="subsets"?this.subsets:n in this.internalFontVariants&&this.internalFontVariants[n]!==this.variants[n]},reset(e){let{name:n}=e;this.set(n==="subsets"?"":this.internalFontVariants[n],{name:n})}}},xB={name:"StyleInspector",created(){this.$config=ae.sections.styler},events:{readyPreview(e,n){let{document:t}=n;const{body:r,documentElement:o}=t;this.body=r;const u=t.createElement("div");V.addClass(u,"yo-inspect"),r.appendChild(u),CB(o,u);let f;V.on(o,"mousemove",p=>{let{target:_,pageX:v,pageY:k}=p;if(!this.active){f&&(u.hidden=!0,f=null);return}f!==_&&(f=_,u.hidden=!1,u.textContent=Wt(vt(this.$config.components,(w,x)=>{let{inspect:M}=w;return M&&V.matches(f,M)?this.$t(x.replace(/-/g," ")):null})).join(", ")),V.css(u,{top:k,left:v})}),V.on(o,"mouseleave",()=>{f=null,u.hidden=!0})},unloadPreview(){clearTimeout(this.hoverTimer)},hoverComponent(e,n,t){let{target:r}=n;const o=un(this.$config,`components.${t}.hover`);if(clearTimeout(this.hoverTimer),o&&this.body){let u;this.hoverTimer=setTimeout(()=>V.addClass(u=V.$$(o,this.body),"yo-hover"),50),V.once(r,"mouseleave",()=>{V.removeClass(u,"yo-hover"),clearTimeout(this.hoverTimer)})}},openPanel(e,n){let{name:t}=n;this.active=this.active||t==="styler"},closePanel(e,n,t,r){let{name:o}=r===void 0?{}:r;this.active=o==="styler"}}};function CB(e,n){new MutationObserver(t=>t.forEach(r=>{let{addedNodes:o}=r;return V.toNodes(o).forEach(u=>u.tagName==="BODY"&&u.appendChild(u.ownerDocument.adoptNode(n)))})).observe(e,{childList:!0})}var SB={name:"StyleModal",inject:["Library","Modal"],props:{id:{type:String,required:!0},customization:{type:Object,required:!0},edit:{type:Boolean,default:!1}},computed:{title(){return this.$t("Customization")},exists(){return!!Rl(this.Library.styles,(e,n)=>{let{name:t}=e;return this.customization.name===t&&this.id!==n})}}};const AB=SB;var TB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("form",{on:{submit:function(r){r.preventDefault(),e.customization.name&&e.$emit("resolve",e.customization)}}},[t("div",{staticClass:"uk-modal-header"},[t("h2",{staticClass:"uk-modal-title"},[e._v(`
`+e._s(e.edit?e.$t("Rename %type%",{type:e.title}):e.$t("Save %type%",{type:e.title}))+`
`)])]),e._v(" "),t("div",{staticClass:"uk-modal-body uk-form-stacked"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-element-save-name"}},[e._v(e._s(e.$t("Name")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.customization.name,expression:"customization.name"}],staticClass:"uk-input",attrs:{id:"form-element-save-name",placeholder:e.$t("Customization Name"),type:"text",required:"",autofocus:""},domProps:{value:e.customization.name},on:{input:function(r){r.target.composing||e.$set(e.customization,"name",r.target.value)}}}),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.exists,expression:"exists"}],staticClass:"uk-text-muted uk-margin-small"},[e._v(`
`+e._s(e.$t('"%name%" already exists in the library, it will be overwritten when saving.',e.customization))+`
`)])]),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!e.customization.name},on:{click:function(r){return e.Modal.resolve(e.customization)}}},[e._v(`
`+e._s(e.$t("Save"))+`
`)])])])},OB=[],EB=Z({render:TB,staticRenderFns:OB},void 0,AB,void 0,!1,void 0,!1,void 0,void 0,void 0);const jd="styler.styles.filter";var FB={props:{styles:{type:Array,required:!0}},data:e=>{let{reset:n}=e;return{filter:Rt[jd]?JSON.parse(Rt[jd]):n()}},computed:{filtered(){return ba(Wt(this.styles,e=>Ll(this.filter,(n,t)=>n?t==="style"?n===!0?!e.substyle:br(e.name,n):e[t]===n||Ct(e[t],n):!0)),"style")}},watch:{filter:{handler(e){Rt[jd]=JSON.stringify(e)},deep:!0}},created(){this.$config=ae},methods:{some:Jo,reset(){return{style:"",background:"",color:"",type:""}},options(e){return Wt(Xm(e==="style"?Wt(this.styles,n=>!n.substyle).map(n=>n.name):ya(this.styles,(n,t)=>n.concat(t[e]),[]))).sort()},select(e){let{id:n}=e;this.$emit("select",n)}}};const MB=FB;var PB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Style |||| %smart_count% Styles",e.filtered.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.style,expression:"filter.style"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"style",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All styles")))]),e._v(" "),t("option",{domProps:{value:!0}},[e._v(e._s(e.$t("Main styles")))]),e._v(" "),e._l(e.options("style"),function(r){return t("option",{key:r,domProps:{value:r}},[e._v(`
`+e._s(r)+`
`)])})],2)]),e._v(" "),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.background,expression:"filter.background"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"background",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All backgrounds")))]),e._v(" "),e._l(e.options("background"),function(r){return t("option",{key:r,domProps:{value:r}},[e._v(`
`+e._s(r)+`
`)])})],2)]),e._v(" "),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.color,expression:"filter.color"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"color",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All colors")))]),e._v(" "),e._l(e.options("color"),function(r){return t("option",{key:r,domProps:{value:r}},[e._v(`
`+e._s(r)+`
`)])})],2)]),e._v(" "),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.type,expression:"filter.type"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"type",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All types")))]),e._v(" "),e._l(e.options("type"),function(r){return t("option",{key:r,domProps:{value:r}},[e._v(`
`+e._s(r)+`
`)])})],2)]),e._v(" "),t("div",[t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!e.some(e.filter)},on:{click:function(r){e.filter=e.reset()}}},[e._v(`
`+e._s(e.$t("Reset"))+`
`)])])])])]),e._v(" "),t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[t("ul",{staticClass:"uk-grid-medium uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s",attrs:{"uk-grid":""}},e._l(e.filtered,function(r){return t("li",{key:r.name},[t("div",{staticClass:`
uk-panel
uk-box-shadow-medium
uk-box-shadow-hover-large
uk-transition-toggle
`,attrs:{tabindex:"0"}},[t("div",{staticClass:"uk-background-cover uk-background-top-center uk-position-cover",attrs:{"data-src":r.preview,"uk-img":""},on:{error:function(o){return e.$set(r,"preview",e.$config.assets+"/images/style-library-placeholder.png")}}}),e._v(" "),t("canvas",{attrs:{width:"1200",height:"900"}}),e._v(" "),t("div",{staticClass:`
uk-label
yo-label
uk-position-top-right uk-position-small uk-transition-fade
`},[e._v(`
`+e._s(r.name)+`
`)]),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(o){return o.preventDefault(),e.select(r)}}})])])}),0)])])},LB=[],NB=Z({render:PB,staticRenderFns:LB},void 0,MB,void 0,!1,void 0,!1,void 0,void 0,void 0),RB={name:"StyleLibrary",components:{DragOver:Yf},directives:{Confirm:$r},inject:["Library","Styler"],props:{styles:{type:Array}},data:()=>({search:""}),computed:{styleList(){return Object.entries(this.Library.styles).filter(e=>{let[,{name:n}]=e;return!this.search||n.toLowerCase().includes(this.search.toLowerCase())}).sort((e,n)=>{let[,t]=e,[,r]=n;return t.name.localeCompare(r.name,void 0,{numeric:!0})})}},methods:{getStyleName(e){return $t(this.styles,{id:e}).name},select(e){this.$emit("select",e)},isCurrentStyle(e){return e.style===this.Styler.style.id&&Hm(this.Styler.less,e.less)},exportStyle(e){Kr(`${e.name||"style"}.json`,JSON.stringify(e))},exportStyles(){Kr("styles.json",JSON.stringify(Object.values(this.Library.styles)))},async importStyle(e){if(Array.isArray(e)){for(const t in e)await this.importStyle(e[t]);return}if(!e.name||!e.style)throw new Error("Invalid style.");const n=this.Library.findStyle(e.name);n&&!window.confirm(this.$t(`Style '${e.name}' already exists in the library, do you want to overwrite it?`))||(await this.$trigger("saveStyle",[e,n],!0),this.$notify(`Style '${e.name}' uploaded successfully.`,"success"))},formatDate(e){return e?new Date(e).toLocaleString():this.$t("-")},async upload(e){const n=e.currentTarget.files||e.dataTransfer?.files||[];for(let t=0;t<n.length;t++){const r=n[t];try{const{target:{result:o}}=await Wl(r);await this.importStyle(JSON.parse(o))}catch{this.$notify(`Error loading style '${r.name}'`,"danger")}}this.$refs.input.value=""}}};const IB=RB;var DB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("DragOver",{on:{drop:e.upload}},[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Style |||| %smart_count% Styles",e.styleList.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("button",{directives:[{name:"show",rawName:"v-show",value:e.styleList.length,expression:"styleList.length"}],staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.exportStyles.apply(null,arguments)}}},[e._v(`
`+e._s(e.$t("Download All"))+`
`)])]),e._v(" "),t("div",[t("div",{attrs:{"uk-form-custom":""}},[t("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]",multiple:"multiple"},on:{change:e.upload}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Upload Style"))+`
`)])])]),e._v(" "),t("div",[t("button",{staticClass:"uk-button uk-button-primary uk-margin-small-left",attrs:{type:"button"},on:{click:function(r){return e.Library.saveStyle({style:e.Styler.style.id,less:e.Styler.less})}}},[e._v(`
`+e._s(e.$t("Save Style"))+`
`)])])])])]),e._v(" "),e.styleList.length?t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[t("table",{staticClass:"uk-table uk-table-divider uk-table-small uk-table-hover"},[t("thead",[t("tr",[t("th",{staticClass:"uk-table-expand"},[e._v(e._s(e.$t("Name")))]),e._v(" "),t("th",{staticClass:"uk-width-medium uk-text-center"},[e._v(e._s(e.$t("Current Style")))]),e._v(" "),t("th",{staticClass:"uk-width-medium"},[e._v(e._s(e.$t("Base Style")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-nowrap"},[e._v(e._s(e.$t("Last Modified")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink"})])]),e._v(" "),t("tbody",e._l(e.styleList,function(r){var o=r[0],u=r[1];return t("tr",{key:o,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[t("td",{staticClass:"uk-table-link"},[t("a",{staticClass:"uk-link-heading uk-modal-close",attrs:{href:""},on:{click:function(f){return f.preventDefault(),e.select(u)}}},[e._v(`
`+e._s(u.name)+`
`)])]),e._v(" "),t("td",{staticClass:"uk-text-center"},[e.isCurrentStyle(u)?t("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}):t("span",[e._v("\u2013")])]),e._v(" "),t("td",[e._v(e._s(e.getStyleName(u.style)))]),e._v(" "),t("td",{staticClass:"uk-text-nowrap"},[t("time",{attrs:{datetime:u.modified}},[e._v(e._s(e.formatDate(u.modified)))])]),e._v(" "),t("td",[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap uk-invisible-hover"},[t("li",[t("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Rename"),"uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(f){return e.Library.editStyle(u,o)}}})]),e._v(" "),t("li",[t("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Download"),"uk-icon":"download","uk-tooltip":"delay: 500"},on:{click:function(f){return e.exportStyle(u)}}})]),e._v(" "),t("li",[t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(f){return e.Library.deleteStyle(u,o)}}})])])])])}),0)])]):t("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No style found.")))])])},jB=[],BB=Z({render:DB,staticRenderFns:jB},void 0,IB,void 0,!1,void 0,!1,void 0,void 0,void 0),HB={components:{Styles:NB,Switcher:xa,StyleLibrary:BB},inject:["Library","Modal","Styler"],props:{styles:{type:Array,required:!0}}};const zB=HB;var WB=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("Switcher",{attrs:{tabs:["styles","my styles"],storage:"styler.library.tab"}},[t("div",{staticClass:"uk-modal-body",attrs:{slot:"styles","uk-overflow-auto":""},slot:"styles"},[t("Styles",{attrs:{styles:e.styles},on:{select:e.Modal.resolve}})],1),e._v(" "),t("div",{staticClass:"uk-modal-body",attrs:{slot:"my styles","uk-overflow-auto":""},slot:"my styles"},[t("StyleLibrary",{attrs:{styles:e.styles},on:{select:e.Modal.resolve}})],1)])],1)},GB=[],KB=Z({render:WB,staticRenderFns:GB},void 0,zB,void 0,!1,void 0,!1,void 0,void 0,void 0),UB={name:"Library",inject:["Config","Styler"],data:()=>({styles:{}}),methods:{saveStyle(e,n){return n===void 0&&(n=zl()),this.$trigger("editStyle",[e,n],!0)},editStyle(e,n){return this.$trigger("editStyle",[e,n,!0],!0)},deleteStyle(e,n){return this.$trigger("deleteStyle",[n],!0).then(()=>(this.$delete(this.styles,n),e))},findStyle(e){return Rl(this.styles,{name:e})}},events:{async selectStyle(){const{styles:e,style:n}=this.Styler;let t=await this.$modal(KB,{styles:e}).show({container:!0});if(!!t){if(at(t)){if(this.Config.dirty&&n.isEdited&&!confirm(this.$t("Do you really want to replace the current style?")))return;this.$set(this.Config.values,"less",{...t.less})}else t={style:t};this.Styler.setStyle(t.style)}},async editStyle(e,n,t,r){if(n=await this.$modal(EB,{id:t,customization:cn({},n,{modified:new Date().toISOString()}),edit:r}).show({width:"2xlarge"}),!n)return n;const o=this.findStyle(n.name);return o&&t!==o&&await this.deleteStyle(this.styles[o],o),this.$trigger("saveStyle",[n,t],!0)},saveStyle(e,n,t){return this.$set(this.styles,t,n),n}}};let YB=0;class Qy{constructor(n){this._callbacks={},this._worker=typeof n=="string"?new Worker(n):n,this._worker.addEventListener("message",t=>{let{data:r}=t;if(!r)return;const[o,u,f]=r;if(!(o in this._callbacks))return;const[p,_]=this._callbacks[o];delete this._callbacks[o],u?_(u):p(f)})}postMessage(n){const t=YB++;return new Promise((r,o)=>{this._callbacks[t]=[r,o],this._worker.postMessage([t,n])})}terminate(){this._worker.terminate()}}const qB=["hover","focus","onclick","active","checked","disabled"];function lu(e,n){return Nl(On(n)?[n]:n,t=>e===t||e.match(`^${t.replace(/\*/g,".*")}$`))+1}let Vy,uu;const Bd={};var JB={name:"StyleModel",inject:["Config"],data:()=>({id:"",name:"",style:"",substyle:"",background:[],color:[],type:[],variables:{},css:null,rtl:null,errors:[],isEdited:!1}),computed:{groups(){const e=yr(this.variables,(n,t)=>!lu(t,this.$config.ignore));return XB(e,this.$config.components)},components(){return gr(this.groups,(e,n)=>n in this.$config.components?this.$config.components[n]:{name:n})},values(){return gr(this.variables,"value")},substyleValues(){return gr(yr(this.variables,"style"),"value")},fonts(){return this.values["@internal-fonts"]},styleFonts(){return"@internal-fonts"in this.variables?this.variables["@internal-fonts"].original:""},hasFonts(){return!!this.fonts}},created(){this.$config=ae.sections.styler,this.parseVariables()},methods:{toLessString(e){return ZB({...this.substyleValues,...e},this.groups)},isComputed(e){let{name:n,internal:t}=e;return this.variables[n].computed||t&&this.variables[t].computed},async parseVariables(){const{variables:e,errors:n}=await this.execute("vars");this.errors=n,this.variables=e},compile:Vy=IM(async function(){this.loading=!0,this.isEdited=!0,this.$trigger("compileStyle",[!0]);const{css:e,variables:n,errors:t}=await this.execute("css");this.css=e,this.variables=n,this.errors=t,this.rtl=null,this.loading=!1,this.$trigger("compileStyle",[!1])},150),async compileRtl(){return this.rtl?this.rtl:this.rtl=(await this.executeImmediate("rtl")).rtl},minify(){return this.executeImmediate("minify")},async execute(e,n){n===void 0&&(n=!0),this.errors=[];const t=await this.load();let{less:r,custom_less:o}=this.Config.values;this.substyle&&(r={...r,"@internal-style":this.substyle}),n&&uu&&uu.terminate();const u=cn({},{style:t,input:o,vars:r});this.$trigger("executeStyle",[u]);const f=new Qy(this.$config.worker);return uu=n?f:uu,f.postMessage({cmd:e,data:u})},async executeImmediate(e){Vy.flush();const[n,{css:t}]=await Promise.all([this.load(),this.css&&!this.loading?{css:this.css}:this.execute("css",!1)]);return new Qy(this.$config.worker).postMessage({cmd:e,data:{style:n,css:t}})},load(e){const{id:n,style:t}=this;if(!!n)return(e||!(t in Bd))&&(Bd[t]=this.$http.get(this.$config.route,{params:{id:t}}).then(r=>{let{body:{imports:o,vars:u,desturl:f,filename:p}}=r;return{id:n,imports:o,vars:u,filename:p,desturl:f,filepath:p.replace(/less\/[^/]*\/?$/,"css/")}},()=>console.error(`Unable to load style (${t}).`))),Bd[t]}}};function XB(e,n){const t=gr(n,r=>{let{groups:o={}}=r;return vt(o,(u,f)=>({group:u,name:f}))});return Bn(ba(vt(e,(r,o)=>{let{file:u}=r;const f=QB(o,n)??u,p=VF(t[f],v=>{let{group:k}=v;return lu(o,k)}),_=Nl(qB,v=>o.match(new RegExp(`-${v}-`)));return{name:o,component:f,index:p,group:~p?t[f][p].name:"",state:_,notGlobal:f!=="global",notTheme:f!=="theme",isInternal:br(o,"@internal-")}}),["notGlobal","notTheme","component","isInternal","index","state","name"]).map(r=>qo(r,["name","component","group"])),"component")}function ZB(e,n){const t=ya(n,(o,u,f)=>{if(br(f,"_"))return o;const p=ya(n[f],(_,v)=>{let{name:k}=v;return k in e&&(_+=`${k}: ${e[k]};
`,delete e[k]),_},"");return o+(p?`//
// ${eN(f)}
//
${p}
`:"")},""),r=ya(e,(o,u,f)=>`${o}${f}: ${e[f]};
`,"");return`${r?`${r}
`:""}${t}`}function QB(e,n){for(const[t,{groups:r={}}]of Object.entries(n))for(const o of[`@${t}-*`].concat(Object.values(r)))if(lu(e,o))return t}var VB={name:"StylerModel",inject:["Config"],data:()=>({styles:eH(ae.sections.styler.styles)}),computed:{style(){const e=this.Config.values.style;return $t(this.$children,{id:e})||new Te({parent:this,extends:JB,data:$t(this.styles,{id:e})||this.styles[0]})},less(){return this.Config.values.less},lessString(){return this.style.toLessString(this.less)},lessInput(){const{style:e,less:n,custom_less:t}=this.Config.values;return JSON.stringify({style:e,less:n,custom_less:t})}},watch:{lessInput:"compile"},methods:{isCustomized(e){let{name:n,internal:t}=e===void 0?{}:e;return n?n in this.less||t&&t in this.less:!kt(this.less)},isCustomizedComponent(e){return Boolean(this.style.groups[e]?.some(this.isCustomized))},resetComponent(e){this.style.groups[e].forEach(n=>{this.remove(n.name),this.remove(n.internal)})},reset(){this.$set(this.Config.values,"less",{}),this.Config.dirty=!0},set(e,n){this.$set(this.less,e,n),this.Config.dirty=!0},remove(e){this.$delete(this.less,e),this.Config.dirty=!0},setStyle(e){this.$set(this.Config.values,"style",e),this.Config.change(e,{name:"style"})},compile(){return this.style.compile()},rtl(){return this.style.compileRtl()},minify(){return this.style.minify()}}};function eH(e){return e.reduce((n,t)=>n.concat([{...t,style:t.id}],vt(t.styles,(r,o)=>({...r,id:`${t.id}:${o}`,name:`${t.name} - ${r.name}`,style:t.id,substyle:o}))),[])}var eb={},Hd,zd=Object.assign||lH,Wd=Array.isArray;function tH(e){var n=e.set,t=e.config;Hd=n,eb=t}function tb(e,n){n===void 0&&(n="#41B883"),typeof console!="undefined"&&eb.devtools&&console.log("%c vue-fields %c "+e+" ","color: #fff; background: #35495E; padding: 1px; border-radius: 3px 0 0 3px;","color: #fff; background: "+n+"; padding: 1px; border-radius: 0 3px 3px 0;")}function Gd(e,n){n===void 0&&(n="#DB6B00"),tb(e,n)}function cu(e){return e!==null&&typeof e=="object"}function nH(e){return typeof e=="string"}function rH(e){return typeof e=="function"}function fu(e){return typeof e=="undefined"}function nb(e,n,t){for(var r=Wd(n)?n:n.split("."),o=0;o<r.length;o++)if(cu(e)&&!fu(e[r[o]]))e=e[r[o]];else return t;return e}function iH(e,n,t){for(var r=Wd(n)?n:n.split(".");r.length>1;){var o=r.shift();cu(e[o])||Hd(e,o,{}),e=e[o]}Hd(e,r.shift(),t)}var rb={},aH=/((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.-]*)?/g,oH=/([^"']+)((.)(?:[^\3\\]|\\.)*?\3|.)?/g;function sH(e){return rb[e]=rb[e]||Function("$values","$context","with($context){return "+e.replace(oH,function(n,t,r){return r===void 0&&(r=""),t.replace(aH,function(o,u,f){return u===void 0&&(u=""),o?""+u+(f?"$get('"+f+"')":""):""})+r})+"}")}function ib(e,n){var t,r;if(typeof e.length=="number")for(t=0;t<e.length;t++)n.call(e[t],e[t],t);else if(cu(e))for(r in e)e.hasOwnProperty(r)&&n.call(e[r],e[r],r);return e}function lH(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return t.forEach(function(o){Object.keys(o||{}).forEach(function(u){return e[u]=o[u]})}),e}var Ue={inject:["Fields"],props:{field:{type:Object,required:!0},values:{type:Object,required:!0}},data:function(){return zd({name:"",label:"",attrs:{},options:[],default:void 0},this.field)},computed:{value:{get:function(){return nb(this.values,this.name)},set:function(n){this.$emit("change",n,this)}},attributes:{get:function(){return this.Fields.evaluate(this.enable)?this.attrs:zd({disabled:"true"},this.attrs)}}},created:function(){fu(this.value)&&!fu(this.default)&&(this.value=this.default)},methods:{filterOptions:function(n){var t=this,r=[];return n?(ib(n,function(o,u){cu(o)?r.push({label:u,options:t.filterOptions(o)}):r.push({text:u,value:o})}),r):(Gd("Invalid options provided for "+this.name),r)}}},uH={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("input",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],attrs:{type:"text"},domProps:{value:n.value},on:{input:function(u){u.target.composing||(n.value=u.target.value)}}},"input",n.attributes,!1))},staticRenderFns:[],extends:Ue},cH={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("textarea",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],domProps:{value:n.value},on:{input:function(u){u.target.composing||(n.value=u.target.value)}}},"textarea",n.attributes,!1))},staticRenderFns:[],extends:Ue},fH={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("div",[n._l(n.filterOptions(n.options),function(o){return[r("input",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],attrs:{name:n.name,type:"radio"},domProps:{value:o.value,checked:n._q(n.value,o.value)},on:{change:function(f){n.value=o.value}}},"input",n.attributes,!1)),n._v(" "),r("label",[n._v(n._s(o.text))])]})],2)},staticRenderFns:[],extends:Ue},dH={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("input",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(n.value)?n._i(n.value,null)>-1:n.value},on:{change:function(u){var f=n.value,p=u.target,_=!!p.checked;if(Array.isArray(f)){var v=null,k=n._i(f,v);p.checked?k<0&&(n.value=f.concat([v])):k>-1&&(n.value=f.slice(0,k).concat(f.slice(k+1)))}else n.value=_}}},"input",n.attributes,!1))},staticRenderFns:[],extends:Ue},pH={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("select",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],on:{change:function(u){var f=Array.prototype.filter.call(u.target.options,function(p){return p.selected}).map(function(p){var _="_value"in p?p._value:p.value;return _});n.value=u.target.multiple?f:f[0]}}},"select",n.attributes,!1),[n._l(n.filterOptions(n.options),function(o){return[o.label?r("optgroup",{attrs:{label:o.label}},n._l(o.options,function(u){return r("option",{domProps:{value:u.value}},[n._v(n._s(u.text))])}),0):r("option",{domProps:{value:o.value}},[n._v(n._s(o.text))])]})],2)},staticRenderFns:[],extends:Ue},hH={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("input",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],attrs:{type:"range"},domProps:{value:n.value},on:{__r:function(u){n.value=u.target.value}}},"input",n.attributes,!1))},staticRenderFns:[],extends:Ue},_H={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("input",n._b({directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],attrs:{type:"number"},domProps:{value:n.value},on:{input:function(u){u.target.composing||(n.value=u.target.value)}}},"input",n.attributes,!1))},staticRenderFns:[],extends:Ue},Na={render:function(){var n=this,t=n.$createElement,r=n._self._c||t;return r("div",n._l(n.fields,function(o){return r("div",{directives:[{name:"show",rawName:"v-show",value:n.evaluate(o.show),expression:"evaluate(field.show)"}],key:o.name},[o.type!="checkbox"?r("label",[n._v(n._s(o.label))]):n._e(),n._v(" "),r(o.component,{tag:"component",attrs:{field:o,values:n.values},on:{change:n.change}})],1)}),0)},staticRenderFns:[],components:{FieldText:uH,FieldTextarea:cH,FieldRadio:fH,FieldCheckbox:dH,FieldSelect:pH,FieldRange:hH,FieldNumber:_H},provide:function(){return{Fields:this}},props:{config:{type:[Object,Array],default:function(){return{}}},values:{type:Object,default:function(){return{}}},prefix:{type:String,default:"field-"}},computed:{fields:function(){return this.prepare()}},methods:{change:function(n,t){iH(this.values,t.name,n),this.$emit("change",n,t)},prepare:function(n,t){n===void 0&&(n=this.config),t===void 0&&(t=this.prefix);var r=Wd(n),o=[];return ib(n,function(u,f){u=zd({},u),!u.name&&!r&&(u.name=f),u.name?(u.type||(u.type="text"),u.component||(u.component=t+u.type),o.push(u)):Gd("Field name missing "+JSON.stringify(u))}),o},evaluate:function(n,t){t===void 0&&(t=this.values);try{return fu(n)?!0:(nH(n)&&(n=sH(n)),rH(n)?n.call(this,t,{$match:vH,$get:function(o){return nb(t,o)}}):n)}catch(r){Gd(r)}return!0}}};function vH(e,n,t){return e&&new RegExp(n,t).test(e)}var ab={Field:Ue,Fields:Na,install:function(n){this.installed||(tH(n),tb(this.version),n.component("field",Ue),n.component("fields",Na))},version:"1.1.3"};typeof window!="undefined"&&window.Vue&&window.Vue.use(ab);var mH={extends:Ue,computed:{previewColor(){return this.value}},methods:{isValidColor:wa,open(){this.$dropdown({functional:!0,render:e=>e(Uf,{props:{value:this.value||void 0,allowEmpty:this.field.allowEmpty},on:{input:n=>this.value=n}})}).show(V.closest(this.$el,".yo-sidebar-fields > *,.yo-sidebar-grid")||this.$el)}}};const gH=mH;var yH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("a",{staticClass:"yo-colorpicker",attrs:{title:e.attributes.title,href:""},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)}}},[t("div",{class:[e.attributes.class,"yo-colorpicker-color",{"yo-colorpicker-color-none":!e.isValidColor(e.previewColor)}],style:{backgroundColor:e.isValidColor(e.previewColor)?e.previewColor:""}})])},bH=[],Kd=Z({render:yH,staticRenderFns:bH},void 0,gH,void 0,!1,void 0,!1,void 0,void 0,void 0),$H={extends:Kd,computed:{previewColor(){return ag(this.value)?.color}},methods:{open(){this.$dropdown({functional:!0,render:e=>e(og,{props:{value:this.value},on:{input:n=>this.value=n}})}).show(V.closest(this.$el,".yo-sidebar-fields > *,.yo-sidebar-grid")||this.$el)}}},kH={extends:Ue,events:{openPanel:{handler(e,n){let{params:t,sidebar:{panel:r={},panels:o}={}}=e;o={...o,...r.panels},On(n)&&o[n]&&(t[0]={...Yo(r,"fields","fieldset","help"),...o[n],name:n})},priority:5}}};const wH=kH;var xH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("button",e._b({staticClass:"uk-button yo-button-panel uk-width-1-1",class:{"yo-button-medium":e.attributes.class==="yo-form-medium"},attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.$trigger("openPanel",e.panel)}}},"button",e.attributes,!1),[e._v(`
`+e._s(e.$t(e.text))+`
`)])},CH=[],SH=Z({render:xH,staticRenderFns:CH},void 0,wH,void 0,!1,void 0,!1,void 0,void 0,void 0),AH={extends:Ue,data:()=>({files:0}),mounted(){this.update()},methods:{update(){this.$trigger("checkCache",[],!0).then(e=>this.files=e)},clear(){this.$trigger("clearCache",[],!0).then(this.update)}}};const TH=AH;var OH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{disabled:!e.files,type:"button"},on:{click:e.clear}},[e._v(`
`+e._s(e.$t("Clear Cache"))+`
`)])])},EH=[],FH=Z({render:OH,staticRenderFns:EH},void 0,TH,void 0,!1,void 0,!1,void 0,void 0,void 0),MH={extends:Ue,computed:{trueValue(){return un(this.attributes,"true-value",!0)},falseValue(){return un(this.attributes,"false-value",!1)},checked(){return this.value===this.trueValue||this.value&&this.value!==this.falseValue},disabled(){return this.attributes?.disabled}},methods:{change(e){let{target:{checked:n}}=e;this.value=n?this.trueValue:this.falseValue}}};const PH=MH;var LH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("label",{class:{"uk-text-muted":e.disabled}},[t("input",{staticClass:"uk-checkbox",attrs:{disabled:e.disabled,type:"checkbox"},domProps:{checked:e.checked,value:e.value},on:{change:e.change}}),e._v(`
`+e._s(e.$t(e.field.text||""))+`
`)])])},NH=[],RH=Z({render:LH,staticRenderFns:NH},void 0,PH,void 0,!1,void 0,!1,void 0,void 0,void 0),IH={extends:Ue,computed:{id(){return`data-list-${this.name}`}}};const DH=IH;var jH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.attributes.type==="checkbox"?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{list:e.id,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(r){var o=e.value,u=r.target,f=!!u.checked;if(Array.isArray(o)){var p=null,_=e._i(o,p);u.checked?_<0&&(e.value=o.concat([p])):_>-1&&(e.value=o.slice(0,_).concat(o.slice(_+1)))}else e.value=f}}},"input",e.attributes,!1)):e.attributes.type==="radio"?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{list:e.id,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(r){e.value=null}}},"input",e.attributes,!1)):t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{list:e.id,type:e.attributes.type},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1)),e._v(" "),t("datalist",{attrs:{id:e.id}},e._l(e.filterOptions(e.options),function(r){return t("option",{key:r.value,domProps:{value:r.value}},[e._v(`
`+e._s(e.$t(r.text))+`
`)])}),0)])},BH=[],HH=Z({render:jH,staticRenderFns:BH},void 0,DH,void 0,!1,void 0,!1,void 0,void 0,void 0);const ob=window.localStorage||{},sb="builder.editor.tab";var zH={components:{EditorCode:mL},extends:Ue,data:e=>{let{field:n,root:t,mode:r}=e;return{root:t,mode:r,shown:[],...n}},computed:{isVisual(){return this.editor!=="code"&&window.tinyMCE},tab:{get(){return ob[sb]},set(e){ob[sb]=e,this.shown.splice(this.shown.length,0,e),this.$refs.editors?.forEach(n=>n.refresh())}}},created(){!this.attributes.height&&this.isVisual&&(this.attributes.height=330),this.attributes.debounce&&(this.change=ga(this.change,this.attributes.debounce))},methods:{change(e){this.value=e}}};const WH=zH;var GH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-editor",attrs:{id:e.attributes.id}},[e.isVisual?[t("div",{staticClass:"yo-editor-tab"},[t("ul",{staticClass:"uk-subnav uk-margin-remove uk-flex-right",attrs:{active:e.tab,"uk-switcher":"connect: !* +"}},[t("li",[t("a",{attrs:{href:""},on:{click:function(r){r.preventDefault()}}},[e._v(e._s(e.$t("Visual")))])]),e._v(" "),t("li",[t("a",{attrs:{href:""},on:{click:function(r){r.preventDefault()}}},[e._v(e._s(e.$t("Code")))])])])]),e._v(" "),t("ul",{staticClass:"uk-switcher"},e._l(["EditorVisual","EditorCode"],function(r,o){return t("li",{key:r,on:{show:function(u){e.tab=o}}},[~e.shown.indexOf(o)?t(r,{ref:"editors",refInFor:!0,tag:"component",attrs:{value:e.value,root:e.root,attrs:e.attributes},on:{input:e.change}}):e._e()],1)}),0)]:t("EditorCode",{ref:"code",attrs:{value:e.value,mode:e.mode,attrs:e.attributes},on:{input:e.change}})],2)},KH=[],UH=Z({render:GH,staticRenderFns:KH},void 0,WH,void 0,!1,void 0,!1,void 0,void 0,void 0),YH={models:{Fonts:cg},extends:Ue,methods:{getFontName(e){return this.Fonts.getFontName(e)},open(){this.$dropdown(xL).show(V.closest(this.$el,".yo-sidebar-fields > *,.yo-sidebar-grid")||this.$el,{classes:"yo-dropdown"}).then(e=>e&&(this.value=e))}}};const qH=YH;var JH=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("a",{staticClass:"uk-select uk-text-truncate",class:e.attributes.class,attrs:{title:e.attributes.title,href:""},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)},keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.open.apply(null,arguments)}}},[e._v(`
`+e._s(e.getFontName(e.value)||e.attributes.placeholder||e.$t("Choose Font"))+`
`)])},XH=[],ZH=Z({render:JH,staticRenderFns:XH},void 0,qH,void 0,!1,void 0,!1,void 0,void 0,void 0),QH={extends:Ue,methods:{select(){this.$modal(cN).show({container:!0}).then(e=>{mr(e)||(this.value=e)})}}};const VH=QH;var e3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-position-relative"},[t("a",{staticClass:"uk-form-icon uk-form-icon-flip uk-icon-link",class:{"uk-disabled":e.attributes.disabled},attrs:{href:"",title:e.$t("Pick icon"),"uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.select.apply(null,arguments)}}}),e._v(" "),t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1))])])},t3=[],n3=Z({render:e3,staticRenderFns:t3},void 0,VH,void 0,!1,void 0,!1,void 0,void 0,void 0),r3={extends:Ue,created(){this.$config=ae},methods:{open(){this.$trigger("openMediaPicker",this.field.mediapicker,!0).then(e=>{mr(e)||(this.value=e.src,e.alt&&this.altRef&&this.$emit("change",e.alt,{name:this.altRef.replace("%name%",this.name)}))})}}};const i3=r3;var a3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.value?t("div",{staticClass:"uk-position-relative uk-transition-toggle yo-thumbnail",attrs:{tabindex:"0"}},[t("img",{attrs:{src:e.$url({url:e.value})}}),e._v(" "),t("div",{staticClass:"uk-transition-fade uk-position-cover yo-thumbnail-overlay"}),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)}}}),e._v(" "),t("div",{staticClass:"uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light"},[t("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(r){r.preventDefault(),e.value=""}}})])]):[t("a",{staticClass:"uk-placeholder uk-text-center uk-display-block uk-margin-remove",class:{"uk-disabled uk-text-muted":e.attributes.disabled},attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)}}},[t("img",{attrs:{alt:e.$t("Placeholder Image"),src:e.$url(e.$config.assets+"/images/field-image.svg"),"uk-svg":""}}),e._v(" "),t("p",{staticClass:"uk-h6 uk-margin-small-top"},[e._v(e._s(e.$t("Select Image")))])])],e._v(" "),t("div",{staticClass:"uk-margin-small-top"},[t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:"text",placeholder:"http://"},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1))])],2)},o3=[],s3=Z({render:a3,staticRenderFns:o3},void 0,i3,void 0,!1,void 0,!1,void 0,void 0,void 0),l3={extends:Ue,computed:{showFile(){return this.filePicker!==!1},isImage(){return nd(this.value)}},methods:{open(e,n){n===void 0&&(n={}),this.$trigger(`open${e}`,n,!0).then(this.select)},select(e){On(e)?this.value=e:at(e)&&(this.value=e.src)},reset(){this.value=""}}};const u3=l3;var c3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.showFile&&e.isImage?t("div",{staticClass:"uk-position-relative uk-transition-toggle yo-thumbnail uk-margin-small-bottom",attrs:{tabindex:"0"}},[t("img",{attrs:{src:e.$url(e.value)}}),e._v(" "),t("div",{staticClass:"uk-transition-fade uk-position-cover yo-thumbnail-overlay"}),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.open("MediaPicker",{type:"",unsplash:!1})}}}),e._v(" "),t("div",{staticClass:"uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light"},[t("a",{staticClass:"uk-icon-link",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.reset.apply(null,arguments)}}})])]):e._e(),e._v(" "),t("div",{staticClass:"uk-inline uk-width-1-1"},[t("div",{staticClass:"uk-position-center-right uk-position-small"},[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick link"),href:"","uk-icon":"link","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.open("LinkPicker")}}})]),e._v(" "),e.showFile?t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick file"),href:"","uk-icon":"album","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.open("MediaPicker",{type:"",unsplash:!1})}}})]):e._e()])]),e._v(" "),t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input yo-input-iconnav-right",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1))])])},f3=[],d3=Z({render:c3,staticRenderFns:f3},void 0,u3,void 0,!1,void 0,!1,void 0,void 0,void 0),p3={components:{LocationPicker:bN},extends:Ue};const h3=p3;var _3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("LocationPicker",{model:{value:e.value,callback:function(r){e.value=r},expression:"value"}})},v3=[],m3=Z({render:_3,staticRenderFns:v3},void 0,h3,void 0,!1,void 0,!1,void 0,void 0,void 0),g3={extends:Ue};const y3=g3;var b3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless"},e._l(e.items,function(r,o){return t("li",{key:o},[t("a",{attrs:{href:""},on:{click:function(u){return u.preventDefault(),e.$trigger("openPanel",o)}}},[e._v(e._s(e.$t(r)))])])}),0)},$3=[],k3=Z({render:b3,staticRenderFns:$3},void 0,y3,void 0,!1,void 0,!1,void 0,void 0,void 0),w3={extends:Ue,computed:{mod(){return V.toFloat(this.field.modifier||0)},val:{get(){return V.isNumeric(this.value)?V.toFloat(this.value)+this.mod:this.value},set(e){this.value=V.isNumeric(e)?V.toFloat(e)-this.mod:e}}}};const x3=w3;var C3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],staticClass:"uk-input",attrs:{type:"number"},domProps:{value:e.val},on:{input:function(r){r.target.composing||(e.val=r.target.value)}}},"input",e.attributes,!1))},S3=[],lb=Z({render:C3,staticRenderFns:S3},void 0,x3,void 0,!1,void 0,!1,void 0,void 0,void 0),A3={extends:Ue};const T3=A3;var O3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-input yo-input-locked"},[e._v(`
`+e._s(e.placeholder)+`
`)])},E3=[],F3=Z({render:O3,staticRenderFns:E3},void 0,T3,void 0,!1,void 0,!1,void 0,void 0,void 0),M3={extends:Ue};const P3=M3;var L3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",e._l(e.filterOptions(e.options),function(r){return t("div",{key:r.value},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-radio",attrs:{name:e.name,disabled:e.attributes.disabled,type:"radio"},domProps:{value:r.value,checked:e._q(e.value,r.value)},on:{change:function(o){e.value=r.value}}}),e._v(`
`+e._s(e.$t(r.text))+`
`)])])}),0)},N3=[],R3=Z({render:L3,staticRenderFns:N3},void 0,P3,void 0,!1,void 0,!1,void 0,void 0,void 0),I3={extends:Ue};const D3=I3;var j3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-grid-small uk-flex-middle",attrs:{"uk-grid":""}},[t("div",{staticClass:"uk-width-expand"},[t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-range",attrs:{type:"range"},domProps:{value:e.value},on:{__r:function(r){e.value=r.target.value}}},"input",e.attributes,!1))]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input uk-form-width-xsmall",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1))])])},B3=[],H3=Z({render:j3,staticRenderFns:B3},void 0,D3,void 0,!1,void 0,!1,void 0,void 0,void 0),z3={extends:Ue,computed:{selected:{get(){return mr(this.value)?this.attributes.multiple?[]:"":this.value},set(e){this.value=e}},optionValues(){return ub(this.filterOptions(this.options)).map(e=>{let{value:n}=e;return n})},invalid(){return!mr(this.value)&&[].concat(this.selected).some(e=>!Ct(this.optionValues,e))}},created(){mr(this.value)&&!mr(this.defaultIndex)&&(this.value=this.optionValues[this.defaultIndex])},methods:{filterOptions(e){if(e===void 0&&(e=[]),!Je(e))return Ue.methods.filterOptions.call(this,e);let n=[];return e.forEach(t=>{t.evaluate?n=n.concat(this.evaluate(t.evaluate)||[]):n.push(t)}),n},evaluate(e){return Na.methods.evaluate.call(this,e,{...this.values,config:ae})}}};function ub(e){return e===void 0&&(e=[]),e.reduce((n,t)=>n.concat(t.label?ub(t.options):t),[])}const W3=z3;var G3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],class:["uk-select",e.attributes.class,{"uk-form-danger":e.invalid}],on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.selected=r.target.multiple?o:o[0]}}},"select",e.attributes,!1),[e._l(e.filterOptions(e.options),function(r){return[r.label?t("optgroup",{key:r.label,attrs:{label:r.label}},e._l(r.options,function(o){return t("option",{key:o.value,domProps:{value:o.value}},[e._v(`
`+e._s(o.text)+`
`)])}),0):t("option",{key:r.value,domProps:{value:r.value}},[e._v(e._s(r.text))])]})],2)},K3=[],Fi=Z({render:G3,staticRenderFns:K3},void 0,W3,void 0,!1,void 0,!1,void 0,void 0,void 0),U3={extends:Fi,watch:{selected(){V.trigger(this.$el,"change")}}};const Y3=U3;var q3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-width-1-1",attrs:{"uk-form-custom":"target: true"}},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.selected=r.target.multiple?o:o[0]}}},e._l(e.filterOptions(e.options),function(r){var o=r.value,u=r.text;return t("option",{key:o,domProps:{value:o}},[e._v(`
`+e._s(e.$t(u))+`
`)])}),0),e._v(" "),t("span",e._b({staticClass:"uk-select uk-text-truncate"},"span",e.attributes,!1))])},J3=[],X3=Z({render:q3,staticRenderFns:J3},void 0,Y3,void 0,!1,void 0,!1,void 0,void 0,void 0),Z3={extends:Ue,computed:{selected(){return this.options[this.value||""]||{}}},methods:{select(){this.$modal(e2,{svgs:this.options,title:this.title||this.label}).show({width:"2xlarge"}).then(e=>{typeof e!="undefined"&&(this.value=e)})}}};const Q3=Z3;var V3=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-card uk-card-body uk-card-small uk-card-hover yo-panel uk-text-center"},[t("img",{attrs:{src:e.$url(e.selected.src),alt:e.selected.label,"uk-svg":""}}),e._v(" "),t("p",{staticClass:"uk-margin-small uk-margin-remove-bottom"},[e._v(e._s(e.selected.label))]),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.select()}}})])])},e5=[],t5=Z({render:V3,staticRenderFns:e5},void 0,Q3,void 0,!1,void 0,!1,void 0,void 0,void 0),n5={extends:Ue};const r5=n5;var i5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return Object.assign({},{type:"text"},e.attributes).type==="checkbox"?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(r){var o=e.value,u=r.target,f=!!u.checked;if(Array.isArray(o)){var p=null,_=e._i(o,p);u.checked?_<0&&(e.value=o.concat([p])):_>-1&&(e.value=o.slice(0,_).concat(o.slice(_+1)))}else e.value=f}}},"input",Object.assign({},{type:"text"},e.attributes),!1)):Object.assign({},{type:"text"},e.attributes).type==="radio"?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(r){e.value=null}}},"input",Object.assign({},{type:"text"},e.attributes),!1)):t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:Object.assign({},{type:"text"},e.attributes).type},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",Object.assign({},{type:"text"},e.attributes),!1))},a5=[],cb=Z({render:i5,staticRenderFns:a5},void 0,r5,void 0,!1,void 0,!1,void 0,void 0,void 0),o5={extends:Ue};const s5=o5;var l5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-textarea",domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"textarea",e.attributes,!1))},u5=[],c5=Z({render:l5,staticRenderFns:u5},void 0,s5,void 0,!1,void 0,!1,void 0,void 0,void 0),f5={extends:Kd,methods:{open(){this.$dropdown({functional:!0,render:e=>e(og,{props:{value:this.value,fields:["offsetX","offsetY","blur","color"]},on:{input:n=>this.value=n}})}).show(V.closest(this.$el,".yo-sidebar-fields > *,.yo-sidebar-grid")||this.$el)}}},d5={extends:Ue,methods:{open(){this.$trigger("openMediaPicker",{type:"video"}).then(e=>{mr(e)||(this.value=e.src)})}}};const p5=d5;var h5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-position-relative"},[t("a",{staticClass:"uk-form-icon uk-form-icon-flip uk-icon-link",class:{"uk-disabled":e.attributes.disabled},attrs:{href:"",title:e.$t("Pick video"),"uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)}}}),e._v(" "),t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:"text",placeholder:"http://"},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1))])])},_5=[],v5=Z({render:h5,staticRenderFns:_5},void 0,p5,void 0,!1,void 0,!1,void 0,void 0,void 0),m5={extends:Ue,computed:{background(){return`${this.values[this.internal]||""} ${this.value||""}`.trim()}},methods:{open(){var e=this;this.$dropdown({functional:!0,render:n=>n("div",{class:"uk-form-stacked"},[n("div",{class:"uk-margin-small yo-colorpicker-boxshadow"},[n("label",{class:"uk-form-label",domProps:{for:"form-gradient"}},this.$t("Gradient")),n(cb,{class:'class="uk-form-small',props:{values:this.values,field:{name:this.internal}},on:{change:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.$emit("change",...r)}}})]),n(Uf,{props:{value:this.value||void 0,allowEmpty:this.field.allowEmpty},on:{input:t=>this.value=t}})])}).show(V.closest(this.$el,".yo-sidebar-fields > *,.yo-sidebar-grid")||this.$el)}}};const g5=m5;var y5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("a",{staticClass:"yo-colorpicker",attrs:{title:e.attributes.title,href:""},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)}}},[t("div",{class:[e.attributes.class,"yo-colorpicker-color",{"yo-colorpicker-color-none":!e.background}],style:{background:e.background}})])},b5=[],$5=Z({render:y5,staticRenderFns:b5},void 0,g5,void 0,!1,void 0,!1,void 0,void 0,void 0),k5={extends:Ue,inject:["Builder","$node"]};const w5=k5;var x5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",e._l(e.$node.children,function(r,o){return t("div",{key:e.Builder.key(r),staticClass:"uk-margin-small"},[t("button",{staticClass:"uk-button yo-button-panel uk-width-1-1",attrs:{type:"button"},on:{click:function(u){return e.Builder.edit(r)}}},[e._v(`
`+e._s(e.$t("Edit Column %index%",{index:o+1}))+`
`)])])}),0)},C5=[],S5=Z({render:x5,staticRenderFns:C5},void 0,w5,void 0,!1,void 0,!1,void 0,void 0,void 0),A5={functional:!0,render:function(e,n){let{parent:t,props:r}=n;const o=r.field,[u]=t.prepare([o.field]),f=t.node.children[o.index];return f?e(u.component,{props:{field:u,values:f.props},on:{change(p,_){let{name:v}=_;Qn(f.props,v,p)}}},[]):null}},T5={name:"Elements",inject:["Builder"],data:()=>({search:""}),computed:{elementList(){return Wt(this.Builder.types,{element:!0}).filter(e=>!this.search||Ct(e.title.toLowerCase(),this.search.toLowerCase())).map(e=>({group:"custom",...e}))},elementGroups(){const e={basic:[],"multiple items":[],system:[],...Bn(this.elementList,"group")},n={};for(const t in e)e[t].length&&(n[t]=Km(Wt(e[t],{element:!0}),"title"));return n}}};const O5=T5;var E5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Element |||| %smart_count% Elements",e.elementList.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])])]),e._v(" "),e.elementList.length?t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},e._l(e.elementGroups,function(r,o){return t("div",{key:o,staticClass:"uk-margin-medium"},[t("h3",{staticClass:"uk-heading-divider uk-margin-small"},[e._v(e._s(o))]),e._v(" "),t("div",{staticClass:"uk-grid-collapse uk-child-width yo-child-width-1-8",attrs:{"uk-grid":""}},e._l(r,function(u){var f=u.name,p=u.title,_=u.icon;return t("div",{key:f},[t("div",{staticClass:`
uk-card uk-card-body uk-card-hover
yo-panel
uk-padding-remove-horizontal uk-text-center
`},[t("img",{attrs:{alt:p,src:_,"uk-svg":""}}),e._v(" "),t("p",{staticClass:"uk-margin-small-top uk-margin-remove-bottom uk-text-truncate"},[e._v(`
`+e._s(p)+`
`)]),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(v){v.preventDefault(),e.$emit("resolve",e.Builder.make(f))}}})])])}),0)])}),0):t("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No element found.")))])])},F5=[],M5=Z({render:E5,staticRenderFns:F5},void 0,O5,void 0,!1,void 0,!1,void 0,void 0,void 0),P5={name:"ElementModal",inject:["Library"],props:{edit:{type:Boolean,default:!1},node:{type:Object,required:!0},builder:{type:Object,required:!0}},data:e=>({name:e.node.name}),computed:{type(){return this.builder.type(this.node)},title(){return this.type.element?"Element Preset":this.type.title||this.node.type},exists(){return this.node.type==="layout"&&this.node.name!==this.name&&this.Library.findElement(this.node.name,this.node.type)}},created(){this.edit||this.$set(this.node,"name","")}};const L5=P5;var N5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("form",{on:{submit:function(r){return r.preventDefault(),e.$emit("resolve",e.node)}}},[t("div",{staticClass:"uk-modal-header"},[t("h2",{staticClass:"uk-modal-title"},[e._v(`
`+e._s(e.edit?e.$t("Rename %type%",{type:e.title}):e.$t("Save %type%",{type:e.title}))+`
`)])]),e._v(" "),t("div",{staticClass:"uk-modal-body uk-form-stacked"},[t("label",{staticClass:"uk-form-label",attrs:{for:"form-element-save-name"}},[e._v(e._s(e.$t("Name")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.node.name,expression:"node.name"}],staticClass:"uk-input",attrs:{id:"form-element-save-name",placeholder:e.type.title,type:"text",required:"",autofocus:""},domProps:{value:e.node.name},on:{input:function(r){r.target.composing||e.$set(e.node,"name",r.target.value)}}}),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.exists,expression:"exists"}],staticClass:"uk-text-muted uk-margin-small"},[e._v(`
`+e._s(e.$t('"%name%" already exists in the library, it will be overwritten when saving.',{name:e.node.name}))+`
`)])]),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary"},[e._v(e._s(e.$t("Save")))])])])},R5=[],fb=Z({render:N5,staticRenderFns:R5},void 0,L5,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ud="builder.elements.filter";var I5={inject:["Library"],data:e=>{let{reset:n}=e;return{error:"",loading:null,elements:[],filter:Rt[Ud]?JSON.parse(Rt[Ud]):n()}},computed:{types(){return Bn(this.filtered,e=>{let{meta:n}=e;return n.type})},filtered(){return this.elements.filter(e=>{let{meta:n}=e;return Ll(this.filter,(t,r)=>!t||n[r]===t)})}},watch:{filter:{handler(e){Rt[Ud]=JSON.stringify(e)},deep:!0}},created(){this.Library.getElements("element").then(e=>this.$emit("load",this.elements=e))},methods:{some:Jo,startCase:If,reset(){return{type:""}},select(e){this.error="",this.loading=e,this.Library.getElement(e).then(n=>this.$emit("resolve",qo(n,["name","type","children","props","images"])),n=>{let{data:t}=n;return this.error=t})},options(e,n){n===void 0&&(n=this.elements);let t=Bn(n.filter(r=>{let{meta:o}=r;return o[e]}),r=>{let{meta:o}=r;return o[e]});return t=vt(t,(r,o)=>({value:o,text:this.title(o)})),t.length?ba(t,"text"):null},title(e){return e.replace("_"," ").replace(/\b\w/g,n=>n.toUpperCase())}}};const D5=I5;var j5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Preset |||| %smart_count% Presets",e.filtered.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[e.options("type")?t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.type,expression:"filter.type"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"type",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All presets")))]),e._v(" "),e._l(e.options("type"),function(r){var o=r.value,u=r.text;return t("option",{key:o,domProps:{value:o}},[e._v(`
`+e._s(u)+`
`)])})],2)]):e._e(),e._v(" "),t("div",[t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!e.some(e.filter)},on:{click:function(r){e.filter=e.reset()}}},[e._v(`
`+e._s(e.$t("Reset"))+`
`)])])])])]),e._v(" "),t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},e._l(e.types,function(r,o){return t("div",{key:o},[t("h3",{staticClass:"uk-heading-divider"},[e._v(`
`+e._s(e.$t("%type% Presets",{type:e.title(o)}))+`
`)]),e._v(" "),t("ul",{staticClass:"uk-grid-medium uk-child-width-1-2 uk-margin-large-bottom",attrs:{"uk-grid":"masonry: true"}},e._l(r,function(u){return t("li",{key:u.link},[t("div",{staticClass:`
uk-panel
uk-box-shadow-medium
uk-box-shadow-hover-large
uk-transition-toggle
`,attrs:{tabindex:"0"}},[t("img",{attrs:{"data-src":e.$url(u.meta.image),"uk-img":""}}),e._v(" "),t("div",{staticClass:`
uk-label
yo-label
uk-position-top-right uk-position-small uk-transition-fade
`},[e._v(`
`+e._s(u.name)+`
`)]),e._v(" "),e.loading===u?t("div",{staticClass:`
uk-overlay
uk-overlay-primary
uk-position-cover
uk-flex
uk-flex-center
uk-flex-middle
`},[e.error?t("div",{staticClass:"uk-text-danger"},[t("span",{attrs:{"uk-icon":"warning"}}),e._v(" "),t("span",{staticClass:"uk-margin-small-left"},[e._v(e._s(e.$t(e.error)))])]):t("span",{attrs:{"uk-spinner":""}})]):e._e(),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(f){return f.preventDefault(),e.select(u)}}})])])}),0)])}),0)])},B5=[],H5=Z({render:j5,staticRenderFns:B5},void 0,D5,void 0,!1,void 0,!1,void 0,void 0,void 0),z5={name:"ElementLibrary",components:{DragOver:Yf},directives:{Confirm:$r},inject:["Library","Builder"],data:()=>({search:""}),computed:{elementList(){return Object.entries(this.Library.elements).filter(e=>{let[,{name:n}]=e;return!this.search||n.toLowerCase().includes(this.search.toLowerCase())}).sort((e,n)=>{let[,t]=e,[,r]=n;return t.name.localeCompare(r.name,void 0,{numeric:!0})})}},methods:{type(e){return this.Builder.type(e)||{}},exportElements(){Kr("elements.json",JSON.stringify(Object.values(this.Library.elements)))},exportElement(e){Kr(`${e.name||"element"}.json`,JSON.stringify({...e,version:ae.version}))},formatDate(e){return e?new Date(e).toLocaleString():this.$t("-")},async upload(e){try{const n=e.currentTarget.files||e.dataTransfer?.files||[],t=[];for(let f=0;f<n.length;f++){const p=n[f];try{t.push(JSON.parse((await Wl(p)).target.result))}catch{throw new Error(`Error loading file '${p.name}'.`)}}const r=[],o=[],u=jm(t);if(u.forEach(f=>{let{name:p,type:_}=f;if(!p||!_||["section","layout"].includes(_))throw new Error("Invalid element preset.");const v=this.Library.findElement(p,_);v&&o.push(p),r.push(v)}),o.length&&!window.confirm(this.$t(`Element preset ${o.join(", ")} already exists in the library, do you want to overwrite it?`)))return;for(let f=0;f<u.length;f++)await this.Library.saveElement(u[f],r[f]);this.$notify("Element presets uploaded successfully.","success")}catch(n){this.$notify(n,"danger")}this.$refs.input.value=""}}};const W5=z5;var G5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("DragOver",{on:{drop:e.upload}},[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Preset |||| %smart_count% Presets",e.elementList.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("button",{directives:[{name:"show",rawName:"v-show",value:e.elementList.length,expression:"elementList.length"}],staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.exportElements.apply(null,arguments)}}},[e._v(`
`+e._s(e.$t("Download All"))+`
`)])]),e._v(" "),t("div",[t("div",{attrs:{"uk-form-custom":""}},[t("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]",multiple:"multiple"},on:{change:e.upload}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Upload Preset"))+`
`)])])])])])]),e._v(" "),e.elementList.length?t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[t("table",{staticClass:"uk-table uk-table-divider uk-table-small uk-table-hover"},[t("thead",[t("tr",[t("th",{staticClass:"uk-table-expand"},[e._v(e._s(e.$t("Name")))]),e._v(" "),t("th",{staticClass:"uk-width-medium"},[e._v(e._s(e.$t("Element")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-nowrap"},[e._v(e._s(e.$t("Last Modified")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink"})])]),e._v(" "),t("tbody",e._l(e.elementList,function(r){var o=r[0],u=r[1];return t("tr",{key:o,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[t("td",{staticClass:"uk-table-link"},[t("a",{staticClass:"uk-link-reset",attrs:{href:""},on:{click:function(f){f.preventDefault(),e.$emit("resolve",e.Builder.clone(u))}}},[t("img",{staticClass:"uk-text-muted uk-preserve-width uk-margin-small-right",attrs:{alt:u.name,src:e.type(u).iconSmall,"uk-svg":""}}),e._v(`
`+e._s(u.name)+`
`)])]),e._v(" "),t("td",[e._v(e._s(e.type(u).title))]),e._v(" "),t("td",{staticClass:"uk-text-nowrap"},[t("time",{attrs:{datetime:u.modified}},[e._v(e._s(e.formatDate(u.modified)))])]),e._v(" "),t("td",[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap uk-invisible-hover"},[t("li",[t("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Rename"),href:"","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(f){return e.Library.editElement(u,o,e.Builder)}}})]),e._v(" "),t("li",[t("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Download"),"uk-icon":"download","uk-tooltip":"delay: 500"},on:{click:function(f){return e.exportElement(u)}}})]),e._v(" "),t("li",[t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(f){return e.Library.deleteElement(u,o)}}})])])])])}),0)])]):t("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(`
`+e._s(e.$t("No element presets found."))+`
`)])])},K5=[],U5=Z({render:G5,staticRenderFns:K5},void 0,W5,void 0,!1,void 0,!1,void 0,void 0,void 0),Y5={name:"ElementsModal",components:{Switcher:xa},provide(){return{Builder:this.builder}},props:{builder:{type:Object,required:!0}},computed:{tabs(){const e=this.$trigger("elementsModalTabs",[this.node]);return[{name:"elements",component:M5},{name:"pro presets",component:H5},{name:"my presets",component:U5},...e||[]]}}};const q5=Y5;var J5=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Switcher",{attrs:{tabs:e.tabs.map(function(r){var o=r.name;return o}),storage:"builder.elements.tab"}},e._l(e.tabs,function(r){return t("div",{key:r.name,staticClass:"uk-modal-body",attrs:{slot:r.name},slot:r.name},[t(r.component,{tag:"component",on:{resolve:function(o){return e.$emit("resolve",o)}}})],1)}),0)},X5=[],Z5=Z({render:J5,staticRenderFns:X5},void 0,q5,void 0,!1,void 0,!1,void 0,void 0,void 0),Ra={directives:{Sortable:od},inject:["Builder"],props:{node:{type:Object,required:!0},id:String},computed:{type(){return this.Builder.type(this.node)},title(){return this.node.name||this.type.title||this.node.type},children(){return this.node.children||[]},statusIcons(){let e=this.$trigger("statusNode",[this.node]);return e=e.map(n=>n.component?n:{...n,component:{name:V.camelize(n.title).replace(/ /g,""),render:t=>t("span",{attrs:{title:n.title},class:n.classNames})}}),kt(e)?null:e},statusError(){return this.statusIcons?.some(e=>{let{error:n}=e;return n})},isDisabled(){return un(this.node,"props.status")==="disabled"},isPositionedAbsolute(){return un(this.node,"props.position")==="absolute"},visibility(){return un(this.node,"props.visibility")}},methods:{move(e,n,t){this.Builder.append(n.node,this.Builder.remove(e.node),t)}}},Q5={extends:Ra,inject:["Layout"],computed:{widthClass(){const e=["xlarge","large","medium","small","default"].reduce((n,t)=>n||this.node?.props?.[`width_${t}`],"")||"expand";return`uk-width-${e.match(/^\d-\d|expand/)?e:"auto"}`}}};const V5=Q5;var ez=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"element"},expression:"{ group: 'element' }"}],class:[e.widthClass,"uk-flex","uk-flex-column"],on:{click:function(r){if(r.target!==r.currentTarget)return null;!e.children.length&&e.Builder.add(e.node,null,e.Builder.append)}}},e._l(e.children,function(r,o){return t(e.Layout.load(r),{key:e.Builder.key(r),tag:"component",attrs:{id:e.id+"-"+o,node:r}})}),1)},tz=[],nz=Z({render:ez,staticRenderFns:tz},void 0,V5,void 0,!1,void 0,!1,void 0,void 0,void 0),rz={extends:Ra};const iz=rz;function az(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)===-1&&(t[r]=e[r]);return t}var oz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["yo-builder-element uk-flex-1 uk-width-1-1 uk-flex uk-flex-center uk-flex-middle",{"yo-builder-element-absolute":e.isPositionedAbsolute}],attrs:{"data-id":e.id}},[t("div",{staticClass:"uk-text-center"},[t("img",{class:{"yo-builder-element-disabled":e.statusError},attrs:{alt:e.title,src:e.type.iconSmall,width:"20",height:"20","uk-svg":""}}),e._v(" "),t("span",{class:["uk-margin-small-left uk-text-middle",{"uk-text-danger":e.statusError}]},[e.Builder.exists(e.node)?[e._v(e._s(e.title))]:t("i",[e._v(e._s(e.title))])],2)]),e._v(" "),e.Builder.exists(e.node)?t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.Builder.edit(e.node)},mouseover:function(r){return e.$trigger("hoverNode",[e.node,e.id,e.Builder])},mouseout:function(r){return e.$trigger("leaveNode",[e.node,e.id,e.Builder])}}}):e._e(),e._v(" "),t("div",{staticClass:"yo-builder-nav-element uk-builder-element-hover"},[t("ul",{staticClass:"uk-grid uk-grid-collapse"},[t("li",[t("a",{staticClass:"yo-builder-icon-copy",attrs:{href:"",title:e.$t("Copy"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.copy(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-save",attrs:{href:"",title:e.$t("Save in Library"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.save(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-delete",attrs:{href:"",title:e.$t("Delete"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.remove(e.node)}}})])])]),e._v(" "),e.statusIcons?t("div",{staticClass:"uk-position-bottom-right"},[t("ul",{staticClass:"uk-grid uk-grid-collapse"},e._l(e.statusIcons,function(r){var o=r.component,u=az(r,["component"]),f=u;return t("li",{key:o.name},[t(o,e._b({tag:"component",attrs:{node:e._self}},"component",f,!1))],1)}),0)]):e._e(),e._v(" "),t("a",{staticClass:`
uk-icon-button
yo-builder-button-element yo-builder-icon-add
uk-builder-element-hover
`,attrs:{href:"",title:e.$t("Add Element"),"uk-tooltip":"delay: 1000; pos: right"},on:{click:function(r){return r.preventDefault(),e.Builder.add(e.node)}}})])},sz=[],lz=Z({render:oz,staticRenderFns:sz},void 0,iz,void 0,!1,void 0,!1,void 0,void 0,void 0),uz={extends:Ra,inject:["Layout"],watch:{"node.props.layout":{handler(e){this.Builder.columns(this.node,e)},immediate:!0}}};const cz=uz;function fz(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)===-1&&(t[r]=e[r]);return t}var dz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["yo-builder-grid",{"yo-builder-grid-disabled":e.statusError},{"yo-builder-grid-status":e.statusIcons}]},[t("div",[t("div",{staticClass:"yo-builder-nav-grid uk-builder-grid-hover"},[t("ul",{staticClass:"uk-grid uk-grid-collapse uk-flex-column"},[t("li",[t("a",{staticClass:"yo-builder-icon-edit",attrs:{href:"",title:e.$t("Edit"),"uk-tooltip":"delay: 1000; pos: left"},on:{click:function(r){return r.preventDefault(),e.Builder.edit(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-copy",attrs:{href:"",title:e.$t("Copy"),"uk-tooltip":"delay: 1000; pos: left"},on:{click:function(r){return r.preventDefault(),e.Builder.copy(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-delete",attrs:{href:"",title:e.$t("Delete"),"uk-tooltip":"delay: 1000; pos: left"},on:{click:function(r){return r.preventDefault(),e.Builder.remove(e.node)}}})])])]),e._v(" "),e.statusIcons?t("div",{staticClass:"yo-builder-nav-grid-bottom"},[t("ul",{staticClass:"uk-grid uk-grid-collapse uk-flex-column"},e._l(e.statusIcons,function(r){var o=r.component,u=fz(r,["component"]),f=u;return t("li",{key:o.name},[t(o,e._b({tag:"component",attrs:{node:e._self}},"component",f,!1))],1)}),0)]):e._e(),e._v(" "),t("a",{staticClass:"yo-builder-button-grid yo-builder-icon-add-right uk-builder-grid-hover",attrs:{href:"",title:e.$t("Add Row"),"uk-tooltip":"delay: 1000; pos: left"},on:{click:function(r){return r.preventDefault(),e.Builder.add(e.node,"row")}}}),e._v(" "),t("div",{staticClass:"uk-grid uk-grid-match uk-child-width-expand"},e._l(e.children,function(r,o){return t(e.Layout.load(r),{key:e.Builder.key(r),tag:"component",attrs:{id:e.id+"-"+o,node:r}})}),1)])])},pz=[],hz=Z({render:dz,staticRenderFns:pz},void 0,cz,void 0,!1,void 0,!1,void 0,void 0,void 0),_z={extends:Ra,inject:["Layout"],watch:{children(e){e.length||this.Builder.append(this.node,this.Builder.make("row"))}},created(){this.children.length||this.Builder.append(this.node,this.Builder.make("row"))}};const vz=_z;function mz(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)===-1&&(t[r]=e[r]);return t}var gz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-builder-section"},[t("div",{staticClass:"uk-flex uk-flex-middle uk-margin-small-bottom"},[t("h3",{class:["yo-sidebar-subheading uk-margin-remove uk-drag",{"uk-text-danger":e.statusError}]},[e._v(`
`+e._s(e.title)+`
`)]),e._v(" "),t("div",{staticClass:"yo-builder-nav-section uk-margin-small-left uk-builder-section-hover"},[t("ul",{staticClass:"uk-grid uk-grid-collapse"},[t("li",[t("a",{staticClass:"yo-builder-icon-edit",attrs:{href:"",title:e.$t("Edit"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.edit(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-copy",attrs:{href:"",title:e.$t("Copy"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.copy(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-save",attrs:{href:"",title:e.$t("Save in Library"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.save(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-delete",attrs:{href:"",title:e.$t("Delete"),"uk-tooltip":"delay: 1000"},on:{click:function(r){return r.preventDefault(),e.Builder.remove(e.node)}}})])])]),e._v(" "),e.statusIcons?t("div",{staticClass:"uk-margin-auto-left"},[t("ul",{staticClass:"uk-grid uk-grid-collapse"},e._l(e.statusIcons,function(r){var o=r.component,u=mz(r,["component"]),f=u;return t("li",{key:o.name},[t(o,e._b({tag:"component",attrs:{node:e._self}},"component",f,!1))],1)}),0)]):e._e()]),e._v(" "),t("a",{staticClass:"yo-builder-button-section yo-builder-icon-add-left uk-builder-section-hover",attrs:{href:"",title:e.$t("Add Section"),"uk-tooltip":"delay: 1000; pos: right"},on:{click:function(r){return r.preventDefault(),e.Builder.add(e.node,"section")}}}),e._v(" "),t("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"row"},expression:"{ group: 'row' }"}]},e._l(e.children,function(r,o){return t(e.Layout.load(r),{key:e.Builder.key(r),tag:"component",attrs:{id:e.id+"-"+o,node:r}})}),1)])},yz=[],bz=Z({render:gz,staticRenderFns:yz},void 0,vz,void 0,!1,void 0,!1,void 0,void 0,void 0);const $z={row:hz,column:nz,section:bz};var kz={extends:Ra,provide(){return{Layout:this}},methods:{load(e){let{type:n}=e;return $z[n]||lz}}};const wz=kz;var xz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.children.length?t("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"section"},expression:"{ group: 'section' }"}],staticClass:"yo-builder"},e._l(e.children,function(r,o){return t(e.load(r),{key:e.Builder.key(r),tag:"component",attrs:{id:""+e.Builder.prefix+o,node:r}})}),1):e._e()},Cz=[],du=Z({render:xz,staticRenderFns:Cz},void 0,wz,void 0,!1,void 0,!1,void 0,void 0,void 0);const Yd="builder.layouts.filter";var Sz={inject:["Library"],data:e=>{let{reset:n}=e;return{error:"",loading:null,layouts:[],filter:Rt[Yd]?JSON.parse(Rt[Yd]):n()}},computed:{filtered(){return this.layouts.filter(e=>{let{meta:n}=e;return Ll(this.filter,(t,r)=>!t||n[r]===t)&&(this.isFooter||n.layout!=="Footer")})},isFooter(){return this.filter.layout==="Footer"}},watch:{filter:{handler(e){Rt[Yd]=JSON.stringify(e)},deep:!0}},created(){this.Library.getElements("layout").then(e=>this.$emit("load",this.layouts=e))},methods:{some:Jo,reset(){return{layout:"",type:"",topic:"",website:""}},select(e){this.error="",this.loading=e,this.Library.getElement(e).then(n=>this.$emit("select",n),n=>{let{data:t}=n;return this.error=t})},options(e,n){n===void 0&&(n=this.layouts);let t=Bn(n.filter(r=>{let{meta:o}=r;return o[e]}),r=>{let{meta:o}=r;return o[e]});return t=vt(t,(r,o)=>({value:o,text:o.replace(/\b\w/g,u=>u.toUpperCase())})),t.length?ba(t,"text"):null},layoutGroup(){let e=Bn(this.layouts.filter(n=>{let{meta:t}=n;return t.layout}),n=>{let{meta:t}=n;return t.template});return e=vt(e,(n,t)=>({layouts:this.options("layout",n),label:t&&t==="true"?"Templates":"Pages"})),e}}};const Az=Sz;var Tz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Layout |||| %smart_count% Layouts",e.filtered.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[e.layoutGroup()?t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.layout,expression:"filter.layout"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"layout",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All layouts")))]),e._v(" "),e._l(e.layoutGroup(),function(r){var o=r.layouts,u=r.label;return t("optgroup",{key:u,attrs:{label:u}},e._l(o,function(f){var p=f.value,_=f.text;return t("option",{key:p,domProps:{value:p}},[e._v(`
`+e._s(_)+`
`)])}),0)})],2)]):e._e(),e._v(" "),e.options("topic")?t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.topic,expression:"filter.topic"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"topic",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All topics")))]),e._v(" "),e._l(e.options("topic"),function(r){var o=r.value,u=r.text;return t("option",{key:o,domProps:{value:o}},[e._v(`
`+e._s(u)+`
`)])})],2)]):e._e(),e._v(" "),e.options("type")?t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.type,expression:"filter.type"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"type",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All types")))]),e._v(" "),e._l(e.options("type"),function(r){var o=r.value,u=r.text;return t("option",{key:o,domProps:{value:o}},[e._v(`
`+e._s(u)+`
`)])})],2)]):e._e(),e._v(" "),e.options("website")?t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:e.filter.website,expression:"filter.website"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.filter,"website",r.target.multiple?o:o[0])}}},[t("option",{attrs:{value:""}},[e._v(e._s(e.$t("All websites")))]),e._v(" "),e._l(e.options("website"),function(r){var o=r.value,u=r.text;return t("option",{key:o,domProps:{value:o}},[e._v(`
`+e._s(u)+`
`)])})],2)]):e._e(),e._v(" "),t("div",[t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!e.some(e.filter)},on:{click:function(r){e.filter=e.reset()}}},[e._v(`
`+e._s(e.$t("Reset"))+`
`)])])])])]),e._v(" "),t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[t("ul",{key:"layout-list-"+e.isFooter,class:["uk-grid-medium uk-child-width-1-2",{"uk-grid-match uk-child-width-1-3@s uk-child-width-1-4@m":!e.isFooter}],attrs:{"uk-grid":"masonry: "+e.isFooter}},e._l(e.filtered,function(r){return t("li",{key:r.link},[t("div",{staticClass:`
uk-panel
uk-box-shadow-medium
uk-box-shadow-hover-large
uk-transition-toggle
`,attrs:{tabindex:"0"}},[e.isFooter?t("img",{attrs:{"data-src":e.$url(r.meta.image),"uk-img":""}}):[r.meta.image?t("div",{staticClass:`
uk-background-cover uk-background-top-center uk-position-cover
`,attrs:{"data-src":e.$url(r.meta.image),"uk-img":""}}):t("div",{staticClass:`
uk-background-cover uk-position-cover
yo-finder-thumbnail-file
`}),e._v(" "),t("canvas",{attrs:{width:"800",height:"1000"}})],e._v(" "),t("div",{staticClass:`
uk-label
yo-label
uk-position-top-right uk-position-small uk-transition-fade
`},[e._v(`
`+e._s(e.filter.layout?r.meta.topic+" / "+r.meta.type:r.meta.layout)+`
`)]),e._v(" "),e.loading===r?t("div",{staticClass:`
uk-overlay
uk-overlay-primary
uk-position-cover
uk-flex
uk-flex-center
uk-flex-middle
`},[e.error?t("div",{staticClass:"uk-text-danger"},[t("span",{attrs:{"uk-icon":"warning"}}),e._v(" "),t("span",{staticClass:"uk-margin-small-left"},[e._v(e._s(e.$t(e.error)))])]):t("span",{attrs:{"uk-spinner":""}})]):e._e(),e._v(" "),t("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(o){return o.preventDefault(),e.select(r)}}})],2)])}),0)])])},Oz=[],Ez=Z({render:Tz,staticRenderFns:Oz},void 0,Az,void 0,!1,void 0,!1,void 0,void 0,void 0),Fz={name:"AbsoluteIcon",props:{node:{type:Object,required:!0}},computed:{position(){return{section:"top",row:"left"}[this.node.type.name]||"bottom"}}};const Mz=Fz;var Pz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",{staticClass:"yo-builder-icon-positioned",attrs:{title:e.$t("Absolute Positioned"),"uk-tooltip":"pos: "+e.position}})},Lz=[],Nz=Z({render:Pz,staticRenderFns:Lz},void 0,Mz,void 0,!1,void 0,!1,void 0,void 0,void 0),Rz={name:"DisabledIcon",props:{node:{type:Object,required:!0}},computed:{position(){return{section:"top",row:"left"}[this.node.type.name]||"bottom"}}};const Iz=Rz;var Dz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",{staticClass:"yo-builder-icon-disabled",attrs:{title:e.$t("Disabled"),"uk-tooltip":"pos: "+e.position}})},jz=[],Bz=Z({render:Dz,staticRenderFns:jz},void 0,Iz,void 0,!1,void 0,!1,void 0,void 0,void 0),Hz={name:"VisibilityIcon",props:{node:{type:Object,required:!0}},computed:{icon(){return`${this.type}${this.node.visibility}`},type(){return br(this.node.visibility,"hidden")?"":"visible-"},title(){return Rl(this.node.type.fields.visibility.options,e=>e===this.node.visibility)},position(){return{section:"top",row:"left"}[this.node.type.name]||"bottom"}}};const zz=Hz;var Wz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",{class:"yo-builder-icon-"+e.icon,attrs:{title:e.$t(e.title||""),"uk-tooltip":"pos: "+e.position}})},Gz=[],Kz=Z({render:Wz,staticRenderFns:Gz},void 0,zz,void 0,!1,void 0,!1,void 0,void 0,void 0),pu={name:"BuilderModel",data:()=>({base:{},types:{},prefix:"",node:{},nodes:[]}),computed:{empty(){return kt(this.node.children)},modified(){return!qd(this.base,this.node)}},watch:{node:{handler:ga(function(e){this.modified?(this.changed=!0,this.$emit("change",e,this)):!this.modified&&this.changed&&(this.changed=!1,this.$emit("change",e,this))},300),deep:!0}},created(){this.$trigger("initBuilder",[this.types])},methods:{make(e){const{container:n,defaults:t={},fields:r={}}=this.type({type:e}),o=this.clone({type:e,props:t});return Tn(r,(u,f)=>{"default"in u&&!(f in o.props)&&(o.props[f]=u.default)}),n&&(o.children=[]),o},type(e){let{type:n}=e===void 0?{}:e;return this.types[n]||{name:n,icon:`${ae.assets}/images/builder/undefined-large.svg`,iconSmall:`${ae.assets}/images/builder/undefined-small.svg`}},exists(e){let{type:n}=e;return n in this.types},set(e){e===void 0&&(e={}),e=qo(e,["name","type","children","version"]),e.version||(e.version=ae.version),this.node=e,this.nodes=[e]},reset(e){e===void 0&&(e=this.base),qd(e,this.node)||(this.node=e,this.nodes=[e],this.$trigger("resetNode",[e,this])),this.changed=!1,this.base=this.clone(e)},add(e,n,t){return t===void 0&&(t=this.after),n?Promise.resolve(t(e,this.make(n))):this.$trigger("addNode",[this],!0).then(r=>t(e,r))},save(e){return this.$trigger("saveNode",[e,this],!0)},edit(e){this.$trigger("editNode",[e,this])},copy(e){const n=this.clone(e);return this.after(e,n),n},remove(e){const{children:n=[]}=this.parent(e);return n.splice(n.indexOf(e),1),this.empty&&this.set(),e},clone(e){return cn({},e)},append(e,n,t){const{children:r=[]}=e;if(!!n)return pM(t)||(t=r.length),e.children||this.$set(e,"children",r),r.splice(t,0,...[].concat(n)),n},after(e,n){const t=this.parent(e);return this.append(t,n,(t.children||[]).indexOf(e)+1)},key(e,n){n===void 0&&(n=this.nodes);const t=n.indexOf(e);return t<0?n.push(e)-1:t},parent(e,n){return n===void 0&&(n=this.nodes),$t(n,t=>{let{children:r=[]}=t;return Ct(r,e)})},columns(e,n){n===void 0&&(n="");const{length:t}=n.split("|")[0].split(","),{children:r=[]}=e;for(e.children||this.$set(e,"children",r);r.length<t;)this.append(e,this.make("column"));for(;r.length>t;){const o=r[t];this.remove(o),this.append(r[t-1],o.children)}},columnWidths(e,n){n===void 0&&(n="");const{children:t=[]}=e,r=["medium","small","default"];n.split("|").forEach(o=>{const u=`width_${r.shift()}`;o.split(",").forEach((f,p)=>{const _=t[p];(!at(_.props)||Je(_.props))&&this.$set(_,"props",{}),this.$set(_.props,u,f)})}),r.concat(["large","xlarge"]).forEach(o=>t.forEach(u=>this.$delete(u.props,`width_${o}`))),t.forEach(o=>this.$delete(o.props,"order_first"))}},events:{statusNode(e){let{origin:n,result:t=[]}=e;return n.Builder!==this||(n.isDisabled&&t.push({component:Bz,error:!0}),n.isPositionedAbsolute&&t.push({component:Nz}),n.visibility&&n.type?.fields?.visibility&&t.push({component:Kz})),t}}};function qd(e,n){return dM(e,n,(t,r,o)=>o==="props"&&Ll(t,(u,f)=>Hm(u,r[f])||u===""&&!(f in r))&&HF(Zn(r),Zn(t)).every(u=>r[u]==="")||void 0)}var Uz={name:"MyLayouts",components:{DragOver:Yf},directives:{Confirm:$r},inject:["Library","Builder"],data:()=>({search:""}),computed:{layoutList(){return Object.entries(this.Library.layouts).filter(e=>{let[,{name:n}]=e;return!this.search||n.toLowerCase().includes(this.search.toLowerCase())}).sort((e,n)=>{let[,t]=e,[,r]=n;return t.name.localeCompare(r.name,void 0,{numeric:!0})})}},methods:{startCase:If,exportLayouts(){Kr("layouts.json",JSON.stringify(Object.values(this.Library.layouts)))},exportLayout(e){Kr(`${e.name||"layout"}.json`,JSON.stringify({...e,version:ae.version}))},isCurrentLayout(e){return qd(Yo(e,["name","modified"]),Yo(this.Builder.node,["name","modified"]))},formatDate(e){return e?new Date(e).toLocaleString():this.$t("-")},async upload(e){try{const n=e.currentTarget.files||e.dataTransfer?.files||[],t=[];for(let f=0;f<n.length;f++){const p=n[f];try{t.push(JSON.parse((await Wl(p)).target.result))}catch{throw new Error(`Error loading file '${p.name}'.`)}}const r=[],o=[],u=jm(t);if(u.forEach(f=>{let{name:p,type:_}=f;if(!p||!["section","layout"].includes(_))throw new Error("Invalid layout.");const v=this.Library.findElement(p,_);v&&o.push(p),r.push(v)}),o.length&&!window.confirm(this.$t(`Layout ${o.join(", ")} already exists in the library, do you want to overwrite it?`)))return;for(let f=0;f<u.length;f++)await this.Library.saveElement(u[f],r[f]);this.$notify("Layouts uploaded successfully.","success")}catch(n){this.$notify(n,"danger")}this.$refs.input.value=""}}};const Yz=Uz;var qz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("DragOver",{on:{drop:e.upload}},[t("div",{staticClass:"yo-modal-subheader uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(`
`+e._s(e.$t("%smart_count% Layout |||| %smart_count% Layouts",e.layoutList.length))+`
`)])]),e._v(" "),t("div",[t("div",{staticClass:"yo-finder-search"},[t("div",{staticClass:"uk-search uk-search-navbar"},[t("span",{attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])])])])]),e._v(" "),t("div",[t("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[t("div",[t("button",{directives:[{name:"show",rawName:"v-show",value:e.layoutList.length,expression:"layoutList.length"}],staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.exportLayouts.apply(null,arguments)}}},[e._v(`
`+e._s(e.$t("Download All"))+`
`)])]),e._v(" "),t("div",[t("div",{attrs:{"uk-form-custom":""}},[t("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]",multiple:"multiple"},on:{change:e.upload}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Upload Layout"))+`
`)])])]),e._v(" "),t("div",[t("button",{directives:[{name:"show",rawName:"v-show",value:!e.Builder.empty,expression:"!Builder.empty"}],staticClass:"uk-button uk-button-primary",attrs:{type:"button"},on:{click:function(r){return e.$trigger("saveNode",[e.Builder.node,e.Builder],!0)}}},[e._v(`
`+e._s(e.$t("Save Layout"))+`
`)])])])])]),e._v(" "),e.layoutList.length?t("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[t("table",{staticClass:"uk-table uk-table-divider uk-table-small uk-table-hover"},[t("thead",[t("tr",[t("th",{staticClass:"uk-table-expand"},[e._v(e._s(e.$t("Name")))]),e._v(" "),t("th",{staticClass:"uk-width-medium uk-text-center"},[e._v(e._s(e.$t("Current Layout")))]),e._v(" "),t("th",{staticClass:"uk-width-small"},[e._v(e._s(e.$t("Type")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-nowrap"},[e._v(e._s(e.$t("Last Modified")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink"})])]),e._v(" "),t("tbody",e._l(e.layoutList,function(r){var o=r[0],u=r[1];return t("tr",{key:o,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[t("td",{staticClass:"uk-table-link"},[t("a",{staticClass:"uk-link-heading",attrs:{href:""},on:{click:function(f){return f.preventDefault(),e.$emit("select",u)}}},[t("span",{staticClass:"uk-preserve-width uk-margin-small-right",attrs:{"uk-icon":u.type==="layout"?"copy":"file"}}),e._v(" "),t("span",{staticClass:"uk-text-middle"},[e._v(e._s(u.name))])])]),e._v(" "),t("td",{staticClass:"uk-text-center"},[e.isCurrentLayout(u)?t("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}):t("span",[e._v("\u2013")])]),e._v(" "),t("td",[e._v(e._s(e.startCase(u.type)))]),e._v(" "),t("td",{staticClass:"uk-text-nowrap"},[t("time",{attrs:{datetime:u.modified}},[e._v(e._s(e.formatDate(u.modified)))])]),e._v(" "),t("td",[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap uk-invisible-hover"},[t("li",[t("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Rename"),"uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(f){return e.Library.editElement(u,o,e.Builder)}}})]),e._v(" "),t("li",[t("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Download"),"uk-icon":"download","uk-tooltip":"delay: 500"},on:{click:function(f){return e.exportLayout(u)}}})]),e._v(" "),t("li",[t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(f){return e.Library.deleteElement(u,o)}}})])])])])}),0)])]):t("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No layout found.")))])])},Jz=[],Xz=Z({render:qz,staticRenderFns:Jz},void 0,Yz,void 0,!1,void 0,!1,void 0,void 0,void 0);const db="builder.library.replace";var Zz={name:"LayoutsModal",components:{Switcher:xa},provide(){return{Builder:this.builder}},props:{builder:{type:Object,required:!0}},data:()=>({replace:Rt[db]||"replace"}),computed:{tabs(){const e=this.$trigger("layoutsModalTabs",[this.node]);return[{name:"pro layouts",component:Ez},{name:"my layouts",component:Xz},...e||[]]}},beforeDestroy(){Rt[db]=this.replace}};const Qz=Zz;var Vz=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("Switcher",{attrs:{tabs:e.tabs.map(function(r){var o=r.name;return o}),storage:"builder.library.tab"}},e._l(e.tabs,function(r){return t("div",{key:r.name,staticClass:"uk-modal-body",attrs:{slot:r.name},slot:r.name},[t(r.component,{tag:"component",on:{select:function(o){return e.$emit("resolve",{node:o,replace:e.replace})}}})],1)}),0),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.builder.empty,expression:"!builder.empty"}],staticClass:"uk-modal-footer"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.replace,expression:"replace"}],staticClass:"uk-select uk-form-width-medium yo-form-medium",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.replace=r.target.multiple?o:o[0]}}},[t("option",{attrs:{value:"replace"}},[e._v(e._s(e.$t("Replace layout")))]),e._v(" "),t("option",{attrs:{value:"prepend"}},[e._v(e._s(e.$t("Insert at the top")))]),e._v(" "),t("option",{attrs:{value:"append"}},[e._v(e._s(e.$t("Insert at the bottom")))])])])],1)},eW=[],tW=Z({render:Vz,staticRenderFns:eW},void 0,Qz,void 0,!1,void 0,!1,void 0,void 0,void 0),nW={name:"Savebar",directives:{Confirm:$r},inject:["Builder","Sidebar"],mounted(){V.append(this.Sidebar.$refs.breadcrumb,this.$el)},destroyed(){V.remove(this.$el)}};const rW=nW;var iW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-savebar uk-grid uk-grid-small uk-flex-middle uk-flex-nowrap uk-text-nowrap"},[t("div",[t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-button uk-button-small uk-button-text",attrs:{type:"button"},on:{click:function(r){return e.$emit("cancel")}}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)])]),e._v(" "),t("div",[t("button",{staticClass:"uk-button uk-button-small uk-button-primary",attrs:{type:"button"},on:{click:function(r){return e.$emit("save")}}},[e._v(`
`+e._s(e.$t("Save Layout"))+`
`)])])])},aW=[],Jd=Z({render:iW,staticRenderFns:aW},void 0,rW,void 0,!1,void 0,!1,void 0,void 0,void 0),pb={name:"LibraryModel",data:()=>({library:{}}),computed:{layouts(){return yr(this.library,e=>{let{type:n}=e;return Ct(["layout","section"],n)})},elements(){return yr(this.library,e=>{let{type:n}=e;return!Ct(["layout","section"],n)})}},created(){this.$trigger("initLibrary",this.library)},methods:{async getElement(e){let{link:n}=e;return(await this.$http.get(n,{params:{key:ae.apikey}})).json()},async getElements(e){return(await this.$http.get([ae.api,e].join("/"))).json()},findElement(e,n){return Rl(this.library,{name:e,type:n})},async saveElement(e,n){n===void 0&&(n=zl());try{return await this.$trigger("saveElement",[e,n],!0),this.$set(this.library,n,e),e}catch{}},async deleteElement(e,n){try{return await this.$trigger("deleteElement",[e,n],!0),this.$delete(this.library,n),e}catch{}},async editElement(e,n,t){if(e=await this.$modal(fb,{node:t.clone(e),builder:t,edit:!0}).show({width:"xlarge"}),!e)return e;if(e.type==="layout"){const r=this.findElement(e.name,e.type);r&&n!==r&&await this.deleteElement(this.library[r],r)}return this.saveElement(e,n)}},events:{async openLibrary(e,n){const t=await this.$modal(tW,{builder:n}).show({container:!0});if(!t||t.replace==="replace"&&n.modified&&!n.empty&&!confirm(this.$t("Do you really want to replace the current layout?")))return;const r=Yo(n.clone(t.node),["version","modified"]);switch(t.replace){case"replace":n.set(r.type==="layout"?r:{type:"layout",children:[r]});break;case"append":n.append(n.node,r.type==="layout"?r.children:r);break;case"prepend":n.append(n.node,r.type==="layout"?r.children:r,0)}return r.images&&(Xd(r,r.images),delete r.images),r},async addNode(e,n){let t=await this.$modal(Z5,{builder:n}).show({container:!0});if(!!t)return t=Yo(n.clone(t),["version","modified"]),t.images&&(Xd(t,t.images),delete t.images),t},async saveNode(e,n,t){if(n=await this.$modal(fb,{node:{...t.clone(n),modified:new Date().toISOString()},builder:t}).show({width:"xlarge"}),!!n)return this.saveElement(n,n.type==="layout"?this.findElement(n.name,n.type):void 0)}}};function Xd(e,n){return Tn(e,(t,r)=>{if(at(t)&&!No(t))Xd(t,n);else if(On(t)){const o=n.filter(u=>Ct(t,u.src));o.length&&(e[r]=new td(t,{source:Zm(o.map(u=>({...u})),"src")}))}})}var oW={directives:{LazyBackground:n2},extends:Ra,props:{field:Object},computed:{title(){let e=this.$trigger("contentItemTitle",[this.node]);return e||(e=this.field.title||"title",sW(this.node.props?.[e]||""))}}};function sW(e){return V.fragment(`<div>${e}</div>`)?.textContent}const lW=oW;function uW(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)===-1&&(t[r]=e[r]);return t}var cW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("li",{key:e.Builder.key(e.node),staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[t("a",{attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.Builder.edit(e.node)}}},[e.statusIcons?t("ul",{staticClass:"uk-grid uk-grid-collapse uk-flex-inline uk-text-bottom"},e._l(e.statusIcons,function(r){var o=r.component,u=uW(r,["component"]),f=u;return t("li",{key:o.name},[t(o,e._b({tag:"component",attrs:{node:e._self}},"component",f,!1))],1)}),0):e.node.props.image?t("span",{directives:[{name:"lazy-background",rawName:"v-lazy-background",value:{src:e.$url(e.node.props.image)},expression:"{ src: $url(node.props.image) }"}],staticClass:"uk-icon uk-icon-image yo-nav-image"}):e._e(),e._v(" "),t("span",{staticClass:"uk-text-truncate yo-flex-initial",class:{"uk-text-danger":e.statusError}},[e._v(e._s(e.title||e.$t("Item")))])]),e._v(" "),t("div",{staticClass:"uk-invisible-hover uk-position-center-right uk-position-medium"},[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{href:"",title:e.$t("Copy"),"uk-icon":"copy","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.Builder.copy(e.node)}}})]),e._v(" "),t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{href:"",title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.Builder.remove(e.node)}}})])])])])},fW=[],dW=Z({render:cW,staticRenderFns:fW},void 0,lW,void 0,!1,void 0,!1,void 0,void 0,void 0),pW={components:{ContentItem:dW},directives:{Sortable:od},extends:Ue,inject:["Builder","$node"],methods:{isEmpty:kt,add(e){this.Builder.add(this.$node,e,this.Builder.append).then(n=>this.Builder.edit(n))},addFromMedia(e,n){this.$trigger("openMediaPicker",{multiple:!0,type:n.type},!0).then(t=>{mr(t)||this.Builder.append(this.$node,t.map(r=>({type:e,props:hW(n.item,r)})))})},move(e,n,t){this.Builder.append(n.$node,this.Builder.remove(e.node),t)}}};function hW(e,n){return gr(e,t=>n[t])}const _W=pW;var vW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e.isEmpty(e.$node.children)?t("p",{staticClass:"uk-text-muted"},[e._v(e._s(e.$t("No items yet.")))]):t("ul",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"content-items"},expression:"{ group: 'content-items' }"}],staticClass:`
uk-nav uk-nav-default
yo-sidebar-marginless yo-nav-sortable yo-nav-iconnav
uk-margin
`,attrs:{"cls-custom":"yo-nav-sortable-drag"}},e._l(e.$node.children,function(r){return t("ContentItem",{key:e.Builder.key(r),ref:"items",refInFor:!0,attrs:{node:r,field:e.field}})}),1),e._v(" "),t("div",{staticClass:"uk-grid uk-grid-small uk-child-width-auto"},[t("div",[t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(r){return e.add(e.field.item)}}},[e._v(`
`+e._s(e.$t(e.field.button||"Add Item"))+`
`)])]),e._v(" "),e.field.media?t("div",[t("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(r){return e.addFromMedia(e.field.item,e.field.media)}}},[e._v(`
`+e._s(e.$t("Add Media"))+`
`)])]):e._e()])])},mW=[],gW=Z({render:vW,staticRenderFns:mW},void 0,_W,void 0,!1,void 0,!1,void 0,void 0,void 0),yW={extends:Ue,inject:["Config"],data:()=>({clients:[],lists:[],error:!1}),computed:{apiKey(){return this.Config.values[`${this.field.provider}_api`]}},mounted(){this.load()},methods:{load(){!this.apiKey||this.$http.post("theme/newsletter/list",{settings:cn({name:this.field.provider},this.value)}).then(e=>{this.clients=e.data.clients,this.lists=e.data.lists,!this.value.client_id&&this.clients.length&&(this.value.client_id=this.clients[0].value),!this.value.list_id&&this.lists.length&&(this.value.list_id=this.lists[0].value)},e=>this.error=e.data)}}};const bW=yW;var $W=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("p",{directives:[{name:"show",rawName:"v-show",value:!e.apiKey,expression:"!apiKey"}],staticClass:"uk-text uk-text-danger uk-margin-small"},[e._v(`
`+e._s(e.$t("Enter the API key in advanced system settings."))+`
`)]),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"uk-text uk-text-danger uk-margin-small"},[e._v(e._s(e.error))]),e._v(" "),t("select",e._b({directives:[{name:"show",rawName:"v-show",value:e.clients.length,expression:"clients.length"},{name:"model",rawName:"v-model",value:e.value.client_id,expression:"value.client_id"}],staticClass:"uk-select uk-margin-small-bottom",on:{change:[function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.value,"client_id",r.target.multiple?o:o[0])},e.load]}},"select",e.attributes,!1),e._l(e.clients,function(r){return t("option",{key:r.value,domProps:{value:r.value}},[e._v(`
`+e._s(r.text)+`
`)])}),0),e._v(" "),t("select",e._b({directives:[{name:"show",rawName:"v-show",value:e.lists.length,expression:"lists.length"},{name:"model",rawName:"v-model",value:e.value.list_id,expression:"value.list_id"}],staticClass:"uk-select",on:{change:function(r){var o=Array.prototype.filter.call(r.target.options,function(u){return u.selected}).map(function(u){var f="_value"in u?u._value:u.value;return f});e.$set(e.value,"list_id",r.target.multiple?o:o[0])}}},"select",e.attributes,!1),e._l(e.lists,function(r){return t("option",{key:r.value,domProps:{value:r.value}},[e._v(`
`+e._s(r.text)+`
`)])}),0),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.lists.length,expression:"lists.length"}],staticClass:"uk-text-muted uk-margin-small"},[e._v(`
`+e._s(e.$t("Select the list to subscribe to."))+`
`)])])},kW=[],wW=Z({render:$W,staticRenderFns:kW},void 0,bW,void 0,!1,void 0,!1,void 0,void 0,void 0),xW={extends:Ue,computed:{menus(){const{assigned:e,items:n}=ae.menu,t=Bn(n,"menu");return Zm(Cv([].concat(this.position).map(r=>Wt(e[r]).map(o=>({name:$t(ae.menu.menus,{id:o}).name,items:Wt(t[o],{level:0})})))),"name")}},methods:{toggle(e){this.$trigger("openPanel",{item:e,name:"field-menu-items",title:e.title||e.original_title,width:400,fields:vt(this.fields,(n,t)=>cn({name:`menu.items.${e.id}.${t}`},n))})}}};const CW=xW;var SW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._l(e.menus,function(r,o){var u=r.name,f=r.items;return[t("h3",{key:"label-"+o,staticClass:"yo-sidebar-subheading"},[e._v(e._s(u))]),e._v(" "),f.length?t("ul",{key:"list-"+o,staticClass:"uk-nav uk-nav-default yo-sidebar-marginless"},e._l(f,function(p){return t("li",{key:p.id},[t("a",{attrs:{href:""},on:{click:function(_){return _.preventDefault(),e.toggle(p)}}},[e._v(e._s(p.title||p.original_title))])])}),0):t("p",{key:"message-"+o,staticClass:"uk-text-center"},[e._v(`
`+e._s(e.$t("No menu items assigned."))+`
`)])]}),e._v(" "),e.menus.length?e._e():t("p",{staticClass:"uk-text-center"},[e._v(e._s(e.$t("No menu items assigned.")))])],2)},AW=[],TW=Z({render:SW,staticRenderFns:AW},void 0,CW,void 0,!1,void 0,!1,void 0,void 0,void 0),OW=Object.freeze({__proto__:null,FieldBoxshadow:$H,FieldButtonPanel:SH,FieldCache:FH,FieldCheckbox:RH,FieldColor:Kd,FieldDataList:HH,FieldEditor:UH,FieldFont:ZH,FieldIcon:n3,FieldImage:s3,FieldLink:d3,FieldLocation:m3,FieldMenu:k3,FieldNumber:lb,FieldPlaceholder:F3,FieldRadio:R3,FieldRange:H3,FieldSelect:Fi,FieldSelectCustom:X3,FieldSelectImg:t5,FieldText:cb,FieldTextarea:c5,FieldTextshadow:f5,FieldVideo:v5,FieldGradient:$5,FieldChildren:S5,FieldChildProp:A5,FieldContentItems:gW,FieldNewsletterLists:wW,FieldMenuItems:TW}),Cr={components:{...OW},extends:Na},EW={extends:Cr,methods:{merge:cn}};const FW=EW;var MW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-panel"},e._l(e.fields,function(r){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(r.show),expression:"evaluate(field.show)"}],key:r.name,staticClass:"uk-flex uk-flex-middle uk-margin-small"},[t("div",{staticClass:"uk-width-expand uk-text-truncate"},[r.description?t("span",{attrs:{title:r.description,"uk-tooltip":"delay: 300; pos: top-left"}},[e._v(e._s(e.$t(r.label||"")))]):t("span",[e._v(e._s(e.$t(r.label||"")))])]),e._v(" "),t("div",{staticClass:"uk-width-medium"},[t(r.component,{tag:"component",attrs:{values:e.values,field:e.merge(r,{attrs:{class:"yo-form-medium"}})},on:{change:e.change}})],1)])}),0)},PW=[],LW=Z({render:MW,staticRenderFns:PW},void 0,FW,void 0,!1,void 0,!1,void 0,void 0,void 0);window.$fields=Cr.components;var NW={extends:Cr,inject:["Config","Styler"],props:{panel:Object,component:{type:String,required:!0}},computed:{style(){return this.Styler.style},vals(){return{...this.style.values,...this.Config.values.less}},fields(){const e=this.style.groups[this.component].map(n=>{let{name:t,group:r}=n;return cn({name:t,group:r},$t(ae.sections.styler.types,o=>lu(t,o.vars)),RW(t,this.style.variables))});return this.prepare(e.map((n,t)=>({...n,label:(!e[t-1]||e[t-1].group!==n.group)&&n.group})))}},methods:{change(e,n){let{name:t}=n;this.Styler.set(t,e)},label(e){let{name:n,group:t}=e;return n=n.substring(1).replace(new RegExp(`^${this.component}-`),"").replace(/-/g," "),t&&(n=n.replace(new RegExp(`^(${t}|${t.replace(/s$/,"")}) `),"")),n=n.replace(/(.*) (s|m|l|xl|xxl)$/i,"@$2 $1"),this.$t(n)},reset(e){let{name:n,internal:t}=e;this.Styler.remove(n),this.Styler.remove(t)}}};function RW(e,n){const t=`@internal-${e.replace(/^@/,"").replace(/-background$/i,"")}-gradient`;return t in n?{type:"gradient",internal:t}:!1}const IW=NW;var DW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-sidebar-fields"},[e._l(e.Styler.style.errors,function(r){return t("p",{key:r,staticClass:"uk-text-danger"},[e._v(`
`+e._s(e.$t("Error: %error%",{error:r}))+`
`)])}),e._v(" "),e._l(e.fields,function(r){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(r.show),expression:"evaluate(field.show)"}],key:r.name},[r.label?t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t(r.label)))]):e._e(),e._v(" "),t("div",{staticClass:"uk-flex uk-flex-middle yo-style yo-margin-xsmall uk-visible-toggle",attrs:{tabindex:"-1"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.Styler.isCustomized(r),expression:"Styler.isCustomized(field)"}],staticClass:"yo-style-reset",on:{click:function(o){return e.reset(r)}}}),e._v(" "),t("div",{staticClass:"uk-width-expand uk-text-truncate uk-text-capitalize"},[t("span",{attrs:{title:r.name,"uk-tooltip":"delay: 1000; pos: top-left"}},[e._v(e._s(e.label(r)))]),e._v(" "),e.style.isComputed(r)?t("span",{staticClass:"yo-style-label uk-invisible-hover",attrs:{title:e.$t("Auto-calculated"),"uk-tooltip":"delay: 1000"}},[e._v("A")]):e._e()]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t(r.component,{tag:"component",attrs:{values:e.vals,field:r},on:{change:e.change}})],1)]),e._v(" "),r.divider?t("hr"):e._e()])})],2)},jW=[],BW=Z({render:DW,staticRenderFns:jW},void 0,IW,void 0,!1,void 0,!1,void 0,void 0,void 0),HW={extends:Cr,inject:["Fonts"],computed:{fields(){return this.prepare(zW(this.Fonts.fonts).concat(WW()))},vals(){return{...this.Fonts.variants,subsets:this.Fonts.subsets}}}};function zW(e){return e.map((n,t)=>({name:n.name,label:`${n.name} Variants`,description:t===e.length-1?'Add a comma separated list of font weights to load, e.g. 300, 400, 600. Look up available variants at <a href="https://fonts.google.com" target="_blank">Google Fonts</a>.':"",attrs:{placeholder:"400"}}))}function WW(){return{name:"subsets",label:"Languages",description:'Add a comma separated list of font subsets to load, e.g. cyrillic, cyrillic-ext, greek, greek-ext, latin-ext, vietnamese. The Latin subset is always included. Look up available subsets at <a href="https://fonts.google.com" target="_blank">Google Fonts</a>.',attrs:{placeholder:"latin"}}}const GW=HW;var KW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-sidebar-fields"},e._l(e.fields,function(r){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(r.show),expression:"evaluate(field.show)"}],key:r.name},[r.label?t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t(r.label)))]):e._e(),e._v(" "),t("div",{staticClass:"uk-position-relative"},[e.Fonts.isSet(r)?t("div",{staticClass:"yo-style-reset",on:{click:function(o){return e.Fonts.reset(r)}}}):e._e(),e._v(" "),t(r.component,{tag:"component",attrs:{field:r,values:e.vals},on:{change:e.Fonts.set}})],1),e._v(" "),r.description?t("p",{staticClass:"uk-text-muted uk-margin-small",domProps:{innerHTML:e._s(e.$t(r.description))}}):e._e()])}),0)},UW=[],YW=Z({render:KW,staticRenderFns:UW},void 0,GW,void 0,!1,void 0,!1,void 0,void 0,void 0),qW={name:"StylerSection",directives:{Confirm:$r},inject:["Styler"],props:{panel:Object},data:()=>({test:!1}),watch:{test(e){this.$trigger("styleTest",e)}},events:{editComponent(e,n){this.$trigger("openPanel",{component:BW,width:350,title:n.replace(/-/g," "),name:"styleFields",props:{component:n}})},editFonts(){this.$trigger("openPanel",{component:YW,width:350,title:this.$t("Google Fonts"),name:"FontFields"})},closePanel(e,n,t,r){let{name:o}=r===void 0?{}:r;o!=="styler"&&(this.test=!1)}},methods:{download:Kr,isEmpty:kt,filterComponents(e,n){return n===void 0&&(n=!1),yr(e,t=>{let{general:r=!1}=t;return r===n})}}};const JW=qW;var XW=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-sidebar-fields"},[t("div",{staticClass:"uk-margin-small"},[t("a",{staticClass:"uk-select",attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.$trigger("selectStyle")}}},[e._v(e._s(e.Styler.style.name))])]),e._v(" "),t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.test,expression:"test"}],staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.test)?e._i(e.test,null)>-1:e.test},on:{change:function(r){var o=e.test,u=r.target,f=!!u.checked;if(Array.isArray(o)){var p=null,_=e._i(o,p);u.checked?_<0&&(e.test=o.concat([p])):_>-1&&(e.test=o.slice(0,_).concat(o.slice(_+1)))}else e.test=f}}}),e._v(`
`+e._s(e.$t("Preview all UI components")))])])]),e._v(" "),e._l(e.Styler.style.errors,function(r){return t("p",{key:r,staticClass:"uk-text-danger"},[e._v(`
`+e._s(e.$t("Error: %error%",{error:r}))+`
`)])}),e._v(" "),t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t("General")))]),e._v(" "),e.isEmpty(e.Styler.style.components)?e._e():t("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless uk-text-capitalize yo-nav-iconnav"},[e._l(e.filterComponents(e.Styler.style.components,!0),function(r,o){var u=r.name;return t("li",{key:o,on:{mouseenter:function(f){return e.$trigger("hoverComponent",[f,o])}}},[t("a",{attrs:{href:""},on:{click:function(f){return f.preventDefault(),e.$trigger("editComponent",[o])}}},[e._v(e._s(u))]),e._v(" "),e.Styler.isCustomizedComponent(o)?t("div",{staticClass:"yo-style-reset",on:{click:function(f){return e.Styler.resetComponent(o)}}}):e._e()])}),e._v(" "),e.Styler.style.hasFonts?t("li",[t("a",{attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.$trigger("editFonts")}}},[e._v(e._s(e.$t("Google Fonts")))])]):e._e()],2),e._v(" "),t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t("Components")))]),e._v(" "),t("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless uk-text-capitalize yo-nav-iconnav"},e._l(e.filterComponents(e.Styler.style.components),function(r,o){var u=r.name;return t("li",{key:o,on:{mouseenter:function(f){return e.$trigger("hoverComponent",[f,o])}}},[t("a",{attrs:{href:""},on:{click:function(f){return f.preventDefault(),e.$trigger("editComponent",[o])}}},[e._v(e._s(u))]),e._v(" "),e.Styler.isCustomizedComponent(o)?t("div",{staticClass:"yo-style-reset",on:{click:function(f){return e.Styler.resetComponent(o)}}}):e._e()])}),0),e._v(" "),t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{disabled:!e.Styler.isCustomized(),type:"button"},on:{click:e.Styler.reset}},[e._v(`
`+e._s(e.$t("Reset to defaults"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{disabled:!e.Styler.isCustomized()&&!e.Styler.style.substyle,type:"button"},on:{click:function(r){return e.download("style.less",e.Styler.lessString)}}},[e._v(`
`+e._s(e.$t("Download Less"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{type:"button"},on:{click:function(r){return e.$trigger("recompileStyle")}}},[e._v(`
`+e._s(e.$t("Recompile style"))+`
`)])],2)},ZW=[],QW=Z({render:XW,staticRenderFns:ZW},void 0,JW,void 0,!1,void 0,!1,void 0,void 0,void 0),VW={extends:UB,created(){this.$http.get("styler/library").then(e=>{let{body:n}=e;return this.styles=n},()=>this.styles={})},events:{saveStyle(e,n,t){return this.$http.post("styler/library",{id:t,style:n})},deleteStyle(e,n){return this.$http.delete("styler/library",{params:{id:n}})}}};function e6(e){let{app:n}=e;n.extend({components:{styler:{extends:QW,models:{Library:VW},created(){new Te({parent:this,extends:xB}),new Te({parent:this,extends:_B}),new Te({parent:this,extends:bB}).$mount(),this.panel.update&&setTimeout(()=>this.$trigger("recompileStyle"),250)},methods:{async inject(){if(!this.Styler.style.css)return;const t=un(this,"window.document.documentElement.dir")==="rtl"?await this.Styler.rtl():this.Styler.style.css;n6(this.window,t)},async save(){try{const{css:t,rtl:r}=await this.Styler.minify();this.Styler.style.isEdited=!1,await t6(ae.sections.styler.route,{"css/theme.css":t,"css/theme.rtl.css":r})}catch(t){console.error(t),this.Styler.style.isEdited=!0}}},events:{readyPreview(t,r){let{origin:o}=t,{window:u}=r;this.preview=o,this.window=!ae.id||u.$customizer&&ae.id===u.$customizer.id?u:null,this.inject()},compileStyle(t,r){this.preview&&(this.preview.overlay=r),r||this.inject()},saveConfig(){return this.Styler.style.isEdited?this.save():Promise.resolve()},async recompileStyle(){!this.Styler.style.id||(await this.Styler.style.load(!0),await this.Styler.compile(),await this.save(),this.inject())}}}},models:{Styler:VB,Fonts:wB}})}function t6(e,n){const t=new FormData;return t.append("files",new Blob([ed(JSON.stringify(n))],{type:"text/plain"})),Te.http.post(e,t)}function n6(e,n){const t=e?.document.getElementById("theme-style");!t||!n||(t.tagName==="STYLE"?t.textContent=n:e.document.head.replaceChild(V.$(`<style id="${t.id}">${n}</style>`),t))}var r6={extends:pb,created(){this.$http.get("builder/library").then(e=>{let{body:n}=e;return this.library=n},e=>{e.status===403&&this.$notify({message:"Your session has expired. Please reload page to start working.",status:"danger",timeout:0}),this.library={}})},methods:{getElement(e){let{link:n}=e;return pb.methods.getElement.call(this,{link:n}).then(t=>this.$http.post("builder/encode",{layout:t}).then(r=>r.json()))}},events:{async saveElement(e,n,t){return n.version=ae.version,await this.$trigger("replaceImages",n,!0),this.$http.post("builder/library",{id:t,element:n})},deleteElement(e,n,t){return this.$http.delete("builder/library",{params:{id:t}})}}},i6=function(e,n){var t=n._c;return t("div",{staticClass:"yo-sidebar-fields",class:n.data.staticClass,style:n.data.style},n._l(n.parent.prepare(n.props.field.fields),function(r){return t("div",{directives:[{name:"show",rawName:"v-show",value:n.parent.evaluate(r.show),expression:"parent.evaluate(field.show)"}],key:r.name},[r.buttons?[t("div",{staticClass:"uk-flex uk-flex-middle uk-flex-right js-dropdown"},[r.label?t("div",{staticClass:"uk-width-expand"},[t("h3",{staticClass:"yo-sidebar-subheading uk-margin-remove"},[n._v(`
`+n._s(n.parent.$t(r.label))+`
`)])]):n._e(),n._v(" "),t("div",{staticClass:"uk-width-auto"},[t("ul",{staticClass:"uk-subnav uk-margin-remove"},n._l(r.buttons,function(o){var u=o.label,f=o.action,p=o.show;return t("li",{directives:[{name:"show",rawName:"v-show",value:n.parent.evaluate(p),expression:"parent.evaluate(show)"}],key:f},[t("button",{staticClass:"uk-button uk-button-link",attrs:{disabled:r.enable&&!n.parent.evaluate(r.enable),type:"button"},on:{click:function(_){return n.parent.$trigger(f,[r,_])}}},[n._v(`
`+n._s(u)+`
`)])])}),0)])])]:r.label?t("h3",{staticClass:"yo-sidebar-subheading"},[n._v(`
`+n._s(n.parent.$t(r.label))+`
`)]):n._e(),n._v(" "),r.type!=="description"?[~["radio","checkbox","grid","group"].indexOf(r.type)?t(r.component,{tag:"component",attrs:{field:r,values:n.parent.values},on:{change:n.parent.change}}):t("div",{staticClass:"uk-margin-small"},[t(r.component,{tag:"component",attrs:{field:r,values:n.parent.values},on:{change:n.parent.change}})],1)]:n._e(),n._v(" "),r.description?t("p",{staticClass:"uk-text-muted uk-margin-small",domProps:{innerHTML:n._s(n.parent.$t(r.description))}}):n._e(),n._v(" "),r.divider?t("hr"):n._e()],2)}),0)},a6=[],hb=Z({render:i6,staticRenderFns:a6},void 0,{},void 0,!0,void 0,!1,void 0,void 0,void 0),o6=function(e,n){var t=n._c;return t("div",{staticClass:"yo-sidebar-grid uk-grid uk-flex-nowrap",class:{"uk-grid-small uk-margin-remove-bottom":n.parent.get(n.props.field.attrs,"class")==="yo-form-medium","uk-grid-medium":n.parent.get(n.props.field.attrs,"class")!=="yo-form-medium"}},n._l(n.parent.prepare(n.props.field.fields),function(r){var o;return t("div",{directives:[{name:"show",rawName:"v-show",value:n.parent.evaluate(r.show),expression:"parent.evaluate(field.show)"}],key:r.name,class:(o={},o["uk-width-"+n.props.field.width]=n.props.field.width,o)},[r.buttons?[t("div",{staticClass:"uk-flex uk-flex-middle uk-flex-right js-dropdown"},[r.label?t("div",{staticClass:"uk-width-expand"},[t("h3",{staticClass:"yo-sidebar-subheading uk-margin-remove"},[n._v(`
`+n._s(n.parent.$t(r.label))+`
`)])]):n._e(),n._v(" "),t("div",{staticClass:"uk-width-auto"},[t("ul",{staticClass:"uk-subnav uk-margin-remove"},n._l(r.buttons,function(u){var f=u.label,p=u.action,_=u.show;return t("li",{directives:[{name:"show",rawName:"v-show",value:n.parent.evaluate(_),expression:"parent.evaluate(show)"}],key:p},[t("button",{staticClass:"uk-button uk-button-link",attrs:{disabled:r.enable&&!n.parent.evaluate(r.enable),type:"button"},on:{click:function(v){return n.parent.$trigger(p,[r,v])}}},[n._v(`
`+n._s(f)+`
`)])])}),0)])])]:r.label?t("h3",{staticClass:"yo-sidebar-subheading"},[n._v(`
`+n._s(n.parent.$t(r.label))+`
`)]):n._e(),n._v(" "),r.type!=="description"?[~["radio","checkbox","grid"].indexOf(r.type)?t(r.component,{tag:"component",attrs:{field:r,values:n.props.values},on:{change:n.parent.change}}):t("div",{staticClass:"uk-margin-small"},[t(r.component,{tag:"component",attrs:{field:r,values:n.props.values},on:{change:n.parent.change}})],1)]:n._e(),n._v(" "),r.description?t("p",{staticClass:"uk-text-muted uk-margin-small",domProps:{innerHTML:n._s(n.parent.$t(r.description))}}):n._e()],2)}),0)},s6=[],l6=Z({render:o6,staticRenderFns:s6},void 0,{},void 0,!0,void 0,!1,void 0,void 0,void 0),u6=function(e,n){var t=n._c;return t("div",{staticClass:"uk-margin-small"},n._l(n.parent.prepare(n.props.field.fields),function(r){return t("div",{directives:[{name:"show",rawName:"v-show",value:n.parent.evaluate(r.show),expression:"parent.evaluate(field.show)"}],key:r.name,staticClass:"uk-flex uk-flex-middle uk-margin-small",class:{"uk-flex-wrap":r.buttons}},[r.buttons?t("div",{staticClass:"uk-width-1-1 uk-flex uk-flex-right uk-margin-small-bottom js-dropdown"},[t("ul",{staticClass:"uk-subnav uk-margin-remove"},n._l(r.buttons,function(o){var u=o.label,f=o.action,p=o.show;return t("li",{directives:[{name:"show",rawName:"v-show",value:n.parent.evaluate(p),expression:"parent.evaluate(show)"}],key:f},[t("button",{staticClass:"uk-button uk-button-link",attrs:{disabled:r.enable&&!n.parent.evaluate(r.enable),type:"button"},on:{click:function(_){return n.parent.$trigger(f,[r,_])}}},[n._v(`
`+n._s(u)+`
`)])])}),0)]):n._e(),n._v(" "),t("div",{staticClass:"uk-width-expand uk-text-truncate"},[r.description?t("span",{attrs:{title:r.description,"uk-tooltip":"delay: 300; pos: top-left"}},[n._v(n._s(n.parent.$t(r.label||"")))]):t("span",[n._v(n._s(n.parent.$t(r.label||"")))])]),n._v(" "),t("div",{staticClass:"uk-width-medium"},[t(r.component,{tag:"component",attrs:{values:n.props.values,field:n.parent.merge(r,{attrs:{class:"yo-form-medium"}})},on:{change:n.parent.change}})],1)])}),0)},c6=[],f6=Z({render:u6,staticRenderFns:c6},void 0,{},void 0,!0,void 0,!1,void 0,void 0,void 0);const{prepare:d6}=Cr.extends.methods;var p6={name:"FieldsPanel",components:{FieldGrid:l6,FieldGroup:f6,FieldFields:hb},extends:Cr,inject:{Config:{default:{values:{}}}},props:{name:{type:String,default:"default"},panel:{type:Object,required:!0}},data:()=>({index:0,transitionIndex:0}),computed:{fieldset(){const{fieldset:e={},fields:n}=this.panel;return e[this.name]||{fields:n}}},watch:{index(e,n){this.transitionIndex=n}},created(){this.panel.heading=this.fieldset.type!=="tabs"},methods:{get:un,merge:cn,prepare(e,n){e===void 0&&(e=this.config),n===void 0&&(n=this.prefix);const t=Je(e);return d6.call(this,vt(e,(r,o)=>{if(On(r)){if(!(r in this.panel.fields))return;r=Ft({name:r},this.panel.fields[r])}else r=Ft({},r);return!r.name&&!t?r.name=o:!r.name&&r.label&&(r.name=r.label),r}).filter(r=>r),n)},tabStyle(e){return{width:"100%",left:e<this.index?"-100%":e===this.index?"0":"100%",visibility:Ct([this.index,this.transitionIndex],e)?"visible":"hidden"}}}};const h6=p6;var _6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.fieldset.type==="tabs"?t("div",[t("div",{staticClass:"uk-grid uk-grid-small uk-flex-middle yo-sidebar-tabs"},[t("div",{staticClass:"uk-width-expand"},[t("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(e.$t(e.panel.title)))])]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t("ul",{staticClass:"uk-subnav"},e._l(e.fieldset.fields,function(r,o){var u=r.title;return t("li",{key:o,class:{"uk-active":e.index===o}},[t("a",{attrs:{href:""},on:{click:function(f){f.preventDefault(),e.index=o}}},[e._v(e._s(e.$t(u)))])])}),0)])]),e._v(" "),t("div",{staticClass:"yo-sidebar-tabs-content"},e._l(e.fieldset.fields,function(r,o){return t("FieldFields",{key:o,staticClass:"yo-sidebar-tabs-section",style:e.tabStyle(o),attrs:{field:r},nativeOn:{transitionend:function(u){if(u.target!==u.currentTarget)return null;e.transitionIndex=e.index}}})}),1)]):t("FieldFields",{attrs:{field:e.fieldset}})},v6=[],Sr=Z({render:_6,staticRenderFns:v6},void 0,h6,void 0,!1,void 0,!1,void 0,void 0,void 0),m6={props:{config:{type:Object,required:!0}},computed:{name(){return this.config.name},title(){return this.config.title}},created(){this.$config=ae}};const g6=m6;var y6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-sidebar-section",class:e.config.cls},[e.config.heading!==!1?[e.config.help?t("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[t("div",{staticClass:"uk-width-expand"},[t("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(e.$t(e.title)))])]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t("button",{staticClass:"uk-icon uk-icon-link",attrs:{"uk-svg":e.$config.assets+"/images/help.svg",type:"button"},on:{click:function(r){return e.$trigger("openHelp",[e.config.help])}}})])]):t("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(e.$t(e.title)))])]:e._e(),e._v(" "),e._t("default",function(){return[e._v("Empty panel")]})],2)},b6=[],$6=Z({render:y6,staticRenderFns:b6},void 0,g6,void 0,!1,void 0,!1,void 0,void 0,void 0),k6={data:()=>({values:{},target:"",action:"",method:"POST"}),destroyed(){V.remove(this.$el)},methods:{submit(){return this.$el.submit(),this},encode(e){return at(e)?JSON.stringify(e):e}}};const w6=k6;var x6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("form",{attrs:{action:e.action,method:e.method,target:e.target,hidden:""}},e._l(e.values,function(r,o){return t("input",{key:o,attrs:{name:o,type:"hidden"},domProps:{value:e.encode(r)}})}),0)},C6=[],S6=Z({render:x6,staticRenderFns:C6},void 0,w6,void 0,!1,void 0,!1,void 0,void 0,void 0),A6={data:()=>({name:"",loaded:!1}),destroyed(){V.remove(this.$el)},methods:{load(e){const{contentWindow:n,contentDocument:t}=this.$el;!n.location.host||(e.first=!this.loaded,this.loaded=!0,this.$parent.update({event:e,window:n,document:t},this),V.on(n,"beforeunload unload",r=>this.$parent.update({event:r,window:n,document:t},this)))}}};const T6=A6;var O6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("iframe",{style:e.loaded?!1:{zIndex:-1},attrs:{name:e.name},on:{load:e.load}})},E6=[],F6=Z({render:O6,staticRenderFns:E6},void 0,T6,void 0,!1,void 0,!1,void 0,void 0,void 0),M6={props:{src:{type:String,required:!0},method:{type:String,default:"POST"}},data:e=>{let{src:n}=e;return{size:"",source:n,channel:0,current:null,overlay:!1,pointerEvents:!0}},computed:{loading(){const e=`preview-${this.channel}`;return this.current&&this.current.name!==e}},mounted(){V.on(document,V.pointerDown,e=>{let{target:{tagName:n}}=e;return n!=="SELECT"&&(this.pointerEvents=!1)},!0),V.on(document,`${V.pointerUp} click`,()=>this.pointerEvents=!0,!0)},methods:{load(e){const n=`preview-${++this.channel}`,{preview:t}=this.$refs;this.pending&&this.pending.$destroy(),this.pending=this.create(F6,{name:n},t),this.create(S6,{values:e,target:n,action:this.src,method:this.method},t).submit().$destroy()},update(e,n){let{event:t,window:r,document:o}=e;if(t.type!=="load"){this.$trigger(`${t.type}Preview`,{event:t,window:r,document:o});return}t.first&&(this.current&&this.current.$destroy(),this.current=n,this.pending=this.loading&&this.pending),this.loading||this.$trigger("readyPreview",{event:t,window:r,document:o})},create(e,n,t){t===void 0&&(t=null);const r=new Te({parent:this,extends:e,data:()=>n});return t&&t.appendChild(r.$mount().$el),r}},events:{loadPreview:{handler(e,n){this.load(n)},priority:-10},resizePreview(e,n){const t={desktop:"",laptop:"desktop"};this.size=un(t,n,n)}}};const P6=M6;var L6=function(){var e,n=this,t=n.$createElement,r=n._self._c||t;return r("div",{staticClass:"yo-preview uk-flex-auto uk-flex uk-position-relative"},[r("div",{ref:"preview",staticClass:"yo-preview-iframe uk-margin-auto uk-margin-auto-vertical",class:(e={},e["yo-preview-size-"+n.size]=n.size,e),style:{pointerEvents:n.pointerEvents?"":"none"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:!n.current,expression:"!current"}],staticClass:"uk-position-center",attrs:{"uk-spinner":""}}),n._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:n.loading||n.overlay,expression:"loading || overlay"}],staticClass:"uk-position-cover uk-position-z-index uk-overlay uk-overlay-default"})])])},N6=[],R6=Z({render:L6,staticRenderFns:N6},void 0,P6,void 0,!1,void 0,!1,void 0,void 0,void 0),I6={data:()=>({size:"desktop",sizes:["desktop","laptop","tablet-portrait","phone-portrait"]}),methods:{icon(e){return e.split("-")[0]},active(e,n){return n===void 0&&(n=""),n&&!this.size.match(n)?!1:e===this.size.replace("landscape","portrait")},resize(e){this.size===e&&(e=e.replace("portrait","landscape")),this.$trigger("resizePreview",this.size=e)},beforeAppear(e){e.style.visibility="hidden"},appear(e){setTimeout(()=>{e.style.visibility="",e.classList.add("uk-animation-slide-bottom-small")},e.dataset.index*100)}}};const D6=I6;var j6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("TransitionGroup",e._g({staticClass:"uk-grid uk-grid-small",attrs:{tag:"ul",appear:""}},{beforeAppear:e.beforeAppear,appear:e.appear}),e._l(e.sizes,function(r,o){return t("li",{key:r,class:{"uk-active":e.active(r)},attrs:{"data-index":o}},[t("a",{staticClass:"uk-icon uk-icon-link",class:{"yo-landscape":e.active(r,"landscape")},attrs:{href:"",icon:e.icon(r),"uk-icon":""},on:{click:function(u){return u.preventDefault(),e.resize(r)}}})])}),0)},B6=[],H6=Z({render:j6,staticRenderFns:B6},void 0,D6,void 0,!1,void 0,!1,void 0,void 0,void 0),z6={props:{value:[String,Number],minWidth:[String,Number]},data:()=>({maxWidth:.75}),created(){this.$config=ae},mounted(){V.on(this.$el,V.pointerDown,e=>{const{x:n}=V.getEventPos(e);let{left:t}=V.offset(this.$el);t-=n;const r=V.on(document,V.pointerMove,o=>this.$emit("input",Math.floor(V.clamp(V.getEventPos(o).x-t,this.minWidth,window.innerWidth*this.maxWidth))));V.once(document,V.pointerUp,r)})}};const W6=z6;var G6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-position-center-right"},[t("button",{staticClass:"uk-icon yo-icon-link yo-sidebar-drag",attrs:{"uk-svg":"src: "+e.$config.assets+"/images/customizer/drag.svg",type:"button"}})])},K6=[],U6=Z({render:G6,staticRenderFns:K6},void 0,W6,void 0,!1,void 0,!1,void 0,void 0,void 0),Y6={components:{Panel:$6,SplitPane:U6},provide(){return{Sidebar:this}},props:{panels:{type:Object,default:()=>({})},sections:{type:Object,default:()=>({})}},data:()=>({stack:[],last:null,hidden:!1,inTransition:!1,initialWidth:0,resizedWidth:0}),computed:{panel(){return Pl(this.stack)},prevPanel(){return this.stack[this.stack.length-2]},sectionList(){return Km(Bm(this.sections),"priority","asc")},single(){return this.sectionList.length===1?this.sectionList[0]:!1},openPanels(){return Xm(this.sectionList.concat(this.stack))},minWidth(){return this.panel&&this.panel.width||this.initialWidth||""},width:{get(){return Math.max(this.resizedWidth,this.minWidth)||""},set(e){this.resizedWidth=e,this.$el.style.transition="unset",requestAnimationFrame(()=>this.$el.style.transition="")}},isTopPanel(){return this.stack.length<=(this.single?1:0)}},created(){this.$config=ae,Tn(this.panels,(e,n)=>e.name=n),Tn(this.sections,(e,n)=>e.name=n)},mounted(){this.$nextTick(()=>{this.initialWidth=this.$el.offsetWidth,this.single&&this.openPanel(this.single)})},methods:{openPanel(e){this.$trigger("openPanel",e)},closePanel(){if(this.stack.length<(this.single?2:1))return;const e={close:!0};this.$trigger("closePanel",[e,this.panel,this.prevPanel]),e.close&&this.stack.pop()},beforeAppear(e){e.style.visibility="hidden"},appear(e){setTimeout(()=>{e.style.visibility="",e.classList.add("uk-animation-slide-left-medium")},e.dataset.index*100)},beforeEnter(e){this.last?br(e.style.left,"-")&&(e.style.left=`-${e.style.width}`):e.style.left="",this.last=this.panel},enter(e){e.offsetWidth,e.style.left=0},beforeLeave(e){e.style.left=0,e.offsetWidth},leave(e){this.$nextTick(()=>e.style.left=q6(e)?`-${e.offsetWidth}px`:"")},afterLeave(){this.last=this.panel}},events:{openPanel:[{handler(e,n){const t=On(n)?n:n.name;if(this.panel&&this.panel.name===t)return!1;e.sidebar=this},priority:10},{handler(e,n){On(n)&&(n=this.sections[n]||this.panels[n]||n),n&&(n.width=n.width||this.panel&&this.panel.width||this.initialWidth,this.stack.push(n)),e.params[0]=this.panel},priority:0}],closePanel(e){let{origin:n}=e;n!==this&&this.closePanel()}}};function q6(e){for(;e.nextElementSibling;){if(e.nextElementSibling.classList.contains("v-enter"))return!0;e=e.nextElementSibling}return!1}const J6=Y6;var X6=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-sidebar uk-flex-none",style:{width:e.width+"px",marginLeft:e.hidden?"-"+e.width+"px":""},on:{transitionend:function(r){if(r.target!==r.currentTarget)return null;e.inTransition=!1}}},[t("div",{staticClass:"yo-sidebar-header"},[e._t("header",function(){return[t("div",{staticClass:"yo-sidebar-close uk-flex uk-flex-middle"},[t("Transition",{attrs:{appear:"","appear-to-class":"uk-animation-fade"}},[t("button",{staticClass:"uk-button uk-button-text uk-button-small uk-animation-fast",attrs:{type:"button"},on:{click:function(r){return e.$trigger("close")}}},[e._v(`
`+e._s(e.$t("Close"))+`
`)])])],1)]}),e._v(" "),t("div",{ref:"breadcrumb",staticClass:`
yo-sidebar-breadcrumb
uk-flex uk-flex-middle uk-flex-between uk-animation-fast
`},[t("Transition",{attrs:{"enter-active-class":"uk-animation-fade","leave-active-class":"uk-animation-fade uk-animation-reverse"}},[e.isTopPanel?e._e():t("a",{staticClass:"uk-h4 uk-flex uk-flex-middle uk-margin-remove",attrs:{href:""},on:{click:function(r){return r.preventDefault(),e.closePanel.apply(null,arguments)}}},[t("span",{staticClass:"uk-margin-small-right uk-icon",attrs:{"uk-svg":e.$config.assets+"/images/customizer/breadcrumb.svg"}}),e._v(" "),t("span",[e._v(e._s(e.$t(e.prevPanel?e.prevPanel.title||"Back":"Home")))])])]),e._v(" "),e.isTopPanel?t("span"):e._e()],1)],2),e._v(" "),t("TransitionGroup",e._g({ref:"sidebar",staticClass:"yo-sidebar-content",attrs:{tag:"div"}},{beforeEnter:e.beforeEnter,enter:e.enter,beforeLeave:e.beforeLeave,leave:e.leave,afterLeave:e.afterLeave}),[e.single?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!e.panel,expression:"!panel"}],key:"rootSection",staticClass:"yo-sidebar-section",style:{width:Math.max(e.resizedWidth,e.initialWidth)+"px"}},[e._t("content",function(){return[t("Transition",{attrs:{appear:"","appear-to-class":"uk-animation-fade"}},[t("h1",{staticClass:"uk-logo yo-sidebar-logo uk-text-center"},[e._v("YOOtheme")])]),e._v(" "),t("TransitionGroup",e._g({staticClass:"uk-nav uk-nav-primary uk-nav-center yo-sidebar-marginless",attrs:{tag:"ul"}},{beforeAppear:e.beforeAppear,appear:e.appear}),e._l(e.sectionList,function(r,o){return t("li",{key:r.name,attrs:{"data-index":o}},[t("a",{attrs:{href:""},on:{click:function(u){return u.preventDefault(),e.openPanel(r.name)}}},[e._v(e._s(e.$t(r.title)))])])}),0)]})],2),e._v(" "),e._l(e.openPanels,function(r){return t("Panel",{directives:[{name:"show",rawName:"v-show",value:r===e.panel||r===e.last,expression:"pan === panel || pan === last"}],key:r.name,style:{width:Math.max(e.resizedWidth,r.width)+"px"},attrs:{config:r}},[e._t("panel",function(){return[e._v("Empty panel")]},{panel:r})],2)})],2),e._v(" "),t("div",{staticClass:"yo-sidebar-footer"},[t("div",{staticClass:`
uk-position-relative
uk-height-1-1
uk-flex
uk-flex-center
uk-flex-middle
uk-overflow-hidden
`},[t("div",{staticClass:"uk-position-center-left uk-position-small"},[t("button",{staticClass:"uk-icon uk-icon-link",attrs:{"uk-svg":"src: "+e.$config.assets+"/images/customizer/chevron-double-left.svg",type:"button"},on:{click:function(r){r.preventDefault(),(e.hidden=!0)&&(e.inTransition=!0)}}})]),e._v(" "),e._t("footer"),e._v(" "),t("SplitPane",{attrs:{"min-width":e.minWidth},model:{value:e.width,callback:function(r){e.width=r},expression:"width"}})],2)]),e._v(" "),e.hidden&&!e.inTransition?t("button",{staticClass:"yo-sidebar-hide uk-icon-button uk-icon uk-animation-fade uk-animation-fast",attrs:{"uk-svg":"src: "+e.$config.assets+"/images/customizer/chevron-double-right.svg",type:"button"},on:{click:function(r){e.hidden=!1}}}):e._e()],1)},Z6=[],Q6=Z({render:X6,staticRenderFns:Z6},void 0,J6,void 0,!1,void 0,!1,void 0,void 0,void 0),V6={props:{help:[Array,Object]},computed:{groups(){return Je(this.help)?{"":this.help}:this.help}},created(){this.$config=ae}};const e8=V6;var t8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[t("h2",{staticClass:"uk-modal-title uk-margin-remove",domProps:{innerHTML:e._s(e.$t("YOOtheme Help"))}}),e._v(" "),t("a",{staticClass:"uk-button uk-button-primary",attrs:{href:"https://yootheme.com/support",target:"_blank"}},[e._v("Support Center")])]),e._v(" "),t("div",{staticClass:"uk-modal-body",attrs:{"uk-overflow-auto":""}},e._l(e.groups,function(r,o){return t("table",{key:o,staticClass:"uk-table uk-table-divider uk-table-hover"},[t("thead",[t("tr",[o?t("th",{staticClass:"uk-table-expand"},[e._v(`
`+e._s(e.$t("%group%",{group:e.$t(o)}))+`
`)]):t("th",{staticClass:"uk-table-expand"},[e._v(e._s(e.$t("Videos")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-right uk-text-nowrap"},[e._v(`
`+e._s(e.$t("Run Time"))+`
`)]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-center"},[e._v(e._s(e.$t("Documentation")))]),e._v(" "),t("th",{staticClass:"uk-table-shrink uk-text-center"},[e._v(e._s(e.$t("Support")))])])]),e._v(" "),t("tbody",e._l(r,function(u){return t("tr",{key:u.src},[t("td",{staticClass:"uk-table-link",attrs:{"uk-lightbox":"video-autoplay: true"}},[t("a",{staticClass:"uk-link-heading",attrs:{href:e.$config.help+"/"+u.src}},[t("span",{staticClass:"uk-preserve-width uk-margin-small-right",attrs:{"uk-icon":"play-circle"}}),e._v(" "),t("span",{staticClass:"uk-text-middle"},[e._v(e._s(e.$t(u.title)))])])]),e._v(" "),t("td",{staticClass:"uk-text-right uk-text-nowrap"},[e._v(`
`+e._s(e.$t(u.duration))+`
`)]),e._v(" "),t("td",{staticClass:"uk-text-center"},[t("a",{staticClass:"uk-button uk-button-default uk-button-small",attrs:{href:e.$config.help+"/"+u.documentation,target:"_blank"}},[e._v("Read More")])]),e._v(" "),t("td",{staticClass:"uk-text-center"},[t("a",{staticClass:"uk-button uk-button-default uk-button-small",attrs:{href:e.$config.help+"/"+u.support,target:"_blank"}},[e._v("Search")])])])}),0)])}),0)])},n8=[],r8=Z({render:t8,staticRenderFns:n8},void 0,e8,void 0,!1,void 0,!1,void 0,void 0,void 0),i8={name:"Toolbar",directives:{position:{inserted:_b,update:_b}},inject:["Builder","Sidebar"],props:{panel:Object,type:{type:String,default:"element"}},data:()=>({target:null}),computed:{active(){return Ct(this.Sidebar.stack,this.panel)},id(){return this.target?.dataset.id},node(){const e=this.id?.replace(this.Builder.prefix,"").split("-").reduce((r,o)=>r.concat(["children",o]),[]),n=un(this.Builder.node,e),{element:t}=this.Builder.type(n);return this.active&&t&&n}},watch:{id(e,n){!this.active||(n&&this.$trigger("leavePreviewNode",n),e&&this.$trigger("hoverPreviewNode",e))}},mounted(){V.on(this.$el.ownerDocument.documentElement,"mouseenter",`[data-id^="${this.Builder.prefix}"]`,this.enter,{capture:!0,self:!0}),V.on(this.$el.ownerDocument.documentElement,"mouseleave",`[data-id^="${this.Builder.prefix}"]`,this.leave,{capture:!0,self:!0})},methods:{enter(e){let{target:n}=e;this.target=this.node&&this.$el.contains(n)?this.target:n,cancelAnimationFrame(this.frame)},leave(){cancelAnimationFrame(this.frame),this.frame=requestAnimationFrame(()=>this.target=null)},editNode(){for(;this.Sidebar.panel!==this.panel;)this.Sidebar.stack.pop();this.$trigger("editNode",[this.node,this.Builder])}}};function _b(e,n){let{value:t,arg:r}=n;requestAnimationFrame(()=>t.ownerDocument.defaultView&&V.positionAt(e,t,`center ${r==="top"?"bottom":t.offsetHeight<10?"top":"center"}`,`center ${r}`))}const a8=i8;var o8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.node?t("div",{on:{click:function(r){r.stopPropagation(),r.preventDefault()}}},[t("div",{directives:[{name:"position",rawName:"v-position:top",value:e.target,expression:"target",arg:"top"}],staticClass:"uk-position-absolute uk-flex uk-flex-middle uk-position-absolute",class:"yo-builder-nav-"+e.type,on:{mouseenter:e.enter,mouseleave:e.leave}},[t("ul",{staticClass:"yo-iconnav"},[t("li",[t("a",{staticClass:"yo-builder-icon-edit",attrs:{title:e.$t("Edit"),href:"","uk-icon":"pencil"},on:{click:e.editNode}})]),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-copy",attrs:{title:e.$t("Copy"),href:"","uk-icon":"copy"},on:{click:function(r){return e.Builder.copy(e.node)}}})]),e._v(" "),e.type==="element"?t("li",[t("a",{staticClass:"yo-builder-icon-save",attrs:{title:e.$t("Save in library"),href:"","uk-icon":"push"},on:{click:function(r){return e.Builder.save(e.node)}}})]):e._e(),e._v(" "),t("li",[t("a",{staticClass:"yo-builder-icon-delete",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash"},on:{click:function(r){return e.Builder.remove(e.node)}}})])])]),e._v(" "),t("a",{directives:[{name:"position",rawName:"v-position:bottom",value:e.target,expression:"target",arg:"bottom"}],staticClass:"uk-position-absolute uk-flex uk-flex-center uk-flex-middle yo-builder-icon-add",class:"yo-builder-button-"+e.type,attrs:{title:e.$t("Add"),href:"","uk-icon":"plus"},on:{click:function(r){return e.Builder.add(e.node)},mouseenter:e.enter,mouseleave:e.leave}})]):e._e()},s8=[];const l8=Z({render:o8,staticRenderFns:s8},void 0,a8,void 0,!1,void 0,!1,void 0,void 0,void 0);var hu={props:{panel:Object},mounted(){this.mountToolbar()},destroyed(){this.unmountToolbar()},events:{readyPreview(e,n){let{document:t}=n;this.mountToolbar(t)},hoverPreviewNode(e,n){V.addClass(V.$(`[data-id="${n}"]`),"yo-hover")},leavePreviewNode(e,n){V.removeClass(V.$(`[data-id="${n}"]`),"yo-hover")}},methods:{mountToolbar(e){if(e===void 0&&(e=Pl(V.$$('iframe[name*="preview-"]'))?.contentDocument),this.unmountToolbar(),!e)return;const n=e.body.appendChild(e.createElement("div"));this.toolbar=new Te({parent:this,extends:l8,propsData:{panel:this.panel}}).$mount(n)},unmountToolbar(){this.toolbar?.$destroy()}}},u8={props:{help:[Array,Object]},computed:{helpConfig(){return cn(this.help,ae.sections.builder.help)}},created(){this.$config=ae}};const c8=u8;var f8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.helpConfig?t("button",{staticClass:"uk-icon uk-icon-link uk-margin-small-right",attrs:{type:"button"},on:{click:function(r){return e.$trigger("openHelp",[e.helpConfig])}}},[t("img",{attrs:{"uk-svg":e.$config.assets+"/images/help.svg"}})]):e._e()},d8=[];const _u=Z({render:f8,staticRenderFns:d8},void 0,c8,void 0,!1,void 0,!1,void 0,void 0,void 0);var p8={components:{HelpButton:_u,Layout:du},models:{Builder:pu},mixins:[hu],inject:["Config"],props:{panel:Object},watch:{"Config.values"(e){let{footer:{content:n}={}}=e;this.Builder.reset(n||{})}},created(){const{footer:{content:e}={}}=this.Config.values;this.Builder.prefix="footer#",this.Builder.reset(e||{}),this.Builder.$on("change",this.change)},methods:{change(e){this.Config.values.footer||this.$set(this.Config.values,"footer",{}),this.$set(this.Config.values.footer,"content",e),this.Config.change(e,{name:"footer.content"})},empty(){this.Builder.set({...this.Builder.make("layout"),children:[this.Builder.make("section")]})}}};const h8=p8;var _8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium yo-wp-builder"},[t("div",{staticClass:"uk-width-expand"},[t("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(e.$t("Footer")))])]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t("HelpButton",{attrs:{help:e.panel.help}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-small uk-button-default",attrs:{type:"button"},on:{click:function(r){return e.$trigger("openLibrary",e.Builder)}}},[e._v(`
`+e._s(e.$t("Library"))+`
`)])],1)]),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Create a layout for the footer section of all pages. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts."))+`
`)]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:e.empty}},[e._v(`
`+e._s(e.$t("New Layout"))+`
`)]),e._v(" "),t("Layout",{attrs:{node:e.Builder.node}})],1)},v8=[];const m8=Z({render:_8,staticRenderFns:v8},void 0,h8,void 0,!1,void 0,!1,void 0,void 0,void 0);var g8={props:{collision:Object}};const y8=g8;var b8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("button",{staticClass:"uk-modal-close-default",attrs:{type:"button","uk-close":""}}),e._v(" "),t("div",{staticClass:"uk-modal-header"},[t("h2",{staticClass:"uk-modal-title"},[e._v(e._s(e.$t("Attention! Page has been updated.")))])]),e._v(" "),t("div",{staticClass:"uk-modal-body"},[t("p",[e._v(`
`+e._s(e.$t("The page your are currently editing has been updated by %modified_by%. Saving your changes will overwrite the previous changes. Do you want to save anyway or discard your changes and reload the page?",{modified_by:e.collision.modifiedBy}))+`
`)])]),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("div",{staticClass:"uk-grid uk-grid-small uk-child-width-auto uk-flex-inline"},[t("div",[t("button",{staticClass:"uk-button uk-button-default uk-modal-close",attrs:{type:"button"},on:{click:function(r){return e.$emit("resolve",!1)}}},[e._v(`
`+e._s(e.$t("Discard"))+`
`)])]),e._v(" "),t("div",[t("button",{staticClass:"uk-button uk-button-primary",attrs:{autofocus:""},on:{click:function(r){return e.$emit("resolve",!0)}}},[e._v(`
`+e._s(e.$t("Save"))+`
`)])])])])])},$8=[];const k8=Z({render:b8,staticRenderFns:$8},void 0,y8,void 0,!1,void 0,!1,void 0,void 0,void 0);var w8={props:{base:{type:Object,default:()=>({})},current:{type:Object,default:()=>({})}},data:()=>({dismissed:!1}),computed:{visible(){const{contentHash:e}=this.base,{contentHash:n}=this.current;return e!==n&&this.dismissed!==n}},mounted(){V.append(jk.default.container,this.$el)},methods:{dismiss(){this.dismissed=this.current.contentHash}}};const x8=w8;var C8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-notification uk-notification-top-center"},[t("Transition",{attrs:{"enter-active-class":"uk-animation-slide-top","leave-active-class":"uk-animation-slide-top uk-animation-reverse"}},[e.visible?t("div",{staticClass:"uk-notification-message",on:{click:function(r){return e.dismiss()}}},[t("button",{staticClass:"uk-notification-close",attrs:{"uk-icon":"close"}}),e._v(" "),t("div",[e._v(`
`+e._s(e.$t("The page has been updated by %modifiedBy%. Discard your changes and reload?",e.current))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-small uk-button-primary uk-margin-small-top",attrs:{type:"button"},on:{click:function(r){return e.$emit("cancel")}}},[e._v(`
`+e._s(e.$t("Reload Page"))+`
`)])]):e._e()])],1)},S8=[],A8={name:"BuilderSection",components:{HelpButton:_u,Layout:du,CollisionNotification:Z({render:C8,staticRenderFns:S8},void 0,x8,void 0,!1,void 0,!1,void 0,void 0,void 0),Savebar:Jd},mixins:[hu],inject:["Sidebar"],models:{Builder:{extends:pu,data:{view:""}}},props:{panel:Object},data:()=>({collision:void 0,template:void 0,page:{}}),computed:{isTemplatable(){return!!this.Builder.view},hasTemplateAssigned(){return!!this.template},isLayoutable(){return!!this.page.id}},created(){this.Builder.prefix=this.panel.prefix,this.Builder.$on("change",this.load)},methods:{load(e){const n={id:this.page.id,content:e};this.$trigger("loadPreview",this.Builder.modified?{page:n}:{})},save(e,n){e===void 0&&(e=this.Builder.node),n===void 0&&(n=!1),this.$refs.notifications.dismiss(),this.$trigger("replaceImages",e,!0).then(()=>{e=this.Builder.clone(e);const t=ed(JSON.stringify({...this.page,content:e}));this.$http.post("page",{page:t,overwrite:n}).then(r=>{let{body:o}=r;o.hasCollision?this.$modal(k8,{collision:o.collision}).show().then(u=>{u===!0?this.save(e,!0):u===!1&&this.cancel()}):o.id===this.page.id&&(this.collision=this.page.collision=o.collision,this.Builder.base=e)})},()=>{})},cancel(){this.$trigger("loadPreview")},empty(){this.Builder.set({...this.Builder.make("layout"),children:[this.Builder.make("section")]})},openTemplates(){this.$trigger("closePanel"),this.$trigger("openPanel","builder-templates")}},events:{readyPreview(e,n){let{window:{$customizer:t={}}}=n;const{view:r="",page:o={},template:u}=t;this.template=u,this.collision=o.collision,o.modified||(this.page=o,this.Builder.view=r,this.Builder.reset(o.content||{}))},beforeunloadPreview(e,n){let{event:t}=n;!this.Builder.modified||(t.preventDefault(),t.returnValue=!0)},closePanel(e,n,t){let{name:r}=t===void 0?{}:t;r!==this.panel.name||!this.Builder.modified||(window.confirm(this.$t("The changes you made will be lost if you navigate away from this page."))?this.cancel():n.close=!1)},resetNode(){this.$parent.$el.scrollTo(0,0)}}};const T8=A8;var O8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("Savebar",{directives:[{name:"show",rawName:"v-show",value:e.Builder.modified,expression:"Builder.modified"}],on:{cancel:e.cancel,save:e.save}}),e._v(" "),t("CollisionNotification",{ref:"notifications",attrs:{base:e.page.collision,current:e.collision},on:{cancel:e.cancel}}),e._v(" "),t("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium yo-wp-builder",class:{"yo-wp-builder-margin-bottom":!e.isLayoutable}},[t("div",{staticClass:"uk-width-expand"},[t("h2",{staticClass:"yo-sidebar-heading uk-margin-remove-bottom"},[e._v(e._s(e.$t("Builder")))])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isLayoutable,expression:"isLayoutable"}],staticClass:"uk-width-auto"},[t("HelpButton"),e._v(" "),t("button",{staticClass:"uk-button uk-button-small uk-button-default",attrs:{type:"button"},on:{click:function(r){return e.$trigger("openLibrary",e.Builder)}}},[e._v(`
`+e._s(e.$t("Library"))+`
`)])],1)]),e._v(" "),t("h2",{directives:[{name:"show",rawName:"v-show",value:!e.Builder.empty,expression:"!Builder.empty"}],staticClass:"uk-h1 uk-text-truncate"},[e._v(e._s(e.page.title))]),e._v(" "),t("Layout",{attrs:{node:e.Builder.node}}),e._v(" "),e.Builder.empty?[!e.isLayoutable&&!e.isTemplatable?t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("The builder is not available on this page. It can only be used on pages, posts and categories."))+`
`)]):e._e(),e._v(" "),e.isLayoutable?[t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Create an individual layout for the current page. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts."))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:e.empty}},[e._v(`
`+e._s(e.$t("New Layout"))+`
`)])]:e._e(),e._v(" "),e.isTemplatable?[e.Sidebar.single?t("p",[e._v(`
`+e._s(e.$t("Alternatively, create a template to apply a general layout to all pages of this type. Go to the Templates panel in YOOtheme Pro to create a template."))+`
`)]):[e.isLayoutable&&e.hasTemplateAssigned?t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Mind that a template with a general layout is assigned to the current page. Edit the template to update its layout."))+`
`)]):e._e(),e._v(" "),e.isLayoutable?e._e():t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Only single pages and posts can have individual layouts. Use a template to apply a general layout to this page type."))+`
`)]),e._v(" "),e.isLayoutable&&e.hasTemplateAssigned||!e.isLayoutable?t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:e.openTemplates}},[e._v(`
`+e._s(e.$t("Open Templates"))+`
`)]):e._e()]]:e._e()]:e._e()],2)},E8=[];const F8=Z({render:O8,staticRenderFns:E8},void 0,T8,void 0,!1,void 0,!1,void 0,void 0,void 0);var M8={props:{images:{type:Array,required:!0}},data:e=>{let{images:n}=e;return{errors:[],loading:!1,total:n.length}},methods:{next(e){if(this.errors=[],this.total=this.images.length,this.loading=!0,e){const n=new Promise(t=>Promise.all(this.images.map(r=>Promise.all(r.src.map(o=>{let{src:u,md5:f}=o;const p=u.match(/images\.unsplash\.com.*[?/&]id=(\w+)/);return p&&this.$http.post(`${ae.api}/v1`,JSON.stringify({query:P8,variables:{id:p[1]}}),{headers:{"Content-Type":"text/plain"}}),this.$http.post("builder/image",{src:u,md5:f}).then(_=>{let{data:v}=_;n.then(()=>r.replace(u,v))})})).then(()=>this.images.splice(this.images.indexOf(r),1),o=>{let{statusText:u}=o;return this.errors.push(u)}))).then(()=>{t(),this.images.length?this.loading=!1:this.close()}))}else this.images.forEach(n=>n.src.forEach(t=>{let{src:r}=t;return n.replace(r,this.$url(rd(L8(r))?`${ae.assets}/images/element-video-placeholder.mp4`:`${ae.assets}/images/element-image-placeholder.png`).slice(ae.url.length+1))})),this.close()},close(){this.$emit("resolve",!0)}}};const P8=`query ($id: String!) {
unsplashDownload (id: $id)
}`;function vb(e){return ya(e,(n,t,r)=>n.concat(t instanceof td?{replace:(o,u)=>e[r]=e[r].split(o).join(u||""),...t}:at(t)?vb(t):[]),[])}function L8(e){try{return new URL(e).pathname}catch{return e}}const N8=M8;var R8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-modal-header"},[t("h2",{staticClass:"uk-modal-title"},[e._v(e._s(e.$t("Layout Media Files")))])]),e._v(" "),t("div",{staticClass:"uk-modal-body"},[e.errors.length?t("div",{staticClass:"uk-alert-danger uk-alert",attrs:{"uk-alert":""}},[e._v(`
`+e._s(e.$t("%smart_count% media file download failed: |||| %smart_count% media file downloads failed:",e.errors.length))+`
`),t("ul",{staticClass:"uk-list"},e._l(e.errors,function(r){return t("li",{key:r},[e._v(e._s(r))])}),0)]):e._e(),e._v(" "),e.loading?t("progress",{staticClass:"uk-progress uk-margin-remove",attrs:{max:e.total},domProps:{value:e.total-e.images.length}}):e._e(),e._v(" "),t("p",[e._v(`
`+e._s(e.$t("This layout includes a media file which needs to be downloaded to your website's media library. |||| This layout includes %smart_count% media files which need to be downloaded to your website's media library.",e.images.length))+`
`)]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("All images are licensed under <a href='http://creativecommons.org/publicdomain/zero/1.0/' target='_blank'>Creative Commons Zero</a> which means you can copy, modify, distribute and use the images for free, including commercial purposes, without asking permission."))}})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-default uk-margin-small-right",attrs:{type:"button"},on:{click:function(r){return e.next()}}},[e._v(`
`+e._s(e.$t("Remove Media Files"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary",attrs:{type:"button"},on:{click:function(r){return e.next("Download")}}},[e._v(`
`+e._s(e.$t("Download"))+`
`)])])])},I8=[];const D8=Z({render:R8,staticRenderFns:I8},void 0,N8,void 0,!1,void 0,!1,void 0,void 0,void 0);function j8(e){let{app:n}=e;n.extend({components:{builder:F8,"footer-builder":m8},models:{Library:r6},events:{readyPreview(t,r){let{document:o}=r;this.document=o},hoverNode(t,r,o){V.addClass(V.$(`[data-id="${o}"]`,this.document),"yo-hover")},leaveNode(t,r,o){V.removeClass(V.$(`[data-id="${o}"]`,this.document),"yo-hover")},editNode(t,r,o){const u=qo(o.type(r),["title","width","fields","fieldset","panels"]);(!at(r.props)||Je(r.props))&&this.$set(r,"props",{}),V.hasOwn(r.props,"name")||Object.defineProperty(r.props,"name",{get:()=>r.name,set:f=>{this.$set(r.props,"__name",f),this.$set(r,"name",f),this.$delete(r.props,"__name")}}),this.$trigger("openPanel",Ft(u,{name:`node-${o.key(r)}`,props:{node:r,builder:o,values:r.props},heading:!1,component:B8}))},initBuilder(t,r){Ft(r,window.$builder.elements)},replaceImages(t,r){const o=vb(r);return o.length?this.$modal(D8,{images:o}).show({id:"DownloadModal",width:"xlarge"}).then(u=>u||Promise.reject()):Promise.resolve()}}})}const B8={name:"BuilderPanel",extends:Sr,provide(){return{$node:this.node,Builder:this.builder}},props:{node:Object,builder:Object},created(){this.node.type==="row"&&this.$on("change",(e,n)=>{let{name:t}=n;t==="layout"&&this.$nextTick(()=>this.builder.columnWidths(this.node,e))})},events:{resetNode(){this.$trigger("closePanel")}}};var H8={props:{fields:{type:Array,default:()=>[]}},data:()=>({search:""}),computed:{fieldList(){return this.fields.filter(e=>{let{text:n}=e;return!this.search||Ct(n.toLowerCase(),this.search.toLowerCase())})},groups(){return Bn(this.fieldList.map(e=>({group:"",...e})),"group")}},methods:{select(e){this.$emit("resolve",e)},isFirstGroup(e){return Object.keys(this.groups).indexOf(e)===0}}};const z8=H8;var W8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"yo-dropdown-header"},[t("div",{staticClass:"uk-search uk-search-default uk-width-1-1"},[t("span",{staticClass:"uk-search-icon-flip",attrs:{"uk-search-icon":""}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"search",staticClass:"uk-search-input",attrs:{placeholder:e.$t("Search"),type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(r){r.target.composing||(e.search=r.target.value)}}})])]),e._v(" "),t("div",{staticClass:"yo-dropdown-body uk-overflow-auto uk-height-max-large"},[e.fieldList.length?t("ul",{staticClass:"uk-nav uk-dropdown-nav"},[e._l(e.groups,function(r,o){return[e.isFirstGroup(o)?e._e():t("li",{key:o+"-divider",staticClass:"uk-nav-divider"}),e._v(" "),o?t("li",{key:o+"-label",staticClass:"uk-nav-header"},[e._v(e._s(o))]):e._e(),e._v(" "),e._l(r,function(u){return t("li",{key:u.value,on:{click:function(f){return f.preventDefault(),e.select(u.value)}}},[t("a",{attrs:{href:""}},[e._v(e._s(u.text))])])})]})],2):t("span",[e._v(e._s(e.$t("No source mapping found.")))])])])},G8=[],K8=Z({render:W8,staticRenderFns:G8},void 0,z8,void 0,!1,void 0,!1,void 0,void 0,void 0),U8={directives:{Sortable:od},props:{panel:Object},data:()=>({visible:!1,target:""}),computed:{templates(){return{}},types(){return yr(ae.templates,(e,n)=>this.exists(n))},unassigned(){return yr(this.templates,e=>!(e.type in ae.templates))}},created(){this.$config=ae},methods:{isEmpty:kt,add(){this.$trigger("addTemplate")},edit(e){this.$trigger("editTemplate",e)},editBuilder(e){this.$trigger("editBuilderTemplate",e)},move(){this.$trigger("reorderTemplates",[ba(this.$refs.templates,V.index).map(e=>e.dataset.id)])},filter(e){return yr(this.templates,n=>n.type===e)},exists(e){return!kt(this.filter(e))},title(e){return e.name||ae.templates[e.type]?.label||e.type},previewHome(){this.window&&(this.window.location=ae.url)},preview404(){this.window&&(this.window.location=ae[404])}},events:{readyPreview(e,n){let{event:t}=n;this.target=t.target.name}}};const Y8=U8;var q8=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-margin-remove-first-child"},[e.isEmpty(e.templates)?t("p",{staticClass:"uk-text-muted"},[e._v(`
Create site-wide templates for pages and load their content dynamically into the layout.
`)]):e._e(),e._v(" "),e._l(e.types,function(r,o){var u=r.label;return[t("h3",{key:"label-"+o,staticClass:"yo-sidebar-subheading"},[e._v(e._s(u))]),e._v(" "),t("ul",{key:"list-"+o,staticClass:`
uk-nav uk-nav-default
yo-sidebar-marginless yo-nav-sortable
uk-text-capitalize
yo-nav-iconnav
`,attrs:{"uk-sortable":"group: "+o+"; clsCustom: yo-nav-sortable-drag"},on:{moved:e.move}},e._l(e.filter(o),function(f,p){return t("li",{key:p,ref:"templates",refInFor:!0,class:{"yo-highlight":e.visible===p},attrs:{"data-id":p}},[t("a",{class:{"uk-text-danger uk-flex uk-flex-middle":f.status==="disabled"},attrs:{href:""},on:{click:function(_){return _.preventDefault(),e.edit(p)}}},[f.status==="disabled"?t("img",{attrs:{"uk-svg":e.$config.assets+"/images/builder/disabled.svg"}}):e._e(),e._v(`
`+e._s(e.title(f))+`
`)]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.visible===p,expression:"visible === id"}],staticClass:`
uk-position-center-right
uk-position-small
uk-button
uk-button-default
uk-button-small
`,attrs:{type:"button"},on:{click:function(_){return _.preventDefault(),e.editBuilder(p)}}},[e._v(`
`+e._s(e.$t("Builder"))+`
`)])])}),0)]}),e._v(" "),e.isEmpty(e.unassigned)?e._e():[t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t("Not assigned")))]),e._v(" "),t("ul",{staticClass:`
uk-nav uk-nav-default
yo-sidebar-marginless
uk-text-capitalize
yo-nav-iconnav
`},e._l(e.unassigned,function(r,o){return t("li",{key:o,class:{"yo-highlight":e.visible===o}},[t("a",{class:{"uk-text-danger uk-flex uk-flex-middle":r.status==="disabled"},attrs:{href:""},on:{click:function(u){return u.preventDefault(),e.edit(o)}}},[r.status==="disabled"?t("img",{attrs:{"uk-svg":e.$config.assets+"/images/builder/disabled.svg"}}):e._e(),e._v(`
`+e._s(e.title(r))+`
`)])])}),0)],e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",class:{"uk-margin-medium-top":!e.isEmpty(e.templates)},attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.add()}}},[e._v(`
`+e._s(e.$t("New Template"))+`
`)]),e._v(" "),t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("The builder can only be accessed for the template shown in the preview."))+`
`)]),e._v(" "),t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("If multiple templates are assigned to the same view, the template which appears first is applied. Change the order with drag and drop."))+`
`)]),e._v(" "),e.target?t("p",{staticClass:"uk-text-muted",domProps:{innerHTML:e._s(e.$t('Visit the <a href="%404%" target="%target%">404 error page</a> to create a template for it and return to the <a href="%home%" target="%target%">Home page</a>.',{target:e.target,404:e.$config[404],home:e.$config.url}))}}):e._e()],2)},J8=[],X8=Z({render:q8,staticRenderFns:J8},void 0,Y8,void 0,!1,void 0,!1,void 0,void 0,void 0),Z8={inject:["$node","Builder"],extends:lb,created(){this.multiple||(this.value=1)},computed:{value:{get(){return un(this.values,this.name)||void 0},set(e){const n=V.clamp(V.toFloat(e),this.attributes.min||Number.MIN_SAFE_INTEGER,this.attributes.max||Number.MAX_SAFE_INTEGER)||void 0;n!==e&&(this.$el.value=mr(n)?"":n),this.$emit("change",n,this)}},enable(){return this.multiple},multiple(){const{element:e,container:n}=this.Builder.type(this.$node);return!e&&!n}}},Mi={get types(){return ae.schema?.types},get rootQueryType(){return $t(this.types,{name:ae.schema?.queryType?.name})},get rootQueryFields(){return mb(this.types,this.rootQueryType?.fields)},findField(e){return gb(this.types,this.rootQueryType,e)},getFields(e,n){return n===void 0&&(n="SCALAR"),e?yb(this.types,e,n):[]}};function mb(e,n,t){return t===void 0&&(t=""),n?.reduce((r,o)=>{const u=$t(e,{name:Zd(o)});return u?u.metadata?.type?r.concat({...o,name:t+o.name}):r.concat(mb(e,u.fields,`${t+o.name}.`)):r},[])}function gb(e,n,t){const[r,...o]=t.split("."),u=$t(n?.fields,{name:r});return o.length?gb(e,$t(e,{name:Zd(u)}),o.join(".")):u}function yb(e,n,t,r,o,u){r===void 0&&(r=""),o===void 0&&(o=3),u===void 0&&(u="");const f=$t(e,{name:Zd(n)});return f?f.metadata?.type&&(u=u?n.metadata?.label:f.metadata?.label,!--o)?[]:f.fields?.reduce((p,_)=>{const{name:v,metadata:k={}}=_,w=!("group"in k)&&!f.metadata?.type&&u?`${n.metadata.label} ${k.label??v}`:k.label??v,x=u||n.metadata?.label,M="group"in k||!f.metadata?.type&&"group"in(n.metadata||{})?k.group||n.metadata.group||Te.i18n.t("Fields"):!1;switch(_.type.kind){case t:return p.concat({value:`${r}${v}`,text:w,group:M?`${x} (${M})`.trim():x,filters:k.filters,arguments:k.arguments});case"OBJECT":return p.concat(yb(e,_,t,`${r}${v}.`,o,u))}return p},[]).sort(Q8.bind(u))||[]:[]}function Zd(e){const n=e?.type;return n?.name??n?.ofType?.name}function Q8(e,n){let{group:t}=e,{group:r}=n;return!this||t===r?0:t===this||br(t,this)&&r!==this?-1:r===this||br(r,this)&&t!==this?1:0}var Ke={getQuery(e){return e.source?.query?.name||""},setQuery(e,n){n?(Qn(e,"source.query.name",n),Te.delete(e.source.query,"arguments"),this.setField(e,!1)):(Te.delete(e.source,"query"),kt(e.source)&&Te.delete(e,"source"))},getQueryArgs(e){return e.source?.query?.arguments},getQueryArg(e,n){return this.getQueryArgs(e)?.[n]},setQueryArg(e,n,t){Qn(e,`source.query.arguments.${n}`,t)},getField(e){return e.source?.query?.field?.name||""},setField(e,n){n?Qn(e,"source.query.field",{name:n}):Te.delete(e.source?.query,"field")},getFieldArgs(e){return e.source?.query?.field?.arguments},getFieldArg(e,n){return this.getFieldArgs(e)?.[n]},setFieldArg(e,n,t){Qn(e,`source.query.field.arguments.${n}`,t)},getFieldDirective(e,n){return $t(e.source?.query?.field?.directives,{name:n})},getFieldDirectiveArgs(e,n){return this.getFieldDirective(e,n)?.arguments},getFieldDirectiveArg(e,n,t){return this.getFieldDirectiveArgs(e,n)?.[t]},setFieldDirectiveArg(e,n,t,r){let o=this.getFieldDirective(e,n);o||(o={name:n},e.source?.query?.field?.directives||Qn(e,"source.query.field.directives",[]),e.source.query.field.directives.push(o)),Qn(o,`arguments.${t}`,r)},getProp(e,n){return e.source?.props?.[n]},setProp(e,n,t){const r=V8(this.getPropField(e,t).fields);Te.delete(e.props,n),Qn(e,`source.props.${n}`,{...r,...t})},removeProp(e,n){Te.delete(e.source.props,n),kt(e.source.props)&&Te.delete(e.source,"props"),kt(e.source)&&Te.delete(e,"source")},getSourceField(e){const n=this.getQuery(e),t=this.getField(e),r=t?`${n}.${t}`:n;return Mi.findField(r)},getPropField(e,n){const t=this.getFieldsList(e),r=$t(t,{value:n?.name});return r?{...r,fields:[...tG(r),...eG(r)]}:null},getFieldsList(e){const n=this.getSourceField(e);return Mi.getFields(n)},hasInvalidSource(e,n){const t=this.getQuery(e);if(!t)return!1;if(n){const r=Mi.findField(t);if(r?.metadata?.view&&!Ct(r.metadata.view,n))return!0}if(!this.getSourceField(e))return"empty-field";if(kt(e.source?.props))return"empty-props";if(Jo(e.source?.props,r=>!this.getPropField(e,r)))return"invalid-field"},getSourceFieldOptions(e){const n=Mi.findField(this.getQuery(e));if(n&&n.type.kind!=="LIST"){const t=Mi.getFields(n,"LIST");return!kt(t)&&Bn(t,"group")}return!1}};function V8(e){const n={};return Tn(e,t=>{"default"in t&&Qn(n,t.name,t.default)}),n}function eG(e){return e===void 0&&(e={}),vt(e.arguments,(n,t)=>({name:`arguments.${t}`,...n}))}function tG(e,n){e===void 0&&(e={}),n===void 0&&(n=["before","after","search","replace"]);const t=ae.sources.filters;return[...n,...nG(e.filters)].map(r=>On(r)?{name:`filters.${r}`,...t[r]}:r).filter(r=>r)}function nG(e){return Tl(e)?vt(e,(n,t)=>({name:`filters.${t}`,...n})):e||[]}var rG={inject:["$node"],props:{field:{type:Object,required:!0},values:Object},computed:{prop(){return Ke.getProp(this.$node,this.field.name)},config(){return Ke.getPropField(this.$node,this.prop)}},created(){this.$config=ae},methods:{edit(){this.$trigger("editSourceProp",[this.config.fields,this.prop])},remove(){Ke.removeProp(this.$node,this.field.name)}}};const iG=rG;var aG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-position-relative uk-input yo-input-iconnav-right uk-flex",class:{"uk-form-danger":!e.config}},[t("img",{staticClass:"uk-flex-none uk-margin-small-right",attrs:{"uk-svg":e.$config.assets+"/images/builder/dynamic-field.svg"}}),e._v(" "),t("div",{staticClass:"yo-input-locked uk-flex-1"},[e._v(`
`+e._s(e.config?e.$t("%label% - %group%",{label:e.config.text,group:e.config.group}):e.prop.name)+`
`)]),e._v(" "),t("div",{staticClass:"uk-position-center-right uk-position-small"},[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[t("li",{directives:[{name:"show",rawName:"v-show",value:e.config,expression:"config"}]},[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Edit"),href:"","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.edit.apply(null,arguments)}}})]),e._v(" "),t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.remove.apply(null,arguments)}}})])])])])},oG=[],bb=Z({render:aG,staticRenderFns:oG},void 0,iG,void 0,!1,void 0,!1,void 0,void 0,void 0),sG={extends:Ue,data:()=>({title:null,labels:{}}),watch:{value:{handler(e){e?this.$trigger("resolveItemTitle",{...this.field,id:e},!0).then(n=>this.title=n):this.title=null},immediate:!0}},methods:{pick(){this.$trigger("openItemPicker",this.field,!0).then(e=>e&&(this.value=e))},remove(){this.value=void 0}}};const lG=sG;var uG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-position-relative uk-input yo-input-locked yo-input-iconnav-right"},[t("span",[e._v(e._s(e.title?e.title:e.$t("Pick %type%",{type:e.labels.type||"Item"})))]),e._v(" "),t("div",{staticClass:"uk-position-center-right uk-position-small"},[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick %type%",{type:e.labels.type||"Item"}),href:"","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.pick.apply(null,arguments)}}})]),e._v(" "),e.value?t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.remove.apply(null,arguments)}}})]):e._e()])])])},cG=[],fG=Z({render:uG,staticRenderFns:cG},void 0,lG,void 0,!1,void 0,!1,void 0,void 0,void 0),dG={inject:["Builder","$node"],extends:Fi,computed:{value:{get(){return Ke.getQuery(this.$node)},set(e){Ke.setQuery(this.$node,e)}}},methods:{filterOptions(){const e=Mi.rootQueryFields?.filter(n=>pG(n.metadata?.view,this.Builder.view)).map(n=>{let{name:t,metadata:{label:r,group:o=""}={}}=n;return{value:t,text:r||t,group:o}});return[{text:this.$t("None"),value:""},...vt(CM({Page:[],...Bn(Wt(e,"group"),"group")},n=>!n.length),(n,t)=>({label:t,options:n})),...Wt(e,{group:""})]}}};function pG(e,n){return!e||Ct(e,n)}var hG={functional:!0,render:function(e,n){let{parent:{node:t}}=n;const r=Ke.getQuery(t),o=Mi.findField(r)?.metadata?.fields;return kt(o)?null:e(Sr,{props:{panel:{fields:o},values:Ke.getQueryArgs(t)},on:{change(u,f){let{name:p}=f;Ke.setQueryArg(t,p,u)}},key:r},[])}},_G={inject:["$node"],extends:Fi,computed:{value:{get(){return Ke.getProp(this.$node,this.field.prop)?.name||""},set(e){e?Ke.setProp(this.$node,this.field.prop,{name:e,filters:{}}):Ke.removeProp(this.$node,this.field.prop)}}},methods:{filterOptions(){return[{text:this.$t("None"),value:""}].concat(vt(Bn(vt(Ke.getFieldsList(this.$node),e=>({group:"",...e})),"group"),(e,n)=>({label:n,options:e})))}}},vG={functional:!0,render:function(e,n){let{parent:{node:t},props:{field:{prop:r,fields:o}}}=n;const u=Ke.getProp(t,r)?.name;return u?e(Sr,{props:{panel:{fields:o},values:Ke.getProp(t,r)?.filters},key:u},[]):null}},mG={functional:!0,render:function(e,n){let{parent:{node:t}}=n;const r=Ke.getQuery(t),o=Ke.getField(t);if(!r||!o)return null;const u=Ke.getSourceField(t)?.metadata?.arguments;return kt(u)?null:e(Sr,{props:{panel:{fields:u},values:Ke.getFieldArgs(t)},on:{change(f,p){let{name:_}=p;Ke.setFieldArg(t,_,f)}},key:`args-${r}-${o}`},[])}},gG={inject:["$node"],extends:Fi,computed:{value:{get(){return Ke.getField(this.$node)},set(e){Ke.setField(this.$node,e)}}},methods:{filterOptions(){return[{text:this.$t("None"),value:""}].concat(vt(Ke.getSourceFieldOptions(this.$node),(e,n)=>({options:e,label:n})))}}},yG={functional:!0,render:function(e,n){let{parent:{node:t},props:{field:{name:r,fields:o}}}=n;const u=Ke.getQuery(t),f=Ke.getField(t);return f?e(Sr,{props:{panel:{fields:o},values:Ke.getFieldDirectiveArgs(t,r)},on:{change(p,_){let{name:v}=_;Ke.setFieldDirectiveArg(t,r,v,p)}},key:`directive-${u}-${f}`},[]):null}},bG={functional:!0,render:function(e,n){let{parent:{node:t}}=n;const r=Ke.getQuery(t),o=Ke.getField(t);if(!r||!o)return null;const p=(Ke.getSourceField(t)?.metadata?.directives||["slice"]).filter(_=>ae?.sources?.directives?.[_]).map(_=>({type:"source-field-directive",name:_,...ae?.sources?.directives?.[_]}));return p.length?e(hb,{props:{field:{fields:p}},key:`directives-${r}-${o}`},[]):null}},$G=Object.freeze({__proto__:null,FieldLimit:Z8,FieldDynamic:bb,FieldSelectItem:fG,FieldSourceSelect:dG,FieldSourceQueryArgs:hG,FieldSourcePropSelect:_G,FieldSourcePropFilters:vG,FieldSourceFieldArgs:mG,FieldSourceFieldSelect:gG,FieldSourceFieldDirective:yG,FieldSourceFieldDirectives:bG}),kG={name:"TemplateModel",data:()=>({templates:{}}),methods:{async save(e,n){return n===void 0&&(n=zl()),await this.$trigger("saveTemplate",[e,n],!0),this.$set(this.templates,n,e)},async remove(e){e&&(await this.$trigger("deleteTemplate",[e],!0),this.$delete(this.templates,e))}}},wG={extends:kG,data:()=>({templates:{...window.$builder.templates}}),events:{saveTemplate(e,n,t){return this.$http.post("builder/template",{id:t,tpl:n}).then(()=>this.$trigger("loadPreview"))},deleteTemplate(e,n){return this.$http.delete("builder/template",{params:{id:n}}).then(()=>this.$trigger("loadPreview"))},reorderTemplates(e,n){return this.$http.post("builder/template/reorder",{templates:n}).then(()=>this.$trigger("loadPreview"))}}};const{methods:{evaluate:xG}}=Na;var CG={name:"TemplateModal",components:{FieldsPanel:Sr},directives:{Confirm:$r},inject:["Template"],props:{panel:Object,id:String,template:{type:Object,default:()=>({})},view:String},computed:{fieldsets(){return vt(this.$config.templates[this.template.type]?.fieldset,(e,n)=>{let{fields:t,show:r}=e;return xG(r,this.template.query||{})&&{name:n,fields:t}}).filter(e=>e)}},watch:{"template.type"(){this.$delete(this.template,"query")}},created(){this.$config=ae},mounted(){!this.id&&this.view&&this.$set(this.template,"type",this.view)},methods:{changeQuery(e,n){(Je(this.template.query)||kt(this.template.query))&&this.$set(this.template,"query",{}),Qn(this.template.query,n.name,e)}}};const SG=CG;var AG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("form",{on:{submit:function(r){return r.preventDefault(),e.$emit("resolve",e.template)}}},[t("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[t("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(`
`+e._s(e.id?e.$t("Edit Template"):e.$t("Save Template"))+`
`)]),e._v(" "),e.id?t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-button uk-button-danger uk-align-right uk-modal-close",attrs:{type:"button"},on:{click:function(r){return e.Template.remove(e.id)}}},[e._v(`
`+e._s(e.$t("Delete"))+`
`)]):e._e()]),e._v(" "),t("div",{staticClass:"uk-modal-body uk-form-stacked"},[t("FieldsPanel",{attrs:{panel:e.panel,values:e.template}}),e._v(" "),e._l(e.fieldsets,function(r){var o=r.fields,u=r.name;return t("FieldsPanel",{key:e.template.type+"."+u,staticClass:"uk-margin-medium-top",attrs:{panel:{fields:o},values:e.template.query},on:{change:e.changeQuery}})})],2),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary"},[e._v(e._s(e.$t("Save")))])])])},TG=[];const $b=Z({render:AG,staticRenderFns:TG},void 0,SG,void 0,!1,void 0,!1,void 0,void 0,void 0);var OG={components:{HelpButton:_u,Layout:du,Savebar:Jd},models:{Builder:pu},mixins:[hu],inject:["Template"],props:{id:String,view:String,panel:Object,template:Object},created(){this.Builder.view=this.view,this.Builder.prefix=`template-${this.id}#`,this.Builder.reset(this.Builder.clone(this.template.layout||{})),this.Builder.$on("change",this.load)},methods:{load(){this.$trigger("loadPreview",{template:{id:this.id,layout:this.Builder.node}})},save(e){return e===void 0&&(e=this.Builder.node),this.$trigger("replaceImages",e,!0).then(n=>{n&&this.load(),this.Template.save({...this.template,layout:e},this.id).then(t=>{let{layout:r}=t;return this.Builder.reset(this.Builder.clone(r))})},()=>{})},cancel(){this.Builder.reset(),this.load()},empty(){this.Builder.set({...this.Builder.make("layout"),children:[this.Builder.make("section")]})},close(){this.Builder.modified?this.Builder.reset():this.$trigger("resetNode",[this.Builder.node,this.Builder]),this.$trigger("closePanel")}},events:{readyPreview(e,n){let{window:{$customizer:{template:t}={}}}=n;this.id!==t&&this.close()},beforeunloadPreview(e,n){let{event:t}=n;!this.Builder.modified||(t.preventDefault(),t.returnValue=!0)},closePanel(e,n,t){let{name:r}=t===void 0?{}:t;r!==this.panel.name||!this.Builder.modified||(window.confirm(this.$t("The changes you made will be lost if you navigate away from this page."))?this.$trigger("loadPreview"):n.close=!1)}}};const EG=OG;var FG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("Savebar",{directives:[{name:"show",rawName:"v-show",value:e.Builder.modified,expression:"Builder.modified"}],on:{cancel:e.cancel,save:e.save}}),e._v(" "),t("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium yo-wp-builder"},[t("div",{staticClass:"uk-width-expand"},[t("h2",{staticClass:"yo-sidebar-heading uk-margin-remove-bottom"},[e._v(e._s(e.template.name))])]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t("HelpButton"),e._v(" "),t("button",{staticClass:"uk-button uk-button-small uk-button-default",attrs:{type:"button"},on:{click:function(r){return e.$trigger("openLibrary",e.Builder)}}},[e._v(`
`+e._s(e.$t("Library"))+`
`)])],1)]),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Create a general layout for this page type. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts."))+`
`)]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:e.empty}},[e._v(`
`+e._s(e.$t("New Layout"))+`
`)]),e._v(" "),t("Layout",{attrs:{node:e.Builder.node}})],1)},MG=[];const PG=Z({render:FG,staticRenderFns:MG},void 0,EG,void 0,!1,void 0,!1,void 0,void 0,void 0);var LG={extends:X8,inject:["Template"],computed:{templates(){return this.Template.templates}},methods:{add(){return this.$modal($b,{panel:this.panel,view:this.view}).show().then(e=>e&&this.Template.save(e))},edit(e){return this.$modal($b,{id:e,template:cn({},this.templates[e]),panel:this.panel}).show().then(n=>n&&this.Template.save(n,e))},editBuilder(e){const n=this.templates[e],t={name:"template-builder",component:PG,title:n.name,width:500,heading:!1,props:{id:e,template:n,view:this.view}};this.$trigger("openPanel",t)}},events:{readyPreview(e,n){let{window:{$customizer:{view:t,template:r}={}}}=n;this.view=t,this.visible=r}}};function NG(e){let{app:n}=e;n.extend({components:{"builder-templates":LG},models:{Template:wG}})}var RG={name:"SourceIcon",props:{node:{type:Object,required:!0},error:{type:[String,Boolean]}},computed:{icon(){return this.error?"dynamic-error":"dynamic"},title(){const e={"empty-props":"No field mapped","invalid-field":"Invalid field mapped"};return this.error?e[this.error]||"Invalid Source":"Dynamic Content"},position(){return{section:"top",row:"left"}[this.node.type.name]||"bottom"}}};const IG=RG;var DG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",{class:"yo-builder-icon-"+e.icon,attrs:{title:e.$t(e.title),"uk-tooltip":"pos: "+e.position}})},jG=[];const BG=Z({render:DG,staticRenderFns:jG},void 0,IG,void 0,!1,void 0,!1,void 0,void 0,void 0);function HG(e){let{app:n}=e;Ft(Cr.components,$G),n.extend({events:{openPanel(t,r){r.component&&r.component.name==="BuilderPanel"&&(r.component={mixins:[r.component,zG]})},pickSource(t,r,o){let{origin:{node:u}}=t,{target:f}=o;this.$dropdown(K8,{fields:Ke.getFieldsList(u)}).show(V.closest(f,".js-dropdown"),{classes:"yo-dropdown"}).then(p=>{const _=Ke.getProp(u,r.name);p&&(!_||p!==_.name)&&Ke.setProp(u,r.name,{name:p})})},editSourceProp(t,r,o){let{origin:{$el:u}}=t;this.$dropdown(LW,{config:r,values:o}).show(u)},contentItemTitle(t,r){const o=Ke.getSourceField(r),u=Ke.hasInvalidSource(r,t.origin.Builder.view);if(u)return u==="empty-props"?this.$t("No field mapped"):u==="invalid-field"?this.$t("Invalid field mapped"):this.$t("Invalid Source");if(o)return o?.metadata.label},editNode(t,r){r.source&&Je(r.source.props)&&this.$set(r.source,"props",{})},statusNode(t,r){let{origin:o,result:u=[]}=t,f=Ke.getQuery(r),p=Ke.hasInvalidSource(r,o.Builder.view);return(o.type?.element||o.type.name==="row")&&(f=f||o.children.some(_=>Ke.getQuery(_)),p=p||o.children.some(_=>Ke.hasInvalidSource(_,o.Builder.view))),(f||p)&&u.push({component:BG,error:p}),u}}})}const zG={props:{Source:{type:Object,default:()=>Ke}},computed:{evaluateValues(){return this.node.source?.props?{...this.values,...this.node.source.props}:this.values}},methods:{evaluate(e){return Na.methods.evaluate.call(this,e,this.evaluateValues)},prepare(e){return Sr.methods.prepare.call(this,e).map(n=>(n.source&&(n={...n,buttons:[...n.buttons||[],{label:this.$t("Dynamic"),action:"pickSource",show:()=>!kt(Ke.getFieldsList(this.node))}]},Ke.getProp(this.node,n.name)&&(n.component=bb)),n))}}};var WG={components:{Switcher:xa},props:{iframes:{type:Object,default(){return{articles:"&option=com_content&view=articles","menu items":"&option=com_menus&view=items"}}}},data:()=>({base:`${ae.root}/index.php?layout=modal&tmpl=component&editor=linkpicker&${ae.token}=1`}),destroyed(){delete window.pickLink},methods:{loadIframe(e){let{target:{contentDocument:n}}=e;n.querySelectorAll(".select-link").forEach(r=>r.setAttribute("data-function","pickLink")),window.pickLink=(r,o,u,f,p)=>{this.$emit("select",p),this.$emit("resolve",p)},ae.admin||gg(n,[".contentpane { padding: 30px !important }",".js-stools-container-list { display: none !important }"])},resize(e){let{target:n}=e;n.firstElementChild.style.height=n.style.maxHeight}}};const GG=WG;var KG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Switcher",{attrs:{tabs:Object.keys(e.iframes)},nativeOn:{"!load":function(r){return e.loadIframe.apply(null,arguments)}}},e._l(e.iframes,function(r,o){return t("div",{key:o,attrs:{slot:o,"uk-overflow-auto":""},on:{resize:e.resize},slot:o},[t("iframe",{staticStyle:{width:"100%"},attrs:{src:""+e.base+r}})])}),0)},UG=[];const kb=Z({render:KG,staticRenderFns:UG},void 0,GG,void 0,!1,void 0,!1,void 0,void 0,void 0);var YG={data:()=>({src:`${ae.root}/index.php?layout=modal&tmpl=component&option=com_users&view=users`}),destroyed(){delete window.pickLink},methods:{loadIframe(e){let{target:{contentDocument:n}}=e;n.querySelectorAll(".button-select").forEach(r=>r.setAttribute("onclick","window.parent.pickLink(this.dataset.userValue)")),window.pickLink=r=>{this.$emit("select",r),this.$emit("resolve",r)},gg(n,[".contentpane { padding: 30px !important }",".js-stools-container-list { display: none !important }"])},resize(e){let{target:n}=e;n.firstElementChild.style.height=n.style.maxHeight}}};const qG=YG;var JG=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{"uk-overflow-auto":""},on:{resize:e.resize,"!load":function(r){return e.loadIframe.apply(null,arguments)}}},[t("iframe",{staticStyle:{width:"100%"},attrs:{src:e.src}})])},XG=[];const ZG=Z({render:JG,staticRenderFns:XG},void 0,qG,void 0,!1,void 0,!1,void 0,void 0,void 0);function QG(e){let{app:n}=e;n.extend({events:{openItemPicker(t,r){return this.$modal(kb,{...r,iframes:{articles:"&option=com_content&view=articles"}}).show({container:!0}).then(o=>o?.match(/[&?]id=(\d+)/)[1])},resolveItemTitle(t,r){let{id:o}=r;return this.$http.get("joomla/articles",{params:{ids:[o]}}).then(u=>{let{body:{[o]:f}}=u;return f})}}}),n.extend({events:{openItemPicker:{handler(t,r){if(r.module==="com_users")return t.stopPropagation(),this.$modal(ZG,{...r}).show({container:!0})},priority:5},resolveItemTitle:{handler(t,r){let{id:o,module:u}=r;if(u==="com_users")return t.stopPropagation(),this.$http.get("joomla/users",{params:{ids:[o]}}).then(f=>{let{body:{[o]:p}}=f;return p})},priority:5}}})}var VG={extends:Ue,methods:{open(){this.$trigger("openFilePicker",!0).then(this.select)},select(e){!e||(at(e)&&(e=e.src),e9(e)&&(e=`${e}/*`),this.value=e)}}};function e9(e){return e&&e.match(/\/[^.]+$/)}const t9=VG;var n9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"uk-inline uk-width-1-1"},[t("div",{staticClass:"uk-position-center-right uk-position-small"},[t("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[t("li",[t("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick"),href:"","uk-icon":"album","uk-tooltip":"delay: 500"},on:{click:function(r){return r.preventDefault(),e.open.apply(null,arguments)}}})])])]),e._v(" "),t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input yo-input-iconnav-right",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(r){r.target.composing||(e.value=r.target.value)}}},"input",e.attributes,!1))])},r9=[];const i9=Z({render:n9,staticRenderFns:r9},void 0,t9,void 0,!1,void 0,!1,void 0,void 0,void 0);function a9(){Ft(Cr.components,{FieldSelectFile:i9})}function o9(e){e===void 0&&(e={});const{Joomla:n,tinyMCE:t}=window;return{id:`mce_${zl()}`,instance:null,create(r){r===void 0&&(r={}),this.instance=new t.Editor(this.id,cn({},e.settings,r),t.EditorManager),this.instance.render(),n.editors.instances[this.id]={getValue:()=>this.instance.getContent(),setValue:o=>this.instance.setContent(o),getSelection:()=>this.instance.selection.getContent(),replaceSelection:o=>this.instance.execCommand("mceInsertContent",!1,o)}},destroy(){this.instance.destroy(),this.instance=null,delete n.editors.instances[this.id]}}}var s9={name:"EditorVisual",props:{value:{type:String,default:""},attrs:{type:Object,default:()=>({})},root:{type:Boolean,default:!1}},data:()=>({editor:o9(ae.editor)}),watch:{value(e){this.setValue(e)}},mounted(){this.editor.create({width:"100%",height:330,resize:!0,menubar:!1,valid_elements:"*[*]",setup:e=>{l9.call(this,e),u9.call(this,e),c9.call(this,e,ae.editor),f9.call(this,e,ae.editor),e.on("init",()=>{Tn(e.schema.elements,n=>n.attributePatterns=(n.attributePatterns||[]).concat([{pattern:/^uk-.*$/}])),e.setContent(this.value)}),e.on("load",this.refresh)}})},beforeDestroy(){this.editor.destroy()},methods:{update(){this.$emit("input",this.editor.instance.getContent())},setValue(e){this.editor.instance.getContent()!==e&&this.editor.instance.setContent(e)},refresh(){if(!this.attrs.height)return;const e=this.editor.instance.getContainer(),n=this.editor.instance.getContentAreaContainer().firstElementChild;n.style.height=`${this.attrs.height-(e.offsetHeight-n.offsetHeight)}px`}}};function l9(e){let{settings:n}=e;this.root===!0&&(n.forced_root_block="",n.force_p_newlines=!1,n.force_br_newlines=!0)}function u9(e){const n=["undo","redo"];this.attrs.lazy?n.push("blur"):n.push("keyup","change"),n.forEach(t=>e.on(t,this.update))}function c9(e,n){let{title:t,iframe:r}=n;e.addButton("editor",{icon:"fullscreen",tooltip:t,onclick:()=>{const{innerWidth:o,innerHeight:u}=window,f=e.windowManager.open({title:t,html:`<iframe src="${r}" onload="tinyMCE.activeEditor.fire('JEditor', this)"></iframe>`,width:o*.9,height:u*.9-100,buttons:[{text:this.$t("Ok"),subtype:"primary",onclick:()=>f.fire("update")},{text:this.$t("Cancel"),onclick:"close"}]});e.once("JEditor",p=>{let{contentWindow:{Joomla:_},contentDocument:v}=p;const k=e.getContent(),w=v.getElementById("content");w&&(w.value=k),_.editors.instances.content&&_.editors.instances.content.setValue(k),f.on("update",()=>{this.setValue(_.editors.instances.content.getValue()),this.update(),f.close()})})}}),e.settings.toolbar1+=" editor"}function f9(e,n){let{id:t,buttons:r}=n;const o=vt(r,u=>{let{text:f,link:p,options:_={}}=u;return{text:f,name:`insert_${f.toLowerCase()}`,context:"insert",onclick:()=>{const{Joomla:v,innerWidth:k,innerHeight:w}=window,x=e.windowManager.open(NM({title:f,html:`<iframe src="${p.replace(t,e.id)}"></iframe>`,width:k*.8,height:w*.8-100,buttons:[{text:this.$t("Close"),onclick:"close"}]},M=>{let{buttons:z}=M;const{confirmCallback:ie,confirmText:q}=_;ie&&z.unshift({text:q,subtype:"primary",onclick:j=>{let{target:D}=j;const B=document.getElementById(x._id),Y=`return ${ie.replace(t,e.id)}`;B.classList.add("modal-content"),Promise.resolve(new Function(Y).call(D)).then(()=>x.close())}})}));v.current=x.on("close",()=>v.current=null),v.current.querySelector=()=>null}}});o.forEach(u=>{let{name:f,...p}=u;return e.addMenuItem(f,p)}),e.settings.insert_button_items+=` | ${o.map(u=>{let{name:f}=u;return f}).join(" ")}`}const d9=s9;var p9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:e.editor.id}})},h9=[];const _9=Z({render:p9,staticRenderFns:h9},void 0,d9,void 0,!1,void 0,!1,void 0,void 0,void 0);function v9(e){let{editor:n}=e;!n||Te.asset.js("https://cdn.jsdelivr.net/npm/tinymce@4.5.12/tinymce.min.js").then(()=>{const{Joomla:t,tinyMCE:r}=window;Te.component("EditorVisual",_9),window.jModalClose=()=>{r.activeEditor.windowManager.close()},window.jInsertEditorText=(o,u)=>{t.editors.instances[u].replaceSelection(o)}})}var m9={extends:id,computed:{url(){return`${ae.root}/index.php?option=com_media&task=api.files&format=json&mediatypes=0,1,2,3`}},data:()=>({accept:ae.media.accept}),methods:{getPath(e){return e===void 0&&(e=this.path),`local-images:/${jM(e,"/")}`},uploadSettings(e){Ft(e,{url:this.$url(this.url,{path:this.getPath()}),beforeSend:n=>{const t=n.data.get("Filedata[]");return g9(t).then(r=>Ft(n,{headers:{"Content-Type":"application/json"},responseType:"json",data:JSON.stringify({override:!0,name:t.name,[ae.token]:"1",content:r.slice(r.indexOf("base64")+7)})}))},complete:n=>this.showMessage(n.message||this.$t("Item uploaded."))})},loadFiles(e){return this.$http.get("finder",{params:{folder:e}}).then(n=>{let{data:t}=n;return t})},renameFile(e,n){const t={url:this.url,body:{[ae.token]:1,newPath:this.getPath(`${Df(this.path,"/")}/${n}`)},params:{path:this.getPath(`${Df(this.path,"/")}/${e}`)},method:"put",emulateHTTP:!1};$t(this.files,["name",n])&&!confirm(this.$t("%name% already exists. Do you really want to rename?",{name:n}))||this.$http(t).then(r=>{let{body:o}=r;return this.showMessage(o.message||this.$t("Item renamed."))},r=>{let{body:o}=r;return this.showMessage(o.message||this.$t("Error renaming item."),"danger")})},removeFiles(e){e.forEach(n=>{let{path:t}=n;const r={url:this.url,body:{[ae.token]:1},params:{path:this.getPath(t)},method:"delete",emulateHTTP:!1};this.$http(r).then(o=>{let{body:u}=o;return this.showMessage(u.message||this.$t("Item deleted."))},o=>{let{body:u}=o;return this.showMessage(u.message||this.$t("Error deleting item."),"danger")})})},createFolder(e){const n={url:this.url,body:{[ae.token]:1,name:e},params:{path:this.getPath()},method:"post"};this.$http(n).then(t=>{let{body:r}=t;return this.showMessage(r.message||this.$t("Folder created."))},t=>{let{body:r}=t;return this.showMessage(r.message||this.$t("Error creating folder."),"danger")})},showMessage(e,n){n===void 0&&(n=""),this.$notify(e,n),this.load()},canCreate(){return ae.media.canCreate},canDelete(){return ae.media.canDelete}}};function g9(e){return new Promise(n=>{const t=new FileReader;t.onload=r=>n(r.target.result),t.readAsDataURL(e)})}var y9={extends:id,computed:{base(){return`${ae.root}/index.php?option=com_media&asset=com_media`}},data:()=>({accept:ae.media.accept}),methods:{loadFiles(e){return this.$http.get("finder",{params:{folder:e}}).then(n=>{let{data:t}=n;return t})},removeFiles(e){return this.executeTask("folder.delete",{folder:this.path,rm:vt(e,"name")})},renameFile(e,n){$t(this.files,["name",n])&&!confirm(this.$t("%name% already exists. Do you really want to rename?",{name:n}))||this.$http.post("finder/rename",{oldFile:`${Df(this.path,"/")}/${e}`,newName:n}).then(t=>{this.$notify(t.body,""),this.load()},t=>{let{statusText:r}=t;this.$notify(r,"danger"),this.load()})},createFolder(e){return this.executeTask("folder.create",{foldername:e,folderbase:this.path})},executeTask(e,n){return n===void 0&&(n={}),this.$http.post(this.base,{[ae.token]:1,task:e,...n},{emulateJSON:!0}).then(t=>this.showMessage(t),t=>this.showError(t))},showMessage(e){let{body:n}=e;Je(n)&&n.forEach(t=>{let{message:r,type:o}=t;return this.$notify(r,o==="message"?"":"danger")}),this.load()},showError(e){let{body:n,status:t}=e;if(n.indexOf("<!DOCTYPE")!==0){const r=new DOMParser().parseFromString(n,"text/html");this.$notify(t===500||!r?.title?"Unknown error.":r.title,"danger")}this.load()},uploadSettings(e){Ft(e,{url:this.$url(this.base,{task:"file.upload",tmpl:"component",format:"html",folder:this.path,[ae.token]:1}),beforeSend:n=>{cn(n,{responseType:"json",headers:{Accept:"application/json"}})},complete:n=>{let{response:t}=n;return this.showMessage({body:t})}})},canCreate(){return ae.media.canCreate},canDelete(){return ae.media.canDelete}}};function b9(e){let{media:n}=e;Te.model("Finder",n.legacy?y9:m9)}var $9={name:"MenuModel",data:()=>ae.menu},k9={name:"ModuleModel",data:()=>ae.module},w9={name:"MenuItems",inject:["Menu"],props:{menu:{type:String,required:!0},parent:{type:String,default:"1"}},methods:{items(e,n){e===void 0&&(e=this.parent),n===void 0&&(n=this.menu);const t=Wt(this.Menu.items,{menu:n,parent:e});return t.length?t:!1}}};const x9=w9;var C9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ul",{class:{"uk-nav-sub":e.parent!=1}},e._l(e.items(),function(r){return t("li",{key:r.id,class:{"uk-parent":e.items(r.id),"uk-disabled":!e.Menu.canEdit}},[t("a",{attrs:{href:""},on:{click:function(o){o.preventDefault(),e.Menu.canEdit&&e.$trigger("editMenuItem",r)}}},[e._v(e._s(r.title))]),e._v(" "),e.items(r.id)?t("MenuItems",{attrs:{menu:e.menu,parent:r.id}}):e._e()],1)}),0)},S9=[],A9=Z({render:C9,staticRenderFns:S9},void 0,x9,void 0,!1,void 0,!1,void 0,void 0,void 0),T9={components:{MenuItems:A9},inject:["Menu"],props:{menu:{type:String,required:!0}}};const O9=T9;var E9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("MenuItems",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless",attrs:{menu:e.menu}}),e._v(" "),e.Menu.canCreate?t("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-medium-top",attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.$trigger("addMenuItem",e.menu)}}},[e._v(`
`+e._s(e.$t("New Menu Item"))+`
`)]):e._e()],1)},F9=[],M9=Z({render:E9,staticRenderFns:F9},void 0,O9,void 0,!1,void 0,!1,void 0,void 0,void 0),P9={components:{FieldsPanel:Sr},inject:["Config","Menu"],props:{panel:{type:Object,required:!0}},computed:{fields(){return gr(this.Menu.positions,(e,n)=>({label:this.$t("%label% Position",{label:e}),name:`menu.positions.${n}`,type:"select",options:Ft({[this.$t("- Select -")]:""},gr(_M(this.Menu.menus,"name"),"id"))}))}}};const L9=P9;var N9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless"},e._l(e.Menu.menus,function(r){return t("li",{key:r.name},[t("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),e.$trigger("editMenu",r)}}},[e._v(e._s(r.name))])])}),0),e._v(" "),t("FieldsPanel",{staticClass:"uk-margin-medium-top",attrs:{panel:{fields:e.fields},values:e.Config.values},on:{change:e.Config.change}}),e._v(" "),t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Display a menu by selecting the position in which it should appear. For example, publish the main menu in the navbar position and an alternative menu in the mobile position."))+`
`)]),e._v(" "),t("p",{staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("If you are creating a multilingual site, do not select a specific menu here. Instead, use the Joomla module manager to publish the right menu depending on the current language."))+`
`)])],1)},R9=[],I9=Z({render:N9,staticRenderFns:R9},void 0,L9,void 0,!1,void 0,!1,void 0,void 0,void 0),D9={inject:["Module"],props:{panel:Object},data:()=>({visible:[],onlyVisible:!1}),computed:{positionList(){return this.Module.positions.map(e=>({name:e||"none",modules:this.Module.modules.filter(n=>(!this.onlyVisible||this.get(n))&&(n.position===e||!e&&!~this.Module.positions.indexOf(n.position)))})).filter(e=>{let{modules:n}=e;return n.length})}},methods:{get(e){let{id:n}=e;return~this.visible.indexOf(n)},add(){this.$trigger("addModule")},edit(e){this.$trigger("editModule",e)},editBuilder(e){this.$trigger("editBuilder",e)},hover(e,n){this.$trigger("hoverModule",[e,n])}}};const j9=D9;var B9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.onlyVisible,expression:"onlyVisible"}],staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.onlyVisible)?e._i(e.onlyVisible,null)>-1:e.onlyVisible},on:{change:function(r){var o=e.onlyVisible,u=r.target,f=!!u.checked;if(Array.isArray(o)){var p=null,_=e._i(o,p);u.checked?_<0&&(e.onlyVisible=o.concat([p])):_>-1&&(e.onlyVisible=o.slice(0,_).concat(o.slice(_+1)))}else e.onlyVisible=f}}}),e._v(`
`+e._s(e.$t("Visible on this page"))+`
`)]),e._v(" "),t("p",{staticClass:"uk-text-muted uk-margin-small"},[e._v(`
`+e._s(e.$t("Only display modules that are published and visible on this page."))+`
`)]),e._v(" "),e._l(e.positionList,function(r){var o=r.name,u=r.modules;return[t("h3",{key:"heading-"+o,staticClass:"yo-sidebar-subheading"},[e._v(e._s(o))]),e._v(" "),t("ul",{key:"list-"+o,staticClass:`
uk-nav uk-nav-default
yo-sidebar-marginless
uk-text-capitalize
yo-nav-iconnav
`},e._l(u,function(f){return t("li",{key:f.id,class:{"yo-highlight":!e.onlyVisible&&e.get(f),"uk-disabled":!e.Module.canEdit},on:{mouseenter:function(p){return e.hover(f,p)},mouseleave:function(p){return e.hover(f,p)}}},[t("a",{attrs:{href:""},on:{click:function(p){p.preventDefault(),e.Module.canEdit&&e.edit(f)}}},[e._v(e._s(f.title))]),e._v(" "),f.module==="mod_yootheme_builder"?t("button",{staticClass:`
uk-position-center-right
uk-position-small
uk-button
uk-button-default
uk-button-small
`,attrs:{type:"button"},on:{click:function(p){p.preventDefault(),e.Module.canEdit&&e.editBuilder(f)}}},[e._v(`
`+e._s(e.$t("Builder"))+`
`)]):e._e()])}),0)]}),e._v(" "),e.Module.canCreate?t("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-medium-top",attrs:{type:"button"},on:{click:function(r){return r.preventDefault(),e.add()}}},[e._v(`
`+e._s(e.$t("New Module"))+`
`)]):e._e()],2)},H9=[],z9=Z({render:B9,staticRenderFns:H9},void 0,j9,void 0,!1,void 0,!1,void 0,void 0,void 0),W9={inject:["Menu","Modal"],props:{menu:String,item:Object},data:e=>{let{menu:n,item:t={}}=e;return{url:`${ae.url}/administrator/index.php?option=com_menus&task=item.${n?"add":"edit"}&tmpl=component&${n?`menutype=${n}`:`id=${t.id}`}`,height:"500px",loaded:!1,disabled:!1,id:t.id}},mounted(){this.Modal.$on("show",()=>V.on(this.Modal.$el,"resize",()=>this.height=this.$refs.overflow.style.maxHeight)),this.Modal.$on("hide",()=>this.task("items.checkin")),V.on(this.$refs.iframe,"load",e=>{let{target:n}=e;return this.load(n)})},methods:{load(e){let{contentDocument:n}=e;this.loaded=!0,this.disabled=!1,n.body.style.padding="30px",V.once(n,"submit",'[name="adminForm"]',()=>{this.disabled=!0,V.once(this.$refs.iframe,"load",t=>{let{target:{contentWindow:{location:r}}}=t;this.id=new su(r.search).get("id"),this.$trigger("updateMenuItem")})})},submit(e,n){e===void 0&&(e="apply");let{contentWindow:{Joomla:t}}=n===void 0?this.$refs.iframe:n;t.submitbutton(`item.${e}`)},deleteItem(){this.task("items.trash").then(()=>{this.$trigger("updateMenuItem"),this.Modal.hide()})},task(e){return this.$http.post(`${ae.url}/administrator/index.php?option=com_menus`,{cid:[this.id],task:e,[ae.token]:1},{emulateJSON:!0})}}};const G9=W9;var K9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[t("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(`
`+e._s(e.id?e.$t("Edit Menu Item"):e.$t("Add Menu Item"))+`
`),e.id?t("span",{staticClass:"uk-text-muted uk-margin-small-left"},[e._v(e._s(e.$t("(ID %id%)",{id:e.id})))]):e._e()]),e._v(" "),e.id&&e.Menu.canDelete?t("button",{staticClass:"uk-button uk-button-danger uk-align-right",attrs:{disabled:!e.loaded,type:"button"},on:{click:e.deleteItem}},[e._v(`
`+e._s(e.$t("Delete"))+`
`)]):e._e()]),e._v(" "),t("div",{ref:"overflow",attrs:{"uk-overflow-auto":""}},[t("iframe",{ref:"iframe",style:{height:e.height,width:"100%"},attrs:{src:e.url,"uk-responsive":""}})]),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-text uk-margin-small-right uk-modal-close",attrs:{disabled:e.disabled}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:e.disabled||!e.loaded,type:"button"},on:{click:function(r){return e.submit()}}},[e._v(`
`+e._s(e.$t("Save"))+`
`)])])])},U9=[];const wb=Z({render:K9,staticRenderFns:U9},void 0,G9,void 0,!1,void 0,!1,void 0,void 0,void 0);var Y9={extends:I9,events:{editMenu(e,n){let{id:t,name:r}=n;const o={name:t,title:r,component:M9,props:{menu:t}};this.$trigger("openPanel",o)},addMenuItem(e,n){this.$modal(wb,{menu:n}).show({container:!0})},editMenuItem(e,n){this.$modal(wb,{item:n}).show({container:!0})},updateMenuItem(){this.$http.get("items").then(e=>{let{body:n}=e;this.$set(this.Menu,"items",n),this.$trigger("loadPreview")})}}};function q9(e){let{app:n}=e;n.extend({components:{"joomla-menus":Y9},models:{Menu:$9}})}var J9={directives:{Confirm:$r},inject:["Modal","Module"],props:{url:String,module:Object},data:e=>{let{url:n,module:t={}}=e;return{src:`${ae.url}/${n}&tmpl=component&${t.id?`task=module.edit&id=${t.id}`:"view=select"}`,height:"500px",edit:!!t,loaded:!1,disabled:!1,id:t.id}},mounted(){window.SqueezeBox=window.SqueezeBox||{close:V.noop},this.Modal.$on("hide",()=>this.task("modules.checkin")),this.$refs.iframe.addEventListener("load",e=>{let{target:n}=e;return this.load(n)})},methods:{load(e){let{contentDocument:n,contentWindow:{Joomla:t}}=e;this.edit=!!t,this.loaded=!0,this.disabled=!1,n.body.style.padding="30px",V.once(n,"submit",'[name="adminForm"]',()=>{this.disabled=!0,V.once(this.$refs.iframe,"load",r=>{let{target:{contentWindow:{location:o}}}=r;this.id=new su(o.search).get("id"),this.$trigger("updateModule")})}),V.$$("#new-modules-list a",n).forEach(r=>r.href=`${r.href}&tmpl=component`)},submit(e,n){e===void 0&&(e="apply");let{contentWindow:{Joomla:t}}=n===void 0?this.$refs.iframe:n;t.submitbutton(`module.${e}`)},deleteModule(){this.task("modules.trash").then(()=>{this.$trigger("updateModule"),this.Modal.hide()})},task(e){return this.$http.post(`${ae.url}/${this.url}`,{task:e,cid:[this.id],[ae.token]:1},{emulateJSON:!0})}}};const X9=J9;var Z9=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{on:{resize:function(r){e.height=r.target.style.maxHeight}}},[t("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[t("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(`
`+e._s(e.id?e.$t("Edit Module"):e.$t("Add Module"))+`
`),e.id?t("span",{staticClass:"uk-text-muted uk-margin-small-left"},[e._v(e._s(e.$t("(ID %id%)",{id:e.id})))]):e._e()]),e._v(" "),e.id&&e.Module.canDelete?t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-button uk-button-danger uk-align-right",attrs:{disabled:!e.loaded,type:"button"},on:{click:e.deleteModule}},[e._v(`
`+e._s(e.$t("Delete"))+`
`)]):e._e()]),e._v(" "),t("div",{attrs:{"uk-overflow-auto":""}},[t("iframe",{ref:"iframe",style:{height:e.height,width:"100%"},attrs:{src:e.src}})]),e._v(" "),t("div",{staticClass:"uk-modal-footer uk-text-right"},[t("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{disabled:e.disabled}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"edit"}],staticClass:"uk-button uk-button-primary",attrs:{disabled:e.disabled||!e.loaded,type:"button"},on:{click:function(r){return e.submit()}}},[e._v(`
`+e._s(e.$t("Save"))+`
`)])])])},Q9=[];const xb=Z({render:Z9,staticRenderFns:Q9},void 0,X9,void 0,!1,void 0,!1,void 0,void 0,void 0);var V9={components:{HelpButton:_u,Layout:du,Savebar:Jd},mixins:[hu],models:{Builder:pu},props:{id:[String,Number],title:String,content:Object},created(){this.Builder.prefix=`module-${this.id}#`,this.Builder.reset(this.content),this.Builder.$on("change",this.load)},methods:{load(){this.$trigger("loadPreview",{module:{id:this.id,content:JSON.stringify(this.Builder.node)}})},save(){const{node:e}=this.Builder;return this.$trigger("replaceImages",e,!0).then(n=>{n&&this.load(),this.$http.post("module",{id:this.id,content:e}).then(()=>this.Builder.reset(e))},()=>{})},cancel(){this.Builder.reset(),this.load()},empty(){this.Builder.set({...this.Builder.make("layout"),children:[this.Builder.make("section")]})}},events:{closePanel(e,n,t){let{name:r}=t===void 0?{}:t;r!==this.panel.name||!this.Builder.modified||(window.confirm(this.$t("The changes you made will be lost if you navigate away from this page."))?this.$trigger("loadPreview"):n.close=!1)}}};const e4=V9;var t4=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("Savebar",{directives:[{name:"show",rawName:"v-show",value:e.Builder.modified,expression:"Builder.modified"}],on:{cancel:e.cancel,save:e.save}}),e._v(" "),t("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium yo-wp-builder"},[t("div",{staticClass:"uk-width-expand"},[t("h2",{staticClass:"yo-sidebar-heading uk-margin-remove-bottom"},[e._v(e._s(e.$t("Builder")))])]),e._v(" "),t("div",{staticClass:"uk-width-auto"},[t("HelpButton"),e._v(" "),t("button",{staticClass:"uk-button uk-button-small uk-button-default",attrs:{type:"button"},on:{click:function(r){return e.$trigger("openLibrary",e.Builder)}}},[e._v(`
`+e._s(e.$t("Library"))+`
`)])],1)]),e._v(" "),t("h2",{directives:[{name:"show",rawName:"v-show",value:!e.Builder.empty,expression:"!Builder.empty"}],staticClass:"uk-h1 uk-text-truncate"},[e._v(e._s(e.title))]),e._v(" "),t("p",{directives:[{name:"show",rawName:"v-show",value:e.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-text-muted"},[e._v(`
`+e._s(e.$t("Create a layout for this module and publish it in the top or bottom position. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts."))+`
`)]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:e.empty}},[e._v(`
`+e._s(e.$t("New Layout"))+`
`)]),e._v(" "),t("Layout",{attrs:{node:e.Builder.node}})],1)},n4=[];const r4=Z({render:t4,staticRenderFns:n4},void 0,e4,void 0,!1,void 0,!1,void 0,void 0,void 0);var i4={extends:z9,methods:{add(){this.$modal(xb,{url:this.panel.url}).show({container:!0})},edit(e){this.$modal(xb,{module:e,url:this.panel.url}).show({container:!0})},editBuilder(e){let{id:n,title:t}=e;this.$http.get("module",{params:{id:n}}).then(r=>{let{body:{content:o}}=r;const u={name:"module-builder",component:r4,title:"",width:500,heading:!1,props:{id:n,title:t,content:o||{}}};this.$trigger("openPanel",u)})},hover(e,n){let{type:t}=n;this.get(e)&&V.toggleClass(V.$(`[id^="module-${e.id}"]`,this.document),"yo-hover",t==="mouseenter")}},events:{readyPreview(e,n){let{document:t}=n;this.document=t,this.visible=V.$$('[id^="module-"]',t).map(r=>r.id.substring(7)).filter(r=>!r.match(/[^\d]/))},updateModule(){Promise.all([this.$http.get("modules").then(e=>{let{body:n}=e;return this.$set(this.Module,"modules",n)}),this.$http.get("positions").then(e=>{let{body:n}=e;return this.$set(this.Module,"positions",n)})]).then(()=>this.$trigger("loadPreview"))}}},a4={extends:Fi,inject:["Module"],methods:{filterOptions(){const e=[{value:"",text:this.$t("- Select Module -")}];return Tn(this.Module.types,(n,t)=>{const r=Wt(this.Module.modules,{module:t}).map(o=>({value:o.id,text:`${o.title} - ${o.id}`}));r.length&&e.push({label:n,options:r})}),e}},created(){this.$on("change",e=>this.$set(this.values,"type",$t(this.Module.modules,{id:e})?.module||""))}},o4={extends:Fi,inject:["Module"],methods:{filterOptions(){return[{value:"",text:this.$t("- Select Position -")},...this.Module.positions.filter(e=>e).map(e=>({text:e,value:e}))]}}};function s4(e){let{app:n}=e;n.extend({components:{"joomla-modules":i4},models:{Module:k9}}),Te.component("FieldSelectModule",a4),Te.component("FieldSelectPosition",o4)}function l4(e){let{app:n}=e;n.extend({created(){new Te({parent:this,data:{open:!1},watch:{open:"inject"},methods:{inject(){const{document:t,$theme:r={}}=this.window;this.notification&&(V.remove(this.notification),this.notification=null),!(!this.open||!r.cookie)&&(this.notification=(r.cookie.position==="top"?V.prepend:V.append)(t.body,r.cookie.template),V.once(this.notification,"hidden",()=>setTimeout(this.inject,250)))}},events:{readyPreview(t,r){let{window:o}=r;const{$customizer:u={}}=o;this.window=!ae.id||ae.id===u.id?o:{},this.inject()},openPanel(t,r){this.open=r==="cookie"},closePanel(){this.open=!1}}})}})}var Qd={exports:{}},pt={},rs={},Fn={};function Cb(e){return typeof e=="undefined"||e===null}function u4(e){return typeof e=="object"&&e!==null}function c4(e){return Array.isArray(e)?e:Cb(e)?[]:[e]}function f4(e,n){var t,r,o,u;if(n)for(u=Object.keys(n),t=0,r=u.length;t<r;t+=1)o=u[t],e[o]=n[o];return e}function d4(e,n){var t="",r;for(r=0;r<n;r+=1)t+=e;return t}function p4(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Fn.isNothing=Cb,Fn.isObject=u4,Fn.toArray=c4,Fn.repeat=d4,Fn.isNegativeZero=p4,Fn.extend=f4;function is(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}is.prototype=Object.create(Error.prototype),is.prototype.constructor=is,is.prototype.toString=function(n){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!n&&this.mark&&(t+=" "+this.mark.toString()),t};var as=is,Sb=Fn;function Vd(e,n,t,r,o){this.name=e,this.buffer=n,this.position=t,this.line=r,this.column=o}Vd.prototype.getSnippet=function(n,t){var r,o,u,f,p;if(!this.buffer)return null;for(n=n||4,t=t||75,r="",o=this.position;o>0&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>t/2-1){r=" ... ",o+=5;break}for(u="",f=this.position;f<this.buffer.length&&`\0\r
\x85\u2028\u2029`.indexOf(this.buffer.charAt(f))===-1;)if(f+=1,f-this.position>t/2-1){u=" ... ",f-=5;break}return p=this.buffer.slice(o,f),Sb.repeat(" ",n)+r+p+u+`
`+Sb.repeat(" ",n+this.position-o+r.length)+"^"},Vd.prototype.toString=function(n){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),n||(t=this.getSnippet(),t&&(r+=`:
`+t)),r};var h4=Vd,Ab=as,_4=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],v4=["scalar","sequence","mapping"];function m4(e){var n={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(r){n[String(r)]=t})}),n}function g4(e,n){if(n=n||{},Object.keys(n).forEach(function(t){if(_4.indexOf(t)===-1)throw new Ab('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(t){return t},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.defaultStyle=n.defaultStyle||null,this.styleAliases=m4(n.styleAliases||null),v4.indexOf(this.kind)===-1)throw new Ab('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Pt=g4,Tb=Fn,vu=as,y4=Pt;function ep(e,n,t){var r=[];return e.include.forEach(function(o){t=ep(o,n,t)}),e[n].forEach(function(o){t.forEach(function(u,f){u.tag===o.tag&&u.kind===o.kind&&r.push(f)}),t.push(o)}),t.filter(function(o,u){return r.indexOf(u)===-1})}function b4(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},n,t;function r(o){e[o.kind][o.tag]=e.fallback[o.tag]=o}for(n=0,t=arguments.length;n<t;n+=1)arguments[n].forEach(r);return e}function Ia(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(n){if(n.loadKind&&n.loadKind!=="scalar")throw new vu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=ep(this,"implicit",[]),this.compiledExplicit=ep(this,"explicit",[]),this.compiledTypeMap=b4(this.compiledImplicit,this.compiledExplicit)}Ia.DEFAULT=null,Ia.create=function(){var n,t;switch(arguments.length){case 1:n=Ia.DEFAULT,t=arguments[0];break;case 2:n=arguments[0],t=arguments[1];break;default:throw new vu("Wrong number of arguments for Schema.create function")}if(n=Tb.toArray(n),t=Tb.toArray(t),!n.every(function(r){return r instanceof Ia}))throw new vu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(r){return r instanceof y4}))throw new vu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ia({include:n,explicit:t})};var Da=Ia,$4=Pt,k4=new $4("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),w4=Pt,x4=new w4("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),C4=Pt,S4=new C4("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),A4=Da,tp=new A4({explicit:[k4,x4,S4]}),T4=Pt;function O4(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function E4(){return null}function F4(e){return e===null}var M4=new T4("tag:yaml.org,2002:null",{kind:"scalar",resolve:O4,construct:E4,predicate:F4,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),P4=Pt;function L4(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function N4(e){return e==="true"||e==="True"||e==="TRUE"}function R4(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var I4=new P4("tag:yaml.org,2002:bool",{kind:"scalar",resolve:L4,construct:N4,predicate:R4,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),D4=Fn,j4=Pt;function B4(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function H4(e){return 48<=e&&e<=55}function z4(e){return 48<=e&&e<=57}function W4(e){if(e===null)return!1;var n=e.length,t=0,r=!1,o;if(!n)return!1;if(o=e[t],(o==="-"||o==="+")&&(o=e[++t]),o==="0"){if(t+1===n)return!0;if(o=e[++t],o==="b"){for(t++;t<n;t++)if(o=e[t],o!=="_"){if(o!=="0"&&o!=="1")return!1;r=!0}return r&&o!=="_"}if(o==="x"){for(t++;t<n;t++)if(o=e[t],o!=="_"){if(!B4(e.charCodeAt(t)))return!1;r=!0}return r&&o!=="_"}for(;t<n;t++)if(o=e[t],o!=="_"){if(!H4(e.charCodeAt(t)))return!1;r=!0}return r&&o!=="_"}if(o==="_")return!1;for(;t<n;t++)if(o=e[t],o!=="_"){if(o===":")break;if(!z4(e.charCodeAt(t)))return!1;r=!0}return!r||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(t))}function G4(e){var n=e,t=1,r,o,u=[];return n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(t=-1),n=n.slice(1),r=n[0]),n==="0"?0:r==="0"?n[1]==="b"?t*parseInt(n.slice(2),2):n[1]==="x"?t*parseInt(n,16):t*parseInt(n,8):n.indexOf(":")!==-1?(n.split(":").forEach(function(f){u.unshift(parseInt(f,10))}),n=0,o=1,u.forEach(function(f){n+=f*o,o*=60}),t*n):t*parseInt(n,10)}function K4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1==0&&!D4.isNegativeZero(e)}var U4=new j4("tag:yaml.org,2002:int",{kind:"scalar",resolve:W4,construct:G4,predicate:K4,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ob=Fn,Y4=Pt,q4=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function J4(e){return!(e===null||!q4.test(e)||e[e.length-1]==="_")}function X4(e){var n,t,r,o;return n=e.replace(/_/g,"").toLowerCase(),t=n[0]==="-"?-1:1,o=[],"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:n.indexOf(":")>=0?(n.split(":").forEach(function(u){o.unshift(parseFloat(u,10))}),n=0,r=1,o.forEach(function(u){n+=u*r,r*=60}),t*n):t*parseFloat(n,10)}var Z4=/^[-+]?[0-9]+e/;function Q4(e,n){var t;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ob.isNegativeZero(e))return"-0.0";return t=e.toString(10),Z4.test(t)?t.replace("e",".e"):t}function V4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!=0||Ob.isNegativeZero(e))}var eK=new Y4("tag:yaml.org,2002:float",{kind:"scalar",resolve:J4,construct:X4,predicate:V4,represent:Q4,defaultStyle:"lowercase"}),tK=Da,Eb=new tK({include:[tp],implicit:[M4,I4,U4,eK]}),nK=Da,Fb=new nK({include:[Eb]}),rK=Pt,Mb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Pb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function iK(e){return e===null?!1:Mb.exec(e)!==null||Pb.exec(e)!==null}function aK(e){var n,t,r,o,u,f,p,_=0,v=null,k,w,x;if(n=Mb.exec(e),n===null&&(n=Pb.exec(e)),n===null)throw new Error("Date resolve error");if(t=+n[1],r=+n[2]-1,o=+n[3],!n[4])return new Date(Date.UTC(t,r,o));if(u=+n[4],f=+n[5],p=+n[6],n[7]){for(_=n[7].slice(0,3);_.length<3;)_+="0";_=+_}return n[9]&&(k=+n[10],w=+(n[11]||0),v=(k*60+w)*6e4,n[9]==="-"&&(v=-v)),x=new Date(Date.UTC(t,r,o,u,f,p,_)),v&&x.setTime(x.getTime()-v),x}function oK(e){return e.toISOString()}var sK=new rK("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:iK,construct:aK,instanceOf:Date,represent:oK}),lK=Pt;function uK(e){return e==="<<"||e===null}var cK=new lK("tag:yaml.org,2002:merge",{kind:"scalar",resolve:uK}),Pi;try{var fK=Qm;Pi=fK("buffer").Buffer}catch{}var dK=Pt,np=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function pK(e){if(e===null)return!1;var n,t,r=0,o=e.length,u=np;for(t=0;t<o;t++)if(n=u.indexOf(e.charAt(t)),!(n>64)){if(n<0)return!1;r+=6}return r%8==0}function hK(e){var n,t,r=e.replace(/[\r\n=]/g,""),o=r.length,u=np,f=0,p=[];for(n=0;n<o;n++)n%4==0&&n&&(p.push(f>>16&255),p.push(f>>8&255),p.push(f&255)),f=f<<6|u.indexOf(r.charAt(n));return t=o%4*6,t===0?(p.push(f>>16&255),p.push(f>>8&255),p.push(f&255)):t===18?(p.push(f>>10&255),p.push(f>>2&255)):t===12&&p.push(f>>4&255),Pi?Pi.from?Pi.from(p):new Pi(p):p}function _K(e){var n="",t=0,r,o,u=e.length,f=np;for(r=0;r<u;r++)r%3==0&&r&&(n+=f[t>>18&63],n+=f[t>>12&63],n+=f[t>>6&63],n+=f[t&63]),t=(t<<8)+e[r];return o=u%3,o===0?(n+=f[t>>18&63],n+=f[t>>12&63],n+=f[t>>6&63],n+=f[t&63]):o===2?(n+=f[t>>10&63],n+=f[t>>4&63],n+=f[t<<2&63],n+=f[64]):o===1&&(n+=f[t>>2&63],n+=f[t<<4&63],n+=f[64],n+=f[64]),n}function vK(e){return Pi&&Pi.isBuffer(e)}var mK=new dK("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pK,construct:hK,predicate:vK,represent:_K}),gK=Pt,yK=Object.prototype.hasOwnProperty,bK=Object.prototype.toString;function $K(e){if(e===null)return!0;var n=[],t,r,o,u,f,p=e;for(t=0,r=p.length;t<r;t+=1){if(o=p[t],f=!1,bK.call(o)!=="[object Object]")return!1;for(u in o)if(yK.call(o,u))if(!f)f=!0;else return!1;if(!f)return!1;if(n.indexOf(u)===-1)n.push(u);else return!1}return!0}function kK(e){return e!==null?e:[]}var wK=new gK("tag:yaml.org,2002:omap",{kind:"sequence",resolve:$K,construct:kK}),xK=Pt,CK=Object.prototype.toString;function SK(e){if(e===null)return!0;var n,t,r,o,u,f=e;for(u=new Array(f.length),n=0,t=f.length;n<t;n+=1){if(r=f[n],CK.call(r)!=="[object Object]"||(o=Object.keys(r),o.length!==1))return!1;u[n]=[o[0],r[o[0]]]}return!0}function AK(e){if(e===null)return[];var n,t,r,o,u,f=e;for(u=new Array(f.length),n=0,t=f.length;n<t;n+=1)r=f[n],o=Object.keys(r),u[n]=[o[0],r[o[0]]];return u}var TK=new xK("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:SK,construct:AK}),OK=Pt,EK=Object.prototype.hasOwnProperty;function FK(e){if(e===null)return!0;var n,t=e;for(n in t)if(EK.call(t,n)&&t[n]!==null)return!1;return!0}function MK(e){return e!==null?e:{}}var PK=new OK("tag:yaml.org,2002:set",{kind:"mapping",resolve:FK,construct:MK}),LK=Da,os=new LK({include:[Fb],implicit:[sK,cK],explicit:[mK,wK,TK,PK]}),NK=Pt;function RK(){return!0}function IK(){}function DK(){return""}function jK(e){return typeof e=="undefined"}var BK=new NK("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:RK,construct:IK,predicate:jK,represent:DK}),HK=Pt;function zK(e){if(e===null||e.length===0)return!1;var n=e,t=/\/([gim]*)$/.exec(e),r="";return!(n[0]==="/"&&(t&&(r=t[1]),r.length>3||n[n.length-r.length-1]!=="/"))}function WK(e){var n=e,t=/\/([gim]*)$/.exec(e),r="";return n[0]==="/"&&(t&&(r=t[1]),n=n.slice(1,n.length-r.length-1)),new RegExp(n,r)}function GK(e){var n="/"+e.source+"/";return e.global&&(n+="g"),e.multiline&&(n+="m"),e.ignoreCase&&(n+="i"),n}function KK(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var UK=new HK("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:zK,construct:WK,predicate:KK,represent:GK}),mu;try{var YK=Qm;mu=YK("esprima")}catch{typeof window!="undefined"&&(mu=window.esprima)}var qK=Pt;function JK(e){if(e===null)return!1;try{var n="("+e+")",t=mu.parse(n,{range:!0});return!(t.type!=="Program"||t.body.length!==1||t.body[0].type!=="ExpressionStatement"||t.body[0].expression.type!=="ArrowFunctionExpression"&&t.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function XK(e){var n="("+e+")",t=mu.parse(n,{range:!0}),r=[],o;if(t.type!=="Program"||t.body.length!==1||t.body[0].type!=="ExpressionStatement"||t.body[0].expression.type!=="ArrowFunctionExpression"&&t.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return t.body[0].expression.params.forEach(function(u){r.push(u.name)}),o=t.body[0].expression.body.range,t.body[0].expression.body.type==="BlockStatement"?new Function(r,n.slice(o[0]+1,o[1]-1)):new Function(r,"return "+n.slice(o[0],o[1]))}function ZK(e){return e.toString()}function QK(e){return Object.prototype.toString.call(e)==="[object Function]"}var VK=new qK("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:JK,construct:XK,predicate:QK,represent:ZK}),Lb=Da,gu=Lb.DEFAULT=new Lb({include:[os],explicit:[BK,UK,VK]}),Ar=Fn,Nb=as,eU=h4,Rb=os,tU=gu,qr=Object.prototype.hasOwnProperty,yu=1,Ib=2,Db=3,bu=4,rp=1,nU=2,jb=3,rU=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,iU=/[\x85\u2028\u2029]/,aU=/[,\[\]\{\}]/,Bb=/^(?:!|!!|![a-z\-]+!)$/i,Hb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zb(e){return Object.prototype.toString.call(e)}function Vn(e){return e===10||e===13}function Li(e){return e===9||e===32}function fn(e){return e===9||e===32||e===10||e===13}function ja(e){return e===44||e===91||e===93||e===123||e===125}function oU(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function sU(e){return e===120?2:e===117?4:e===85?8:0}function lU(e){return 48<=e&&e<=57?e-48:-1}function Wb(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function uU(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Gb=new Array(256),Kb=new Array(256),Ba=0;Ba<256;Ba++)Gb[Ba]=Wb(Ba)?1:0,Kb[Ba]=Wb(Ba);function cU(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||tU,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Ub(e,n){return new Nb(n,new eU(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function De(e,n){throw Ub(e,n)}function $u(e,n){e.onWarning&&e.onWarning.call(null,Ub(e,n))}var Yb={YAML:function(n,t,r){var o,u,f;n.version!==null&&De(n,"duplication of %YAML directive"),r.length!==1&&De(n,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),o===null&&De(n,"ill-formed argument of the YAML directive"),u=parseInt(o[1],10),f=parseInt(o[2],10),u!==1&&De(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=f<2,f!==1&&f!==2&&$u(n,"unsupported YAML version of the document")},TAG:function(n,t,r){var o,u;r.length!==2&&De(n,"TAG directive accepts exactly two arguments"),o=r[0],u=r[1],Bb.test(o)||De(n,"ill-formed tag handle (first argument) of the TAG directive"),qr.call(n.tagMap,o)&&De(n,'there is a previously declared suffix for "'+o+'" tag handle'),Hb.test(u)||De(n,"ill-formed tag prefix (second argument) of the TAG directive"),n.tagMap[o]=u}};function Jr(e,n,t,r){var o,u,f,p;if(n<t){if(p=e.input.slice(n,t),r)for(o=0,u=p.length;o<u;o+=1)f=p.charCodeAt(o),f===9||32<=f&&f<=1114111||De(e,"expected valid JSON character");else rU.test(p)&&De(e,"the stream contains non-printable characters");e.result+=p}}function qb(e,n,t,r){var o,u,f,p;for(Ar.isObject(t)||De(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(t),f=0,p=o.length;f<p;f+=1)u=o[f],qr.call(n,u)||(n[u]=t[u],r[u]=!0)}function Ha(e,n,t,r,o,u,f,p){var _,v;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),_=0,v=o.length;_<v;_+=1)Array.isArray(o[_])&&De(e,"nested arrays are not supported inside keys"),typeof o=="object"&&zb(o[_])==="[object Object]"&&(o[_]="[object Object]");if(typeof o=="object"&&zb(o)==="[object Object]"&&(o="[object Object]"),o=String(o),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(_=0,v=u.length;_<v;_+=1)qb(e,n,u[_],t);else qb(e,n,u,t);else!e.json&&!qr.call(t,o)&&qr.call(n,o)&&(e.line=f||e.line,e.position=p||e.position,De(e,"duplicated mapping key")),n[o]=u,delete t[o];return n}function ip(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):De(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function wt(e,n,t){for(var r=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Li(o);)o=e.input.charCodeAt(++e.position);if(n&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Vn(o))for(ip(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return t!==-1&&r!==0&&e.lineIndent<t&&$u(e,"deficient indentation"),r}function ku(e){var n=e.position,t;return t=e.input.charCodeAt(n),!!((t===45||t===46)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),t===0||fn(t)))}function ap(e,n){n===1?e.result+=" ":n>1&&(e.result+=Ar.repeat(`
`,n-1))}function fU(e,n,t){var r,o,u,f,p,_,v,k,w=e.kind,x=e.result,M;if(M=e.input.charCodeAt(e.position),fn(M)||ja(M)||M===35||M===38||M===42||M===33||M===124||M===62||M===39||M===34||M===37||M===64||M===96||(M===63||M===45)&&(o=e.input.charCodeAt(e.position+1),fn(o)||t&&ja(o)))return!1;for(e.kind="scalar",e.result="",u=f=e.position,p=!1;M!==0;){if(M===58){if(o=e.input.charCodeAt(e.position+1),fn(o)||t&&ja(o))break}else if(M===35){if(r=e.input.charCodeAt(e.position-1),fn(r))break}else{if(e.position===e.lineStart&&ku(e)||t&&ja(M))break;if(Vn(M))if(_=e.line,v=e.lineStart,k=e.lineIndent,wt(e,!1,-1),e.lineIndent>=n){p=!0,M=e.input.charCodeAt(e.position);continue}else{e.position=f,e.line=_,e.lineStart=v,e.lineIndent=k;break}}p&&(Jr(e,u,f,!1),ap(e,e.line-_),u=f=e.position,p=!1),Li(M)||(f=e.position+1),M=e.input.charCodeAt(++e.position)}return Jr(e,u,f,!1),e.result?!0:(e.kind=w,e.result=x,!1)}function dU(e,n){var t,r,o;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(Jr(e,r,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)r=e.position,e.position++,o=e.position;else return!0;else Vn(t)?(Jr(e,r,o,!0),ap(e,wt(e,!1,n)),r=o=e.position):e.position===e.lineStart&&ku(e)?De(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);De(e,"unexpected end of the stream within a single quoted scalar")}function pU(e,n){var t,r,o,u,f,p;if(p=e.input.charCodeAt(e.position),p!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=r=e.position;(p=e.input.charCodeAt(e.position))!==0;){if(p===34)return Jr(e,t,e.position,!0),e.position++,!0;if(p===92){if(Jr(e,t,e.position,!0),p=e.input.charCodeAt(++e.position),Vn(p))wt(e,!1,n);else if(p<256&&Gb[p])e.result+=Kb[p],e.position++;else if((f=sU(p))>0){for(o=f,u=0;o>0;o--)p=e.input.charCodeAt(++e.position),(f=oU(p))>=0?u=(u<<4)+f:De(e,"expected hexadecimal character");e.result+=uU(u),e.position++}else De(e,"unknown escape sequence");t=r=e.position}else Vn(p)?(Jr(e,t,r,!0),ap(e,wt(e,!1,n)),t=r=e.position):e.position===e.lineStart&&ku(e)?De(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}De(e,"unexpected end of the stream within a double quoted scalar")}function hU(e,n){var t=!0,r,o=e.tag,u,f=e.anchor,p,_,v,k,w,x={},M,z,ie,q;if(q=e.input.charCodeAt(e.position),q===91)_=93,w=!1,u=[];else if(q===123)_=125,w=!0,u={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),q=e.input.charCodeAt(++e.position);q!==0;){if(wt(e,!0,n),q=e.input.charCodeAt(e.position),q===_)return e.position++,e.tag=o,e.anchor=f,e.kind=w?"mapping":"sequence",e.result=u,!0;t||De(e,"missed comma between flow collection entries"),z=M=ie=null,v=k=!1,q===63&&(p=e.input.charCodeAt(e.position+1),fn(p)&&(v=k=!0,e.position++,wt(e,!0,n))),r=e.line,za(e,n,yu,!1,!0),z=e.tag,M=e.result,wt(e,!0,n),q=e.input.charCodeAt(e.position),(k||e.line===r)&&q===58&&(v=!0,q=e.input.charCodeAt(++e.position),wt(e,!0,n),za(e,n,yu,!1,!0),ie=e.result),w?Ha(e,u,x,z,M,ie):v?u.push(Ha(e,null,x,z,M,ie)):u.push(M),wt(e,!0,n),q=e.input.charCodeAt(e.position),q===44?(t=!0,q=e.input.charCodeAt(++e.position)):t=!1}De(e,"unexpected end of the stream within a flow collection")}function _U(e,n){var t,r,o=rp,u=!1,f=!1,p=n,_=0,v=!1,k,w;if(w=e.input.charCodeAt(e.position),w===124)r=!1;else if(w===62)r=!0;else return!1;for(e.kind="scalar",e.result="";w!==0;)if(w=e.input.charCodeAt(++e.position),w===43||w===45)rp===o?o=w===43?jb:nU:De(e,"repeat of a chomping mode identifier");else if((k=lU(w))>=0)k===0?De(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?De(e,"repeat of an indentation width identifier"):(p=n+k-1,f=!0);else break;if(Li(w)){do w=e.input.charCodeAt(++e.position);while(Li(w));if(w===35)do w=e.input.charCodeAt(++e.position);while(!Vn(w)&&w!==0)}for(;w!==0;){for(ip(e),e.lineIndent=0,w=e.input.charCodeAt(e.position);(!f||e.lineIndent<p)&&w===32;)e.lineIndent++,w=e.input.charCodeAt(++e.position);if(!f&&e.lineIndent>p&&(p=e.lineIndent),Vn(w)){_++;continue}if(e.lineIndent<p){o===jb?e.result+=Ar.repeat(`
`,u?1+_:_):o===rp&&u&&(e.result+=`
`);break}for(r?Li(w)?(v=!0,e.result+=Ar.repeat(`
`,u?1+_:_)):v?(v=!1,e.result+=Ar.repeat(`
`,_+1)):_===0?u&&(e.result+=" "):e.result+=Ar.repeat(`
`,_):e.result+=Ar.repeat(`
`,u?1+_:_),u=!0,f=!0,_=0,t=e.position;!Vn(w)&&w!==0;)w=e.input.charCodeAt(++e.position);Jr(e,t,e.position,!1)}return!0}function Jb(e,n){var t,r=e.tag,o=e.anchor,u=[],f,p=!1,_;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),_=e.input.charCodeAt(e.position);_!==0&&!(_!==45||(f=e.input.charCodeAt(e.position+1),!fn(f)));){if(p=!0,e.position++,wt(e,!0,-1)&&e.lineIndent<=n){u.push(null),_=e.input.charCodeAt(e.position);continue}if(t=e.line,za(e,n,Db,!1,!0),u.push(e.result),wt(e,!0,-1),_=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>n)&&_!==0)De(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return p?(e.tag=r,e.anchor=o,e.kind="sequence",e.result=u,!0):!1}function vU(e,n,t){var r,o,u,f,p=e.tag,_=e.anchor,v={},k={},w=null,x=null,M=null,z=!1,ie=!1,q;for(e.anchor!==null&&(e.anchorMap[e.anchor]=v),q=e.input.charCodeAt(e.position);q!==0;){if(r=e.input.charCodeAt(e.position+1),u=e.line,f=e.position,(q===63||q===58)&&fn(r))q===63?(z&&(Ha(e,v,k,w,x,null),w=x=M=null),ie=!0,z=!0,o=!0):z?(z=!1,o=!0):De(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,q=r;else if(za(e,t,Ib,!1,!0))if(e.line===u){for(q=e.input.charCodeAt(e.position);Li(q);)q=e.input.charCodeAt(++e.position);if(q===58)q=e.input.charCodeAt(++e.position),fn(q)||De(e,"a whitespace character is expected after the key-value separator within a block mapping"),z&&(Ha(e,v,k,w,x,null),w=x=M=null),ie=!0,z=!1,o=!1,w=e.tag,x=e.result;else if(ie)De(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=p,e.anchor=_,!0}else if(ie)De(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=p,e.anchor=_,!0;else break;if((e.line===u||e.lineIndent>n)&&(za(e,n,bu,!0,o)&&(z?x=e.result:M=e.result),z||(Ha(e,v,k,w,x,M,u,f),w=x=M=null),wt(e,!0,-1),q=e.input.charCodeAt(e.position)),e.lineIndent>n&&q!==0)De(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return z&&Ha(e,v,k,w,x,null),ie&&(e.tag=p,e.anchor=_,e.kind="mapping",e.result=v),ie}function mU(e){var n,t=!1,r=!1,o,u,f;if(f=e.input.charCodeAt(e.position),f!==33)return!1;if(e.tag!==null&&De(e,"duplication of a tag property"),f=e.input.charCodeAt(++e.position),f===60?(t=!0,f=e.input.charCodeAt(++e.position)):f===33?(r=!0,o="!!",f=e.input.charCodeAt(++e.position)):o="!",n=e.position,t){do f=e.input.charCodeAt(++e.position);while(f!==0&&f!==62);e.position<e.length?(u=e.input.slice(n,e.position),f=e.input.charCodeAt(++e.position)):De(e,"unexpected end of the stream within a verbatim tag")}else{for(;f!==0&&!fn(f);)f===33&&(r?De(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(n-1,e.position+1),Bb.test(o)||De(e,"named tag handle cannot contain such characters"),r=!0,n=e.position+1)),f=e.input.charCodeAt(++e.position);u=e.input.slice(n,e.position),aU.test(u)&&De(e,"tag suffix cannot contain flow indicator characters")}return u&&!Hb.test(u)&&De(e,"tag name cannot contain such characters: "+u),t?e.tag=u:qr.call(e.tagMap,o)?e.tag=e.tagMap[o]+u:o==="!"?e.tag="!"+u:o==="!!"?e.tag="tag:yaml.org,2002:"+u:De(e,'undeclared tag handle "'+o+'"'),!0}function gU(e){var n,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&De(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!fn(t)&&!ja(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&De(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function yU(e){var n,t,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!fn(r)&&!ja(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&De(e,"name of an alias node must contain at least one character"),t=e.input.slice(n,e.position),qr.call(e.anchorMap,t)||De(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],wt(e,!0,-1),!0}function za(e,n,t,r,o){var u,f,p,_=1,v=!1,k=!1,w,x,M,z,ie;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,u=f=p=bu===t||Db===t,r&&wt(e,!0,-1)&&(v=!0,e.lineIndent>n?_=1:e.lineIndent===n?_=0:e.lineIndent<n&&(_=-1)),_===1)for(;mU(e)||gU(e);)wt(e,!0,-1)?(v=!0,p=u,e.lineIndent>n?_=1:e.lineIndent===n?_=0:e.lineIndent<n&&(_=-1)):p=!1;if(p&&(p=v||o),(_===1||bu===t)&&(yu===t||Ib===t?z=n:z=n+1,ie=e.position-e.lineStart,_===1?p&&(Jb(e,ie)||vU(e,ie,z))||hU(e,z)?k=!0:(f&&_U(e,z)||dU(e,z)||pU(e,z)?k=!0:yU(e)?(k=!0,(e.tag!==null||e.anchor!==null)&&De(e,"alias node should not have any properties")):fU(e,z,yu===t)&&(k=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):_===0&&(k=p&&Jb(e,ie))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&De(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),w=0,x=e.implicitTypes.length;w<x;w+=1)if(M=e.implicitTypes[w],M.resolve(e.result)){e.result=M.construct(e.result),e.tag=M.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else qr.call(e.typeMap[e.kind||"fallback"],e.tag)?(M=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&M.kind!==e.kind&&De(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+M.kind+'", not "'+e.kind+'"'),M.resolve(e.result)?(e.result=M.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):De(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):De(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||k}function bU(e){var n=e.position,t,r,o,u=!1,f;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(f=e.input.charCodeAt(e.position))!==0&&(wt(e,!0,-1),f=e.input.charCodeAt(e.position),!(e.lineIndent>0||f!==37));){for(u=!0,f=e.input.charCodeAt(++e.position),t=e.position;f!==0&&!fn(f);)f=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),o=[],r.length<1&&De(e,"directive name must not be less than one character in length");f!==0;){for(;Li(f);)f=e.input.charCodeAt(++e.position);if(f===35){do f=e.input.charCodeAt(++e.position);while(f!==0&&!Vn(f));break}if(Vn(f))break;for(t=e.position;f!==0&&!fn(f);)f=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}f!==0&&ip(e),qr.call(Yb,r)?Yb[r](e,r,o):$u(e,'unknown document directive "'+r+'"')}if(wt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,wt(e,!0,-1)):u&&De(e,"directives end mark is expected"),za(e,e.lineIndent-1,bu,!1,!0),wt(e,!0,-1),e.checkLineBreaks&&iU.test(e.input.slice(n,e.position))&&$u(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ku(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,wt(e,!0,-1));return}if(e.position<e.length-1)De(e,"end of the stream or a document separator is expected");else return}function Xb(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new cU(e,n),r=e.indexOf("\0");for(r!==-1&&(t.position=r,De(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)bU(t);return t.documents}function Zb(e,n,t){n!==null&&typeof n=="object"&&typeof t=="undefined"&&(t=n,n=null);var r=Xb(e,t);if(typeof n!="function")return r;for(var o=0,u=r.length;o<u;o+=1)n(r[o])}function Qb(e,n){var t=Xb(e,n);if(t.length!==0){if(t.length===1)return t[0];throw new Nb("expected a single document in the stream, but found more")}}function $U(e,n,t){return typeof n=="object"&&n!==null&&typeof t=="undefined"&&(t=n,n=null),Zb(e,n,Ar.extend({schema:Rb},t))}function kU(e,n){return Qb(e,Ar.extend({schema:Rb},n))}rs.loadAll=Zb,rs.load=Qb,rs.safeLoadAll=$U,rs.safeLoad=kU;var op={},ss=Fn,ls=as,wU=gu,xU=os,Vb=Object.prototype.toString,e0=Object.prototype.hasOwnProperty,CU=9,us=10,SU=13,AU=32,TU=33,OU=34,t0=35,EU=37,FU=38,MU=39,PU=42,n0=44,LU=45,r0=58,NU=61,RU=62,IU=63,DU=64,i0=91,a0=93,jU=96,o0=123,BU=124,s0=125,Kt={};Kt[0]="\\0",Kt[7]="\\a",Kt[8]="\\b",Kt[9]="\\t",Kt[10]="\\n",Kt[11]="\\v",Kt[12]="\\f",Kt[13]="\\r",Kt[27]="\\e",Kt[34]='\\"',Kt[92]="\\\\",Kt[133]="\\N",Kt[160]="\\_",Kt[8232]="\\L",Kt[8233]="\\P";var HU=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function zU(e,n){var t,r,o,u,f,p,_;if(n===null)return{};for(t={},r=Object.keys(n),o=0,u=r.length;o<u;o+=1)f=r[o],p=String(n[f]),f.slice(0,2)==="!!"&&(f="tag:yaml.org,2002:"+f.slice(2)),_=e.compiledTypeMap.fallback[f],_&&e0.call(_.styleAliases,p)&&(p=_.styleAliases[p]),t[f]=p;return t}function l0(e){var n,t,r;if(n=e.toString(16).toUpperCase(),e<=255)t="x",r=2;else if(e<=65535)t="u",r=4;else if(e<=4294967295)t="U",r=8;else throw new ls("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+ss.repeat("0",r-n.length)+n}function WU(e){this.schema=e.schema||wU,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ss.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=zU(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u0(e,n){for(var t=ss.repeat(" ",n),r=0,o=-1,u="",f,p=e.length;r<p;)o=e.indexOf(`
`,r),o===-1?(f=e.slice(r),r=p):(f=e.slice(r,o+1),r=o+1),f.length&&f!==`
`&&(u+=t),u+=f;return u}function sp(e,n){return`
`+ss.repeat(" ",e.indent*n)}function GU(e,n){var t,r,o;for(t=0,r=e.implicitTypes.length;t<r;t+=1)if(o=e.implicitTypes[t],o.resolve(n))return!0;return!1}function lp(e){return e===AU||e===CU}function Wa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function KU(e){return Wa(e)&&!lp(e)&&e!==65279&&e!==SU&&e!==us}function c0(e,n){return Wa(e)&&e!==65279&&e!==n0&&e!==i0&&e!==a0&&e!==o0&&e!==s0&&e!==r0&&(e!==t0||n&&KU(n))}function UU(e){return Wa(e)&&e!==65279&&!lp(e)&&e!==LU&&e!==IU&&e!==r0&&e!==n0&&e!==i0&&e!==a0&&e!==o0&&e!==s0&&e!==t0&&e!==FU&&e!==PU&&e!==TU&&e!==BU&&e!==NU&&e!==RU&&e!==MU&&e!==OU&&e!==EU&&e!==DU&&e!==jU}function f0(e){var n=/^\n* /;return n.test(e)}var d0=1,p0=2,h0=3,_0=4,wu=5;function YU(e,n,t,r,o){var u,f,p,_=!1,v=!1,k=r!==-1,w=-1,x=UU(e.charCodeAt(0))&&!lp(e.charCodeAt(e.length-1));if(n)for(u=0;u<e.length;u++){if(f=e.charCodeAt(u),!Wa(f))return wu;p=u>0?e.charCodeAt(u-1):null,x=x&&c0(f,p)}else{for(u=0;u<e.length;u++){if(f=e.charCodeAt(u),f===us)_=!0,k&&(v=v||u-w-1>r&&e[w+1]!==" ",w=u);else if(!Wa(f))return wu;p=u>0?e.charCodeAt(u-1):null,x=x&&c0(f,p)}v=v||k&&u-w-1>r&&e[w+1]!==" "}return!_&&!v?x&&!o(e)?d0:p0:t>9&&f0(e)?wu:v?_0:h0}function qU(e,n,t,r){e.dump=function(){if(n.length===0)return"''";if(!e.noCompatMode&&HU.indexOf(n)!==-1)return"'"+n+"'";var o=e.indent*Math.max(1,t),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),f=r||e.flowLevel>-1&&t>=e.flowLevel;function p(_){return GU(e,_)}switch(YU(n,f,e.indent,u,p)){case d0:return n;case p0:return"'"+n.replace(/'/g,"''")+"'";case h0:return"|"+v0(n,e.indent)+m0(u0(n,o));case _0:return">"+v0(n,e.indent)+m0(u0(JU(n,u),o));case wu:return'"'+XU(n)+'"';default:throw new ls("impossible error: invalid scalar style")}}()}function v0(e,n){var t=f0(e)?String(n):"",r=e[e.length-1]===`
`,o=r&&(e[e.length-2]===`
`||e===`
`),u=o?"+":r?"":"-";return t+u+`
`}function m0(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function JU(e,n){for(var t=/(\n+)([^\n]*)/g,r=function(){var v=e.indexOf(`
`);return v=v!==-1?v:e.length,t.lastIndex=v,g0(e.slice(0,v),n)}(),o=e[0]===`
`||e[0]===" ",u,f;f=t.exec(e);){var p=f[1],_=f[2];u=_[0]===" ",r+=p+(!o&&!u&&_!==""?`
`:"")+g0(_,n),o=u}return r}function g0(e,n){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,r,o=0,u,f=0,p=0,_="";r=t.exec(e);)p=r.index,p-o>n&&(u=f>o?f:p,_+=`
`+e.slice(o,u),o=u+1),f=p;return _+=`
`,e.length-o>n&&f>o?_+=e.slice(o,f)+`
`+e.slice(f+1):_+=e.slice(o),_.slice(1)}function XU(e){for(var n="",t,r,o,u=0;u<e.length;u++){if(t=e.charCodeAt(u),t>=55296&&t<=56319&&(r=e.charCodeAt(u+1),r>=56320&&r<=57343)){n+=l0((t-55296)*1024+r-56320+65536),u++;continue}o=Kt[t],n+=!o&&Wa(t)?e[u]:o||l0(t)}return n}function ZU(e,n,t){var r="",o=e.tag,u,f;for(u=0,f=t.length;u<f;u+=1)Ni(e,n,t[u],!1,!1)&&(u!==0&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=o,e.dump="["+r+"]"}function QU(e,n,t,r){var o="",u=e.tag,f,p;for(f=0,p=t.length;f<p;f+=1)Ni(e,n+1,t[f],!0,!0)&&((!r||f!==0)&&(o+=sp(e,n)),e.dump&&us===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=u,e.dump=o||"[]"}function VU(e,n,t){var r="",o=e.tag,u=Object.keys(t),f,p,_,v,k;for(f=0,p=u.length;f<p;f+=1)k="",f!==0&&(k+=", "),e.condenseFlow&&(k+='"'),_=u[f],v=t[_],!!Ni(e,n,_,!1,!1)&&(e.dump.length>1024&&(k+="? "),k+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!Ni(e,n,v,!1,!1)&&(k+=e.dump,r+=k));e.tag=o,e.dump="{"+r+"}"}function e7(e,n,t,r){var o="",u=e.tag,f=Object.keys(t),p,_,v,k,w,x;if(e.sortKeys===!0)f.sort();else if(typeof e.sortKeys=="function")f.sort(e.sortKeys);else if(e.sortKeys)throw new ls("sortKeys must be a boolean or a function");for(p=0,_=f.length;p<_;p+=1)x="",(!r||p!==0)&&(x+=sp(e,n)),v=f[p],k=t[v],!!Ni(e,n+1,v,!0,!0,!0)&&(w=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,w&&(e.dump&&us===e.dump.charCodeAt(0)?x+="?":x+="? "),x+=e.dump,w&&(x+=sp(e,n)),!!Ni(e,n+1,k,!0,w)&&(e.dump&&us===e.dump.charCodeAt(0)?x+=":":x+=": ",x+=e.dump,o+=x));e.tag=u,e.dump=o||"{}"}function y0(e,n,t){var r,o,u,f,p,_;for(o=t?e.explicitTypes:e.implicitTypes,u=0,f=o.length;u<f;u+=1)if(p=o[u],(p.instanceOf||p.predicate)&&(!p.instanceOf||typeof n=="object"&&n instanceof p.instanceOf)&&(!p.predicate||p.predicate(n))){if(e.tag=t?p.tag:"?",p.represent){if(_=e.styleMap[p.tag]||p.defaultStyle,Vb.call(p.represent)==="[object Function]")r=p.represent(n,_);else if(e0.call(p.represent,_))r=p.represent[_](n,_);else throw new ls("!<"+p.tag+'> tag resolver accepts not "'+_+'" style');e.dump=r}return!0}return!1}function Ni(e,n,t,r,o,u){e.tag=null,e.dump=t,y0(e,t,!1)||y0(e,t,!0);var f=Vb.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>n);var p=f==="[object Object]"||f==="[object Array]",_,v;if(p&&(_=e.duplicates.indexOf(t),v=_!==-1),(e.tag!==null&&e.tag!=="?"||v||e.indent!==2&&n>0)&&(o=!1),v&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(p&&v&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),f==="[object Object]")r&&Object.keys(e.dump).length!==0?(e7(e,n,e.dump,o),v&&(e.dump="&ref_"+_+e.dump)):(VU(e,n,e.dump),v&&(e.dump="&ref_"+_+" "+e.dump));else if(f==="[object Array]"){var k=e.noArrayIndent&&n>0?n-1:n;r&&e.dump.length!==0?(QU(e,k,e.dump,o),v&&(e.dump="&ref_"+_+e.dump)):(ZU(e,k,e.dump),v&&(e.dump="&ref_"+_+" "+e.dump))}else if(f==="[object String]")e.tag!=="?"&&qU(e,e.dump,n,u);else{if(e.skipInvalid)return!1;throw new ls("unacceptable kind of an object to dump "+f)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function t7(e,n){var t=[],r=[],o,u;for(up(e,t,r),o=0,u=r.length;o<u;o+=1)n.duplicates.push(t[r[o]]);n.usedDuplicates=new Array(u)}function up(e,n,t){var r,o,u;if(e!==null&&typeof e=="object")if(o=n.indexOf(e),o!==-1)t.indexOf(o)===-1&&t.push(o);else if(n.push(e),Array.isArray(e))for(o=0,u=e.length;o<u;o+=1)up(e[o],n,t);else for(r=Object.keys(e),o=0,u=r.length;o<u;o+=1)up(e[r[o]],n,t)}function b0(e,n){n=n||{};var t=new WU(n);return t.noRefs||t7(e,t),Ni(t,0,e,!0,!0)?t.dump+`
`:""}function n7(e,n){return b0(e,ss.extend({schema:xU},n))}op.dump=b0,op.safeDump=n7;var xu=rs,$0=op;function Cu(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}pt.Type=Pt,pt.Schema=Da,pt.FAILSAFE_SCHEMA=tp,pt.JSON_SCHEMA=Eb,pt.CORE_SCHEMA=Fb,pt.DEFAULT_SAFE_SCHEMA=os,pt.DEFAULT_FULL_SCHEMA=gu,pt.load=xu.load,pt.loadAll=xu.loadAll,pt.safeLoad=xu.safeLoad,pt.safeLoadAll=xu.safeLoadAll,pt.dump=$0.dump,pt.safeDump=$0.safeDump,pt.YAMLException=as,pt.MINIMAL_SCHEMA=tp,pt.SAFE_SCHEMA=os,pt.DEFAULT_SCHEMA=gu,pt.scan=Cu("scan"),pt.parse=Cu("parse"),pt.compose=Cu("compose"),pt.addConstructor=Cu("addConstructor");var r7=pt,i7=r7,k0=i7,a7="\\ufeff?",o7=typeof process!="undefined"?process.platform:"",s7="^("+a7+"(= yaml =|---)$([\\s\\S]*?)^(?:\\2|\\.\\.\\.)\\s*$"+(o7==="win32"?"\\r?":"")+"(?:\\n)?)",w0=new RegExp(s7,"m");Qd.exports=l7,Qd.exports.test=f7;function l7(e,n){e=e||"";var t={allowUnsafe:!1};n=n instanceof Object?{...t,...n}:t,n.allowUnsafe=Boolean(n.allowUnsafe);var r=e.split(/(\r?\n)/);return r[0]&&/= yaml =|---/.test(r[0])?c7(e,n.allowUnsafe):{attributes:{},body:e,bodyBegin:1}}function u7(e,n){for(var t=1,r=n.indexOf(`
`),o=e.index+e[0].length;r!==-1;){if(r>=o)return t;t++,r=n.indexOf(`
`,r+1)}return t}function c7(e,n){var t=w0.exec(e);if(!t)return{attributes:{},body:e,bodyBegin:1};var r=n?k0.load:k0.safeLoad,o=t[t.length-1].replace(/^\s+|\s+$/g,""),u=r(o)||{},f=e.replace(t[0],""),p=u7(t,e);return{attributes:u,body:f,bodyBegin:p,frontmatter:o}}function f7(e){return e=e||"",w0.test(e)}var d7=Qd.exports,p7={name:"News",data:()=>({attributes:{},news:""}),created(){this.$config=ae,this.$http.get(`${ae.base}/NEWS.md`,{params:{v:ae.version}}).then(e=>{const{attributes:n,body:t}=d7(e.body);this.attributes=n,this.$asset({js:"https://cdn.jsdelivr.net/npm/marked@2.0.3/lib/marked.min.js"}).then(()=>{this.news=this.parse(t)})})},methods:{parse(e){const n=new marked.Renderer;return marked(e,{renderer:n})}}};const h7=p7;var _7=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("img",{attrs:{src:e.attributes.image,width:"1200",height:"600",alt:""}}),e._v(" "),t("div",{staticClass:"uk-modal-body uk-text-large"},[t("div",{domProps:{innerHTML:e._s(e.news)}})])])},v7=[];const x0=Z({render:_7,staticRenderFns:v7},void 0,h7,void 0,!1,void 0,!1,void 0,void 0,void 0);var m7={name:"Changelog",data:()=>({changelog:""}),created(){this.$http.get(`${ae.base}/CHANGELOG.md`,{v:ae.version}).then(e=>{let{body:n}=e;return this.$asset({js:"https://cdn.jsdelivr.net/npm/marked@2.0.3/lib/marked.min.js"}).then(()=>this.changelog=this.parse(n))})},methods:{parse(e){let n;const t=new marked.Renderer;return t.list=r=>`<ul class="uk-list">${r}</ul>`,t.listitem=r=>{let o="";switch(n){case"Added":o="uk-label-success";break;case"Removed":case"Deprecated":o="uk-label-warning";break;case"Fixed":case"Security":o="uk-label-danger"}return`<li><span class="uk-label ${o} uk-margin-right uk-text-center yo-width-small">${n}</span> ${r}</li>`},t.heading=(r,o)=>(r=r.replace(/(\(.*?\))/,'<span class="uk-text-muted">$1</span>'),o===2?`<h${o}>${r}</h${o}>`:(o===3&&(n=r),"")),marked(e,{renderer:t})}}};const g7=m7;var y7=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"uk-modal-header"},[t("h3",{staticClass:"uk-modal-title"},[e._v(e._s(e.$t("Changelog")))])]),e._v(" "),t("div",{staticClass:"uk-modal-body",attrs:{"uk-overflow-auto":""},domProps:{innerHTML:e._s(e.changelog)}})])},b7=[];const $7=Z({render:y7,staticRenderFns:b7},void 0,g7,void 0,!1,void 0,!1,void 0,void 0,void 0);var k7="yootheme/pro",w7="2.7.19",x7="YOOtheme",C7="A powerful, flexible and elegant website builder that allows you to create complex pages within minutes and customize every aspect of the theme.",S7="https://yootheme.com",A7="Copyright (C) YOOtheme GmbH",T7="GNU General Public License",O7=[{name:"YOOtheme",email:"info@yootheme.com",homepage:"https://yootheme.com"}],E7={php:">=5.6","psr/container":"1.0","psr/http-message":"^1.0","nikic/php-parser":"^4.12","webonyx/graphql-php":"^0.12","symfony/polyfill-php71":"1.19","symfony/polyfill-php72":"1.19","symfony/polyfill-php73":"1.19","symfony/polyfill-php74":"1.19"},F7={"psr-4":{"YOOtheme\\":["vendor/yootheme/application/src","vendor/yootheme/builder/src","vendor/yootheme/configuration/src","vendor/yootheme/container/src","vendor/yootheme/database/src","vendor/yootheme/encryption/src","vendor/yootheme/http-server/src","vendor/yootheme/image/src","vendor/yootheme/theme/src","vendor/yootheme/translation/src","vendor/yootheme/utils/src","vendor/yootheme/view/src","vendor/yootheme/view-metadata/src"],"YOOtheme\\Composer\\":["vendor/yootheme/composer/src"],"YOOtheme\\GraphQL\\":["vendor/yootheme/graphql/lib","vendor/yootheme/graphql/src"],"YOOtheme\\Polyfill\\":["vendor/yootheme/polyfill/src"],"YOOtheme\\Joomla\\":["vendor/yootheme/platform-joomla/src"],"YOOtheme\\Wordpress\\":["vendor/yootheme/platform-wordpress/src"],"YOOtheme\\Http\\Message\\":["vendor/yootheme/http-message/src"],"YOOtheme\\Builder\\":["vendor/yootheme/builder-source/src"],"YOOtheme\\Builder\\Source\\Filesystem\\":["vendor/yootheme/builder-source-filesystem/src"],"YOOtheme\\Builder\\Joomla\\":["vendor/yootheme/builder-joomla/src"],"YOOtheme\\Builder\\Joomla\\Fields\\":["vendor/yootheme/builder-joomla-fields/src"],"YOOtheme\\Builder\\Joomla\\Source\\":["vendor/yootheme/builder-joomla-source/src"],"YOOtheme\\Builder\\Newsletter\\":["vendor/yootheme/builder-newsletter/src"],"YOOtheme\\Builder\\Templates\\":["vendor/yootheme/builder-templates/src"],"YOOtheme\\Builder\\Wordpress\\":["vendor/yootheme/builder-wordpress/src"],"YOOtheme\\Builder\\Wordpress\\Acf\\":["vendor/yootheme/builder-wordpress-acf/src"],"YOOtheme\\Builder\\Wordpress\\PopularPosts\\":["vendor/yootheme/builder-wordpress-popular-posts/src"],"YOOtheme\\Builder\\Wordpress\\Source\\":["vendor/yootheme/builder-wordpress-source/src"],"YOOtheme\\Builder\\Wordpress\\Toolset\\":["vendor/yootheme/builder-wordpress-toolset/src"],"YOOtheme\\Builder\\Wordpress\\Woocommerce\\":["vendor/yootheme/builder-wordpress-woocommerce/src"],"YOOtheme\\Theme\\":["vendor/yootheme/styler/src","vendor/yootheme/theme-analytics/src","vendor/yootheme/theme-cookie/src","vendor/yootheme/theme-highlight/src","vendor/yootheme/theme-settings/src","vendor/yootheme/theme-wordpress-widgets/src"],"YOOtheme\\Theme\\Joomla\\":["vendor/yootheme/theme-joomla/src","vendor/yootheme/theme-joomla-articles/src","vendor/yootheme/theme-joomla-editor/src","vendor/yootheme/theme-joomla-finder/src","vendor/yootheme/theme-joomla-menus/src","vendor/yootheme/theme-joomla-modules/src"],"YOOtheme\\Theme\\Wordpress\\":["vendor/yootheme/theme-wordpress/src","vendor/yootheme/theme-wordpress-editor/src","vendor/yootheme/theme-wordpress-finder/src","vendor/yootheme/theme-wordpress-posts/src","vendor/yootheme/theme-wordpress-woocommerce/src"]},files:["vendor/yootheme/polyfill/bootstrap.php","vendor/yootheme/application/functions.php","vendor/yootheme/translation/functions.php"],"exclude-from-classmap":["vendor/nikic/*"]},M7={"platform-check":!1},P7={"pre-autoload-dump":"YOOtheme\\Composer\\ClassmapPlugin::preAutoloadDump"},L7={classmap:{"psr-4":{"GraphQL\\":"YOOtheme\\GraphQL\\"},replace:{"webonyx/graphql-php":"YOOtheme\\Composer\\ReturnTypeWillChange::replace"}}},N7={name:k7,version:w7,title:x7,description:C7,homepage:S7,copyright:A7,license:T7,authors:O7,require:E7,autoload:F7,config:M7,scripts:P7,extra:L7},R7={name:"About",props:{panel:{type:Object},data:{type:Object,default:()=>N7}},methods:{openChangelog(){this.$modal($7).show({width:"xlarge"})},openNews(){this.$modal(x0).show({width:"xlarge"})}}};const I7=R7;var D7=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("p",[e._v(`
`+e._s(e.data.title)),t("br"),e._v(`
`+e._s(e.$t("Version %version%",e.data))+`
`)]),e._v(" "),t("p",[e._v(`
`+e._s(e.data.copyright)+`
`)]),e._v(" "),t("p",[t("a",{attrs:{href:e.data.homepage,target:"_blank"}},[e._v(e._s(e.data.homepage))])]),e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:e.openNews}},[e._v(`
`+e._s(e.$t("What's New"))+`
`)]),e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{type:"button"},on:{click:e.openChangelog}},[e._v(`
`+e._s(e.$t("Changelog"))+`
`)])])},j7=[];const B7=Z({render:D7,staticRenderFns:j7},void 0,I7,void 0,!1,void 0,!1,void 0,void 0,void 0);var H7={props:{panel:Object},data:()=>({loaded:!1,requirements:[],recommendations:[]}),computed:{translations(){return{common_json:()=>this.$t('<code>json_encode()</code> must be available. Install and enable the <a href="http://php.net/manual/en/book.json.php" target="_blank">JSON</a> extension.'),common_gd:()=>this.$t('No image library is available to process images. Install and enable the <a href="http://php.net/manual/en/book.image.php" target="_blank">GD</a> extension.'),common_mbstring:()=>this.$t(`Multibyte encoded strings such as UTF-8 can't be processed. Install and enable the <a href="http://php.net/manual/en/book.mbstring.php" target="_blank">Multibyte String extension</a>.`),common_php_ver:e=>this.$t('The current PHP version %version% is outdated. Upgrade the installation, preferably to the <a href="http://php.net" target="_blank">latest PHP version</a>.',e),common_webp:()=>this.$t(`WebP image format isn't supported. Enable WebP support in the <a href="http://php.net/manual/en/image.installation.php" target="_blank">GD extension</a>.`),common_cachedir:()=>this.$t(`Images can't be cached. <a href="https://yootheme.com/support/yootheme-pro/joomla/file-permission-issues" target="_blank">Change the permissions</a> of the <code>cache</code> folder in the <code>yootheme</code> theme directory, so that the web server can write into it.`),common_post_max_size:()=>this.$t('A higher upload limit is recommended. Set the <code>post_max_size</code> to 8M in the <a href="http://php.net/manual/en/ini.core.php" target="_blank">PHP configuration</a>.'),common_upload_max_filesize:()=>this.$t('A higher upload limit is recommended. Set the <code>upload_max_filesize</code> to 8M in the <a href="http://php.net/manual/en/ini.core.php" target="_blank">PHP configuration</a>.'),common_memory_limit:()=>this.$t('A higher memory limit is recommended. Set the <code>memory_limit</code> to 128M in the <a href="http://php.net/manual/en/ini.core.php" target="_blank">PHP configuration</a>.'),common_max_execution_time:()=>this.$t('A higher execution time is recommended. Set the <code>max_execution_time</code> to 60 in the <a href="http://php.net/manual/en/ini.core.php" target="_blank">PHP configuration</a>.'),j_page_cache:()=>this.$t('Enabled page caching breaks essential functionality. Disable the Joomla plugin <a href="index.php?option=com_plugins&view=plugins" target="_blank">System - Page Cache</a>.'),j_seblod_icon:()=>this.$t('The SEBLOD plugin causes the builder to be unavailable. Disable the feature <em>Hide Edit Icon</em> in the <a href="index.php?option=com_config&view=component&component=com_cck" target="_blank">SEBLOD configuration</a>.'),j_rsfw_mail:()=>this.$t('The RSFirewall plugin corrupts the builder content. Disable the feature <em>Convert email addresses from plain text to images</em> in the <a href="index.php?option=com_rsfirewall&view=configuration" target="_blank">RSFirewall configuration</a>.'),j_yootheme_installer:()=>this.$t('The YOOtheme Installer Plugin, which enables <span class="uk-text-nowrap">1-click</span> updates, is disabled or missing. Enable the <a href="index.php?option=com_plugins&view=plugins" target="_blank">YOOtheme Installer</a> plugin or reinstall the theme package.'),j_apikey:()=>this.$t('The YOOtheme API key, which enables <span class="uk-text-nowrap">1-click</span> updates and access to the layout library, is missing. Create an API Key in your <a href="https://yootheme.com/user/profile#Websites" target="_blank">Account settings</a>.'),wp_apikey:()=>this.$t('The YOOtheme API key, which enables <span class="uk-text-nowrap">1-click</span> updates and access to the layout library, is missing. Create an API Key in your <a href="https://yootheme.com/user/profile#Websites" target="_blank">Account settings</a>.'),wp_theme_path:()=>this.$t("The YOOtheme Pro theme folder was renamed breaking essential functionality. Rename the theme folder back to <code>yootheme</code>.")}}},created(){this.$http.get("systemcheck").then(e=>{let{body:n}=e;return Object.assign(this,n,{loaded:!0})})},methods:{$tl(e,n){return n===void 0&&(n={}),e.key&&(n=e,e=n.key),this.translations[e]?this.translations[e](n):e}}};const z7=H7;var W7=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.loaded?t("div",[!e.requirements.length&&!e.recommendations.length?t("p",[t("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}),e._v(" "),t("strong",[e._v(e._s(e.$t("No critical issues found.")))]),e._v(`
`+e._s(e.$t("YOOtheme Pro is fully operational and ready to take off."))+`
`)]):!e.requirements.length&&e.recommendations.length?t("p",[t("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}),e._v(" "),t("strong",[e._v(e._s(e.$t("No critical issues found.")))]),e._v(`
`+e._s(e.$t("YOOtheme Pro is operational, but there are issues which need to be fixed to unlock features and improve performance."))+`
`)]):e.requirements.length?t("p",[t("span",{staticClass:"uk-text-danger",attrs:{"uk-icon":"warning"}}),e._v(" "),t("strong",[e._v(e._s(e.$t("Critical issues detected.")))]),e._v(`
`+e._s(e.$t("YOOtheme Pro is not operational. All critical issues need to be fixed."))+`
`)]):e._e(),e._v(" "),e.requirements.length?t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(`
`+e._s(e.$t("Critical Issues"))+`
`)]):e._e(),e._v(" "),e.requirements.length?t("ul",{staticClass:"uk-list uk-list-disc"},e._l(e.requirements,function(r){return t("li",{key:r,domProps:{innerHTML:e._s(e.$tl(r))}})}),0):e._e(),e._v(" "),e.recommendations.length?t("h3",{staticClass:"yo-sidebar-subheading"},[e._v(`
`+e._s(e.$t("Issues and Improvements"))+`
`)]):e._e(),e._v(" "),e.recommendations.length?t("ul",{staticClass:"uk-list uk-list-disc"},e._l(e.recommendations,function(r){return t("li",{key:r,domProps:{innerHTML:e._s(e.$tl(r))}})}),0):e._e()]):e._e()},G7=[];const K7=Z({render:W7,staticRenderFns:G7},void 0,z7,void 0,!1,void 0,!1,void 0,void 0,void 0),{hostname:U7}=window.location;var Y7={extends:Ue,inject:["Config"],methods:{importConfig(e){this.$http.post("import",{config:e}).then(n=>{let{data:t}=n;window.wp||(this.Config.dirty=!0),this.Config.values=t,this.Config.reload()})},exportConfig(e){Kr(`yootheme-${U7}.json`,JSON.stringify(e)+`
`)},uploadFile(e){let{currentTarget:n,dataTransfer:t}=e;const[r]=n.files||t?.files||[];r&&Wl(r).then(o=>{let{target:u}=o;return this.importConfig(JSON.parse(u.result))}).catch(()=>this.$notify(`Error loading '${r.name}'`,"danger"))}}};const q7=Y7;var J7=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:function(r){return e.exportConfig(e.Config.values)}}},[e._v(`
`+e._s(e.$t("Export Settings"))+`
`)]),e._v(" "),t("div",{staticClass:"uk-margin-small-top uk-display-block",attrs:{"uk-form-custom":""}},[t("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]"},on:{change:e.uploadFile}}),e._v(" "),t("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"}},[e._v(`
`+e._s(e.$t("Import Settings"))+`
`)])])])},X7=[];const Z7=Z({render:J7,staticRenderFns:X7},void 0,q7,void 0,!1,void 0,!1,void 0,void 0,void 0);function Q7(e){let{app:n}=e;Ft(Cr.components,{FieldConfig:Z7}),n.extend({components:{about:B7,systemcheck:K7},mounted(){ae.news&&this.$modal(x0).show({width:"xlarge"})}})}var V7={name:"HeaderBar",directives:{Confirm:$r},inject:["Config"],data:()=>({spinner:!1}),methods:{save(){this.spinner=!0,this.Config.save().then(()=>{this.spinner=!1})}}};const eY=V7;var tY=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Transition",{attrs:{appear:"","appear-to-class":"uk-animation-fade"}},[t("div",{staticClass:"yo-sidebar-close uk-flex uk-flex-middle"},[t("Transition",{attrs:{"enter-active-class":"uk-animation-fade","leave-active-class":"uk-animation-fade uk-animation-reverse",mode:"out-in"}},[e.Config.dirty?e._e():t("button",{staticClass:"uk-button uk-button-text uk-button-small uk-animation-fast",attrs:{type:"button"},on:{click:function(r){return e.$trigger("close")}}},[e._v(`
`+e._s(e.$t("Close"))+`
`)]),e._v(" "),e.Config.dirty?t("span",{staticClass:"uk-flex-1 uk-flex uk-flex-middle uk-animation-fast"},[t("button",{directives:[{name:"confirm",rawName:"v-confirm",value:e.$t("Are you sure?"),expression:"$t('Are you sure?')"}],staticClass:"uk-button uk-button-text uk-button-small uk-margin-auto-right",attrs:{type:"button"},on:{click:e.Config.cancel}},[e._v(`
`+e._s(e.$t("Cancel"))+`
`)]),e._v(" "),e.spinner?t("span",{staticClass:"uk-margin-small-right",attrs:{"uk-spinner":"",ratio:"0.5"}}):e._e(),e._v(" "),t("button",{staticClass:"uk-button uk-button-primary uk-button-small",attrs:{disabled:e.spinner,type:"button"},on:{click:e.Config.save}},[e._v(`
`+e._s(e.$t("Save"))+`
`)])]):e._e()])],1)])},nY=[];const rY=Z({render:tY,staticRenderFns:nY},void 0,eY,void 0,!1,void 0,!1,void 0,void 0,void 0),{history:iY,location:Su}=window;var aY={models:{Config:{name:"ConfigModel",data:()=>({dirty:!1,values:Fl(ae.config)}),watch:{"values.yootheme_apikey"(e){ae.apikey=e}},methods:{cancel(){this.values=Fl(ae.config),this.dirty=!1,this.reload()},change(e,n){let{name:t}=n;Ct(ae.ignore,t)||this.reload(),this.dirty=!0},reload:ga(function(){this.$trigger("loadPreview",{config:this.values})},250),save(){return this.$trigger("saveConfig",this.values,!0)}},events:{saveConfig(e,n){return this.dirty=!1,Fl(n)}}}},components:{HeaderBar:rY,FieldsPanel:Sr,Sidebar:Q6,Preview:R6,PreviewResize:H6},directives:{Confirm:$r},data:()=>({site:ae.site,sections:ae.section?qo(ae.sections,ae.section):ae.sections}),created(){this.$config=ae,Object.defineProperty(ae.menu,"assigned",{get:()=>gr(this.Config.values.menu.positions,(e,n)=>{const t=Wt(ae.module.modules,{position:n,module:"mod_menu"});return[e,...t.map(r=>{let{params:{menutype:o}}=r;return o})]})})},mounted(){this.$trigger("loadPreview",{admin:ae.admin,config:this.Config.values,user_id:ae.user_id}),V.on(window,"beforeunload",e=>{this.Config.dirty&&(e.preventDefault(),e.returnValue="")},!0)},events:{loadPreview(e,n){n===void 0&&(n={}),e.params=[{customizer:ed(JSON.stringify(n))}]},readyPreview(e,n){let{origin:{$el:t}}=e,{event:{first:r},window:o}=n;r&&V.scrollTop(o,this.scroll),this.site=o.location.href,iY.replaceState(null,"",oY("site",this.site)),V.on(o,"click",u=>requestAnimationFrame(()=>V.trigger(t,u))),V.on(o,"scroll",u=>{let{currentTarget:f}=u;return this.scroll=f.scrollY})},saveConfig:[{handler(e,n){return this.$trigger("replaceImages",n,!0).then(t=>t&&this.$trigger("loadPreview"),()=>!1)},priority:5},{handler(e,n){return this.$http.post("customizer",{config:n}).then(()=>{ae.config=Fl(n)},t=>{let{statusText:r}=t;Pn.notification(this.$t(`Saving failed: ${r}`),"danger"),this.Config.dirty=!0})},priority:-10}],close:{handler(){Su.href=ae.return},priority:-10},openMediaPicker(e,n){return this.$modal(wg,n).show({container:!0})},openFilePicker(e,n){return this.$modal(wg,{type:"",unsplash:!1,...n}).show({container:!0})},openLinkPicker(e,n){return this.$modal(kb,n).show({container:!0})},openHelp(e,n){return this.$modal(r8,{help:n}).show({width:"2xlarge"})},checkCache(){return this.$http.get("cache").then(e=>{let{body:n}=e;return n.files})},clearCache(){return this.$http.post("cache/clear")}}};function oY(e,n){const t=new su(Su.search);return t.set(e,n),`${Su.origin+Su.pathname}?${t.toString()}`}const sY=aY;var lY=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"yo-customizer"},[t("Sidebar",{attrs:{panels:e.$config.panels,sections:e.sections},scopedSlots:e._u([{key:"header",fn:function(){return[t("HeaderBar")]},proxy:!0},{key:"panel",fn:function(r){var o=r.panel;return[o.component?t(o.component,e._b({tag:"component",attrs:{panel:o}},"component",o.props,!1)):o.name in e.$options.components?t(o.name,e._b({tag:"component",attrs:{panel:o}},"component",o.props,!1)):t("FieldsPanel",{attrs:{panel:o,values:e.Config.values},on:{change:e.Config.change}})]}},{key:"footer",fn:function(){return[t("PreviewResize")]},proxy:!0}])}),e._v(" "),t("Preview",{attrs:{src:e.site}})],1)},uY=[];const cY=Z({render:lY,staticRenderFns:uY},void 0,sY,void 0,!1,void 0,!1,void 0,void 0,void 0),C0={};function fY(e,n){n===void 0&&(n={});const t=C0[e]={...n};return[dY].concat(n.modules||[]).forEach(o=>{Ft(t,o(t,C0))}),t}function dY(){return{app:{options:[],create(n){return this.options.reduce((t,r)=>t.extend(r),Te.extend(n))},extend(n){this.options.push(n)}}}}var S0=0,A0=1,Au=2;function yn(e){this.state=Au,this.value=void 0,this.deferred=[];var n=this;try{e(function(t){n.resolve(t)},function(t){n.reject(t)})}catch(t){n.reject(t)}}yn.reject=function(e){return new yn(function(n,t){t(e)})},yn.resolve=function(e){return new yn(function(n,t){n(e)})},yn.all=function(n){return new yn(function(t,r){var o=0,u=[];n.length===0&&t(u);function f(_){return function(v){u[_]=v,o+=1,o===n.length&&t(u)}}for(var p=0;p<n.length;p+=1)yn.resolve(n[p]).then(f(p),r)})},yn.race=function(n){return new yn(function(t,r){for(var o=0;o<n.length;o+=1)yn.resolve(n[o]).then(t,r)})};var cs=yn.prototype;cs.resolve=function(n){var t=this;if(t.state===Au){if(n===t)throw new TypeError("Promise settled with itself.");var r=!1;try{var o=n&&n.then;if(n!==null&&typeof n=="object"&&typeof o=="function"){o.call(n,function(u){r||t.resolve(u),r=!0},function(u){r||t.reject(u),r=!0});return}}catch(u){r||t.reject(u);return}t.state=S0,t.value=n,t.notify()}},cs.reject=function(n){var t=this;if(t.state===Au){if(n===t)throw new TypeError("Promise settled with itself.");t.state=A0,t.value=n,t.notify()}},cs.notify=function(){var n=this;gY(function(){if(n.state!==Au)for(;n.deferred.length;){var t=n.deferred.shift(),r=t[0],o=t[1],u=t[2],f=t[3];try{n.state===S0?u(typeof r=="function"?r.call(void 0,n.value):n.value):n.state===A0&&(typeof o=="function"?u(o.call(void 0,n.value)):f(n.value))}catch(p){f(p)}}})},cs.then=function(n,t){var r=this;return new yn(function(o,u){r.deferred.push([n,t,o,u]),r.notify()})},cs.catch=function(e){return this.then(void 0,e)},typeof Promise=="undefined"&&(window.Promise=yn);function mt(e,n){e instanceof Promise?this.promise=e:this.promise=new Promise(e.bind(n)),this.context=n}mt.all=function(e,n){return new mt(Promise.all(e),n)},mt.resolve=function(e,n){return new mt(Promise.resolve(e),n)},mt.reject=function(e,n){return new mt(Promise.reject(e),n)},mt.race=function(e,n){return new mt(Promise.race(e),n)};var Tu=mt.prototype;Tu.bind=function(e){return this.context=e,this},Tu.then=function(e,n){return e&&e.bind&&this.context&&(e=e.bind(this.context)),n&&n.bind&&this.context&&(n=n.bind(this.context)),new mt(this.promise.then(e,n),this.context)},Tu.catch=function(e){return e&&e.bind&&this.context&&(e=e.bind(this.context)),new mt(this.promise.catch(e),this.context)},Tu.finally=function(e){return this.then(function(n){return e.call(this),n},function(n){return e.call(this),Promise.reject(n)})};var pY={},hY=pY.hasOwnProperty,cp=[].slice,T0=!1,O0,fp=typeof window!="undefined";function _Y(e){var n=e.config,t=e.nextTick;O0=t,T0=n.debug||!n.silent}function vY(e){typeof console!="undefined"&&T0&&console.warn("[VueResource warn]: "+e)}function mY(e){typeof console!="undefined"&&console.error(e)}function gY(e,n){return O0(e,n)}function Ga(e){return e?e.replace(/^\s*|\s*$/g,""):""}function yY(e,n){return e&&n===void 0?e.replace(/\s+$/,""):!e||!n?e:e.replace(new RegExp("["+n+"]+$"),"")}function dp(e){return e?e.toLowerCase():""}function bY(e){return e?e.toUpperCase():""}var Ka=Array.isArray;function fs(e){return typeof e=="string"}function zn(e){return typeof e=="function"}function Ri(e){return e!==null&&typeof e=="object"}function Ou(e){return Ri(e)&&Object.getPrototypeOf(e)==Object.prototype}function $Y(e){return typeof Blob!="undefined"&&e instanceof Blob}function kY(e){return typeof FormData!="undefined"&&e instanceof FormData}function Ua(e,n,t){var r=mt.resolve(e);return arguments.length<2?r:r.then(n,t)}function E0(e,n,t){return t=t||{},zn(t)&&(t=t.call(n)),pp(e.bind({$vm:n,$options:t}),e,{$options:t})}function Tr(e,n){var t,r;if(Ka(e))for(t=0;t<e.length;t++)n.call(e[t],e[t],t);else if(Ri(e))for(r in e)hY.call(e,r)&&n.call(e[r],e[r],r);return e}var Or=Object.assign||xY;function pp(e){var n=cp.call(arguments,1);return n.forEach(function(t){hp(e,t,!0)}),e}function wY(e){var n=cp.call(arguments,1);return n.forEach(function(t){for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}function xY(e){var n=cp.call(arguments,1);return n.forEach(function(t){hp(e,t)}),e}function hp(e,n,t){for(var r in n)t&&(Ou(n[r])||Ka(n[r]))?(Ou(n[r])&&!Ou(e[r])&&(e[r]={}),Ka(n[r])&&!Ka(e[r])&&(e[r]=[]),hp(e[r],n[r],t)):n[r]!==void 0&&(e[r]=n[r])}function CY(e,n){var t=n(e);return fs(e.root)&&!/^(https?:)?\//.test(t)&&(t=yY(e.root,"/")+"/"+t),t}function SY(e,n){var t=Object.keys(Zt.options.params),r={},o=n(e);return Tr(e.params,function(u,f){t.indexOf(f)===-1&&(r[f]=u)}),r=Zt.params(r),r&&(o+=(o.indexOf("?")==-1?"?":"&")+r),o}function AY(e,n,t){var r=TY(e),o=r.expand(n);return t&&t.push.apply(t,r.vars),o}function TY(e){var n=["+","#",".","/",";","?","&"],t=[];return{vars:t,expand:function(o){return e.replace(/\{([^{}]+)\}|([^{}]+)/g,function(u,f,p){if(f){var _=null,v=[];if(n.indexOf(f.charAt(0))!==-1&&(_=f.charAt(0),f=f.substr(1)),f.split(/,/g).forEach(function(w){var x=/([^:*]*)(?::(\d+)|(\*))?/.exec(w);v.push.apply(v,OY(o,_,x[1],x[2]||x[3])),t.push(x[1])}),_&&_!=="+"){var k=",";return _==="?"?k="&":_!=="#"&&(k=_),(v.length!==0?_:"")+v.join(k)}else return v.join(",")}else return F0(p)})}}}function OY(e,n,t,r){var o=e[t],u=[];if(ds(o)&&o!=="")if(typeof o=="string"||typeof o=="number"||typeof o=="boolean")o=o.toString(),r&&r!=="*"&&(o=o.substring(0,parseInt(r,10))),u.push(ps(n,o,_p(n)?t:null));else if(r==="*")Array.isArray(o)?o.filter(ds).forEach(function(p){u.push(ps(n,p,_p(n)?t:null))}):Object.keys(o).forEach(function(p){ds(o[p])&&u.push(ps(n,o[p],p))});else{var f=[];Array.isArray(o)?o.filter(ds).forEach(function(p){f.push(ps(n,p))}):Object.keys(o).forEach(function(p){ds(o[p])&&(f.push(encodeURIComponent(p)),f.push(ps(n,o[p].toString())))}),_p(n)?u.push(encodeURIComponent(t)+"="+f.join(",")):f.length!==0&&u.push(f.join(","))}else n===";"?u.push(encodeURIComponent(t)):o===""&&(n==="&"||n==="?")?u.push(encodeURIComponent(t)+"="):o===""&&u.push("");return u}function ds(e){return e!=null}function _p(e){return e===";"||e==="&"||e==="?"}function ps(e,n,t){return n=e==="+"||e==="#"?F0(n):encodeURIComponent(n),t?encodeURIComponent(t)+"="+n:n}function F0(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(n){return/%[0-9A-Fa-f]/.test(n)||(n=encodeURI(n)),n}).join("")}function EY(e){var n=[],t=AY(e.url,e.params,n);return n.forEach(function(r){delete e.params[r]}),t}function Zt(e,n){var t=this||{},r=e,o;return fs(e)&&(r={url:e,params:n}),r=pp({},Zt.options,t.$options,r),Zt.transforms.forEach(function(u){fs(u)&&(u=Zt.transform[u]),zn(u)&&(o=FY(u,o,t.$vm))}),o(r)}Zt.options={url:"",root:null,params:{}},Zt.transform={template:EY,query:SY,root:CY},Zt.transforms=["template","query","root"],Zt.params=function(e){var n=[],t=encodeURIComponent;return n.add=function(r,o){zn(o)&&(o=o()),o===null&&(o=""),this.push(t(r)+"="+t(o))},M0(n,e),n.join("&").replace(/%20/g,"+")},Zt.parse=function(e){var n=document.createElement("a");return document.documentMode&&(n.href=e,e=n.href),n.href=e,{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",port:n.port,host:n.host,hostname:n.hostname,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):""}};function FY(e,n,t){return function(r){return e.call(t,r,n)}}function M0(e,n,t){var r=Ka(n),o=Ou(n),u;Tr(n,function(f,p){u=Ri(f)||Ka(f),t&&(p=t+"["+(o||u?p:"")+"]"),!t&&r?e.add(f.name,f.value):u?M0(e,f,p):e.add(p,f)})}function MY(e){return new mt(function(n){var t=new XDomainRequest,r=function(u){var f=u.type,p=0;f==="load"?p=200:f==="error"&&(p=500),n(e.respondWith(t.responseText,{status:p}))};e.abort=function(){return t.abort()},t.open(e.method,e.getUrl()),e.timeout&&(t.timeout=e.timeout),t.onload=r,t.onabort=r,t.onerror=r,t.ontimeout=r,t.onprogress=function(){},t.send(e.getBody())})}var PY=fp&&"withCredentials"in new XMLHttpRequest;function LY(e){if(fp){var n=Zt.parse(location.href),t=Zt.parse(e.getUrl());(t.protocol!==n.protocol||t.host!==n.host)&&(e.crossOrigin=!0,e.emulateHTTP=!1,PY||(e.client=MY))}}function NY(e){kY(e.body)?e.headers.delete("Content-Type"):Ri(e.body)&&e.emulateJSON&&(e.body=Zt.params(e.body),e.headers.set("Content-Type","application/x-www-form-urlencoded"))}function RY(e){var n=e.headers.get("Content-Type")||"";return Ri(e.body)&&n.indexOf("application/json")===0&&(e.body=JSON.stringify(e.body)),function(t){return t.bodyText?Ua(t.text(),function(r){var o=t.headers.get("Content-Type")||"";if(o.indexOf("application/json")===0||IY(r))try{t.body=JSON.parse(r)}catch{t.body=null}else t.body=r;return t}):t}}function IY(e){var n=e.match(/^\s*(\[|\{)/),t={"[":/]\s*$/,"{":/}\s*$/};return n&&t[n[1]].test(e)}function DY(e){return new mt(function(n){var t=e.jsonp||"callback",r=e.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),o=null,u,f;u=function(_){var v=_.type,k=0;v==="load"&&o!==null?k=200:v==="error"&&(k=500),k&&window[r]&&(delete window[r],document.body.removeChild(f)),n(e.respondWith(o,{status:k}))},window[r]=function(p){o=JSON.stringify(p)},e.abort=function(){u({type:"abort"})},e.params[t]=r,e.timeout&&setTimeout(e.abort,e.timeout),f=document.createElement("script"),f.src=e.getUrl(),f.type="text/javascript",f.async=!0,f.onload=u,f.onerror=u,document.body.appendChild(f)})}function jY(e){e.method=="JSONP"&&(e.client=DY)}function BY(e){zn(e.before)&&e.before.call(this,e)}function HY(e){e.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(e.method)&&(e.headers.set("X-HTTP-Method-Override",e.method),e.method="POST")}function zY(e){var n=Or({},dn.headers.common,e.crossOrigin?{}:dn.headers.custom,dn.headers[dp(e.method)]);Tr(n,function(t,r){e.headers.has(r)||e.headers.set(r,t)})}function WY(e){return new mt(function(n){var t=new XMLHttpRequest,r=function(u){var f=e.respondWith("response"in t?t.response:t.responseText,{status:t.status===1223?204:t.status,statusText:t.status===1223?"No Content":Ga(t.statusText)});Tr(Ga(t.getAllResponseHeaders()).split(`
`),function(p){f.headers.append(p.slice(0,p.indexOf(":")),p.slice(p.indexOf(":")+1))}),n(f)};e.abort=function(){return t.abort()},t.open(e.method,e.getUrl(),!0),e.timeout&&(t.timeout=e.timeout),e.responseType&&"responseType"in t&&(t.responseType=e.responseType),(e.withCredentials||e.credentials)&&(t.withCredentials=!0),e.crossOrigin||e.headers.set("X-Requested-With","XMLHttpRequest"),zn(e.progress)&&e.method==="GET"&&t.addEventListener("progress",e.progress),zn(e.downloadProgress)&&t.addEventListener("progress",e.downloadProgress),zn(e.progress)&&/^(POST|PUT)$/i.test(e.method)&&t.upload.addEventListener("progress",e.progress),zn(e.uploadProgress)&&t.upload&&t.upload.addEventListener("progress",e.uploadProgress),e.headers.forEach(function(o,u){t.setRequestHeader(u,o)}),t.onload=r,t.onabort=r,t.onerror=r,t.ontimeout=r,t.send(e.getBody())})}function GY(e){var n=require("got");return new mt(function(t){var r=e.getUrl(),o=e.getBody(),u=e.method,f={},p;e.headers.forEach(function(_,v){f[v]=_}),n(r,{body:o,method:u,headers:f}).then(p=function(v){var k=e.respondWith(v.body,{status:v.statusCode,statusText:Ga(v.statusMessage)});Tr(v.headers,function(w,x){k.headers.set(x,w)}),t(k)},function(_){return p(_.response)})})}function KY(e){var n=[UY],t=[];Ri(e)||(e=null);function r(o){for(;n.length;){var u=n.pop();if(zn(u)){var f=function(){var p=void 0,_=void 0;if(p=u.call(e,o,function(v){return _=v})||_,Ri(p))return{v:new mt(function(v,k){t.forEach(function(w){p=Ua(p,function(x){return w.call(e,x)||x},k)}),Ua(p,v,k)},e)};zn(p)&&t.unshift(p)}();if(typeof f=="object")return f.v}else vY("Invalid interceptor of type "+typeof u+", must be a function")}}return r.use=function(o){n.push(o)},r}function UY(e){var n=e.client||(fp?WY:GY);return n(e)}var vp=function(){function e(t){var r=this;this.map={},Tr(t,function(o,u){return r.append(u,o)})}var n=e.prototype;return n.has=function(r){return Ya(this.map,r)!==null},n.get=function(r){var o=this.map[Ya(this.map,r)];return o?o.join():null},n.getAll=function(r){return this.map[Ya(this.map,r)]||[]},n.set=function(r,o){this.map[YY(Ya(this.map,r)||r)]=[Ga(o)]},n.append=function(r,o){var u=this.map[Ya(this.map,r)];u?u.push(Ga(o)):this.set(r,o)},n.delete=function(r){delete this.map[Ya(this.map,r)]},n.deleteAll=function(){this.map={}},n.forEach=function(r,o){var u=this;Tr(this.map,function(f,p){Tr(f,function(_){return r.call(o,_,p,u)})})},e}();function Ya(e,n){return Object.keys(e).reduce(function(t,r){return dp(n)===dp(r)?r:t},null)}function YY(e){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return Ga(e)}var P0=function(){function e(t,r){var o=r.url,u=r.headers,f=r.status,p=r.statusText;this.url=o,this.ok=f>=200&&f<300,this.status=f||0,this.statusText=p||"",this.headers=new vp(u),this.body=t,fs(t)?this.bodyText=t:$Y(t)&&(this.bodyBlob=t,JY(t)&&(this.bodyText=qY(t)))}var n=e.prototype;return n.blob=function(){return Ua(this.bodyBlob)},n.text=function(){return Ua(this.bodyText)},n.json=function(){return Ua(this.text(),function(r){return JSON.parse(r)})},e}();Object.defineProperty(P0.prototype,"data",{get:function(){return this.body},set:function(n){this.body=n}});function qY(e){return new mt(function(n){var t=new FileReader;t.readAsText(e),t.onload=function(){n(t.result)}})}function JY(e){return e.type.indexOf("text")===0||e.type.indexOf("json")!==-1}var XY=function(){function e(t){this.body=null,this.params={},Or(this,t,{method:bY(t.method||"GET")}),this.headers instanceof vp||(this.headers=new vp(this.headers))}var n=e.prototype;return n.getUrl=function(){return Zt(this)},n.getBody=function(){return this.body},n.respondWith=function(r,o){return new P0(r,Or(o||{},{url:this.getUrl()}))},e}(),ZY={Accept:"application/json, text/plain, */*"},Eu={"Content-Type":"application/json;charset=utf-8"};function dn(e){var n=this||{},t=KY(n.$vm);return wY(e||{},n.$options,dn.options),dn.interceptors.forEach(function(r){fs(r)&&(r=dn.interceptor[r]),zn(r)&&t.use(r)}),t(new XY(e)).then(function(r){return r.ok?r:mt.reject(r)},function(r){return r instanceof Error&&mY(r),mt.reject(r)})}dn.options={},dn.headers={put:Eu,post:Eu,patch:Eu,delete:Eu,common:ZY,custom:{}},dn.interceptor={before:BY,method:HY,jsonp:jY,json:RY,form:NY,header:zY,cors:LY},dn.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(e){dn[e]=function(n,t){return this(Or(t||{},{url:n,method:e}))}}),["post","put","patch"].forEach(function(e){dn[e]=function(n,t,r){return this(Or(r||{},{url:n,method:e,body:t}))}});function mp(e,n,t,r){var o=this||{},u={};return t=Or({},mp.actions,t),Tr(t,function(f,p){f=pp({url:e,params:Or({},n)},r,f),u[p]=function(){return(o.$http||dn)(QY(f,arguments))}}),u}function QY(e,n){var t=Or({},e),r={},o;switch(n.length){case 2:r=n[0],o=n[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(t.method)?o=n[0]:r=n[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+n.length+" arguments"}return t.body=o,t.params=Or({},t.params,r),t}mp.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}};function gp(e){gp.installed||(_Y(e),e.url=Zt,e.http=dn,e.resource=mp,e.Promise=mt,Object.defineProperties(e.prototype,{$url:{get:function(){return E0(e.url,this,this.$options.url)}},$http:{get:function(){return E0(e.http,this,this.$options.http)}},$resource:{get:function(){return e.resource.bind(this)}},$promise:{get:function(){var t=this;return function(r){return new e.Promise(r,t)}}}}))}typeof window!="undefined"&&window.Vue&&!window.Vue.resource&&window.Vue.use(gp);var L0={},yp=Object.assign||nq,Fu=Array.isArray;function VY(e){var n=e.config;L0=n}function eq(e,n){n===void 0&&(n="#41B883"),typeof console!="undefined"&&L0.devtools&&console.log("%c vue-event-manager %c "+e+" ","color: #fff; background: #35495E; padding: 1px; border-radius: 3px 0 0 3px;","color: #fff; background: "+n+"; padding: 1px; border-radius: 0 3px 3px 0;")}function bp(e){return e!==null&&typeof e=="object"}function N0(e){return typeof e=="undefined"}function R0(e,n){Object.keys(e||{}).forEach(function(t){return n.call(null,e[t],t)})}function tq(e){return e===void 0&&(e=[]),e.findIndex||(e.findIndex=rq),e}function nq(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return t.forEach(function(o){Object.keys(o||{}).forEach(function(u){return e[u]=o[u]})}),e}function rq(e){if(this==null)throw new TypeError('"this" is null or not defined');if(typeof e!="function")throw new TypeError("predicate must be a function");for(var n=Object(this),t=n.length>>>0,r=arguments[1],o=0;o<t;){var u=n[o];if(e.call(r,u,o,n))return o;o++}return-1}var I0=function(){function e(){this.log=null,this.listeners={}}var n=e.prototype;return n.on=function(r,o,u){var f=this;u===void 0&&(u=0);var p=tq(this.listeners[r]),_=p.findIndex(function(v){return v.priority<u});return~_?p.splice(_,0,{callback:o,priority:u}):p.push({callback:o,priority:u}),this.listeners[r]=p,function(){return f.off(r,o)}},n.off=function(r,o){o||delete this.listeners[r];var u=this.listeners[r];if(u&&o){var f=u.findIndex(function(p){return p.callback===o});~f&&u.splice(f,1)}},n.trigger=function(r,o,u){o===void 0&&(o=[]),u===void 0&&(u=!1);var f=new iq(r,o),p=function(M){return Promise.reject(M)},_=function(M){return N0(M)?f.result:M},v=function(M,z){var ie=z.callback,q=function(D){return N0(D)||(f.result=D),D===!1&&f.stopPropagation(),f.isPropagationStopped()?f.result:ie.apply(ie,[f].concat(f.params))};return u?M.then(q,p):q(M)};this.log&&this.log.call(this,f);var k=(this.listeners[f.name]||[]).concat(),w=k.reduce(v,u?Promise.resolve():void 0);return u?w.then(_,p):_(w)},e}(),iq=function(){function e(t,r){bp(t)||(t={name:t}),Fu(r)||(r=[r]),yp(this,t,{params:r,result:void 0})}var n=e.prototype;return n.stopPropagation=function(){this.stop=!0},n.isPropagationStopped=function(){return this.stop===!0},e}(),D0=new I0,j0={version:"2.1.3",install:function(n,t){t===void 0&&(t={}),!this.installed&&(VY(n),eq(this.version),n.prototype.$events=n.events=yp(D0,t),n.prototype.$trigger=function(r,o,u){return o===void 0&&(o=[]),u===void 0&&(u=!1),bp(r)||(r={name:r,origin:this}),D0.trigger(r,o,u)},n.config.optionMergeStrategies.events=aq,n.mixin({beforeCreate:oq}))},EventManager:I0};function aq(e,n){if(!n)return e;if(!e)return n;var t=yp({},e);for(var r in n){var o=t[r],u=n[r];o&&!Fu(o)&&(o=[o]),t[r]=o?o.concat(u):Fu(u)?u:[u]}return t}function oq(){var e=this,n=[],t=this.$options.events;t&&(R0(t,function(r,o){R0(Fu(r)?r:[r],function(u){var f=0;bp(u)&&(f=u.priority,u=u.handler),n.push(e.$events.on(o,sq(u,e),f))})}),this.$on("hook:beforeDestroy",function(){return n.forEach(function(r){return r()})}))}function sq(e,n){return typeof e=="string"?function(){return n[e].apply(n,arguments)}:e.bind(n)}typeof window!="undefined"&&window.Vue&&window.Vue.use(j0),[j0,gp,Qj,uL,JN,Vj,ab,eB].map(e=>Te.use(e)),window.Vue||(window.Vue=Te),Te.config.devtools&&(Te.events.log=e=>{let{name:n,params:t}=e;return!n.match(/^(hover|leave|status).*?(Node|Component)/)&&console.log(`%c $trigger() %c ${n} `,"color: #fff; background: #35495E; padding: 1px; border-radius: 3px 0 0 3px;","color: #fff; background: #1A73E8; padding: 1px; border-radius: 0 3px 3px 0;",...t)},Te.config.productionTip=!1),document.addEventListener("DOMContentLoaded",function(){const e=fY("customizer",{modules:[sB,KM,tB,dB,pB,e6,hB,j8,NG,HG,QG,a9,v9,b9,q9,s4,l4,Q7]});new(e.app.create(cY))({el:"#customizer"})})})(UIkit.util,UIkit);