parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"xOn8":[function(require,module,exports) {
function o(e){return module.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},module.exports.__esModule=!0,module.exports.default=module.exports,o(e)}module.exports=o,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"NZya":[function(require,module,exports) {
var e=require("./typeof.js").default;function r(r,t){if("object"!==e(r)||null===r)return r;var o=r[Symbol.toPrimitive];if(void 0!==o){var u=o.call(r,t||"default");if("object"!==e(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}module.exports=r,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./typeof.js":"xOn8"}],"BCa3":[function(require,module,exports) {
var e=require("./typeof.js").default,r=require("./toPrimitive.js");function o(o){var t=r(o,"string");return"symbol"===e(t)?t:String(t)}module.exports=o,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./typeof.js":"xOn8","./toPrimitive.js":"NZya"}],"cQfh":[function(require,module,exports) {
var e=require("./toPropertyKey.js");function r(r,o,t){return(o=e(o))in r?Object.defineProperty(r,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[o]=t,r}module.exports=r,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./toPropertyKey.js":"BCa3"}],"HYXJ":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.EffectScope=void 0,exports.computed=Ee,exports.customRef=_e,exports.default=Bi,exports.defineAsyncComponent=Xr,exports.defineComponent=go,exports.del=Xt,exports.effectScope=zn,exports.getCurrentInstance=yt,exports.getCurrentScope=Kn,exports.h=Dr,exports.inject=Pr,exports.isProxy=ae,exports.isReactive=re,exports.isReadonly=ie,exports.isRef=fe,exports.isShallow=oe,exports.markRaw=ce,exports.mergeDefaults=Sn,exports.nextTick=Zr,exports.onDeactivated=exports.onBeforeUpdate=exports.onBeforeUnmount=exports.onBeforeMount=exports.onActivated=void 0,exports.onErrorCaptured=ho,exports.onRenderTriggered=exports.onRenderTracked=exports.onMounted=void 0,exports.onScopeDispose=Jn,exports.onUpdated=exports.onUnmounted=exports.onServerPrefetch=void 0,exports.provide=Mr,exports.proxyRefs=ge,exports.reactive=te,exports.readonly=Oe,exports.ref=pe,exports.set=Yt,exports.shallowReactive=ee,exports.shallowReadonly=je,exports.shallowRef=de,exports.toRaw=se,exports.toRef=xe,exports.toRefs=be,exports.triggerRef=he,exports.unref=me,exports.useAttrs=wn,exports.useCssModule=Gr,exports.useCssVars=Yr,exports.useListeners=Cn,exports.useSlots=$n,exports.version=void 0,exports.watch=jr,exports.watchEffect=Sr,exports.watchPostEffect=Or,exports.watchSyncEffect=Tr;var e=Object.freeze({}),n=Array.isArray;function r(t){return null==t}function o(t){return null!=t}function i(t){return!0===t}function a(t){return!1===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return"function"==typeof t}function u(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function f(t){return l.call(t).slice(8,-1)}function p(t){return"[object Object]"===l.call(t)}function d(t){return"[object RegExp]"===l.call(t)}function v(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function m(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===l?JSON.stringify(t,g,2):String(t)}function g(t,e){return e&&e.__v_isRef?e.value:e}function y(t){var e=parseFloat(t);return isNaN(e)?t:e}function _(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var b=_("slot,component",!0),x=_("key,ref,slot,slot-scope,is");function $(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function C(t,e){return w.call(t,e)}function k(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var S=/-(\w)/g,O=k(function(t){return t.replace(S,function(t,e){return e?e.toUpperCase():""})}),T=k(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),A=/\B([A-Z])/g,j=k(function(t){return t.replace(A,"-$1").toLowerCase()});function E(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function M(t,e){return t.bind(e)}var N=Function.prototype.bind?M:E;function P(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function D(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n<t.length;n++)t[n]&&D(e,t[n]);return e}function L(t,e,n){}var R=function(t,e,n){return!1},F=function(t){return t};function U(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function B(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var o=Array.isArray(t),i=Array.isArray(e);if(o&&i)return t.length===e.length&&t.every(function(t,n){return B(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(o||i)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every(function(n){return B(t[n],e[n])})}catch(c){return!1}}function H(t,e){for(var n=0;n<t.length;n++)if(B(t[n],e))return n;return-1}function z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function V(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var K="data-server-rendered",J=["component","directive","filter"],q=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],W={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:L,parsePlatformTagName:F,mustUseProp:R,async:!0,_lifecycleHooks:q},Z=/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 G(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function Y(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var X=new RegExp("[^".concat(Z.source,".$_\\d]"));function Q(t){if(!X.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var tt="__proto__"in{},et="undefined"!=typeof window,nt=et&&window.navigator.userAgent.toLowerCase(),rt=nt&&/msie|trident/.test(nt),ot=nt&&nt.indexOf("msie 9.0")>0,it=nt&&nt.indexOf("edge/")>0;nt&&nt.indexOf("android");var at=nt&&/iphone|ipad|ipod|ios/.test(nt);nt&&/chrome\/\d+/.test(nt),nt&&/phantomjs/.test(nt);var st,ct=nt&&nt.match(/firefox\/(\d+)/),ut={}.watch,lt=!1;if(et)try{var ft={};Object.defineProperty(ft,"passive",{get:function(){lt=!0}}),window.addEventListener("test-passive",null,ft)}catch(Np){}var pt=function(){return void 0===st&&(st=!et&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),st},dt=et&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function vt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ht,mt="undefined"!=typeof Symbol&&vt(Symbol)&&"undefined"!=typeof Reflect&&vt(Reflect.ownKeys);ht="undefined"!=typeof Set&&vt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var gt=null;function yt(){return gt&&{proxy:gt}}function _t(t){void 0===t&&(t=null),t||gt&&gt._scope.off(),gt=t,t&&t._scope.on()}var bt,xt,$t,wt,Ct,kt,St,Ot,Tt=function(){function t(t,e,n,r,o,i,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,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=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),At=function(t){void 0===t&&(t="");var e=new Tt;return e.text=t,e.isComment=!0,e};function jt(t){return new Tt(void 0,void 0,void 0,String(t))}function Et(t){var e=new Tt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Nt=0,Pt=[],Dt=function(){for(var t=0;t<Pt.length;t++){var e=Pt[t];e.subs=e.subs.filter(function(t){return t}),e._pending=!1}Pt.length=0},It=function(){function t(){this._pending=!1,this.id=Nt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,Pt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter(function(t){return t});for(var n=0,r=e.length;n<r;n++){var o=e[n];0,o.update()}},t}();It.target=null;var Lt=[];function Rt(t){Lt.push(t),It.target=t}function Ft(){Lt.pop(),It.target=Lt[Lt.length-1]}var Ut=Array.prototype,Bt=Object.create(Ut),Ht=["push","pop","shift","unshift","splice","sort","reverse"];Ht.forEach(function(t){var e=Ut[t];Y(Bt,t,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o,i=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&a.observeArray(o),a.dep.notify(),i})});var zt=Object.getOwnPropertyNames(Bt),Vt={},Kt=!0;function Jt(t){Kt=t}var qt={notify:L,depend:L,addSub:L,removeSub:L},Wt=function(){function t(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!1),this.value=t,this.shallow=e,this.mock=r,this.dep=r?qt:new It,this.vmCount=0,Y(t,"__ob__",this),n(t)){if(!r)if(tt)t.__proto__=Bt;else for(var o=0,i=zt.length;o<i;o++){Y(t,s=zt[o],Bt[s])}e||this.observeArray(t)}else{var a=Object.keys(t);for(o=0;o<a.length;o++){var s;Gt(t,s=a[o],Vt,void 0,e,r)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Zt(t[e],!1,this.mock)},t}();function Zt(t,e,r){return t&&C(t,"__ob__")&&t.__ob__ instanceof Wt?t.__ob__:!Kt||!r&&pt()||!n(t)&&!p(t)||!Object.isExtensible(t)||t.__v_skip||fe(t)||t instanceof Tt?void 0:new Wt(t,e,r)}function Gt(t,e,r,o,i,a,s){void 0===s&&(s=!1);var c=new It,u=Object.getOwnPropertyDescriptor(t,e);if(!u||!1!==u.configurable){var l=u&&u.get,f=u&&u.set;l&&!f||r!==Vt&&2!==arguments.length||(r=t[e]);var p=i?r&&r.__ob__:Zt(r,!1,a);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=l?l.call(t):r;return It.target&&(c.depend(),p&&(p.dep.depend(),n(e)&&Qt(e))),fe(e)&&!i?e.value:e},set:function(e){var n=l?l.call(t):r;if(V(n,e)){if(f)f.call(t,e);else{if(l)return;if(!i&&fe(n)&&!fe(e))return void(n.value=e);r=e}p=i?e&&e.__ob__:Zt(e,!1,a),c.notify()}}}),c}}function Yt(t,e,r){if(!ie(t)){var o=t.__ob__;return n(t)&&v(e)?(t.length=Math.max(t.length,e),t.splice(e,1,r),o&&!o.shallow&&o.mock&&Zt(r,!1,!0),r):e in t&&!(e in Object.prototype)?(t[e]=r,r):t._isVue||o&&o.vmCount?r:o?(Gt(o.value,e,r,void 0,o.shallow,o.mock),o.dep.notify(),r):(t[e]=r,r)}}function Xt(t,e){if(n(t)&&v(e))t.splice(e,1);else{var r=t.__ob__;t._isVue||r&&r.vmCount||ie(t)||C(t,e)&&(delete t[e],r&&r.dep.notify())}}function Qt(t){for(var e=void 0,r=0,o=t.length;r<o;r++)(e=t[r])&&e.__ob__&&e.__ob__.dep.depend(),n(e)&&Qt(e)}function te(t){return ne(t,!1),t}function ee(t){return ne(t,!0),Y(t,"__v_isShallow",!0),t}function ne(t,e){if(!ie(t)){Zt(t,e,pt());0}}function re(t){return ie(t)?re(t.__v_raw):!(!t||!t.__ob__)}function oe(t){return!(!t||!t.__v_isShallow)}function ie(t){return!(!t||!t.__v_isReadonly)}function ae(t){return re(t)||ie(t)}function se(t){var e=t&&t.__v_raw;return e?se(e):t}function ce(t){return Object.isExtensible(t)&&Y(t,"__v_skip",!0),t}function ue(t){var e=f(t);return"Map"===e||"WeakMap"===e||"Set"===e||"WeakSet"===e}var le="__v_isRef";function fe(t){return!(!t||!0!==t.__v_isRef)}function pe(t){return ve(t,!1)}function de(t){return ve(t,!0)}function ve(t,e){if(fe(t))return t;var n={};return Y(n,le,!0),Y(n,"__v_isShallow",e),Y(n,"dep",Gt(n,"value",t,null,e,pt())),n}function he(t){t.dep&&t.dep.notify()}function me(t){return fe(t)?t.value:t}function ge(t){if(re(t))return t;for(var e={},n=Object.keys(t),r=0;r<n.length;r++)ye(e,t,n[r]);return e}function ye(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(fe(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];fe(r)&&!fe(t)?r.value=t:e[n]=t}})}function _e(t){var e=new It,n=t(function(){e.depend()},function(){e.notify()}),r=n.get,o=n.set,i={get value(){return r()},set value(t){o(t)}};return Y(i,le,!0),i}function be(t){var e=n(t)?new Array(t.length):{};for(var r in t)e[r]=xe(t,r);return e}function xe(t,e,n){var r=t[e];if(fe(r))return r;var o={get value(){var r=t[e];return void 0===r?n:r},set value(n){t[e]=n}};return Y(o,le,!0),o}var $e,we,Ce,ke="__v_rawToReadonly",Se="__v_rawToShallowReadonly";function Oe(t){return Te(t,!1)}function Te(t,e){if(!p(t))return t;if(ie(t))return t;var n=e?Se:ke,r=t[n];if(r)return r;var o=Object.create(Object.getPrototypeOf(t));Y(t,n,o),Y(o,"__v_isReadonly",!0),Y(o,"__v_raw",t),fe(t)&&Y(o,le,!0),(e||oe(t))&&Y(o,"__v_isShallow",!0);for(var i=Object.keys(t),a=0;a<i.length;a++)Ae(o,t,i[a],e);return o}function Ae(t,e,n,r){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];return r||!p(t)?t:Oe(t)},set:function(){}})}function je(t){return Te(t,!0)}function Ee(t,e){var n,r,o=c(t);o?(n=t,r=L):(n=t.get,r=t.set);var i=pt()?null:new $o(gt,n,L,{lazy:!0});var a={effect:i,get value(){return i?(i.dirty&&i.evaluate(),It.target&&i.depend(),i.value):n()},set value(t){r(t)}};return Y(a,le,!0),Y(a,"__v_isReadonly",o),a}var Me=k(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}});function Ne(t,e){function r(){var t=r.fns;if(!n(t))return Lr(t,null,arguments,e,"v-on handler");for(var o=t.slice(),i=0;i<o.length;i++)Lr(o[i],null,arguments,e,"v-on handler")}return r.fns=t,r}function Pe(t,e,n,o,a,s){var c,u,l,f;for(c in t)u=t[c],l=e[c],f=Me(c),r(u)||(r(l)?(r(u.fns)&&(u=t[c]=Ne(u,s)),i(f.once)&&(u=t[c]=a(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,t[c]=l));for(c in e)r(t[c])&&o((f=Me(c)).name,e[c],f.capture)}function De(t,e,n){var a;t instanceof Tt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function c(){n.apply(this,arguments),$(a.fns,c)}r(s)?a=Ne([c]):o(s.fns)&&i(s.merged)?(a=s).fns.push(c):a=Ne([s,c]),a.merged=!0,t[e]=a}function Ie(t,e,n){var i=e.options.props;if(!r(i)){var a={},s=t.attrs,c=t.props;if(o(s)||o(c))for(var u in i){var l=j(u);Le(a,c,u,l,!0)||Le(a,s,u,l,!1)}return a}}function Le(t,e,n,r,i){if(o(e)){if(C(e,n))return t[n]=e[n],i||delete e[n],!0;if(C(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function Re(t){for(var e=0;e<t.length;e++)if(n(t[e]))return Array.prototype.concat.apply([],t);return t}function Fe(t){return s(t)?[jt(t)]:n(t)?Be(t):void 0}function Ue(t){return o(t)&&o(t.text)&&a(t.isComment)}function Be(t,e){var a,c,u,l,f=[];for(a=0;a<t.length;a++)r(c=t[a])||"boolean"==typeof c||(l=f[u=f.length-1],n(c)?c.length>0&&(Ue((c=Be(c,"".concat(e||"","_").concat(a)))[0])&&Ue(l)&&(f[u]=jt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):s(c)?Ue(l)?f[u]=jt(l.text+c):""!==c&&f.push(jt(c)):Ue(c)&&Ue(l)?f[u]=jt(l.text+c.text):(i(t._isVList)&&o(c.tag)&&r(c.key)&&o(e)&&(c.key="__vlist".concat(e,"_").concat(a,"__")),f.push(c)));return f}var He=1,ze=2;function Ve(t,e,r,o,a,c){return(n(r)||s(r))&&(a=o,o=r,r=void 0),i(c)&&(a=ze),Ke(t,e,r,o,a)}function Ke(t,e,r,i,a){if(o(r)&&o(r.__ob__))return At();if(o(r)&&o(r.is)&&(e=r.is),!e)return At();var s,u;if(n(i)&&c(i[0])&&((r=r||{}).scopedSlots={default:i[0]},i.length=0),a===ze?i=Fe(i):a===He&&(i=Re(i)),"string"==typeof e){var l=void 0;u=t.$vnode&&t.$vnode.ns||W.getTagNamespace(e),s=W.isReservedTag(e)?new Tt(W.parsePlatformTagName(e),r,i,void 0,void 0,t):r&&r.pre||!o(l=Si(t.$options,"components",e))?new Tt(e,r,i,void 0,void 0,t):Qo(l,r,t,i,e)}else s=Qo(e,r,t,i);return n(s)?s:o(s)?(o(u)&&Je(s,u),o(r)&&qe(r),s):At()}function Je(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),o(t.children))for(var a=0,s=t.children.length;a<s;a++){var c=t.children[a];o(c.tag)&&(r(c.ns)||i(n)&&"svg"!==c.tag)&&Je(c,e,n)}}function qe(t){u(t.style)&&_o(t.style),u(t.class)&&_o(t.class)}function We(t,e){var r,i,a,s,c=null;if(n(t)||"string"==typeof t)for(c=new Array(t.length),r=0,i=t.length;r<i;r++)c[r]=e(t[r],r);else if("number"==typeof t)for(c=new Array(t),r=0;r<t;r++)c[r]=e(r+1,r);else if(u(t))if(mt&&t[Symbol.iterator]){c=[];for(var l=t[Symbol.iterator](),f=l.next();!f.done;)c.push(e(f.value,c.length)),f=l.next()}else for(a=Object.keys(t),c=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],c[r]=e(t[s],s,r);return o(c)||(c=[]),c._isVList=!0,c}function Ze(t,e,n,r){var o,i=this.$scopedSlots[t];i?(n=n||{},r&&(n=D(D({},r),n)),o=i(n)||(c(e)?e():e)):o=this.$slots[t]||(c(e)?e():e);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function Ge(t){return Si(this.$options,"filters",t,!0)||F}function Ye(t,e){return n(t)?-1===t.indexOf(e):t!==e}function Xe(t,e,n,r,o){var i=W.keyCodes[e]||n;return o&&r&&!W.keyCodes[e]?Ye(o,r):i?Ye(i,t):r?j(r)!==e:void 0===t}function Qe(t,e,r,o,i){if(r)if(u(r)){n(r)&&(r=I(r));var a=void 0,s=function(n){if("class"===n||"style"===n||x(n))a=t;else{var s=t.attrs&&t.attrs.type;a=o||W.mustUseProp(e,s,n)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=O(n),u=j(n);c in a||u in a||(a[n]=r[n],i&&((t.on||(t.on={}))["update:".concat(n)]=function(t){r[n]=t}))};for(var c in r)s(c)}else;return t}function tn(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(nn(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r)}function en(t,e,n){return nn(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function nn(t,e,r){if(n(t))for(var o=0;o<t.length;o++)t[o]&&"string"!=typeof t[o]&&rn(t[o],"".concat(e,"_").concat(o),r);else rn(t,e,r)}function rn(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function on(t,e){if(e)if(p(e)){var n=t.on=t.on?D({},t.on):{};for(var r in e){var o=n[r],i=e[r];n[r]=o?[].concat(o,i):i}}else;return t}function an(t,e,r,o){e=e||{$stable:!r};for(var i=0;i<t.length;i++){var a=t[i];n(a)?an(a,e,r):a&&(a.proxy&&(a.fn.proxy=!0),e[a.key]=a.fn)}return o&&(e.$key=o),e}function sn(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function cn(t,e){return"string"==typeof t?e+t:t}function un(t){t._o=en,t._n=y,t._s=m,t._l=We,t._t=Ze,t._q=B,t._i=H,t._m=tn,t._f=Ge,t._k=Xe,t._b=Qe,t._v=jt,t._e=At,t._u=an,t._g=on,t._d=sn,t._p=cn}function ln(t,e){if(!t||!t.length)return{};for(var n={},r=0,o=t.length;r<o;r++){var i=t[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==e&&i.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(i);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}for(var u in n)n[u].every(fn)&&delete n[u];return n}function fn(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pn(t){return t.isComment&&t.asyncFactory}function dn(t,n,r,o){var i,a=Object.keys(r).length>0,s=n?!!n.$stable:!a,c=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&o&&o!==e&&c===o.$key&&!a&&!o.$hasNormal)return o;for(var u in i={},n)n[u]&&"$"!==u[0]&&(i[u]=vn(t,r,u,n[u]))}else i={};for(var l in r)l in i||(i[l]=hn(r,l));return n&&Object.isExtensible(n)&&(n._normalized=i),Y(i,"$stable",s),Y(i,"$key",c),Y(i,"$hasNormal",a),i}function vn(t,e,r,o){var i=function(){var e=gt;_t(t);var r=arguments.length?o.apply(null,arguments):o({}),i=(r=r&&"object"==typeof r&&!n(r)?[r]:Fe(r))&&r[0];return _t(e),r&&(!i||1===r.length&&i.isComment&&!pn(i))?void 0:r};return o.proxy&&Object.defineProperty(e,r,{get:i,enumerable:!0,configurable:!0}),i}function hn(t,e){return function(){return t[e]}}function mn(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=gn(t);_t(t),Rt();var o=Lr(n,null,[t._props||ee({}),r],t,"setup");if(Ft(),_t(),c(o))e.render=o;else if(u(o))if(t._setupState=o,o.__sfc){var i=t._setupProxy={};for(var a in o)"__sfc"!==a&&ye(i,o,a)}else for(var a in o)G(a)||ye(t,o,a);else 0}}function gn(t){return{get attrs(){if(!t._attrsProxy){var n=t._attrsProxy={};Y(n,"_v_attr_proxy",!0),yn(n,t.$attrs,e,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||yn(t._listenersProxy={},t.$listeners,e,t,"$listeners");return t._listenersProxy},get slots(){return bn(t)},emit:N(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(n){return ye(t,e,n)})}}}function yn(t,e,n,r,o){var i=!1;for(var a in e)a in t?e[a]!==n[a]&&(i=!0):(i=!0,_n(t,a,r,o));for(var a in t)a in e||(i=!0,delete t[a]);return i}function _n(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function bn(t){return t._slotsProxy||xn(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function xn(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function $n(){return kn().slots}function wn(){return kn().attrs}function Cn(){return kn().listeners}function kn(){var t=gt;return t._setupContext||(t._setupContext=gn(t))}function Sn(t,e){var r=n(t)?t.reduce(function(t,e){return t[e]={},t},{}):t;for(var o in e){var i=r[o];i?n(i)||c(i)?r[o]={type:i,default:e[o]}:i.default=e[o]:null===i&&(r[o]={default:e[o]})}return r}function On(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,o=r&&r.context;t.$slots=ln(n._renderChildren,o),t.$scopedSlots=r?dn(t.$parent,r.data.scopedSlots,t.$slots):e,t._c=function(e,n,r,o){return Ve(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Ve(t,e,n,r,o,!0)};var i=r&&r.data;Gt(t,"$attrs",i&&i.attrs||e,null,!0),Gt(t,"$listeners",n._parentListeners||e,null,!0)}var Tn,An,jn=null;function En(t){un(t.prototype),t.prototype.$nextTick=function(t){return Zr(t,this)},t.prototype._render=function(){var t=this,e=t.$options,r=e.render,o=e._parentVnode;o&&t._isMounted&&(t.$scopedSlots=dn(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&xn(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;var i,a=gt,s=jn;try{_t(t),jn=t,i=r.call(t._renderProxy,t.$createElement)}catch(Np){Ir(Np,t,"render"),i=t._vnode}finally{jn=s,_t(a)}return n(i)&&1===i.length&&(i=i[0]),i instanceof Tt||(i=At()),i.parent=o,i}}function Mn(t,e){return(t.__esModule||mt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function Nn(t,e,n,r,o){var i=At();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function Pn(t,e){if(i(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=jn;if(n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),i(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var a=t.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",function(){return $(a,n)});var f=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},p=z(function(n){t.resolved=Mn(n,e),s?a.length=0:f(!0)}),d=z(function(e){o(t.errorComp)&&(t.error=!0,f(!0))}),v=t(p,d);return u(v)&&(h(v)?r(t.resolved)&&v.then(p,d):h(v.component)&&(v.component.then(p,d),o(v.error)&&(t.errorComp=Mn(v.error,e)),o(v.loading)&&(t.loadingComp=Mn(v.loading,e),0===v.delay?t.loading=!0:c=setTimeout(function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,f(!1))},v.delay||200)),o(v.timeout)&&(l=setTimeout(function(){l=null,r(t.resolved)&&d(null)},v.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function Dn(t){if(n(t))for(var e=0;e<t.length;e++){var r=t[e];if(o(r)&&(o(r.componentOptions)||pn(r)))return r}}function In(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Un(t,e)}function Ln(t,e){Tn.$on(t,e)}function Rn(t,e){Tn.$off(t,e)}function Fn(t,e){var n=Tn;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function Un(t,e,n){Tn=t,Pe(e,n||{},Ln,Rn,Fn,t),Tn=void 0}function Bn(t){var e=/^hook:/;t.prototype.$on=function(t,r){var o=this;if(n(t))for(var i=0,a=t.length;i<a;i++)o.$on(t[i],r);else(o._events[t]||(o._events[t]=[])).push(r),e.test(t)&&(o._hasHookEvent=!0);return o},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(n(t)){for(var o=0,i=t.length;o<i;o++)r.$off(t[o],e);return r}var a,s=r._events[t];if(!s)return r;if(!e)return r._events[t]=null,r;for(var c=s.length;c--;)if((a=s[c])===e||a.fn===e){s.splice(c,1);break}return r},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?P(n):n;for(var r=P(arguments,1),o='event handler for "'.concat(t,'"'),i=0,a=n.length;i<a;i++)Lr(n[i],e,r,e,o)}return e}}var Hn=exports.EffectScope=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=An,!t&&An&&(this.index=(An.scopes||(An.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=An;try{return An=this,t()}finally{An=e}}else 0},t.prototype.on=function(){An=this},t.prototype.off=function(){An=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();function zn(t){return new Hn(t)}function Vn(t,e){void 0===e&&(e=An),e&&e.active&&e.effects.push(t)}function Kn(){return An}function Jn(t){An&&An.cleanups.push(t)}var qn=null,Wn=!1;function Zn(t){var e=qn;return qn=t,function(){qn=e}}function Gn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Yn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,o=n._vnode,i=Zn(n);n._vnode=t,n.$el=o?n.__patch__(o,t):n.__patch__(n.$el,t,e,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var a=n;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){rr(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||$(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),rr(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Xn(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=At),rr(t,"beforeMount"),r=function(){t._update(t._render(),n)};var o={before:function(){t._isMounted&&!t._isDestroyed&&rr(t,"beforeUpdate")}};new $o(t,r,L,o,!0),n=!1;var i=t._preWatchers;if(i)for(var a=0;a<i.length;a++)i[a].run();return null==t.$vnode&&(t._isMounted=!0,rr(t,"mounted")),t}function Qn(t,n,r,o,i){var a=o.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==e&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),u=!!(i||t.$options._renderChildren||c),l=t.$vnode;t.$options._parentVnode=o,t.$vnode=o,t._vnode&&(t._vnode.parent=o),t.$options._renderChildren=i;var f=o.data.attrs||e;t._attrsProxy&&yn(t._attrsProxy,f,l.data&&l.data.attrs||e,t,"$attrs")&&(u=!0),t.$attrs=f,r=r||e;var p=t.$options._parentListeners;if(t._listenersProxy&&yn(t._listenersProxy,r,p||e,t,"$listeners"),t.$listeners=t.$options._parentListeners=r,Un(t,r,p),n&&t.$options.props){Jt(!1);for(var d=t._props,v=t.$options._propKeys||[],h=0;h<v.length;h++){var m=v[h],g=t.$options.props;d[m]=Oi(m,g,n,t)}Jt(!0),t.$options.propsData=n}u&&(t.$slots=ln(i,o.context),t.$forceUpdate())}function tr(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function er(t,e){if(e){if(t._directInactive=!1,tr(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)er(t.$children[n]);rr(t,"activated")}}function nr(t,e){if(!(e&&(t._directInactive=!0,tr(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)nr(t.$children[n]);rr(t,"deactivated")}}function rr(t,e,n,r){void 0===r&&(r=!0),Rt();var o=gt,i=Kn();r&&_t(t);var a=t.$options[e],s="".concat(e," hook");if(a)for(var c=0,u=a.length;c<u;c++)Lr(a[c],t,n||null,t,s);t._hasHookEvent&&t.$emit("hook:"+e),r&&(_t(o),i&&i.on()),Ft()}var or=100,ir=[],ar=[],sr={},cr={},ur=!1,lr=!1,fr=0;function pr(){fr=ir.length=ar.length=0,sr={},ur=lr=!1}var dr=0,vr=Date.now;if(et&&!rt){var hr=window.performance;hr&&"function"==typeof hr.now&&vr()>document.createEvent("Event").timeStamp&&(vr=function(){return hr.now()})}var mr=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function gr(){var t,e;for(dr=vr(),lr=!0,ir.sort(mr),fr=0;fr<ir.length;fr++)(t=ir[fr]).before&&t.before(),e=t.id,sr[e]=null,t.run();var n=ar.slice(),r=ir.slice();pr(),br(n),yr(r),Dt(),dt&&W.devtools&&dt.emit("flush")}function yr(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&rr(r,"updated")}}function _r(t){t._inactive=!1,ar.push(t)}function br(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,er(t[e],!0)}function xr(t){var e=t.id;if(null==sr[e]&&(t!==It.target||!t.noRecurse)){if(sr[e]=!0,lr){for(var n=ir.length-1;n>fr&&ir[n].id>t.id;)n--;ir.splice(n+1,0,t)}else ir.push(t);ur||(ur=!0,Zr(gr))}}var $r="watcher",wr="".concat($r," callback"),Cr="".concat($r," getter"),kr="".concat($r," cleanup");function Sr(t,e){return Er(t,null,e)}function Or(t,e){return Er(t,null,{flush:"post"})}function Tr(t,e){return Er(t,null,{flush:"sync"})}var Ar={};function jr(t,e,n){return Er(t,e,n)}function Er(t,r,o){var i=void 0===o?e:o,a=i.immediate,s=i.deep,u=i.flush,l=void 0===u?"pre":u;i.onTrack,i.onTrigger;var f,p,d=gt,v=function(t,e,n){void 0===n&&(n=null);var r=Lr(t,null,n,d,e);return s&&r&&r.__ob__&&r.__ob__.dep.depend(),r},h=!1,m=!1;if(fe(t)?(f=function(){return t.value},h=oe(t)):re(t)?(f=function(){return t.__ob__.dep.depend(),t},s=!0):n(t)?(m=!0,h=t.some(function(t){return re(t)||oe(t)}),f=function(){return t.map(function(t){return fe(t)?t.value:re(t)?(t.__ob__.dep.depend(),_o(t)):c(t)?v(t,Cr):void 0})}):f=c(t)?r?function(){return v(t,Cr)}:function(){if(!d||!d._isDestroyed)return p&&p(),v(t,$r,[y])}:L,r&&s){var g=f;f=function(){return _o(g())}}var y=function(t){p=_.onStop=function(){v(t,kr)}};if(pt())return y=L,r?a&&v(r,wr,[f(),m?[]:void 0,y]):f(),L;var _=new $o(gt,f,L,{lazy:!0});_.noRecurse=!r;var b=m?[]:Ar;return _.run=function(){if(_.active)if(r){var t=_.get();(s||h||(m?t.some(function(t,e){return V(t,b[e])}):V(t,b)))&&(p&&p(),v(r,wr,[t,b===Ar?void 0:b,y]),b=t)}else _.get()},"sync"===l?_.update=_.run:"post"===l?(_.post=!0,_.update=function(){return xr(_)}):_.update=function(){if(d&&d===gt&&!d._isMounted){var t=d._preWatchers||(d._preWatchers=[]);t.indexOf(_)<0&&t.push(_)}else xr(_)},r?a?_.run():b=_.get():"post"===l&&d?d.$once("hook:mounted",function(){return _.get()}):_.get(),function(){_.teardown()}}function Mr(t,e){gt&&(Nr(gt)[t]=e)}function Nr(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}function Pr(t,e,n){void 0===n&&(n=!1);var r=gt;if(r){var o=r.$parent&&r.$parent._provided;if(o&&t in o)return o[t];if(arguments.length>1)return n&&c(e)?e.call(r):e}else 0}function Dr(t,e,n){return Ve(gt,t,e,n,2,!0)}function Ir(t,e,n){Rt();try{if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,t,e,n))return}catch(Np){Rr(Np,r,"errorCaptured hook")}}Rr(t,e,n)}finally{Ft()}}function Lr(t,e,n,r,o){var i;try{(i=n?t.apply(e,n):t.call(e))&&!i._isVue&&h(i)&&!i._handled&&(i.catch(function(t){return Ir(t,r,o+" (Promise/async)")}),i._handled=!0)}catch(Np){Ir(Np,r,o)}return i}function Rr(t,e,n){if(W.errorHandler)try{return W.errorHandler.call(null,t,e,n)}catch(Np){Np!==t&&Fr(Np,null,"config.errorHandler")}Fr(t,e,n)}function Fr(t,e,n){if(!et||"undefined"==typeof console)throw t;console.error(t)}var Ur,Br=!1,Hr=[],zr=!1;function Vr(){zr=!1;var t=Hr.slice(0);Hr.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&vt(Promise)){var Kr=Promise.resolve();Ur=function(){Kr.then(Vr),at&&setTimeout(L)},Br=!0}else if(rt||"undefined"==typeof MutationObserver||!vt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ur="undefined"!=typeof setImmediate&&vt(setImmediate)?function(){setImmediate(Vr)}:function(){setTimeout(Vr,0)};else{var Jr=1,qr=new MutationObserver(Vr),Wr=document.createTextNode(String(Jr));qr.observe(Wr,{characterData:!0}),Ur=function(){Jr=(Jr+1)%2,Wr.data=String(Jr)},Br=!0}function Zr(t,e){var n;if(Hr.push(function(){if(t)try{t.call(e)}catch(Np){Ir(Np,e,"nextTick")}else n&&n(e)}),zr||(zr=!0,Ur()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}function Gr(t){if(void 0===t&&(t="$style"),!gt)return e;var n=gt[t];return n||e}function Yr(t){if(et){var e=gt;e&&Or(function(){var n=e.$el,r=t(e,e._setupProxy);if(n&&1===n.nodeType){var o=n.style;for(var i in r)o.setProperty("--".concat(i),r[i])}})}}function Xr(t){c(t)&&(t={loader:t});var e=t.loader,n=t.loadingComponent,r=t.errorComponent,o=t.delay,i=void 0===o?200:o,a=t.timeout,s=(t.suspensible,t.onError);var u=null,l=0,f=function(){var t;return u||(t=u=e().catch(function(t){if(t=t instanceof Error?t:new Error(String(t)),s)return new Promise(function(e,n){s(t,function(){return e((l++,u=null,f()))},function(){return n(t)},l+1)});throw t}).then(function(e){return t!==u&&u?u:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e)}))};return function(){return{component:f(),delay:i,timeout:a,error:r,loading:n}}}function Qr(t){return function(e,n){if(void 0===n&&(n=gt),n)return eo(n,t,e)}}function to(t){return"beforeDestroy"===t?t="beforeUnmount":"destroyed"===t&&(t="unmounted"),"on".concat(t[0].toUpperCase()+t.slice(1))}function eo(t,e,n){var r=t.$options;r[e]=hi(r[e],n)}var no=exports.onBeforeMount=Qr("beforeMount"),ro=exports.onMounted=Qr("mounted"),oo=exports.onBeforeUpdate=Qr("beforeUpdate"),io=exports.onUpdated=Qr("updated"),ao=exports.onBeforeUnmount=Qr("beforeDestroy"),so=exports.onUnmounted=Qr("destroyed"),co=exports.onActivated=Qr("activated"),uo=exports.onDeactivated=Qr("deactivated"),lo=exports.onServerPrefetch=Qr("serverPrefetch"),fo=exports.onRenderTracked=Qr("renderTracked"),po=exports.onRenderTriggered=Qr("renderTriggered"),vo=Qr("errorCaptured");function ho(t,e){void 0===e&&(e=gt),vo(t,e)}var mo=exports.version="2.7.16";function go(t){return t}var yo=new ht;function _o(t){return bo(t,yo),yo.clear(),t}function bo(t,e){var r,o,i=n(t);if(!(!i&&!u(t)||t.__v_skip||Object.isFrozen(t)||t instanceof Tt)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(i)for(r=t.length;r--;)bo(t[r],e);else if(fe(t))bo(t.value,e);else for(r=(o=Object.keys(t)).length;r--;)bo(t[o[r]],e)}}var xo=0,$o=function(){function t(t,e,n,r,o){Vn(this,An&&!An._vm?An:t?t._scope:void 0),(this.vm=t)&&o&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++xo,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="",c(e)?this.getter=e:(this.getter=Q(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;Rt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Np){if(!this.user)throw Np;Ir(Np,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&_o(t),Ft(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():xr(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');Lr(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&$(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}(),wo={enumerable:!0,configurable:!0,get:L,set:L};function Co(t,e,n){wo.get=function(){return this[e][n]},wo.set=function(t){this[e][n]=t},Object.defineProperty(t,n,wo)}function ko(t){var e=t.$options;if(e.props&&So(t,e.props),mn(t),e.methods&&Po(t,e.methods),e.data)Oo(t);else{var n=Zt(t._data={});n&&n.vmCount++}e.computed&&jo(t,e.computed),e.watch&&e.watch!==ut&&Do(t,e.watch)}function So(t,e){var n=t.$options.propsData||{},r=t._props=ee({}),o=t.$options._propKeys=[],i=!t.$parent;i||Jt(!1);var a=function(i){o.push(i);var a=Oi(i,e,n,t);Gt(r,i,a,void 0,!0),i in t||Co(t,"_props",i)};for(var s in e)a(s);Jt(!0)}function Oo(t){var e=t.$options.data;p(e=t._data=c(e)?To(e,t):e||{})||(e={});for(var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);o--;){var i=n[o];0,r&&C(r,i)||G(i)||Co(t,"_data",i)}var a=Zt(e);a&&a.vmCount++}function To(t,e){Rt();try{return t.call(e,e)}catch(Np){return Ir(Np,e,"data()"),{}}finally{Ft()}}var Ao={lazy:!0};function jo(t,e){var n=t._computedWatchers=Object.create(null),r=pt();for(var o in e){var i=e[o],a=c(i)?i:i.get;0,r||(n[o]=new $o(t,a||L,L,Ao)),o in t||Eo(t,o,i)}}function Eo(t,e,n){var r=!pt();c(n)?(wo.get=r?Mo(e):No(n),wo.set=L):(wo.get=n.get?r&&!1!==n.cache?Mo(e):No(n.get):L,wo.set=n.set||L),Object.defineProperty(t,e,wo)}function Mo(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),It.target&&e.depend(),e.value}}function No(t){return function(){return t.call(this,this)}}function Po(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?L:N(e[n],t)}function Do(t,e){for(var r in e){var o=e[r];if(n(o))for(var i=0;i<o.length;i++)Io(t,r,o[i]);else Io(t,r,o)}}function Io(t,e,n,r){return p(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function Lo(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Yt,t.prototype.$delete=Xt,t.prototype.$watch=function(t,e,n){if(p(e))return Io(this,t,e,n);(n=n||{}).user=!0;var r=new $o(this,t,e,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Rt(),Lr(e,this,[r.value],this,o),Ft()}return function(){r.teardown()}}}function Ro(t){var e=t.$options.provide;if(e){var n=c(e)?e.call(t):e;if(!u(n))return;for(var r=Nr(t),o=mt?Reflect.ownKeys(n):Object.keys(n),i=0;i<o.length;i++){var a=o[i];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}function Fo(t){var e=Uo(t.$options.inject,t);e&&(Jt(!1),Object.keys(e).forEach(function(n){Gt(t,n,e[n])}),Jt(!0))}function Uo(t,e){if(t){for(var n=Object.create(null),r=mt?Reflect.ownKeys(t):Object.keys(t),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var a=t[i].from;if(a in e._provided)n[i]=e._provided[a];else if("default"in t[i]){var s=t[i].default;n[i]=c(s)?s.call(e):s}else 0}}return n}}var Bo=0;function Ho(t){t.prototype._init=function(t){var e=this;e._uid=Bo++,e._isVue=!0,e.__v_skip=!0,e._scope=new Hn(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?zo(e,t):e.$options=ki(Vo(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Gn(e),In(e),On(e),rr(e,"beforeCreate",void 0,!1),Fo(e),ko(e),Ro(e),rr(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function zo(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function Vo(t){var e=t.options;if(t.super){var n=Vo(t.super);if(n!==t.superOptions){t.superOptions=n;var r=Ko(t);r&&D(t.extendOptions,r),(e=t.options=ki(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Ko(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}function Jo(t,r,o,a,s){var c,u=this,l=s.options;C(a,"_uid")?(c=Object.create(a))._original=a:(c=a,a=a._original);var f=i(l._compiled),p=!f;this.data=t,this.props=r,this.children=o,this.parent=a,this.listeners=t.on||e,this.injections=Uo(l.inject,a),this.slots=function(){return u.$slots||dn(a,t.scopedSlots,u.$slots=ln(o,a)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(a,t.scopedSlots,this.slots())}}),f&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=dn(a,t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,r,o){var i=Ve(c,t,e,r,o,p);return i&&!n(i)&&(i.fnScopeId=l._scopeId,i.fnContext=a),i}:this._c=function(t,e,n,r){return Ve(c,t,e,n,r,p)}}function qo(t,r,i,a,s){var c=t.options,u={},l=c.props;if(o(l))for(var f in l)u[f]=Oi(f,l,r||e);else o(i.attrs)&&Zo(u,i.attrs),o(i.props)&&Zo(u,i.props);var p=new Jo(i,u,s,a,t),d=c.render.call(null,p._c,p);if(d instanceof Tt)return Wo(d,i,p.parent,c,p);if(n(d)){for(var v=Fe(d)||[],h=new Array(v.length),m=0;m<v.length;m++)h[m]=Wo(v[m],i,p.parent,c,p);return h}}function Wo(t,e,n,r,o){var i=Et(t);return i.fnContext=n,i.fnOptions=r,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function Zo(t,e){for(var n in e)t[O(n)]=e[n]}function Go(t){return t.name||t.__name||t._componentTag}un(Jo.prototype);var Yo={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Yo.prepatch(n,n)}else{(t.componentInstance=ti(t,qn)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;Qn(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,rr(n,"mounted")),t.data.keepAlive&&(e._isMounted?_r(n):er(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?nr(e,!0):e.$destroy())}},Xo=Object.keys(Yo);function Qo(t,e,n,a,s){if(!r(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"==typeof t){var l;if(r(t.cid)&&void 0===(t=Pn(l=t,c)))return Nn(l,e,n,a,s);e=e||{},Vo(t),o(e.model)&&ri(t.options,e);var f=Ie(e,t,s);if(i(t.options.functional))return qo(t,f,e,n,a);var p=e.on;if(e.on=e.nativeOn,i(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}ei(e);var v=Go(t.options)||s;return new Tt("vue-component-".concat(t.cid).concat(v?"-".concat(v):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:f,listeners:p,tag:s,children:a},l)}}}function ti(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function ei(t){for(var e=t.hook||(t.hook={}),n=0;n<Xo.length;n++){var r=Xo[n],o=e[r],i=Yo[r];o===i||o&&o._merged||(e[r]=o?ni(i,o):i)}}function ni(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function ri(t,e){var r=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[r]=e.model.value;var a=e.on||(e.on={}),s=a[i],c=e.model.callback;o(s)?(n(s)?-1===s.indexOf(c):s!==c)&&(a[i]=[c].concat(s)):a[i]=c}var oi,ii,ai,si,ci,ui,li=L,fi=L,pi=W.optionMergeStrategies;function di(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var r,o,i,a=mt?Reflect.ownKeys(e):Object.keys(e),s=0;s<a.length;s++)"__ob__"!==(r=a[s])&&(o=t[r],i=e[r],n&&C(t,r)?o!==i&&p(o)&&p(i)&&di(o,i):Yt(t,r,i));return t}function vi(t,e,n){return n?function(){var r=c(e)?e.call(n,n):e,o=c(t)?t.call(n,n):t;return r?di(r,o):o}:e?t?function(){return di(c(e)?e.call(this,this):e,c(t)?t.call(this,this):t)}:e:t}function hi(t,e){var r=e?t?t.concat(e):n(e)?e:[e]:t;return r?mi(r):r}function mi(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function gi(t,e,n,r){var o=Object.create(t||null);return e?D(o,e):o}pi.data=function(t,e,n){return n?vi(t,e,n):e&&"function"!=typeof e?t:vi(t,e)},q.forEach(function(t){pi[t]=hi}),J.forEach(function(t){pi[t+"s"]=gi}),pi.watch=function(t,e,r,o){if(t===ut&&(t=void 0),e===ut&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var a in D(i,t),e){var s=i[a],c=e[a];s&&!n(s)&&(s=[s]),i[a]=s?s.concat(c):n(c)?c:[c]}return i},pi.props=pi.methods=pi.inject=pi.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return D(o,t),e&&D(o,e),o},pi.provide=function(t,e){return t?function(){var n=Object.create(null);return di(n,c(t)?t.call(this):t),e&&di(n,c(e)?e.call(this):e,!1),n}:e};var yi=function(t,e){return void 0===e?t:e};function _i(t){for(var e in t.components)bi(e)}function bi(t){new RegExp("^[a-zA-Z][\\-\\.0-9_".concat(Z.source,"]*$")).test(t)||li('Invalid component name: "'+t+'". Component names should conform to valid custom element name in html5 specification.'),(b(t)||W.isReservedTag(t))&&li("Do not use built-in or reserved HTML elements as component id: "+t)}function xi(t,e){var r=t.props;if(r){var o,i,a={};if(n(r))for(o=r.length;o--;)"string"==typeof(i=r[o])&&(a[O(i)]={type:null});else if(p(r))for(var s in r)i=r[s],a[O(s)]=p(i)?i:{type:i};else 0;t.props=a}}function $i(t,e){var r=t.inject;if(r){var o=t.inject={};if(n(r))for(var i=0;i<r.length;i++)o[r[i]]={from:r[i]};else if(p(r))for(var a in r){var s=r[a];o[a]=p(s)?D({from:a},s):{from:s}}else 0}}function wi(t){var e=t.directives;if(e)for(var n in e){var r=e[n];c(r)&&(e[n]={bind:r,update:r})}}function Ci(t,e,n){p(e)||li('Invalid value for option "'.concat(t,'": expected an Object, ')+"but got ".concat(f(e),"."),n)}function ki(t,e,n){if(c(e)&&(e=e.options),xi(e,n),$i(e,n),wi(e),!e._base&&(e.extends&&(t=ki(t,e.extends,n)),e.mixins))for(var r=0,o=e.mixins.length;r<o;r++)t=ki(t,e.mixins[r],n);var i,a={};for(i in t)s(i);for(i in e)C(t,i)||s(i);function s(r){var o=pi[r]||yi;a[r]=o(t[r],e[r],n,r)}return a}function Si(t,e,n,r){if("string"==typeof n){var o=t[e];if(C(o,n))return o[n];var i=O(n);if(C(o,i))return o[i];var a=T(i);if(C(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function Oi(t,e,n,r){var o=e[t],i=!C(n,t),a=n[t],s=Di(Boolean,o.type);if(s>-1)if(i&&!C(o,"default"))a=!1;else if(""===a||a===j(t)){var c=Di(String,o.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Ti(r,o,t);var u=Kt;Jt(!0),Zt(a),Jt(u)}return a}function Ti(t,e,n){if(C(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:c(r)&&"Function"!==Ni(e.type)?r.call(t):r}}function Ai(t,e,r,o,i){if(t.required&&i)li('Missing required prop: "'+e+'"',o);else if(null!=r||t.required){var a=t.type,s=!a||!0===a,c=[];if(a){n(a)||(a=[a]);for(var u=0;u<a.length&&!s;u++){var l=Ei(r,a[u],o);c.push(l.expectedType||""),s=l.valid}}var f=c.some(function(t){return t});if(s||!f){var p=t.validator;p&&(p(r)||li('Invalid prop: custom validator check failed for prop "'+e+'".',o))}else li(Ii(e,r,c),o)}}var ji=/^(String|Number|Boolean|Function|Symbol|BigInt)$/;function Ei(t,e,r){var o,i=Ni(e);if(ji.test(i)){var a=typeof t;(o=a===i.toLowerCase())||"object"!==a||(o=t instanceof e)}else if("Object"===i)o=p(t);else if("Array"===i)o=n(t);else try{o=t instanceof e}catch(Np){li('Invalid prop type: "'+String(e)+'" is not a constructor',r),o=!1}return{valid:o,expectedType:i}}var Mi=/^\s*function (\w+)/;function Ni(t){var e=t&&t.toString().match(Mi);return e?e[1]:""}function Pi(t,e){return Ni(t)===Ni(e)}function Di(t,e){if(!n(e))return Pi(e,t)?0:-1;for(var r=0,o=e.length;r<o;r++)if(Pi(e[r],t))return r;return-1}function Ii(t,e,n){var r='Invalid prop: type check failed for prop "'.concat(t,'".')+" Expected ".concat(n.map(T).join(", ")),o=n[0],i=f(e);return 1===n.length&&Fi(o)&&Fi(typeof e)&&!Ui(o,i)&&(r+=" with value ".concat(Li(e,o))),r+=", got ".concat(i," "),Fi(i)&&(r+="with value ".concat(Li(e,i),".")),r}function Li(t,e){return"String"===e?'"'.concat(t,'"'):"".concat("Number"===e?Number(t):t)}var Ri=["string","number","boolean"];function Fi(t){return Ri.some(function(e){return t.toLowerCase()===e})}function Ui(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.some(function(t){return"boolean"===t.toLowerCase()})}function Bi(t){this._init(t)}function Hi(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=P(arguments,1);return n.unshift(this),c(t.install)?t.install.apply(t,n):c(t)&&t.apply(null,n),e.push(t),this}}function zi(t){t.mixin=function(t){return this.options=ki(this.options,t),this}}function Vi(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=Go(t)||Go(n.options);var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=ki(n.options,t),a.super=n,a.options.props&&Ki(a),a.options.computed&&Ji(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,J.forEach(function(t){a[t]=n[t]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=D({},a.options),o[r]=a,a}}function Ki(t){var e=t.options.props;for(var n in e)Co(t.prototype,"_props",n)}function Ji(t){var e=t.options.computed;for(var n in e)Eo(t.prototype,n,e[n])}function qi(t){J.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&c(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Wi(t){return t&&(Go(t.Ctor.options)||t.tag)}function Zi(t,e){return n(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Gi(t,e){var n=t.cache,r=t.keys,o=t._vnode,i=t.$vnode;for(var a in n){var s=n[a];if(s){var c=s.name;c&&!e(c)&&Yi(n,a,r,o)}}i.componentOptions.children=void 0}function Yi(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,$(n,e)}Ho(Bi),Lo(Bi),Bn(Bi),Yn(Bi),En(Bi);var Xi=[String,RegExp,Array],Qi={name:"keep-alive",abstract:!0,props:{include:Xi,exclude:Xi,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,n=this.vnodeToCache,r=this.keyToCache;if(n){var o=n.tag,i=n.componentInstance,a=n.componentOptions;t[r]={name:Wi(a),tag:o,componentInstance:i},e.push(r),this.max&&e.length>parseInt(this.max)&&Yi(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Yi(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){Gi(t,function(t){return Zi(e,t)})}),this.$watch("exclude",function(e){Gi(t,function(t){return!Zi(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Dn(t),n=e&&e.componentOptions;if(n){var r=Wi(n),o=this.include,i=this.exclude;if(o&&(!r||!Zi(o,r))||i&&r&&Zi(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,$(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},ta={KeepAlive:Qi};function ea(t){var e={get:function(){return W}};Object.defineProperty(t,"config",e),t.util={warn:li,extend:D,mergeOptions:ki,defineReactive:Gt},t.set=Yt,t.delete=Xt,t.nextTick=Zr,t.observable=function(t){return Zt(t),t},t.options=Object.create(null),J.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,D(t.options.components,ta),Hi(t),zi(t),Vi(t),qi(t)}ea(Bi),Object.defineProperty(Bi.prototype,"$isServer",{get:pt}),Object.defineProperty(Bi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Bi,"FunctionalRenderContext",{value:Jo}),Bi.version=mo;var na=_("style,class"),ra=_("input,textarea,option,select,progress"),oa=function(t,e,n){return"value"===n&&ra(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ia=_("contenteditable,draggable,spellcheck"),aa=_("events,caret,typing,plaintext-only"),sa=function(t,e){return pa(e)||"false"===e?"false":"contenteditable"===t&&aa(e)?e:"true"},ca=_("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"),ua="http://www.w3.org/1999/xlink",la=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},fa=function(t){return la(t)?t.slice(6,t.length):""},pa=function(t){return null==t||!1===t};function da(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=va(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=va(e,n.data));return ha(e.staticClass,e.class)}function va(t,e){return{staticClass:ma(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function ha(t,e){return o(t)||o(e)?ma(t,ga(e)):""}function ma(t,e){return t?e?t+" "+e:t:e||""}function ga(t){return Array.isArray(t)?ya(t):u(t)?_a(t):"string"==typeof t?t:""}function ya(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=ga(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function _a(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ba={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},xa=_("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"),$a=_("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),wa=function(t){return"pre"===t},Ca=function(t){return xa(t)||$a(t)};function ka(t){return $a(t)?"svg":"math"===t?"math":void 0}var Sa=Object.create(null);function Oa(t){if(!et)return!0;if(Ca(t))return!1;if(t=t.toLowerCase(),null!=Sa[t])return Sa[t];var e=document.createElement(t);return t.indexOf("-")>-1?Sa[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Sa[t]=/HTMLUnknownElement/.test(e.toString())}var Ta=_("text,number,password,search,email,tel,url");function Aa(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function ja(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ea(t,e){return document.createElementNS(ba[t],e)}function Ma(t){return document.createTextNode(t)}function Na(t){return document.createComment(t)}function Pa(t,e,n){t.insertBefore(e,n)}function Da(t,e){t.removeChild(e)}function Ia(t,e){t.appendChild(e)}function La(t){return t.parentNode}function Ra(t){return t.nextSibling}function Fa(t){return t.tagName}function Ua(t,e){t.textContent=e}function Ba(t,e){t.setAttribute(e,"")}var Ha=Object.freeze({__proto__:null,createElement:ja,createElementNS:Ea,createTextNode:Ma,createComment:Na,insertBefore:Pa,removeChild:Da,appendChild:Ia,parentNode:La,nextSibling:Ra,tagName:Fa,setTextContent:Ua,setStyleScope:Ba}),za={create:function(t,e){Va(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Va(t,!0),Va(e))},destroy:function(t){Va(t,!0)}};function Va(t,e){var r=t.data.ref;if(o(r)){var i=t.context,a=t.componentInstance||t.elm,s=e?null:a,u=e?void 0:a;if(c(r))Lr(r,i,[s],i,"template ref function");else{var l=t.data.refInFor,f="string"==typeof r||"number"==typeof r,p=fe(r),d=i.$refs;if(f||p)if(l){var v=f?d[r]:r.value;e?n(v)&&$(v,a):n(v)?v.includes(a)||v.push(a):f?(d[r]=[a],Ka(i,r,d[r])):r.value=[a]}else if(f){if(e&&d[r]!==a)return;d[r]=u,Ka(i,r,s)}else if(p){if(e&&r.value!==a)return;r.value=s}else 0}}}function Ka(t,e,n){var r=t._setupState;r&&C(r,e)&&(fe(r[e])?r[e].value=n:r[e]=n)}var Ja=new Tt("",{},[]),qa=["create","activate","update","remove","destroy"];function Wa(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&Za(t,e)||i(t.isAsyncPlaceholder)&&r(e.asyncFactory.error))}function Za(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||Ta(r)&&Ta(i)}function Ga(t,e,n){var r,i,a={};for(r=e;r<=n;++r)o(i=t[r].key)&&(a[i]=r);return a}function Ya(t){var e,a,c={},u=t.modules,l=t.nodeOps;for(e=0;e<qa.length;++e)for(c[qa[e]]=[],a=0;a<u.length;++a)o(u[a][qa[e]])&&c[qa[e]].push(u[a][qa[e]]);function f(t){var e=l.parentNode(t);o(e)&&l.removeChild(e,t)}function p(t,e,n,r,a,s,u){if(o(t.elm)&&o(s)&&(t=s[u]=Et(t)),t.isRootInsert=!a,!function(t,e,n,r){var a=t.data;if(o(a)){var s=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1),o(t.componentInstance))return d(t,e),v(n,t.elm,r),i(s)&&function(t,e,n,r){var i,a=t;for(;a.componentInstance;)if(a=a.componentInstance._vnode,o(i=a.data)&&o(i=i.transition)){for(i=0;i<c.activate.length;++i)c.activate[i](Ja,a);e.push(a);break}v(n,t.elm,r)}(t,e,n,r),!0}}(t,e,n,r)){var f=t.data,p=t.children,m=t.tag;o(m)?(t.elm=t.ns?l.createElementNS(t.ns,m):l.createElement(m,t),y(t),h(t,p,e),o(f)&&g(t,e),v(n,t.elm,r)):i(t.isComment)?(t.elm=l.createComment(t.text),v(n,t.elm,r)):(t.elm=l.createTextNode(t.text),v(n,t.elm,r))}}function d(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,m(t)?(g(t,e),y(t)):(Va(t),e.push(t))}function v(t,e,n){o(t)&&(o(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function h(t,e,r){if(n(e)){0;for(var o=0;o<e.length;++o)p(e[o],r,t.elm,null,!0,e,o)}else s(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function m(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function g(t,n){for(var r=0;r<c.create.length;++r)c.create[r](Ja,t);o(e=t.data.hook)&&(o(e.create)&&e.create(Ja,t),o(e.insert)&&n.push(t))}function y(t){var e;if(o(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;o(e=qn)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function b(t,e,n,r,o,i){for(;r<=o;++r)p(n[r],i,t,e,!1,n,r)}function x(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<c.destroy.length;++e)c.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)x(t.children[n])}function $(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(o(r.tag)?(w(r),x(r)):f(r.elm))}}function w(t,e){if(o(e)||o(t.data)){var n,r=c.remove.length+1;for(o(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&f(t)}return n.listeners=e,n}(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&w(n,e),n=0;n<c.remove.length;++n)c.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else f(t.elm)}function C(t,e,n,r){for(var i=n;i<r;i++){var a=e[i];if(o(a)&&Wa(t,a))return i}}function k(t,e,n,a,s,u){if(t!==e){o(e.elm)&&o(a)&&(e=a[s]=Et(e));var f=e.elm=t.elm;if(i(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?T(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,v=e.data;o(v)&&o(d=v.hook)&&o(d=d.prepatch)&&d(t,e);var h=t.children,g=e.children;if(o(v)&&m(e)){for(d=0;d<c.update.length;++d)c.update[d](t,e);o(d=v.hook)&&o(d=d.update)&&d(t,e)}r(e.text)?o(h)&&o(g)?h!==g&&function(t,e,n,i,a){var s,c,u,f=0,d=0,v=e.length-1,h=e[0],m=e[v],g=n.length-1,y=n[0],_=n[g],x=!a;for(;f<=v&&d<=g;)r(h)?h=e[++f]:r(m)?m=e[--v]:Wa(h,y)?(k(h,y,i,n,d),h=e[++f],y=n[++d]):Wa(m,_)?(k(m,_,i,n,g),m=e[--v],_=n[--g]):Wa(h,_)?(k(h,_,i,n,g),x&&l.insertBefore(t,h.elm,l.nextSibling(m.elm)),h=e[++f],_=n[--g]):Wa(m,y)?(k(m,y,i,n,d),x&&l.insertBefore(t,m.elm,h.elm),m=e[--v],y=n[++d]):(r(s)&&(s=Ga(e,f,v)),r(c=o(y.key)?s[y.key]:C(y,e,f,v))?p(y,i,t,h.elm,!1,n,d):Wa(u=e[c],y)?(k(u,y,i,n,d),e[c]=void 0,x&&l.insertBefore(t,u.elm,h.elm)):p(y,i,t,h.elm,!1,n,d),y=n[++d]);f>v?b(t,r(n[g+1])?null:n[g+1].elm,n,d,g,i):d>g&&$(e,f,v)}(f,h,g,n,u):o(g)?(o(t.text)&&l.setTextContent(f,""),b(f,null,g,0,g.length-1,n)):o(h)?$(h,0,h.length-1):o(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),o(v)&&o(d=v.hook)&&o(d=d.postpatch)&&d(t,e)}}}function S(t,e,n){if(i(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var O=_("attrs,class,staticClass,staticStyle,key");function T(t,e,n,r){var a,s=e.tag,c=e.data,u=e.children;if(r=r||c&&c.pre,e.elm=t,i(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(a=c.hook)&&o(a=a.init)&&a(e,!0),o(a=e.componentInstance)))return d(e,n),!0;if(o(s)){if(o(u))if(t.hasChildNodes())if(o(a=c)&&o(a=a.domProps)&&o(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var l=!0,f=t.firstChild,p=0;p<u.length;p++){if(!f||!T(f,u[p],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else h(e,u,n);if(o(c)){var v=!1;for(var m in c)if(!O(m)){v=!0,g(e,n);break}!v&&c.class&&_o(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!r(e)){var s,u=!1,f=[];if(r(t))u=!0,p(e,f);else{var d=o(t.nodeType);if(!d&&Wa(t,e))k(t,e,f,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(K)&&(t.removeAttribute(K),n=!0),i(n)&&T(t,e,f))return S(e,f,!0),t;s=t,t=new Tt(l.tagName(s).toLowerCase(),{},[],void 0,s)}var v=t.elm,h=l.parentNode(v);if(p(e,f,v._leaveCb?null:h,l.nextSibling(v)),o(e.parent))for(var g=e.parent,y=m(e);g;){for(var _=0;_<c.destroy.length;++_)c.destroy[_](g);if(g.elm=e.elm,y){for(var b=0;b<c.create.length;++b)c.create[b](Ja,g);var w=g.data.hook.insert;if(w.merged)for(var C=w.fns.slice(1),O=0;O<C.length;O++)C[O]()}else Va(g);g=g.parent}o(h)?$([t],0,0):o(t.tag)&&x(t)}}return S(e,f,u),e.elm}o(t)&&x(t)}}var Xa={create:Qa,update:Qa,destroy:function(t){Qa(t,Ja)}};function Qa(t,e){(t.data.directives||e.data.directives)&&ts(t,e)}function ts(t,e){var n,r,o,i=t===Ja,a=e===Ja,s=ns(t.data.directives,t.context),c=ns(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,os(o,"update",e,t),o.def&&o.def.componentUpdated&&l.push(o)):(os(o,"bind",e,t),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n<u.length;n++)os(u[n],"inserted",e,t)};i?De(e,"insert",f):f()}if(l.length&&De(e,"postpatch",function(){for(var n=0;n<l.length;n++)os(l[n],"componentUpdated",e,t)}),!i)for(n in s)c[n]||os(s[n],"unbind",t,t,a)}var es=Object.create(null);function ns(t,e){var n,r,o=Object.create(null);if(!t)return o;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=es),o[rs(r)]=r,e._setupState&&e._setupState.__sfc){var i=r.def||Si(e,"_setupState","v-"+r.name);r.def="function"==typeof i?{bind:i,update:i}:i}r.def=r.def||Si(e.$options,"directives",r.name,!0)}return o}function rs(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function os(t,e,n,r,o){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,r,o)}catch(Np){Ir(Np,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var is=[za,Xa];function as(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var a,s,c=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(a in(o(l.__ob__)||i(l._v_attr_proxy))&&(l=e.data.attrs=D({},l)),l)s=l[a],u[a]!==s&&ss(c,a,s,e.data.pre);for(a in(rt||it)&&l.value!==u.value&&ss(c,"value",l.value),u)r(l[a])&&(la(a)?c.removeAttributeNS(ua,fa(a)):ia(a)||c.removeAttribute(a))}}function ss(t,e,n,r){r||t.tagName.indexOf("-")>-1?cs(t,e,n):ca(e)?pa(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ia(e)?t.setAttribute(e,sa(e,n)):la(e)?pa(n)?t.removeAttributeNS(ua,fa(e)):t.setAttributeNS(ua,e,n):cs(t,e,n)}function cs(t,e,n){if(pa(n))t.removeAttribute(e);else{if(rt&&!ot&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var us={create:as,update:as};function ls(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=da(e),c=n._transitionClasses;o(c)&&(s=ma(s,ga(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var fs,ps,ds,vs,hs,ms,gs,ys={create:ls,update:ls},_s=/[\w).+\-_$\]]/;function bs(t){var e,n,r,o,i,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(c)96===e&&92!==n&&(c=!1);else if(u)47===e&&92!==n&&(u=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||l||f||p){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===e){for(var v=r-1,h=void 0;v>=0&&" "===(h=t.charAt(v));v--);h&&_s.test(h)||(u=!0)}}else void 0===o?(d=r+1,o=t.slice(0,r).trim()):m();function m(){(i||(i=[])).push(t.slice(d,r).trim()),d=r+1}if(void 0===o?o=t.slice(0,r).trim():0!==d&&m(),i)for(r=0;r<i.length;r++)o=xs(o,i[r]);return o}function xs(t,e){var n=e.indexOf("(");if(n<0)return'_f("'.concat(e,'")(').concat(t,")");var r=e.slice(0,n),o=e.slice(n+1);return'_f("'.concat(r,'")(').concat(t).concat(")"!==o?","+o:o)}function $s(t,e){console.error("[Vue compiler]: ".concat(t))}function ws(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Cs(t,e,n,r,o){(t.props||(t.props=[])).push(Ps({name:e,value:n,dynamic:o},r)),t.plain=!1}function ks(t,e,n,r,o){(o?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Ps({name:e,value:n,dynamic:o},r)),t.plain=!1}function Ss(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(Ps({name:e,value:n},r))}function Os(t,e,n,r,o,i,a,s){(t.directives||(t.directives=[])).push(Ps({name:e,rawName:n,value:r,arg:o,isDynamicArg:i,modifiers:a},s)),t.plain=!1}function Ts(t,e,n){return n?"_p(".concat(e,',"').concat(t,'")'):t+e}function As(t,n,r,o,i,a,s,c){var u;(o=o||e).right?c?n="(".concat(n,")==='click'?'contextmenu':(").concat(n,")"):"click"===n&&(n="contextmenu",delete o.right):o.middle&&(c?n="(".concat(n,")==='click'?'mouseup':(").concat(n,")"):"click"===n&&(n="mouseup")),o.capture&&(delete o.capture,n=Ts("!",n,c)),o.once&&(delete o.once,n=Ts("~",n,c)),o.passive&&(delete o.passive,n=Ts("&",n,c)),o.native?(delete o.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var l=Ps({value:r.trim(),dynamic:c},s);o!==e&&(l.modifiers=o);var f=u[n];Array.isArray(f)?i?f.unshift(l):f.push(l):u[n]=f?i?[l,f]:[f,l]:l,t.plain=!1}function js(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}function Es(t,e,n){var r=Ms(t,":"+e)||Ms(t,"v-bind:"+e);if(null!=r)return bs(r);if(!1!==n){var o=Ms(t,e);if(null!=o)return JSON.stringify(o)}}function Ms(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var o=t.attrsList,i=0,a=o.length;i<a;i++)if(o[i].name===e){o.splice(i,1);break}return n&&delete t.attrsMap[e],r}function Ns(t,e){for(var n=t.attrsList,r=0,o=n.length;r<o;r++){var i=n[r];if(e.test(i.name))return n.splice(r,1),i}}function Ps(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Ds(t,e,n){var r=n||{},o=r.number,i="$$v";r.trim&&(i="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),o&&(i="_n(".concat(i,")"));var a=Is(e,i);t.model={value:"(".concat(e,")"),expression:JSON.stringify(e),callback:"function (".concat("$$v",") {").concat(a,"}")}}function Is(t,e){var n=Ls(t);return null===n.key?"".concat(t,"=").concat(e):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(e,")")}function Ls(t){if(t=t.trim(),fs=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<fs-1)return(vs=t.lastIndexOf("."))>-1?{exp:t.slice(0,vs),key:'"'+t.slice(vs+1)+'"'}:{exp:t,key:null};for(ps=t,vs=hs=ms=0;!Fs();)Us(ds=Rs())?Hs(ds):91===ds&&Bs(ds);return{exp:t.slice(0,hs),key:t.slice(hs+1,ms)}}function Rs(){return ps.charCodeAt(++vs)}function Fs(){return vs>=fs}function Us(t){return 34===t||39===t}function Bs(t){var e=1;for(hs=vs;!Fs();)if(Us(t=Rs()))Hs(t);else if(91===t&&e++,93===t&&e--,0===e){ms=vs;break}}function Hs(t){for(var e=t;!Fs()&&(t=Rs())!==e;);}var zs,Vs="__r",Ks="__c";function Js(t,e,n){gs=n;var r=e.value,o=e.modifiers,i=t.tag,a=t.attrsMap.type;if(t.component)return Ds(t,r,o),!1;if("select"===i)Zs(t,r,o);else if("input"===i&&"checkbox"===a)qs(t,r,o);else if("input"===i&&"radio"===a)Ws(t,r,o);else if("input"===i||"textarea"===i)Gs(t,r,o);else{if(!W.isReservedTag(i))return Ds(t,r,o),!1}return!0}function qs(t,e,n){var r=n&&n.number,o=Es(t,"value")||"null",i=Es(t,"true-value")||"true",a=Es(t,"false-value")||"false";Cs(t,"checked","Array.isArray(".concat(e,")")+"?_i(".concat(e,",").concat(o,")>-1")+("true"===i?":(".concat(e,")"):":_q(".concat(e,",").concat(i,")"))),As(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(i,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+o+")":o,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Is(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Is(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Is(e,"$$c"),"}"),null,!0)}function Ws(t,e,n){var r=n&&n.number,o=Es(t,"value")||"null";o=r?"_n(".concat(o,")"):o,Cs(t,"checked","_q(".concat(e,",").concat(o,")")),As(t,"change",Is(e,o),null,!0)}function Zs(t,e,n){var r=n&&n.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),i="var $$selectedVal = ".concat(o,";");As(t,"change",i="".concat(i," ").concat(Is(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")),null,!0)}function Gs(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Vs:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n(".concat(l,")"));var f=Is(e,l);c&&(f="if($event.target.composing)return;".concat(f)),Cs(t,"value","(".concat(e,")")),As(t,u,f,null,!0),(s||a)&&As(t,"blur","$forceUpdate()")}function Ys(t){if(o(t[Vs])){var e=rt?"change":"input";t[e]=[].concat(t[Vs],t[e]||[]),delete t[Vs]}o(t[Ks])&&(t.change=[].concat(t[Ks],t.change||[]),delete t[Ks])}function Xs(t,e,n){var r=zs;return function o(){null!==e.apply(null,arguments)&&ec(t,o,n,r)}}var Qs=Br&&!(ct&&Number(ct[1])<=53);function tc(t,e,n,r){if(Qs){var o=dr,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zs.addEventListener(t,e,lt?{capture:n,passive:r}:n)}function ec(t,e,n,r){(r||zs).removeEventListener(t,e._wrapper||e,n)}function nc(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};zs=e.elm||t.elm,Ys(n),Pe(n,o,tc,ec,Xs,e.context),zs=void 0}}var rc,oc={create:nc,update:nc,destroy:function(t){return nc(t,Ja)}};function ic(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,a,s=e.elm,c=t.data.domProps||{},u=e.data.domProps||{};for(n in(o(u.__ob__)||i(u._v_attr_proxy))&&(u=e.data.domProps=D({},u)),c)n in u||(s[n]="");for(n in u){if(a=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),a===c[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=a;var l=r(a)?"":String(a);ac(s,l)&&(s.value=l)}else if("innerHTML"===n&&$a(s.tagName)&&r(s.innerHTML)){(rc=rc||document.createElement("div")).innerHTML="<svg>".concat(a,"</svg>");for(var f=rc.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;f.firstChild;)s.appendChild(f.firstChild)}else if(a!==c[n])try{s[n]=a}catch(Np){}}}}function ac(t,e){return!t.composing&&("OPTION"===t.tagName||sc(t,e)||cc(t,e))}function sc(t,e){var n=!0;try{n=document.activeElement!==t}catch(Np){}return n&&t.value!==e}function cc(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return y(n)!==y(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var uc={create:ic,update:ic},lc=k(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function fc(t){var e=pc(t.style);return t.staticStyle?D(t.staticStyle,e):e}function pc(t){return Array.isArray(t)?I(t):"string"==typeof t?lc(t):t}function dc(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=fc(o.data))&&D(r,n);(n=fc(t.data))&&D(r,n);for(var i=t;i=i.parent;)i.data&&(n=fc(i.data))&&D(r,n);return r}var vc,hc=/^--/,mc=/\s*!important$/,gc=function(t,e,n){if(hc.test(e))t.style.setProperty(e,n);else if(mc.test(n))t.style.setProperty(j(e),n.replace(mc,""),"important");else{var r=_c(e);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)t.style[r]=n[o];else t.style[r]=n}},yc=["Webkit","Moz","ms"],_c=k(function(t){if(vc=vc||document.createElement("div").style,"filter"!==(t=O(t))&&t in vc)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yc.length;n++){var r=yc[n]+e;if(r in vc)return r}});function bc(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,c=e.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,p=pc(e.data.style)||{};e.data.normalizedStyle=o(p.__ob__)?D({},p):p;var d=dc(e,!0);for(s in f)r(d[s])&&gc(c,s,"");for(s in d)a=d[s],gc(c,s,null==a?"":a)}}var xc={create:bc,update:bc},$c=/\s+/;function wc(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split($c).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Cc(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split($c).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function kc(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&D(e,Sc(t.name||"v")),D(e,t),e}return"string"==typeof t?Sc(t):void 0}}var Sc=k(function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}}),Oc=et&&!ot,Tc="transition",Ac="animation",jc="transition",Ec="transitionend",Mc="animation",Nc="animationend";Oc&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(jc="WebkitTransition",Ec="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mc="WebkitAnimation",Nc="webkitAnimationEnd"));var Pc=et?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Dc(t){Pc(function(){Pc(t)})}function Ic(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wc(t,e))}function Lc(t,e){t._transitionClasses&&$(t._transitionClasses,e),Cc(t,e)}function Rc(t,e,n){var r=Uc(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Tc?Ec:Nc,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c<a&&u()},i+1),t.addEventListener(s,l)}var Fc=/\b(transform|all)(,|$)/;function Uc(t,e){var n,r=window.getComputedStyle(t),o=(r[jc+"Delay"]||"").split(", "),i=(r[jc+"Duration"]||"").split(", "),a=Bc(o,i),s=(r[Mc+"Delay"]||"").split(", "),c=(r[Mc+"Duration"]||"").split(", "),u=Bc(s,c),l=0,f=0;return e===Tc?a>0&&(n=Tc,l=a,f=i.length):e===Ac?u>0&&(n=Ac,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Tc:Ac:null)?n===Tc?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Tc&&Fc.test(r[jc+"Property"])}}function Bc(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Hc(e)+Hc(t[n])}))}function Hc(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function zc(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=kc(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){for(var a=i.css,s=i.type,l=i.enterClass,f=i.enterToClass,p=i.enterActiveClass,d=i.appearClass,v=i.appearToClass,h=i.appearActiveClass,m=i.beforeEnter,g=i.enter,_=i.afterEnter,b=i.enterCancelled,x=i.beforeAppear,$=i.appear,w=i.afterAppear,C=i.appearCancelled,k=i.duration,S=qn,O=qn.$vnode;O&&O.parent;)S=O.context,O=O.parent;var T=!S._isMounted||!t.isRootInsert;if(!T||$||""===$){var A=T&&d?d:l,j=T&&h?h:p,E=T&&v?v:f,M=T&&x||m,N=T&&c($)?$:g,P=T&&w||_,D=T&&C||b,I=y(u(k)?k.enter:k);0;var L=!1!==a&&!ot,R=qc(N),F=n._enterCb=z(function(){L&&(Lc(n,E),Lc(n,j)),F.cancelled?(L&&Lc(n,A),D&&D(n)):P&&P(n),n._enterCb=null});t.data.show||De(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),N&&N(n,F)}),M&&M(n),L&&(Ic(n,A),Ic(n,j),Dc(function(){Lc(n,A),F.cancelled||(Ic(n,E),R||(Jc(I)?setTimeout(F,I):Rc(n,s,F)))})),t.data.show&&(e&&e(),N&&N(n,F)),L||R||F()}}}function Vc(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=kc(t.data.transition);if(r(i)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=i.css,s=i.type,c=i.leaveClass,l=i.leaveToClass,f=i.leaveActiveClass,p=i.beforeLeave,d=i.leave,v=i.afterLeave,h=i.leaveCancelled,m=i.delayLeave,g=i.duration,_=!1!==a&&!ot,b=qc(d),x=y(u(g)?g.leave:g);0;var $=n._leaveCb=z(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),_&&(Lc(n,l),Lc(n,f)),$.cancelled?(_&&Lc(n,c),h&&h(n)):(e(),v&&v(n)),n._leaveCb=null});m?m(w):w()}function w(){$.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),p&&p(n),_&&(Ic(n,c),Ic(n,f),Dc(function(){Lc(n,c),$.cancelled||(Ic(n,l),b||(Jc(x)?setTimeout($,x):Rc(n,s,$)))})),d&&d(n,$),_||b||$())}}function Kc(t,e,n){"number"!=typeof t?li("<transition> explicit ".concat(e," duration is not a valid number - ")+"got ".concat(JSON.stringify(t),"."),n.context):isNaN(t)&&li("<transition> explicit ".concat(e," duration is NaN - ")+"the duration expression might be incorrect.",n.context)}function Jc(t){return"number"==typeof t&&!isNaN(t)}function qc(t){if(r(t))return!1;var e=t.fns;return o(e)?qc(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Wc(t,e){!0!==e.data.show&&zc(e)}var Zc=et?{create:Wc,activate:Wc,remove:function(t,e){!0!==t.data.show?Vc(t,e):e()}}:{},Gc=[us,ys,oc,uc,xc,Zc],Yc=Gc.concat(is),Xc=Ya({nodeOps:Ha,modules:Yc});ot&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&au(t,"input")});var Qc={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?De(n,"postpatch",function(){Qc.componentUpdated(t,e,n)}):tu(t,e,n.context),t._vOptions=[].map.call(t.options,ru)):("textarea"===n.tag||Ta(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ou),t.addEventListener("compositionend",iu),t.addEventListener("change",iu),ot&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){tu(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,ru);if(o.some(function(t,e){return!B(t,r[e])}))(t.multiple?e.value.some(function(t){return nu(t,o)}):e.value!==e.oldValue&&nu(e.value,o))&&au(t,"change")}}};function tu(t,e,n){eu(t,e,n),(rt||it)&&setTimeout(function(){eu(t,e,n)},0)}function eu(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],o)i=H(r,ru(a))>-1,a.selected!==i&&(a.selected=i);else if(B(ru(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function nu(t,e){return e.every(function(e){return!B(e,t)})}function ru(t){return"_value"in t?t._value:t.value}function ou(t){t.target.composing=!0}function iu(t){t.target.composing&&(t.target.composing=!1,au(t.target,"input"))}function au(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function su(t){return!t.componentInstance||t.data&&t.data.transition?t:su(t.componentInstance._vnode)}var cu={bind:function(t,e,n){var r=e.value,o=(n=su(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,zc(n,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=su(n)).data&&n.data.transition?(n.data.show=!0,r?zc(n,function(){t.style.display=t.__vOriginalDisplay}):Vc(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},uu={model:Qc,show:cu},lu={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 fu(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?fu(Dn(e.children)):t}function pu(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[O(r)]=o[r];return e}function du(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function vu(t){for(;t=t.parent;)if(t.data.transition)return!0}function hu(t,e){return e.key===t.key&&e.tag===t.tag}var mu=function(t){return t.tag||pn(t)},gu=function(t){return"show"===t.name},yu={name:"transition",props:lu,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(mu)).length){0;var r=this.mode;0;var o=n[0];if(vu(this.$vnode))return o;var i=fu(o);if(!i)return o;if(this._leaving)return du(t,o);var a="__transition-".concat(this._uid,"-");i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var c=(i.data||(i.data={})).transition=pu(this),u=this._vnode,l=fu(u);if(i.data.directives&&i.data.directives.some(gu)&&(i.data.show=!0),l&&l.data&&!hu(i,l)&&!pn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=D({},c);if("out-in"===r)return this._leaving=!0,De(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),du(t,o);if("in-out"===r){if(pn(i))return u;var p,d=function(){p()};De(c,"afterEnter",d),De(c,"enterCancelled",d),De(f,"delayLeave",function(t){p=t})}}return o}}},_u=D({tag:String,moveClass:String},lu);delete _u.mode;var bu={props:_u,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Zn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=pu(this),s=0;s<o.length;s++){if((l=o[s]).tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))i.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){var c=[],u=[];for(s=0;s<r.length;s++){var l;(l=r[s]).data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=t(e,null,c),this.removed=u}return t(e,null,i)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(xu),t.forEach($u),t.forEach(wu),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Ic(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ec,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ec,t),n._moveCb=null,Lc(n,e))})}}))},methods:{hasMove:function(t,e){if(!Oc)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Cc(n,t)}),wc(n,e),n.style.display="none",this.$el.appendChild(n);var r=Uc(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function xu(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function $u(t){t.data.newPos=t.elm.getBoundingClientRect()}function wu(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}var Cu={Transition:yu,TransitionGroup:bu};Bi.config.mustUseProp=oa,Bi.config.isReservedTag=Ca,Bi.config.isReservedAttr=na,Bi.config.getTagNamespace=ka,Bi.config.isUnknownElement=Oa,D(Bi.options.directives,uu),D(Bi.options.components,Cu),Bi.prototype.__patch__=et?Xc:L,Bi.prototype.$mount=function(t,e){return Xn(this,t=t&&et?Aa(t):void 0,e)},et&&setTimeout(function(){W.devtools&&dt&&dt.emit("init",Bi)},0);var ku=/\{\{((?:.|\r?\n)+?)\}\}/g,Su=/[-.*+?^${}()|[\]\/\\]/g,Ou=k(function(t){var e=t[0].replace(Su,"\\$&"),n=t[1].replace(Su,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function Tu(t,e){var n=e?Ou(e):ku;if(n.test(t)){for(var r,o,i,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){(o=r.index)>c&&(s.push(i=t.slice(c,o)),a.push(JSON.stringify(i)));var u=bs(r[1].trim());a.push("_s(".concat(u,")")),s.push({"@binding":u}),c=o+r[0].length}return c<t.length&&(s.push(i=t.slice(c)),a.push(JSON.stringify(i))),{expression:a.join("+"),tokens:s}}}function Au(t,e){e.warn;var n=Ms(t,"class");n&&(t.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=Es(t,"class",!1);r&&(t.classBinding=r)}function ju(t){var e="";return t.staticClass&&(e+="staticClass:".concat(t.staticClass,",")),t.classBinding&&(e+="class:".concat(t.classBinding,",")),e}var Eu={staticKeys:["staticClass"],transformNode:Au,genData:ju};function Mu(t,e){e.warn;var n=Ms(t,"style");n&&(t.staticStyle=JSON.stringify(lc(n)));var r=Es(t,"style",!1);r&&(t.styleBinding=r)}function Nu(t){var e="";return t.staticStyle&&(e+="staticStyle:".concat(t.staticStyle,",")),t.styleBinding&&(e+="style:(".concat(t.styleBinding,"),")),e}var Pu,Du={staticKeys:["staticStyle"],transformNode:Mu,genData:Nu},Iu={decode:function(t){return(Pu=Pu||document.createElement("div")).innerHTML=t,Pu.textContent}},Lu=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ru=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Fu=_("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Uu=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Bu=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Hu="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(Z.source,"]*"),zu="((?:".concat(Hu,"\\:)?").concat(Hu,")"),Vu=new RegExp("^<".concat(zu)),Ku=/^\s*(\/?)>/,Ju=new RegExp("^<\\/".concat(zu,"[^>]*>")),qu=/^<!DOCTYPE [^>]+>/i,Wu=/^<!\--/,Zu=/^<!\[/,Gu=_("script,style,textarea",!0),Yu={},Xu={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Qu=/&(?:lt|gt|quot|amp|#39);/g,tl=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,el=_("pre,textarea",!0),nl=function(t,e){return t&&el(t)&&"\n"===e[0]};function rl(t,e){var n=e?tl:Qu;return t.replace(n,function(t){return Xu[t]})}function ol(t,e){for(var n,r,o=[],i=e.expectHTML,a=e.isUnaryTag||R,s=e.canBeLeftOpenTag||R,c=0,u=function(){if(n=t,r&&Gu(r)){var u=0,p=r.toLowerCase(),d=Yu[p]||(Yu[p]=new RegExp("([\\s\\S]*?)(</"+p+"[^>]*>)","i"));$=t.replace(d,function(t,n,r){return u=r.length,Gu(p)||"noscript"===p||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),nl(p,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-$.length,t=$,f(p,c-u,c)}else{var v=t.indexOf("<");if(0===v){if(Wu.test(t)){var h=t.indexOf("--\x3e");if(h>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,h),c,c+h+3),l(h+3),"continue"}if(Zu.test(t)){var m=t.indexOf("]>");if(m>=0)return l(m+2),"continue"}var g=t.match(qu);if(g)return l(g[0].length),"continue";var y=t.match(Ju);if(y){var _=c;return l(y[0].length),f(y[1],_,c),"continue"}var b=function(){var e=t.match(Vu);if(e){var n={tagName:e[1],attrs:[],start:c};l(e[0].length);for(var r=void 0,o=void 0;!(r=t.match(Ku))&&(o=t.match(Bu)||t.match(Uu));)o.start=c,l(o[0].length),o.end=c,n.attrs.push(o);if(r)return n.unarySlash=r[1],l(r[0].length),n.end=c,n}}();if(b)return function(t){var n=t.tagName,c=t.unarySlash;i&&("p"===r&&Fu(n)&&f(r),s(n)&&r===n&&f(n));for(var u=a(n)||!!c,l=t.attrs.length,p=new Array(l),d=0;d<l;d++){var v=t.attrs[d],h=v[3]||v[4]||v[5]||"",m="a"===n&&"href"===v[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;p[d]={name:v[1],value:rl(h,m)}}u||(o.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:p,start:t.start,end:t.end}),r=n);e.start&&e.start(n,p,u,t.start,t.end)}(b),nl(b.tagName,t)&&l(1),"continue"}var x=void 0,$=void 0,w=void 0;if(v>=0){for($=t.slice(v);!(Ju.test($)||Vu.test($)||Wu.test($)||Zu.test($)||(w=$.indexOf("<",1))<0);)v+=w,$=t.slice(v);x=t.substring(0,v)}v<0&&(x=t),x&&l(x.length),e.chars&&x&&e.chars(x,c-x.length,c)}if(t===n)return e.chars&&e.chars(t),"break"};t;){if("break"===u())break}function l(e){c+=e,t=t.substring(e)}function f(t,n,i){var a,s;if(null==n&&(n=c),null==i&&(i=c),t)for(s=t.toLowerCase(),a=o.length-1;a>=0&&o[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=o.length-1;u>=a;u--)e.end&&e.end(o[u].tag,n,i);o.length=a,r=a&&o[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,i):"p"===s&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}f()}var il,al,sl,cl,ul,ll,fl,pl,dl,vl=/^@|^v-on:/,hl=/^v-|^@|^:|^#/,ml=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,gl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,yl=/^\(|\)$/g,_l=/^\[.*\]$/,bl=/:(.*)$/,xl=/^:|^\.|^v-bind:/,$l=/\.[^.\]]+(?=[^\]]*$)/g,wl=/^v-slot(:|$)|^#/,Cl=/[\r\n]/,kl=/[ \f\t\r\n]+/g,Sl=/[\s"'<>\/=]/,Ol=k(Iu.decode),Tl="_empty_";function Al(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:Gl(e),rawAttrsMap:{},parent:n,children:[]}}function jl(t,e){il=e.warn||$s,ll=e.isPreTag||R,fl=e.mustUseProp||R,pl=e.getTagNamespace||R;var n=e.isReservedTag||R;dl=function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?n(t.attrsMap.is):n(t.tag)))},sl=ws(e.modules,"transformNode"),cl=ws(e.modules,"preTransformNode"),ul=ws(e.modules,"postTransformNode"),al=e.delimiters;var r,o,i=[],a=!1!==e.preserveWhitespace,s=e.whitespace,c=!1,u=!1;function l(t){if(f(t),c||t.processed||(t=Nl(t,e)),i.length||t===r||r.if&&(t.elseif||t.else)&&Bl(r,{exp:t.elseif,block:t}),o&&!t.forbidden)if(t.elseif||t.else)Fl(t,o);else{if(t.slotScope){var n=t.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[n]=t}o.children.push(t),t.parent=o}t.children=t.children.filter(function(t){return!t.slotScope}),f(t),t.pre&&(c=!1),ll(t.tag)&&(u=!1);for(var a=0;a<ul.length;a++)ul[a](t,e)}function f(t){if(!u)for(var e=void 0;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return ol(t,{warn:il,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,a,s,f){var p=o&&o.ns||pl(t);rt&&"svg"===p&&(n=ef(n));var d=Al(t,n,o);p&&(d.ns=p),Xl(d)&&!pt()&&(d.forbidden=!0);for(var v=0;v<cl.length;v++)d=cl[v](d,e)||d;c||(El(d),d.pre&&(c=!0)),ll(d.tag)&&(u=!0),c?Ml(d):d.processed||(Il(d),Rl(d),Hl(d)),r||(r=d),a?l(d):(o=d,i.push(d))},end:function(t,e,n){var r=i[i.length-1];i.length-=1,o=i[i.length-1],l(r)},chars:function(t,e,n){if(o&&(!rt||"textarea"!==o.tag||o.attrsMap.placeholder!==t)){var r=o.children;if(t=u||t.trim()?Yl(o)?t:Ol(t):r.length?s?"condense"===s&&Cl.test(t)?"":" ":a?" ":"":""){u||"condense"!==s||(t=t.replace(kl," "));var i=void 0,l=void 0;!c&&" "!==t&&(i=Tu(t,al))?l={type:2,expression:i.expression,tokens:i.tokens,text:t}:" "===t&&r.length&&" "===r[r.length-1].text||(l={type:3,text:t}),l&&r.push(l)}}},comment:function(t,e,n){if(o){var r={type:3,text:t,isComment:!0};0,o.children.push(r)}}}),r}function El(t){null!=Ms(t,"v-pre")&&(t.pre=!0)}function Ml(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),o=0;o<n;o++)r[o]={name:e[o].name,value:JSON.stringify(e[o].value)},null!=e[o].start&&(r[o].start=e[o].start,r[o].end=e[o].end);else t.pre||(t.plain=!0)}function Nl(t,e){Pl(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,Dl(t),zl(t),Kl(t),Jl(t);for(var n=0;n<sl.length;n++)t=sl[n](t,e)||t;return ql(t),t}function Pl(t){var e=Es(t,"key");e&&(t.key=e)}function Dl(t){var e=Es(t,"ref");e&&(t.ref=e,t.refInFor=Wl(t))}function Il(t){var e;if(e=Ms(t,"v-for")){var n=Ll(e);n&&D(t,n)}}function Ll(t){var e=t.match(ml);if(e){var n={};n.for=e[2].trim();var r=e[1].trim().replace(yl,""),o=r.match(gl);return o?(n.alias=r.replace(gl,"").trim(),n.iterator1=o[1].trim(),o[2]&&(n.iterator2=o[2].trim())):n.alias=r,n}}function Rl(t){var e=Ms(t,"v-if");if(e)t.if=e,Bl(t,{exp:e,block:t});else{null!=Ms(t,"v-else")&&(t.else=!0);var n=Ms(t,"v-else-if");n&&(t.elseif=n)}}function Fl(t,e){var n=Ul(e.children);n&&n.if&&Bl(n,{exp:t.elseif,block:t})}function Ul(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}function Bl(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Hl(t){null!=Ms(t,"v-once")&&(t.once=!0)}function zl(t){var e;"template"===t.tag?(e=Ms(t,"scope"),t.slotScope=e||Ms(t,"slot-scope")):(e=Ms(t,"slot-scope"))&&(t.slotScope=e);var n,r=Es(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||ks(t,"slot",r,js(t,"slot"))),"template"===t.tag){if(n=Ns(t,wl)){0;var o=Vl(n),i=o.name,a=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=a,t.slotScope=n.value||Tl}}else if(n=Ns(t,wl)){0;var s=t.scopedSlots||(t.scopedSlots={}),c=Vl(n),u=c.name,l=(a=c.dynamic,s[u]=Al("template",[],t));l.slotTarget=u,l.slotTargetDynamic=a,l.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=l,!0}),l.slotScope=n.value||Tl,t.children=[],t.plain=!1}}function Vl(t){var e=t.name.replace(wl,"");return e||"#"!==t.name[0]&&(e="default"),_l.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'.concat(e,'"'),dynamic:!1}}function Kl(t){"slot"===t.tag&&(t.slotName=Es(t,"name"))}function Jl(t){var e;(e=Es(t,"is"))&&(t.component=e),null!=Ms(t,"inline-template")&&(t.inlineTemplate=!0)}function ql(t){var e,n,r,o,i,a,s,c,u=t.attrsList;for(e=0,n=u.length;e<n;e++){if(r=o=u[e].name,i=u[e].value,hl.test(r))if(t.hasBindings=!0,(a=Zl(r.replace(hl,"")))&&(r=r.replace($l,"")),xl.test(r))r=r.replace(xl,""),i=bs(i),(c=_l.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=O(r))&&(r="innerHTML"),a.camel&&!c&&(r=O(r)),a.sync&&(s=Is(i,"$event"),c?As(t,'"update:"+('.concat(r,")"),s,null,!1,il,u[e],!0):(As(t,"update:".concat(O(r)),s,null,!1,il,u[e]),j(r)!==O(r)&&As(t,"update:".concat(j(r)),s,null,!1,il,u[e])))),a&&a.prop||!t.component&&fl(t.tag,t.attrsMap.type,r)?Cs(t,r,i,u[e],c):ks(t,r,i,u[e],c);else if(vl.test(r))r=r.replace(vl,""),(c=_l.test(r))&&(r=r.slice(1,-1)),As(t,r,i,a,!1,il,u[e],c);else{var l=(r=r.replace(hl,"")).match(bl),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),_l.test(f)&&(f=f.slice(1,-1),c=!0)),Os(t,r,o,i,f,c,a,u[e])}else ks(t,r,JSON.stringify(i),u[e]),!t.component&&"muted"===r&&fl(t.tag,t.attrsMap.type,r)&&Cs(t,r,"true",u[e])}}function Wl(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function Zl(t){var e=t.match($l);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}function Gl(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}function Yl(t){return"script"===t.tag||"style"===t.tag}function Xl(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}var Ql=/^xmlns:NS\d+/,tf=/^NS\d+:/;function ef(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];Ql.test(r.name)||(r.name=r.name.replace(tf,""),e.push(r))}return e}function nf(t,e){for(var n=t;n;)n.for&&n.alias===e&&il("<".concat(t.tag,' v-model="').concat(e,'">: ')+"You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.",t.rawAttrsMap["v-model"]),n=n.parent}function rf(t,e){if("input"===t.tag){var n=t.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=Es(t,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var o=Ms(t,"v-if",!0),i=o?"&&(".concat(o,")"):"",a=null!=Ms(t,"v-else",!0),s=Ms(t,"v-else-if",!0),c=of(t);Il(c),Ss(c,"type","checkbox"),Nl(c,e),c.processed=!0,c.if="(".concat(r,")==='checkbox'")+i,Bl(c,{exp:c.if,block:c});var u=of(t);Ms(u,"v-for",!0),Ss(u,"type","radio"),Nl(u,e),Bl(c,{exp:"(".concat(r,")==='radio'")+i,block:u});var l=of(t);return Ms(l,"v-for",!0),Ss(l,":type",r),Nl(l,e),Bl(c,{exp:o,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}function of(t){return Al(t.tag,t.attrsList.slice(),t.parent)}var af={preTransformNode:rf},sf=[Eu,Du,af];function cf(t,e){e.value&&Cs(t,"textContent","_s(".concat(e.value,")"),e)}function uf(t,e){e.value&&Cs(t,"innerHTML","_s(".concat(e.value,")"),e)}var lf,ff,pf={model:Js,text:cf,html:uf},df={expectHTML:!0,modules:sf,directives:pf,isPreTag:wa,isUnaryTag:Lu,mustUseProp:oa,canBeLeftOpenTag:Ru,isReservedTag:Ca,getTagNamespace:ka,staticKeys:U(sf)},vf=k(mf);function hf(t,e){t&&(lf=vf(e.staticKeys||""),ff=e.isReservedTag||R,gf(t),yf(t,!1))}function mf(t){return _("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}function gf(t){if(t.static=_f(t),1===t.type){if(!ff(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var r=t.children[e];gf(r),r.static||(t.static=!1)}if(t.ifConditions)for(e=1,n=t.ifConditions.length;e<n;e++){var o=t.ifConditions[e].block;gf(o),o.static||(t.static=!1)}}}function yf(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,r=t.children.length;n<r;n++)yf(t.children[n],e||!!t.for);if(t.ifConditions)for(n=1,r=t.ifConditions.length;n<r;n++)yf(t.ifConditions[n].block,e)}}function _f(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||b(t.tag)||!ff(t.tag)||bf(t)||!Object.keys(t).every(lf))))}function bf(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}var xf=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,$f=/\([^)]*?\);*$/,wf=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Cf={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},kf={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sf=function(t){return"if(".concat(t,")return null;")},Of={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sf("$event.target !== $event.currentTarget"),ctrl:Sf("!$event.ctrlKey"),shift:Sf("!$event.shiftKey"),alt:Sf("!$event.altKey"),meta:Sf("!$event.metaKey"),left:Sf("'button' in $event && $event.button !== 0"),middle:Sf("'button' in $event && $event.button !== 1"),right:Sf("'button' in $event && $event.button !== 2")};function Tf(t,e){var n=e?"nativeOn:":"on:",r="",o="";for(var i in t){var a=Af(t[i]);t[i]&&t[i].dynamic?o+="".concat(i,",").concat(a,","):r+='"'.concat(i,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),o?n+"_d(".concat(r,",[").concat(o.slice(0,-1),"])"):n+r}function Af(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map(function(t){return Af(t)}).join(","),"]");var e=wf.test(t.value),n=xf.test(t.value),r=wf.test(t.value.replace($f,""));if(t.modifiers){var o="",i="",a=[],s=function(e){if(Of[e])i+=Of[e],Cf[e]&&a.push(e);else if("exact"===e){var n=t.modifiers;i+=Sf(["ctrl","shift","alt","meta"].filter(function(t){return!n[t]}).map(function(t){return"$event.".concat(t,"Key")}).join("||"))}else a.push(e)};for(var c in t.modifiers)s(c);a.length&&(o+=jf(a)),i&&(o+=i);var u=e?"return ".concat(t.value,".apply(null, arguments)"):n?"return (".concat(t.value,").apply(null, arguments)"):r?"return ".concat(t.value):t.value;return"function($event){".concat(o).concat(u,"}")}return e||n?t.value:"function($event){".concat(r?"return ".concat(t.value):t.value,"}")}function jf(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(Ef).join("&&"),")return null;")}function Ef(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var n=Cf[t],r=kf[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}function Mf(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}}function Nf(t,e){t.wrapData=function(n){return"_b(".concat(n,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}}var Pf={on:Mf,bind:Nf,cloak:L},Df=function(){return function(t){this.options=t,this.warn=t.warn||$s,this.transforms=ws(t.modules,"transformCode"),this.dataGenFns=ws(t.modules,"genData"),this.directives=D(D({},Pf),t.directives);var e=t.isReservedTag||R;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}}();function If(t,e){var n=new Df(e),r=t?"script"===t.tag?"null":Lf(t,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function Lf(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ff(t,e);if(t.once&&!t.onceProcessed)return Uf(t,e);if(t.for&&!t.forProcessed)return zf(t,e);if(t.if&&!t.ifProcessed)return Bf(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return rp(t,e);var n=void 0;if(t.component)n=op(t.component,t,e);else{var r=void 0,o=e.maybeComponent(t);(!t.plain||t.pre&&o)&&(r=Vf(t,e));var i=void 0,a=e.options.bindings;o&&a&&!1!==a.__isScriptSetup&&(i=Rf(a,t.tag)),i||(i="'".concat(t.tag,"'"));var s=t.inlineTemplate?null:Yf(t,e,!0);n="_c(".concat(i).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var c=0;c<e.transforms.length;c++)n=e.transforms[c](t,n);return n}return Yf(t,e)||"void 0"}function Rf(t,e){var n=O(e),r=T(n),o=function(o){return t[e]===o?e:t[n]===o?n:t[r]===o?r:void 0},i=o("setup-const")||o("setup-reactive-const");if(i)return i;var a=o("setup-let")||o("setup-ref")||o("setup-maybe-ref");return a||void 0}function Ff(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return ".concat(Lf(t,e),"}")),e.pre=n,"_m(".concat(e.staticRenderFns.length-1).concat(t.staticInFor?",true":"",")")}function Uf(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Bf(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(Lf(t,e),",").concat(e.onceId++,",").concat(n,")"):Lf(t,e)}return Ff(t,e)}function Bf(t,e,n,r){return t.ifProcessed=!0,Hf(t.ifConditions.slice(),e,n,r)}function Hf(t,e,n,r){if(!t.length)return r||"_e()";var o=t.shift();return o.exp?"(".concat(o.exp,")?").concat(i(o.block),":").concat(Hf(t,e,n,r)):"".concat(i(o.block));function i(t){return n?n(t,e):t.once?Uf(t,e):Lf(t,e)}}function zf(t,e,n,r){var o=t.for,i=t.alias,a=t.iterator1?",".concat(t.iterator1):"",s=t.iterator2?",".concat(t.iterator2):"";return t.forProcessed=!0,"".concat(r||"_l","((").concat(o,"),")+"function(".concat(i).concat(a).concat(s,"){")+"return ".concat((n||Lf)(t,e))+"})"}function Vf(t,e){var n="{",r=Kf(t,e);r&&(n+=r+","),t.key&&(n+="key:".concat(t.key,",")),t.ref&&(n+="ref:".concat(t.ref,",")),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'.concat(t.tag,'",'));for(var o=0;o<e.dataGenFns.length;o++)n+=e.dataGenFns[o](t);if(t.attrs&&(n+="attrs:".concat(ip(t.attrs),",")),t.props&&(n+="domProps:".concat(ip(t.props),",")),t.events&&(n+="".concat(Tf(t.events,!1),",")),t.nativeEvents&&(n+="".concat(Tf(t.nativeEvents,!0),",")),t.slotTarget&&!t.slotScope&&(n+="slot:".concat(t.slotTarget,",")),t.scopedSlots&&(n+="".concat(qf(t,t.scopedSlots,e),",")),t.model&&(n+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var i=Jf(t,e);i&&(n+="".concat(i,","))}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b(".concat(n,',"').concat(t.tag,'",').concat(ip(t.dynamicAttrs),")")),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Kf(t,e){var n=t.directives;if(n){var r,o,i,a,s="directives:[",c=!1;for(r=0,o=n.length;r<o;r++){i=n[r],a=!0;var u=e.directives[i.name];u&&(a=!!u(t,i,e.warn)),a&&(c=!0,s+='{name:"'.concat(i.name,'",rawName:"').concat(i.rawName,'"').concat(i.value?",value:(".concat(i.value,"),expression:").concat(JSON.stringify(i.value)):"").concat(i.arg?",arg:".concat(i.isDynamicArg?i.arg:'"'.concat(i.arg,'"')):"").concat(i.modifiers?",modifiers:".concat(JSON.stringify(i.modifiers)):"","},"))}return c?s.slice(0,-1)+"]":void 0}}function Jf(t,e){var n=t.children[0];if(n&&1===n.type){var r=If(n,e.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map(function(t){return"function(){".concat(t,"}")}).join(","),"]}")}}function qf(t,e,n){var r=t.for||Object.keys(e).some(function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Zf(n)}),o=!!t.if;if(!r)for(var i=t.parent;i;){if(i.slotScope&&i.slotScope!==Tl||i.for){r=!0;break}i.if&&(o=!0),i=i.parent}var a=Object.keys(e).map(function(t){return Gf(e[t],n)}).join(",");return"scopedSlots:_u([".concat(a,"]").concat(r?",null,true":"").concat(!r&&o?",null,false,".concat(Wf(a)):"",")")}function Wf(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}function Zf(t){return 1===t.type&&("slot"===t.tag||t.children.some(Zf))}function Gf(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Bf(t,e,Gf,"null");if(t.for&&!t.forProcessed)return zf(t,e,Gf);var r=t.slotScope===Tl?"":String(t.slotScope),o="function(".concat(r,"){")+"return ".concat("template"===t.tag?t.if&&n?"(".concat(t.if,")?").concat(Yf(t,e)||"undefined",":undefined"):Yf(t,e)||"undefined":Lf(t,e),"}"),i=r?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(o).concat(i,"}")}function Yf(t,e,n,r,o){var i=t.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return"".concat((r||Lf)(a,e)).concat(s)}var c=n?Xf(i,e.maybeComponent):0,u=o||tp;return"[".concat(i.map(function(t){return u(t,e)}).join(","),"]").concat(c?",".concat(c):"")}}function Xf(t,e){for(var n=0,r=0;r<t.length;r++){var o=t[r];if(1===o.type){if(Qf(o)||o.ifConditions&&o.ifConditions.some(function(t){return Qf(t.block)})){n=2;break}(e(o)||o.ifConditions&&o.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}function Qf(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function tp(t,e){return 1===t.type?Lf(t,e):3===t.type&&t.isComment?np(t):ep(t)}function ep(t){return"_v(".concat(2===t.type?t.expression:ap(JSON.stringify(t.text)),")")}function np(t){return"_e(".concat(JSON.stringify(t.text),")")}function rp(t,e){var n=t.slotName||'"default"',r=Yf(t,e),o="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),i=t.attrs||t.dynamicAttrs?ip((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:O(t.name),value:t.value,dynamic:t.dynamic}})):null,a=t.attrsMap["v-bind"];return!i&&!a||r||(o+=",null"),i&&(o+=",".concat(i)),a&&(o+="".concat(i?"":",null",",").concat(a)),o+")"}function op(t,e,n){var r=e.inlineTemplate?null:Yf(e,n,!0);return"_c(".concat(t,",").concat(Vf(e,n)).concat(r?",".concat(r):"",")")}function ip(t){for(var e="",n="",r=0;r<t.length;r++){var o=t[r],i=ap(o.value);o.dynamic?n+="".concat(o.name,",").concat(i,","):e+='"'.concat(o.name,'":').concat(i,",")}return e="{".concat(e.slice(0,-1),"}"),n?"_d(".concat(e,",[").concat(n.slice(0,-1),"])"):e}function ap(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var sp=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),cp=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),up=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function lp(t,e){t&&fp(t,e)}function fp(t,e){if(1===t.type){for(var n in t.attrsMap)if(hl.test(n)){var r=t.attrsMap[n];if(r){var o=t.rawAttrsMap[n];"v-for"===n?dp(t,'v-for="'.concat(r,'"'),e,o):"v-slot"===n||"#"===n[0]?mp(r,"".concat(n,'="').concat(r,'"'),e,o):vl.test(n)?pp(r,"".concat(n,'="').concat(r,'"'),e,o):hp(r,"".concat(n,'="').concat(r,'"'),e,o)}}if(t.children)for(var i=0;i<t.children.length;i++)fp(t.children[i],e)}else 2===t.type&&hp(t.expression,t.text,e,t)}function pp(t,e,n,r){var o=t.replace(up,""),i=o.match(cp);i&&"$"!==o.charAt(i.index-1)&&n("avoid using JavaScript unary operator as property name: "+'"'.concat(i[0],'" in expression ').concat(e.trim()),r),hp(t,e,n,r)}function dp(t,e,n,r){hp(t.for||"",e,n,r),vp(t.alias,"v-for alias",e,n,r),vp(t.iterator1,"v-for iterator",e,n,r),vp(t.iterator2,"v-for iterator",e,n,r)}function vp(t,e,n,r,o){if("string"==typeof t)try{new Function("var ".concat(t,"=_"))}catch(Np){r("invalid ".concat(e,' "').concat(t,'" in expression: ').concat(n.trim()),o)}}function hp(t,e,n,r){try{new Function("return ".concat(t))}catch(Np){var o=t.replace(up,"").match(sp);n(o?"avoid using JavaScript keyword as property name: "+'"'.concat(o[0],'"\n  Raw expression: ').concat(e.trim()):"invalid expression: ".concat(Np.message," in\n\n")+"    ".concat(t,"\n\n")+"  Raw expression: ".concat(e.trim(),"\n"),r)}}function mp(t,e,n,r){try{new Function(t,"")}catch(Np){n("invalid function parameter expression: ".concat(Np.message," in\n\n")+"    ".concat(t,"\n\n")+"  Raw expression: ".concat(e.trim(),"\n"),r)}}var gp=2;function yp(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length);for(var r=t.split(/\r?\n/),o=0,i=[],a=0;a<r.length;a++)if((o+=r[a].length+1)>=e){for(var s=a-gp;s<=a+gp||n>o;s++)if(!(s<0||s>=r.length)){i.push("".concat(s+1).concat(_p(" ",3-String(s+1).length),"|  ").concat(r[s]));var c=r[s].length;if(s===a){var u=e-(o-c)+1,l=n>o?c-u:n-e;i.push("   |  "+_p(" ",u)+_p("^",l))}else if(s>a){if(n>o){var f=Math.min(n-o,c);i.push("   |  "+_p("^",f))}o+=c+1}}break}return i.join("\n")}function _p(t,e){var n="";if(e>0)for(;1&e&&(n+=t),!((e>>>=1)<=0);)t+=t;return n}function bp(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),L}}function xp(t){var e=Object.create(null);return function(n,r,o){(r=D({},r)).warn;delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(e[i])return e[i];var a=t(n,r);var s={},c=[];return s.render=bp(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(t){return bp(t,c)}),e[i]=s}}function $p(t){return function(e){function n(n,r){var o=Object.create(e),i=[],a=[],s=function(t,e,n){(n?a:i).push(t)};if(r)for(var c in r.modules&&(o.modules=(e.modules||[]).concat(r.modules)),r.directives&&(o.directives=D(Object.create(e.directives||null),r.directives)),r)"modules"!==c&&"directives"!==c&&(o[c]=r[c]);o.warn=s;var u=t(n.trim(),o);return u.errors=i,u.tips=a,u}return{compile:n,compileToFunctions:xp(n)}}}var wp,Cp=$p(function(t,e){var n=jl(t.trim(),e);!1!==e.optimize&&hf(n,e);var r=If(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}),kp=Cp(df),Sp=kp.compileToFunctions;function Op(t){return(wp=wp||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',wp.innerHTML.indexOf("&#10;")>0}var Tp=!!et&&Op(!1),Ap=!!et&&Op(!0),jp=k(function(t){var e=Aa(t);return e&&e.innerHTML}),Ep=Bi.prototype.$mount;function Mp(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}Bi.prototype.$mount=function(t,e){if((t=t&&Aa(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=jp(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=Mp(t));if(r){0;var o=Sp(r,{outputSourceRange:!1,shouldDecodeNewlines:Tp,shouldDecodeNewlinesForHref:Ap,delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return Ep.call(this,t,e)},Bi.compile=Sp;
},{}],"Lue2":[function(require,module,exports) {
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("vue"));function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){return o(t)||s(t)||i()}function o(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var a="undefined"!=typeof window;function u(t){return Array.isArray(t)||"object"===r(t)?Object.freeze(t):t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,r){var n=r.passengers[0],o="function"==typeof n?n(e):r.passengers;return t.concat(o)},[])}function c(t,e){return t.map(function(t,e){return[e,t]}).sort(function(t,r){return e(t[1],r[1])||t[0]-r[0]}).map(function(t){return t[1]})}function p(t,e){return e.reduce(function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e},{})}var h={},d={},f={},g=e.extend({data:function(){return{transports:h,targets:d,sources:f,trackInstances:a}},methods:{open:function(t){if(a){var r=t.to,n=t.from,o=t.passengers,s=t.order,i=void 0===s?1/0:s;if(r&&n&&o){var l={to:r,from:n,passengers:u(o),order:i};-1===Object.keys(this.transports).indexOf(r)&&e.set(this.transports,r,[]);var p=this.$_getTransportIndex(l),h=this.transports[r].slice(0);-1===p?h.push(l):h[p]=l,this.transports[r]=c(h,function(t,e){return t.order-e.order})}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.to,n=t.from;if(r&&(n||!1!==e)&&this.transports[r])if(e)this.transports[r]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var s=this.transports[r].slice(0);s.splice(o,1),this.transports[r]=s}}},registerTarget:function(t,e,r){a&&(this.trackInstances&&!r&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,r){a&&(this.trackInstances&&!r&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,r=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===r)return+n;return-1}}}),m=new g(h),y=1,v=e.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(y++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick(function(){m.registerSource(t.name,t)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){m.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};m.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:n(t),order:this.order};m.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],r=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(r,[this.normalizeOwnChildren(e)]):this.slim?t():t(r,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=e.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:m.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick(function(){m.registerTarget(t.name,t)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){m.unregisterTarget(e),m.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick(function(){t.firstRender=!1})},beforeDestroy:function(){m.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return l(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),r=this.children(),n=this.transition||this.tag;return e?r[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},r)}}),b=0,T=["disabled","name","order","slim","slotProps","tag","to"],$=["multiple","transition"],w=e.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(b++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(m.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n        Aborting because 'bail: true' is set")):this.portalTarget=m.targets[e.name];else{var r=e.append;if(r){var n="string"==typeof r?r:"DIV",o=document.createElement(n);t.appendChild(o),t=o}var s=p(this.$props,$);s.slim=this.targetSlim,s.tag=this.targetTag,s.slotProps=this.targetSlotProps,s.name=this.to,this.portalTarget=new S({el:t,parent:this.$parent||this,propsData:s})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,T);return t(v,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var r=this.$scopedSlots.manual({to:this.to});return Array.isArray(r)&&(r=r[0]),r||t()}});function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",v),t.component(e.portalTargetName||"PortalTarget",S),t.component(e.MountingPortalName||"MountingPortal",w)}var x={install:P};exports.default=x,exports.Portal=v,exports.PortalTarget=S,exports.MountingPortal=w,exports.Wormhole=m;
},{"vue":"HYXJ"}],"CDb8":[function(require,module,exports) {
"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(n){e(t,n,r[n])})}return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.SSR=exports.Plugin=exports.Fragment=void 0;var n=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n},set:function(e){console.warn("tried to set frozen property ".concat(t," with ").concat(e))}})},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})},o={abstract:!0,name:"Fragment",props:{name:{type:String,default:function(){return Math.floor(Date.now()*Math.random()).toString(16)}}},mounted:function(){var e=this.$el,t=e.parentNode,o=document.createComment("fragment#".concat(this.name,"#head")),i=document.createComment("fragment#".concat(this.name,"#tail"));t.insertBefore(o,e),t.insertBefore(i,e),e.appendChild=function(r){t.insertBefore(r,i),n(r,"parentNode",e)},e.insertBefore=function(r,o){t.insertBefore(r,o),n(r,"parentNode",e)},e.removeChild=function(e){t.removeChild(e),r(e,"parentNode")},Array.from(e.childNodes).forEach(function(t){return e.appendChild(t)}),t.removeChild(e),n(e,"parentNode",t),n(e,"nextSibling",i.nextSibling);var a=t.insertBefore;t.insertBefore=function(n,r){a.call(t,n,r!==e?r:o)};var c=t.removeChild;t.removeChild=function(n){if(n===e){for(;o.nextSibling!==i;)e.removeChild(o.nextSibling);t.removeChild(o),t.removeChild(i),r(e,"parentNode"),t.insertBefore=a,t.removeChild=c}else c.call(t,n)}},render:function(e){var n=this,r=this.$slots.default;return r&&r.length&&r.forEach(function(e){return e.data=t({},e.data,{attrs:t({fragment:n.name},(e.data||{}).attrs)})}),e("div",{attrs:{fragment:this.name}},r)}};function i(e,t){}var a=exports.Fragment=o,c=exports.SSR=i,f=exports.Plugin={install:function(e){e.component("fragment",o)}},l={Fragment:o,Plugin:f,SSR:i},u=exports.default=l;
},{}],"gIqS":[function(require,module,exports) {
function e(e,o,t,n,r,u,i){try{var d=e[u](i),l=d.value}catch(s){return void t(s)}d.done?o(l):Promise.resolve(l).then(n,r)}function o(o){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=o.apply(t,n);function d(o){e(i,r,u,d,l,"next",o)}function l(o){e(i,r,u,d,l,"throw",o)}d(void 0)})}}module.exports=o,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"DCTP":[function(require,module,exports) {
function e(e){if(Array.isArray(e))return e}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"LoeL":[function(require,module,exports) {
function e(e,l){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,u,n,o,f=[],a=!0,i=!1;try{if(n=(r=r.call(e)).next,0===l){if(Object(r)!==r)return;a=!1}else for(;!(a=(t=n.call(r)).done)&&(f.push(t.value),f.length!==l);a=!0);}catch(d){i=!0,u=d}finally{try{if(!a&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(i)throw u}}return f}}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"jEQo":[function(require,module,exports) {
function e(e,o){(null==o||o>e.length)&&(o=e.length);for(var l=0,r=new Array(o);l<o;l++)r[l]=e[l];return r}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"Dbv9":[function(require,module,exports) {
var r=require("./arrayLikeToArray.js");function e(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./arrayLikeToArray.js":"jEQo"}],"MWEO":[function(require,module,exports) {
function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"DERy":[function(require,module,exports) {
var e=require("./arrayWithHoles.js"),r=require("./iterableToArrayLimit.js"),o=require("./unsupportedIterableToArray.js"),t=require("./nonIterableRest.js");function u(u,s){return e(u)||r(u,s)||o(u,s)||t()}module.exports=u,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./arrayWithHoles.js":"DCTP","./iterableToArrayLimit.js":"LoeL","./unsupportedIterableToArray.js":"Dbv9","./nonIterableRest.js":"MWEO"}],"Qodp":[function(require,module,exports) {
var define;
var t,r=require("./typeof.js").default;function e(){"use strict";module.exports=e=function(){return t},module.exports.__esModule=!0,module.exports.default=module.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(P){f=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,a=Object.create(o.prototype),u=new k(n||[]);return i(a,"_invoke",{value:E(t,e,u)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(P){return{type:"throw",arg:P}}}t.wrap=h;var p={};function d(){}function v(){}function y(){}var g={};f(g,u,function(){return this});var m=Object.getPrototypeOf,w=m&&m(m(G([])));w&&w!==n&&o.call(w,u)&&(g=w);var x=y.prototype=d.prototype=Object.create(g);function L(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function b(t,e){var n;i(this,"_invoke",{value:function(i,a){function u(){return new e(function(n,u){!function n(i,a,u,c){var l=s(t[i],t,a);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,c)},function(t){n("throw",t,u,c)}):e.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,c)})}c(l.arg)}(i,a,n,u)})}return n=n?n.then(u,u):u()}})}function E(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===p)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}function _(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,_(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function G(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:N}}function N(){return{value:void 0,done:!0}}return v.prototype=y,i(x,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=f(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===v||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,f(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},L(b.prototype),f(b.prototype,c,function(){return this}),t.AsyncIterator=b,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new b(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},L(x),f(x,l,"Generator"),f(x,u,function(){return this}),f(x,"toString",function(){return"[object Generator]"}),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=G,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:G(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./typeof.js":"xOn8"}],"BxGn":[function(require,module,exports) {
function e(o){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}var o=require("../helpers/regeneratorRuntime")();module.exports=o;try{regeneratorRuntime=o}catch(t){"object"===("undefined"==typeof globalThis?"undefined":e(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}
},{"../helpers/regeneratorRuntime":"Qodp"}],"D1kn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@babel/runtime/helpers/defineProperty"));function t(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function o(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?r(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var n=o({},wptbAdminSettingsData.options),i=o({},wptbAdminSettingsData.options),s={data:function(){return{store:n,rawStore:i}},methods:{revertStore:function(){var e=this;Object.keys(this.store).map(function(t){Object.prototype.hasOwnProperty.call(e.store,t)&&(e.store[t]=e.rawStore[t])})}}},c=exports.default=s;
},{"@babel/runtime/helpers/defineProperty":"cQfh"}],"wm3G":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@babel/runtime/helpers/defineProperty"));function t(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function s(t){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?r(Object(a),!0).forEach(function(r){(0,e.default)(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}var a={withMessageData:{busy:!1,show:!1,message:"",type:"ok",intervalId:-1,intervalTime:5e3}},i=s({},a.withMessageData),n={data:function(){return a},methods:{isBusy:function(){return this.withMessageData.busy},setMessage:function(e){var t=this,r=s(s({},i),e);this.withMessageData.message=r.message,this.withMessageData.type=r.type,this.withMessageData.show=!0,clearInterval(this.withMessageData.intervalId),this.withMessageData.intervalId=setInterval(function(){t.withMessageData.show=!1},r.intervalTime)},setBusy:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.withMessageData.busy=e}}},o=exports.default=n;
},{"@babel/runtime/helpers/defineProperty":"cQfh"}],"vi91":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:["logoSrc","logoAlt","pluginName"]};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wptb-settings-header"},[e("div",{staticClass:"wptb-settings-brand"},[e("img",{attrs:{src:t.logoSrc,alt:t.logoAlt}}),t._v(" "),e("span",{staticClass:"wptb-settings-header-name"},[t._v(" "+t._s(t.pluginName)+" ")])]),t._v(" "),e("div",{staticClass:"wptb-settings-links"},[t._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"bosS":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:{name:{type:String,default:"section_item"},current:{type:String,default:""},label:{type:String,default:"Section Item"},disabled:{type:Boolean,default:!1}},methods:{activePosition:function(){void 0!==this.current&&this.current!==this.name||this.$emit("activeSectionElement",this.$refs.sectionItem)},activateSection:function(t){this.disabled||this.$emit("sectionchange",this.name,t.target)}},computed:{isActive:function(){return this.activePosition(),void 0===this.current||this.current===this.name},getLabel:function(){return void 0!==this.label?this.label:this.name}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"sectionItem",staticClass:"wptb-settings-section-item",class:{disabled:e.disabled||!e.isActive},on:{click:function(t){return e.activateSection(t)}}},[e._v(" "+e._s(e.getLabel)+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"jLHe":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:["activeItem","relativeParent"],methods:{toPx:function(t){return"".concat(t,"px")}},computed:{styleCalculations:function(){if(this.activeItem){var t=this.activeItem.getBoundingClientRect(),e=this.relativeParent.getBoundingClientRect(),i=Math.abs(t.left-e.left);return{width:this.toPx(t.width),height:"2px",bottom:0,left:this.toPx(i)}}return{}}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-menu-active-section-indicator",style:this.styleCalculations})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"yPIx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("@babel/runtime/helpers/defineProperty")),t=n(require("./SectionItem")),r=n(require("./ActiveSectionIndicator"));function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c=exports.default={model:{prop:"currentSection",event:"updateSection"},props:{child:{type:Boolean,default:!1},items:null,currentSection:String,disabled:{type:Boolean,default:!1}},components:{SectionItem:t.default,ActiveSectionIndicator:r.default},data:function(){return{innerCurrentSection:"",activeSectionElement:null}},mounted:function(){this.innerCurrentSection=this.currentSection||this.items[0]},watch:{innerCurrentSection:function(e){this.$emit("updateSection",e)}},computed:{getItems:function(){var e=this.items;return Object.keys(e).reduce(function(t,r){return Object.prototype.hasOwnProperty.call(e,r)&&t.push(o(o({priority:0},e[r]),{},{id:r})),t},[]).sort(function(e,t){return"general"===e.id||"general"===t.id?"general"===e.id?-1:1:t.priority-e.priority})}},methods:{handleSectionChange:function(e){this.innerCurrentSection=e},handleActiveSectionElement:function(e){this.activeSectionElement=e}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"wrapper",staticClass:"wptb-settings-sections-wrapper",class:{child:e.child}},[e._l(e.getItems,function(t){return n("section-item",{key:t.id,attrs:{name:t.id,label:t.label,current:e.innerCurrentSection,disabled:e.disabled},on:{sectionchange:e.handleSectionChange,activeSectionElement:e.handleActiveSectionElement}})}),e._v(" "),n("active-section-indicator",{attrs:{"relative-parent":e.$refs.wrapper,"active-item":e.activeSectionElement}})],2),e._v(" "),e._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/defineProperty":"cQfh","./SectionItem":"bosS","./ActiveSectionIndicator":"jLHe"}],"SbnK":[function(require,module,exports) {

(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(t,n){return(0,n._c)("span",{staticClass:"dashicons dashicons-image-rotate wptb-settings-fetching"})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:!0});})();
},{}],"P9T4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("../mixins/withMessage")),t=u(require("./BusyRotate"));function u(e){return e&&e.__esModule?e:{default:e}}var r=exports.default={components:{BusyRotate:t.default},mixins:[e.default]};
(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",{staticClass:"wptb-settings-messages"},[s.withMessageData.busy?e("busy-rotate"):s._e(),s._v(" "),e("transition",{attrs:{name:"wptb-fade"}},[s.withMessageData.show?e("span",{staticClass:"wptb-settings-message",class:[s.withMessageData.type]},[s._v(s._s(s.withMessageData.message))]):s._e()])],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"../mixins/withMessage":"wm3G","./BusyRotate":"SbnK"}],"ksMR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{disabled:Boolean,type:{type:String,default:"primary"},size:{type:String,default:"normal"}},methods:{handleClick:function(){this.disabled||this.$emit("click")}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-settings-button",class:[{disabled:this.disabled},this.type,this.size],on:{click:this.handleClick}},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"nwtb":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MessageDisplay.vue")),s=t(require("./MenuButton"));function t(e){return e&&e.__esModule?e:{default:e}}var u=exports.default={props:["messageType","messageShow","messageBody","messageBusy"],components:{MessageDisplay:e.default,MenuButton:s.default}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"wptb-settings-footer"},[s("message-display",{attrs:{busy:e.messageBusy,message:e.messageBody,show:e.messageShow,type:e.messageType}}),e._v(" "),s("div",{staticClass:"wptb-settings-button-container"},[s("menu-button",{staticStyle:{visibility:"hidden"}},[e._v("dummy")]),e._v(" "),e._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"./MessageDisplay.vue":"P9T4","./MenuButton":"ksMR"}],"Bhde":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:["title"]};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"wptb-setting-control"},[this.title?s("div",{staticClass:"title"},[this._v(this._s(this.title))]):this._e(),this._v(" "),this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"yXWm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{fieldData:Object,modelBind:Object,masterVisibility:{type:Function,default:function(){return!0}}},methods:{isType:function(e){return this.fieldData.type===e}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,i=e.$createElement,d=e._self._c||i;return e.masterVisibility()?d("div",[e.isType("multiCheckbox")?d("div",e._l(e.fieldData.options,function(i,a){return d("div",{key:i,staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],a)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],t=i.target,l=!!t.checked;if(Array.isArray(d)){var o=a,n=e._i(d,o);t.checked?n<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([o])):n>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,n).concat(d.slice(n+1)))}else e.$set(e.modelBind,e.fieldData.id,l)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(i))])])}),0):e.isType("checkbox")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],null)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],a=i.target,t=!!a.checked;if(Array.isArray(d)){var l=e._i(d,null);a.checked?l<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([null])):l>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,l).concat(d.slice(l+1)))}else e.$set(e.modelBind,e.fieldData.id,t)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))])])]):e.isType("dropdown")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("select",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id},on:{change:function(i){var d=Array.prototype.filter.call(i.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.modelBind,e.fieldData.id,i.target.multiple?d:d[0])}}},e._l(e.fieldData.options,function(i){return d("option",{key:i.label,domProps:{value:i.value}},[e._v(" "+e._s(i.label)+" ")])}),0),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))]),e._v(" "),e._t("default")],2)]):e._e()]):e._e()},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"vTRD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{center:{type:Boolean,default:!1}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-settings-controls-wrapper",class:[this.center?"center":"grid"]},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"jkrZ":[function(require,module,exports) {

(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("portal",{attrs:{to:"footerButtons"}},[e("div",{staticClass:"wptb-settings-button-container"},[this._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"fmPj":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=a(require("../components/SettingCard")),n=a(require("../components/ControlItem")),r=a(require("../components/MenuContent")),o=a(require("../components/MenuButton")),u=a(require("../components/Settings/FooterButtons"));function a(e){return e&&e.__esModule?e:{default:e}}var d=exports.default={props:{currentFields:{type:Array,default:function(){return[]}},store:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1}},components:{SettingCard:t.default,ControlItem:n.default,MenuContent:r.default,Fragment:e.Fragment,MenuButton:o.default,FooterButtons:u.default}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("fragment",[n("menu-content",t._l(t.currentFields,function(e){return n("setting-card",{key:e.id,attrs:{title:e.title||e.label}},[n("control-item",{attrs:{"field-data":e,modelBind:t.store}})],1)}),1),t._v(" "),n("footer-buttons",[n("menu-button",{attrs:{type:"danger",disabled:t.disabled},on:{click:function(e){return t.$emit("resetStore")}}},[t._v(t._s(t.strings.revert)+" ")]),t._v(" "),n("menu-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:function(e){return t.$emit("submitSettings")}}},[t._v(t._s(t.strings.submit)+" ")])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"vue-fragment":"CDb8","../components/SettingCard":"Bhde","../components/ControlItem":"yXWm","../components/MenuContent":"vTRD","../components/MenuButton":"ksMR","../components/Settings/FooterButtons":"jkrZ"}],"TQBY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=exports.default={props:{label:{type:String,default:"row label"}},components:{Fragment:e.Fragment}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("fragment",[e("div",{staticClass:"wptb-version-control-row-element wptb-version-control-row-label"},[this._v(this._s(this.label))]),this._v(" "),e("div",{staticClass:"wptb-version-control-row-element wptb-version-control-row-slot"},[this._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"vue-fragment":"CDb8"}],"j6V8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:{latestVersion:{type:String,default:"1.0.0"},version:{type:String,default:"1.0.0"}},computed:{indicatorStyle:function(){return{"wptb-version-indicator-match":this.latestVersion===this.version,"wptb-version-indicator-low":this.latestVersion!==this.version}}}};
(function(){var i=exports.default||module.exports;"function"==typeof i&&(i=i.options),Object.assign(i,{render:function(){var i=this.$createElement,t=this._self._c||i;return t("div",{staticClass:"wptb-version-indicator"},[t("div",{staticClass:"wptb-version-indicator-circle",class:this.indicatorStyle}),this._v(" "),t("div",{staticClass:"wptb-version-indicator-version"},[this._v(this._s(this.version))])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"sarO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{rawChangelog:{type:String,default:"changelog"},version:{type:String,default:"1.0.0"}},data:function(){return{parsedChangelog:{}}},mounted:function(){var e=this,r=document.createElement("div");r.innerHTML=this.rawChangelog;var t=Array.from(r.querySelectorAll("h4")),n=Array.from(r.querySelectorAll("ul"));t.map(function(r,t){var o=r.textContent;e.parsedChangelog[o]=void 0!==n[t]?n[t].outerHTML:""})},computed:{getVersionChangelog:function(){return this.parsedChangelog[this.version]?this.prepareHeader(this.version)+this.parsedChangelog[this.version]:this.prepareHeader("no changelog found for version".concat(this.version))}},methods:{prepareHeader:function(e){return'<h4 style="text-align: center;">'.concat(e,"</h4>")}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"wptb-unselectable wptb-version-control-changelog",domProps:{innerHTML:this._s(this.getVersionChangelog)}})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"qeqP":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:{templateData:{type:Object,default:function(){return{}}}},computed:{sectionData:function(){return this.templateData}}};
},{}],"ZYQN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{title:{type:String,default:"title"},message:{type:String,default:"message"}},computed:{messageHtml:function(){return"<p>".concat(this.message,"</p>")}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"wptb-disclaimer-container"},[s("div",{staticClass:"wptb-disclaimer-title"},[this._v(this._s(this.title)+":")]),this._v(" "),s("div",{staticClass:"wptb-disclaimer-message",domProps:{innerHTML:this._s(this.messageHtml)}})])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"V4Tn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=d(require("@babel/runtime/helpers/typeof")),t=require("vue-fragment"),s=d(require("./MenuContent")),n=d(require("./MenuButton")),r=d(require("./VersionControlRow")),i=d(require("./VersionIndicator")),o=d(require("./Changelog")),a=d(require("../mixins/withMessage")),u=d(require("./Settings/FooterButtons")),l=d(require("../mixins/SettingsMenuSection")),c=d(require("$Settings/Disclaimer"));function d(e){return e&&e.__esModule?e:{default:e}}var f=exports.default={components:{Disclaimer:c.default,FooterButtons:u.default,VersionControlRow:r.default,MenuContent:s.default,Fragment:t.Fragment,MenuButton:n.default,VersionIndicator:i.default,Changelog:o.default},mixins:[a.default,l.default],data:function(){return{selectedVersion:"1.0.0",currentVersion:"1.0.0",latestVersion:"1.0.0",allVersions:{},installResult:!1,showForm:!1,form:"<p>form</p>"}},mounted:function(){var e=this.sectionData.currentVersion;this.currentVersion=e,this.latestVersion=this.sectionData.latestVersion,this.allVersions=this.sectionData.allVersions,this.selectedVersion=void 0!==this.allVersions[e]?e:this.latestVersion},computed:{showUpdateToLatest:function(){return this.currentVersion!==this.latestVersion},sortedVersions:function(){return Object.keys(this.allVersions).sort(function(e,t){return e>t?-1:e<t?1:0})}},methods:{isVersionSelected:function(e){return this.selectedVersion===e},updateToLatest:function(){this.selectedVersion=this.latestVersion,this.installVersion()},installVersion:function(){var t=this;if(!this.isVersionSelected(this.currentVersion)&&!this.isBusy()&&window.confirm(this.strings.rollbackConfirmation)){this.setBusy(!0);var s=new FormData,n=this.sectionData.security,r=n.action,i=n.nonce,o=n.ajaxUrl;s.append("action",r),s.append("nonce",i),s.append("version",this.selectedVersion);var a=!1;fetch(o,{method:"POST",body:s}).then(function(e){if(e.ok){var t=e.headers.get("Content-Type");return t.includes("text/plain-text")?e.text():t.includes("text/html")?(a=!0,e.text()):e.json()}throw new Error("an error occurred, try again later")}).then(function(s){if("object"===(0,e.default)(s)){if(s.error)throw new Error(s.error);t.setMessage({message:s.message}),t.setInstallResult(!0)}else{if(!a)throw new Error(s);t.showForm=!0,t.form=s}}).catch(function(e){t.setMessage({type:"error",message:e}),t.setInstallResult(!1)}).finally(function(){t.setBusy(!1)})}},setInstallResult:function(e){this.installResult=e},reloadPage:function(){window.location.reload()}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("fragment",[s("menu-content",{attrs:{center:!0}},[t.showForm?s("div",{domProps:{innerHTML:t._s(t.form)}}):s("div",{staticClass:"wptb-settings-version-control"},[s("div",{staticClass:"wptb-version-control-main"},[s("div",{staticClass:"wptb-version-control-main-row"},[t._v(t._s(t.strings.versionControlInfo))]),t._v(" "),s("div",{staticClass:"wptb-version-control-controls"},[s("version-control-row",{attrs:{label:t.strings.yourVersion}},[s("version-indicator",{attrs:{"latest-version":t.latestVersion,version:t.currentVersion}})],1),t._v(" "),s("version-control-row",{attrs:{label:t.strings.latestVersion}},[s("version-indicator",{attrs:{"latest-version":t.latestVersion,version:t.latestVersion}}),t._v(" "),t.showUpdateToLatest?s("a",{staticClass:"wptb-version-control-anchor",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.updateToLatest.apply(null,arguments)}}},[t._v(t._s(t.strings.updateToLatest))]):t._e()],1),t._v(" "),s("version-control-row",{attrs:{label:t.strings.installVersion}},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedVersion,expression:"selectedVersion"}],attrs:{disabled:t.isBusy()},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedVersion=e.target.multiple?s:s[0]}}},t._l(t.sortedVersions,function(e){return s("option",{key:e,attrs:{disabled:e===t.currentVersion},domProps:{selected:t.isVersionSelected(e)}},[t._v(" "+t._s(e)+" ")])}),0)])],1),t._v(" "),s("disclaimer",{attrs:{title:t.strings.warning,message:t.strings.warningInfo}})],1),t._v(" "),s("changelog",{attrs:{version:t.selectedVersion,"raw-changelog":t.sectionData.changelog}})],1)]),t._v(" "),s("footer-buttons",[t.installResult?t._e():s("menu-button",{attrs:{disabled:t.isVersionSelected(t.currentVersion)||t.isBusy(),type:"primary"},on:{click:t.installVersion}},[t._v(t._s(t.strings.installVersion+" "+t.selectedVersion)+" ")]),t._v(" "),t.installResult?s("menu-button",{attrs:{type:"primary"},on:{click:t.reloadPage}},[t._v(t._s(t.strings.reload))]):t._e()],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/typeof":"xOn8","vue-fragment":"CDb8","./MenuContent":"vTRD","./MenuButton":"ksMR","./VersionControlRow":"TQBY","./VersionIndicator":"j6V8","./Changelog":"sarO","../mixins/withMessage":"wm3G","./Settings/FooterButtons":"jkrZ","../mixins/SettingsMenuSection":"qeqP","$Settings/Disclaimer":"ZYQN"}],"L7e6":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,t=arguments[3];!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof e&&e.amd?e(r):(t=t||self).CodeMirror=r()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=n||i||o,s=l&&(n?document.documentMode||6:+(o||i)[1]),a=!o&&/WebKit\//.test(e),u=a&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),h=c&&+c[1],f=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),v=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),m=/Android/.test(e),y=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),C=f&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(f=!1,a=!0);var S=b&&(u||f&&(null==C||C<12.11)),L=r||l&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,M=function(e,t){var r=e.className,n=k(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return N(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e,t,r,n){var i=A(e,t,r,n);return i.setAttribute("role","presentation"),i}function W(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function H(e){var t,r=e.ownerDocument||e;try{t=e.activeElement}catch(Ee){t=r.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function F(e,t){var r=e.className;k(t).test(r)||(e.className+=(r?" ":"")+t)}function P(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!k(r[n]).test(t)&&(t+=" "+r[n]);return t}T=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(Ee){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var E=function(e){e.select()};function R(e){return e.display.wrapper.ownerDocument}function z(e){return I(e.display.wrapper)}function I(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function B(e){return R(e).defaultView}function G(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function U(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function V(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=n||0,l=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return l+(t-o);l+=s-o,l+=r-l%r,o=s+1}}v?E=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(E=function(e){try{e.select()}catch(t){}});var K=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};function j(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var X=50,Y={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},_={origin:"*mouse"},q={origin:"+move"};function Z(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e.length);var l=o-n;if(o==e.length||i+l>=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var Q=[""];function J(e){for(;Q.length<=e;)Q.push(ee(Q)+" ");return Q[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function re(){}function ne(e,t){var r;return Object.create?r=Object.create(e):(re.prototype=e,r=new re),t&&U(t,r),r}var ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ie.test(e))}function le(e,t){return t?!!(t.source.indexOf("\\w")>-1&&oe(e))||t.test(e):oe(e)}function se(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\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 ue(e){return e.charCodeAt(0)>=768&&ae.test(e)}function ce(e,t,r){for(;(r<0?t>0:t<e.length)&&ue(e.charAt(t));)t+=r;return t}function he(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}var fe=null;function de(e,t,r){var n;fe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:fe=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:fe=i)}return null!=n?n:fe}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(a,u){var c="ltr"==u?"L":"R";if(0==a.length||"ltr"==u&&!r.test(a))return!1;for(var h,f=a.length,d=[],p=0;p<f;++p)d.push((h=a.charCodeAt(p))<=247?e.charAt(h):1424<=h&&h<=1524?"R":1536<=h&&h<=1785?t.charAt(h-1536):1774<=h&&h<=2220?"r":8192<=h&&h<=8203?"w":8204==h?"b":"L");for(var g=0,v=c;g<f;++g){var m=d[g];"m"==m?d[g]=v:v=m}for(var y=0,b=c;y<f;++y){var w=d[y];"1"==w&&"r"==b?d[y]="n":i.test(w)&&(b=w,"r"==w&&(d[y]="R"))}for(var x=1,C=d[0];x<f-1;++x){var S=d[x];"+"==S&&"1"==C&&"1"==d[x+1]?d[x]="1":","!=S||C!=d[x+1]||"1"!=C&&"n"!=C||(d[x]=C),C=S}for(var L=0;L<f;++L){var k=d[L];if(","==k)d[L]="N";else if("%"==k){var T=void 0;for(T=L+1;T<f&&"%"==d[T];++T);for(var M=L&&"!"==d[L-1]||T<f&&"1"==d[T]?"1":"N",N=L;N<T;++N)d[N]=M;L=T-1}}for(var O=0,A=c;O<f;++O){var D=d[O];"L"==A&&"1"==D?d[O]="L":i.test(D)&&(A=D)}for(var W=0;W<f;++W)if(n.test(d[W])){var H=void 0;for(H=W+1;H<f&&n.test(d[H]);++H);for(var F="L"==(W?d[W-1]:c),P=F==("L"==(H<f?d[H]:c))?F?"L":"R":c,E=W;E<H;++E)d[E]=P;W=H-1}for(var R,z=[],I=0;I<f;)if(o.test(d[I])){var B=I;for(++I;I<f&&o.test(d[I]);++I);z.push(new s(0,B,I))}else{var G=I,U=z.length,V="rtl"==u?1:0;for(++I;I<f&&"L"!=d[I];++I);for(var K=G;K<I;)if(l.test(d[K])){G<K&&(z.splice(U,0,new s(1,G,K)),U+=V);var j=K;for(++K;K<I&&l.test(d[K]);++K);z.splice(U,0,new s(2,j,K)),U+=V,G=K}else++K;G<I&&z.splice(U,0,new s(1,G,I))}return"ltr"==u&&(1==z[0].level&&(R=a.match(/^\s+/))&&(z[0].from=R[0].length,z.unshift(new s(0,0,R[0].length))),1==ee(z).level&&(R=a.match(/\s+$/))&&(ee(z).to-=R[0].length,z.push(new s(0,f-R[0].length,f)))),"rtl"==u?z.reverse():z}}();function ge(e,t){var r=e.order;return null==r&&(r=e.order=pe(e.text,t)),r}var ve=[],me=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||ve).concat(r)}};function ye(e,t){return e._handlers&&e._handlers[t]||ve}function be(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=j(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var r=ye(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function xe(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),we(e,r||t.type,e,t),Me(t)||t.codemirrorIgnore}function Ce(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==j(r,t[n])&&r.push(t[n])}function Se(e,t){return ye(e,t).length>0}function Le(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){ke(e),Te(e)}function Oe(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,We,He=function(){if(l&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==De){var t=A("span","​");O(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&s<8))}var r=De?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Pe(e){if(null!=We)return We;var t=O(e,document.createTextNode("AخA")),r=T(t,0,1).getBoundingClientRect(),n=T(t,1,2).getBoundingClientRect();return N(e),!(!r||r.left==r.right)&&(We=n.right-r.right<3)}var Ee,Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},ze=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(Ee){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(Ee){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ee=A("div"))||(Ee.setAttribute("oncopy","return;"),"function"==typeof Ee.oncopy),Be=null;var Ge={},Ue={};function Ve(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ve(t);var r=Ge[t.name];if(!r)return Ke(e,"text/plain");var n=r(e,t);if(je.hasOwnProperty(t.name)){var i=je[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var je={};function Xe(e,t){U(t,je.hasOwnProperty(e)?je[e]:je[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function $e(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function _e(e,t,r){return!e.startState||e.startState(t,r)}var qe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function Qe(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;i==r.line&&(o=o.slice(0,r.ch)),i==t.line&&(o=o.slice(t.ch)),n.push(o),++i}),n}function Je(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)}),n}function et(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function tt(e){if(null==e.parent)return null;for(var t=e.parent,r=j(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function rt(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var l=0;l<e.lines.length;++l){var s=e.lines[l].height;if(t<s)break;t-=s}return r+l}function nt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,r){if(void 0===r&&(r=null),!(this instanceof ot))return new ot(e,t,r);this.line=e,this.ch=t,this.sticky=r}function lt(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==lt(e,t)}function at(e){return ot(e.line,e.ch)}function ut(e,t){return lt(e,t)<0?t:e}function ct(e,t){return lt(e,t)<0?e:t}function ht(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return ot(e.first,0);var r=e.first+e.size-1;return t.line>r?ot(r,Ze(e,r).text.length):function(e,t){var r=e.ch;return null==r||r>t?ot(e.line,t):r<0?ot(e.line,0):e}(t,Ze(e,t.line).text.length)}function dt(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=ft(e,t[n]);return r}qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},qe.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},qe.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,r,n){var i=[e.state.modeGen],o={};kt(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var l=r.state,s=function(n){r.baseTokens=i;var s=e.state.overlays[n],a=1,u=0;r.state=!0,kt(e,t.text,s.mode,r,function(e,t){for(var r=a;u<e;){var n=i[a];n>e&&i.splice(a,1,e,i[a+1],n),a+=2,u=Math.min(e,n)}if(t)if(s.opaque)i.splice(r,a-r,e,"overlay "+t),a=r+2;else for(;r<a;r+=2){var o=i[r+1];i[r+1]=(o?o+" ":"")+"overlay "+t}},o),r.state=l,r.baseTokens=null,r.baseTokenPos=1},a=0;a<e.state.overlays.length;++a)s(a);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function mt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=yt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&Ye(e.doc.mode,n.state),o=vt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new gt(n,!0,t);var o=function(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>l;--s){if(s<=o.first)return o.first;var a=Ze(o,s-1),u=a.stateAfter;if(u&&(!r||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=V(a.text,null,e.options.tabSize);(null==i||n>c)&&(i=s-1,n=c)}return i}(e,t,r),l=o>n.first&&Ze(n,o-1).stateAfter,s=l?gt.fromSaved(n,l,o):new gt(n,_e(n.mode),o);return n.iter(o,t,function(r){bt(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&n<i.viewTo?s.save():null,s.nextLine()}),r&&(n.modeFrontier=s.line),s}function bt(e,t,r,n){var i=e.doc.mode,o=new qe(t,e.options.tabSize,r);for(o.start=o.pos=n||0,""==t&&wt(i,r.state);!o.eol();)xt(i,o,r.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=$e(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function xt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=$e(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,r){return t instanceof pt?new gt(e,Ye(e.mode,t.state),r,t.lookAhead):new gt(e,Ye(e.mode,t),r)},gt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var Ct=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function St(e,t,r,n){var i,o,l=e.doc,s=l.mode,a=Ze(l,(t=ft(l,t)).line),u=yt(e,t.line,r),c=new qe(a.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=xt(s,c,u.state),n&&o.push(new Ct(c,i,Ye(l.mode,u.state)));return n?o:new Ct(c,i,u.state)}function Lt(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function kt(e,t,r,n,i,o,l){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var a,u=0,c=null,h=new qe(t,e.options.tabSize,n),f=e.options.addModeClass&&[null];for(""==t&&Lt(wt(r,n.state),o);!h.eol();){if(h.pos>e.options.maxHighlightLength?(s=!1,l&&bt(e,t,n,h.pos),h.pos=t.length,a=null):a=Lt(xt(r,h,n.state,f),o),f){var d=f[0].name;d&&(a="m-"+(a?d+" "+a:d))}if(!s||c!=a){for(;u<h.start;)i(u=Math.min(h.start,u+5e3),c);c=a}h.start=h.pos}for(;u<h.pos;){var p=Math.min(h.pos,u+5e3);i(p,c),u=p}}var Tt=!1,Mt=!1;function Nt(e,t,r){this.marker=e,this.from=t,this.to=r}function Ot(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function At(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Dt(e,t){if(t.full)return null;var r=nt(e,t.from.line)&&Ze(e,t.from.line).markedSpans,n=nt(e,t.to.line)&&Ze(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,l=0==lt(t.from,t.to),s=function(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker;if(null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==l.type&&(!r||!o.marker.insertLeft)){var s=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new Nt(l,o.from,s?null:o.to))}}return n}(r,i,l),a=function(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker;if(null==o.to||(l.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new Nt(l,s?null:o.from-t,null==o.to?null:o.to-t))}}return n}(n,o,l),u=1==t.text.length,c=ee(t.text).length+(u?i:0);if(s)for(var h=0;h<s.length;++h){var f=s[h];if(null==f.to){var d=Ot(a,f.marker);d?u&&(f.to=null==d.to?null:d.to+c):f.to=i}}if(a)for(var p=0;p<a.length;++p){var g=a[p];if(null!=g.to&&(g.to+=c),null==g.from)Ot(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g));else g.from+=c,u&&(s||(s=[])).push(g)}s&&(s=Wt(s)),a&&a!=s&&(a=Wt(a));var v=[s];if(!u){var m,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(m||(m=[])).push(new Nt(s[b].marker,null,null));for(var w=0;w<y;++w)v.push(m);v.push(a)}return v}function Wt(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ht(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Ft(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Pt(e){return e.inclusiveLeft?-1:0}function Et(e){return e.inclusiveRight?1:0}function Rt(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),o=lt(n.from,i.from)||Pt(e)-Pt(t);if(o)return-o;var l=lt(n.to,i.to)||Et(e)-Et(t);return l||t.id-e.id}function zt(e,t){var r,n=Mt&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)(i=n[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!r||Rt(r,i.marker)<0)&&(r=i.marker);return r}function It(e){return zt(e,!0)}function Bt(e){return zt(e,!1)}function Gt(e,t){var r,n=Mt&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!r||Rt(r,o.marker)<0)&&(r=o.marker)}return r}function Ut(e,t,r,n,i){var o=Ze(e,t),l=Mt&&o.markedSpans;if(l)for(var s=0;s<l.length;++s){var a=l[s];if(a.marker.collapsed){var u=a.marker.find(0),c=lt(u.from,r)||Pt(a.marker)-Pt(i),h=lt(u.to,n)||Et(a.marker)-Et(i);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?lt(u.to,r)>=0:lt(u.to,r)>0)||c>=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?lt(u.from,n)<=0:lt(u.from,n)<0)))return!0}}}function Vt(e){for(var t;t=It(e);)e=t.find(-1,!0).line;return e}function Kt(e,t){var r=Ze(e,t),n=Vt(r);return r==n?t:tt(n)}function jt(e,t){if(t>e.lastLine())return t;var r,n=Ze(e,t);if(!Xt(e,n))return t;for(;r=Bt(n);)n=r.find(1,!0).line;return tt(n)+1}function Xt(e,t){var r=Mt&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&Yt(e,t,n))return!0}}function Yt(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return Yt(e,n.line,Ot(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&Yt(e,t,i))return!0}function $t(e){for(var t=0,r=(e=Vt(e)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;o=(r=o).parent)for(var l=0;l<o.children.length;++l){var s=o.children[l];if(s==r)break;t+=s.height}return t}function _t(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=It(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=Bt(n);){var o=t.find(0,!0);r-=n.text.length-o.from.ch,r+=(n=o.to.line).text.length-o.to.ch}return r}function qt(e){var t=e.display,r=e.doc;t.maxLine=Ze(r,r.first),t.maxLineLength=_t(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=_t(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}var Zt=function(e,t,r){this.text=e,Ft(this,t),this.height=r?r(this):1};function Qt(e){e.parent=null,Ht(e)}Zt.prototype.lineNo=function(){return tt(this)},Le(Zt);var Jt={},er={};function tr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?er:Jt;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function rr(e,t){var r=D("span",null,null,a?"padding-right: .1px":null),n={pre:D("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=ir,Pe(e.display.measure)&&(l=ge(o,e.doc.direction))&&(n.addToken=or(n.addToken,l)),n.map=[],sr(o,n,mt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=P(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=P(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Fe(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(a){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=P(n.pre.className,n.textClass||"")),n}function nr(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ir(e,t,r,n,i,o,a){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/  /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}(t,e.trailingSpace):t,h=e.cm.state.specialChars,f=!1;if(h.test(t)){u=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var p=h.exec(t),g=p?p.index-d:t.length-d;if(g){var v=document.createTextNode(c.slice(d,d+g));l&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!p)break;d+=g+1;var m=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(m=u.appendChild(A("span",J(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((m=u.appendChild(A("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&s<9?u.appendChild(A("span",[m])):u.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),l&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||n||i||f||o||a){var w=r||"";n&&(w+=n),i&&(w+=i);var x=A("span",[u],w,o);if(a)for(var C in a)a.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,a[C]);return e.content.appendChild(x)}e.content.appendChild(u)}}function or(e,t){return function(r,n,i,o,l,s,a){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+n.length;;){for(var h=void 0,f=0;f<t.length&&!((h=t[f]).to>u&&h.from<=u);f++);if(h.to>=c)return e(r,n,i,o,l,s,a);e(r,n.slice(0,h.to-u),i,o,null,s,a),o=null,n=n.slice(h.to-u),u=h.to}}}function lr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function sr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,h,f,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){a=u=c=s="",f=null,h=null,m=1/0;for(var y=[],b=void 0,w=0;w<n.length;++w){var x=n[w],C=x.marker;if("bookmark"==C.type&&x.from==p&&C.widgetNode)y.push(C);else if(x.from<=p&&(null==x.to||x.to>p||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((f||(f={})).title=C.title),C.attributes)for(var S in C.attributes)(f||(f={}))[S]=C.attributes[S];C.collapsed&&(!h||Rt(h.marker,C)<0)&&(h=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var L=0;L<b.length;L+=2)b[L+1]==m&&(u+=" "+b[L]);if(!h||h.from==p)for(var k=0;k<y.length;++k)lr(t,0,y[k]);if(h&&(h.from||0)==p){if(lr(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var T=Math.min(d,m);;){if(v){var M=p+v.length;if(!h){var N=M>T?v.slice(0,T-p):v;t.addToken(t,N,l?l+a:a,c,p+N.length==m?u:"",s,f)}if(M>=T){v=v.slice(T-p),p=T;break}p=M,c=""}v=i.slice(o,o=r[g++]),l=tr(r[g++],t.cm.options)}}else for(var O=1;O<r.length;O+=2)t.addToken(t,i.slice(o,o=r[O]),tr(r[O+1],t.cm.options))}function ar(e,t,r){this.line=t,this.rest=function(e){for(var t,r;t=Bt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}(t),this.size=this.rest?tt(ee(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Xt(e,t)}function ur(e,t,r){for(var n,i=[],o=t;o<r;o=n){var l=new ar(e.doc,Ze(e.doc,o),o);n=o+l.size,i.push(l)}return i}var cr=null;var hr=null;function fr(e,t){var r=ye(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);cr?n=cr.delayedCallbacks:hr?n=hr:(n=hr=[],setTimeout(dr,0));for(var o=function(e){n.push(function(){return r[e].apply(null,i)})},l=0;l<r.length;++l)o(l)}}function dr(){var e=hr;hr=null;for(var t=0;t<e.length;++t)e[t]()}function pr(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?mr(e,t):"gutter"==o?br(e,t,r,n):"class"==o?yr(e,t):"widget"==o&&wr(e,t,n)}t.changes=null}function gr(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),l&&s<8&&(e.node.style.zIndex=2)),e.node}function vr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):rr(e,t)}function mr(e,t){var r=t.text.className,n=vr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,yr(e,t)):r&&(t.text.className=r)}function yr(e,t){!function(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=gr(t);t.background=n.insertBefore(A("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?gr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function br(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=gr(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var l=gr(t),s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),l.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(A("div",it(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var a=0;a<e.display.gutterSpecs.length;++a){var u=e.display.gutterSpecs[a].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function wr(e,t,r){t.alignable&&(t.alignable=null);for(var n=k("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);Cr(e,t,r)}function xr(e,t,r,n){var i=vr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yr(e,t),br(e,t,r,n),Cr(e,t,n),t.node}function Cr(e,t,r){if(Sr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Sr(e,t.rest[n],t,r,!1)}function Sr(e,t,r,n,i){if(t.widgets)for(var o=gr(r),l=0,s=t.widgets;l<s.length;++l){var a=s[l],u=A("div",[a.node],"CodeMirror-linewidget"+(a.className?" "+a.className:""));a.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Lr(a,u,r,n),e.display.input.setUneditable(u),i&&a.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),fr(a,"redraw")}}function Lr(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function kr(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!W(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,A("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Tr(e,t){for(var r=Oe(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Mr(e){return e.lineSpace.offsetTop}function Nr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Or(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,A("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Ar(e){return X-e.display.nativeBarWidth}function Dr(e){return e.display.scroller.clientWidth-Ar(e)-e.display.barWidth}function Wr(e){return e.display.scroller.clientHeight-Ar(e)-e.display.barHeight}function Hr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Fr(e,t,r,n){return Rr(e,Er(e,t),r,n)}function Pr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[dn(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function Er(e,t){var r=tt(t),n=Pr(e,r);n&&!n.text?n=null:n&&n.changes&&(pr(e,n,r,an(e)),e.curOp.forceUpdate=!0),n||(n=function(e,t){var r=tt(t=Vt(t)),n=e.display.externalMeasured=new ar(e.doc,t,r);n.lineN=r;var i=n.built=rr(e,n);return n.text=i.pre,O(e.display.lineMeasure,i.pre),n}(e,t));var i=Hr(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Rr(e,t,r,n,i){t.before&&(r=-1);var o,a=r+(n||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,r){var n=e.options.lineWrapping,i=n&&Dr(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),s=0;s<l.length-1;s++){var a=l[s],u=l[s+1];Math.abs(a.bottom-u.bottom)>2&&o.push((a.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,r,n){var i,o=Br(t.map,r,n),a=o.node,u=o.start,c=o.end,h=o.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;u&&ue(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ue(t.line.text.charAt(o.coverStart+c));)++c;if((i=l&&s<9&&0==u&&c==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Gr(T(a,u,c).getClientRects(),n)).left||i.right||0==u)break;c=u,u-=1,h="right"}l&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Be)return Be;var t=O(e,A("span","x")),r=t.getBoundingClientRect(),n=T(t,0,1).getBoundingClientRect();return Be=Math.abs(r.left-n.left)>1}(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else{var d;u>0&&(h=n="right"),i=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==n?d.length-1:0]:a.getBoundingClientRect()}if(l&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=a.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+sn(e.display),top:p.top,bottom:p.bottom}:Ir}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(m<y[b]);b++);var w=b?y[b-1]:0,x=y[b],C={left:("right"==h?i.right:i.left)-t.rect.left,right:("left"==h?i.left:i.right)-t.rect.left,top:w,bottom:x};i.left||i.right||(C.bogus=!0);e.options.singleCursorHeightPerLine||(C.rtop=g,C.rbottom=v);return C}(e,t,r,n)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var zr,Ir={left:0,right:0,top:0,bottom:0};function Br(e,t,r){for(var n,i,o,l,s,a,u=0;u<e.length;u+=3)if(s=e[u],a=e[u+1],t<s?(i=0,o=1,l="left"):t<a?o=(i=t-s)+1:(u==e.length-3||t==a&&e[u+3]>t)&&(i=(o=a-s)-1,t>=a&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],l="right";break}return{node:n,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Gr(e,t){var r=Ir;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function Ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Vr(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Ur(e.display.view[t])}function Kr(e){Vr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function jr(e){return c&&m?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Xr(e){return c&&m?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Yr(e){var t=Vt(e).widgets,r=0;if(t)for(var n=0;n<t.length;++n)t[n].above&&(r+=kr(t[n]));return r}function $r(e,t,r,n,i){if(!i){var o=Yr(t);r.top+=o,r.bottom+=o}if("line"==n)return r;n||(n="local");var l=$t(t);if("local"==n?l+=Mr(e.display):l-=e.display.viewOffset,"page"==n||"window"==n){var s=e.display.lineSpace.getBoundingClientRect();l+=s.top+("window"==n?0:Xr(R(e)));var a=s.left+("window"==n?0:jr(R(e)));r.left+=a,r.right+=a}return r.top+=l,r.bottom+=l,r}function _r(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=jr(R(e)),i-=Xr(R(e));else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:i-l.top}}function qr(e,t,r,n,i){return n||(n=Ze(e.doc,t.line)),$r(e,n,Fr(e,n,t.ch,i),r)}function Zr(e,t,r,n,i,o){function l(t,l){var s=Rr(e,i,t,l?"right":"left",o);return l?s.left=s.right:s.right=s.left,$r(e,n,s,r)}n=n||Ze(e.doc,t.line),i||(i=Er(e,n));var s=ge(n,e.doc.direction),a=t.ch,u=t.sticky;if(a>=n.text.length?(a=n.text.length,u="before"):a<=0&&(a=0,u="after"),!s)return l("before"==u?a-1:a,"before"==u);function c(e,t,r){return l(r?e-1:e,1==s[t].level!=r)}var h=de(s,a,u),f=fe,d=c(a,h,"before"==u);return null!=f&&(d.other=c(a,f,"before"!=u)),d}function Qr(e,t){var r=0;t=ft(e.doc,t),e.options.lineWrapping||(r=sn(e.display)*t.ch);var n=Ze(e.doc,t.line),i=$t(n)+Mr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Jr(e,t,r,n,i){var o=ot(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function en(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Jr(n.first,0,null,-1,-1);var i=rt(n,r),o=n.first+n.size-1;if(i>o)return Jr(n.first+n.size-1,Ze(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=Ze(n,i);;){var s=on(e,l,i,t,r),a=Gt(l,s.ch+(s.xRel>0||s.outside>0?1:0));if(!a)return s;var u=a.find(1);if(u.line==i)return u;l=Ze(n,i=u.line)}}function tn(e,t,r,n){n-=Yr(t);var i=t.text.length,o=he(function(t){return Rr(e,r,t-1).bottom<=n},i,0);return{begin:o,end:i=he(function(t){return Rr(e,r,t).top>n},o,i)}}function rn(e,t,r,n){return r||(r=Er(e,t)),tn(e,t,r,$r(e,t,Rr(e,r,n),"line").top)}function nn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function on(e,t,r,n,i){i-=$t(t);var o=Er(e,t),l=Yr(t),s=0,a=t.text.length,u=!0,c=ge(t,e.doc.direction);if(c){var h=(e.options.lineWrapping?function(e,t,r,n,i,o,l){var s=tn(e,t,n,l),a=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=u||d.to<=a)){var p=1!=d.level,g=Rr(e,n,p?Math.min(u,d.to)-1:Math.max(a,d.from)).right,v=g<o?o-g+1e9:g-o;(!c||h>v)&&(c=d,h=v)}}c||(c=i[i.length-1]);c.from<a&&(c={from:a,to:c.to,level:c.level});c.to>u&&(c={from:c.from,to:u,level:c.level});return c}:function(e,t,r,n,i,o,l){var s=he(function(s){var a=i[s],u=1!=a.level;return nn(Zr(e,ot(r,u?a.to:a.from,u?"before":"after"),"line",t,n),o,l,!0)},0,i.length-1),a=i[s];if(s>0){var u=1!=a.level,c=Zr(e,ot(r,u?a.from:a.to,u?"after":"before"),"line",t,n);nn(c,o,l,!0)&&c.top>l&&(a=i[s-1])}return a})(e,t,r,o,c,n,i);s=(u=1!=h.level)?h.from:h.to-1,a=u?h.to:h.from-1}var f,d,p=null,g=null,v=he(function(t){var r=Rr(e,o,t);return r.top+=l,r.bottom+=l,!!nn(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)},s,a),m=!1;if(g){var y=n-g.left<g.right-n,b=y==u;v=p+(b?0:1),d=b?"after":"before",f=y?g.left:g.right}else{u||v!=a&&v!=s||v++,d=0==v?"after":v==t.text.length?"before":Rr(e,o,v-(u?1:0)).bottom+l<=i==u?"after":"before";var w=Zr(e,ot(r,v,d),"line",t,o);f=w.left,m=i<w.top?-1:i>=w.bottom?1:0}return Jr(r,v=ce(t.text,v,1),d,m,n-f)}function ln(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==zr){zr=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)zr.appendChild(document.createTextNode("x")),zr.appendChild(A("br"));zr.appendChild(document.createTextNode("x"))}O(e.measure,zr);var r=zr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),N(e.measure),r||1}function sn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");O(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function an(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var s=e.display.gutterSpecs[l].className;r[s]=o.offsetLeft+o.clientLeft+i,n[s]=o.clientWidth}return{fixedPos:un(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function un(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cn(e){var t=ln(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/sn(e.display)-3);return function(i){if(Xt(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function hn(e){var t=e.doc,r=cn(e);t.iter(function(e){var t=r(e);t!=e.height&&et(e,t)})}function fn(e,t,r,n){var i=e.display;if(!r&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,l,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,l=t.clientY-s.top}catch(h){return null}var a,u=en(e,o,l);if(n&&u.xRel>0&&(a=Ze(e.doc,u.line).text).length==u.ch){var c=V(a,a.length,e.options.tabSize)-a.length;u=ot(u.line,Math.max(0,Math.round((o-Or(e.display).left)/sn(e.display))-c))}return u}function dn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function pn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Mt&&Kt(e.doc,t)<i.viewTo&&vn(e);else if(r<=i.viewFrom)Mt&&jt(e.doc,r+n)>i.viewFrom?vn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)vn(e);else if(t<=i.viewFrom){var o=mn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):vn(e)}else if(r>=i.viewTo){var l=mn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):vn(e)}else{var s=mn(e,t,t,-1),a=mn(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(ur(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):vn(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function gn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[dn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==j(l,r)&&l.push(r)}}}function vn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function mn(e,t,r,n){var i,o=dn(e,t),l=e.display.view;if(!Mt||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a<o;a++)s+=l[a].size;if(s!=t){if(n>0){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;Kt(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function yn(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function bn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function wn(e,t){void 0===t&&(t=!0);var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),l=e.options.$customCursor;l&&(t=!0);for(var s=0;s<r.sel.ranges.length;s++)if(t||s!=r.sel.primIndex){var a=r.sel.ranges[s];if(!(a.from().line>=e.display.viewTo||a.to().line<e.display.viewFrom)){var u=a.empty();if(l){var c=l(e,a);c&&xn(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&xn(e,a.head,i);u||Sn(e,a,o)}}return n}function xn(e,t,r){var n=Zr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(A("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=qr(e,t,"div",null,null),l=o.right-o.left;i.style.width=(l>0?l:e.defaultCharWidth())+"px"}if(n.other){var s=r.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=n.other.left+"px",s.style.top=n.other.top+"px",s.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Cn(e,t){return e.top-t.top||e.left-t.left}function Sn(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),l=Or(e.display),s=l.left,a=Math.max(n.sizerWidth,Dr(e)-n.sizer.offsetLeft)-l.right,u="ltr"==i.direction;function c(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==r?a-e:r)+"px;\n                             height: "+(n-t)+"px"))}function h(t,r,n){var o,l,h=Ze(i,t),f=h.text.length;function d(r,n){return qr(e,ot(t,r),"div",h,n)}function p(t,r,n){var i=rn(e,h,null,t),o="ltr"==r==("after"==n)?"left":"right";return d("after"==n?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),o)[o]}var g=ge(h,i.direction);return function(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<r&&l.to>t||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}(g,r||0,null==n?f:n,function(e,t,i,h){var v="ltr"==i,m=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==f,x=0==h,C=!g||h==g.length-1;if(y.top-m.top<=3){var S=(u?w:b)&&C,L=(u?b:w)&&x?s:(v?m:y).left,k=S?a:(v?y:m).right;c(L,m.top,k-L,m.bottom)}else{var T,M,N,O;v?(T=u&&b&&x?s:m.left,M=u?a:p(e,i,"before"),N=u?s:p(t,i,"after"),O=u&&w&&C?a:y.right):(T=u?p(e,i,"before"):s,M=!u&&b&&x?a:m.right,N=!u&&w&&C?s:y.left,O=u?p(t,i,"after"):a),c(T,m.top,M-T,m.bottom),m.bottom<y.top&&c(s,m.bottom,null,y.top),c(N,y.top,O-N,y.bottom)}(!o||Cn(m,o)<0)&&(o=m),Cn(y,o)<0&&(o=y),(!l||Cn(m,l)<0)&&(l=m),Cn(y,l)<0&&(l=y)}),{start:o,end:l}}var f=t.from(),d=t.to();if(f.line==d.line)h(f.line,f.ch,d.ch);else{var p=Ze(i,f.line),g=Ze(i,d.line),v=Vt(p)==Vt(g),m=h(f.line,f.ch,v?p.text.length+1:null).end,y=h(d.line,v?0:null,d.ch).start;v&&(m.top<y.top-2?(c(m.right,m.top,null,m.bottom),c(s,y.top,y.left,y.bottom)):c(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&c(s,m.bottom,null,y.top)}r.appendChild(o)}function Ln(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Nn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function kn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Mn(e))}function Tn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Nn(e))},100)}function Mn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),a&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ln(e))}function Nn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function On(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var u=t.view[a],c=e.options.lineWrapping,h=void 0,f=0;if(!u.hidden){if(i+=u.line.height,l&&s<8){var d=u.node.offsetTop+u.node.offsetHeight;h=d-r,r=d}else{var p=u.node.getBoundingClientRect();h=p.bottom-p.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-p.left-1)}var g=u.line.height-h;if((g>.005||g<-.005)&&(i<n&&(o-=g),et(u.line,h),An(u.line),u.rest))for(var v=0;v<u.rest.length;v++)An(u.rest[v]);if(f>e.display.sizerWidth){var m=Math.ceil(f/sn(e.display));m>e.display.maxLineLength&&(e.display.maxLineLength=m,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function An(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Dn(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Mr(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,o=rt(t,n),l=rt(t,i);if(r&&r.ensure){var s=r.ensure.from.line,a=r.ensure.to.line;s<o?(o=s,l=rt(t,$t(Ze(t,s))+e.wrapper.clientHeight)):Math.min(a,t.lastLine())>=l&&(o=rt(t,$t(Ze(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function Wn(e,t){var r=e.display,n=ln(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Wr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Nr(r),a=t.top<n,u=t.bottom>s-n;if(t.top<i)l.scrollTop=a?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.options.fixedGutter?0:r.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-h,d=Dr(e)-r.gutters.offsetWidth,p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?l.scrollLeft=0:t.left<f?l.scrollLeft=Math.max(0,t.left+h-(p?0:10)):t.right>d+f-3&&(l.scrollLeft=t.right+(p?0:10)-d),l}function Hn(e,t){null!=t&&(En(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fn(e){En(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pn(e,t,r){null==t&&null==r||En(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function En(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rn(e,Qr(e,t.from),Qr(e,t.to),t.margin))}function Rn(e,t,r,n){var i=Wn(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Pn(e,i.scrollLeft,i.scrollTop)}function zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||ci(e,{top:t}),In(e,t,!0),r&&ci(e),oi(e,100))}function In(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Bn(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,di(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Gn(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Nr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Ar(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Un=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),me(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),me(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Un.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Un.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Un.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Un.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new K,this.disableVert=new K},Un.prototype.enableZeroWidthBar=function(e,t,r){e.style.visibility="",t.set(1e3,function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,n)})},Un.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Vn=function(){};function Kn(e,t){t||(t=Gn(e));var r=e.display.barWidth,n=e.display.barHeight;jn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&On(e),jn(e,Gn(e)),r=e.display.barWidth,n=e.display.barHeight}function jn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}Vn.prototype.update=function(){return{bottom:0,right:0}},Vn.prototype.setScrollLeft=function(){},Vn.prototype.setScrollTop=function(){},Vn.prototype.clear=function(){};var Xn={native:Un,null:Vn};function Yn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Xn[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?Bn(e,t):zn(e,t)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var $n=0;function _n(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$n,markArrays:null},t=e.curOp,cr?cr.ops.push(t):t.ownsGroup=cr={ops:[t],delayedCallbacks:[]}}function qn(e){var t=e.curOp;t&&function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}(r)}finally{cr=null,t(r)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,r=0;r<t.length;r++)Zn(t[r]);for(var n=0;n<t.length;n++)(i=t[n]).updatedDisplay=i.mustUpdate&&ai(i.cm,i.update);var i;for(var o=0;o<t.length;o++)Qn(t[o]);for(var l=0;l<t.length;l++)Jn(t[l]);for(var s=0;s<t.length;s++)ei(t[s])}(e)})}function Zn(e){var t=e.cm,r=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ar(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ar(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&qt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new si(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qn(e){var t=e.cm,r=t.display;e.updatedDisplay&&On(t),e.barMeasure=Gn(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Fr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Ar(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Dr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Jn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Bn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==H(z(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Kn(t,e.barMeasure),e.updatedDisplay&&fi(t,e.barMeasure),e.selectionChanged&&Ln(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&kn(e.cm)}function ei(e){var t=e.cm,r=t.display,n=t.doc;(e.updatedDisplay&&ui(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&In(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Bn(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!xe(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,o=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var l=A("div","​",null,"position: absolute;\n                         top: "+(t.top-r.viewOffset-Mr(e.display))+"px;\n                         height: "+(t.bottom-t.top+Ar(e)+r.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}(t,function(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,s=Zr(e,t),a=r&&r!=t?Zr(e,r):s,u=Wn(e,i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n}),c=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=u.scrollTop&&(zn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(Bn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}(t,ft(n,e.scrollToPos.from),ft(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||we(i[l],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&we(o[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&we(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ti(e,t){if(e.curOp)return t();_n(e);try{return t()}finally{qn(e)}}function ri(e,t){return function(){if(e.curOp)return t.apply(e,arguments);_n(e);try{return t.apply(e,arguments)}finally{qn(e)}}}function ni(e){return function(){if(this.curOp)return e.apply(this,arguments);_n(this);try{return e.apply(this,arguments)}finally{qn(this)}}}function ii(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);_n(t);try{return e.apply(this,arguments)}finally{qn(t)}}}function oi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,G(li,e))}function li(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=yt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var l=o.styles,s=o.text.length>e.options.maxHighlightLength?Ye(t.mode,n.state):null,a=vt(e,o,n,!0);s&&(n.state=s),o.styles=a.styles;var u=o.styleClasses,c=a.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!h&&f<l.length;++f)h=l[f]!=o.styles[f];h&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return oi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&ti(e,function(){for(var t=0;t<i.length;t++)gn(e,i[t],"text")})}}var si=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Dn(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Dr(e),this.force=r,this.dims=an(e),this.events=[]};function ai(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return vn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==yn(e))return!1;pi(e)&&(vn(e),t.dims=an(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>l&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Mt&&(o=Kt(e.doc,o),l=jt(e.doc,l));var s=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=ur(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=ur(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(dn(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(ur(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,dn(e,r)))),n.viewTo=r}(e,o,l),r.viewOffset=$t(Ze(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=yn(e);if(!s&&0==u&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=H(z(e));if(!t||!W(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=B(e).getSelection();n.anchorNode&&n.extend&&W(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return u>4&&(r.lineDiv.style.display="none"),function(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function s(t){var r=t.nextSibling;return a&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=n.view,c=n.viewFrom,h=0;h<u.length;h++){var f=u[h];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;l!=f.node;)l=s(l);var d=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(j(f.changes,"gutter")>-1&&(d=!1),pr(e,f,c,r)),d&&(N(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(it(e.options,c)))),l=f.node.nextSibling}else{var p=xr(e,f,c,r);o.insertBefore(p,l)}c+=f.size}for(;l;)l=s(l)}(e,r.updateLineNumbers,t.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=H(I(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&W(document.body,e.anchorNode)&&W(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),n=t.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(e.focusNode,e.focusOffset)}}(c),N(r.cursorDiv),N(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,oi(e,400)),r.updateLineNumbers=null,!0}function ui(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Dr(e))n&&(t.visible=Dn(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Nr(e.display)-Wr(e),r.top)}),t.visible=Dn(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;On(e);var i=Gn(e);bn(e),Kn(e,i),fi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ci(e,t){var r=new si(e,t);if(ai(e,r)){On(e),ui(e,r);var n=Gn(e);bn(e),Kn(e,n),fi(e,n),r.finish()}}function hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fr(e,"gutterChanged",e)}function fi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ar(e)+"px"}function di(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=un(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l<r.length;l++)if(!r[l].hidden){e.options.fixedGutter&&(r[l].gutter&&(r[l].gutter.style.left=o),r[l].gutterBackground&&(r[l].gutterBackground.style.left=o));var s=r[l].alignable;if(s)for(var a=0;a<s.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function pi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=it(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(A("div",[A("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,l=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-l)+1,n.lineNumWidth=n.lineNumInnerWidth+l,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",hi(e.display),!0}return!1}function gi(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var o=e[i],l=null;if("string"!=typeof o&&(l=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;n=!0}r.push({className:o,style:l})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function vi(e){var t=e.gutters,r=e.gutterSpecs;N(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,l=i.style,s=t.appendChild(A("div",null,"CodeMirror-gutter "+o));l&&(s.style.cssText=l),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",hi(e)}function mi(e){vi(e.display),pn(e),di(e)}function yi(e,t,n,i){var o=this;this.input=n,o.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=D("div",null,"CodeMirror-code"),o.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=A("div",null,"CodeMirror-cursors"),o.measure=A("div",null,"CodeMirror-measure"),o.lineMeasure=A("div",null,"CodeMirror-measure"),o.lineSpace=D("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=D("div",[o.lineSpace],"CodeMirror-lines");o.mover=A("div",[u],null,"position: relative"),o.sizer=A("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=A("div",null,null,"position: absolute; height: "+X+"px; width: 1px;"),o.gutters=A("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=A("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=A("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&h>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),l&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),a||r&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=gi(i.gutters,i.lineNumbers),vi(o),n.init(o)}si.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},si.prototype.finish=function(){for(var e=0;e<this.events.length;e++)we.apply(null,this.events[e])};var bi=0,wi=null;function xi(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function Ci(e){var t=xi(e);return t.x*=wi,t.y*=wi,t}function Si(e,t){c&&102==h&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=xi(t),i=n.x,o=n.y,l=wi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,l=1);var s=e.display,u=s.scroller,d=u.scrollWidth>u.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&d||o&&p){if(o&&b&&a)e:for(var g=t.target,v=s.view;g!=u;g=g.parentNode)for(var m=0;m<v.length;m++)if(v[m].node==g){e.display.currentWheelTarget=g;break e}if(i&&!r&&!f&&null!=l)return o&&p&&zn(e,Math.max(0,u.scrollTop+o*l)),Bn(e,Math.max(0,u.scrollLeft+i*l)),(!o||o&&p)&&ke(t),void(s.wheelStartX=null);if(o&&null!=l){var y=o*l,w=e.doc.scrollTop,x=w+s.wrapper.clientHeight;y<0?w=Math.max(0,w+y-50):x=Math.min(e.doc.height,x+y+50),ci(e,{top:w,bottom:x})}bi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,r=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,r&&(wi=(wi*bi+r)/(bi+1),++bi)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}l?wi=-.53:r?wi=15:c?wi=-.7:d&&(wi=-1/3);var Li=function(e,t){this.ranges=e,this.primIndex=t};Li.prototype.primary=function(){return this.ranges[this.primIndex]},Li.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!st(r.anchor,n.anchor)||!st(r.head,n.head))return!1}return!0},Li.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(at(this.ranges[t].anchor),at(this.ranges[t].head));return new Li(e,this.primIndex)},Li.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Li.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(lt(t,n.from())>=0&&lt(e,n.to())<=0)return r}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Ti(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(e,t){return lt(e.from(),t.from())}),r=j(t,i);for(var o=1;o<t.length;o++){var l=t[o],s=t[o-1],a=lt(s.to(),l.from());if(n&&!l.empty()?a>0:a>=0){var u=ct(s.from(),l.from()),c=ut(s.to(),l.to()),h=s.empty()?l.from()==l.head:s.from()==s.head;o<=r&&--r,t.splice(--o,2,new ki(h?c:u,h?u:c))}}return new Li(t,r)}function Mi(e,t){return new Li([new ki(e,t||e)],0)}function Ni(e){return e.text?ot(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return Ni(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ni(t).ch-t.to.ch),ot(r,n)}function Ai(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new ki(Oi(i.anchor,t),Oi(i.head,t)))}return Ti(e.cm,r,e.sel.primIndex)}function Di(e,t,r){return e.line==t.line?ot(r.line,e.ch-t.ch+r.ch):ot(r.line+(e.line-t.line),e.ch)}function Wi(e){e.doc.mode=Ke(e.options,e.doc.modeOption),Hi(e)}function Hi(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,oi(e,100),e.state.modeGen++,e.curOp&&pn(e)}function Fi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==ee(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Pi(e,t,r,n){function i(e){return r?r[e]:null}function o(e,r,i){!function(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Ft(e,r);var i=n?n(e):1;i!=e.height&&et(e,i)}(e,r,i,n),fr(e,"change",e,t)}function l(e,t){for(var r=[],o=e;o<t;++o)r.push(new Zt(u[o],i(o),n));return r}var s=t.from,a=t.to,u=t.text,c=Ze(e,s.line),h=Ze(e,a.line),f=ee(u),d=i(u.length-1),p=a.line-s.line;if(t.full)e.insert(0,l(0,u.length)),e.remove(u.length,e.size-u.length);else if(Fi(e,t)){var g=l(0,u.length-1);o(h,h.text,d),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(a.ch),d);else{var v=l(1,u.length-1);v.push(new Zt(f+c.text.slice(a.ch),d,n)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+h.text.slice(a.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(h,f+h.text.slice(a.ch),d);var m=l(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,m)}fr(e,"change",e,t)}function Ei(e,t,r){!function e(n,i,o){if(n.linked)for(var l=0;l<n.linked.length;++l){var s=n.linked[l];if(s.doc!=i){var a=o&&s.sharedHist;r&&!a||(t(s.doc,a),e(s.doc,n,a))}}}(e,null,!0)}function Ri(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,hn(e),Wi(e),zi(e),e.options.direction=t.direction,e.options.lineWrapping||qt(e),e.options.mode=t.modeOption,pn(e)}function zi(e){("rtl"==e.doc.direction?F:M)(e.display.lineDiv,"CodeMirror-rtl")}function Ii(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Bi(e,t){var r={from:at(t.from),to:Ni(t),text:Qe(e,t.from,t.to)};return ji(e,r,t.from.line,t.to.line+1),Ei(e,function(e){return ji(e,r,t.from.line,t.to.line+1)},!0),r}function Gi(e){for(;e.length;){if(!ee(e).ranges)break;e.pop()}}function Ui(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Gi(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}(i,i.lastOp==n)))l=ee(o.changes),0==lt(t.from,t.to)&&0==lt(t.from,l.to)?l.to=Ni(t):o.changes.push(Bi(e,t));else{var a=ee(i.done);for(a&&a.ranges||Ki(e.sel,i.done),o={changes:[Bi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||we(e,"historyAdded")}function Vi(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:Ki(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Gi(i.undone)}function Ki(e,t){var r=ee(t);r&&r.ranges&&r.equals(e)||t.push(e)}function ji(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function Xi(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Yi(e,t){var r=function(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Xi(r[i]));return n}(e,t),n=Dt(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],l=n[i];if(o&&l)e:for(var s=0;s<l.length;++s){for(var a=l[s],u=0;u<o.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(r[i]=l)}return r}function $i(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)n.push(r?Li.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];n.push({changes:s});for(var a=0;a<l.length;++a){var u=l[a],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&j(t,Number(c[1]))>-1&&(ee(s)[h]=u[h],delete u[h])}}}return n}function _i(e,t,r,n){if(n){var i=e.anchor;if(r){var o=lt(t,i)<0;o!=lt(r,i)<0?(i=t,t=r):o!=lt(t,r)<0&&(t=r)}return new ki(i,t)}return new ki(r||t,t)}function qi(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),to(e,new Li([_i(e.sel.primary(),t,r,i)],0),n)}function Zi(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=_i(e.sel.ranges[o],t[o],null,i);to(e,Ti(e.cm,n,e.sel.primIndex),r)}function Qi(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,to(e,Ti(e.cm,i,e.sel.primIndex),n)}function Ji(e,t,r,n){to(e,Mi(t,r),n)}function eo(e,t,r){var n=e.history.done,i=ee(n);i&&i.ranges?(n[n.length-1]=t,ro(e,t,r)):to(e,t,r)}function to(e,t,r){ro(e,t,r),Vi(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function ro(e,t,r){(Se(e,"beforeSelectionChange")||e.cm&&Se(e.cm,"beforeSelectionChange"))&&(t=function(e,t,r){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new ki(ft(e,t[r].anchor),ft(e,t[r].head))},origin:r&&r.origin};return we(e,"beforeSelectionChange",e,n),e.cm&&we(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?Ti(e.cm,n.ranges,n.ranges.length-1):t}(e,t,r));var n=r&&r.bias||(lt(t.primary().head,e.sel.primary().head)<0?-1:1);no(e,oo(e,t,n,!0)),r&&!1===r.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Fn(e.cm)}function no(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ce(e.cm)),fr(e,"cursorActivity",e))}function io(e){no(e,oo(e,e.sel,null,!1))}function oo(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=so(e,l.anchor,s&&s.anchor,r,n),u=l.head==l.anchor?a:so(e,l.head,s&&s.head,r,n);(i||a!=l.anchor||u!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(a,u))}return i?Ti(e.cm,i,t.primIndex):t}function lo(e,t,r,n,i){var o=Ze(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var s=o.markedSpans[l],a=s.marker,u="selectLeft"in a?!a.selectLeft:a.inclusiveLeft,c="selectRight"in a?!a.selectRight:a.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(we(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var h=a.find(n<0?1:-1),f=void 0;if((n<0?c:u)&&(h=ao(e,h,-n,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(f=lt(h,r))&&(n<0?f<0:f>0))return lo(e,h,t,n,i)}var d=a.find(n<0?-1:1);return(n<0?u:c)&&(d=ao(e,d,n,d.line==t.line?o:null)),d?lo(e,d,t,n,i):null}}return t}function so(e,t,r,n,i){var o=n||1,l=lo(e,t,r,o,i)||!i&&lo(e,t,r,o,!0)||lo(e,t,r,-o,i)||!i&&lo(e,t,r,-o,!0);return l||(e.cantEdit=!0,ot(e.first,0))}function ao(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:r>0&&t.ch==(n||Ze(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+r)}function uo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),$)}function co(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,o){t&&(n.from=ft(e,t)),r&&(n.to=ft(e,r)),i&&(n.text=i),void 0!==o&&(n.origin=o)}),we(e,"beforeChange",e,n),e.cm&&we(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function ho(e,t,r){if(e.cm){if(!e.cm.curOp)return ri(e.cm,ho)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(Se(e,"beforeChange")||e.cm&&Se(e.cm,"beforeChange"))||(t=co(e,t,!0))){var n=Tt&&!r&&function(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=j(n,r)||(n||(n=[])).push(r)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var l=n[o],s=l.find(0),a=0;a<i.length;++a){var u=i[a];if(!(lt(u.to,s.from)<0||lt(u.from,s.to)>0)){var c=[a,1],h=lt(u.from,s.from),f=lt(u.to,s.to);(h<0||!l.inclusiveLeft&&!h)&&c.push({from:u.from,to:s.from}),(f>0||!l.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),a+=c.length-3}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)fo(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else fo(e,t)}}function fo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var r=Ai(e,t);Ui(e,t,r,e.cm?e.cm.curOp.id:NaN),vo(e,t,r,Dt(e,t));var n=[];Ei(e,function(e,r){r||-1!=j(n,e.history)||(wo(e.history,t),n.push(e.history)),vo(e,t,null,Dt(e,t))})}}function po(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,s="undo"==t?o.done:o.undone,a="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],r?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(n)return void s.push(i);break}if(Ki(i,a),r&&!i.equals(e.sel))return void to(e,i,{clearRedo:!1});l=i}var c=[];Ki(l,a),a.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var h=Se(e,"beforeChange")||e.cm&&Se(e.cm,"beforeChange"),f=function(r){var n=i.changes[r];if(n.origin=t,h&&!co(e,n,!1))return s.length=0,{};c.push(Bi(e,n));var o=r?Ai(e,n):ee(s);vo(e,n,o,Yi(e,n)),!r&&e.cm&&e.cm.scrollIntoView({from:n.from,to:Ni(n)});var l=[];Ei(e,function(e,t){t||-1!=j(l,e.history)||(wo(e.history,n),l.push(e.history)),vo(e,n,null,Yi(e,n))})},d=i.changes.length-1;d>=0;--d){var p=f(d);if(p)return p.v}}}}function go(e,t){if(0!=t&&(e.first+=t,e.sel=new Li(te(e.sel.ranges,function(e){return new ki(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){pn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)gn(e.cm,n,"gutter")}}function vo(e,t,r,n){if(e.cm&&!e.cm.curOp)return ri(e.cm,vo)(e,t,r,n);if(t.to.line<e.first)go(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);go(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),r||(r=Ai(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=tt(Vt(Ze(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0,!0}));n.sel.contains(t.from,t.to)>-1&&Ce(e);Pi(n,t,r,cn(e)),e.options.lineWrapping||(n.iter(a,o.line+t.text.length,function(e){var t=_t(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=Ze(e,n).stateAfter;if(i&&(!(i instanceof pt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}})(n,o.line),oi(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?pn(e):o.line!=l.line||1!=t.text.length||Fi(e.doc,t)?pn(e,o.line,l.line+1,u):gn(e,o.line,"text");var c=Se(e,"changes"),h=Se(e,"change");if(h||c){var f={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};h&&fr(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,n):Pi(e,t,n),ro(e,r,$),e.cantEdit&&so(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,r,n,i){var o;n||(n=r),lt(n,r)<0&&(r=(o=[n,r])[0],n=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ho(e,{from:r,to:n,text:t,origin:i})}function yo(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function bo(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)yo(o.ranges[s].anchor,t,r,n),yo(o.ranges[s].head,t,r,n)}else{for(var a=0;a<o.changes.length;++a){var u=o.changes[a];if(r<u.from.line)u.from=ot(u.from.line+n,u.from.ch),u.to=ot(u.to.line+n,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function wo(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;bo(e.done,r,n,i),bo(e.undone,r,n,i)}function xo(e,t,r,n){var i=t,o=t;return"number"==typeof t?o=Ze(e,ht(e,t)):i=tt(t),null==i?null:(n(o,i)&&e.cm&&gn(e.cm,i,r),o)}function Co(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function So(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}ki.prototype.from=function(){return ct(this.anchor,this.head)},ki.prototype.to=function(){return ut(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,Qt(i),fr(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},So.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),l=n.height;if(n.removeInner(e,o),this.height-=l-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var s=[];this.collapse(s),this.children=[new Co(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var l=i.lines.length%25+25,s=l;s<i.lines.length;){var a=new Co(i.lines.slice(s,s+=25));i.height-=a.height,this.children.splice(++n,0,a),a.parent=this}i.lines=i.lines.slice(0,l),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new So(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=j(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var n=new So(e.children);n.parent=e,e.children=[n,t],e=n}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,r))return!0;if(0==(t-=l))break;e=0}else e-=o}}};var Lo=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};function ko(e,t,r){$t(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Hn(e,r)}Lo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=tt(r);if(null!=n&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=kr(this);et(r,Math.max(0,r.height-o)),e&&(ti(e,function(){ko(e,r,-o),gn(e,n,"widget")}),fr(e,"lineWidgetCleared",e,this,n))}},Lo.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=kr(this)-t;i&&(Xt(this.doc,n)||et(n,n.height+i),r&&ti(r,function(){r.curOp.forceUpdate=!0,ko(r,n,i),fr(r,"lineWidgetChanged",r,e,tt(n))}))},Le(Lo);var To=0,Mo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++To};function No(e,t,r,n,i){if(n&&n.shared)return function(e,t,r,n,i){(n=U(n)).shared=!1;var o=[No(e,t,r,n,i)],l=o[0],s=n.widgetNode;return Ei(e,function(e){s&&(n.widgetNode=s.cloneNode(!0)),o.push(No(e,ft(e,t),ft(e,r),n,i));for(var a=0;a<e.linked.length;++a)if(e.linked[a].isParent)return;l=ee(o)}),new Oo(o,l)}(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return ri(e.cm,No)(e,t,r,n,i);var o=new Mo(e,i),l=lt(t,r);if(n&&U(n,o,!1),l>0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ut(e,t.line,t,r,o)||t.line!=r.line&&Ut(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mt=!0}o.addToHistory&&Ui(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s,a=t.line,u=e.cm;if(e.iter(a,r.line+1,function(n){u&&o.collapsed&&!u.options.lineWrapping&&Vt(n)==u.display.maxLine&&(s=!0),o.collapsed&&a!=t.line&&et(n,0),function(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}(n,new Nt(o,a==t.line?t.ch:null,a==r.line?r.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,r.line+1,function(t){Xt(e,t)&&et(t,0)}),o.clearOnEnter&&me(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Tt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++To,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)pn(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)gn(u,c,"text");o.atomic&&io(u.doc),fr(u,"markerAdded",u,o)}return o}Mo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&_n(e),Se(this,"clear")){var r=this.find();r&&fr(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],s=Ot(l.markedSpans,this);e&&!this.collapsed?gn(e,tt(l),"text"):e&&(null!=s.to&&(i=tt(l)),null!=s.from&&(n=tt(l))),l.markedSpans=At(l.markedSpans,s),null==s.from&&this.collapsed&&!Xt(this.doc,l)&&e&&et(l,ln(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var a=0;a<this.lines.length;++a){var u=Vt(this.lines[a]),c=_t(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&pn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&io(e.doc)),e&&fr(e,"markerCleared",e,this,n,i),t&&qn(e),this.parent&&this.parent.clear()}},Mo.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],l=Ot(o.markedSpans,this);if(null!=l.from&&(r=ot(t?o:tt(o),l.from),-1==e))return r;if(null!=l.to&&(n=ot(t?o:tt(o),l.to),1==e))return n}return r&&{from:r,to:n}},Mo.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&ti(n,function(){var i=t.line,o=tt(t.line),l=Pr(n,o);if(l&&(Ur(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Xt(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var a=kr(r)-s;a&&et(i,i.height+a)}fr(n,"markerChanged",n,e)})},Mo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=j(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Mo.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Le(Mo);var Oo=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function Ao(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(e){return e.parent})}function Do(e){for(var t=function(t){var r=e[t],n=[r.primary.doc];Ei(r.primary.doc,function(e){return n.push(e)});for(var i=0;i<r.markers.length;i++){var o=r.markers[i];-1==j(n,o.doc)&&(o.parent=null,r.markers.splice(i--,1))}},r=0;r<e.length;r++)t(r)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fr(this,"clear")}},Oo.prototype.find=function(e,t){return this.primary.find(e,t)},Le(Oo);var Wo=0,Ho=function(e,t,r,n,i){if(!(this instanceof Ho))return new Ho(e,t,r,n,i);null==r&&(r=0),So.call(this,[new Co([new Zt("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=ot(r,0);this.sel=Mi(o),this.history=new Ii(null),this.id=++Wo,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Pi(this,{from:o,to:o,text:e}),to(this,Mi(o),$)};Ho.prototype=ne(So.prototype,{constructor:Ho,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ii(function(e){var t=ot(this.first,0),r=this.first+this.size-1;ho(this,{from:t,to:ot(r,Ze(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Pn(this.cm,0,0),to(this,Mi(t),$)}),replaceRange:function(e,t,r,n){mo(this,e,t=ft(this,t),r=r?ft(this,r):t,n)},getRange:function(e,t,r){var n=Qe(this,ft(this,e),ft(this,t));return!1===r?n:""===r?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Ze(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ze(this,e)),Vt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ii(function(e,t,r){Ji(this,ft(this,"number"==typeof e?ot(e,t||0):e),null,r)}),setSelection:ii(function(e,t,r){Ji(this,ft(this,e),ft(this,t||e),r)}),extendSelection:ii(function(e,t,r){qi(this,ft(this,e),t&&ft(this,t),r)}),extendSelections:ii(function(e,t){Zi(this,dt(this,e),t)}),extendSelectionsBy:ii(function(e,t){Zi(this,dt(this,te(this.sel.ranges,e)),t)}),setSelections:ii(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new ki(ft(this,e[i].anchor),ft(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),to(this,Ti(this.cm,n,t),r)}}),addSelection:ii(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new ki(ft(this,e),ft(this,t||e))),to(this,Ti(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var i=Qe(this,r[n].from(),r[n].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=Qe(this,r[n].from(),r[n].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:ii(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];n[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:r}}for(var s=t&&"end"!=t&&function(e,t,r){for(var n=[],i=ot(e.first,0),o=i,l=0;l<t.length;l++){var s=t[l],a=Di(s.from,i,o),u=Di(Ni(s),i,o);if(i=s.to,o=u,"around"==r){var c=e.sel.ranges[l],h=lt(c.head,c.anchor)<0;n[l]=new ki(h?u:a,h?a:u)}else n[l]=new ki(a,a)}return new Li(n,e.sel.primIndex)}(this,n,t),a=n.length-1;a>=0;a--)ho(this,n[a]);s?eo(this,s):this.cm&&Fn(this.cm)}),undo:ii(function(){po(this,"undo")}),redo:ii(function(){po(this,"redo")}),undoSelection:ii(function(){po(this,"undo",!0)}),redoSelection:ii(function(){po(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Ii(this.history),Ei(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(e){var t=this.history=new Ii(this.history);t.done=$i(e.done.slice(0),null,!0),t.undone=$i(e.undone.slice(0),null,!0)},setGutterMarker:ii(function(e,t,r){return xo(this,e,"gutter",function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&se(n)&&(e.gutterMarkers=null),!0})}),clearGutter:ii(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&xo(t,r,"gutter",function(){return r.gutterMarkers[e]=null,se(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,!(e=Ze(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ii(function(e,t,r){return xo(this,e,"gutter"==t?"gutter":"class",function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[n]){if(k(r).test(e[n]))return!1;e[n]+=" "+r}else e[n]=r;return!0})}),removeLineClass:ii(function(e,t,r){return xo(this,e,"gutter"==t?"gutter":"class",function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[n];if(!i)return!1;if(null==r)e[n]=null;else{var o=i.match(k(r));if(!o)return!1;var l=o.index+o[0].length;e[n]=i.slice(0,o.index)+(o.index&&l!=i.length?" ":"")+i.slice(l)||null}return!0})}),addLineWidget:ii(function(e,t,r){return function(e,t,r,n){var i=new Lo(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),xo(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Xt(e,t)){var n=$t(t)<e.scrollTop;et(t,t.height+kr(i)),n&&Hn(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&fr(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return No(this,ft(this,e),ft(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return No(this,e=ft(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=Ze(this,(e=ft(this,e)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=ft(this,e),t=ft(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var s=0;s<l.length;s++){var a=l[s];null!=a.to&&i==e.line&&e.ch>=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||r&&!r(a.marker)||n.push(a.marker.parent||a.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),ft(this,ot(r,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new Ho(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new Ho(Je(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(lt(o,l)){var s=No(e,o,l,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}(n,Ao(this)),n},unlinkDoc:function(e){if(e instanceof Ol&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Do(Ao(this));break}}if(e.history==this.history){var r=[e.id];Ei(e,function(e){return r.push(e.id)},!0),e.history=new Ii(null),e.history.done=$i(this.history.done,r),e.history.undone=$i(this.history.undone,r)}},iterLinkedDocs:function(e){Ei(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ii(function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ti(t=this.cm,function(){zi(t),pn(t)}))})}),Ho.prototype.eachLine=Ho.prototype.iter;var Fo=0;function Po(e){var t=this;if(Eo(t),!xe(t,e)&&!Tr(t.display,e)){ke(e),l&&(Fo=+new Date);var r=fn(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),s=0,a=function(){++s==i&&ri(t,function(){var e={from:r=ft(t.doc,r),to:r,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};ho(t.doc,e),eo(t.doc,Mi(ft(t.doc,r),ft(t.doc,Ni(e))))})()},u=function(e,r){if(t.options.allowDropFileTypes&&-1==j(t.options.allowDropFileTypes,e.type))a();else{var n=new FileReader;n.onerror=function(){return a()},n.onload=function(){var e=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)?a():(o[r]=e,a())},n.readAsText(e)}},c=0;c<n.length;c++)u(n[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var h=e.dataTransfer.getData("Text");if(h){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),ro(t.doc,Mi(r,r)),f)for(var d=0;d<f.length;++d)mo(t.doc,"",f[d].anchor,f[d].head,"drag");t.replaceSelection(h,"around","paste"),t.display.input.focus()}}catch(p){}}}}function Eo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ro(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var t=0;t<r.length;t++)e(r[t])})}}var zo=!1;function Io(){var e;zo||(me(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Ro(Bo)},100))}),me(window,"blur",function(){return Ro(Nn)}),zo=!0)}function Bo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Go={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"},Uo=0;Uo<10;Uo++)Go[Uo+48]=Go[Uo+96]=String(Uo);for(var Vo=65;Vo<=90;Vo++)Go[Vo]=String.fromCharCode(Vo);for(var Ko=1;Ko<=12;Ko++)Go[Ko+111]=Go[Ko+63235]="F"+Ko;var jo={};function Xo(e){var t,r,n,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var l=0;l<o.length-1;l++){var s=o[l];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);n=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Yo(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=te(r.split(" "),Xo),o=0;o<i.length;o++){var l=void 0,s=void 0;o==i.length-1?(s=i.join(" "),l=n):(s=i.slice(0,o+1).join(" "),l="...");var a=t[s];if(a){if(a!=l)throw new Error("Inconsistent bindings for "+s)}else t[s]=l}delete e[r]}for(var u in t)e[u]=t[u];return e}function $o(e,t,r,n){var i=(t=Qo(t)).call?t.call(e,n):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return $o(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var l=$o(e,t.fallthrough[o],r,n);if(l)return l}}}function _o(e){var t="string"==typeof e?e:Go[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qo(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(S?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(e="Ctrl-"+e),(S?t.ctrlKey:t.metaKey)&&"Mod"!=n&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=n&&(e="Shift-"+e),e}function Zo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var r=Go[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),qo(r,e,t))}function Qo(e){return"string"==typeof e?jo[e]:e}function Jo(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&lt(o.from,ee(n).to)<=0;){var l=n.pop();if(lt(l.from,o.from)<0){o.from=l.from;break}}n.push(o)}ti(e,function(){for(var t=n.length-1;t>=0;t--)mo(e.doc,"",n[t].from,n[t].to,"+delete");Fn(e)})}function el(e,t,r){var n=ce(e.text,t+r,r);return n<0||n>e.text.length?null:n}function tl(e,t,r){var n=el(e,t.ch,r);return null==n?null:new ot(t.line,n,r<0?"after":"before")}function rl(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ge(r,t.doc.direction);if(o){var l,s=i<0?ee(o):o[0],a=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Er(t,r);l=i<0?r.text.length-1:0;var c=Rr(t,u,l).top;l=he(function(e){return Rr(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,l),"before"==a&&(l=el(r,l,1))}else l=i<0?s.to:s.from;return new ot(n,l,a)}}return new ot(n,i<0?r.text.length:0,i<0?"before":"after")}jo.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"},jo.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"},jo.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"},jo.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"]},jo.default=b?jo.macDefault:jo.pcDefault;var nl={selectAll:uo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Jo(e,function(t){if(t.empty()){var r=Ze(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Jo(e,function(t){return{from:ot(t.from().line,0),to:ft(e.doc,ot(t.to().line+1,0))}})},delLineLeft:function(e){return Jo(e,function(e){return{from:ot(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Jo(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Jo(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return il(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ol(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var r=Ze(e.doc,t),n=function(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}(r);n!=r&&(t=tt(n));return rl(!0,e,r,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},q)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},q)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?ol(e,t.head):n},q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),l=V(e.getLine(o.line),o.ch,n);t.push(J(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ti(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=Ze(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Ze(e.doc,i.line-1).text;l&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),ot(i.line-1,l.length-1),i,"+transpose"))}r.push(new ki(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return ti(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Fn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function il(e,t){var r=Ze(e.doc,t),n=Vt(r);return n!=r&&(t=tt(n)),rl(!0,e,n,t,1)}function ol(e,t){var r=il(e,t.line),n=Ze(e.doc,r.line),i=ge(n,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(r.ch,n.text.search(/\S/)),l=t.line==r.line&&t.ch<=o&&t.ch;return ot(r.line,l?0:o,r.sticky)}return r}function ll(e,t,r){if("string"==typeof t&&!(t=nl[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=Y}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}var sl=new K;function al(e,t,r,n){var i=e.state.keySeq;if(i){if(_o(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:sl.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ul(e,i+" "+t,r,n))return!0}return ul(e,t,r,n)}function ul(e,t,r,n){var i=function(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=$o(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&$o(t,e.options.extraKeys,r,e)||$o(t,e.options.keyMap,r,e)}(e,t,n);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&fr(e,"keyHandled",e,t,r),"handled"!=i&&"multi"!=i||(ke(r),Ln(e)),!!i}function cl(e,t){var r=Zo(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?al(e,"Shift-"+r,t,function(t){return ll(e,t,!0)})||al(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ll(e,t)}):al(e,r,t,function(t){return ll(e,t)}))}var hl=null;function fl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=H(z(t)),xe(t,e)))){l&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var i=cl(t,e);f&&(hl=i?n:null,!i&&88==n&&!Ie&&(b?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),r&&!b&&!i&&46==n&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function r(e){18!=e.keyCode&&e.altKey||(M(t,"CodeMirror-crosshair"),be(document,"keyup",r),be(document,"mouseover",r))}F(t,"CodeMirror-crosshair"),me(document,"keyup",r),me(document,"mouseover",r)}(t)}}function dl(e){16==e.keyCode&&(this.doc.sel.shift=!1),xe(this,e)}function pl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Tr(t.display,e)||xe(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(f&&r==hl)return hl=null,void ke(e);if(!f||e.which&&!(e.which<10)||!cl(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(function(e,t,r){return al(e,"'"+r+"'",t,function(t){return ll(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var gl,vl,ml=function(e,t,r){this.time=e,this.pos=t,this.button=r};function yl(e){var t=this,r=t.display;if(!(xe(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,Tr(r,e))a||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));else if(!xl(t,e)){var n=fn(t,e),i=Ae(e),o=n?function(e,t){var r=+new Date;return vl&&vl.compare(r,e,t)?(gl=vl=null,"triple"):gl&&gl.compare(r,e,t)?(vl=new ml(r,e,t),gl=null,"double"):(gl=new ml(r,e,t),vl=null,"single")}(n,i):"single";B(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),n&&function(e,t,r,n,i){var o="Click";"double"==n?o="Double"+o:"triple"==n&&(o="Triple"+o);return al(e,qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=nl[t]),!t)return!1;var n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n=t(e,r)!=Y}finally{e.state.suppressEdits=!1}return n})}(t,i,n,o,e)||(1==i?n?function(e,t,r,n){l?setTimeout(G(kn,e),0):e.curOp.focus=H(z(e));var i,o=function(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(null==i.unit){var o=w?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey);null==i.addNew&&(i.addNew=b?r.metaKey:r.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(b?r.altKey:r.ctrlKey));return i}(e,r,n),u=e.doc.sel;e.options.dragDrop&&He&&!e.isReadOnly()&&"single"==r&&(i=u.contains(t))>-1&&(lt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,u=ri(e,function(t){a&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Tn(e)),be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",h),be(i.scroller,"drop",u),o||(ke(t),n.addNew||qi(e.doc,r,null,null,n.extend),a&&!d||l&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return o=!0};a&&(i.scroller.draggable=!0);e.state.draggingText=u,u.copy=!n.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",u),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",h),me(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,n,t,o):function(e,t,r,n){l&&Tn(e);var i=e.display,o=e.doc;ke(t);var s,a,u=o.sel,c=u.ranges;n.addNew&&!n.extend?(a=o.sel.contains(r),s=a>-1?c[a]:new ki(r,r)):(s=o.sel.primary(),a=o.sel.primIndex);if("rectangle"==n.unit)n.addNew||(s=new ki(r,r)),r=fn(e,t,!0,!0),a=-1;else{var h=bl(e,r,n.unit);s=n.extend?_i(s,h.anchor,h.head,n.extend):h}n.addNew?-1==a?(a=c.length,to(o,Ti(e,c.concat([s]),a),{scroll:!1,origin:"*mouse"})):c.length>1&&c[a].empty()&&"char"==n.unit&&!n.extend?(to(o,Ti(e,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Qi(o,a,s,_):(a=0,to(o,new Li([s],0),_),u=o.sel);var f=r;function d(t){if(0!=lt(f,t))if(f=t,"rectangle"==n.unit){for(var i=[],l=e.options.tabSize,c=V(Ze(o,r.line).text,r.ch,l),h=V(Ze(o,t.line).text,t.ch,l),d=Math.min(c,h),p=Math.max(c,h),g=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=v;g++){var m=Ze(o,g).text,y=Z(m,d,l);d==p?i.push(new ki(ot(g,y),ot(g,y))):m.length>y&&i.push(new ki(ot(g,y),ot(g,Z(m,p,l))))}i.length||i.push(new ki(r,r)),to(o,Ti(e,u.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=bl(e,t,n.unit),C=w.anchor;lt(x.anchor,C)>0?(b=x.head,C=ct(w.from(),x.anchor)):(b=x.anchor,C=ut(w.to(),x.head));var S=u.ranges.slice(0);S[a]=function(e,t){var r=t.anchor,n=t.head,i=Ze(e.doc,r.line);if(0==lt(r,n)&&r.sticky==n.sticky)return t;var o=ge(i);if(!o)return t;var l=de(o,r.ch,r.sticky),s=o[l];if(s.from!=r.ch&&s.to!=r.ch)return t;var a,u=l+(s.from==r.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)a=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=de(o,n.ch,n.sticky),h=c-l||(n.ch-r.ch)*(1==s.level?-1:1);a=c==u-1||c==u?h<0:h>0}var f=o[u+(a?-1:0)],d=a==(1==f.level),p=d?f.from:f.to,g=d?"after":"before";return r.ch==p&&r.sticky==g?t:new ki(new ot(r.line,p,g),n)}(e,new ki(ft(o,C),b)),to(o,Ti(e,S,a),_)}}var p=i.wrapper.getBoundingClientRect(),g=0;function v(t){e.state.selectingText=!1,g=1/0,t&&(ke(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",m),be(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var m=ri(e,function(t){0!==t.buttons&&Ae(t)?function t(r){var l=++g;var s=fn(e,r,!0,"rectangle"==n.unit);if(!s)return;if(0!=lt(s,f)){e.curOp.focus=H(z(e)),d(s);var a=Dn(i,o);(s.line>=a.to||s.line<a.from)&&setTimeout(ri(e,function(){g==l&&t(r)}),150)}else{var u=r.clientY<p.top?-20:r.clientY>p.bottom?20:0;u&&setTimeout(ri(e,function(){g==l&&(i.scroller.scrollTop+=u,t(r))}),50)}}(t):v(t)}),y=ri(e,v);e.state.selectingText=y,me(i.wrapper.ownerDocument,"mousemove",m),me(i.wrapper.ownerDocument,"mouseup",y)}(e,n,t,o)}(t,n,o,e):Oe(e)==r.scroller&&ke(e):2==i?(n&&qi(t.doc,n),setTimeout(function(){return r.input.focus()},20)):3==i&&(L?t.display.input.onContextMenu(e):Tn(t)))}}function bl(e,t,r){if("char"==r)return new ki(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new ki(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var n=r(e,t);return new ki(n.from,n.to)}function wl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(c){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ke(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!Se(e,r))return Me(t);o-=s.top-l.viewOffset;for(var a=0;a<e.display.gutterSpecs.length;++a){var u=l.gutters.childNodes[a];if(u&&u.getBoundingClientRect().right>=i)return we(e,r,e,rt(e.doc,o),e.display.gutterSpecs[a].className,t),Me(t)}}function xl(e,t){return wl(e,t,"gutterClick",!0)}function Cl(e,t){Tr(e.display,t)||function(e,t){if(!Se(e,"gutterContextMenu"))return!1;return wl(e,t,"gutterContextMenu",!1)}(e,t)||xe(e,t,"contextmenu")||L||e.display.input.onContextMenu(t)}function Sl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Kr(e)}ml.prototype.compare=function(e,t,r){return this.time+400>e&&0==lt(t,this.pos)&&r==this.button};var Ll={toString:function(){return"CodeMirror.Init"}},kl={},Tl={};function Ml(e,t,r){if(!t!=!(r&&r!=Ll)){var n=e.display.dragFunctions,i=t?me:be;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Nl(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),qt(e)),hn(e),pn(e),Kr(e),setTimeout(function(){return Kn(e)},100)}function Ol(e,t){var r=this;if(!(this instanceof Ol))return new Ol(e,t);this.options=t=t?U(t):{},U(kl,t,!1);var n=t.value;"string"==typeof n?n=new Ho(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Ol.inputStyles[t.inputStyle](this),o=this.display=new yi(e,n,i,t);for(var u in o.wrapper.CodeMirror=this,Sl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yn(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 K,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),l&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;me(t.scroller,"mousedown",ri(e,yl)),me(t.scroller,"dblclick",l&&s<11?ri(e,function(t){if(!xe(e,t)){var r=fn(e,t);if(r&&!xl(e,t)&&!Tr(e.display,t)){ke(t);var n=e.findWordAt(r);qi(e.doc,n.anchor,n.head)}}}):function(t){return xe(e,t)||ke(t)});me(t.scroller,"contextmenu",function(t){return Cl(e,t)}),me(t.input.getField(),"contextmenu",function(r){t.scroller.contains(r.target)||Cl(e,r)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(n=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}me(t.scroller,"touchstart",function(i){if(!xe(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!xl(e,i)){t.input.ensurePolled(),clearTimeout(r);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),me(t.scroller,"touchend",function(r){var n=t.activeTouch;if(n&&!Tr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var l,s=e.coordsChar(t.activeTouch,"page");l=!n.prev||o(n,n.prev)?new ki(s,s):!n.prev.prev||o(n,n.prev.prev)?e.findWordAt(s):new ki(ot(s.line,0),ft(e.doc,ot(s.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),ke(r)}i()}),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(zn(e,t.scroller.scrollTop),Bn(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))}),me(t.scroller,"mousewheel",function(t){return Si(e,t)}),me(t.scroller,"DOMMouseScroll",function(t){return Si(e,t)}),me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){xe(e,t)||Ne(t)},over:function(t){xe(e,t)||(!function(e,t){var r=fn(e,t);if(r){var n=document.createDocumentFragment();xn(e,r,n),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,n)}}(e,t),Ne(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-Fo<100))Ne(t);else if(!xe(e,t)&&!Tr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var r=A("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),f&&r.parentNode.removeChild(r)}}(e,t)},drop:ri(e,Po),leave:function(t){xe(e,t)||Eo(e)}};var a=t.input.getField();me(a,"keyup",function(t){return dl.call(e,t)}),me(a,"keydown",ri(e,fl)),me(a,"keypress",ri(e,pl)),me(a,"focus",function(t){return Mn(e,t)}),me(a,"blur",function(t){return Nn(e,t)})}(this),Io(),_n(this),this.curOp.forceUpdate=!0,Ri(this,n),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Mn(r)},20):Nn(this),Tl)Tl.hasOwnProperty(u)&&Tl[u](this,t[u],Ll);pi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Al.length;++c)Al[c](this);qn(this),a&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ol.defaults=kl,Ol.optionHandlers=Tl;var Al=[];function Dl(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=yt(e,t).state:r="prev");var l=e.options.tabSize,s=Ze(o,t),a=V(s.text,null,l);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==Y||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?V(Ze(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var h="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)f+=l,h+="\t";if(f<u&&(h+=J(u-f)),h!=c)return mo(o,h,ot(t,0),ot(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<c.length){var v=ot(t,c.length);Qi(o,p,new ki(v,v));break}}}Ol.defineInitHook=function(e){return Al.push(e)};var Wl=null;function Hl(e){Wl=e}function Fl(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var l=+new Date-200,s="paste"==i||e.state.pasteIncoming>l,a=Re(t),u=null;if(s&&n.ranges.length>1)if(Wl&&Wl.text.join("\n")==t){if(n.ranges.length%Wl.text.length==0){u=[];for(var c=0;c<Wl.text.length;c++)u.push(o.splitLines(Wl.text[c]))}}else a.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(u=te(a,function(e){return[e]}));for(var h=e.curOp.updateInput,f=n.ranges.length-1;f>=0;f--){var d=n.ranges[f],p=d.from(),g=d.to();d.empty()&&(r&&r>0?p=ot(p.line,p.ch-r):e.state.overwrite&&!s?g=ot(g.line,Math.min(Ze(o,g.line).text.length,g.ch+ee(a).length)):s&&Wl&&Wl.lineWise&&Wl.text.join("\n")==a.join("\n")&&(p=g=ot(p.line,0)));var v={from:p,to:g,text:u?u[f%u.length]:a,origin:i||(s?"paste":e.state.cutIncoming>l?"cut":"+input")};ho(e.doc,v),fr(e,"inputRead",e,v)}t&&!s&&El(e,t),Fn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Pl(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ti(t,function(){return Fl(t,r,0,null,"paste")}),!0}function El(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){l=Dl(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Dl(e,i.head.line,"smart"));l&&fr(e,"electricInput",e,i.head.line)}}}function Rl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function zl(e,t,r,n){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",n?"on":"off"),e.setAttribute("spellcheck",!!t)}function Il(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?e.style.width="1000px":e.setAttribute("wrap","off"),v&&(e.style.border="1px solid black"),t}function Bl(e,t,r,n,i){var o=t,l=r,s=Ze(e,t.line),a=i&&"rtl"==e.direction?-r:r;function u(o){var l,u;if("codepoint"==n){var c=s.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))l=null;else{var h=r>0?c>=55296&&c<56320:c>=56320&&c<57343;l=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+r*(h?2:1))),-r)}}else l=i?function(e,t,r,n){var i=ge(t,e.doc.direction);if(!i)return tl(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=de(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from<r.ch))return tl(t,r,n);var s,a=function(e,r){return el(t,e instanceof ot?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(s=s||Er(e,t),rn(e,t,s,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?a(r,-1):r.ch);if("rtl"==e.doc.direction||1==l.level){var h=1==l.level==n<0,f=a(r,h?1:-1);if(null!=f&&(h?f<=l.to&&f<=c.end:f>=l.from&&f>=c.begin)){var d=h?"before":"after";return new ot(r.line,f,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new ot(r.line,a(e,1),"before"):new ot(r.line,e,"after")};e>=0&&e<i.length;e+=t){var l=i[e],s=t>0==(1!=l.level),u=s?n.begin:a(n.end,-1);if(l.from<=u&&u<l.to)return o(u,s);if(u=s?l.from:a(l.to,-1),n.begin<=u&&u<n.end)return o(u,s)}},g=p(o+n,n,c);if(g)return g;var v=n>0?c.end:a(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}(e.cm,s,t,r):tl(s,t,r);if(null==l){if(o||(u=t.line+a)<e.first||u>=e.first+e.size||(t=new ot(u,t.ch,t.sticky),!(s=Ze(e,u))))return!1;t=rl(i,e.cm,s,t.line,a)}else t=l;return!0}if("char"==n||"codepoint"==n)u();else if("column"==n)u(!0);else if("word"==n||"group"==n)for(var c=null,h="group"==n,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||u(!d);d=!1){var p=s.text.charAt(t.ch)||"\n",g=le(p,f)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||d||g||(g="s"),c&&c!=g){r<0&&(r=1,u(),t.sticky="after");break}if(g&&(c=g),r>0&&!u(!d))break}var v=so(e,t,o,l,!0);return st(o,v)&&(v.hitSide=!0),v}function Gl(e,t,r,n){var i,o,l=e.doc,s=t.left;if("page"==n){var a=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||l(e).documentElement.clientHeight),u=Math.max(a-.5*ln(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=en(e,s,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var Ul=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Vl(e,t){var r=Pr(e,t.line);if(!r||r.hidden)return null;var n=Ze(e.doc,t.line),i=Hr(r,n,t.line),o=ge(n,e.doc.direction),l="left";o&&(l=de(o,t.ch)%2?"right":"left");var s=Br(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Kl(e,t){return t&&(e.bad=!0),e}function jl(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Kl(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return Xl(o,t,r)}}function Xl(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!W(n,t))return Kl(ot(tt(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?ee(e.rest):e.line;return Kl(ot(tt(o),o.text.length),i)}var l=3==t.nodeType?t:null,s=t;for(l||1!=t.childNodes.length||3!=t.firstChild.nodeType||(l=t.firstChild,r&&(r=l.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var a=e.measure,u=a.maps;function c(t,r,n){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?a.map:u[i],l=0;l<o.length;l+=3){var s=o[l+2];if(s==t||s==r){var c=tt(i<0?e.line:e.rest[i]),h=o[l]+n;return(n<0||s!=t)&&(h=o[l+(n?1:0)]),ot(c,h)}}}var h=c(l,s,r);if(h)return Kl(h,i);for(var f=s.nextSibling,d=l?l.nodeValue.length-r:0;f;f=f.nextSibling){if(h=c(f,f.firstChild,0))return Kl(ot(h.line,h.ch-d),i);d+=f.textContent.length}for(var p=s.previousSibling,g=r;p;p=p.previousSibling){if(h=c(p,p.firstChild,-1))return Kl(ot(h.line,h.ch+g),i);g+=p.textContent.length}}Ul.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function l(e){if(o(e)&&!xe(n,e)){if(n.somethingSelected())Hl({lineWise:!1,text:n.getSelections()}),"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var t=Rl(n);Hl({lineWise:!0,text:t.text}),"cut"==e.type&&n.operation(function(){n.setSelections(t.ranges,0,$),n.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var l=Wl.text.join("\n");if(e.clipboardData.setData("Text",l),e.clipboardData.getData("Text")==l)return void e.preventDefault()}var s=Il(),a=s.firstChild;zl(a),n.display.lineSpace.insertBefore(s,n.display.lineSpace.firstChild),a.value=Wl.text.join("\n");var u=H(I(i));E(a),setTimeout(function(){n.display.lineSpace.removeChild(s),u.focus(),u==i&&r.showPrimarySelection()},50)}}i.contentEditable=!0,zl(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),me(i,"paste",function(e){!o(e)||xe(n,e)||Pl(e,n)||s<=11&&setTimeout(ri(n,function(){return t.updateFromDOM()}),20)}),me(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),me(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),me(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),me(i,"touchstart",function(){return r.forceCompositionEnd()}),me(i,"input",function(){t.composing||t.readFromDOMSoon()}),me(i,"copy",l),me(i,"cut",l)},Ul.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ul.prototype.prepareSelection=function(){var e=wn(this.cm,!1);return e.focus=H(I(this.div))==this.div,e},Ul.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ul.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ul.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),i=n.from(),o=n.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var l=jl(t,e.anchorNode,e.anchorOffset),s=jl(t,e.focusNode,e.focusOffset);if(!l||l.bad||!s||s.bad||0!=lt(ct(l,s),i)||0!=lt(ut(l,s),o)){var a=t.display.view,u=i.line>=t.display.viewFrom&&Vl(t,i)||{node:a[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Vl(t,o);if(!c){var h=a[a.length-1].measure,f=h.maps?h.maps[h.maps.length-1]:h.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var d,p=e.rangeCount&&e.getRangeAt(0);try{d=T(u.node,u.offset,c.offset,c.node)}catch(Ee){}d&&(!r&&t.state.focused?(e.collapse(u.node,u.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),p&&null==e.anchorNode?e.addRange(p):r&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ul.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ul.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},Ul.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ul.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return W(this.div,t)},Ul.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&H(I(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ul.prototype.blur=function(){this.div.blur()},Ul.prototype.getField=function(){return this.div},Ul.prototype.supportsTouch=function(){return!0},Ul.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):ti(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},Ul.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ul.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(m&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=jl(t,e.anchorNode,e.anchorOffset),n=jl(t,e.focusNode,e.focusOffset);r&&n&&ti(t,function(){to(t.doc,Mi(r,n),$),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Ul.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,n=this.cm,i=n.display,o=n.doc.sel.primary(),l=o.from(),s=o.to();if(0==l.ch&&l.line>n.firstLine()&&(l=ot(l.line-1,Ze(n.doc,l.line-1).length)),s.ch==Ze(n.doc,s.line).text.length&&s.line<n.lastLine()&&(s=ot(s.line+1,0)),l.line<i.viewFrom||s.line>i.viewTo-1)return!1;l.line==i.viewFrom||0==(e=dn(n,l.line))?(t=tt(i.view[0].line),r=i.view[0].node):(t=tt(i.view[e].line),r=i.view[e-1].node.nextSibling);var a,u,c=dn(n,s.line);if(c==i.view.length-1?(a=i.viewTo-1,u=i.lineDiv.lastChild):(a=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var h=n.doc.splitLines(function(e,t,r,n,i){var o="",l=!1,s=e.doc.lineSeparator(),a=!1;function u(){l&&(o+=s,a&&(o+=s),l=a=!1)}function c(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void c(r);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(ot(n,0),ot(i+1,0),(v=+f,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c(Qe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&u();for(var g=0;g<t.childNodes.length;g++)h(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(a=!0),p&&(l=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;h(t),t!=r;)t=t.nextSibling,a=!1;return o}(n,r,u,t,a)),f=Qe(n.doc,ot(t,0),ot(a,Ze(n.doc,a).text.length));h.length>1&&f.length>1;)if(ee(h)==ee(f))h.pop(),f.pop(),a--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),t++}for(var d=0,p=0,g=h[0],v=f[0],m=Math.min(g.length,v.length);d<m&&g.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=ee(h),b=ee(f),w=Math.min(y.length-(1==h.length?d:0),b.length-(1==f.length?d:0));p<w&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==h.length&&1==f.length&&t==l.line)for(;d&&d>l.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;h[h.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=ot(t,d),C=ot(a,f.length?ee(f).length-p:0);return h.length>1||h[0]||lt(x,C)?(mo(n.doc,h,x,C,"+input"),!0):void 0},Ul.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ul.prototype.reset=function(){this.forceCompositionEnd()},Ul.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ul.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ul.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ti(this.cm,function(){return pn(e.cm)})},Ul.prototype.setUneditable=function(e){e.contentEditable="false"},Ul.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ri(this.cm,Fl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ul.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ul.prototype.onContextMenu=function(){},Ul.prototype.resetPosition=function(){},Ul.prototype.needsContentAttribute=!0;var Yl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new K,this.hasSelection=!1,this.composing=null,this.resetting=!1};Yl.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!xe(n,e)){if(n.somethingSelected())Hl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Rl(n);Hl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,$):(r.prevInput="",i.value=t.text.join("\n"),E(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),me(i,"input",function(){l&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),me(i,"paste",function(e){xe(n,e)||Pl(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())}),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",function(t){if(!Tr(e,t)&&!xe(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),me(e.lineSpace,"selectstart",function(t){Tr(e,t)||ke(t)}),me(i,"compositionstart",function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}}),me(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Yl.prototype.createField=function(e){this.wrapper=Il(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;zl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Yl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Yl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=wn(e);if(e.options.moveInputWithCursor){var i=Zr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},Yl.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Yl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&E(this.textarea),l&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Yl.prototype.getField=function(){return this.textarea},Yl.prototype.supportsTouch=function(){return!1},Yl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||H(I(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(Ee){}},Yl.prototype.blur=function(){this.textarea.blur()},Yl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yl.prototype.receivedFocus=function(){this.slowPoll()},Yl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Yl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))})},Yl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||ze(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(l&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(n.length,i.length);a<u&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return ti(t,function(){Fl(t,i.slice(a),n.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yl.prototype.onKeyPress=function(){l&&s>=9&&(this.hasSelection=null),this.fastPoll()},Yl.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=fn(r,e),u=n.scroller.scrollTop;if(o&&!f){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&ri(r,to)(r.doc,Mi(o),$);var c,h=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",a&&(c=i.ownerDocument.defaultView.scrollY),n.input.focus(),a&&i.ownerDocument.defaultView.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&s>=9&&v(),L){Ne(e);var g=function(){be(window,"mouseup",g),setTimeout(m,20)};me(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=r.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=h,l&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!l||l&&s<9)&&v();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ri(r,uo)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},Yl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Yl.prototype.setUneditable=function(){},Yl.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=Ll&&i(e,t,r)}:i)}e.defineOption=r,e.Init=Ll,r("value","",function(e,t){return e.setValue(t)},!0),r("mode",null,function(e,t){e.doc.modeOption=t,Wi(e)},!0),r("indentUnit",2,Wi,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(e){Hi(e),Kr(e),pn(e)},!0),r("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(ot(n,o))}n++});for(var i=r.length-1;i>=0;i--)mo(e.doc,t,r[i],ot(r[i].line,r[i].ch+t.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Ll&&e.refresh()}),r("specialCharPlaceholder",nr,function(e){return e.refresh()},!0),r("electricChars",!0),r("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),r("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),r("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",function(e){Sl(e),mi(e)},!0),r("keyMap","default",function(e,t,r){var n=Qo(t),i=r!=Ll&&Qo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Nl,!0),r("gutters",[],function(e,t){e.display.gutterSpecs=gi(t,e.options.lineNumbers),mi(e)},!0),r("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?un(e.display)+"px":"0",e.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(e){return Kn(e)},!0),r("scrollbarStyle","native",function(e){Yn(e),Kn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),r("lineNumbers",!1,function(e,t){e.display.gutterSpecs=gi(e.options.gutters,t),mi(e)},!0),r("firstLineNumber",1,mi,!0),r("lineNumberFormatter",function(e){return e},mi,!0),r("showCursorWhenSelecting",!1,bn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(e,t){"nocursor"==t&&(Nn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),r("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),r("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),r("dragDrop",!0,Ml),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,bn,!0),r("singleCursorHeightPerLine",!0,bn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Hi,!0),r("addModeClass",!1,Hi,!0),r("pollInterval",100),r("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),r("historyEventDelay",1250),r("viewportMargin",10,function(e){return e.refresh()},!0),r("maxHighlightLength",1e4,Hi,!0),r("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),r("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),r("autofocus",null),r("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),r("phrases",null)}(Ol),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){B(this).focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&ri(this,t[e])(this,r,i),we(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:ni(function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");!function(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,pn(this)}),removeOverlay:ni(function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var n=t[r].modeSpec;if(n==e||"string"==typeof e&&n.name==e)return t.splice(r,1),this.state.modeGen++,void pn(this)}}),indentLine:ni(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Dl(this,e,t,r)}),indentSelection:ni(function(e){for(var t=this.doc.sel.ranges,r=-1,n=0;n<t.length;n++){var i=t[n];if(i.empty())i.head.line>r&&(Dl(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&Fn(this));else{var o=i.from(),l=i.to(),s=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var a=s;a<r;++a)Dl(this,a,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[n].from().ch>0&&Qi(this.doc,n,new ki(o,u[n].to()),$)}}}),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,r=mt(this,Ze(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]<o)){t=r[2*l+2];break}n=l+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!r.hasOwnProperty(t))return n;var i=r[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&n.push(i[o[t]]);else if(o[t])for(var l=0;l<o[t].length;l++){var s=i[o[t][l]];s&&n.push(s)}else o.helperType&&i[o.helperType]?n.push(i[o.helperType]):i[o.name]&&n.push(i[o.name]);for(var a=0;a<i._global.length;a++){var u=i._global[a];u.pred(o,this)&&-1==j(n,u.val)&&n.push(u.val)}return n},getStateAfter:function(e,t){var r=this.doc;return yt(this,(e=ht(r,null==e?r.first+r.size-1:e))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return Zr(this,null==e?r.head:"object"==typeof e?ft(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return qr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return en(this,(e=_r(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=_r(this,{top:e,left:0},t||"page").top,rt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),n=Ze(this.doc,e)}else n=e;return $r(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-$t(n):0)},defaultTextHeight:function(){return ln(this.display)},defaultCharWidth:function(){return sn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o,l,s,a=this.display,u=(e=Zr(this,ft(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==n)u=e.top;else if("above"==n||"near"==n){var h=Math.max(a.wrapper.clientHeight,this.doc.height),f=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>h)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),r&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Wn(o,l)).scrollTop&&zn(o,s.scrollTop),null!=s.scrollLeft&&Bn(o,s.scrollLeft))},triggerOnKeyDown:ni(fl),triggerOnKeyPress:ni(pl),triggerOnKeyUp:dl,triggerOnMouseDown:ni(yl),execCommand:function(e){if(nl.hasOwnProperty(e))return nl[e].call(null,this)},triggerElectric:ni(function(e){El(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),l=0;l<t&&!(o=Bl(this.doc,o,i,r,n)).hitSide;++l);return o},moveH:ni(function(e,t){var r=this;this.extendSelectionsBy(function(n){return r.display.shift||r.doc.extend||n.empty()?Bl(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()},q)}),deleteH:ni(function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):Jo(this,function(r){var i=Bl(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}})}),findPosV:function(e,t,r,n){var i=1,o=n;t<0&&(i=-1,t=-t);for(var l=ft(this.doc,e),s=0;s<t;++s){var a=Zr(this,l,"div");if(null==o?o=a.left:a.left=o,(l=Gl(this,a,i,r)).hitSide)break}return l},moveV:ni(function(e,t){var r=this,n=this.doc,i=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy(function(l){if(o)return e<0?l.from():l.to();var s=Zr(r,l.head,"div");null!=l.goalColumn&&(s.left=l.goalColumn),i.push(s.left);var a=Gl(r,s,e,t);return"page"==t&&l==n.sel.primary()&&Hn(r,qr(r,a,"div").top-s.top),a},q),i.length)for(var l=0;l<n.sel.ranges.length;l++)n.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=Ze(this.doc,e.line).text,r=e.ch,n=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&n!=t.length||!r?++n:--r;for(var o=t.charAt(r),l=le(o,i)?function(e){return le(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!le(e)};r>0&&l(t.charAt(r-1));)--r;for(;n<t.length&&l(t.charAt(n));)++n}return new ki(ot(e.line,r),ot(e.line,n))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),we(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==H(z(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ni(function(e,t){Pn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ar(this)-this.display.barHeight,width:e.scrollWidth-Ar(this)-this.display.barWidth,clientHeight:Wr(this),clientWidth:Dr(this)}},scrollIntoView:ni(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){En(e),e.curOp.scrollToPos=t}(this,e):Rn(this,e.from,e.to,e.margin)}),setSize:ni(function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&Vr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){gn(r,i,"widget");break}++i}),this.curOp.forceUpdate=!0,we(this,"refresh",this)}),operation:function(e){return ti(this,e)},startOperation:function(){return _n(this)},endOperation:function(){return qn(this)},refresh:ni(function(){var e=this.display.cachedTextHeight;pn(this),this.curOp.forceUpdate=!0,Kr(this),Pn(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(null==e||Math.abs(e-ln(this.display))>.5||this.options.lineWrapping)&&hn(this),we(this,"refresh",this)}),swapDoc:ni(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ri(this,e),Kr(this),this.display.input.reset(),Pn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fr(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Le(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Ol);var $l="iter insert remove copy getEditor constructor".split(" ");for(var _l in Ho.prototype)Ho.prototype.hasOwnProperty(_l)&&j($l,_l)<0&&(Ol.prototype[_l]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ho.prototype[_l]));return Le(Ho),Ol.inputStyles={textarea:Yl,contenteditable:Ul},Ol.defineMode=function(e){Ol.defaults.mode||"null"==e||(Ol.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ge[e]=t}.apply(this,arguments)},Ol.defineMIME=function(e,t){Ue[e]=t},Ol.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ol.defineMIME("text/plain","null"),Ol.defineExtension=function(e,t){Ol.prototype[e]=t},Ol.defineDocExtension=function(e,t){Ho.prototype[e]=t},Ol.fromTextArea=function(e,t){if((t=t?U(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=H(I(e));t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=s.getValue()}var i;if(e.form&&(me(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(Ee){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ol(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=be,e.on=me,e.wheelEventPixels=Ci,e.Doc=Ho,e.splitLines=Re,e.countColumn=V,e.findColumn=Z,e.isWordChar=oe,e.Pass=Y,e.signal=we,e.Line=Zt,e.changeEnd=Ni,e.scrollbarModel=Xn,e.Pos=ot,e.cmpPos=lt,e.modes=Ge,e.mimeModes=Ue,e.resolveMode=Ve,e.getMode=Ke,e.modeExtensions=je,e.extendMode=Xe,e.copyState=Ye,e.startState=_e,e.innerMode=$e,e.commands=nl,e.keyMap=jo,e.keyName=Zo,e.isModifierKey=_o,e.lookupKey=$o,e.normalizeKeyMap=Yo,e.StringStream=qe,e.SharedTextMarker=Oo,e.TextMarker=Mo,e.LineWidget=Lo,e.e_preventDefault=ke,e.e_stopPropagation=Te,e.e_stop=Ne,e.addClass=F,e.contains=W,e.rmClass=M,e.keyNames=Go}(Ol),Ol.version="5.65.17",Ol});
},{}],"S5Yr":[function(require,module,exports) {

},{}],"X3fE":[function(require,module,exports) {
var define;
var e;!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],t):t(CodeMirror)}(function(e){"use strict";var t="CodeMirror-activeline",n="CodeMirror-activeline-background",i="CodeMirror-activeline-gutter";function r(e){for(var r=0;r<e.state.activeLines.length;r++)e.removeLineClass(e.state.activeLines[r],"wrap",t),e.removeLineClass(e.state.activeLines[r],"background",n),e.removeLineClass(e.state.activeLines[r],"gutter",i)}function a(e,a){for(var o=[],s=0;s<a.length;s++){var c=a[s],l=e.getOption("styleActiveLine");if("object"==typeof l&&l.nonEmpty?c.anchor.line==c.head.line:c.empty()){var f=e.getLineHandleVisualStart(c.head.line);o[o.length-1]!=f&&o.push(f)}}(function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0})(e.state.activeLines,o)||e.operation(function(){r(e);for(var a=0;a<o.length;a++)e.addLineClass(o[a],"wrap",t),e.addLineClass(o[a],"background",n),e.addLineClass(o[a],"gutter",i);e.state.activeLines=o})}function o(e,t){a(e,t.ranges)}e.defineOption("styleActiveLine",!1,function(t,n,i){var s=i!=e.Init&&i;n!=s&&(s&&(t.off("beforeSelectionChange",o),r(t),delete t.state.activeLines),n&&(t.state.activeLines=[],a(t,t.listSelections()),t.on("beforeSelectionChange",o)))})});
},{"../../lib/codemirror":"L7e6"}],"Da5z":[function(require,module,exports) {
var define;
var e;!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof e&&e.amd?e(["../../lib/codemirror"],t):t(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}e.defineMode("css",function(t,r){var o=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var i,a,n=t.indentUnit,l=r.tokenHooks,s=r.documentTypes||{},c=r.mediaTypes||{},d=r.mediaFeatures||{},p=r.mediaValueKeywords||{},u=r.propertyKeywords||{},m=r.nonStandardPropertyKeywords||{},g=r.fontProperties||{},b=r.counterDescriptors||{},h=r.colorKeywords||{},f=r.valueKeywords||{},k=r.allowNested,y=r.lineComment,w=!0===r.supportsAtComponent,v=!1!==t.highlightNonStandardPropertyKeywords;function x(e,t){return i=t,e}function z(e){return function(t,r){for(var o,i=!1;null!=(o=t.next());){if(o==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==o}return(o==e||!i&&")"!=e)&&(r.tokenize=null),x("string","string")}}function j(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=z(")"),x(null,"(")}function P(e,t,r){this.type=e,this.indent=t,this.prev=r}function q(e,t,r,o){return e.context=new P(r,t.indentation()+(!1===o?0:n),e.context),r}function K(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function C(e,t,r){return T[r.context.type](e,t,r)}function B(e,t,r,o){for(var i=o||1;i>0;i--)r.context=r.context.prev;return C(e,t,r)}function _(e){var t=e.current().toLowerCase();a=f.hasOwnProperty(t)?"atom":h.hasOwnProperty(t)?"keyword":"variable"}var T={top:function(e,t,r){if("{"==e)return q(r,t,"block");if("}"==e&&r.context.prev)return K(r);if(w&&/@component/i.test(e))return q(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return q(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return q(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return q(r,t,"at");if("hash"==e)a="builtin";else if("word"==e)a="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return q(r,t,"interpolation");if(":"==e)return"pseudo";if(k&&"("==e)return q(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var o=t.current().toLowerCase();return u.hasOwnProperty(o)?(a="property","maybeprop"):m.hasOwnProperty(o)?(a=v?"string-2":"property","maybeprop"):k?(a=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(a+=" error","maybeprop")}return"meta"==e?"block":k||"hash"!=e&&"qualifier"!=e?T.top(e,t,r):(a="error","block")},maybeprop:function(e,t,r){return":"==e?q(r,t,"prop"):C(e,t,r)},prop:function(e,t,r){if(";"==e)return K(r);if("{"==e&&k)return q(r,t,"propBlock");if("}"==e||"{"==e)return B(e,t,r);if("("==e)return q(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)_(t);else if("interpolation"==e)return q(r,t,"interpolation")}else a+=" error";return"prop"},propBlock:function(e,t,r){return"}"==e?K(r):"word"==e?(a="property","maybeprop"):r.context.type},parens:function(e,t,r){return"{"==e||"}"==e?B(e,t,r):")"==e?K(r):"("==e?q(r,t,"parens"):"interpolation"==e?q(r,t,"interpolation"):("word"==e&&_(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(a="variable-3",r.context.type):C(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&s.hasOwnProperty(t.current())?(a="tag",r.context.type):T.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return q(r,t,"atBlock_parens");if("}"==e||";"==e)return B(e,t,r);if("{"==e)return K(r)&&q(r,t,k?"block":"top");if("interpolation"==e)return q(r,t,"interpolation");if("word"==e){var o=t.current().toLowerCase();a="only"==o||"not"==o||"and"==o||"or"==o?"keyword":c.hasOwnProperty(o)?"attribute":d.hasOwnProperty(o)?"property":p.hasOwnProperty(o)?"keyword":u.hasOwnProperty(o)?"property":m.hasOwnProperty(o)?v?"string-2":"property":f.hasOwnProperty(o)?"atom":h.hasOwnProperty(o)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?B(e,t,r):"{"==e?K(r)&&q(r,t,k?"block":"top",!1):("word"==e&&(a="error"),r.context.type)},atBlock_parens:function(e,t,r){return")"==e?K(r):"{"==e||"}"==e?B(e,t,r,2):T.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return"{"==e?q(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(a="variable","restricted_atBlock_before"):C(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,K(r)):"word"==e?(a="@font-face"==r.stateArg&&!g.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!b.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(a="variable","keyframes"):"{"==e?q(r,t,"top"):C(e,t,r)},at:function(e,t,r){return";"==e?K(r):"{"==e||"}"==e?B(e,t,r):("word"==e?a="tag":"hash"==e&&(a="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?K(r):"{"==e||";"==e?B(e,t,r):("word"==e?a="variable":"variable"!=e&&"("!=e&&")"!=e&&(a="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:o?"block":"top",stateArg:null,context:new P(o?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||function(e,t){var r=e.next();if(l[r]){var o=l[r](e,t);if(!1!==o)return o}return"@"==r?(e.eatWhile(/[\w\\\-]/),x("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?x(null,"compare"):'"'==r||"'"==r?(t.tokenize=z(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==r?(e.match(/^\s*\w*/),x("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),x("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?x(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=j),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0})(e,t);return r&&"object"==typeof r&&(i=r[1],r=r[0]),a=r,"comment"!=i&&(t.state=T[t.state](i,e,t)),a},indent:function(e,t){var r=e.context,o=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=o&&")"!=o||(r=r.prev),r.prev&&("}"!=o||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=o||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=o||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-n)):i=(r=r.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}});var r=["domain","regexp","url","url-prefix"],o=t(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(i),n=["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"],l=t(n),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],c=t(s),d=["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"],p=t(d),u=["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"],m=t(u),g=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),b=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),h=["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"],f=t(h),k=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],y=t(k),w=r.concat(i).concat(n).concat(s).concat(d).concat(u).concat(h).concat(k);function v(e,t){for(var r,o=!1;null!=(r=e.next());){if(o&&"/"==r){t.tokenize=null;break}o="*"==r}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:o,mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,fontProperties:g,counterDescriptors:b,colorKeywords:f,valueKeywords:y,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=v,v(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,colorKeywords:f,valueKeywords:y,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=v,v(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,colorKeywords:f,valueKeywords:y,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=v,v(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:a,mediaFeatures:l,propertyKeywords:p,nonStandardPropertyKeywords:m,fontProperties:g,counterDescriptors:b,colorKeywords:f,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=v,v(e,t))}},name:"css",helperType:"gss"})});
},{"../../lib/codemirror":"L7e6"}],"BOOO":[function(require,module,exports) {

(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-menu-empty-cover"},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"JwAF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("@babel/runtime/helpers/defineProperty")),t=n(require("codemirror"));require("codemirror/lib/codemirror.css"),require("codemirror/addon/selection/active-line"),require("codemirror/mode/css/css");var r=n(require("./EmptyCover"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var u=exports.default={components:{EmptyCover:r.default},props:{options:{type:Object,default:function(){return{}}},value:{type:String,default:"/* Enter your custom CSS rules here */"},disabled:{type:Boolean,default:!1}},model:{prop:"value",event:"valueChanged"},data:function(){return{defaultOptions:{mode:"text/css",tabSize:4,styleActiveLine:!0,lineNumbers:!0,line:!0,showCursorWhenSelecting:!0,lineWrapping:!0},instance:null}},watch:{value:function(e){this.instance&&this.instance.getValue()!==e&&this.instance.setValue(e)}},mounted:function(){var e=this;this.$nextTick(function(){e.instance=(0,t.default)(e.$refs.mainWrapper,i(i(i({},e.defaultOptions),e.options),{},{value:e.value})),e.instance.on("change",function(t){e.$emit("valueChanged",t.getValue())}),e.$emit("ready",e.instance)})}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"mainWrapper",staticClass:"wptb-css-code-input"},[this.disabled?t("empty-cover",[this._t("disabled")],2):this._e()],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/defineProperty":"cQfh","codemirror":"L7e6","codemirror/lib/codemirror.css":"S5Yr","codemirror/addon/selection/active-line":"X3fE","codemirror/mode/css/css":"Da5z","./EmptyCover":"BOOO"}],"b8SN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=i(require("../MenuContent")),n=i(require("./FooterButtons")),o=i(require("../MenuButton")),s=i(require("../CssCodeInput")),r=i(require("../../mixins/SettingsMenuSection")),a=i(require("../../mixins/withMessage")),u=i(require("../BusyRotate"));function i(e){return e&&e.__esModule?e:{default:e}}var d=exports.default={mixins:[r.default,a.default],components:{BusyRotate:u.default,CssCodeInput:s.default,MenuButton:o.default,FooterButtons:n.default,MenuContent:t.default,Fragment:e.Fragment},data:function(){return{code:"",cachedCode:""}},beforeMount:function(){this.code=this.sectionData.savedStyles,this.updateCachedCode()},computed:{isCodeChanged:function(){return this.code!==this.cachedCode},buttonDisabledState:function(){return!this.isCodeChanged||this.isBusy()}},methods:{updateCachedCode:function(){this.cachedCode=this.code},resetCodeToCached:function(){this.code=this.cachedCode},sendSavedStyles:function(){var e=this;this.setBusy(!0);var t=this.sectionData.security,n=t.ajaxUrl,o=t.nonce,s=t.action,r=new FormData;r.append("action",s),r.append("nonce",o),r.append("styles",this.code),fetch(n,{method:"POST",body:r}).then(function(e){if(e.ok)return e.json();throw new Error("An error occurred while saving CSS code: ".concat(e.statusText))}).then(function(t){if(t.error)throw new Error("An error occurred while saving CSS code: ".concat(t.error));e.setMessage({message:t.message}),e.updateCachedCode()}).catch(function(t){e.setMessage({type:"error",message:t.message})}).finally(function(){e.setBusy(!1)})}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("fragment",[s("menu-content",{attrs:{center:!0}},[s("div",{staticClass:"wptb-general-style-settings"},[s("div",[s("div",{staticClass:"wptb-general-style-header"},[e._v(e._s(e.strings.headerText))])]),e._v(" "),s("div",{staticClass:"wptb-general-css-code-input"},[s("css-code-input",{attrs:{disabled:e.isBusy()},scopedSlots:e._u([{key:"disabled",fn:function(){return[s("busy-rotate")]},proxy:!0}]),model:{value:e.code,callback:function(t){e.code=t},expression:"code"}})],1)])]),e._v(" "),s("footer-buttons",[s("menu-button",{attrs:{disabled:e.buttonDisabledState,type:"danger"},on:{click:e.resetCodeToCached}},[e._v(e._s(e.strings.revert)+" ")]),e._v(" "),s("menu-button",{attrs:{disabled:e.buttonDisabledState},on:{click:e.sendSavedStyles}},[e._v(e._s(e.strings.submit))])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"vue-fragment":"CDb8","../MenuContent":"vTRD","./FooterButtons":"jkrZ","../MenuButton":"ksMR","../CssCodeInput":"JwAF","../../mixins/SettingsMenuSection":"qeqP","../../mixins/withMessage":"wm3G","../BusyRotate":"SbnK"}],"KwLP":[function(require,module,exports) {
var r=require("./arrayLikeToArray.js");function e(e){if(Array.isArray(e))return r(e)}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./arrayLikeToArray.js":"jEQo"}],"U0SN":[function(require,module,exports) {
function e(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"o1nV":[function(require,module,exports) {
function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}module.exports=e,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"DJfw":[function(require,module,exports) {
var e=require("./arrayWithoutHoles.js"),r=require("./iterableToArray.js"),o=require("./unsupportedIterableToArray.js"),u=require("./nonIterableSpread.js");function t(t){return e(t)||r(t)||o(t)||u()}module.exports=t,module.exports.__esModule=!0,module.exports.default=module.exports;
},{"./arrayWithoutHoles.js":"KwLP","./iterableToArray.js":"U0SN","./unsupportedIterableToArray.js":"Dbv9","./nonIterableSpread.js":"o1nV"}],"hl0g":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:["label","index"],data:function(){return{currentDirection:1}},methods:{sort:function(){this.currentDirection*=-1,this.$emit("sort",this.index,this.currentDirection)}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("td",{on:{click:function(t){return t.preventDefault(),e.sort.apply(null,arguments)}}},[e._v(" "+e._s(e.label)+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"SKWk":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=function(e){return{props:{searchClause:{type:String,default:""}},computed:{searchClauseFilteredValue:function(){var a=this[e];if(""===this.searchClause)return a;var s=new RegExp("(".concat(this.searchClause,")"),"gi");return'<span class="wptb-data-listing-row-search-clause-wrap">'.concat(a.replaceAll(s,'<span class="wptb-data-listing-row-search-clause">$&</span>'),"</span>")}}}},a=exports.default=e;
},{}],"jGkl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/withSearchClause"));function t(e){return e&&e.__esModule?e:{default:e}}var r=exports.default={props:{modelBind:{type:Object,default:function(){return{}}},row:{type:Object,default:function(){return{}}},searchIndex:{type:Number,default:0}},mixins:[(0,e.default)("rowTitle")],data:function(){return{selected:!1}},computed:{rowTitle:function(){return this.row.fieldDatas[this.searchIndex]},rowVisibility:function(){var e=new RegExp("(".concat(this.searchClause,")"),"gi"),t=this.row.fieldDatas[this.searchIndex];return"string"!=typeof t&&(t=t.toString()),t.match(e)}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[e.rowVisibility?t("tr",{staticClass:"wptb-list-table-row",attrs:{"data-selected":e.modelBind[e.row.ID]}},[t("td",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.row.ID],expression:"modelBind[row.ID]"}],attrs:{id:e.row.ID,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[e.row.ID])?e._i(e.modelBind[e.row.ID],null)>-1:e.modelBind[e.row.ID]},on:{change:function(r){var t=e.modelBind[e.row.ID],o=r.target,n=!!o.checked;if(Array.isArray(t)){var d=e._i(t,null);o.checked?d<0&&e.$set(e.modelBind,e.row.ID,t.concat([null])):d>-1&&e.$set(e.modelBind,e.row.ID,t.slice(0,d).concat(t.slice(d+1)))}else e.$set(e.modelBind,e.row.ID,n)}}})]),e._v(" "),e._l(e.row.fieldDatas,function(r,o){return t("td",{key:r},[t("label",{class:o===e.searchIndex?"title-label":"",attrs:{for:e.row.ID},domProps:{innerHTML:e._s(o===e.searchIndex?e.searchClauseFilteredValue:r)}})])})],2):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"../mixins/withSearchClause":"SKWk"}],"AF9R":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("$Components/ColumnSort")),e=o(require("$Components/ListTableRow"));function o(t){return t&&t.__esModule?t:{default:t}}var r=exports.default={props:{rowLabels:Array,rowData:Array,modelBind:Object,sortType:Object,searchClause:String,searchDataIndex:{type:Number,default:0}},components:{ListTableRow:e.default,ColumnSort:t.default},data:function(){return{innerRowData:[],sortOptions:{index:null,direction:null}}},watch:{rowData:function(t){this.innerRowData=t,this.sortOptions&&this.sortOptions.index&&this.sortOptions.direction&&this.sort(this.sortOptions.index,this.sortOptions.direction)}},methods:{sort:function(t,e){this.sortOptions.index=t,this.sortOptions.direction=e;var o,r={dateSort:function(o,r){var n=0,s=new Date(o.fieldDatas[t].toLowerCase()).getTime(),a=new Date(r.fieldDatas[t].toLowerCase()).getTime();return s<a&&(n=1),s>a&&(n=-1),n*e},numberSort:function(o,r){return(Number.parseInt(o.fieldDatas[t],10)-Number.parseInt(r.fieldDatas[t],10))*e},defaultSort:function(o,r){var n=0,s=o.fieldDatas[t].toLowerCase(),a=r.fieldDatas[t].toLowerCase();return s<a&&(n=1),s>a&&(n=-1),n*e}},n=this.sortType[t];o=n&&r["".concat(n,"Sort")]?r["".concat(n,"Sort")]:r.defaultSort,this.innerRowData.sort(o)}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("table",{staticClass:"wptb-menu-list-table"},[n("thead",[n("tr",[t._m(0),t._v(" "),t._l(t.rowLabels,function(e,r){return n("column-sort",{key:e,attrs:{label:e,index:r},on:{sort:t.sort}})})],2)]),t._v(" "),n("tbody",t._l(t.innerRowData,function(e){return n("list-table-row",{key:e.ID,attrs:{"model-bind":t.modelBind,row:e,"search-clause":t.searchClause,"search-index":t.searchDataIndex}})}),1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("input",{attrs:{type:"checkbox"}})])}],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Components/ColumnSort":"hl0g","$Components/ListTableRow":"jGkl"}],"L1FW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{placeholder:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean,default:!1}},model:{prop:"value",event:"valueChanged"},data:function(){return{searchTerm:this.value}},mounted:function(){},watch:{searchTerm:function(e){this.$emit("valueChanged",e.trim())},value:function(e){this.searchTerm=e.trim()}},computed:{clearButtonVisibility:function(){return""!==this.searchTerm}},methods:{clearSearch:function(){this.disabled||(this.searchTerm="")}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wptb-search-input-wrapper"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.searchTerm,expression:"searchTerm"}],staticClass:"wptb-search-input-element",attrs:{disabled:e.disabled,type:"text",placeholder:e.placeholder},domProps:{value:e.searchTerm},on:{input:function(t){t.target.composing||(e.searchTerm=t.target.value)}}}),e._v(" "),e.clearButtonVisibility?a("div",{staticClass:"wptb-search-input-clear",attrs:{"data-disabled":e.disabled},on:{click:function(t){return t.preventDefault(),e.clearSearch.apply(null,arguments)}}},[e._v(" X ")]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"ATQh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:{click:{type:Function,default:function(){console.log("Material button clicked")}},size:{type:String,default:"fit-content"},disabled:{type:Boolean,default:!1}},computed:{buttonClass:function(){return["wptb-plugin-button-material-".concat(this.size)]}},methods:{handleClick:function(){this.disabled||this.click()}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"wptb-plugin-button-material",class:t.buttonClass,attrs:{disabled:t.disabled},on:{"!click":function(e){return e.preventDefault(),e.stopPropagation(),t.handleClick.apply(null,arguments)}}},[t._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"IY2J":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@babel/runtime/helpers/toConsumableArray"));function t(e){return e&&e.__esModule?e:{default:e}}var r=["wptb-svg-inherit-color"],n=exports.default={props:{name:{type:String,default:""},extraClasses:{type:Array,default:function(){return r}}},watch:{extraClasses:function(){this.prepareClasses(),this.prepareIcon()},name:function(){this.prepareIcon()}},data:function(){return{iconFragment:"",innerExtraClasses:[]}},mounted:function(){var e=this;this.$nextTick(function(){e.prepareClasses(e.extraClasses),e.prepareIcon()})},methods:{prepareIcon:function(){var e=this;WPTB_IconManager.getIcon(this.name,this.innerExtraClasses,!0).then(function(t){e.iconFragment=t})},prepareClasses:function(){this.innerExtraClasses=Array.from(new Set([].concat((0,e.default)(this.extraClasses),r)))}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{domProps:{innerHTML:this._s(this.iconFragment)}})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/toConsumableArray":"DJfw"}],"vCKs":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("@babel/runtime/helpers/toConsumableArray")),t=a(require("$Components/MaterialButton")),n=a(require("$Components/Icon"));function a(e){return e&&e.__esModule?e:{default:e}}var i=exports.default={props:{isFixed:{type:Boolean,default:!1},buttonExtraClasses:{type:Array,default:function(){return[]}},windowTitle:{type:null,default:null},message:{type:String,default:"This is a default message for modal window."},iconName:{type:String,default:"exclamation-circle"},iconClasses:{type:Array,default:function(){return[]}},buttonLabel:{type:String,default:"Okay"},visible:{type:Boolean,default:!1},relativeRef:{type:HTMLElement,required:!1},callback:{type:Function,default:function(){console.log("modal button clicked")}},closeCallback:{type:Function,default:function(){console.log("modal window close")}}},components:{Icon:n.default,MaterialButton:t.default},data:function(){return{iconFinalClasses:[]}},mounted:function(){var e=this;this.$nextTick(function(){e.isFixed||e.relativeRef.appendChild(e.$refs.mainWrapper),e.prepareFinalClasses(e.iconClasses)})},watch:{iconClasses:function(){this.prepareFinalClasses()}},methods:{prepareFinalClasses:function(){this.iconFinalClasses=Array.from(new Set([].concat((0,e.default)(this.iconClasses),["wptb-plugin-modal-icon-inner-wrapper"])))}},beforeDestroy:function(){this.isFixed||this.$refs.mainWrapper.parentNode.removeChild(this.$refs.mainWrapper)}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],ref:"mainWrapper",staticClass:"wptb-plugin-modal-window",attrs:{"data-is-fixed":t.isFixed}},[s("div",{staticClass:"wptb-plugin-modal-inner-window"},[t.windowTitle?s("div",{staticClass:"wptb-plugin-modal-header"},[s("div",{staticClass:"wptb-plugin-modal-header-title"},[t._v(t._s(t._f("cap")(t.windowTitle)))]),t._v(" "),s("div",{staticClass:"wptb-plugin-modal-header-close",on:{"!click":function(a){return a.preventDefault(),a.stopPropagation(),t.closeCallback.apply(null,arguments)}}},[s("div",{staticClass:"wptb-plugin-modal-close-wrapper"},[t._v("X")])])]):t._e(),t._v(" "),s("div",{staticClass:"wptb-plugin-modal-content-container"},[s("div",{staticClass:"wptb-plugin-modal-icon"},[s("icon",{staticClass:"wptb-plugin-modal-icon-parent-wrapper",attrs:{name:t.iconName,"extra-classes":t.iconFinalClasses}})],1),t._v(" "),s("div",{staticClass:"wptb-plugin-modal-message",domProps:{innerHTML:t._s(t.message)}}),t._v(" "),s("div",{staticClass:"wptb-plugin-modal-slot-container"},[t._t("default")],2),t._v(" "),s("div",{staticClass:"wptb-plugin-modal-button-container"},[s("material-button",{class:t.buttonExtraClasses,attrs:{size:"full-size",click:t.callback}},[t._v(t._s(t._f("cap")(t.buttonLabel)))])],1)])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/toConsumableArray":"DJfw","$Components/MaterialButton":"ATQh","$Components/Icon":"IY2J"}],"DIVF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("$Components/Icon"));function e(t){return t&&t.__esModule?t:{default:t}}var r=exports.default={props:{id:{type:String,required:!0},status:{type:Boolean,required:!0}},components:{Icon:t.default},computed:{fixStatus:function(){return JSON.stringify(this.status)},tableTitle:function(){return"".concat(this.strings.table,"#").concat(this.id)},iconName:function(){return this.status?"check-circle":"times-circle"}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("tr",[s("td",[s("div",{staticClass:"wptb-fix-summary-column",attrs:{"data-fix-status":t.fixStatus}},[t._v(" "+t._s(t._f("cap")(t.tableTitle))+" ")])]),t._v(" "),s("td",[s("div",{key:t.id,staticClass:"wptb-fix-summary-column",attrs:{"data-fix-status":t.fixStatus}},[s("icon",{staticClass:"icon-wrapper-parent",attrs:{"extra-classes":["icon-wrapper"],name:t.iconName}})],1)])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-dff67e",functional:void 0});})();
},{"$Components/Icon":"IY2J"}],"pigW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("$Components/TableFixer/SummaryRow"));function t(e){return e&&e.__esModule?e:{default:e}}var r=exports.default={components:{SummaryRow:e.default},props:{summaryData:{type:Object,default:function(){return{}}}},methods:{tableTitle:function(e){return"".concat(this.strings.table,"#").concat(e)},fixStatus:function(e){return JSON.stringify(e)},iconName:function(e){return e?"check-circle":"times-circle"}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"wptb-fix-summary-wrapper"},[s("div",{staticClass:"wptb-fix-summary-list"},[s("table",[s("tbody",this._l(this.summaryData,function(t,e){return s("summary-row",{key:e,attrs:{id:e,status:t}})}),1)])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Components/TableFixer/SummaryRow":"DIVF"}],"RpBt":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=m(require("@babel/runtime/helpers/slicedToArray")),t=m(require("@babel/runtime/helpers/toConsumableArray")),s=require("vue-fragment"),n=m(require("$Settings/FooterButtons")),r=m(require("$Components/MenuContent")),a=m(require("$Components/MenuButton")),i=m(require("$Mixins/SettingsMenuSection")),u=m(require("$Mixins/withMessage")),o=m(require("$Components/ListTable")),l=m(require("$Components/SearchInput")),c=m(require("$Settings/Disclaimer")),d=m(require("$Components/ModalWindow")),f=m(require("$Components/TableFixer/FixSummary"));function m(e){return e&&e.__esModule?e:{default:e}}function h(e){for(var t=[],s=Object.keys(e),n=0;n<s.length;n++)t.push([s[n],e[s[n]]]);return t}var p=exports.default={components:{FixSummary:f.default,ModalWindow:d.default,Disclaimer:c.default,SearchInput:l.default,ListTable:o.default,MenuButton:a.default,MenuContent:r.default,FooterButtons:n.default,Fragment:s.Fragment},mixins:[i.default,u.default],data:function(){return{selectedTables:{},tables:[],searchClause:"",summaryVisibility:!1,summaryMessage:"",summaryData:{}}},mounted:function(){var e=this;this.$nextTick(function(){e.getTables()})},computed:{selectedTableIds:function(){var e=this;return Object.keys(this.selectedTables).filter(function(t){return Object.prototype.hasOwnProperty.call(e.selectedTables,t)&&e.selectedTables[t]})},tableFixButtonLabel:function(){var e=this.selectedTableIds.length>1?"fixTables":"fixTable";return this.strings[e]},fixTableButtonDisabledStatus:function(){return this.isBusy()||0===this.selectedTableIds.length},userTables:function(){return(0,t.default)(this.tables)}},methods:{resetSelections:function(){this.selectedTables={}},showSummary:function(t){var s=h(t).every(function(t){var s=(0,e.default)(t,2);s[0];return s[1]});this.summaryMessage=s?this.strings.summaryMessageAllFixed:this.strings.summaryMessageNotAllFixed,this.summaryData=t,this.summaryVisibility=!0},hideSummary:function(){this.summaryVisibility=!1},parseFetchedTables:function(e){return e.reduce(function(e,t){var s=new Intl.DateTimeFormat("default",{year:"numeric",day:"numeric",month:"long"}).format(new Date(t.modified)),n=t.title,r=t.id,a={ID:r=r.toString(),fieldDatas:[r,n.rendered,s]};return e.push(a),e},[])},getTables:function(){var e=this,t=this.sectionData.tableGet.getUrl,s=this.sectionData.rest.restNonce,n=new URL(t);return n.searchParams.append("status","draft"),n.searchParams.append("per_page","100"),n.searchParams.append("_fields","id,title,modified"),n.searchParams.append("orderby","id"),this.setBusy(),fetch(n.toString(),{method:"GET",headers:{"X-WP-Nonce":s}}).then(function(e){if(e.ok)return e.json();throw new Error(e.statusText)}).then(function(t){e.tables=e.parseFetchedTables(t),e.setMessage({message:e.strings.tablesFetched})}).catch(function(t){e.setMessage({type:"error",message:t})}).finally(function(){e.setBusy(!1)})},fixTables:function(){var t=this,s=this.sectionData.fixPost,n=s.fixUrl,r=s.fixAction,a=s.fixNonce,i=this.sectionData.rest.restNonce,u=new URL(n);return u.searchParams.append("action",r),u.searchParams.append("nonce",a),this.setBusy(),fetch(u.toString(),{method:"POST",headers:{"X-WP-NONCE":i,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tableIds:h(this.selectedTableIds).map(function(t){var s=(0,e.default)(t,2);s[0];return s[1]})})}).then(function(e){return e.ok?e.json():e.json().then(function(e){throw new Error(e.message)})}).then(function(e){t.resetSelections(),t.showSummary(e.data.response)}).catch(function(e){t.setMessage({message:e,type:"error"})}).finally(function(){t.setBusy(!1)})}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("fragment",[t("menu-content",{attrs:{center:!0}},[t("div",{staticClass:"wptb-table-fixer-settings"},[t("search-input",{staticClass:"wptb-table-fixer-table-filter",attrs:{placeholder:e._f("cap")(e.strings.search)},model:{value:e.searchClause,callback:function(s){e.searchClause=s},expression:"searchClause"}}),e._v(" "),t("div",{staticClass:"wptb-table-fixer-listing"},[t("list-table",{attrs:{"model-bind":e.selectedTables,"row-data":e.userTables,"row-labels":["ID",e.strings.title,e.strings.modified],"sort-type":{0:"number",1:"default",2:"date"},"search-clause":e.searchClause,"search-data-index":1}})],1),e._v(" "),t("div",{staticClass:"wptb-table-fixer-disclaimer"},[t("disclaimer",{attrs:{title:e.strings.disclaimerTitle,message:e.strings.disclaimerMessage}})],1)],1)]),e._v(" "),t("modal-window",{attrs:{"close-callback":e.hideSummary,"is-fixed":!0,callback:e.hideSummary,visible:e.summaryVisibility,"window-title":e.strings.summary,message:e.summaryMessage}},[t("fix-summary",{attrs:{"summary-data":e.summaryData}})],1),e._v(" "),t("footer-buttons",[t("menu-button",{attrs:{disabled:e.fixTableButtonDisabledStatus},on:{click:e.fixTables}},[e._v(e._s(e.tableFixButtonLabel)+" ")])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/slicedToArray":"DERy","@babel/runtime/helpers/toConsumableArray":"DJfw","vue-fragment":"CDb8","$Settings/FooterButtons":"jkrZ","$Components/MenuContent":"vTRD","$Components/MenuButton":"ksMR","$Mixins/SettingsMenuSection":"qeqP","$Mixins/withMessage":"wm3G","$Components/ListTable":"AF9R","$Components/SearchInput":"L1FW","$Settings/Disclaimer":"ZYQN","$Components/ModalWindow":"vCKs","$Components/TableFixer/FixSummary":"pigW"}],"xMlw":[function(require,module,exports) {
"use strict";var r=function(r){return e(r)&&!t(r)};function e(r){return!!r&&"object"==typeof r}function t(r){var e=Object.prototype.toString.call(r);return"[object RegExp]"===e||"[object Date]"===e||o(r)}var n="function"==typeof Symbol&&Symbol.for,c=n?Symbol.for("react.element"):60103;function o(r){return r.$$typeof===c}function u(r){return Array.isArray(r)?[]:{}}function a(r,e){return!1!==e.clone&&e.isMergeableObject(r)?O(u(r),r,e):r}function i(r,e,t){return r.concat(e).map(function(r){return a(r,t)})}function f(r,e){if(!e.customMerge)return O;var t=e.customMerge(r);return"function"==typeof t?t:O}function l(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function y(r){return Object.keys(r).concat(l(r))}function b(r,e){try{return e in r}catch(t){return!1}}function s(r,e){return b(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function p(r,e,t){var n={};return t.isMergeableObject(r)&&y(r).forEach(function(e){n[e]=a(r[e],t)}),y(e).forEach(function(c){s(r,c)||(b(r,c)&&t.isMergeableObject(e[c])?n[c]=f(c,t)(r[c],e[c],t):n[c]=a(e[c],t))}),n}function O(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=a;var c=Array.isArray(t);return c===Array.isArray(e)?c?n.arrayMerge(e,t,n):p(e,t,n):a(t,n)}O.all=function(r,e){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(r,t){return O(r,t,e)},{})};var g=O;module.exports=g;
},{}],"izJK":[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3],t=o(require("@babel/runtime/helpers/toConsumableArray")),n=o(require("@babel/runtime/helpers/defineProperty")),a=o(require("@babel/runtime/helpers/typeof"));function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){(0,n.default)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}!function(e,t,n){"object"===("undefined"==typeof exports?"undefined":(0,a.default)(exports))&&"undefined"!=typeof module?module.exports=n():t[e]=n()}("WPTB_LazyLoad",self||e,function(){function e(e){var t=this,n=i(i({},{name:"",speed:8,step:10,hooks:{},direction:"left",perspective:1e3,flashColor:"#FFFFFF"}),e);this.getOptions=function(){return i({},n)},this.calculateDuration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Math.max(e,t)-Math.abs(t-e)/n.step*n.speed},this.calculateAnimationDirection=function(){var e=["X","Y"],t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?1:0;return["left","right"].includes(n.direction)?e[(0+t)%2]:e[(1+t)%2]},this.calculateDirectionConstant=function(){return(arguments.length>0&&void 0!==arguments[0]&&arguments[0]?-1:1)*(["left","up"].includes(t.getOptions().direction)?1:-1)};var a=function(e){var a=function(e){if(Object.prototype.hasOwnProperty.call(n.hooks,e)){var t=n.hooks[e];if("function"==typeof t)return t}return null}(e);if(a){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];a.apply(t,r)}};this.getBufferElement=function(e){return e.parentNode.querySelector(".".concat("wptb-lazy-load-buffer-element"))},this.removeBufferElement=function(e){var n=t.getBufferElement(e);if(n){var a=n.parentNode;a.removeChild(n),a.classList.remove("wptb-lazy-load-buffer-element-container")}},this.addStylesheet=function(e,t){var n=t.querySelector('style[id="'.concat("wptb-lazy-load-styles",'"]'));n||((n=t.createElement("style")).id="wptb-lazy-load-styles",n.type="text/css",t.head.appendChild(n));var a=document.createTextNode(e);n.innerHTML="",n.appendChild(a)},this.beforeAnimation=function(e){a("beforeAnimation",e)},this.animate=function(e){a("animate",e)},this.afterAnimation=function(e){a("afterAnimation",e),delete t}}function n(t){this.getAnimation=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t[n]?new e(i(i({},t[n]),a)):new e({})}}var o={none:{hooks:{animate:function(e){this.removeBufferElement(e)}}},slideIn:{hooks:{beforeAnimation:function(e){e.parentNode.style.overflow="hidden",e.style.transform="translate".concat(this.calculateAnimationDirection(),"(").concat(100*this.calculateDirectionConstant(),"%)")},animate:function(e){this.removeBufferElement(e),e.style.transition="transform ".concat(this.calculateDuration(),"s ease-out"),e.style.transform="translate".concat(this.calculateAnimationDirection(),"(0)")}}},growSling:{hooks:{beforeAnimation:function(e){e.style.transform="scale(0.1)"},animate:function(e){this.removeBufferElement(e),e.style.transition="transform ".concat(this.calculateDuration(),"s cubic-bezier(0.68, -0.55, 0.27, 1.55)"),e.style.transform="scale(1)"}}},flash:{hooks:{beforeAnimation:function(e){var t=document.createElement("div");t.classList.add("wptb-flash-element"),e.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),e.insertAdjacentElement("afterend",t);var n="@keyframes wptb-flash {0% {opacity:1;}100% {opacity: 0;}}  .wptb-flash-element {position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; background-color: ".concat(this.getOptions().flashColor,"}.wptb-flash-animation {animation: wptb-flash ").concat(this.calculateDuration(),"s  forwards ease-out}");this.addStylesheet(n,e.ownerDocument)},animate:function(e){this.removeBufferElement(e);var t=e.parentNode.querySelector(".wptb-flash-element");t&&(e.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),t.addEventListener("animationend",function(n){"wptb-flash"===n.animationName&&(e.parentNode.classList.remove("wptb-lazy-load-buffer-element-container"),t.remove())}),t.classList.add("wptb-flash-animation"))}}},flip:{hooks:{beforeAnimation:function(e){var t,n=e.parentNode;n.classList.add("wptb-lazy-load-card-container"),null===(t=n.parentNode)||void 0===t||t.classList.add("wptb-lazy-load-perspective-base"),e.classList.add("wptb-lazy-load-card-back","wptb-lazy-load-hidden-backface"),this.getBufferElement(e).classList.add("wptb-lazy-load-hidden-backface","wptb-lazy-load-card-front");var a=this.calculateAnimationDirection(!0),o="".concat(180*this.calculateDirectionConstant(!0),"deg"),r=".wptb-lazy-load-perspective-base{perspective: ".concat(this.getOptions().perspective,"px;} .wptb-lazy-load-card-container{ transform-style: preserve-3d; transition: transform ").concat(this.calculateDuration(),"s ease-out;  } .wptb-lazy-load-card-container[data-wptb-card-flip='true']{transform: rotate").concat(a,"(").concat(o,")} [data-wptb-card-flip='true'] .wptb-lazy-load-card-front svg{ animation: none !important;  opacity: 0.2;} .wptb-lazy-load-card-back { transform: rotate").concat(a,"(").concat(o,")} .wptb-lazy-load-hidden-backface{backface-visibility: hidden;}");this.addStylesheet(r,e.ownerDocument)},animate:function(e){var t=this,n=e.parentNode;n.addEventListener("transitionend",function(a){"transform"===a.propertyName&&t.removeBufferElement(e),n.classList.remove("wptb-lazy-load-card-container","wptb-lazy-load-flip"),n.parentNode.classList.remove("wptb-lazy-load-perspective-base"),e.classList.remove("wptb-lazy-load-card-back","wptb-lazy-load-hidden-backface")}),n.dataset.wptbCardFlip="true"}}}};return new function(){var e={forceMode:!1},r={},l={lastYPosition:0},c=[],s=new n(o),d=null,f=function(e,t){var n=e.parentNode.getBoundingClientRect(),a=n.top,o=n.height,i=n.bottom,c=r.visibilityPercentage,s=a+o*(c/100),d=i-o*(c/100),f=window.scrollY-l.lastYPosition>=0?s:d;return f>=0&&f<=t},u=function(e){var t=e.target;d.animate(t),t.removeEventListener("load",u),d.afterAnimation(t)},p=function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.filter(function(e){return"false"===e.dataset.wptbLazyLoadStatus}).map(function(e){a&&function(e){var t=document.createElement("div");if(t.classList.add("wptb-lazy-load-buffer-element"),t.style.backgroundColor=r.backgroundColor,r.iconSvg){t.innerHTML='<div class="wptb-lazy-load-buffer-icon-wrapper wptb-plugin-filter-box-shadow-md">'.concat(r.iconSvg,"</div>");var n=t.querySelector("svg"),a=t.querySelector(".wptb-lazy-load-buffer-icon-wrapper");a.style.width="".concat(r.iconSize,"px"),a.style.height="".concat(r.iconSize,"px"),a.dataset.wptbLazyLoadIconAnimation=r.iconAnimation,n&&(n.style.fill=r.iconColor)}e.insertAdjacentElement("afterend",t),e.parentNode.classList.add("wptb-lazy-load-buffer-element-container"),d.beforeAnimation(e)}(e),r.forceMode&&!o||function(e,t){(r.forceMode||f(e,t))&&(e.dataset.wptbLazyLoadStatus="true",e.addEventListener("load",r.delay?function(){setTimeout(function(){u({target:e})},1e3*r.delay)}:u),e.src=e.dataset.wptbLazyLoadTarget)}(e,t)}),n=window.scrollY,l.lastYPosition=n},m=function(){return window.innerHeight},b=function(){var e=Array.from(document.querySelectorAll(".wptb-preview-table")),n=Array.from(document.querySelectorAll(".wptb-shadow-root-container")).reduce(function(e,t){var n=t.shadowRoot.querySelector(".wptb-preview-table");return n&&e.push(n),e},[]),a=[].concat(e,(0,t.default)(n));c.push.apply(c,(0,t.default)(function(e){return e.reduce(function(e,t){var n=Array.from(t.querySelectorAll(".wptb-lazy-load-img"));return e.push.apply(e,n),e},[])}(a))),p(c,m(),!0),r.forceMode||window.addEventListener("scroll",function(){p(c,m())},{passive:!0})};this.forceLoadImages=function(){p(c,null,!1,!0)},this.init=function(t){t&&"object"===(0,a.default)(t)&&(r=i(i({},e),t)).enabled&&(d=s.getAnimation(r.imageLoadAnimation,i({speed:r.imageLoadAnimationSpeed,direction:r.imageLoadAnimationDirection,perspective:r.imageLoadAnimationPerspective},r)),b())}}});
},{"@babel/runtime/helpers/toConsumableArray":"DJfw","@babel/runtime/helpers/defineProperty":"cQfh","@babel/runtime/helpers/typeof":"xOn8"}],"YDlH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{gridArea:{type:String,required:!0},visibility:{type:Boolean,default:!0}},computed:{style:function(){return{gridArea:this.gridArea}}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return this.visibility?e("div",{staticClass:"wptb-lazy-load-pro-disabled-overlay",style:this.style},[this._t("default")],2):this._e()},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"vlDi":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("@babel/runtime/helpers/defineProperty")),t=a(require("$FrontEndOnly/WPTB_LazyLoad")),r=a(require("$Components/MaterialButton")),n=a(require("$Mixins/SettingsMenuSection")),i=a(require("./LazyLoadProDisabledOverlay"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var u=exports.default={components:{LazyLoadProDisabledOverlay:i.default,MaterialButton:r.default},props:{defaultHtml:{type:String,required:!0},settings:{type:Object,default:function(){return{}}}},mixins:[n.default],data:function(){return{previewHtml:"",imageLoaded:!0}},mounted:function(){var e=this;this.$nextTick(function(){e.previewHtml=e.defaultHtml,e.reloadPreview()})},watch:{previewHtml:function(){this.reloadPreview()},settings:{handler:function(){this.reloadPreview()},deep:!0},"settings.enabled":{handler:function(e){e||this.clearPreview()}}},computed:{buttonStatus:function(){return!this.sectionData.proStatus||!this.settings.enabled},loadButtonStatus:function(){return this.imageLoaded||this.buttonStatus},resetButtonStatus:function(){return!this.imageLoaded||this.buttonStatus}},methods:{clearPreview:function(){this.$refs.previewContainer.childNodes[0]&&(this.$refs.previewContainer.innerHTML="")},generatePreviewTable:function(){var e=document.createRange();e.setStart(this.$refs.previewContainer,0);var t=e.createContextualFragment(this.previewHtml);this.clearPreview(),this.$refs.previewContainer.appendChild(t)},reloadPreview:function(){var e=this;this.imageLoaded=!1,WPTB_IconManager.getIcon(this.settings.iconName.name,null,!0).then(function(t){e.settings.iconSvg=t}).catch(function(){e.settings.iconSvg=null}).finally(function(){e.generatePreviewTable(),t.default.init(s({forceMode:!0},e.settings))})},loadImages:function(){this.imageLoaded=!0,t.default.forceLoadImages()}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wptb-flex wptb-flex-align-center wptb-flex-justify-center wptb-lazy-load-preview-container"},[a("div",{staticClass:"wptb-lazy-load-preview-header"},[t._v(t._s(t.strings.preview))]),t._v(" "),a("lazy-load-pro-disabled-overlay",{attrs:{"grid-area":"preview",visibility:!t.sectionData.proStatus||!t.settings.enabled}}),t._v(" "),a("div",{ref:"previewContainer",staticClass:"wptb-lazy-load-preview wptb-preview-table"}),t._v(" "),a("div",{staticClass:"wptb-flex wptb-flex-align-center wptb-flex-justify-center wptb-lazy-load-preview-button-container"},[a("material-button",{attrs:{disabled:t.resetButtonStatus,click:t.reloadPreview}},[t._v("Reset")]),t._v(" "),a("material-button",{attrs:{disabled:t.loadButtonStatus,click:t.loadImages}},[t._v("Load Image")])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/defineProperty":"cQfh","$FrontEndOnly/WPTB_LazyLoad":"izJK","$Components/MaterialButton":"ATQh","$Mixins/SettingsMenuSection":"qeqP","./LazyLoadProDisabledOverlay":"YDlH"}],"rG9F":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={name:"SectionGroupCollapse",props:{sectionId:{type:String,default:"sectionGroupCollapse"},label:{type:String,default:"Section group collapse"},startCollapsed:{types:Boolean,default:!0}},mounted:function(){var e=this;this.$nextTick(function(){e.startCollapsed&&e.handleToggle()})},methods:{handleToggle:function(){var e=jQuery;this.$refs.toggleWrapper.classList.toggle("wptb-panel-toggle-content"),e(this.$refs.toggleTarget).slideToggle()}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{ref:"toggleWrapper",staticClass:"wptb-panel-toggle-group",attrs:{id:t.sectionId}},[l("div",{staticClass:"wptb-panel-toggle",on:{click:function(e){return e.preventDefault(),t.handleToggle.apply(null,arguments)}}},[l("div",{staticClass:"header"},[t._v(t._s(t.label))]),t._v(" "),l("span",{staticClass:"dashicons toggle-icon",on:{"!click":function(e){return e.preventDefault(),e.stopPropagation(),t.handleToggle.apply(null,arguments)}}})]),t._v(" "),l("div",{ref:"toggleTarget",staticClass:"wptb-panel-section-toggle-target"},[t._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"vpWQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{label:String,value:{type:null},disabled:{type:Boolean,default:!1},dependsValue:{type:null,default:null},dependsCallback:{type:Function,default:function(e,n){return n}},uniqueId:{type:String,default:""}},data:function(){return{innerValue:""}},model:{prop:"value",event:"valueChanged"},watch:{value:function(e){this.innerValue=e},innerValue:function(e){this.$emit("valueChanged",e)},dependsValue:function(e){null!==e&&(this.innerValue=this.dependsCallback.call(this,e,this.innerValue))}},mounted:function(){this.innerValue=this.value},methods:{setInnerValue:function(e){this.innerValue=e}}},n=exports.default=e;
},{}],"B40R":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{label:{type:String,default:"panel control label"},disabled:{type:Boolean,default:!1}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",t._b({staticClass:"wptb-element-option wptb-element-property wptb-plugin-width-full wptb-settings-items",attrs:{"data-wptb-disabled":t.disabled}},"div",t.$attrs,!1),[s("div",{staticClass:"wptb-settings-middle-xs wptb-settings-row"},[s("div",{staticClass:"wptb-settings-space-between"},[s("p",{staticClass:"wptb-settings-item-title wptb-text-transform-cap",attrs:{"data-wptb-text-disabled":t.disabled}},[t._v(" "+t._s(t.label)+" ")]),t._v(" "),s("div",[t._t("default")],2)])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"GZC0":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.cap=void 0;var e=exports.cap=function(e){return e.length>0?e.split(" ").map(function(e){return e[0].toUpperCase()+e.slice(1)}).join(" "):e};function t(t,r){t.filter("cap",e)}var r=exports.default={install:t};
},{}],"fI53":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("$Mixins/PanelControlBase")),t=r(require("$LeftPanel/Panel2ColumnTemplate")),l=require("$Plugins/filters");function r(e){return e&&e.__esModule?e:{default:e}}var n=exports.default={components:{Panel2ColumnTemplate:t.default},props:{options:{type:Object,default:function(){}}},mixins:[e.default],filters:{cap:l.cap}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("panel2-column-template",{attrs:{disabled:e.disabled,label:e.label}},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.innerValue,expression:"innerValue"}],staticClass:"wptb-element-property",class:e.uniqueId,attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.innerValue=t.target.multiple?n:n[0]}}},e._l(e.options,function(t,l){return n("option",{key:l,domProps:{value:l}},[e._v(e._s(e._f("cap")(t)))])}),0)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Mixins/PanelControlBase":"vpWQ","$LeftPanel/Panel2ColumnTemplate":"B40R","$Plugins/filters":"GZC0"}],"GUbL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={props:{direction:{type:String,required:!0},activeDirection:{type:String,required:!0}},data:function(){return{icon:""}},mounted:function(){var t=this;this.$nextTick(function(){WPTB_IconManager.getIcon("caret-".concat(t.direction),null,!0).then(function(e){t.icon=e})})},computed:{active:function(){return this.direction===this.activeDirection}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"wptb-panel-direction-cadet",attrs:{"data-wptb-panel-direction":t.direction,"data-wptb-active-direction":t.active},domProps:{innerHTML:t._s(t.icon)},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.$emit("directionClick",t.direction)}}})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"s7uX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("@babel/runtime/helpers/toConsumableArray")),t=r(require("$Mixins/PanelControlBase")),i=r(require("$LeftPanel/Panel2ColumnTemplate")),n=r(require("$LeftPanel/PanelDirectionCadet"));function r(e){return e&&e.__esModule?e:{default:e}}var a=exports.default={props:{value:{type:String,default:"left"},enabledAxis:{type:Array,default:function(){return["X","Y"]}}},components:{PanelDirectionCadet:n.default,Panel2ColumnTemplate:i.default},mixins:[t.default],data:function(){return{directionsObject:{X:["left","right"],Y:["up","down"]},normalizedEnabledAxis:[]}},watch:{enabledAxis:{handler:function(e){this.normalizeAxis(e),this.assignDefaultDirection()},deep:!0}},mounted:function(){var e=this;this.$nextTick(function(){e.normalizeAxis(e.enabledAxis)})},computed:{directions:function(){var t=this;return this.normalizedEnabledAxis.reduce(function(i,n){return t.directionsObject[n]&&i.push.apply(i,(0,e.default)(t.directionsObject[n])),i},[])}},methods:{assignDefaultDirection:function(){var e=this;this.normalizedEnabledAxis.some(function(t){return e.directionsObject[t].includes(e.value)})||this.updateDirection(this.directionsObject[this.normalizedEnabledAxis[0]][0])},updateDirection:function(e){this.$emit("valueChanged",e)},normalizeAxis:function(e){Array.isArray(e)||(e=[e]),this.normalizedEnabledAxis=e.map(function(e){return e.toUpperCase()})}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("panel2-column-template",{attrs:{disabled:t.disabled,label:t.label}},[i("div",{staticClass:"wptb-panel-direction-control-indicators-container"},[i("div",{staticClass:"wptb-panel-direction-static"}),t._v(" "),t._l(t.directions,function(e){return i("panel-direction-cadet",{key:e,attrs:{"active-direction":t.value,direction:e},on:{directionClick:function(i){return t.updateDirection(e)}}})})],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/toConsumableArray":"DJfw","$Mixins/PanelControlBase":"vpWQ","$LeftPanel/Panel2ColumnTemplate":"B40R","$LeftPanel/PanelDirectionCadet":"GUbL"}],"h0P7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=exports.default={inheritAttrs:!1,props:{postFix:{type:String,default:""},value:{type:null,default:0},enableDynamicWidth:{type:Boolean,default:!1},dynamicWidthPadding:{type:Number,default:3},onlyEnter:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:1e3},step:{type:Number,default:1},enableLimit:{type:Boolean,default:!1}},model:{prop:"value",event:"valueChanged"},watch:{value:function(t){this.innerValue=t}},data:function(){return{innerValue:0}},mounted:function(){this.innerValue=this.value},computed:{postFixIt:function(){return"".concat(this.innerValue).concat(this.postFix)},dynamicWidth:function(){return this.enableDynamicWidth?{width:"calc(".concat(this.innerValue.toString().length+this.postFix.length+this.dynamicWidthPadding,"ch) !important")}:{}}},methods:{getValue:function(t){var e=Number.parseFloat(t),i=new RegExp(/^([0-9]+)\.([0-9]+)/,"g").exec(this.step.toString());if(i){var n=i[2].length;e=Number.parseFloat(e.toFixed(n))}return e=isNaN(e)?0:e,this.enableLimit?this.limitValue(e):e},limitValue:function(t){return t<this.min?this.min:t>this.max?this.max:t},handleOnInput:function(t){this.onlyEnter||this.$emit("valueChanged",this.getValue(t.target.value))},handleEnterInput:function(t){this.onlyEnter&&this.$emit("valueChanged",this.getValue(t.target.value))},handleKeyPress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"up",e=this.getValue(this.innerValue);switch(t){case"up":e+=this.step;break;case"down":e-=this.step;break;default:e+=this.step}e=this.getValue(e),this.$emit("valueChanged",e)}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{style:e.dynamicWidth,attrs:{"data-wptb-text-disabled":e.$attrs.disabled,type:"text",disabled:e.$attrs.disabled},domProps:{value:e.postFixIt},on:{input:e.handleOnInput,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.handleKeyPress("up"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.handleKeyPress("down"))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.handleEnterInput.apply(null,arguments))}]}})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"DAVl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("$Components/Icon"));function e(t){return t&&t.__esModule?t:{default:t}}var o=exports.default={props:{position:{type:String,default:"up"}},components:{Icon:t.default},data:function(){return{positionMap:{up:"caret-up",down:"caret-down"}}},computed:{iconName:function(){return this.positionMap[this.position]}},methods:{handleIncrementDecrement:function(){this.$emit("click",this.position)}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("icon",{staticClass:"wptb-range-input-operation-button",attrs:{"extra-classes":["wptb-svg-inherit-color","wptb-settings-generic-icon"],name:t.iconName,"data-wptb-button-position":t.position},nativeOn:{click:function(e){return e.preventDefault(),t.handleIncrementDecrement.apply(null,arguments)}}})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Components/Icon":"IY2J"}],"uI4V":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("$Components/NumberPostfixInput")),t=n(require("$Components/RangeInputButton"));function n(e){return e&&e.__esModule?e:{default:e}}var u=exports.default={components:{RangeInputButton:t.default,NumberPostfixInput:e.default},props:{label:{type:String,default:""},uniqueId:{type:String,default:""},elemContainer:{type:String,default:""},min:{type:Number,default:1,required:!1},max:{type:Number,default:10,required:!1},step:{type:Number,default:1,required:!1},elementMainValue:{type:null},postFix:{type:String,default:""},clamp:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},outputAsString:{type:Boolean,default:!1}},model:{prop:"elementMainValue",event:"valueChanged"},data:function(){return{innerElementMainValue:0}},mounted:function(){var e=this;this.$nextTick(function(){e.innerElementMainValue=e.elementMainValue})},watch:{elementMainValue:function(){this.innerElementMainValue=this.elementMainValue},innerElementMainValue:function(e){var t=this.clamp?this.clampValue(e):e;this.outputAsString&&(t=t.toString()),this.$emit("valueChanged",t)}},methods:{clampValue:function(e){return e<this.min?this.min:e>this.max?this.max:e},handleIncrementDecrement:function(e){this.$refs.postfixInput.handleKeyPress(e)}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-range-input-wrapper",attrs:{disabled:e.disabled}},[n("div",{staticClass:"wptb-settings-item-header wptb-text-transform-cap",attrs:{"data-wptb-text-disabled":e.disabled}},[e._v(" "+e._s(e.label)+" ")]),e._v(" "),n("div",{staticClass:"wptb-settings-middle-xs wptb-settings-row"},[n("div",{staticClass:"wptb-settings-col-xs-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.innerElementMainValue,expression:"innerElementMainValue"}],staticClass:"wptb-element-property wptb-size-slider",class:e.uniqueId,attrs:{type:"range","data-element":e.elemContainer,"data-type":"range",min:e.min,max:e.max,step:e.step,disabled:e.disabled},domProps:{value:e.innerElementMainValue},on:{__r:function(t){e.innerElementMainValue=t.target.value}}})]),e._v(" "),n("div",{staticClass:"wptb-flex wptb-flex-align-center wptb-flex-justify-center wptb-range-text-input-wrapper wptb-settings-col-xs-4"},[n("range-input-button",{attrs:{position:"up"},on:{click:e.handleIncrementDecrement}}),e._v(" "),n("number-postfix-input",{ref:"postfixInput",staticClass:"wptb-element-property wptb-number-input wptb-size-number",class:e.uniqueId,staticStyle:{"text-align":"center"},attrs:{disabled:e.disabled,"post-fix":e.postFix,"only-enter":!0,min:e.min,max:e.max,"data-element":e.elemContainer,step:e.step,"enable-limit":e.clamp,"data-type":"range"},model:{value:e.innerElementMainValue,callback:function(t){e.innerElementMainValue=t},expression:"innerElementMainValue"}}),e._v(" "),n("range-input-button",{attrs:{position:"down"},on:{click:e.handleIncrementDecrement}})],1)])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Components/NumberPostfixInput":"h0P7","$Components/RangeInputButton":"DAVl"}],"GhIH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{settings:{type:Object,default:function(){return{}}},generalDisabledStatus:{type:Boolean,default:!1}}};
},{}],"FcPN":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,t=arguments[3];!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof e&&e.amd?e([],n):"object"==typeof exports?exports.VueColor=n():t.VueColor=n()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=60)}([function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=l[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));l[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+g+'~="'+e.id+'"]');if(r){if(h)return p;r.parentNode.removeChild(r)}if(b){var o=d++;r=f||(f=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(g,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(64),l={},u=s&&(document.head||document.getElementsByTagName("head")[0]),f=null,d=0,h=!1,p=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){h=n,v=i||{};var o=c(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i];(s=l[a.id]).refs--,n.push(s)}t?r(o=c(e,t)):o=[];for(i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete l[s.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(a=e,s=e.default);var l,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=r),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(e,t){return l.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:a,exports:s,options:u}}},function(e,t,n){"use strict";function r(e,t){var n,r=e&&e.a;!(n=e&&e.hsl?(0,i.default)(e.hsl):e&&e.hex&&e.hex.length>0?(0,i.default)(e.hex):e&&e.hsv?(0,i.default)(e.hsv):e&&e.rgba?(0,i.default)(e.rgba):e&&e.rgb?(0,i.default)(e.rgb):(0,i.default)(e))||void 0!==n._a&&null!==n._a||n.setAlpha(r||1);var o=n.toHsl(),a=n.toHsv();return 0===o.s&&(a.h=o.h=e.h||e.hsl&&e.hsl.h||t||0),{hsl:o,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:a,oldHue:e.h||t||o.h,source:e.source,a:e.a||n.getAlpha()}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(65));t.default={props:["value"],data:function(){return{val:r(this.value)}},computed:{colors:{get:function(){return this.val},set:function(e){this.val=e,this.$emit("input",e)}}},watch:{value:function(e){this.val=r(e)}},methods:{colorChange:function(e,t){this.oldHue=this.colors.hsl.h,this.colors=r(e,t||this.oldHue)},isValidHex:function(e){return(0,i.default)(e).isValid()},simpleCheckForValidColor:function(e){for(var t=["r","g","b","a","h","s","l","v"],n=0,r=0,i=0;i<t.length;i++){var o=t[i];e[o]&&(n++,isNaN(e[o])||r++)}if(n===r)return e},paletteUpperCase:function(e){return e.map(function(e){return e.toUpperCase()})},isTransparent:function(e){return 0===(0,i.default)(e).getAlpha()}}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(68),s=!1,c=function(e){s||n(66)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/common/EditableInput.vue",t.default=l.exports},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(8),i=n(18);e.exports=n(9)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(16),i=n(42),o=n(25),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(90),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(29)("wks"),i=n(19),o=n(4).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(113),s=!1,c=function(e){s||n(111)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/common/Hue.vue",t.default=l.exports},function(e,t){e.exports=!0},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(127),s=!1,c=function(e){s||n(123)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/common/Saturation.vue",t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(55),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(133),s=!1,c=function(e){s||n(128)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/common/Alpha.vue",t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(132),s=!1,c=function(e){s||n(130)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/common/Checkboard.vue",t.default=l.exports},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var r=n(46),i=n(30);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(29)("keys"),i=n(19);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(15),i=n(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(8).f,i=n(6),o=n(11)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(11)},function(e,t,n){var r=n(4),i=n(15),o=n(14),a=n(32),s=n(8).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(3)),o=r(n(5)),a=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];t.default={name:"Compact",mixins:[i.default],props:{palette:{type:Array,default:function(){return a}}},components:{"ed-in":o.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(e){this.handleChange(e.target.value)},handleChange:function(e){var t={};t[this.label]=e,void 0===t.hex&&void 0===t["#"]?this.$emit("change",t):e.length>5&&this.$emit("change",t)},handleKeyDown:function(e){var t=this.val,n=Number(t);if(n){var r=this.arrowOffset||1;38===e.keyCode&&(t=n+r,this.handleChange(t),e.preventDefault()),40===e.keyCode&&(t=n-r,this.handleChange(t),e.preventDefault())}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(3)),i=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];t.default={name:"Grayscale",mixins:[r.default],props:{palette:{type:Array,default:function(){return i}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5)),o=r(n(3));t.default={name:"Material",mixins:[o.default],components:{"ed-in":i.default},methods:{onChange:function(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b)&&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"}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(81)),o=r(n(3)),a=r(n(13));t.default={name:"Slider",mixins:[o.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:a.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(e){return"object"!==(void 0===e?"undefined":(0,i.default)(e))?{s:.5,l:e}:e})}},methods:{isActive:function(e,t){var n=this.colors.hsl;return 1===n.l&&1===e.l||0===n.l&&0===e.l||Math.abs(n.l-e.l)<.01&&Math.abs(n.s-e.s)<.01},hueChange:function(e){this.colorChange(e)},handleSwClick:function(e,t){this.colorChange({h:this.colors.hsl.h,s:t.s,l:t.l,source:"hsl"})}}}},function(e,t,n){"use strict";var r=n(14),i=n(41),o=n(44),a=n(7),s=n(26),c=n(88),l=n(31),u=n(95),f=n(11)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,v,g,b){c(n,t,p);var x,m,_,w=function(e){if(!d&&e in F)return F[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},y=t+" Iterator",C="values"==v,k=!1,F=e.prototype,S=F[f]||F["@@iterator"]||v&&F[v],A=S||w(v),O=v?C?w("entries"):A:void 0,E="Array"==t&&F.entries||S;if(E&&(_=u(E.call(new e)))!==Object.prototype&&_.next&&(l(_,y,!0),r||"function"==typeof _[f]||a(_,f,h)),C&&S&&"values"!==S.name&&(k=!0,A=function(){return S.call(this)}),r&&!b||!d&&!k&&F[f]||a(F,f,A),s[t]=A,s[y]=h,v)if(x={values:C?A:w("values"),keys:g?A:w("keys"),entries:O},b)for(m in x)m in F||o(F,m,x[m]);else i(i.P+i.F*(d||k),t,x);return x}},function(e,t,n){var r=n(4),i=n(15),o=n(86),a=n(7),s=n(6),c=function(e,t,n){var l,u,f,d=e&c.F,h=e&c.G,p=e&c.S,v=e&c.P,g=e&c.B,b=e&c.W,x=h?i:i[t]||(i[t]={}),m=x.prototype,_=h?r:p?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(u=!d&&_&&void 0!==_[l])&&s(x,l)||(f=u?_[l]:n[l],x[l]=h&&"function"!=typeof _[l]?n[l]:g&&u?o(f,r):b&&_[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((x.virtual||(x.virtual={}))[l]=f,e&c.R&&m&&!m[l]&&a(m,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){e.exports=!n(9)&&!n(17)(function(){return 7!=Object.defineProperty(n(43)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(12),i=n(4).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(16),i=n(89),o=n(30),a=n(28)("IE_PROTO"),s=function(){},c=function(){var e,t=n(43)("iframe"),r=o.length;for(t.style.display="none",n(94).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(6),i=n(10),o=n(91)(!1),a=n(28)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(24);e.exports=function(e){return Object(r(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(46),i=n(30).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var e=this.value.hsl.h;return 0!==e&&e-this.oldHue>0&&(this.pullDirection="right"),0!==e&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.value},directionClass:function(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop:function(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var r,i=n.clientWidth,o=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,c=(e.pageX||(e.touches?e.touches[0].pageX:0))-a,l=(e.pageY||(e.touches?e.touches[0].pageY:0))-s;"vertical"===this.direction?(l<0?r=360:l>o?r=0:r=360*(-100*l/o+100)/100,this.colors.hsl.h!==r&&this.$emit("change",{h:r,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(c<0?r=0:c>i?r=360:r=360*(100*c/i)/100,this.colors.hsl.h!==r&&this.$emit("change",{h:r,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(118)),o=r(n(3)),a=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],s=["900","700","500","300","100"],c=function(){var e=[];return a.forEach(function(t){var n=[];"black"===t.toLowerCase()||"white"===t.toLowerCase()?n=n.concat(["#000000","#FFFFFF"]):s.forEach(function(e){var r=i.default[t][e];n.push(r.toUpperCase())}),e.push(n)}),e}();t.default={name:"Swatches",mixins:[o.default],props:{palette:{type:Array,default:function(){return c}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(3)),o=r(n(5)),a=r(n(20)),s=r(n(13)),c=r(n(21));t.default={name:"Photoshop",mixins:[i.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:a.default,hue:s.default,alpha:c.default,"ed-in":o.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex:function(){var e=this.colors.hex;return e&&e.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(e){this.colorChange(e)},inputChange:function(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):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"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(125)),o=r(n(126));t.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:(0,o.default)(function(e,t){e(t)},20,{leading:!0,trailing:!1}),handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var r=n.clientWidth,o=n.clientHeight,a=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,c=e.pageX||(e.touches?e.touches[0].pageX:0),l=e.pageY||(e.touches?e.touches[0].pageY:0),u=(0,i.default)(c-a,0,r),f=(0,i.default)(l-s,0,o),d=u/r,h=(0,i.default)(-f/o+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:d,v:h,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(e){this.$emit("change",e)},handleMouseDown:function(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(22));t.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:r.default},computed:{colors:function(){return this.value},gradientColor:function(){var e=this.colors.rgba,t=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+t+", 0) 0%, rgba("+t+", 1) 100%)"}},methods:{handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var r,i=n.clientWidth,o=n.getBoundingClientRect().left+window.pageXOffset,a=(e.pageX||(e.touches?e.touches[0].pageX:0))-o;r=a<0?0:a>i?1:Math.round(100*a/i)/100,this.colors.a!==r&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:r,source:"rgba"})}},handleMouseDown:function(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";function r(e,t,n){var r=e+","+t+","+n;if(i[r])return i[r];var o=function(e,t,n){if("undefined"==typeof document)return null;var r=document.createElement("canvas");r.width=r.height=2*n;var i=r.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null}(e,t,n);return i[r]=o,o}Object.defineProperty(t,"__esModule",{value:!0});var i={};t.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+r(this.white,this.grey,this.size)+")"}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(3)),o=r(n(5)),a=r(n(20)),s=r(n(13)),c=r(n(21)),l=r(n(22)),u=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];t.default={name:"Sketch",mixins:[i.default],components:{saturation:a.default,hue:s.default,alpha:c.default,"ed-in":o.default,checkboard:l.default},props:{presetColors:{type:Array,default:function(){return u}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){return(this.colors.a<1?this.colors.hex8:this.colors.hex).replace("#","")},activeColor:function(){var e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"}},methods:{handlePreset:function(e){this.colorChange({hex:e,source:"hex"})},childChange:function(e){this.colorChange(e)},inputChange:function(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(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"}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(3)),o=r(n(5)),a=r(n(20)),s=r(n(13)),c=r(n(21)),l=r(n(22));t.default={name:"Chrome",mixins:[i.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:a.default,hue:s.default,alpha:c.default,"ed-in":o.default,checkboard:l.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var e=this.colors.hsl,t=e.h,n=e.s,r=e.l;return{h:t.toFixed(),s:(100*n).toFixed()+"%",l:(100*r).toFixed()+"%"}},activeColor:function(){var e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(e){this.colorChange(e)},inputChange:function(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else 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){var t=e.s?e.s.replace("%","")/100:this.colors.hsl.s,n=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:n,source:"hsl"})}},toggleViews:function(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5)),o=r(n(3)),a=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];t.default={name:"Twitter",mixins:[o.default],components:{editableInput:i.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return a}},triangle:{default:"top-left",validator:function(e){return["hide","top-left","top-right"].includes(e)}}},computed:{hsv:function(){var e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex:function(){var e=this.colors.hex;return e&&e.replace("#","")}},methods:{equal:function(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(e){this.colorChange({hex:e,source:"hex"})},inputChange:function(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):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"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=r(n(61)),o=r(n(70)),a=r(n(74)),s=r(n(78)),c=r(n(115)),l=r(n(120)),u=r(n(135)),f=r(n(139)),d=r(n(143)),h=r(n(21)),p=r(n(22)),v=r(n(5)),g=r(n(13)),b=r(n(20)),x=r(n(3)),m={version:"2.8.1",Compact:i.default,Grayscale:o.default,Twitter:d.default,Material:a.default,Slider:s.default,Swatches:c.default,Photoshop:l.default,Sketch:u.default,Chrome:f.default,Alpha:h.default,Checkboard:p.default,EditableInput:v.default,Hue:g.default,Saturation:b.default,ColorMixin:x.default};e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(69),s=!1,c=function(e){s||n(62)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Compact.vue",t.default=l.exports},function(e,t,n){var r=n(63);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("6ce8a5a8",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-compact {\n  padding-top: 5px;\n  padding-left: 5px;\n  width: 245px;\n  border-radius: 2px;\n  box-sizing: border-box;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-compact-colors {\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-compact-color-item {\n  list-style: none;\n  width: 15px;\n  height: 15px;\n  float: left;\n  margin-right: 5px;\n  margin-bottom: 5px;\n  position: relative;\n  cursor: pointer;\n}\n.vc-compact-color-item--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-compact-color-item--white .vc-compact-dot {\n  background: #000;\n}\n.vc-compact-dot {\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  bottom: 5px;\n  left: 5px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}},function(e,t,n){var r;!function(i){function o(e,t){if(t=t||{},(e=e||"")instanceof o)return e;if(!(this instanceof o))return new o(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){e=e.replace(P,"").replace(R,"").toLowerCase();var t,n=!1;if(z[e])e=z[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=$.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=$.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=$.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=$.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=$.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=$.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=$.hex8.exec(e))?{r:A(t[1]),g:A(t[2]),b:A(t[3]),a:j(t[4]),format:n?"name":"hex8"}:(t=$.hex6.exec(e))?{r:A(t[1]),g:A(t[2]),b:A(t[3]),format:n?"name":"hex"}:(t=$.hex4.exec(e))?{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),a:j(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=$.hex3.exec(e))&&{r:A(t[1]+""+t[1]),g:A(t[2]+""+t[2]),b:A(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(L(e.r)&&L(e.g)&&L(e.b)?(t=function(e,t,n){return{r:255*F(e,255),g:255*F(t,255),b:255*F(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):L(e.h)&&L(e.s)&&L(e.v)?(r=E(e.s),i=E(e.v),t=c(e.h,r,i),a=!0,s="hsv"):L(e.h)&&L(e.s)&&L(e.l)&&(r=E(e.s),o=E(e.l),t=function(e,t,n){function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var i,o,a;if(e=F(e,360),t=F(t,100),n=F(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;i=r(c,s,e+1/3),o=r(c,s,e),a=r(c,s,e-1/3)}return{r:255*i,g:255*o,b:255*a}}(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=k(n),{ok:a,format:e.format||s,r:T(255,H(t.r,0)),g:T(255,H(t.g,0)),b:T(255,H(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=B(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=B(this._r)),this._g<1&&(this._g=B(this._g)),this._b<1&&(this._b=B(this._b)),this._ok=n.ok,this._tc_id=D++}function a(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,i,o=H(e,t,n),a=T(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function s(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,i,o=H(e,t,n),a=T(e,t,n),s=o,c=o-a;if(i=0===o?0:c/o,o==a)r=0;else{switch(o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function c(e,t,n){e=6*F(e,360),t=F(t,100),n=F(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),c=n*(1-(1-o)*t),l=r%6;return{r:255*[n,s,a,a,c,n][l],g:255*[c,n,n,s,a,a][l],b:255*[a,a,c,n,n,s][l]}}function l(e,t,n,r){var i=[O(B(e).toString(16)),O(B(t).toString(16)),O(B(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(e,t,n,r){return[O(M(r)),O(B(e).toString(16)),O(B(t).toString(16)),O(B(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s-=t/100,n.s=S(n.s),o(n)}function d(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s+=t/100,n.s=S(n.s),o(n)}function h(e){return o(e).desaturate(100)}function p(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l+=t/100,n.l=S(n.l),o(n)}function v(e,t){t=0===t?0:t||10;var n=o(e).toRgb();return n.r=H(0,T(255,n.r-B(-t/100*255))),n.g=H(0,T(255,n.g-B(-t/100*255))),n.b=H(0,T(255,n.b-B(-t/100*255))),o(n)}function g(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l-=t/100,n.l=S(n.l),o(n)}function b(e,t){var n=o(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,o(n)}function x(e){var t=o(e).toHsl();return t.h=(t.h+180)%360,o(t)}function m(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+120)%360,s:t.s,l:t.l}),o({h:(n+240)%360,s:t.s,l:t.l})]}function _(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+90)%360,s:t.s,l:t.l}),o({h:(n+180)%360,s:t.s,l:t.l}),o({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+72)%360,s:t.s,l:t.l}),o({h:(n+216)%360,s:t.s,l:t.l})]}function y(e,t,n){t=t||6,n=n||30;var r=o(e).toHsl(),i=360/n,a=[o(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(o(r));return a}function C(e,t){t=t||6;for(var n=o(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],c=1/t;t--;)s.push(o({h:r,s:i,v:a})),a=(a+c)%1;return s}function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=T(t,H(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function S(e){return T(1,H(0,e))}function A(e){return parseInt(e,16)}function O(e){return 1==e.length?"0"+e:""+e}function E(e){return e<=1&&(e=100*e+"%"),e}function M(e){return i.round(255*parseFloat(e)).toString(16)}function j(e){return A(e)/255}function L(e){return!!$.CSS_UNIT.exec(e)}var P=/^\s+/,R=/\s+$/,D=0,B=i.round,T=i.min,H=i.max,N=i.random;o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=k(e),this._roundA=B(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=B(360*e.h),n=B(100*e.s),r=B(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=a(this._r,this._g,this._b),t=B(360*e.h),n=B(100*e.s),r=B(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return l(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[O(B(e).toString(16)),O(B(t).toString(16)),O(B(n).toString(16)),O(M(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:B(this._r),g:B(this._g),b:B(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+B(this._r)+", "+B(this._g)+", "+B(this._b)+")":"rgba("+B(this._r)+", "+B(this._g)+", "+B(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:B(100*F(this._r,255))+"%",g:B(100*F(this._g,255))+"%",b:B(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+B(100*F(this._r,255))+"%, "+B(100*F(this._g,255))+"%, "+B(100*F(this._b,255))+"%)":"rgba("+B(100*F(this._r,255))+"%, "+B(100*F(this._g,255))+"%, "+B(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+u(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=o(e);n="#"+u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(m,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},o.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:E(e[r]));e=n}return o(e,t)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:N(),g:N(),b:N()})},o.mix=function(e,t,n){n=0===n?0:n||50;var r=o(e).toRgb(),i=o(t).toRgb(),a=n/100;return o({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},o.readability=function(e,t){var n=o(e),r=o(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},o.isReadable=function(e,t,n){var r,i,a=o.readability(e,t);switch(i=!1,(r=function(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},o.mostReadable=function(e,t,n){var r,i,a,s,c=null,l=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var u=0;u<t.length;u++)(r=o.readability(e,t[u]))>l&&(l=r,c=o(t[u]));return o.isReadable(e,c,{level:a,size:s})||!i?c:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var z=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=o.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(z),$=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),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})$/}}();void 0!==e&&e.exports?e.exports=o:void 0!==(r=function(){return o}.call(t,n,t,e))&&(e.exports=r)}(Math)},function(e,t,n){var r=n(67);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("0f73e73c",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-editable-input {\n  position: relative;\n}\n.vc-input__input {\n  padding: 0;\n  border: 0;\n  outline: none;\n}\n.vc-input__label {\n  text-transform: capitalize;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-editable-input"},[n("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(t){t.target.composing||(e.val=t.target.value)},e.update]}}),e._v(" "),n("span",{staticClass:"vc-input__label",attrs:{for:e.label,id:e.labelId}},[e._v(e._s(e.labelSpanText))]),e._v(" "),n("span",{staticClass:"vc-input__desc"},[e._v(e._s(e.desc))])])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[n("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},e._l(e.paletteUpperCase(e.palette),function(t){return n("li",{key:t,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":"#FFFFFF"===t},style:{background:t},attrs:{role:"option","aria-label":"color:"+t,"aria-selected":t===e.pick},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t===e.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])}),0)])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(73),s=!1,c=function(e){s||n(71)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Grayscale.vue",t.default=l.exports},function(e,t,n){var r=n(72);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("21ddbb74",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-grayscale {\n  width: 125px;\n  border-radius: 2px;\n  box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-grayscale-colors {\n  border-radius: 2px;\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-grayscale-color-item {\n  list-style: none;\n  width: 25px;\n  height: 25px;\n  float: left;\n  position: relative;\n  cursor: pointer;\n}\n.vc-grayscale-color-item--white .vc-grayscale-dot {\n  background: #000;\n}\n.vc-grayscale-dot {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 6px;\n  height: 6px;\n  margin: -3px 0 0 -2px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[n("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},e._l(e.paletteUpperCase(e.palette),function(t){return n("li",{key:t,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":"#FFFFFF"==t},style:{background:t},attrs:{role:"option","aria-label":"Color:"+t,"aria-selected":t===e.pick},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t===e.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])}),0)])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(77),s=!1,c=function(e){s||n(75)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Material.vue",t.default=l.exports},function(e,t,n){var r=n(76);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("1ff3af73",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,'\n.vc-material {\n  width: 98px;\n  height: 98px;\n  padding: 16px;\n  font-family: "Roboto";\n  position: relative;\n  border-radius: 2px;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-material .vc-input__input {\n  width: 100%;\n  margin-top: 12px;\n  font-size: 15px;\n  color: #333;\n  height: 30px;\n}\n.vc-material .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 11px;\n  color: #999;\n  text-transform: capitalize;\n}\n.vc-material-hex {\n  border-bottom-width: 2px;\n  border-bottom-style: solid;\n}\n.vc-material-split {\n  display: flex;\n  margin-right: -10px;\n  padding-top: 11px;\n}\n.vc-material-third {\n  flex: 1;\n  padding-right: 10px;\n}\n',""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[n("ed-in",{staticClass:"vc-material-hex",style:{borderColor:e.colors.hex},attrs:{label:"hex"},on:{change:e.onChange},model:{value:e.colors.hex,callback:function(t){e.$set(e.colors,"hex",t)},expression:"colors.hex"}}),e._v(" "),n("div",{staticClass:"vc-material-split"},[n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"r"},on:{change:e.onChange},model:{value:e.colors.rgba.r,callback:function(t){e.$set(e.colors.rgba,"r",t)},expression:"colors.rgba.r"}})],1),e._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"g"},on:{change:e.onChange},model:{value:e.colors.rgba.g,callback:function(t){e.$set(e.colors.rgba,"g",t)},expression:"colors.rgba.g"}})],1),e._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"b"},on:{change:e.onChange},model:{value:e.colors.rgba.b,callback:function(t){e.$set(e.colors.rgba,"b",t)},expression:"colors.rgba.b"}})],1)])],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(114),s=!1,c=function(e){s||n(79)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Slider.vue",t.default=l.exports},function(e,t,n){var r=n(80);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("7982aa43",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-slider {\n  position: relative;\n  width: 410px;\n}\n.vc-slider-hue-warp {\n  height: 12px;\n  position: relative;\n}\n.vc-slider-hue-warp .vc-hue-picker {\n  width: 14px;\n  height: 14px;\n  border-radius: 6px;\n  transform: translate(-7px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-slider-swatches {\n  display: flex;\n  margin-top: 20px;\n}\n.vc-slider-swatch {\n  margin-right: 1px;\n  flex: 1;\n  width: 20%;\n}\n.vc-slider-swatch:first-child {\n  margin-right: 1px;\n}\n.vc-slider-swatch:first-child .vc-slider-swatch-picker {\n  border-radius: 2px 0px 0px 2px;\n}\n.vc-slider-swatch:last-child {\n  margin-right: 0;\n}\n.vc-slider-swatch:last-child .vc-slider-swatch-picker {\n  border-radius: 0px 2px 2px 0px;\n}\n.vc-slider-swatch-picker {\n  cursor: pointer;\n  height: 12px;\n}\n.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active {\n  transform: scaleY(1.8);\n  border-radius: 3.6px/2px;\n}\n.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 0.6px #ddd;\n}\n",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=r(n(82)),o=r(n(100)),a="function"==typeof o.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};t.default="function"==typeof o.default&&"symbol"===a(i.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(84),n(96),e.exports=n(32).f("iterator")},function(e,t,n){"use strict";var r=n(85)(!0);n(40)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(23),i=n(24);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){var r=n(87);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(45),i=n(18),o=n(31),a={};n(7)(a,n(11)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(8),i=n(16),o=n(27);e.exports=n(9)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(10),i=n(92),o=n(93);e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(23),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(23),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(4).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(6),i=n(48),o=n(28)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(97);for(var r=n(4),i=n(7),o=n(26),a=n(11)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],f=u&&u.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t,n){"use strict";var r=n(98),i=n(99),o=n(26),a=n(10);e.exports=n(40)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(101),__esModule:!0}},function(e,t,n){n(102),n(108),n(109),n(110),e.exports=n(15).Symbol},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(9),a=n(41),s=n(44),c=n(103).KEY,l=n(17),u=n(29),f=n(31),d=n(19),h=n(11),p=n(32),v=n(33),g=n(104),b=n(105),x=n(16),m=n(12),_=n(48),w=n(10),y=n(25),C=n(18),k=n(45),F=n(106),S=n(107),A=n(49),O=n(8),E=n(27),M=S.f,j=O.f,L=F.f,P=r.Symbol,R=r.JSON,D=R&&R.stringify,B=h("_hidden"),T=h("toPrimitive"),H={}.propertyIsEnumerable,N=u("symbol-registry"),z=u("symbols"),I=u("op-symbols"),$=Object.prototype,U="function"==typeof P&&!!A.f,G=r.QObject,V=!G||!G.prototype||!G.prototype.findChild,q=o&&l(function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M($,t);r&&delete $[t],j(e,t,n),r&&e!==$&&j($,t,r)}:j,X=function(e){var t=z[e]=k(P.prototype);return t._k=e,t},W=U&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===$&&Y(I,t,n),x(e),t=y(t,!0),x(n),i(z,t)?(n.enumerable?(i(e,B)&&e[B][t]&&(e[B][t]=!1),n=k(n,{enumerable:C(0,!1)})):(i(e,B)||j(e,B,C(1,{})),e[B][t]=!0),q(e,t,n)):j(e,t,n)},J=function(e,t){x(e);for(var n,r=g(t=w(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},K=function(e){var t=H.call(this,e=y(e,!0));return!(this===$&&i(z,e)&&!i(I,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,B)&&this[B][e])||t)},Z=function(e,t){if(e=w(e),t=y(t,!0),e!==$||!i(z,t)||i(I,t)){var n=M(e,t);return!n||!i(z,t)||i(e,B)&&e[B][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=L(w(e)),r=[],o=0;n.length>o;)i(z,t=n[o++])||t==B||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===$,r=L(n?I:w(e)),o=[],a=0;r.length>a;)!i(z,t=r[a++])||n&&!i($,t)||o.push(z[t]);return o};U||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===$&&t.call(I,n),i(this,B)&&i(this[B],e)&&(this[B][e]=!1),q(this,e,C(1,n))};return o&&V&&q($,e,{configurable:!0,set:t}),X(e)}).prototype,"toString",function(){return this._k}),S.f=Z,O.f=Y,n(50).f=F.f=Q,n(34).f=K,A.f=ee,o&&!n(14)&&s($,"propertyIsEnumerable",K,!0),p.f=function(e){return X(h(e))}),a(a.G+a.W+a.F*!U,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=E(h.store),ie=0;re.length>ie;)v(re[ie++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(N,e+="")?N[e]:N[e]=P(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in N)if(N[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):J(k(e),t)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var oe=l(function(){A.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return A.f(_(e))}}),R&&a(a.S+a.F*(!U||l(function(){var e=P();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(m(t)||void 0!==e)&&!W(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,D.apply(R,r)}}),P.prototype[T]||n(7)(P.prototype,T,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(19)("meta"),i=n(12),o=n(6),a=n(8).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(17)(function(){return c(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&c(e)&&!o(e,r)&&u(e),e}}},function(e,t,n){var r=n(27),i=n(49),o=n(34);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),c=o.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(47);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10),i=n(50).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(34),i=n(18),o=n(10),a=n(25),s=n(6),c=n(42),l=Object.getOwnPropertyDescriptor;t.f=n(9)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(33)("asyncIterator")},function(e,t,n){n(33)("observable")},function(e,t,n){var r=n(112);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("7c5f1a1c",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-hue {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  border-radius: 2px;\n}\n.vc-hue--horizontal {\n  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue--vertical {\n  background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue-container {\n  cursor: pointer;\n  margin: 0 2px;\n  position: relative;\n  height: 100%;\n}\n.vc-hue-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-hue-picker {\n  cursor: pointer;\n  margin-top: 1px;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  transform: translateX(-2px) ;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-hue",e.directionClass]},[n("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}},[n("div",{staticClass:"vc-hue-pointer",style:{top:e.pointerTop,left:e.pointerLeft},attrs:{role:"presentation"}},[n("div",{staticClass:"vc-hue-picker"})])])])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[n("div",{staticClass:"vc-slider-hue-warp"},[n("hue",{on:{change:e.hueChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},e._l(e.normalizedSwatches,function(t,r){return n("div",{key:r,staticClass:"vc-slider-swatch",attrs:{"data-index":r,"aria-label":"color:"+e.colors.hex,role:"button"},on:{click:function(n){return e.handleSwClick(r,t)}}},[n("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":e.isActive(t,r),"vc-slider-swatch-picker--white":1===t.l},style:{background:"hsl("+e.colors.hsl.h+", "+100*t.s+"%, "+100*t.l+"%)"}})])}),0)])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(52),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(119),s=!1,c=function(e){s||n(116)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Swatches.vue",t.default=l.exports},function(e,t,n){var r=n(117);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("10f839a2",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-swatches {\n  width: 320px;\n  height: 240px;\n  overflow-y: scroll;\n  background-color: #fff;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n}\n.vc-swatches-box {\n  padding: 16px 0 6px 16px;\n  overflow: hidden;\n}\n.vc-swatches-color-group {\n  padding-bottom: 10px;\n  width: 40px;\n  float: left;\n  margin-right: 10px;\n}\n.vc-swatches-color-it {\n  box-sizing: border-box;\n  width: 40px;\n  height: 24px;\n  cursor: pointer;\n  background: #880e4f;\n  margin-bottom: 1px;\n  overflow: hidden;\n  -ms-border-radius: 2px 2px 0 0;\n  -moz-border-radius: 2px 2px 0 0;\n  -o-border-radius: 2px 2px 0 0;\n  -webkit-border-radius: 2px 2px 0 0;\n  border-radius: 2px 2px 0 0;\n}\n.vc-swatches-color--white {\n  border: 1px solid #DDD;\n}\n.vc-swatches-pick {\n  fill: rgb(255, 255, 255);\n  margin-left: 8px;\n  display: block;\n}\n.vc-swatches-color--white .vc-swatches-pick {\n  fill: rgb(51, 51, 51);\n}\n",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"red",function(){return r}),n.d(t,"pink",function(){return i}),n.d(t,"purple",function(){return o}),n.d(t,"deepPurple",function(){return a}),n.d(t,"indigo",function(){return s}),n.d(t,"blue",function(){return c}),n.d(t,"lightBlue",function(){return l}),n.d(t,"cyan",function(){return u}),n.d(t,"teal",function(){return f}),n.d(t,"green",function(){return d}),n.d(t,"lightGreen",function(){return h}),n.d(t,"lime",function(){return p}),n.d(t,"yellow",function(){return v}),n.d(t,"amber",function(){return g}),n.d(t,"orange",function(){return b}),n.d(t,"deepOrange",function(){return x}),n.d(t,"brown",function(){return m}),n.d(t,"grey",function(){return _}),n.d(t,"blueGrey",function(){return w}),n.d(t,"darkText",function(){return y}),n.d(t,"lightText",function(){return C}),n.d(t,"darkIcons",function(){return k}),n.d(t,"lightIcons",function(){return F}),n.d(t,"white",function(){return S}),n.d(t,"black",function(){return A});var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},c={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},l={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},u={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},f={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},d={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},h={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},p={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},v={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},g={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},x={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},m={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},w={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},y={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},C={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},k={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},F={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},S="#ffffff",A="#000000";t.default={red:r,pink:i,purple:o,deepPurple:a,indigo:s,blue:c,lightBlue:l,cyan:u,teal:f,green:d,lightGreen:h,lime:p,yellow:v,amber:g,orange:b,deepOrange:x,brown:m,grey:_,blueGrey:w,darkText:y,lightText:C,darkIcons:k,lightIcons:F,white:S,black:A}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":e.pick}},[n("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},e._l(e.palette,function(t,r){return n("div",{key:r,staticClass:"vc-swatches-color-group"},e._l(t,function(t){return n("div",{key:t,class:["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===t}],style:{background:t},attrs:{role:"option","aria-label":"Color:"+t,"aria-selected":e.equal(t),"data-color":t},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.equal(t),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])}),0)}),0)])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(53),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(134),s=!1,c=function(e){s||n(121)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Photoshop.vue",t.default=l.exports},function(e,t,n){var r=n(122);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("080365d4",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,'\n.vc-photoshop {\n  background: #DCDCDC;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);\n  box-sizing: initial;\n  width: 513px;\n  font-family: Roboto;\n}\n.vc-photoshop__disable-fields {\n  width: 390px;\n}\n.vc-ps-head {\n  background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);\n  border-bottom: 1px solid #B1B1B1;\n  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);\n  height: 23px;\n  line-height: 24px;\n  border-radius: 4px 4px 0 0;\n  font-size: 13px;\n  color: #4D4D4D;\n  text-align: center;\n}\n.vc-ps-body {\n  padding: 15px;\n  display: flex;\n}\n.vc-ps-saturation-wrap {\n  width: 256px;\n  height: 256px;\n  position: relative;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n  overflow: hidden;\n}\n.vc-ps-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-ps-hue-wrap {\n  position: relative;\n  height: 256px;\n  width: 19px;\n  margin-left: 10px;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n}\n.vc-ps-hue-pointer {\n  position: relative;\n}\n.vc-ps-hue-pointer--left,\n.vc-ps-hue-pointer--right {\n  position: absolute;\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 5px 0 5px 8px;\n  border-color: transparent transparent transparent #555;\n}\n.vc-ps-hue-pointer--left:after,\n.vc-ps-hue-pointer--right:after {\n  content: "";\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 4px 0 4px 6px;\n  border-color: transparent transparent transparent #fff;\n  position: absolute;\n  top: 1px;\n  left: 1px;\n  transform: translate(-8px, -5px);\n}\n.vc-ps-hue-pointer--left {\n  transform: translate(-13px, -4px);\n}\n.vc-ps-hue-pointer--right {\n  transform: translate(20px, -4px) rotate(180deg);\n}\n.vc-ps-controls {\n  width: 180px;\n  margin-left: 10px;\n  display: flex;\n}\n.vc-ps-controls__disable-fields {\n  width: auto;\n}\n.vc-ps-actions {\n  margin-left: 20px;\n  flex: 1;\n}\n.vc-ps-ac-btn {\n  cursor: pointer;\n  background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);\n  border: 1px solid #878787;\n  border-radius: 2px;\n  height: 20px;\n  box-shadow: 0 1px 0 0 #EAEAEA;\n  font-size: 14px;\n  color: #000;\n  line-height: 20px;\n  text-align: center;\n  margin-bottom: 10px;\n}\n.vc-ps-previews {\n  width: 60px;\n}\n.vc-ps-previews__swatches {\n  border: 1px solid #B3B3B3;\n  border-bottom: 1px solid #F0F0F0;\n  margin-bottom: 2px;\n  margin-top: 1px;\n}\n.vc-ps-previews__pr-color {\n  height: 34px;\n  box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;\n}\n.vc-ps-previews__label {\n  font-size: 14px;\n  color: #000;\n  text-align: center;\n}\n.vc-ps-fields {\n  padding-top: 5px;\n  padding-bottom: 9px;\n  width: 80px;\n  position: relative;\n}\n.vc-ps-fields .vc-input__input {\n  margin-left: 40%;\n  width: 40%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 5px;\n  font-size: 13px;\n  padding-left: 3px;\n  margin-right: 10px;\n}\n.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {\n  top: 0;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n  position: absolute;\n}\n.vc-ps-fields .vc-input__label {\n  left: 0;\n  width: 34px;\n}\n.vc-ps-fields .vc-input__desc {\n  right: 0;\n  width: 0;\n}\n.vc-ps-fields__divider {\n  height: 5px;\n}\n.vc-ps-fields__hex .vc-input__input {\n  margin-left: 20%;\n  width: 80%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 6px;\n  font-size: 13px;\n  padding-left: 3px;\n}\n.vc-ps-fields__hex .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 14px;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n}\n',""])},function(e,t,n){var r=n(124);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("b5380e52",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-saturation,\n.vc-saturation--white,\n.vc-saturation--black {\n  cursor: pointer;\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n}\n.vc-saturation--white {\n  background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n}\n.vc-saturation--black {\n  background: linear-gradient(to top, #000, rgba(0,0,0,0));\n}\n.vc-saturation-pointer {\n  cursor: pointer;\n  position: absolute;\n}\n.vc-saturation-circle {\n  cursor: head;\n  width: 4px;\n  height: 4px;\n  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);\n  border-radius: 50%;\n  transform: translate(-2px, -2px);\n}\n",""])},function(e,t){e.exports=function(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}},function(e,n){function r(e,t,n){function r(t){var n=f,r=d;return f=d=void 0,b=t,p=e.apply(r,n)}function s(e){var n=e-g;return void 0===g||n>=t||n<0||y&&e-b>=h}function c(){var e=_();if(s(e))return l(e);v=setTimeout(c,function(e){var n=t-(e-g);return y?m(n,h-(e-b)):n}(e))}function l(e){return v=void 0,C&&f?r(e):(f=d=void 0,p)}function u(){var e=_(),n=s(e);if(f=arguments,d=this,g=e,n){if(void 0===v)return function(e){return b=e,v=setTimeout(c,t),w?r(e):p}(g);if(y)return v=setTimeout(c,t),r(g)}return void 0===v&&(v=setTimeout(c,t)),p}var f,d,h,p,v,g,b=0,w=!1,y=!1,C=!0;if("function"!=typeof e)throw new TypeError(a);return t=o(t)||0,i(n)&&(w=!!n.leading,h=(y="maxWait"in n)?x(o(n.maxWait)||0,t):h,C="trailing"in n?!!n.trailing:C),u.cancel=function(){void 0!==v&&clearTimeout(v),b=0,f=g=d=v=void 0},u.flush=function(){return void 0===v?p:l(_())},u}function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&b.call(e)==c}(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=f.test(e);return n||d.test(e)?h(e.slice(2),n?2:8):u.test(e)?s:+e}var a="Expected a function",s=NaN,c="[object Symbol]",l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt,p="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,g=p||v||Function("return this")(),b=Object.prototype.toString,x=Math.max,m=Math.min,_=function(){return g.Date.now()};e.exports=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(a);return i(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:e.bgColor},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),e._v(" "),n("div",{staticClass:"vc-saturation--black"}),e._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){var r=n(129);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("4dc1b086",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-alpha {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-checkboard-wrap {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  overflow: hidden;\n}\n.vc-alpha-gradient {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-container {\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n  height: 100%;\n  margin: 0 3px;\n}\n.vc-alpha-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-alpha-picker {\n  cursor: pointer;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  margin-top: 1px;\n  transform: translateX(-2px);\n}\n",""])},function(e,t,n){var r=n(131);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("7e15c05b",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-checkerboard {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  background-size: contain;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vc-checkerboard",style:e.bgStyle})};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-alpha"},[n("div",{staticClass:"vc-alpha-checkboard-wrap"},[n("checkboard")],1),e._v(" "),n("div",{staticClass:"vc-alpha-gradient",style:{background:e.gradientColor}}),e._v(" "),n("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-alpha-pointer",style:{left:100*e.colors.a+"%"}},[n("div",{staticClass:"vc-alpha-picker"})])])])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-photoshop",e.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[n("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[e._v(e._s(e.head))]),e._v(" "),n("div",{staticClass:"vc-ps-body"},[n("div",{staticClass:"vc-ps-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-ps-hue-wrap"},[n("hue",{attrs:{direction:"vertical"},on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}},[n("div",{staticClass:"vc-ps-hue-pointer"},[n("i",{staticClass:"vc-ps-hue-pointer--left"}),n("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),e._v(" "),n("div",{class:["vc-ps-controls",e.disableFields?"vc-ps-controls__disable-fields":""]},[n("div",{staticClass:"vc-ps-previews"},[n("div",{staticClass:"vc-ps-previews__label"},[e._v(e._s(e.newLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-previews__swatches"},[n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:e.colors.hex},attrs:{"aria-label":"New color is "+e.colors.hex}}),e._v(" "),n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:e.currentColor},attrs:{"aria-label":"Current color is "+e.currentColor},on:{click:e.clickCurrentColor}})]),e._v(" "),n("div",{staticClass:"vc-ps-previews__label"},[e._v(e._s(e.currentLabel))])]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-ps-actions"},[n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":e.acceptLabel},on:{click:e.handleAccept}},[e._v(e._s(e.acceptLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":e.cancelLabel},on:{click:e.handleCancel}},[e._v(e._s(e.cancelLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-fields"},[n("ed-in",{attrs:{label:"h",desc:"°",value:e.hsv.h},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"s",desc:"%",value:e.hsv.s,max:100},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"v",desc:"%",value:e.hsv.v,max:100},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),e._v(" "),n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),e._v(" "),n("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:e.hex},on:{change:e.inputChange}})],1),e._v(" "),e.hasResetButton?n("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:e.handleReset}},[e._v(e._s(e.resetLabel))]):e._e()])])])])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(57),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(138),s=!1,c=function(e){s||n(136)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Sketch.vue",t.default=l.exports},function(e,t,n){var r=n(137);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("612c6604",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-sketch {\n  position: relative;\n  width: 200px;\n  padding: 10px 10px 0;\n  box-sizing: initial;\n  background: #fff;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);\n}\n.vc-sketch-saturation-wrap {\n  width: 100%;\n  padding-bottom: 75%;\n  position: relative;\n  overflow: hidden;\n}\n.vc-sketch-controls {\n  display: flex;\n}\n.vc-sketch-sliders {\n  padding: 4px 0;\n  flex: 1;\n}\n.vc-sketch-sliders .vc-hue,\n.vc-sketch-sliders .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-sketch-hue-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-sketch-alpha-wrap {\n  position: relative;\n  height: 10px;\n  margin-top: 4px;\n  overflow: hidden;\n}\n.vc-sketch-color-wrap {\n  width: 24px;\n  height: 24px;\n  position: relative;\n  margin-top: 4px;\n  margin-left: 4px;\n  border-radius: 3px;\n}\n.vc-sketch-active-color {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  border-radius: 2px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);\n  z-index: 2;\n}\n.vc-sketch-color-wrap .vc-checkerboard {\n  background-size: auto;\n}\n.vc-sketch-field {\n  display: flex;\n  padding-top: 4px;\n}\n.vc-sketch-field .vc-input__input {\n  width: 90%;\n  padding: 4px 0 3px 10%;\n  border: none;\n  box-shadow: inset 0 0 0 1px #ccc;\n  font-size: 10px;\n}\n.vc-sketch-field .vc-input__label {\n  display: block;\n  text-align: center;\n  font-size: 11px;\n  color: #222;\n  padding-top: 3px;\n  padding-bottom: 4px;\n  text-transform: capitalize;\n}\n.vc-sketch-field--single {\n  flex: 1;\n  padding-left: 6px;\n}\n.vc-sketch-field--double {\n  flex: 2;\n}\n.vc-sketch-presets {\n  margin-right: -10px;\n  margin-left: -10px;\n  padding-left: 10px;\n  padding-top: 10px;\n  border-top: 1px solid #eee;\n}\n.vc-sketch-presets-color {\n  border-radius: 3px;\n  overflow: hidden;\n  position: relative;\n  display: inline-block;\n  margin: 0 10px 10px 0;\n  vertical-align: top;\n  cursor: pointer;\n  width: 16px;\n  height: 16px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n}\n.vc-sketch-presets-color .vc-checkerboard {\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n  border-radius: 3px;\n}\n.vc-sketch__disable-alpha .vc-sketch-color-wrap {\n  height: 10px;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-sketch",e.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[n("div",{staticClass:"vc-sketch-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-controls"},[n("div",{staticClass:"vc-sketch-sliders"},[n("div",{staticClass:"vc-sketch-hue-wrap"},[n("hue",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-sketch-alpha-wrap"},[n("alpha",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1)]),e._v(" "),n("div",{staticClass:"vc-sketch-color-wrap"},[n("div",{staticClass:"vc-sketch-active-color",style:{background:e.activeColor},attrs:{"aria-label":"Current color is "+e.activeColor}}),e._v(" "),n("checkboard")],1)]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-sketch-field"},[n("div",{staticClass:"vc-sketch-field--double"},[n("ed-in",{attrs:{label:"hex",value:e.hex},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[e._l(e.presetColors,function(t){return[e.isTransparent(t)?n("div",{key:t,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+t},on:{click:function(n){return e.handlePreset(t)}}},[n("checkboard")],1):n("div",{key:t,staticClass:"vc-sketch-presets-color",style:{background:t},attrs:{"aria-label":"Color:"+t},on:{click:function(n){return e.handlePreset(t)}}})]})],2)])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(142),s=!1,c=function(e){s||n(140)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Chrome.vue",t.default=l.exports},function(e,t,n){var r=n(141);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("1cd16048",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-chrome {\n  background: #fff;\n  border-radius: 2px;\n  box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);\n  box-sizing: initial;\n  width: 225px;\n  font-family: Menlo;\n  background-color: #fff;\n}\n.vc-chrome-controls {\n  display: flex;\n}\n.vc-chrome-color-wrap {\n  position: relative;\n  width: 36px;\n}\n.vc-chrome-active-color {\n  position: relative;\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  overflow: hidden;\n  z-index: 1;\n}\n.vc-chrome-color-wrap .vc-checkerboard {\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  background-size: auto;\n}\n.vc-chrome-sliders {\n  flex: 1;\n}\n.vc-chrome-fields-wrap {\n  display: flex;\n  padding-top: 16px;\n}\n.vc-chrome-fields {\n  display: flex;\n  margin-left: -6px;\n  flex: 1;\n}\n.vc-chrome-field {\n  padding-left: 6px;\n  width: 100%;\n}\n.vc-chrome-toggle-btn {\n  width: 32px;\n  text-align: right;\n  position: relative;\n}\n.vc-chrome-toggle-icon {\n  margin-right: -4px;\n  margin-top: 12px;\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n}\n.vc-chrome-toggle-icon-highlight {\n  position: absolute;\n  width: 24px;\n  height: 28px;\n  background: #eee;\n  border-radius: 4px;\n  top: 10px;\n  left: 12px;\n}\n.vc-chrome-hue-wrap {\n  position: relative;\n  height: 10px;\n  margin-bottom: 8px;\n}\n.vc-chrome-alpha-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-chrome-hue-wrap .vc-hue {\n  border-radius: 2px;\n}\n.vc-chrome-alpha-wrap .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {\n  width: 12px;\n  height: 12px;\n  border-radius: 6px;\n  transform: translate(-6px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-chrome-body {\n  padding: 16px 16px 12px;\n  background-color: #fff;\n}\n.vc-chrome-saturation-wrap {\n  width: 100%;\n  padding-bottom: 55%;\n  position: relative;\n  border-radius: 2px 2px 0 0;\n  overflow: hidden;\n}\n.vc-chrome-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-chrome-fields .vc-input__input {\n  font-size: 11px;\n  color: #333;\n  width: 100%;\n  border-radius: 2px;\n  border: none;\n  box-shadow: inset 0 0 0 1px #dadada;\n  height: 21px;\n  text-align: center;\n}\n.vc-chrome-fields .vc-input__label {\n  text-transform: uppercase;\n  font-size: 11px;\n  line-height: 11px;\n  color: #969696;\n  text-align: center;\n  display: block;\n  margin-top: 12px;\n}\n.vc-chrome__disable-alpha .vc-chrome-active-color {\n  width: 18px;\n  height: 18px;\n}\n.vc-chrome__disable-alpha .vc-chrome-color-wrap {\n  width: 30px;\n}\n.vc-chrome__disable-alpha .vc-chrome-hue-wrap {\n  margin-top: 4px;\n  margin-bottom: 4px;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-chrome",e.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[n("div",{staticClass:"vc-chrome-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-body"},[n("div",{staticClass:"vc-chrome-controls"},[n("div",{staticClass:"vc-chrome-color-wrap"},[n("div",{staticClass:"vc-chrome-active-color",style:{background:e.activeColor},attrs:{"aria-label":"current color is "+e.colors.hex}}),e._v(" "),e.disableAlpha?e._e():n("checkboard")],1),e._v(" "),n("div",{staticClass:"vc-chrome-sliders"},[n("div",{staticClass:"vc-chrome-hue-wrap"},[n("hue",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-alpha-wrap"},[n("alpha",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1)])]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-chrome-fields-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.fieldsIndex,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[e.hasAlpha?e._e():n("ed-in",{attrs:{label:"hex",value:e.colors.hex},on:{change:e.inputChange}}),e._v(" "),e.hasAlpha?n("ed-in",{attrs:{label:"hex",value:e.colors.hex8},on:{change:e.inputChange}}):e._e()],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===e.fieldsIndex,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:2===e.fieldsIndex,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"h",value:e.hsl.h},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"s",value:e.hsl.s},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"l",value:e.hsl.l},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:e.toggleViews}},[n("div",{staticClass:"vc-chrome-toggle-icon"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:e.showHighlight,mouseenter:e.showHighlight,mouseout:e.hideHighlight}},[n("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(59),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(146),s=!1,c=function(e){s||n(144)},l=n(2)(i.a,a.a,!1,c,null,null);l.options.__file="src/components/Twitter.vue",t.default=l.exports},function(e,t,n){var r=n(145);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(1)("669a48a5",r,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-twitter {\n  background: #fff;\n  border: 0 solid rgba(0,0,0,0.25);\n  box-shadow: 0 1px 4px rgba(0,0,0,0.25);\n  border-radius: 4px;\n  position: relative;\n}\n.vc-twitter-triangle {\n  width: 0px;\n  height: 0px;\n  border-style: solid;\n  border-width: 0 9px 10px 9px;\n  border-color: transparent transparent #fff transparent;\n  position: absolute;\n}\n.vc-twitter-triangle-shadow {\n  width: 0px;\n  height: 0px;\n  border-style: solid;\n  border-width: 0 9px 10px 9px;\n  border-color: transparent transparent rgba(0, 0, 0, .1) transparent;\n  position: absolute;\n}\n.vc-twitter-body {\n  padding: 15px 9px 9px 15px;\n}\n.vc-twitter .vc-editable-input {\n  position: relative;\n}\n.vc-twitter .vc-editable-input input {\n  width: 100px;\n  font-size: 14px;\n  color: #666;\n  border: 0px;\n  outline: none;\n  height: 28px;\n  box-shadow: inset 0 0 0 1px #F0F0F0;\n  box-sizing: content-box;\n  border-radius: 0 4px 4px 0;\n  float: left;\n  padding: 1px;\n  padding-left: 8px;\n}\n.vc-twitter .vc-editable-input span {\n  display: none;\n}\n.vc-twitter-hash {\n  background: #F0F0F0;\n  height: 30px;\n  width: 30px;\n  border-radius: 4px 0 0 4px;\n  float: left;\n  color: #98A1A4;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.vc-twitter-swatch {\n  width: 30px;\n  height: 30px;\n  float: left;\n  border-radius: 4px;\n  margin: 0 6px 6px 0;\n  cursor: pointer;\n  position: relative;\n  outline: none;\n}\n.vc-twitter-clear {\n  clear: both;\n}\n.vc-twitter-hide-triangle .vc-twitter-triangle {\n  display: none;\n}\n.vc-twitter-hide-triangle .vc-twitter-triangle-shadow {\n  display: none;\n}\n.vc-twitter-top-left-triangle .vc-twitter-triangle{\n  top: -10px;\n  left: 12px;\n}\n.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{\n  top: -11px;\n  left: 12px;\n}\n.vc-twitter-top-right-triangle .vc-twitter-triangle{\n  top: -10px;\n  right: 12px;\n}\n.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{\n  top: -11px;\n  right: 12px;\n}\n",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":"hide"===e.triangle,"vc-twitter-top-left-triangle ":"top-left"===e.triangle,"vc-twitter-top-right-triangle ":"top-right"===e.triangle},style:{width:"number"==typeof e.width?e.width+"px":e.width}},[n("div",{staticClass:"vc-twitter-triangle-shadow"}),e._v(" "),n("div",{staticClass:"vc-twitter-triangle"}),e._v(" "),n("div",{staticClass:"vc-twitter-body"},[e._l(e.defaultColors,function(t,r){return n("span",{key:r,staticClass:"vc-twitter-swatch",style:{background:t,boxShadow:"0 0 4px "+(e.equal(t)?t:"transparent")},on:{click:function(n){return e.handlerClick(t)}}})}),e._v(" "),n("div",{staticClass:"vc-twitter-hash"},[e._v("#")]),e._v(" "),n("editable-input",{attrs:{label:"#",value:e.hex},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-twitter-clear"})],2)])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i}])});
},{}],"HlPv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.objectPropertyFromString=exports.getMainBuilderTable=exports.generateUniqueId=void 0;var e=exports.generateUniqueId=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,r=["a","b","c","d","e","f","1","2","3","4","5"],t="",o=0;o<e;o+=1)t+=r[Math.floor(Math.random()*r.length)];return t},r=exports.getMainBuilderTable=function(){return document.querySelector(".wptb-table-setup .wptb-preview-table")},t=exports.objectPropertyFromString=function(e,r){var t=e.split(".");return Array.isArray(t)||(t=[t]),t.reduce(function(e,r){return e[r]},r)};
},{}],"z3gf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-color"),i=require("$Functions/index"),t=n(require("$LeftPanel/Panel2ColumnTemplate"));function n(e){return e&&e.__esModule?e:{default:e}}var o=exports.default={props:{label:{type:String,default:"label"},color:{type:String,default:"#ffffffff"},disabled:{type:Boolean,default:!1}},model:{prop:"color",event:"colorChanged"},components:{Panel2ColumnTemplate:t.default,Sketch:e.Sketch},data:function(){return{visibility:!1,toolPosition:{},id:null,icons:{noColor:null,palette:null}}},mounted:function(){var e=this;this.$nextTick(function(){var t,n=e.$refs.inputWrapper.ownerDocument;null===(t=n.querySelector(".wptb-container"))||void 0===t||t.addEventListener("click",e.handleHide),n.addEventListener("wheel",e.handleHide,{capture:!1,passive:!0}),n.addEventListener("keyup",e.handleHide),e.id=(0,i.generateUniqueId)(),WPTB_IconManager.getIcon("tint-slash",null,!0).then(function(i){e.icons.noColor=i}),WPTB_IconManager.getIcon("palette",null,!0).then(function(i){e.icons.palette=i}),WPTB_Store.subscribe(function(i){var t=i.type,n=i.payload;"colorPicker/setActiveColorPicker"===t&&e.setVisibility(n===e.id)})})},computed:{toolVisibility:function(){return{visibility:this.visibility?"visible":"hidden"}},colorPickerStyle:function(){return{backgroundColor:this.color}},keepToolInsideWindow:function(){if(this.visibility&&this.$refs.inputWrapper){var e=this.$refs.inputWrapper.getBoundingClientRect(),i=e.x,t=e.y,n=e.height,o=this.$refs.tool.getBoundingClientRect(),r=o.width,l=o.height,s=i,c=t+n;return i+r>window.innerWidth&&(s=window.innerWidth-r),c+l>window.innerHeight&&(c=window.innerHeight-l),{left:this.toPx(s),top:this.toPx(c)}}return{left:this.toPx(-200),top:this.toPx(-200)}}},methods:{toggleVisibility:function(){this.setVisibility(!this.visibility)},toPx:function(e){return"".concat(e,"px")},setVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.visibility!==e&&(this.visibility=e,e&&WPTB_Store.commit("colorPicker/setActiveColorPicker",this.id))},handleHide:function(e){e&&e.type&&"keyup"===e.type&&"Escape"===e.key?this.setVisibility(!1):["wheel","click"].includes(e.type)&&this.setVisibility(!1)},handleColorChange:function(e){this.$emit("colorChanged",e.hex8)},clearColor:function(){this.$emit("colorChanged",""),this.setVisibility(!1)}},beforeDestroy:function(){var e,i=this.$refs.inputWrapper.ownerDocument;null===(e=i.querySelector(".wptb-container"))||void 0===e||e.removeEventListener("click",this.handleHide),i.removeEventListener("wheel",this.handleHide,{capture:!1,passive:!0}),i.removeEventListener("keyup",this.handleHide)}};
(function(){var o=exports.default||module.exports;"function"==typeof o&&(o=o.options),Object.assign(o,{render:function(){var o=this,t=o.$createElement,i=o._self._c||t;return i("panel2-column-template",{staticClass:"wptb-color-picker-wrapper",attrs:{id:o.id,disabled:o.disabled,label:o.label}},[i("div",{ref:"inputWrapper",staticClass:"wptb-color-picker-input-wrapper",attrs:{disabled:o.disabled},on:{"!click":function(t){return t.stopPropagation(),t.preventDefault(),o.toggleVisibility.apply(null,arguments)}}},[i("div",{staticClass:"wptb-color-picker-inner-indicator"},[i("div",{directives:[{name:"show",rawName:"v-show",value:""===o.color,expression:"color === ''"}],staticClass:"wptb-color-picker-clear-color-indicator wptb-color-picker-icon-standards",domProps:{innerHTML:o._s(o.icons.noColor)}}),o._v(" "),i("div",{staticClass:"wptb-color-picker-selected-color wptb-plugin-inner-shadow",style:o.colorPickerStyle}),o._v(" "),i("div",{staticClass:"wptb-checkerboard-pattern wptb-color-picker-alpha-checkerboard"})]),o._v(" "),i("div",{staticClass:"wptb-color-picker-icon-standards wptb-color-picker-logo",domProps:{innerHTML:o._s(o.icons.palette)}})]),o._v(" "),i("div",{ref:"tool",staticClass:"wptb-color-picker-tool-wrapper",style:o.keepToolInsideWindow,on:{click:function(t){t.stopPropagation(),o.visibility&&o.setVisibility(!0)}}},[i("div",{staticClass:"wptb-color-picker-tool-inner-wrapper"},[i("transition",{attrs:{name:"wptb-fade"}},[i("sketch",{staticClass:"wptb-color-picker-input",style:o.toolVisibility,attrs:{value:o.color},on:{input:o.handleColorChange}})],1),o._v(" "),i("div",{staticClass:"wptb-color-picker-clear-color-wrapper"},[i("div",{staticClass:"wptb-color-picker-clear-color",on:{click:function(t){return t.preventDefault(),o.clearColor.apply(null,arguments)}}},[i("div",{staticClass:"wptb-color-picker-icon-standards",domProps:{innerHTML:o._s(o.icons.noColor)}}),o._v(" "),i("div",[o._v("Clear")])])])],1)])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"vue-color":"FcPN","$Functions/index":"HlPv","$LeftPanel/Panel2ColumnTemplate":"B40R"}],"bvsQ":[function(require,module,exports) {

(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(t,e){return(0,e._c)("transition",{attrs:{name:"wptb-fade",appear:""}},[e._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:!0});})();
},{}],"IDU1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("@babel/runtime/helpers/toConsumableArray")),n=u(require("$LeftPanel/SectionGroupCollapse")),t=u(require("$Components/PanelDropdownControl")),o=u(require("$LeftPanel/PanelDirectionControl")),i=u(require("$Components/RangeInput")),r=u(require("$Mixins/SectionGroup")),a=u(require("$Components/ColorPicker")),l=u(require("$Settings/SettingsTransition"));function u(e){return e&&e.__esModule?e:{default:e}}var s=exports.default={components:{SettingsTransition:l.default,SectionGroupCollapse:n.default,PanelDropdownControl:t.default,PanelDirectionControl:o.default,RangeInput:i.default,ColorPicker:a.default},mixins:[r.default],data:function(){return{directionEnabledAnimations:["slideIn","flip"]}},computed:{axisControlForAnimations:function(){var n=[],t={slideIn:["x","y"],flip:["x"]};return t[this.settings.imageLoadAnimation]&&n.push.apply(n,(0,e.default)(t[this.settings.imageLoadAnimation])),n}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("section-group-collapse",{attrs:{"start-collapsed":!1,label:e.strings.imageLoadOptions}},[t("panel-dropdown-control",{attrs:{label:e.strings.animation,options:e.settings.imageLoadAnimationOptions,disabled:e.generalDisabledStatus},model:{value:e.settings.imageLoadAnimation,callback:function(i){e.$set(e.settings,"imageLoadAnimation",i)},expression:"settings.imageLoadAnimation"}}),e._v(" "),t("settings-transition",["flash"===e.settings.imageLoadAnimation?t("color-picker",{attrs:{disabled:e.generalDisabledStatus,label:e.strings.color},model:{value:e.settings.flashColor,callback:function(i){e.$set(e.settings,"flashColor",i)},expression:"settings.flashColor"}}):e._e()],1),e._v(" "),t("settings-transition",[e.directionEnabledAnimations.includes(e.settings.imageLoadAnimation)?t("panel-direction-control",{attrs:{disabled:e.generalDisabledStatus,label:e.strings.direction,"enabled-axis":e.axisControlForAnimations},model:{value:e.settings.imageLoadAnimationDirection,callback:function(i){e.$set(e.settings,"imageLoadAnimationDirection",i)},expression:"settings.imageLoadAnimationDirection"}}):e._e()],1),e._v(" "),t("settings-transition",["flip"===e.settings.imageLoadAnimation?t("range-input",{attrs:{clamp:!0,min:1,max:1e3,label:e.strings.perspective,"post-fix":"px",disabled:e.generalDisabledStatus||"none"===e.settings.imageLoadAnimation},model:{value:e.settings.imageLoadAnimationPerspective,callback:function(i){e.$set(e.settings,"imageLoadAnimationPerspective",i)},expression:"settings.imageLoadAnimationPerspective"}}):e._e()],1),e._v(" "),t("range-input",{attrs:{clamp:!0,min:1,max:10,label:e.strings.speed,disabled:e.generalDisabledStatus||"none"===e.settings.imageLoadAnimation},model:{value:e.settings.imageLoadAnimationSpeed,callback:function(i){e.$set(e.settings,"imageLoadAnimationSpeed",i)},expression:"settings.imageLoadAnimationSpeed"}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/toConsumableArray":"DJfw","$LeftPanel/SectionGroupCollapse":"rG9F","$Components/PanelDropdownControl":"fI53","$LeftPanel/PanelDirectionControl":"s7uX","$Components/RangeInput":"uI4V","$Mixins/SectionGroup":"GhIH","$Components/ColorPicker":"z3gf","$Settings/SettingsTransition":"bvsQ"}],"dqcw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{position:{type:String,default:"topRight"},message:{type:String,default:""},disabled:{type:Boolean,default:!1}},computed:{getMessage:function(){return this.disabled?"":this.message}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-plugin-box-shadow-md wptb-tip-popup",attrs:{"data-tip-position":this.position,title:this.getMessage}},[this._v("?")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"AUrc":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./TipPopup"));function t(e){return e&&e.__esModule?e:{default:e}}var o=exports.default={props:{message:{type:String,default:""},disabled:{type:Boolean,default:!1}},components:{TipPopup:e.default}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"wptb-control-tip-wrapper",attrs:{disabled:this.disabled}},[this._t("default"),this._v(" "),s("tip-popup",{attrs:{disabled:this.disabled,message:this.message}})],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"./TipPopup":"dqcw"}],"Uyr1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("$LeftPanel/SectionGroupCollapse")),r=u(require("$Mixins/SectionGroup")),o=u(require("$Components/ControlTipWrapper")),t=u(require("$Components/RangeInput")),n=u(require("$Components/ColorPicker"));function u(e){return e&&e.__esModule?e:{default:e}}var p=exports.default={components:{SectionGroupCollapse:e.default,ControlTipWrapper:o.default,RangeInput:t.default,ColorPicker:n.default},mixins:[r.default]};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("section-group-collapse",{attrs:{label:e.strings.generalOptions,"start-collapsed":!1,sectionId:"lazyLoadProGeneralOptions"}},[s("control-tip-wrapper",{attrs:{disabled:e.generalDisabledStatus,message:e.strings.visibilityPercentageTip}},[s("range-input",{attrs:{disabled:e.generalDisabledStatus,"post-fix":"%",clamp:!0,min:1,max:100,label:e.strings.visibilityPercentage},model:{value:e.settings.visibilityPercentage,callback:function(t){e.$set(e.settings,"visibilityPercentage",t)},expression:"settings.visibilityPercentage"}})],1),e._v(" "),s("color-picker",{attrs:{disabled:e.generalDisabledStatus,label:e.strings.backgroundColor},model:{value:e.settings.backgroundColor,callback:function(t){e.$set(e.settings,"backgroundColor",t)},expression:"settings.backgroundColor"}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$LeftPanel/SectionGroupCollapse":"rG9F","$Mixins/SectionGroup":"GhIH","$Components/ControlTipWrapper":"AUrc","$Components/RangeInput":"uI4V","$Components/ColorPicker":"z3gf"}],"WV0h":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:["relativeElement","forceHide"],data:function(){return{listening:!1}},watch:{relativeElement:function(){this.relativeElement&&!this.listening&&(this.relativeElement.addEventListener("scroll",this.handleScroll),this.handleScroll(),this.listening=!0)}},methods:{handleScroll:function(){if(!this.forceHide){var e=this.relativeElement.scrollTop,t=this.$refs.observerElement.offsetTop;e+this.relativeElement.clientHeight>=t&&this.$emit("visible")}}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"observerElement"},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"hwex":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("deepmerge")),t=i(require("../../components/IntersectionObserver")),n=i(require("$LeftPanel/Panel2ColumnTemplate"));function i(e){return e&&e.__esModule?e:{default:e}}var r=exports.default={props:{label:{type:String,default:"Icon Select"},icons:{type:Object,default:function(){return{}}},perPage:{type:Number,default:20},selectedUserIcon:{type:Object,default:function(){return{url:null,name:null}}},disabled:{type:Boolean,default:!1}},model:{prop:"selectedUserIcon",event:"iconSelected"},components:{Panel2ColumnTemplate:n.default,IntersectionObserver:t.default},data:function(){return{selectedIcon:{url:null,name:null},openDrawer:!1,innerDrawerRef:null,paginationIndex:1,observerHide:!1,debunkedFilterText:"",debunkId:-1,filterText:"",drawerPosition:{left:0}}},mounted:function(){var e=this;document.addEventListener("keyup",function(t){"Escape"===t.code&&e.openDrawer&&e.setDrawerState(!1)}),this.$nextTick(function(){e.selectedIcon=e.selectedUserIcon,e.selectedIcon.url||(e.selectedIcon.url=e.icons[e.selectedIcon.name]?e.icons[e.selectedIcon.name]:null)})},watch:{disabled:function(e){e&&this.setDrawerState(!1)},debunkedFilterText:function(e){var t=this;clearTimeout(this.debunkId),this.debunkId=setTimeout(function(){t.filterText=e},500)},selectedIcon:{handler:function(e){this.$emit("iconSelected",e)},deep:!0},selectedUserIcon:{handler:function(){this.assignPropIconValues()},deep:!0}},methods:{assignPropIconValues:function(){var t=(0,e.default)({},this.selectedUserIcon);JSON.stringify(t)!==JSON.stringify(this.selectedIcon)&&(this.selectedIcon=t,this.selectedIcon.url||(this.selectedIcon.url=this.icons[this.selectedIcon.name]?this.icons[this.selectedIcon.name]:null))},setDrawerState:function(e){this.openDrawer=e},fullIconList:function(){var e=this;return Object.keys(this.icons).filter(function(t){return t.includes(e.filterText)}).slice(0,this.paginationIndex*this.perPage).reduce(function(t,n){return t[n]=e.icons[n],t},{})},toggleIconDrawer:function(){this.disabled||(this.calculateDrawerPosition(),this.openDrawer=!this.openDrawer,this.innerDrawerRef=this.$refs.drawerRefElement)},setIcon:function(e,t){this.disabled||(this.selectedIcon.url=t,this.selectedIcon.name=e,this.toggleIconDrawer())},observerVisible:function(){this.paginationIndex+=1},calculateDrawerPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=this.$refs.iconSelectButton.getBoundingClientRect(),n=t.x+t.width+e,i=t.y;this.drawerPosition.top=this.toPx(i),this.drawerPosition.left=this.toPx(n)},toPx:function(e){return"".concat(e,"px")}}};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("panel2-column-template",{attrs:{disabled:e.disabled,label:e.label}},[i("div",{staticClass:"wptb-icon-select-wrapper",attrs:{disabled:e.disabled}},[i("div",{staticClass:"wptb-icon-select-display"},[i("div",{ref:"iconSelectButton",staticClass:"wptb-icon-select-preview",on:{click:e.toggleIconDrawer}},[i("img",{attrs:{src:e.selectedIcon.url||""}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.openDrawer,expression:"openDrawer"}],staticClass:"wptb-icon-select-drawer wptb-plugin-box-shadow-md",style:e.drawerPosition},[i("div",{staticClass:"wptb-icon-search-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.debunkedFilterText,expression:"debunkedFilterText",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"Search for icons..."},domProps:{value:e.debunkedFilterText},on:{input:function(t){t.target.composing||(e.debunkedFilterText=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),i("div",{ref:"drawerRefElement",staticClass:"wptb-icon-previews"},[i("div",{staticClass:"wptb-icon-reset wptb-icon-select-drawer-preview",on:{click:function(t){return e.setIcon("","")}}}),e._v(" "),e._l(e.fullIconList(),function(t,r){return i("div",{key:r,staticClass:"wptb-icon-select-drawer-preview",class:{"wptb-icon-preview-active":e.selectedIcon.name===r}},[i("img",{attrs:{src:t,title:r,draggable:!1},on:{click:function(i){return e.setIcon(r,t)}}})])}),e._v(" "),i("intersection-observer",{attrs:{"relative-element":e.innerDrawerRef,"force-hide":e.observerHide},on:{visible:e.observerVisible}},[i("div",{staticClass:"wptb-icon-select-drawer-end"})])],2)])])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"deepmerge":"xMlw","../../components/IntersectionObserver":"WV0h","$LeftPanel/Panel2ColumnTemplate":"B40R"}],"rsVL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("$Mixins/SectionGroup")),t=u(require("$LeftPanel/SectionGroupCollapse")),n=u(require("$LeftPanel/PanelIconSelect")),o=u(require("$Components/ColorPicker")),r=u(require("$Components/RangeInput")),i=u(require("$Components/PanelDropdownControl"));function u(e){return e&&e.__esModule?e:{default:e}}var a=exports.default={components:{SectionGroupCollapse:t.default,PanelIconSelect:n.default,ColorPicker:o.default,RangeInput:r.default,PanelDropdownControl:i.default},mixins:[e.default],computed:{iconList:function(){return WPTB_IconManager.getIconList()},iconSubOptionsDisableStatus:function(){return this.generalDisabledStatus||!this.settings.iconName||null===this.settings.iconName.name||""===this.settings.iconName.name}}};
(function(){var i=exports.default||module.exports;"function"==typeof i&&(i=i.options),Object.assign(i,{render:function(){var i=this,n=i.$createElement,t=i._self._c||n;return t("section-group-collapse",{attrs:{"start-collapsed":!1,label:i.strings.iconOptions}},[t("panel-icon-select",{attrs:{label:i.strings.icon,icons:i.iconList,disabled:i.generalDisabledStatus},model:{value:i.settings.iconName,callback:function(n){i.$set(i.settings,"iconName",n)},expression:"settings.iconName"}}),i._v(" "),t("color-picker",{attrs:{disabled:i.iconSubOptionsDisableStatus,label:i.strings.iconColor},model:{value:i.settings.iconColor,callback:function(n){i.$set(i.settings,"iconColor",n)},expression:"settings.iconColor"}}),i._v(" "),t("range-input",{attrs:{"post-fix":"px",clamp:!0,min:1,max:100,label:i.strings.iconSize,disabled:i.iconSubOptionsDisableStatus},model:{value:i.settings.iconSize,callback:function(n){i.$set(i.settings,"iconSize",n)},expression:"settings.iconSize"}}),i._v(" "),t("panel-dropdown-control",{attrs:{label:i.strings.iconAnimation,options:i.settings.iconAnimationOptions,disabled:i.iconSubOptionsDisableStatus},model:{value:i.settings.iconAnimation,callback:function(n){i.$set(i.settings,"iconAnimation",n)},expression:"settings.iconAnimation"}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Mixins/SectionGroup":"GhIH","$LeftPanel/SectionGroupCollapse":"rG9F","$LeftPanel/PanelIconSelect":"hwex","$Components/ColorPicker":"z3gf","$Components/RangeInput":"uI4V","$Components/PanelDropdownControl":"fI53"}],"j8St":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("$Mixins/SettingsMenuSection")),t=r(require("$Mixins/withMessage")),a=r(require("$LazyLoadSettings/LazyLoadProDisabledOverlay")),i=r(require("$LazyLoadSettings/ImageLoadOptions")),s=r(require("$LazyLoadSettings/LazyLoadGeneralOptions")),o=r(require("$LazyLoadSettings/LazyLoadIconOptions"));function r(e){return e&&e.__esModule?e:{default:e}}var n=exports.default={props:{settings:{type:Object,required:!0}},components:{LazyLoadIconOptions:o.default,LazyLoadGeneralOptions:s.default,ImageLoadOptions:i.default,LazyLoadProDisabledOverlay:a.default},mixins:[e.default,t.default],computed:{generalDisabledStatus:function(){return this.isBusy()||!this.settings.enabled}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("fragment",[e("lazy-load-pro-disabled-overlay",{attrs:{visibility:!t.sectionData.proStatus,"grid-area":"right"},domProps:{innerHTML:t._s(t.sectionData.upsellsElement)}}),t._v(" "),e("div",{staticClass:"wptb-controls-for-settings wptb-lazy-load-pro-options"},[e("lazy-load-general-options",{attrs:{"general-disabled-status":t.generalDisabledStatus,settings:t.settings}}),t._v(" "),e("lazy-load-icon-options",{attrs:{settings:t.settings,"general-disabled-status":t.generalDisabledStatus}}),t._v(" "),e("image-load-options",{attrs:{"general-disabled-status":t.generalDisabledStatus,settings:t.settings}})],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Mixins/SettingsMenuSection":"qeqP","$Mixins/withMessage":"wm3G","$LazyLoadSettings/LazyLoadProDisabledOverlay":"YDlH","$LazyLoadSettings/ImageLoadOptions":"IDU1","$LazyLoadSettings/LazyLoadGeneralOptions":"Uyr1","$LazyLoadSettings/LazyLoadIconOptions":"rsVL"}],"osOD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("$Mixins/PanelControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var r=exports.default={mixins:[e.default]};
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-element-option wptb-plugin-width-full wptb-settings-items",attrs:{"data-wptb-text-disabled":e.disabled}},[n("div",{staticClass:"wptb-settings-middle-xs wptb-settings-row"},[n("label",{staticClass:"wptb-toggle"},[n("span",{staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.label)+" ")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.innerValue,expression:"innerValue"}],staticClass:"wptb-element-property",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.innerValue)?e._i(e.innerValue,null)>-1:e.innerValue},on:{change:function(t){var n=e.innerValue,i=t.target,a=!!i.checked;if(Array.isArray(n)){var l=e._i(n,null);i.checked?l<0&&(e.innerValue=n.concat([null])):l>-1&&(e.innerValue=n.slice(0,l).concat(n.slice(l+1)))}else e.innerValue=a}}}),e._v(" "),n("i")])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Mixins/PanelControlBase":"vpWQ"}],"QK2a":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("$Mixins/SettingsMenuSection")),t=r(require("$Components/PanelToggleControl")),o=r(require("$LeftPanel/SectionGroupCollapse"));function r(e){return e&&e.__esModule?e:{default:e}}var n=exports.default={components:{SectionGroupCollapse:o.default,PanelToggleControl:t.default},props:{settings:{type:Object,required:!0}},mixins:[e.default]};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wptb-controls-for-settings wptb-lazy-load-basic-options"},[s("section-group-collapse",{attrs:{label:t.strings.basicOptions,"start-collapsed":!1}},[s("panel-toggle-control",{attrs:{label:t.strings.enableLazyLoad},model:{value:t.settings.enabled,callback:function(e){t.$set(t.settings,"enabled",e)},expression:"settings.enabled"}})],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"$Mixins/SettingsMenuSection":"qeqP","$Components/PanelToggleControl":"osOD","$LeftPanel/SectionGroupCollapse":"rG9F"}],"oUAl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={props:{visible:{type:Boolean,default:!0}},computed:{style:function(){return{visibility:this.visible?"visible":"collapse"}}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{style:this.style},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{}],"qXUf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("vue-fragment"),e=f(require("deepmerge")),i=f(require("$Components/MenuContent")),n=f(require("$Mixins/SettingsMenuSection")),s=f(require("$Components/Settings/FooterButtons")),a=f(require("$Components/MenuButton")),o=f(require("$Mixins/withMessage")),r=f(require("$LazyLoadSettings/LazyLoadPreview")),u=f(require("$LazyLoadSettings/LazyLoadProOptions")),d=f(require("$LazyLoadSettings/LazyLoadBasicOptions")),g=f(require("$Settings/Disclaimer")),l=f(require("$Settings/CollapsedVisibility"));function f(t){return t&&t.__esModule?t:{default:t}}var c=exports.default={components:{CollapsedVisibility:l.default,Disclaimer:g.default,LazyLoadBasicOptions:d.default,LazyLoadProOptions:u.default,LazyLoadPreview:r.default,MenuButton:a.default,FooterButtons:s.default,MenuContent:i.default,Fragment:t.Fragment},mixins:[n.default,o.default],mounted:function(){this.settings=(0,e.default)({},this.sectionData.settings),this.settings.iconName.url=WPTB_IconManager.getIconUrl(this.settings.iconName.name),this.updateInitialSettings()},data:function(){return{settings:{},initialSettings:{}}},computed:{settingsDirtyStatus:function(){return JSON.stringify(this.settings)!==JSON.stringify(this.initialSettings)}},methods:{revertLazyLoadSettings:function(){this.$set(this,"settings",(0,e.default)({},this.initialSettings)),this.$set(this.templateData,"settings",(0,e.default)({},this.initialSettings))},updateInitialSettings:function(){this.initialSettings=(0,e.default)({},this.settings)},updateLazyLoadSettings:function(){var t=this;if(this.settingsDirtyStatus){var i=this.sectionData.security,n=i.action,s=i.nonce,a=i.ajaxUrl,o=new FormData,r=(0,e.default)({},this.settings);r.iconSvg=null,o.append("settings",JSON.stringify(r)),o.append("action",n),o.append("nonce",s),this.setBusy(!0),fetch(a,{method:"POST",body:o}).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)}).then(function(e){t.setMessage({message:e.message}),t.updateInitialSettings()}).catch(function(e){t.setMessage({message:e.message,type:"error"})}).finally(function(){t.setBusy(!1)})}}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("fragment",[s("menu-content",{attrs:{center:!0}},[s("div",{staticClass:"wptb-lazy-load-wrapper"},[s("div",{staticClass:"wptb-lazy-load-left-column"},[s("lazy-load-basic-options",{attrs:{"template-data":t.templateData,settings:t.settings}}),t._v(" "),s("lazy-load-preview",{attrs:{"template-data":t.templateData,"default-html":t.sectionData.previewTable,settings:t.settings}}),t._v(" "),s("collapsed-visibility",{attrs:{visible:t.settings.enabled}},[s("disclaimer",{attrs:{title:t.strings.important,message:t.strings.importantMessage}})],1)],1),t._v(" "),s("lazy-load-pro-options",{attrs:{settings:t.settings,"template-data":t.templateData}})],1)]),t._v(" "),s("footer-buttons",[s("menu-button",{attrs:{type:"danger",disabled:!t.settingsDirtyStatus},on:{click:t.revertLazyLoadSettings}},[t._v(t._s(t.strings.revert)+" ")]),t._v(" "),s("menu-button",{attrs:{disabled:!t.settingsDirtyStatus},on:{click:t.updateLazyLoadSettings}},[t._v(t._s(t.strings.submit)+" ")])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"vue-fragment":"CDb8","deepmerge":"xMlw","$Components/MenuContent":"vTRD","$Mixins/SettingsMenuSection":"qeqP","$Components/Settings/FooterButtons":"jkrZ","$Components/MenuButton":"ksMR","$Mixins/withMessage":"wm3G","$LazyLoadSettings/LazyLoadPreview":"vlDi","$LazyLoadSettings/LazyLoadProOptions":"j8St","$LazyLoadSettings/LazyLoadBasicOptions":"QK2a","$Settings/Disclaimer":"ZYQN","$Settings/CollapsedVisibility":"oUAl"}],"pZ9N":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=b(require("@babel/runtime/helpers/asyncToGenerator")),t=b(require("@babel/runtime/helpers/slicedToArray")),r=b(require("@babel/runtime/helpers/defineProperty")),n=b(require("@babel/runtime/helpers/typeof")),s=b(require("@babel/runtime/regenerator")),i=b(require("$Mixins/withStore")),o=b(require("$Mixins/withMessage")),a=b(require("$Components/MenuHeader.vue")),c=b(require("$Components/Sections.vue")),u=b(require("$Components/MenuFooter.vue")),l=b(require("$Components/MenuButton.vue")),p=b(require("$Containers/GeneralSettings")),f=b(require("$Components/VersionControlSettings")),d=b(require("$Components/Settings/GeneralStylesSettings")),h=b(require("$Components/TableFixer/TableFixerSettings")),g=b(require("$LazyLoadSettings/LazyLoadSettings"));function b(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,r.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var y=exports.default={props:["sectionsData","settings","pluginInfo"],components:{MenuButton:l.default,MenuHeader:a.default,Sections:c.default,MenuFooter:u.default,GeneralSettings:p.default,VersionControlSettings:f.default,GeneralStylesSettings:d.default,LazyLoadSettings:g.default,TableFixerSettings:h.default},mixins:[i.default,o.default],data:function(){return{sections:{},currentSection:"",parsedFields:{},resetActive:!1,canSubmit:!1,fetching:!1,isChanging:!1}},watch:{store:{handler:function(){this.resetActive?(this.canSubmit=!1,this.resetActive=!1):this.canSubmit=!0},deep:!0},fetching:function(e){this.setBusy(e)}},beforeMount:function(){var e=this;Object.keys(this.sectionsData).map(function(t){e.sections[t]=e.sectionsData[t],Object.prototype.hasOwnProperty.call(e.sectionsData,t)&&(void 0===e.parsedFields[t]&&(e.parsedFields[t]=[]),void 0!==e.sectionsData[t].fields&&"object"===(0,n.default)(e.sectionsData[t].fields)&&Object.keys(e.sectionsData[t].fields).map(function(r){Object.prototype.hasOwnProperty.call(e.sectionsData[t].fields,r)&&e.parsedFields[t].push(S(S({},e.sectionsData[t].fields[r]),{},{id:r}))}))});var r=Object.keys(this.parsedFields).map(function(t){if(Object.prototype.hasOwnProperty.call(e.parsedFields,t))return t}),s=(0,t.default)(r,1);this.currentSection=s[0]},computed:{sectionData:function(){return this.settings[this.currentSection]||{}},currentFields:function(){return this.parsedFields[this.currentSection]},currentTemplate:function(){return"".concat(this.currentSection[0].toUpperCase()+this.currentSection.slice(1),"Settings")}},methods:{resetStore:function(){this.canSubmit&&(this.revertStore(),this.resetActive=!0,this.setMessage({message:this.strings.revertMessage}))},submitSettings:function(){var e=this;if(this.canSubmit){var t=new FormData;t.append("nonce",this.settings.nonce),t.append("action",this.settings.action),t.append("options",JSON.stringify(this.store)),this.canSubmit=!1,this.fetching=!0,fetch(this.settings.ajaxUrl,{method:"POST",body:t}).then(function(e){if(e.ok)return e.json();throw new Error(e.statusText)}).then(function(t){if(t.error)throw new Error(t.error);e.setMessage({message:t.message})}).catch(function(t){console.error(t),e.setMessage({type:"error",message:t})}).finally(function(){e.fetching=!1})}},switchToNewBuilder:function(){var t=this;return(0,e.default)(s.default.mark(function e(){var r,n,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isChanging){e.next=2;break}return e.abrupt("return");case 2:return t.isChanging=!0,e.prev=3,(r=new FormData).append("nonce",t.settings.nonce),r.append("action","wptb_toggle_legacy_builder"),e.next=9,fetch(t.settings.ajaxUrl,{method:"POST",body:r});case 9:return n=e.sent,e.next=12,n.json();case 12:if(i=e.sent,n.ok){e.next=15;break}return e.abrupt("return");case 15:if(!i.error){e.next=17;break}return e.abrupt("return");case 17:window.location.replace(window.location.href.replace("wp-table-builder-settings","wptb-settings")),e.next=22;break;case 20:e.prev=20,e.t0=e.catch(3);case 22:t.isChanging=!1;case 23:case"end":return e.stop()}},e,null,[[3,20]])}))()}}};
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wptb-settings-wrapper"},[n("menu-header",{attrs:{"logo-src":t.pluginInfo.logo,"logo-alt":t.strings.logoAlt,"plugin-name":t.pluginInfo.pluginName}},[n("button",{staticClass:"wptb-v2-switch-to-new-builder",attrs:{type:"button"},on:{click:t.switchToNewBuilder}},[t.isChanging?[t._v("Switching...")]:[t._v("Switch to New Builder")]],2),t._v(" "),n("a",{attrs:{href:t.pluginInfo.pluginHomepage}},[t._v(t._s(t.strings.homepage))])]),t._v(" "),n("sections",{attrs:{items:t.sections,disabled:t.isBusy()},model:{value:t.currentSection,callback:function(e){t.currentSection=e},expression:"currentSection"}}),t._v(" "),n(t.currentTemplate,{tag:"component",attrs:{"current-fields":t.currentFields,store:t.store,disabled:!t.canSubmit,"template-data":t.sectionData},on:{resetStore:t.resetStore,submitSettings:t.submitSettings}}),t._v(" "),n("menu-footer",[n("portal-target",{attrs:{name:"footerButtons"}})],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
},{"@babel/runtime/helpers/asyncToGenerator":"gIqS","@babel/runtime/helpers/slicedToArray":"DERy","@babel/runtime/helpers/defineProperty":"cQfh","@babel/runtime/helpers/typeof":"xOn8","@babel/runtime/regenerator":"BxGn","$Mixins/withStore":"D1kn","$Mixins/withMessage":"wm3G","$Components/MenuHeader.vue":"vi91","$Components/Sections.vue":"yPIx","$Components/MenuFooter.vue":"nwtb","$Components/MenuButton.vue":"ksMR","$Containers/GeneralSettings":"fmPj","$Components/VersionControlSettings":"V4Tn","$Components/Settings/GeneralStylesSettings":"b8SN","$Components/TableFixer/TableFixerSettings":"RpBt","$LazyLoadSettings/LazyLoadSettings":"qXUf"}],"yEip":[function(require,module,exports) {
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=exports.default={install:t};
},{}],"yv7g":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3];function e(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Store=void 0,exports.createLogger=q,exports.default=exports.createNamespacedHelpers=void 0,exports.install=H,exports.mapState=exports.mapMutations=exports.mapGetters=exports.mapActions=void 0;var n="undefined"!=typeof window?window:void 0!==t?t:{},o=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){o.emit("vuex:mutation",t,e)},{prepend:!0}),t.subscribeAction(function(t,e){o.emit("vuex:action",t,e)},{prepend:!0}))}function i(t,e){return t.filter(e)[0]}function a(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n=i(e,function(e){return e.original===t});if(n)return n.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach(function(n){o[n]=a(t[n],e)}),o}function c(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function s(t){return null!==t&&"object"==typeof t}function u(t){return t&&"function"==typeof t.then}function f(t,e){if(!t)throw new Error("[vuex] "+e)}function p(t,e){return function(){return t(e)}}var l=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(t,e){this._children[t]=e},l.prototype.removeChild=function(t){delete this._children[t]},l.prototype.getChild=function(t){return this._children[t]},l.prototype.hasChild=function(t){return t in this._children},l.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},l.prototype.forEachChild=function(t){c(this._children,t)},l.prototype.forEachGetter=function(t){this._rawModule.getters&&c(this._rawModule.getters,t)},l.prototype.forEachAction=function(t){this._rawModule.actions&&c(this._rawModule.actions,t)},l.prototype.forEachMutation=function(t){this._rawModule.mutations&&c(this._rawModule.mutations,t)},Object.defineProperties(l.prototype,h);var d=function(t){this.register([],t,!1)};function m(t,e,n){if(e.update(n),n.modules)for(var o in n.modules){if(!e.getChild(o))return void 0;m(t.concat(o),e.getChild(o),n.modules[o])}}d.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},d.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},d.prototype.update=function(t){m([],this.root,t)},d.prototype.register=function(t,e,n){var o=this;void 0===n&&(n=!0);var r=new l(e,n);0===t.length?this.root=r:this.get(t.slice(0,-1)).addChild(t[t.length-1],r);e.modules&&c(e.modules,function(e,r){o.register(t.concat(r),e,n)})},d.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],o=e.getChild(n);o&&o.runtime&&e.removeChild(n)},d.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var v,g={assert:function(t){return"function"==typeof t},expected:"function"},y={assert:function(t){return"function"==typeof t||"object"==typeof t&&"function"==typeof t.handler},expected:'function or object with "handler" function'},_={getters:g,mutations:g,actions:y};function b(t,e){Object.keys(_).forEach(function(n){if(e[n]){var o=_[n];c(e[n],function(e,r){f(o.assert(e),w(t,n,r,e,o.expected))})}})}function w(t,e,n,o,r){var i=e+" should be "+r+' but "'+e+"."+n+'"';return t.length>0&&(i+=' in module "'+t.join(".")+'"'),i+=" is "+JSON.stringify(o)+"."}var x=exports.Store=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!=typeof window&&window.Vue&&H(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,a=this.dispatch,c=this.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,n){return c.call(i,t,e,n)},this.strict=o;var s=this._modules.root.state;j(this,s,[],this._modules.root),$(this,s),n.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:v.config.devtools)&&r(this)},M={state:{configurable:!0}};function O(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function E(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;j(t,n,[],t._modules.root,!0),$(t,n,e)}function $(t,e,n){var o=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,i={};c(r,function(e,n){i[n]=p(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var a=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:i}),v.config.silent=a,t.strict&&N(t),o&&(n&&t._withCommit(function(){o._data.$$state=null}),v.nextTick(function(){return o.$destroy()}))}function j(t,e,n,o,r){var i=!n.length,a=t._modules.getNamespace(n);if(o.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=o),!i&&!r){var c=L(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit(function(){v.set(c,s,o.state)})}var u=o.context=C(t,a,n);o.forEachMutation(function(e,n){S(t,a+n,e,u)}),o.forEachAction(function(e,n){var o=e.root?n:a+n,r=e.handler||e;k(t,o,r,u)}),o.forEachGetter(function(e,n){G(t,a+n,e,u)}),o.forEachChild(function(o,i){j(t,e,n.concat(i),o,r)})}function C(t,e,n){var o=""===e,r={dispatch:o?t.dispatch:function(n,o,r){var i=P(n,o,r),a=i.payload,c=i.options,s=i.type;return c&&c.root||(s=e+s),t.dispatch(s,a)},commit:o?t.commit:function(n,o,r){var i=P(n,o,r),a=i.payload,c=i.options,s=i.type;c&&c.root||(s=e+s),t.commit(s,a,c)}};return Object.defineProperties(r,{getters:{get:o?function(){return t.getters}:function(){return A(t,e)}},state:{get:function(){return L(t.state,n)}}}),r}function A(t,e){if(!t._makeLocalGettersCache[e]){var n={},o=e.length;Object.keys(t.getters).forEach(function(r){if(r.slice(0,o)===e){var i=r.slice(o);Object.defineProperty(n,i,{get:function(){return t.getters[r]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function S(t,e,n,o){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,o.state,e)})}function k(t,e,n,o){(t._actions[e]||(t._actions[e]=[])).push(function(e){var r=n.call(t,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:t.getters,rootState:t.state},e);return u(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):r})}function G(t,e,n,o){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(o.state,o.getters,t.state,t.getters)})}function N(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}function L(t,e){return e.reduce(function(t,e){return t[e]},t)}function P(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function H(t){v&&t===v||e(v=t)}M.state.get=function(){return this._vm._data.$$state},M.state.set=function(t){0},x.prototype.commit=function(t,e,n){var o=this,r=P(t,e,n),i=r.type,a=r.payload,c=(r.options,{type:i,payload:a}),s=this._mutations[i];s&&(this._withCommit(function(){s.forEach(function(t){t(a)})}),this._subscribers.slice().forEach(function(t){return t(c,o.state)}))},x.prototype.dispatch=function(t,e){var n=this,o=P(t,e),r=o.type,i=o.payload,a={type:r,payload:i},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(a,n.state)})}catch(u){0}var s=c.length>1?Promise.all(c.map(function(t){return t(i)})):c[0](i);return new Promise(function(t,e){s.then(function(e){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(a,n.state)})}catch(u){0}t(e)},function(t){try{n._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(a,n.state,t)})}catch(u){0}e(t)})})}},x.prototype.subscribe=function(t,e){return O(t,this._subscribers,e)},x.prototype.subscribeAction=function(t,e){return O("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},x.prototype.watch=function(t,e,n){var o=this;return this._watcherVM.$watch(function(){return t(o.state,o.getters)},e,n)},x.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},x.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),j(this,this.state,t,this._modules.get(t),n.preserveState),$(this,this.state)},x.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=L(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])}),E(this)},x.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},x.prototype.hotUpdate=function(t){this._modules.update(t),E(this,!0)},x.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(x.prototype,M);var V=exports.mapState=J(function(t,e){var n={};return U(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var o=K(this.$store,"mapState",t);if(!o)return;e=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[o].vuex=!0}),n}),F=exports.mapMutations=J(function(t,e){var n={};return U(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.commit;if(t){var i=K(this.$store,"mapMutations",t);if(!i)return;o=i.context.commit}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),T=exports.mapGetters=J(function(t,e){var n={};return U(e).forEach(function(e){var o=e.key,r=e.val;r=t+r,n[o]=function(){if(!t||K(this.$store,"mapGetters",t))return this.$store.getters[r]},n[o].vuex=!0}),n}),D=exports.mapActions=J(function(t,e){var n={};return U(e).forEach(function(e){var o=e.key,r=e.val;n[o]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var o=this.$store.dispatch;if(t){var i=K(this.$store,"mapActions",t);if(!i)return;o=i.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(e)):o.apply(this.$store,[r].concat(e))}}),n}),R=function(t){return{mapState:V.bind(null,t),mapGetters:T.bind(null,t),mapMutations:F.bind(null,t),mapActions:D.bind(null,t)}};function U(t){return B(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function B(t){return Array.isArray(t)||s(t)}function J(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function K(t,e,n){var o=t._modulesNamespaceMap[n];return o}function q(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var o=t.transformer;void 0===o&&(o=function(t){return t});var r=t.mutationTransformer;void 0===r&&(r=function(t){return t});var i=t.actionFilter;void 0===i&&(i=function(t,e){return!0});var c=t.actionTransformer;void 0===c&&(c=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var f=t.logger;return void 0===f&&(f=console),function(t){var p=a(t.state);void 0!==f&&(s&&t.subscribe(function(t,i){var c=a(i);if(n(t,p,c)){var s=Q(),u=r(t),l="mutation "+t.type+s;z(f,l,e),f.log("%c prev state","color: #9E9E9E; font-weight: bold",o(p)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",o(c)),I(f)}p=c}),u&&t.subscribeAction(function(t,n){if(i(t,n)){var o=Q(),r=c(t),a="action "+t.type+o;z(f,a,e),f.log("%c action","color: #03A9F4; font-weight: bold",r),I(f)}}))}}function z(t,e,n){var o=n?t.groupCollapsed:t.group;try{o.call(t,e)}catch(r){t.log(e)}}function I(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function Q(){var t=new Date;return" @ "+X(t.getHours(),2)+":"+X(t.getMinutes(),2)+":"+X(t.getSeconds(),2)+"."+X(t.getMilliseconds(),3)}function W(t,e){return new Array(e+1).join(t)}function X(t,e){return W("0",e-t.toString().length)+t}exports.createNamespacedHelpers=R;var Y={Store:x,install:H,version:"3.6.2",mapState:V,mapMutations:F,mapGetters:T,mapActions:D,createNamespacedHelpers:R,createLogger:q},Z=exports.default=Y;
},{}],"FSzv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stateWatchFunction=exports.objectDeepMerge=exports.mutationWatchFunction=exports.createBasicStore=void 0;var e=c(require("@babel/runtime/helpers/defineProperty")),t=c(require("@babel/runtime/helpers/typeof")),r=c(require("vuex")),n=c(require("deepmerge")),o=require("$Functions/index");function c(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var i=exports.objectDeepMerge=function(e,r){return Object.keys(r).map(function(n){Object.prototype.hasOwnProperty.call(r,n)&&(Object.prototype.hasOwnProperty.call(e,n)&&"object"===(0,t.default)(e[n])?e[n]=u(u({},e[n]),r[n]):e[n]=r[n])}),e},p=exports.createBasicStore=function(e,t){return new r.default.Store((0,n.default)(e,t))},s=exports.mutationWatchFunction=function(e,t){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var c=n[0];e[c.type]&&e[c.type].apply(e,n.concat([t]))}},f=exports.stateWatchFunction=function(e,t){Object.keys(t).map(function(r){if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r],c=n.watch,a=n.callBack,u=n.callAtStart;Array.isArray(c)||(c=[c]);var i=function(e,t){return function(){return(0,o.objectPropertyFromString)(e,t.state)}};c.map(function(t){u&&a(e)(i(t,e)()),e.watch(i(t,e),function(t,r){return a(e,t,r)},{deep:!0})})}})};
},{"@babel/runtime/helpers/defineProperty":"cQfh","@babel/runtime/helpers/typeof":"xOn8","vuex":"yv7g","deepmerge":"xMlw","$Functions/index":"HlPv"}],"fJD7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={namespaced:!0,state:function(){return{activeId:null}},getters:{getActiveColorPickerId:function(e){return e.activeId}},mutations:{setActiveColorPicker:function(e,t){e.activeId=t}}},t=exports.default=e;
},{}],"h7JB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={"--wptb-plugin-theme-color-light":"#A0AEC0","--wptb-plugin-theme-text-color-main":"#E2E8F0","--wptb-plugin-gray-100":"#718096","--wptb-plugin-theme-sidebar-bg":"#CBD5E0","--wptb-plugin-logo-color":"#4A5568"},t=exports.default=e;
},{}],"WQ0b":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("$Stores/builderStore/modules/nightMode/state/cssVariableMaps"));function t(e){return e&&e.__esModule?e:{default:e}}var a={namespaced:!0,state:function(){return{activated:{value:!1,_persistent:!0},cssVariableMaps:e.default}},getters:{isActive:function(e){return e.activated.value}},mutations:{setNightMode:function(e,t){e.activated.value=t}}},s=exports.default=a;
},{"$Stores/builderStore/modules/nightMode/state/cssVariableMaps":"h7JB"}],"NhLp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var i={namespaced:!0,state:function(){return{modalVisibility:!1}},getters:{visibility:function(i){return i.modalVisibility}},mutations:{showModal:function(i){i.modalVisibility=!0},hideModal:function(i){i.modalVisibility=!1}}},t=exports.default=i;
},{}],"GUJt":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={namespaced:!0,state:{upsellUrl:""},getters:{getUpsellUrl:function(e){return e.upsellUrl}}},t=exports.default=e;
},{}],"gPop":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.saveOperationTypes=exports.default=void 0;var e=exports.saveOperationTypes={TABLE:"table",TEMPLATE:"template"},t={namespaced:!0,state:function(){return{saveOperation:{enabled:!1,currentType:e.TABLE,saveOperationTypes:e}}},getters:{saveOperationTypes:function(e){return e.saveOperation.saveOperationTypes},isSavingEnabled:function(e){return e.saveOperation.enabled},currentSaveType:function(e){return e.saveOperation.currentType}},mutations:{setSaveStatus:function(e,t){e.saveOperation.enabled=t},setSaveType:function(e,t){e.saveOperation.currentType=t}}},a=exports.default=t;
},{}],"s0Fm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=l(require("$Stores/builderStore/modules/colorPicker")),r=l(require("$Stores/builderStore/modules/nightMode")),u=l(require("$Stores/builderStore/modules/embed")),o=l(require("$Stores/builderStore/modules/upsells")),t=l(require("$Stores/builderStore/modules/app"));function l(e){return e&&e.__esModule?e:{default:e}}var d={colorPicker:e.default,nightMode:r.default,embed:u.default,upsells:o.default,app:t.default},s=exports.default=d;
},{"$Stores/builderStore/modules/colorPicker":"fJD7","$Stores/builderStore/modules/nightMode":"WQ0b","$Stores/builderStore/modules/embed":"NhLp","$Stores/builderStore/modules/upsells":"GUJt","$Stores/builderStore/modules/app":"gPop"}],"Px6E":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,t=arguments[3];function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(t,o){"object"===("undefined"==typeof exports?"undefined":n(exports))&&"undefined"!=typeof module?module.exports=o():"function"==typeof e&&e.amd?e(o):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var e=t.Cookies,n=t.Cookies=o();n.noConflict=function(){return t.Cookies=e,n}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+u}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),u=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(o[c]=n.read(u,c),e===c)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
},{}],"yIey":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPersistentState=exports.default=void 0;var t=o(require("@babel/runtime/helpers/typeof")),e=o(require("js-cookie")),r=require("$Stores/general"),n=require("$Functions/index");function o(t){return t&&t.__esModule?t:{default:t}}var a={},c=exports.getPersistentState=function(){var t=e.default.get("wptb");if(t)try{t=JSON.parse(atob(t))}catch(r){}return t},u=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o={};r.map(function(e){var r=e.split(".");r.reduce(function(o,a,c){return c<r.length-1?o[a]||(o[a]={}):o[a]=(0,n.objectPropertyFromString)(e,t),o[a]},o)}),e.default.set("wptb",btoa(JSON.stringify(o)))},i=function(e){var r=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"object"===(0,t.default)(n)&&null!==n&&(Object.prototype.hasOwnProperty.call(n,"_persistent")?r.push(o):Object.keys(n).map(function(t){Object.prototype.hasOwnProperty.call(n,t)&&e(n[t],"".concat(o).concat(""===o?"":".").concat(t))}))}(e),r},s=function(t){var e=i(t.state);a.stateWrite={watch:e,callBack:function(t){u(t.state,e)}},(0,r.stateWatchFunction)(t,a)},l=exports.default=s;
},{"@babel/runtime/helpers/typeof":"xOn8","js-cookie":"Px6E","$Stores/general":"FSzv","$Functions/index":"HlPv"}],"McNG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=s(require("vue")),e=s(require("vuex")),r=s(require("deepmerge")),n=require("$Stores/general"),u=s(require("./modules")),a=o(require("$Stores/builderStore/plugin"));function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}function o(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var o=u?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}function s(t){return t&&t.__esModule?t:{default:t}}var l={strict:!0,modules:u.default,plugins:[a.default]},f=function(t){return(0,n.createBasicStore)(l,t)};function c(){t.default.use(e.default);var n={};if(wptb_admin_object){var u=wptb_admin_object.store;u&&(n=u)}var i=f({state:{dirtyStatus:!1,settings:{}},getters:{getTableDirtyStatus:function(t){return t.dirtyStatus},proStatus:function(t){return t.pro},getTranslation:function(t){return function(e){return t.translations[e]}},tableId:function(t){return t.tableId},getSetting:function(t){return function(e){return t.settings[e]}}},mutations:{setTableId:function(t,e){t.tableId=e},setTableDirty:function(t){t.dirtyStatus=!0},setTableClean:function(t){t.dirtyStatus=!1}}});i.replaceState((0,r.default)(i.state,n));var o=(0,a.getPersistentState)();return o&&i.replaceState((0,r.default)(i.state,o)),i.get=function(t){return i.getters[t]},i.getTranslation=function(t){return i.getters.getTranslation(t)},i}var d=exports.default=new c;
},{"vue":"HYXJ","vuex":"yv7g","deepmerge":"xMlw","$Stores/general":"FSzv","./modules":"s0Fm","$Stores/builderStore/plugin":"yIey"}],"vg0W":[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.setupGlobalStore=void 0;var r=t(require("$Stores/builderStore"));function t(e){return e&&e.__esModule?e:{default:e}}var o=exports.setupGlobalStore=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"WPTB_Store";(self||e)[t]=r.default};
},{"$Stores/builderStore":"McNG"}],"uD0a":[function(require,module,exports) {
"use strict";var e=s(require("@babel/runtime/helpers/defineProperty")),t=s(require("vue")),r=s(require("portal-vue")),n=s(require("vue-fragment")),u=s(require("./containers/SettingsApp.vue")),i=s(require("./plugins/strings.js")),o=s(require("./plugins/filters")),a=require("$Functions/globalStore");function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?l(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}(0,a.setupGlobalStore)();var p=f({},wptbAdminSettingsData);wptbAdminSettingsData=void 0,t.default.config.productionTip=!1,t.default.use(i.default,{strings:p.strings}),t.default.use(r.default),t.default.use(o.default),t.default.use(n.default.Plugin),new t.default({components:{SettingsApp:u.default},data:{sectionsData:p.sectionsData,settings:p.data,pluginInfo:p.pluginInfo}}).$mount(p.data.mountId);
},{"@babel/runtime/helpers/defineProperty":"cQfh","vue":"HYXJ","portal-vue":"Lue2","vue-fragment":"CDb8","./containers/SettingsApp.vue":"pZ9N","./plugins/strings.js":"yEip","./plugins/filters":"GZC0","$Functions/globalStore":"vg0W"}]},{},["uD0a"], null)